@gregoriusrippenstein/node-red-contrib-introspection 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/icons/subflow.svg +1 -0
- package/nodes/30-navigator.html +22 -4
- package/nodes/45-get-flows.html +1 -4
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="40" height="60" viewBox="0, 0, 40, 60" xmlns="http://www.w3.org/2000/svg"><path d="M25 25.94h7c.58 0 1-.42 1-1v-2c0-.58-.42-1-1-1h-7c-.58 0-1 .42-1 1v2c0 .58.42 1 1 1zm-17 12h7c.58 0 1-.42 1-1v-2c0-.58-.42-1-1-1H8c-.58 0-1 .42-1 1v2c0 .58.42 1 1 1zm-.416 11C5.624 48.94 4 47.315 4 45.356V14.522c0-1.96 1.625-3.582 3.584-3.582h24.832c1.96 0 3.584 1.623 3.584 3.582v30.834c0 1.96-1.625 3.584-3.584 3.584zM32 36.94H19c0 2.19-1.81 4-4 4H7v4.416c0 .35.235.584.584.584h24.832c.35 0 .584-.235.584-.584v-8.417zm1-2v-6h-8c-2.19 0-4-1.81-4-4h-1c-4.333-.002-8.667.004-13 0v6h8c2.19 0 4 1.81 4 4h13zm0-16v-4.418c0-.35-.235-.582-.584-.582H7.584c-.35 0-.584.233-.584.582v8.417c4.333.002 8.667.001 13 .001h1c0-2.19 1.81-4 4-4h8z" color="#000" fill="#fff"/></svg>
|
package/nodes/30-navigator.html
CHANGED
|
@@ -4,9 +4,7 @@
|
|
|
4
4
|
icon: "font-awesome/fa-crosshairs",
|
|
5
5
|
category: 'introspection',
|
|
6
6
|
defaults: {
|
|
7
|
-
name: {
|
|
8
|
-
value:"",
|
|
9
|
-
},
|
|
7
|
+
name: { value:"", },
|
|
10
8
|
},
|
|
11
9
|
inputs:0,
|
|
12
10
|
outputs:0,
|
|
@@ -31,12 +29,32 @@
|
|
|
31
29
|
setTimeout( function() {
|
|
32
30
|
RED.workspaces.show(RED.nodes.node(nodeId[1]).z,false,false,true);
|
|
33
31
|
RED.view.reveal(nodeId[1],true)
|
|
34
|
-
},
|
|
32
|
+
}, 1012);
|
|
35
33
|
RED.events.off("nodes:add", hndlr);
|
|
36
34
|
}
|
|
37
35
|
};
|
|
38
36
|
RED.events.on("nodes:add", hndlr);
|
|
39
37
|
}
|
|
38
|
+
|
|
39
|
+
// Highlight an entire path.
|
|
40
|
+
var pathIds = window.location.hash.match(/\/p\/((.{16},?)+)/);
|
|
41
|
+
if ( pathIds ) {
|
|
42
|
+
var nodeIds = [];
|
|
43
|
+
pathIds[1].split(",").forEach( function(ndeId) {
|
|
44
|
+
if ( ndeId.trim() != "" ) { nodeIds.push( ndeId.trim() ) }
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
var hndlr = (stst) => {
|
|
48
|
+
if ( stst.state == "start" ) {
|
|
49
|
+
setTimeout( () => {
|
|
50
|
+
RED.workspaces.show(RED.nodes.node(nodeIds[0]).z,false,false,true);
|
|
51
|
+
RED.view.selectNodes({ selected: nodeIds });
|
|
52
|
+
}, 321);
|
|
53
|
+
RED.events.off("runtime-state", hndlr);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
RED.events.on("runtime-state", hndlr);
|
|
57
|
+
}
|
|
40
58
|
},
|
|
41
59
|
});
|
|
42
60
|
</script>
|
package/nodes/45-get-flows.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script type="text/javascript">
|
|
2
2
|
RED.nodes.registerType('GetFlows',{
|
|
3
3
|
color: '#e5e4ef',
|
|
4
|
-
icon: "subflow.svg",
|
|
4
|
+
icon: "icons/subflow.svg",
|
|
5
5
|
category: 'introspection',
|
|
6
6
|
defaults: {
|
|
7
7
|
name: {
|
|
@@ -109,11 +109,8 @@
|
|
|
109
109
|
</label>
|
|
110
110
|
<input type="text" id="node-input-apiPassword">
|
|
111
111
|
<input type="hidden" id="node-input-apiPasswordType">
|
|
112
|
-
|
|
113
112
|
</div>
|
|
114
113
|
</div>
|
|
115
|
-
|
|
116
|
-
|
|
117
114
|
</script>
|
|
118
115
|
|
|
119
116
|
<script type="text/html" data-help-name="GetFlows">
|