node-red-contrib-typescript 1.0.13 → 1.0.15
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/package.json
CHANGED
|
@@ -211,6 +211,13 @@
|
|
|
211
211
|
},
|
|
212
212
|
oneditprepare: function() {
|
|
213
213
|
let name = this.name || "__editor__";
|
|
214
|
+
if (this.filename) {
|
|
215
|
+
if (this.filename.endsWith("/")) {
|
|
216
|
+
name = this.filename + name;
|
|
217
|
+
} else {
|
|
218
|
+
name = this.filename;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
214
221
|
let path = `/${name}.tsx`;
|
|
215
222
|
|
|
216
223
|
let workspaces = [];
|
|
@@ -269,8 +276,8 @@
|
|
|
269
276
|
<input id="node-input-outputs" style="width: 60px;" value="1">
|
|
270
277
|
</div>
|
|
271
278
|
<div class="form-row">
|
|
272
|
-
<label for="node-input-filename"><i class="fa fa-tag"></i>
|
|
273
|
-
<input id="node-input-filename"
|
|
279
|
+
<label for="node-input-filename"><i class="fa fa-tag"></i> Filename <br><sub>(prefix, if ends with '/')</sub></label>
|
|
280
|
+
<input id="node-input-filename" type="text" value="">
|
|
274
281
|
</div>
|
|
275
282
|
|
|
276
283
|
<div style="height: calc(100% - 68px); min-height:250px;" class="node-text-editor" id="node-input-example-editor"></div>
|