pywebexec 2.0.3__py3-none-any.whl → 2.0.4__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 +1 -1
- pywebexec/static/css/form.css +4 -0
- pywebexec/static/js/swagger-form.js +7 -2
- pywebexec/version.py +2 -2
- {pywebexec-2.0.3.dist-info → pywebexec-2.0.4.dist-info}/METADATA +1 -1
- {pywebexec-2.0.3.dist-info → pywebexec-2.0.4.dist-info}/RECORD +10 -10
- {pywebexec-2.0.3.dist-info → pywebexec-2.0.4.dist-info}/LICENSE +0 -0
- {pywebexec-2.0.3.dist-info → pywebexec-2.0.4.dist-info}/WHEEL +0 -0
- {pywebexec-2.0.3.dist-info → pywebexec-2.0.4.dist-info}/entry_points.txt +0 -0
- {pywebexec-2.0.3.dist-info → pywebexec-2.0.4.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)
|
pywebexec/static/css/form.css
CHANGED
@@ -22,7 +22,7 @@ function addFormInputListener(textArea, jsform){
|
|
22
22
|
// Call React's onChange directly
|
23
23
|
fiber.memoizedProps.onChange(syntheticEvent);
|
24
24
|
}
|
25
|
-
|
25
|
+
textArea.dispatchEvent(new Event('input', { bubbles: true }));
|
26
26
|
};
|
27
27
|
}
|
28
28
|
|
@@ -71,7 +71,12 @@ window.onload = function() {
|
|
71
71
|
mutation.addedNodes.forEach(node => {
|
72
72
|
if (node.nodeType === Node.ELEMENT_NODE &&
|
73
73
|
node.classList.contains("body-param__text")) {
|
74
|
-
|
74
|
+
node.addEventListener("input", (e) => {
|
75
|
+
e.target.style.height = "0"
|
76
|
+
e.target.style.height = e.target.scrollHeight + "px";
|
77
|
+
});
|
78
|
+
node.style.height = "0"
|
79
|
+
node.style.height = node.scrollHeight + "px";
|
75
80
|
// Retrieve the data-path attribute from the first opblock-summary-path element
|
76
81
|
const routePath = $(node).closest('.opblock').find('.opblock-summary-path').first().attr('data-path');
|
77
82
|
const routePathId = `schemaForm${routePath.replaceAll("/", "_")}`;
|
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=BQtNhOJImk5jzAldE3XxQbkn4VHJ5kkGvWx4oLAxVsM,40741
|
4
4
|
pywebexec/swagger.yaml,sha256=0fM22kXURoLi97xSncRuVBLaUB5iYA6ROkB9YaLrlwM,5861
|
5
|
-
pywebexec/version.py,sha256=
|
5
|
+
pywebexec/version.py,sha256=hHsLQjEixjTj6AEtCt-Ss2jLhQAdUf9sgwvlKZ-FXt8,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=0sQY5wWB2haUizbr4scG5zHjUcBFHT9IQxQq5ziWnL8,160710
|
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=Gti7JKP6aHkeT0h5IYeHDbSFYn3nb-bdoUUWSbAQ5z0,3685
|
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.4.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
|
71
|
+
pywebexec-2.0.4.dist-info/METADATA,sha256=igWGMN2P0TjYmKQ19j-NYg5irUYBrUQsJ1JbdLHfDcA,9644
|
72
|
+
pywebexec-2.0.4.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
73
|
+
pywebexec-2.0.4.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
|
74
|
+
pywebexec-2.0.4.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
|
75
|
+
pywebexec-2.0.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|