@gregoriusrippenstein/node-red-contrib-nodedev 0.2.5 → 0.2.7
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.
|
@@ -235,9 +235,9 @@
|
|
|
235
235
|
<div id="noderedinstall-options">
|
|
236
236
|
<div class="form-row">
|
|
237
237
|
<label for="node-input-randompackagename" style="min-width: 180px;">
|
|
238
|
-
<span>Randomise Package
|
|
238
|
+
<span>Randomise Package Version?</span>
|
|
239
239
|
</label>
|
|
240
|
-
<input type="checkbox" id="node-input-randompackagename" style="display:inline-block; width:15px; vertical-align:baseline;">
|
|
240
|
+
<input type="checkbox" id="node-input-randompackagename" style="margin-left: 10px; display:inline-block; width:15px; vertical-align:baseline;">
|
|
241
241
|
</div>
|
|
242
242
|
</div>
|
|
243
243
|
|
package/nodes/05-node-dev-ops.js
CHANGED
|
@@ -13,7 +13,11 @@ module.exports = function (RED) {
|
|
|
13
13
|
msg.commit_message = msg.githubmessage;
|
|
14
14
|
|
|
15
15
|
if (msg.randompackagename) {
|
|
16
|
-
msg.
|
|
16
|
+
msg.pversion = (
|
|
17
|
+
Math.random().toString().substring(2).substring(2, 3) + "." +
|
|
18
|
+
Math.random().toString().substring(2).substring(2, 3) + "." +
|
|
19
|
+
Math.random().toString().substring(2).substring(2, 5).replace(/^0/, '1')
|
|
20
|
+
)
|
|
17
21
|
}
|
|
18
22
|
|
|
19
23
|
if (msg.randompackagename && (msg.gitcommit || msg.npmpublish || msg.npmunpublish) ) {
|
|
@@ -28,6 +28,11 @@
|
|
|
28
28
|
<span>Has button?</span>
|
|
29
29
|
</label>
|
|
30
30
|
<input type="checkbox" id="node-input-hasbutton" style="display:inline-block; width:15px; vertical-align:baseline;">
|
|
31
|
+
|
|
32
|
+
<label for="node-input-minify">
|
|
33
|
+
<span>Minify by default?</span>
|
|
34
|
+
</label>
|
|
35
|
+
<input type="checkbox" id="node-input-minify" style="margin-left: 10px; display:inline-block; width:15px; vertical-align:baseline;">
|
|
31
36
|
</div>
|
|
32
37
|
|
|
33
38
|
<div class="form-row">
|
|
@@ -146,6 +151,7 @@
|
|
|
146
151
|
data["category"] = $('#node-input-category').val();
|
|
147
152
|
|
|
148
153
|
data["hasbutton"] = $('#node-input-hasbutton').is(":checked");
|
|
154
|
+
data["minify"] = $('#node-input-minify').is(":checked");
|
|
149
155
|
data["hasinput"] = $('#node-input-hasinput').is(":checked");
|
|
150
156
|
data["bak2frtcomm"] = $('#node-input-bak2frtcomm').is(":checked");
|
|
151
157
|
data["frt2bakcomm"] = $('#node-input-frt2bakcomm').is(":checked");
|
|
@@ -204,6 +210,7 @@
|
|
|
204
210
|
nodename: { value: "", required: true },
|
|
205
211
|
color: { value: "#e5e4ef" },
|
|
206
212
|
hasbutton: { value: false },
|
|
213
|
+
minify: { value: false },
|
|
207
214
|
hasinput: { value: true },
|
|
208
215
|
outputcount: { value: 1 },
|
|
209
216
|
category: { value: "" },
|
|
@@ -60,6 +60,9 @@
|
|
|
60
60
|
name: {
|
|
61
61
|
value:"",
|
|
62
62
|
},
|
|
63
|
+
{{#node.minify}}
|
|
64
|
+
l: { value: false },
|
|
65
|
+
{{/node.minify}}
|
|
63
66
|
},
|
|
64
67
|
|
|
65
68
|
{{#node.hasinput}}
|
|
@@ -94,6 +97,12 @@
|
|
|
94
97
|
{{/node.bak2frtcomm}}
|
|
95
98
|
},
|
|
96
99
|
|
|
100
|
+
onpaletteremove: function() {
|
|
101
|
+
{{#node.bak2frtcomm}}
|
|
102
|
+
RED.comms.unsubscribe('{{node.name}}:message-from-backend',this.messageFromBackendHandler);
|
|
103
|
+
{{/node.bak2frtcomm}}
|
|
104
|
+
},
|
|
105
|
+
|
|
97
106
|
oneditprepare: function() {
|
|
98
107
|
},
|
|
99
108
|
|
|
@@ -103,13 +112,9 @@
|
|
|
103
112
|
oneditsave: function() {
|
|
104
113
|
},
|
|
105
114
|
|
|
106
|
-
|
|
107
|
-
{{#node.bak2frtcomm}}
|
|
108
|
-
RED.comms.unsubscribe('{{node.name}}:message-from-backend',this.messageFromBackendHandler);
|
|
109
|
-
{{/node.bak2frtcomm}}
|
|
115
|
+
oneditresize: function(size) {
|
|
110
116
|
},
|
|
111
117
|
|
|
112
|
-
|
|
113
118
|
{{#node.hasbutton}}
|
|
114
119
|
button: {
|
|
115
120
|
enabled: function() {
|
package/nodes/templates/tmpl.js
CHANGED
|
@@ -15,7 +15,7 @@ module.exports = function(RED) {
|
|
|
15
15
|
RED.comms.publish("{{node.name}}:message-from-backend",
|
|
16
16
|
RED.util.encodeObject({
|
|
17
17
|
...msg,
|
|
18
|
-
|
|
18
|
+
"data": RED._("{{ node.name}}.label.msgfrombackend"),
|
|
19
19
|
})
|
|
20
20
|
);
|
|
21
21
|
{{/node.bak2frtcomm}}
|