@gregoriusrippenstein/node-red-contrib-nodedev 0.5.1 → 0.5.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name" : "@gregoriusrippenstein/node-red-contrib-nodedev",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "dependencies": {
5
5
  "pako": "^2.1.0",
6
6
  "tar-stream": "^3.1.6",
@@ -160,20 +160,24 @@
160
160
  }
161
161
  });
162
162
 
163
- // Add first tab, pkg importer
164
163
  tabs.addTab({
165
164
  id: 'func-nodedev-pkgimporter-tab-pkgimport',
166
165
  iconClass: 'fa fa-industry',
167
166
  label: 'PkgImporter'
168
167
  });
169
168
 
170
- // Add first tab, otp
171
169
  tabs.addTab({
172
170
  id: 'func-nodedev-pkgimporter-tab-otpgenerator',
173
171
  iconClass: 'fa fa-user-secret',
174
172
  label: 'OTP Generator'
175
173
  });
176
174
 
175
+ tabs.addTab({
176
+ id: 'func-nodedev-pkgimporter-tab-options',
177
+ iconClass: 'fa fa-cog',
178
+ label: 'Options'
179
+ });
180
+
177
181
  ensureYourConfigNodeExists();
178
182
 
179
183
  /*
@@ -464,5 +468,16 @@
464
468
  <input type="text" id="node-input-nodedev-sidebar-otp" placeholder="OTP...">
465
469
  </div>
466
470
  </div>
471
+
472
+ <div id="func-nodedev-pkgimporter-tab-options" style="display:none">
473
+ <div class="form-row" style="margin-left: 10px;">
474
+ Drag & Drop
475
+ </div>
476
+
477
+ <div class="form-row" style="margin-left: 10px;">
478
+ <input style="width: 10%;" type="checkbox" id="nodedev-drag-drop-generate-pkgfile-nodes"/>
479
+ <label for="nodedev-drag-drop-generate-pkgfile-nodes" style="width: 40%;"><i class="fa fa-code" ></i> Create PkgFile nodes on drop?</label>
480
+ </div>
481
+ </div>
467
482
  </div>
468
483
  </script>
@@ -9,6 +9,11 @@
9
9
  */
10
10
  window.ddEvent = event
11
11
 
12
+ // checkbox on the options tab
13
+ if ( !$("#nodedev-drag-drop-generate-pkgfile-nodes").is(":checked") ) {
14
+ return
15
+ }
16
+
12
17
  let itemPtr = event.originalEvent.dataTransfer.items
13
18
  let itemCount = itemPtr.length
14
19