|
15 | 15 | imagetype: { value: "" }, |
16 | 16 | pullimage: { value: false }, |
17 | 17 | deletecontainer: { value: false }, |
| 18 | + outputFinished: { value: false }, |
18 | 19 | stream: { value: false }, |
19 | | - createOptions: {}, |
20 | | - startOptions: {}, |
| 20 | + createOptions: { value: "{}" }, |
| 21 | + startOptions: { value: "{}" }, |
21 | 22 | createOptionsType: {}, |
22 | 23 | startOptionsType: {} |
23 | 24 | }, |
|
74 | 75 | let name = element.Names[0].replace('/', ''); |
75 | 76 | dataArray.push(name); |
76 | 77 | }); |
| 78 | + console.log("dataArray", dataArray); |
77 | 79 | }); |
78 | 80 |
|
79 | | - |
80 | | - |
81 | 81 | $("#node-input-container").typedInput({ |
82 | | - types: ["str", "msg"], |
83 | | - typeField: "#node-input-containertype", |
84 | | - autoComplete: function (val) { |
85 | | - var matches = []; |
86 | | - dataArray.forEach(v => { |
87 | | - var i = v.toLowerCase().indexOf(val.toLowerCase()); |
88 | | - if (i > -1) { |
89 | | - matches.push({ |
90 | | - value: v, |
91 | | - label: v, |
92 | | - i: i |
93 | | - }) |
| 82 | + type: "node-input-container", |
| 83 | + types: [ |
| 84 | + { |
| 85 | + value: "str", |
| 86 | + label: "string", |
| 87 | + icon: "red/images/typedInput/az.svg", |
| 88 | + autoComplete: function (val) { |
| 89 | + console.log("autocomplete", val); |
| 90 | + var matches = []; |
| 91 | + dataArray.forEach(v => { |
| 92 | + var i = v.toLowerCase().indexOf(val.toLowerCase()); |
| 93 | + if (i > -1) { |
| 94 | + matches.push({ |
| 95 | + value: v, |
| 96 | + label: v, |
| 97 | + i: i |
| 98 | + }) |
| 99 | + } |
| 100 | + }); |
| 101 | + matches.sort(function (A, B) { return A.i - B.i }) |
| 102 | + return matches |
94 | 103 | } |
95 | | - }); |
96 | | - matches.sort(function (A, B) { return A.i - B.i }) |
97 | | - return matches |
98 | | - } |
| 104 | + }, |
| 105 | + "msg" |
| 106 | + ], |
99 | 107 | }); |
100 | 108 |
|
101 | 109 | $("#node-input-image").typedInput({ |
|
205 | 213 | <i id="node-config-lookup-uuid-icon" class="fa fa-plus-square"></i> |
206 | 214 | </a> |
207 | 215 | </div> |
208 | | - <div class="form-row" id="options"> |
| 216 | + <div class="form-row"> |
209 | 217 | <label for="node-input-image"><i class="icon-tag"></i> Image</label> |
210 | 218 | <input type="text" id="node-input-image"> |
211 | 219 | <input type="hidden" id="node-input-imagetype"> |
212 | 220 |
|
213 | 221 | </div> |
214 | | - <div class="form-row" id="options"> |
| 222 | + <div class="form-row"> |
215 | 223 | <label for="node-input-options"><i class="icon-tag"></i> Options/Command</label> |
216 | 224 | <input type="text" id="node-input-options"> |
217 | 225 | <input type="hidden" id="node-input-optionstype"> |
|
222 | 230 | <input type="checkbox" id="node-input-stream" style="width:auto"> |
223 | 231 | </div> |
224 | 232 | <div id="pull-options"> |
225 | | - <div class="form-row" id="options"> |
| 233 | + <div class="form-row"> |
226 | 234 | <label for="node-input-createOptions"><i class="icon-tag"></i> createOptions</label> |
227 | 235 | <input type="text" id="node-input-createOptions"> |
228 | 236 | <input type="hidden" id="node-input-createOptionsType"> |
229 | 237 |
|
230 | 238 | </div> |
231 | | - <div class="form-row" id="options"> |
| 239 | + <div class="form-row"> |
232 | 240 | <label for="node-input-startOptions"><i class="icon-tag"></i> startOptions</label> |
233 | 241 | <input type="text" id="node-input-startOptions"> |
234 | 242 | <input type="hidden" id="node-input-startOptionsType"> |
235 | | - |
236 | 243 | </div> |
237 | | - <div class="form-row" > |
| 244 | + <div class="form-row"> |
238 | 245 | <label for="node-input-deletecontainer"><i class="icon-tag"></i> Delete Container after run</label> |
239 | 246 | <input type="checkbox" id="node-input-deletecontainer" style="width:auto"> |
240 | 247 | </div> |
241 | | - <div class="form-row" > |
| 248 | + <div class="form-row"> |
| 249 | + <label for="node-input-outputFinished"><i class="icon-tag"></i> Output full stdout on finish</label> |
| 250 | + <input type="checkbox" id="node-input-outputFinished" style="width:auto"> |
| 251 | + </div> |
| 252 | + <div class="form-row"> |
242 | 253 | <label for="node-input-pullimage"><i class="icon-tag"></i> Pull Image Always</label> |
243 | 254 | <input type="checkbox" id="node-input-pullimage" style="width:auto"> |
244 | 255 | <div class="form-tips" id="hint_v1"> |
|
0 commit comments