pywebexec 2.3.9__py3-none-any.whl → 2.3.10__py3-none-any.whl
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.
- pywebexec/static/css/form.css +8 -4
- pywebexec/static/js/schemaform.js +30 -19
- pywebexec/version.py +2 -2
- {pywebexec-2.3.9.dist-info → pywebexec-2.3.10.dist-info}/METADATA +1 -1
- {pywebexec-2.3.9.dist-info → pywebexec-2.3.10.dist-info}/RECORD +9 -9
- {pywebexec-2.3.9.dist-info → pywebexec-2.3.10.dist-info}/WHEEL +0 -0
- {pywebexec-2.3.9.dist-info → pywebexec-2.3.10.dist-info}/entry_points.txt +0 -0
- {pywebexec-2.3.9.dist-info → pywebexec-2.3.10.dist-info}/licenses/LICENSE +0 -0
- {pywebexec-2.3.9.dist-info → pywebexec-2.3.10.dist-info}/top_level.txt +0 -0
pywebexec/static/css/form.css
CHANGED
@@ -44,7 +44,7 @@
|
|
44
44
|
}
|
45
45
|
.btn-primary {
|
46
46
|
position: relative;
|
47
|
-
margin-bottom:
|
47
|
+
margin-bottom: 20px;
|
48
48
|
height: 24px;
|
49
49
|
top: 20px;
|
50
50
|
color: #fff;
|
@@ -224,13 +224,17 @@
|
|
224
224
|
}
|
225
225
|
ul ~ ._jsonform-array-buttons {
|
226
226
|
display: block;
|
227
|
+
}
|
228
|
+
li > fieldset {
|
227
229
|
width: 100%;
|
230
|
+
margin-bottom: 3px;
|
228
231
|
}
|
229
232
|
._jsonform-array-buttons {
|
230
|
-
/* display: block; */
|
231
|
-
/* width: 100%; */
|
232
233
|
text-align: right;
|
233
234
|
}
|
235
|
+
ul._jsonform-array-ul > li > div.form-group {
|
236
|
+
width: 100%;
|
237
|
+
}
|
234
238
|
i[title="Delete current"] {
|
235
239
|
top: 5px;
|
236
240
|
}
|
@@ -253,7 +257,7 @@
|
|
253
257
|
}
|
254
258
|
.alert {
|
255
259
|
padding: 5px 10px;
|
256
|
-
margin-
|
260
|
+
margin-top: 10px;
|
257
261
|
border: 1px solid transparent;
|
258
262
|
border-radius: 15px;
|
259
263
|
font-size: 14px;
|
@@ -11,7 +11,7 @@ function adjustInputWidth(input) {
|
|
11
11
|
if (input.scrollWidth > 0) {
|
12
12
|
input.style.width = `${input.scrollWidth + delta}px`;
|
13
13
|
} else {
|
14
|
-
input.style.width = `${input.value.length *
|
14
|
+
input.style.width = `${input.value.length * 10 + 20}px`;
|
15
15
|
}
|
16
16
|
|
17
17
|
}
|
@@ -144,35 +144,30 @@ function validateSchemaForm(form, formDesc, schema, values, schemaName) {
|
|
144
144
|
}
|
145
145
|
|
146
146
|
function createSchemaForm($form, schema, onSubmit, schemaName) {
|
147
|
+
schema_options = undefined;
|
148
|
+
schema_params_options = undefined;
|
147
149
|
if (schema && schema.schema_options) {
|
148
150
|
schema_options = schema.schema_options;
|
149
|
-
} else {
|
150
|
-
schema_options = {};
|
151
151
|
}
|
152
152
|
if (schema && schema.properties && schema.properties.params && schema.properties.params.schema_options) {
|
153
153
|
schema_params_options = schema.properties.params.schema_options;
|
154
|
-
} else {
|
155
|
-
schema_params_options = {};
|
156
154
|
}
|
157
155
|
|
158
156
|
formkeys = {};
|
159
157
|
formoptions = {};
|
160
158
|
if (schema_options) {
|
161
|
-
formkeys =
|
162
|
-
formoptions =
|
163
|
-
} else {
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
formoptions[`params.${key}`] = foptions[key];
|
172
|
-
}
|
159
|
+
formkeys = schema_options.form || {}
|
160
|
+
formoptions = schema_options.formoptions || {};
|
161
|
+
} else if (schema_params_options) {
|
162
|
+
let fkeys = schema_params_options.form || {};
|
163
|
+
let foptions = schema_params_options.formoptions || {};
|
164
|
+
for (let key in fkeys) {
|
165
|
+
formkeys[`params.${key}`] = fkeys[key];
|
166
|
+
}
|
167
|
+
for (let key in foptions) {
|
168
|
+
formoptions[`params.${key}`] = foptions[key];
|
173
169
|
}
|
174
170
|
}
|
175
|
-
|
176
171
|
formDesc = extractKeysAndPlaceholders(schema, formkeys, formoptions);
|
177
172
|
if (schemaValues[schemaName]) {
|
178
173
|
value = schemaValues[schemaName];
|
@@ -251,7 +246,7 @@ function createSchemaForm($form, schema, onSubmit, schemaName) {
|
|
251
246
|
}
|
252
247
|
}
|
253
248
|
}
|
254
|
-
if (formoptions) {
|
249
|
+
if (Object.keys(formoptions).length) {
|
255
250
|
items = [];
|
256
251
|
for (let key in formoptions) {
|
257
252
|
items.push({
|
@@ -307,6 +302,22 @@ function createSchemaForm($form, schema, onSubmit, schemaName) {
|
|
307
302
|
}
|
308
303
|
}
|
309
304
|
}
|
305
|
+
if (formoptions) {
|
306
|
+
items = [];
|
307
|
+
for (let key in formoptions) {
|
308
|
+
items.push({
|
309
|
+
key: key,
|
310
|
+
... formoptions[key],
|
311
|
+
});
|
312
|
+
}
|
313
|
+
formDesc.push({
|
314
|
+
type: 'fieldset',
|
315
|
+
title: 'Options',
|
316
|
+
fieldHtmlClass: 'fieldsetoptions',
|
317
|
+
expandable: true,
|
318
|
+
items: items,
|
319
|
+
});
|
320
|
+
}
|
310
321
|
}
|
311
322
|
// schemaForm.classList.add('form-inline');
|
312
323
|
jsform = $form.jsonForm({
|
pywebexec/version.py
CHANGED
@@ -4,8 +4,8 @@ pywebexec/cmdscript.py.ok,sha256=nWB11LXjQahCUwJ8jK0XuU1ekoMyN9Zu_FaOdVTpOwk,285
|
|
4
4
|
pywebexec/host_ip.py,sha256=oiCMlo2o3AkkgXDarUSx8T3FWXKI0vk1-EPnx5FGBd8,1332
|
5
5
|
pywebexec/pywebexec.py,sha256=1M5CtxKr5YkEMBhuVSrwnMNcVRuf7iQf-uxF4Lf0ouQ,48375
|
6
6
|
pywebexec/swagger.yaml,sha256=I_oLpp7Hqel8SDEEykvpmCT-Gv3ytGlziq9bvQOrtZY,7598
|
7
|
-
pywebexec/version.py,sha256=
|
8
|
-
pywebexec/static/css/form.css,sha256=
|
7
|
+
pywebexec/version.py,sha256=DnoODDuhoEPNHCrRl_hTa5YLRN14el-BkmsHbGdVxYQ,513
|
8
|
+
pywebexec/static/css/form.css,sha256=Wv73mrLgvuo22ugmb6Uh3Bo8nUfzZ3cEV3UtMYvZaZI,7224
|
9
9
|
pywebexec/static/css/markdown.css,sha256=br4-iK9wigTs54N2KHtjgZ4KLH0THVSvJo-XZAdMHiE,1970
|
10
10
|
pywebexec/static/css/style.css,sha256=pUmylXwbFIoXrdaJRVOUohlKIhOIilapH97NyIlgGV4,10343
|
11
11
|
pywebexec/static/css/swagger-ui.css,sha256=xhXN8fnUaIACGHuPIEIr9-qmyYr6Zx0k2wv4Qy7Bg1Y,154985
|
@@ -37,7 +37,7 @@ pywebexec/static/images/success.svg,sha256=NVwezvVMplt46ElW798vqGfrL21Mw_DWHUp_q
|
|
37
37
|
pywebexec/static/images/swagger-ui.svg,sha256=FR0yeOVwe4zCYKZAjCGcT_m0Mf25NexIVaSXifIkoU0,2117
|
38
38
|
pywebexec/static/js/executables.js,sha256=cTgCFHr_F9bFCirtfG_uR32vOY3vNUr4Ih3Wglj5lFc,11988
|
39
39
|
pywebexec/static/js/popup.js,sha256=IaKmk2U2hEn-Nv6krf_PPW6LaG8NcpCkJKb7lUX0qZo,11457
|
40
|
-
pywebexec/static/js/schemaform.js,sha256=
|
40
|
+
pywebexec/static/js/schemaform.js,sha256=OdHhwhSRi-ps_LiQX14vAeyNlnKgzKw3fXUl9nzoT6c,12231
|
41
41
|
pywebexec/static/js/script.js,sha256=TI3TSylgBxh_a6QvYWlg4CyJ6LMPxnhFl8WRtRDGD0Y,20810
|
42
42
|
pywebexec/static/js/swagger-form.js,sha256=CLcSHMhk5P4-_2MIRBoJLgEnIj_9keDDSzUugXHZjio,4565
|
43
43
|
pywebexec/static/js/js-yaml/LICENSE,sha256=oHvCRGi5ZUznalR9R6LbKC0HcztxXbTHOpi9Y5YflVA,1084
|
@@ -69,9 +69,9 @@ pywebexec/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
|
|
69
69
|
pywebexec/templates/index.html,sha256=w18O2plH_yS8bqlPsu5hwFFmCj9H2hWLSV8B6ADcSwU,3900
|
70
70
|
pywebexec/templates/popup.html,sha256=3kpMccKD_OLLhJ4Y9KRw6Ny8wQWjVaRrUfV9y5-bDiQ,1580
|
71
71
|
pywebexec/templates/swagger_ui.html,sha256=MAPr-z96VERAecDvX37V8q2Nxph-O0fNDBul1x2w9SI,1147
|
72
|
-
pywebexec-2.3.
|
73
|
-
pywebexec-2.3.
|
74
|
-
pywebexec-2.3.
|
75
|
-
pywebexec-2.3.
|
76
|
-
pywebexec-2.3.
|
77
|
-
pywebexec-2.3.
|
72
|
+
pywebexec-2.3.10.dist-info/licenses/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
|
73
|
+
pywebexec-2.3.10.dist-info/METADATA,sha256=JaOMNA_myIeVZiI6s8T4sefU7_wDHDVX3-24mzHYeRc,13016
|
74
|
+
pywebexec-2.3.10.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
75
|
+
pywebexec-2.3.10.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
|
76
|
+
pywebexec-2.3.10.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
|
77
|
+
pywebexec-2.3.10.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|