mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Merge branch 'master' into dev
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
flowMap[activeSubflow.id] = {
|
||||
id: activeSubflow.id,
|
||||
class: 'palette-header',
|
||||
label: "Subflow : "+(activeSubflow.name || activeSubflow.id)+(node.z===ws.id ? " *":""),
|
||||
label: "Subflow : "+(activeSubflow.name || activeSubflow.id),
|
||||
expanded: true,
|
||||
children: []
|
||||
};
|
||||
|
@@ -88,10 +88,11 @@ module.exports = function(RED) {
|
||||
};
|
||||
}
|
||||
|
||||
var clearDelayList = function() {
|
||||
var clearDelayList = function(s) {
|
||||
for (var i=0; i<node.idList.length; i++ ) { node.idList[i].clear(); }
|
||||
node.idList = [];
|
||||
node.status({text:"reset"});
|
||||
if (s) { node.status({text:"reset"}); }
|
||||
else { node.status({}); }
|
||||
}
|
||||
|
||||
var flushDelayList = function() {
|
||||
@@ -124,7 +125,7 @@ module.exports = function(RED) {
|
||||
if ((node.timeout > 1000) && (node.idList.length !== 0)) {
|
||||
node.status({fill:"blue",shape:"dot",text:" "});
|
||||
}
|
||||
if (msg.hasOwnProperty("reset")) { clearDelayList(); }
|
||||
if (msg.hasOwnProperty("reset")) { clearDelayList(true); }
|
||||
}
|
||||
});
|
||||
node.on("close", function() { clearDelayList(); });
|
||||
@@ -145,7 +146,7 @@ module.exports = function(RED) {
|
||||
if ((delayvar >= 0) && (node.idList.length !== 0)) {
|
||||
node.status({fill:"blue",shape:"dot",text:delayvar/1000+"s"});
|
||||
}
|
||||
if (msg.hasOwnProperty("reset")) { clearDelayList(); }
|
||||
if (msg.hasOwnProperty("reset")) { clearDelayList(true); }
|
||||
if (msg.hasOwnProperty("flush")) { flushDelayList(); }
|
||||
});
|
||||
node.on("close", function() { clearDelayList(); });
|
||||
@@ -267,7 +268,7 @@ module.exports = function(RED) {
|
||||
if ((node.timeout >= 1000) && (node.idList.length !== 0)) {
|
||||
node.status({fill:"blue",shape:"dot",text:parseInt(wait/10)/100+"s"});
|
||||
}
|
||||
if (msg.hasOwnProperty("reset")) { clearDelayList(); }
|
||||
if (msg.hasOwnProperty("reset")) { clearDelayList(true); }
|
||||
if (msg.hasOwnProperty("flush")) { flushDelayList(); }
|
||||
});
|
||||
node.on("close", function() { clearDelayList(); });
|
||||
|
@@ -251,7 +251,7 @@ module.exports = function(RED) {
|
||||
}
|
||||
}
|
||||
});
|
||||
}, 150);
|
||||
}, 75);
|
||||
|
||||
node.on("close", function() {
|
||||
if (node.tout) { clearTimeout(node.tout); }
|
||||
|
@@ -16,25 +16,25 @@
|
||||
],
|
||||
"dependencies": {
|
||||
"ajv": "6.10.0",
|
||||
"body-parser": "1.18.3",
|
||||
"body-parser": "1.19.0",
|
||||
"cheerio": "0.22.0",
|
||||
"content-type": "1.0.4",
|
||||
"cookie-parser": "1.4.4",
|
||||
"cookie": "0.3.1",
|
||||
"cors": "2.8.5",
|
||||
"cron": "1.7.0",
|
||||
"cron": "1.7.1",
|
||||
"denque": "1.4.1",
|
||||
"fs-extra": "7.0.1",
|
||||
"fs.notify": "0.0.4",
|
||||
"hash-sum": "1.0.2",
|
||||
"https-proxy-agent": "2.2.1",
|
||||
"is-utf8": "0.2.1",
|
||||
"js-yaml": "3.13.0",
|
||||
"js-yaml": "3.13.1",
|
||||
"mqtt": "2.18.8",
|
||||
"multer": "1.4.1",
|
||||
"mustache": "3.0.1",
|
||||
"on-headers": "1.0.2",
|
||||
"raw-body": "2.3.3",
|
||||
"raw-body": "2.4.0",
|
||||
"request": "2.88.0",
|
||||
"ws": "6.2.1",
|
||||
"xml2js": "0.4.19",
|
||||
|
Reference in New Issue
Block a user