pywebexec 2.1.18__py3-none-any.whl → 2.1.19__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/js/schemaform.js +8 -6
- pywebexec/version.py +2 -2
- {pywebexec-2.1.18.dist-info → pywebexec-2.1.19.dist-info}/METADATA +1 -1
- {pywebexec-2.1.18.dist-info → pywebexec-2.1.19.dist-info}/RECORD +8 -8
- {pywebexec-2.1.18.dist-info → pywebexec-2.1.19.dist-info}/LICENSE +0 -0
- {pywebexec-2.1.18.dist-info → pywebexec-2.1.19.dist-info}/WHEEL +0 -0
- {pywebexec-2.1.18.dist-info → pywebexec-2.1.19.dist-info}/entry_points.txt +0 -0
- {pywebexec-2.1.18.dist-info → pywebexec-2.1.19.dist-info}/top_level.txt +0 -0
@@ -35,16 +35,17 @@ function extractKeysAndPlaceholders(obj, formoptions, prefix = '') {
|
|
35
35
|
let result = [];
|
36
36
|
|
37
37
|
for (let key in obj.properties) {
|
38
|
+
k = prefix ? `${prefix}.${key}` : key;
|
38
39
|
if (obj.properties[key].type === 'object' && obj.properties[key].properties) {
|
39
|
-
result = result.concat(extractKeysAndPlaceholders(obj.properties[key], formoptions,
|
40
|
+
result = result.concat(extractKeysAndPlaceholders(obj.properties[key], formoptions, k));
|
40
41
|
} else {
|
41
|
-
if (formoptions[
|
42
|
-
foptions = formoptions[
|
42
|
+
if (formoptions[k]) {
|
43
|
+
foptions = formoptions[k];
|
43
44
|
} else {
|
44
45
|
foptions = {};
|
45
46
|
}
|
46
47
|
result.push({
|
47
|
-
key:
|
48
|
+
key: k,
|
48
49
|
placeholder: obj.properties[key].example || null,
|
49
50
|
... foptions
|
50
51
|
});
|
@@ -52,7 +53,7 @@ function extractKeysAndPlaceholders(obj, formoptions, prefix = '') {
|
|
52
53
|
}
|
53
54
|
return result;
|
54
55
|
}
|
55
|
-
|
56
|
+
|
56
57
|
function createSchemaForm(form, schema, onSubmit, schemaName) {
|
57
58
|
if (schemaValues[schemaName]) {
|
58
59
|
value = schemaValues[schemaName];
|
@@ -169,7 +170,7 @@ function createSchemaForm(form, schema, onSubmit, schemaName) {
|
|
169
170
|
});
|
170
171
|
form[0].addEventListener('input', () => {
|
171
172
|
schemaValues[schemaName] = jsform.root.getFormValues();
|
172
|
-
|
173
|
+
localStorage.setItem('schemaValues', JSON.stringify(schemaValues));
|
173
174
|
});
|
174
175
|
|
175
176
|
return jsform;
|
@@ -209,5 +210,6 @@ async function getPostParametersSchema() {
|
|
209
210
|
|
210
211
|
let schemaForm;
|
211
212
|
let inputHandlers = [];
|
213
|
+
let schemaValues = JSON.parse(localStorage.getItem('schemaValues')) || {};
|
212
214
|
|
213
215
|
|
pywebexec/version.py
CHANGED
@@ -2,7 +2,7 @@ pywebexec/__init__.py,sha256=197fHJy0UDBwTTpGCGortZRr-w2kTaD7MxqdbVmTEi0,61
|
|
2
2
|
pywebexec/host_ip.py,sha256=Ud_HTflWVQ8789aoQ2RZdT1wGI-ccvrwSWGz_c7T3TI,1241
|
3
3
|
pywebexec/pywebexec.py,sha256=kufip6m7MWjCIjtheUYuFUZgnNS5_W3kC5gVFVSUVX8,45662
|
4
4
|
pywebexec/swagger.yaml,sha256=zP_Nz69vZx0iwbKTwiQgSs8rJRUTiGKRyIkWzMPANOE,6688
|
5
|
-
pywebexec/version.py,sha256=
|
5
|
+
pywebexec/version.py,sha256=H0zgjQHhg7kQrNE7IoxjBFCFnEnqqBnOnQe-ScWOyb4,513
|
6
6
|
pywebexec/static/css/form.css,sha256=eApJskeJ3MCzC7_p4gXgoIbvbG5s8m4bP1O4KHHqeiA,5293
|
7
7
|
pywebexec/static/css/markdown.css,sha256=3RzUnpVBdF6cQuB_NXV7hMTc0quYU8sfyuZcpsREj6A,1939
|
8
8
|
pywebexec/static/css/style.css,sha256=ynccbEDzK07rurLm-UirUs5j_hVfXlIgaHeUIq9WvA0,9969
|
@@ -35,7 +35,7 @@ pywebexec/static/images/success.svg,sha256=NVwezvVMplt46ElW798vqGfrL21Mw_DWHUp_q
|
|
35
35
|
pywebexec/static/images/swagger-ui.svg,sha256=FR0yeOVwe4zCYKZAjCGcT_m0Mf25NexIVaSXifIkoU0,2117
|
36
36
|
pywebexec/static/js/executables.js,sha256=V9SUmRQP9M69jYbahNrsV4_oI0ASZv_F6Ax9wj0S0Ww,12171
|
37
37
|
pywebexec/static/js/popup.js,sha256=0fr3pp4j9D2fXEVnHyQrx2bPWFHfgbb336dbewgH1d8,9023
|
38
|
-
pywebexec/static/js/schemaform.js,sha256=
|
38
|
+
pywebexec/static/js/schemaform.js,sha256=mpOYvAiCcuG6-3dJiOLaGKK14mBic0UWN5WrrKxCA_g,6403
|
39
39
|
pywebexec/static/js/script.js,sha256=KrtLF77vKvKomKAIy0rix-T1hx4VTgjkQunHvgs-jaA,17631
|
40
40
|
pywebexec/static/js/swagger-form.js,sha256=o2ovbTpqwy6H2yubV1NIi7VBQfAqW7seZWQ6O78ACb8,3837
|
41
41
|
pywebexec/static/js/js-yaml/LICENSE,sha256=oHvCRGi5ZUznalR9R6LbKC0HcztxXbTHOpi9Y5YflVA,1084
|
@@ -67,9 +67,9 @@ pywebexec/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
|
|
67
67
|
pywebexec/templates/index.html,sha256=w18O2plH_yS8bqlPsu5hwFFmCj9H2hWLSV8B6ADcSwU,3900
|
68
68
|
pywebexec/templates/popup.html,sha256=3kpMccKD_OLLhJ4Y9KRw6Ny8wQWjVaRrUfV9y5-bDiQ,1580
|
69
69
|
pywebexec/templates/swagger_ui.html,sha256=9ngyldkyEdLonBjl97mbIZUlVk-jxwcHrvFzMSrveyU,1067
|
70
|
-
pywebexec-2.1.
|
71
|
-
pywebexec-2.1.
|
72
|
-
pywebexec-2.1.
|
73
|
-
pywebexec-2.1.
|
74
|
-
pywebexec-2.1.
|
75
|
-
pywebexec-2.1.
|
70
|
+
pywebexec-2.1.19.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
|
71
|
+
pywebexec-2.1.19.dist-info/METADATA,sha256=NDtHARH0QFd_0FthJ2ui5LPVdw2O-1TtP4stJSenWWY,12811
|
72
|
+
pywebexec-2.1.19.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
|
73
|
+
pywebexec-2.1.19.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
|
74
|
+
pywebexec-2.1.19.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
|
75
|
+
pywebexec-2.1.19.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|