pywebexec 2.0.1__py3-none-any.whl → 2.0.3__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/pywebexec.py +4 -4
- pywebexec/static/css/form.css +4 -2
- pywebexec/static/js/swagger-form.js +5 -1
- pywebexec/version.py +2 -2
- {pywebexec-2.0.1.dist-info → pywebexec-2.0.3.dist-info}/METADATA +1 -1
- {pywebexec-2.0.1.dist-info → pywebexec-2.0.3.dist-info}/RECORD +10 -10
- {pywebexec-2.0.1.dist-info → pywebexec-2.0.3.dist-info}/LICENSE +0 -0
- {pywebexec-2.0.1.dist-info → pywebexec-2.0.3.dist-info}/WHEEL +0 -0
- {pywebexec-2.0.1.dist-info → pywebexec-2.0.3.dist-info}/entry_points.txt +0 -0
- {pywebexec-2.0.1.dist-info → pywebexec-2.0.3.dist-info}/top_level.txt +0 -0
pywebexec/pywebexec.py
CHANGED
@@ -626,7 +626,7 @@ def get_executable(cmd):
|
|
626
626
|
with open(help_file, 'r') as hf:
|
627
627
|
help_text = hf.read()
|
628
628
|
schema_file = f"{cmd}.schema.yaml"
|
629
|
-
schema =
|
629
|
+
schema = {}}
|
630
630
|
if os.path.exists(schema_file):
|
631
631
|
with open(schema_file, 'r') as sf:
|
632
632
|
schema = yaml.safe_load(sf)
|
@@ -636,9 +636,9 @@ def get_executable(cmd):
|
|
636
636
|
def get_executables():
|
637
637
|
executables_list = []
|
638
638
|
for f in os.listdir('.'):
|
639
|
-
|
640
|
-
|
641
|
-
|
639
|
+
exe = get_executable(f)
|
640
|
+
if exe:
|
641
|
+
executables_list.append(exe)
|
642
642
|
return sorted(executables_list, key=lambda x: x["command"])
|
643
643
|
|
644
644
|
|
pywebexec/static/css/form.css
CHANGED
@@ -6794,12 +6794,14 @@
|
|
6794
6794
|
gap: 10px;
|
6795
6795
|
}
|
6796
6796
|
.form-inline .checkbox {
|
6797
|
-
margin-top:
|
6798
|
-
margin-bottom:
|
6797
|
+
margin-top: 0px;
|
6798
|
+
margin-bottom: 1px;
|
6799
|
+
padding: 0;
|
6799
6800
|
}
|
6800
6801
|
input[type="checkbox"] {
|
6801
6802
|
display: block;
|
6802
6803
|
margin: 0;
|
6804
|
+
top: 5px;
|
6803
6805
|
}
|
6804
6806
|
li > div > label {
|
6805
6807
|
display: none;
|
@@ -85,7 +85,11 @@ window.onload = function() {
|
|
85
85
|
jsform = createSchemaForm($(form), swaggerSchemas[routePath], null);
|
86
86
|
// form.addEventListener("input", formInput(node, jsform));
|
87
87
|
form.addEventListener("input", addFormInputListener(node, jsform));
|
88
|
-
node.parentNode.
|
88
|
+
node.parentNode.insertBefore(form, node.nextSibling);
|
89
|
+
item1 = form.querySelector("input, select");
|
90
|
+
if (item1) {
|
91
|
+
item1.focus();
|
92
|
+
}
|
89
93
|
}
|
90
94
|
});
|
91
95
|
});
|
pywebexec/version.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
pywebexec/__init__.py,sha256=197fHJy0UDBwTTpGCGortZRr-w2kTaD7MxqdbVmTEi0,61
|
2
2
|
pywebexec/host_ip.py,sha256=Ud_HTflWVQ8789aoQ2RZdT1wGI-ccvrwSWGz_c7T3TI,1241
|
3
|
-
pywebexec/pywebexec.py,sha256=
|
3
|
+
pywebexec/pywebexec.py,sha256=lVAzAhaWL6JOOx19cT1ARp4m2GFGI5r1tWhe1mCJgDE,40742
|
4
4
|
pywebexec/swagger.yaml,sha256=0fM22kXURoLi97xSncRuVBLaUB5iYA6ROkB9YaLrlwM,5861
|
5
|
-
pywebexec/version.py,sha256=
|
5
|
+
pywebexec/version.py,sha256=qC56XKiT36ej9h43OdtcJz0_0Z1A6j9glLKPETi3AcQ,511
|
6
6
|
pywebexec/static/css/bootstrap.min.css,sha256=916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG_aiY1w,121200
|
7
|
-
pywebexec/static/css/form.css,sha256=
|
7
|
+
pywebexec/static/css/form.css,sha256=nvSiFzISMevqzT1oYyrH8xVnVPF-0V33eeh-A4M8-ZI,160643
|
8
8
|
pywebexec/static/css/markdown.css,sha256=CxvZsCt6h7VcNTeyrrEsZpd4VuTFmWA33Y68T2N0pOU,1881
|
9
9
|
pywebexec/static/css/style.css,sha256=JBG_0DphjyZmFlno_-EeKzihl6KeDlhcQUb6RIx2RIA,9434
|
10
10
|
pywebexec/static/css/swagger-ui.css,sha256=xhXN8fnUaIACGHuPIEIr9-qmyYr6Zx0k2wv4Qy7Bg1Y,154985
|
@@ -38,7 +38,7 @@ pywebexec/static/js/executables.js,sha256=NC5KZsq665oheVWVHTHRpr95iUHnLdF_Lck-ob
|
|
38
38
|
pywebexec/static/js/popup.js,sha256=0fr3pp4j9D2fXEVnHyQrx2bPWFHfgbb336dbewgH1d8,9023
|
39
39
|
pywebexec/static/js/schemaform.js,sha256=bd874Geg9vri1c_seUGVynxZswGb5IcyWLZxYlcryCA,2784
|
40
40
|
pywebexec/static/js/script.js,sha256=fwTo9Iz4xsl6wGs-Nm8-Ng8aXzDfvews5cHfzhSfg_0,17987
|
41
|
-
pywebexec/static/js/swagger-form.js,sha256=
|
41
|
+
pywebexec/static/js/swagger-form.js,sha256=JHK4D6SGVCCObk95rfkk7Lj9qQ1TEuYSDFRjeSHlIvg,3360
|
42
42
|
pywebexec/static/js/js-yaml/LICENSE,sha256=oHvCRGi5ZUznalR9R6LbKC0HcztxXbTHOpi9Y5YflVA,1084
|
43
43
|
pywebexec/static/js/js-yaml/js-yaml.min.js,sha256=Rdw90D3AegZwWiwpibjH9wkBPwS9U4bjJ51ORH8H69c,39430
|
44
44
|
pywebexec/static/js/marked/LICENSE.md,sha256=jjo_gvWaYJWPVsoI9EVkfDKkcz3HymwsRvbriYRxq5w,2942
|
@@ -67,9 +67,9 @@ pywebexec/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
|
|
67
67
|
pywebexec/templates/index.html,sha256=KeNLBH9PN_ZuGhzwrjvRTj2oBtbINv_SbwGQpOahNWo,3820
|
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.0.
|
71
|
-
pywebexec-2.0.
|
72
|
-
pywebexec-2.0.
|
73
|
-
pywebexec-2.0.
|
74
|
-
pywebexec-2.0.
|
75
|
-
pywebexec-2.0.
|
70
|
+
pywebexec-2.0.3.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
|
71
|
+
pywebexec-2.0.3.dist-info/METADATA,sha256=vrGf1Kj7xgo8KV13jlC6RKJMRIQadSLn26TOI295xIU,9644
|
72
|
+
pywebexec-2.0.3.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
73
|
+
pywebexec-2.0.3.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
|
74
|
+
pywebexec-2.0.3.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
|
75
|
+
pywebexec-2.0.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|