pywebexec 1.5.7__py3-none-any.whl → 1.5.8__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 +19 -2
- pywebexec/version.py +2 -2
- {pywebexec-1.5.7.dist-info → pywebexec-1.5.8.dist-info}/METADATA +1 -1
- {pywebexec-1.5.7.dist-info → pywebexec-1.5.8.dist-info}/RECORD +8 -8
- {pywebexec-1.5.7.dist-info → pywebexec-1.5.8.dist-info}/LICENSE +0 -0
- {pywebexec-1.5.7.dist-info → pywebexec-1.5.8.dist-info}/WHEEL +0 -0
- {pywebexec-1.5.7.dist-info → pywebexec-1.5.8.dist-info}/entry_points.txt +0 -0
- {pywebexec-1.5.7.dist-info → pywebexec-1.5.8.dist-info}/top_level.txt +0 -0
pywebexec/pywebexec.py
CHANGED
@@ -323,8 +323,8 @@ def print_urls(command_id=None):
|
|
323
323
|
if token:
|
324
324
|
url_params = f"?token={token}"
|
325
325
|
if command_id:
|
326
|
-
print(f"{protocol}://{hostname}:{args.port}/
|
327
|
-
print(f"{protocol}://{ip}:{args.port}/
|
326
|
+
print(f"{protocol}://{hostname}:{args.port}/dopopup/{command_id}{url_params}")
|
327
|
+
print(f"{protocol}://{ip}:{args.port}/dopopup/{command_id}{url_params}")
|
328
328
|
else:
|
329
329
|
print(f"{protocol}://{hostname}:{args.port}{url_params}")
|
330
330
|
print(f"{protocol}://{ip}:{args.port}{url_params}")
|
@@ -750,6 +750,23 @@ def list_executables():
|
|
750
750
|
def popup(command_id):
|
751
751
|
return render_template('popup.html', command_id=command_id)
|
752
752
|
|
753
|
+
@app.route('/dopopup/<command_id>')
|
754
|
+
def do_popup(command_id):
|
755
|
+
return f"""
|
756
|
+
<html>
|
757
|
+
<head>
|
758
|
+
<script type="text/javascript">
|
759
|
+
window.onload = function() {{
|
760
|
+
window.open('/popup/{command_id}', '_blank', 'width=1000,height=600');
|
761
|
+
window.close();
|
762
|
+
}};
|
763
|
+
</script>
|
764
|
+
</head>
|
765
|
+
<body>
|
766
|
+
</body>
|
767
|
+
</html>
|
768
|
+
"""
|
769
|
+
|
753
770
|
def main():
|
754
771
|
global COMMAND_STATUS_DIR
|
755
772
|
basef = f"{CONFDIR}/pywebexec_{args.listen}:{args.port}"
|
pywebexec/version.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
pywebexec/__init__.py,sha256=4spIsVaF8RJt8S58AG_wWoORRNkws9Iwqprj27C3ljM,99
|
2
|
-
pywebexec/pywebexec.py,sha256=
|
3
|
-
pywebexec/version.py,sha256=
|
2
|
+
pywebexec/pywebexec.py,sha256=NmetF1ZQ7LsgmXDZwlwa2q05oXduVfh1AiOkKOu5HN8,28893
|
3
|
+
pywebexec/version.py,sha256=bpyG2JPTJKDi28Mtx907aomd5KtqHfk_t3lAAZFZAGk,411
|
4
4
|
pywebexec/static/css/Consolas NF.ttf,sha256=DJEOzF0eqZ-kxu3Gs_VE8X0NJqiobBzmxWDGpdgGRxI,1313900
|
5
5
|
pywebexec/static/css/style.css,sha256=OM-gJPLw0DcJwMgMXHDKc_9C87LYNu3bHssx_UtXi1Y,7273
|
6
6
|
pywebexec/static/css/xterm.css,sha256=uo5phWaUiJgcz0DAzv46uoByLLbJLeetYosL1xf68rY,5559
|
@@ -32,9 +32,9 @@ pywebexec/static/js/xterm/xterm.js.map,sha256=Y7O2Pb-fIS7Z8AC1D5s04_aiW_Jf1f4mCf
|
|
32
32
|
pywebexec/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
33
33
|
pywebexec/templates/index.html,sha256=XaT2IU7GcRj3iV-GmDPo8aghsYiUGxSH3kvPFzhaM2Y,2695
|
34
34
|
pywebexec/templates/popup.html,sha256=NrOFx_Qy4wyYh14BiDD_WRnFURr_WvlvEu3cOGD5JO8,1319
|
35
|
-
pywebexec-1.5.
|
36
|
-
pywebexec-1.5.
|
37
|
-
pywebexec-1.5.
|
38
|
-
pywebexec-1.5.
|
39
|
-
pywebexec-1.5.
|
40
|
-
pywebexec-1.5.
|
35
|
+
pywebexec-1.5.8.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
|
36
|
+
pywebexec-1.5.8.dist-info/METADATA,sha256=4uirNpcA6_97b7TO9uYp9oD77el8lDAbbGZx9y91oOk,7801
|
37
|
+
pywebexec-1.5.8.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
38
|
+
pywebexec-1.5.8.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
|
39
|
+
pywebexec-1.5.8.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
|
40
|
+
pywebexec-1.5.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|