tweaks and npm update...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-11-20 04:21:11 +03:00
parent 0eb201fb06
commit d7b77a0492
4 changed files with 19 additions and 13 deletions

View File

@ -603,12 +603,12 @@ var SharpActions = actions.Actions({
// XXX this seems to be called prematurely... // XXX this seems to be called prematurely...
abort.cleanup(function(reason, res){ abort.cleanup(function(reason, res){
console.log('!!!!!!', console.log('### ABORT:\n ',
logger && logger.log.length, logger && logger.log.length,
reason, res) reason, res)
/* /*
logger logger
&& logger.emit('done') && logger.emit('close')
&& reason == 'aborted' && reason == 'aborted'
&& logger.emit(res) && logger.emit(res)
//*/ //*/

View File

@ -128,6 +128,7 @@ var ProgressActions = actions.Actions({
.append($('<span class="close">&times;</span>') .append($('<span class="close">&times;</span>')
.on('click', function(){ .on('click', function(){
var cache = (that.__progress_cache || {})[text] var cache = (that.__progress_cache || {})[text]
// XXX do we need both close and done callbacks???
cache.onclose cache.onclose
&& cache.onclose() && cache.onclose()
widget.trigger('progressClose') })) widget.trigger('progressClose') }))
@ -143,6 +144,7 @@ var ProgressActions = actions.Actions({
var cache = (that.__progress_cache || {})[text] var cache = (that.__progress_cache || {})[text]
cache.timeout cache.timeout
&& clearTimeout(cache.timeout) && clearTimeout(cache.timeout)
// XXX do we need both close and done callbacks???
cache.ondone cache.ondone
&& cache.ondone() && cache.ondone()
delete (that.__progress_cache || {})[text] delete (that.__progress_cache || {})[text]
@ -175,6 +177,7 @@ var ProgressActions = actions.Actions({
// auto-close... // auto-close...
if(value && value >= (max || 0)){ if(value && value >= (max || 0)){
widget.attr('close-timeout', widget.attr('close-timeout',
// XXX BUG: this appears to get triggered after we close progress...
JSON.stringify(setTimeout(function(){ JSON.stringify(setTimeout(function(){
widget.trigger('progressClose') widget.trigger('progressClose')
}, this.config['progress-done-delay'] || 1000))) } }, this.config['progress-done-delay'] || 1000))) }
@ -209,10 +212,13 @@ var ProgressActions = actions.Actions({
'skipped', 'skipped',
'removed', 'removed',
] ]
var close = [
'close',
'end',
]
// close... // close...
// XXX is the right keyword... if(close.includes(status)){
if(status == 'done' && rest.length == 0){
this.showProgress(path, 'close', logger) this.showProgress(path, 'close', logger)
// report progress... // report progress...

View File

@ -1112,16 +1112,16 @@
} }
}, },
"ig-object": { "ig-object": {
"version": "5.3.0", "version": "5.4.9",
"resolved": "https://registry.npmjs.org/ig-object/-/ig-object-5.3.0.tgz", "resolved": "https://registry.npmjs.org/ig-object/-/ig-object-5.4.9.tgz",
"integrity": "sha512-8I3w0Gqv96cx1Eirqrvtuh4Pq8X4U3tAexj4nMwceNu4jzZF1wg9FP3Im5ZZ99kQSk7CWl4tjSGe/aS5IXEoMw==" "integrity": "sha512-dmwTla11Kme9pSq7hUjHVNNnbJGg1fQZCm3bquuuTIj5KlI1OLgka14fAhjWOf3kGtHJ2x5Nznvd7yxka26OzQ=="
}, },
"ig-types": { "ig-types": {
"version": "3.6.0", "version": "3.7.12",
"resolved": "https://registry.npmjs.org/ig-types/-/ig-types-3.6.0.tgz", "resolved": "https://registry.npmjs.org/ig-types/-/ig-types-3.7.12.tgz",
"integrity": "sha512-zLy40mWfYXPeCw82zoAapgUUvpGvF0GNSZTAEX1s/qpAP2YYR9SnvP8QEJ1N/LqyNSpSC3q+axsBVYEqIgW2fg==", "integrity": "sha512-Qp5N79XLq+BvLyxJAn/JNVwt+IWmedQdHBUCImeZ57MJiX6e2I/EZ79D16xU4r866RAEwFFBSsm7q9RWoVNuBg==",
"requires": { "requires": {
"ig-object": "^5.3.0", "ig-object": "^5.4.2",
"object-run": "^1.0.1" "object-run": "^1.0.1"
} }
}, },

View File

@ -31,8 +31,8 @@
"ig-actions": "^3.24.11", "ig-actions": "^3.24.11",
"ig-argv": "^2.15.0", "ig-argv": "^2.15.0",
"ig-features": "^3.4.2", "ig-features": "^3.4.2",
"ig-object": "^5.3.0", "ig-object": "^5.4.9",
"ig-types": "^3.6.0", "ig-types": "^3.7.12",
"moment": "^2.29.1", "moment": "^2.29.1",
"object-run": "^1.0.1", "object-run": "^1.0.1",
"requirejs": "^2.3.6", "requirejs": "^2.3.6",