pywebexec 1.4.7__py3-none-any.whl → 1.4.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/static/js/popup.js +4 -1
- pywebexec/static/js/script.js +1 -1
- pywebexec/templates/popup.html +1 -1
- pywebexec/version.py +2 -2
- {pywebexec-1.4.7.dist-info → pywebexec-1.4.8.dist-info}/METADATA +1 -1
- {pywebexec-1.4.7.dist-info → pywebexec-1.4.8.dist-info}/RECORD +10 -10
- {pywebexec-1.4.7.dist-info → pywebexec-1.4.8.dist-info}/LICENSE +0 -0
- {pywebexec-1.4.7.dist-info → pywebexec-1.4.8.dist-info}/WHEEL +0 -0
- {pywebexec-1.4.7.dist-info → pywebexec-1.4.8.dist-info}/entry_points.txt +0 -0
- {pywebexec-1.4.7.dist-info → pywebexec-1.4.8.dist-info}/top_level.txt +0 -0
pywebexec/static/js/popup.js
CHANGED
@@ -31,6 +31,7 @@ let outputInterval = null;
|
|
31
31
|
let nextOutputLink = null;
|
32
32
|
let fullOutput = '';
|
33
33
|
let outputLength = 0;
|
34
|
+
let title = null;
|
34
35
|
|
35
36
|
function getTokenParam() {
|
36
37
|
const urlParams = new URLSearchParams(window.location.search);
|
@@ -61,6 +62,7 @@ async function fetchOutput(url) {
|
|
61
62
|
}
|
62
63
|
nextOutputLink = data.links.next;
|
63
64
|
if (data.status != 'running') {
|
65
|
+
title.innerText = `${data.status} ${title.innerText.split(' ').slice(1).join(' ')}`;
|
64
66
|
clearInterval(outputInterval);
|
65
67
|
}
|
66
68
|
}
|
@@ -84,7 +86,7 @@ async function viewOutput(command_id) {
|
|
84
86
|
return;
|
85
87
|
}
|
86
88
|
const data = await response.json();
|
87
|
-
|
89
|
+
title.innerText = `${data.status} ${data.command} ${data.params.join(' ')}`;
|
88
90
|
if (data.command == 'term')
|
89
91
|
terminal.options.cursorInactiveStyle = 'outline';
|
90
92
|
else
|
@@ -124,6 +126,7 @@ document.getElementById('outputSlider').addEventListener('input', sliderUpdateOu
|
|
124
126
|
|
125
127
|
window.addEventListener('resize', adjustOutputHeight);
|
126
128
|
window.addEventListener('load', () => {
|
129
|
+
title = document.getElementById('outputTitle');
|
127
130
|
const commandId = window.location.pathname.split('/').slice(-1)[0];
|
128
131
|
viewOutput(commandId);
|
129
132
|
});
|
pywebexec/static/js/script.js
CHANGED
@@ -187,7 +187,7 @@ async function viewOutput(command_id) {
|
|
187
187
|
|
188
188
|
async function openPopup(command_id) {
|
189
189
|
const popupUrl = `/popup/${command_id}${urlToken}`;
|
190
|
-
window.open(popupUrl, '_blank', 'width=
|
190
|
+
window.open(popupUrl, '_blank', 'width=1000,height=600');
|
191
191
|
}
|
192
192
|
|
193
193
|
async function relaunchCommand(command_id, event) {
|
pywebexec/templates/popup.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta charset="UTF-8">
|
5
5
|
<link rel="icon" href="/static/images/favicon.svg" type="image/svg+xml">
|
6
|
-
<title>Command Output</title>
|
6
|
+
<title id="outputTitle">Command Output</title>
|
7
7
|
<link rel="stylesheet" href="/static/css/style.css">
|
8
8
|
<link rel="stylesheet" href="/static/css/xterm.css">
|
9
9
|
</head>
|
pywebexec/version.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
pywebexec/__init__.py,sha256=4spIsVaF8RJt8S58AG_wWoORRNkws9Iwqprj27C3ljM,99
|
2
2
|
pywebexec/pywebexec.py,sha256=wediupUiLmpCaER3b_-07QitIiTimgmEBBxFLGT6-DQ,26125
|
3
|
-
pywebexec/version.py,sha256=
|
3
|
+
pywebexec/version.py,sha256=5V0g1zXAYqZG41mH-4FajHcVE05C9vUQm3ybra2NhKU,411
|
4
4
|
pywebexec/static/css/Consolas NF.ttf,sha256=DJEOzF0eqZ-kxu3Gs_VE8X0NJqiobBzmxWDGpdgGRxI,1313900
|
5
5
|
pywebexec/static/css/style.css,sha256=sDBhZ-csW5THIKfTDsHqxCSg6rIJ91Oh15sjw_HjJo4,5702
|
6
6
|
pywebexec/static/css/xterm.css,sha256=gy8_LGA7Q61DUf8ElwFQzHqHMBQnbbEmpgZcbdgeSHI,5383
|
@@ -14,18 +14,18 @@ pywebexec/static/images/popup.svg,sha256=0Bl9A_v5cBsMPn6FnOlVWlAQKgd2zqiWQbhjcL9
|
|
14
14
|
pywebexec/static/images/running.gif,sha256=iYuzQGkMxrakSIwt6gPieKCImGZoSAHmU5MUNZa7cpw,25696
|
15
15
|
pywebexec/static/images/success.svg,sha256=PJDcCSTevJh7rkfSFLtc7P0pbeh8PVQBS8DaOLQemmc,489
|
16
16
|
pywebexec/static/js/commands.js,sha256=8JDb3Q55EJOYf2Q9Uy6qEuqAnn1oGjM0RndgQ4aOjqo,7725
|
17
|
-
pywebexec/static/js/popup.js,sha256=
|
18
|
-
pywebexec/static/js/script.js,sha256=
|
17
|
+
pywebexec/static/js/popup.js,sha256=n5JaFwuoiBkYQJGOIva__qVY7eQBNQ9vHEr0lIKHTY4,4399
|
18
|
+
pywebexec/static/js/script.js,sha256=B7_rpQiiwgKpqtAprZx0RcSYjwPvd4SRbvgyF9dNzP0,11973
|
19
19
|
pywebexec/static/js/xterm/LICENSE,sha256=EU1P4eXTull-_T9I80VuwnJXubB-zLzUl3xpEYj2T1M,1083
|
20
20
|
pywebexec/static/js/xterm/ansi_up.min.js,sha256=KNGV0vEr30hNqKQimTAvGVy-icD5A1JqMQTtvYtKR2Y,13203
|
21
21
|
pywebexec/static/js/xterm/xterm-addon-fit.js,sha256=Pprm9pZe4SadVXS5Bc8b9VnC9Ex4QlWwA0pxOH53Gck,1460
|
22
22
|
pywebexec/static/js/xterm/xterm.js,sha256=Bzka76jZwEhVt_LlS0e0qMw7ryGa1p5qfxFyeohphBo,283371
|
23
23
|
pywebexec/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
24
24
|
pywebexec/templates/index.html,sha256=DYtT555wSNhnFtzzHhPMWJireynCJNnAuTytpoORQeE,2321
|
25
|
-
pywebexec/templates/popup.html,sha256=
|
26
|
-
pywebexec-1.4.
|
27
|
-
pywebexec-1.4.
|
28
|
-
pywebexec-1.4.
|
29
|
-
pywebexec-1.4.
|
30
|
-
pywebexec-1.4.
|
31
|
-
pywebexec-1.4.
|
25
|
+
pywebexec/templates/popup.html,sha256=6kmZKb0tGJ7jsr9DqDEriSMlbkW-PJTtCiUE9U5_FOE,837
|
26
|
+
pywebexec-1.4.8.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
|
27
|
+
pywebexec-1.4.8.dist-info/METADATA,sha256=1yv4C31GoevftBY7JMF3wp14lHRZmkCg4PVZoXjjgx8,7399
|
28
|
+
pywebexec-1.4.8.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
29
|
+
pywebexec-1.4.8.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
|
30
|
+
pywebexec-1.4.8.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
|
31
|
+
pywebexec-1.4.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|