@5minds/node-red-dashboard-2-processcube-ui-page-navigation 1.0.4-feature-b8af7f-m62kvwtb → 1.0.4-feature-735583-m62l6bqn
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.
|
@@ -4,10 +4,9 @@
|
|
|
4
4
|
category: 'ProcessCube UI',
|
|
5
5
|
color: '#02AFD6',
|
|
6
6
|
defaults: {
|
|
7
|
-
|
|
7
|
+
page: { type: 'ui-page', required: true },
|
|
8
8
|
name: { value: '' },
|
|
9
|
-
event: { value: '', required: true }
|
|
10
|
-
page: { type: 'ui-page', required: true }
|
|
9
|
+
event: { value: '', required: true }
|
|
11
10
|
},
|
|
12
11
|
inputs: 0,
|
|
13
12
|
outputs: 1,
|
|
@@ -30,10 +29,10 @@
|
|
|
30
29
|
})();
|
|
31
30
|
</script>
|
|
32
31
|
|
|
33
|
-
<script type="text/html" data-template-name="ui-page-navigation">
|
|
32
|
+
<script type="text/html" data-template-name="ui-page-navigation">
|
|
34
33
|
<div class="form-row">
|
|
35
|
-
<label for="node-input-
|
|
36
|
-
<input type="text" id="node-input-
|
|
34
|
+
<label for="node-input-page"><i class="fa fa-tag"></i> Page</label>
|
|
35
|
+
<input type="text" id="node-input-page" />
|
|
37
36
|
</div>
|
|
38
37
|
<div class="form-row">
|
|
39
38
|
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
|
@@ -47,10 +46,6 @@
|
|
|
47
46
|
<option value="$pageleave">$pageleave</option>
|
|
48
47
|
</select>
|
|
49
48
|
</div>
|
|
50
|
-
<div class="form-row">
|
|
51
|
-
<label for="node-input-page"><i class="fa fa-tag"></i> Page</label>
|
|
52
|
-
<input type="text" id="node-input-page" />
|
|
53
|
-
</div>
|
|
54
49
|
</script>
|
|
55
50
|
|
|
56
51
|
<script type="text/markdown" data-help-name="ui-page-navigation">
|
|
@@ -28,7 +28,7 @@ module.exports = function (RED) {
|
|
|
28
28
|
return msg;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
const ui =
|
|
31
|
+
const ui = page.getBase();
|
|
32
32
|
|
|
33
33
|
const evts = {
|
|
34
34
|
onSocket: {
|
|
@@ -48,12 +48,12 @@ module.exports = function (RED) {
|
|
|
48
48
|
},
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
ui.register(null, null, node, config, evts);
|
|
52
52
|
|
|
53
53
|
node.on('close', function (removed, done) {
|
|
54
54
|
if (removed) {
|
|
55
55
|
// handle node being removed
|
|
56
|
-
|
|
56
|
+
ui.deregister(null, null, node);
|
|
57
57
|
}
|
|
58
58
|
done();
|
|
59
59
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@5minds/node-red-dashboard-2-processcube-ui-page-navigation",
|
|
3
|
-
"version": "1.0.4-feature-
|
|
3
|
+
"version": "1.0.4-feature-735583-m62l6bqn",
|
|
4
4
|
"description": "A node to handle the navigation between pages in the Node-RED Dashboard",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node-red",
|