pywebexec 1.2.8__py3-none-any.whl → 1.2.9__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/css/style.css +5 -0
- pywebexec/static/js/commands.js +11 -1
- pywebexec/static/js/script.js +1 -1
- pywebexec/version.py +2 -2
- {pywebexec-1.2.8.dist-info → pywebexec-1.2.9.dist-info}/METADATA +1 -1
- {pywebexec-1.2.8.dist-info → pywebexec-1.2.9.dist-info}/RECORD +10 -10
- {pywebexec-1.2.8.dist-info → pywebexec-1.2.9.dist-info}/LICENSE +0 -0
- {pywebexec-1.2.8.dist-info → pywebexec-1.2.9.dist-info}/WHEEL +0 -0
- {pywebexec-1.2.8.dist-info → pywebexec-1.2.9.dist-info}/entry_points.txt +0 -0
- {pywebexec-1.2.8.dist-info → pywebexec-1.2.9.dist-info}/top_level.txt +0 -0
pywebexec/static/css/style.css
CHANGED
@@ -31,6 +31,10 @@ th {
|
|
31
31
|
width: 100%;
|
32
32
|
}
|
33
33
|
select { /* Safari bug */
|
34
|
+
-webkit-appearance: none;
|
35
|
+
-webkit-border-radius: none;
|
36
|
+
appearance: none;
|
37
|
+
outline: none;
|
34
38
|
font-size: 15px;
|
35
39
|
border: #aaa solid 1px;
|
36
40
|
border-radius: 5px;
|
@@ -180,6 +184,7 @@ form {
|
|
180
184
|
border: 1px solid #aaa;
|
181
185
|
border-radius: 5px;
|
182
186
|
padding: 0px 5px 0px 5px;
|
187
|
+
margin-top: 2px;
|
183
188
|
overflow-y: auto;
|
184
189
|
z-index: 1000;
|
185
190
|
}
|
pywebexec/static/js/commands.js
CHANGED
@@ -27,6 +27,7 @@ function filterCommands() {
|
|
27
27
|
}
|
28
28
|
if (nbVisibleItems>1) {
|
29
29
|
commandListSelect.size = Math.min(20, nbVisibleItems);
|
30
|
+
commandListSelect.style.display = 'block';
|
30
31
|
} else {
|
31
32
|
commandListSelect.style.display = 'none';
|
32
33
|
}
|
@@ -97,7 +98,16 @@ commandInput.addEventListener('keydown', (event) => {
|
|
97
98
|
});
|
98
99
|
|
99
100
|
paramsInput.addEventListener('keydown', (event) => {
|
100
|
-
if (
|
101
|
+
if (paramsInput.selectionStart > 0) return;
|
102
|
+
if (event.key === 'ArrowLeft') {
|
103
|
+
commandInput.focus();
|
104
|
+
commandInput.setSelectionRange(0, commandInput.value.length);
|
105
|
+
event.preventDefault();
|
106
|
+
return;
|
107
|
+
}
|
108
|
+
if (event.key === 'Backspace') {
|
109
|
+
val = paramsInput.value
|
110
|
+
paramsInput.value = val.slice(0, paramsInput.selectionStart) + val.slice(paramsInput.selectionEnd)
|
101
111
|
commandInput.focus();
|
102
112
|
commandInput.setSelectionRange(0, commandInput.value.length);
|
103
113
|
event.preventDefault();
|
pywebexec/static/js/script.js
CHANGED
@@ -53,7 +53,7 @@ document.getElementById('launchForm').addEventListener('submit', async (event) =
|
|
53
53
|
throw new Error('Failed to launch command');
|
54
54
|
}
|
55
55
|
const data = await response.json();
|
56
|
-
await new Promise(r => setTimeout(r,
|
56
|
+
await new Promise(r => setTimeout(r, 300));
|
57
57
|
fetchCommands();
|
58
58
|
viewOutput(data.command_id);
|
59
59
|
commandInput.focus()
|
pywebexec/version.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
pywebexec/__init__.py,sha256=4spIsVaF8RJt8S58AG_wWoORRNkws9Iwqprj27C3ljM,99
|
2
2
|
pywebexec/pywebexec.py,sha256=LRKJ2KgklZsHawd97mSKodBpH5gLm3oMza30hcLcekc,22735
|
3
|
-
pywebexec/version.py,sha256=
|
4
|
-
pywebexec/static/css/style.css,sha256=
|
3
|
+
pywebexec/version.py,sha256=zd_kt_wsJmqzo58jY4byL9Q3ywofrUGUVUN0VUMtx8w,411
|
4
|
+
pywebexec/static/css/style.css,sha256=nuJodEFojt_kCLPqbDBQAaBtWcRZ6uLjfI52mSf3EJA,5302
|
5
5
|
pywebexec/static/css/xterm.css,sha256=gy8_LGA7Q61DUf8ElwFQzHqHMBQnbbEmpgZcbdgeSHI,5383
|
6
6
|
pywebexec/static/images/aborted.svg,sha256=_mP43hU5QdRLFZIknBgjx-dIXrHgQG23-QV27ApXK2A,381
|
7
7
|
pywebexec/static/images/copy.svg,sha256=d9OwtGh5GzzZHzYcDrLfNxZYLth1Q64x7bRyYxu4Px0,622
|
@@ -11,17 +11,17 @@ pywebexec/static/images/failed.svg,sha256=ADZ7IKrUyOXtqpivnz3VcH0-Wru-I5MOi3OJAk
|
|
11
11
|
pywebexec/static/images/favicon.svg,sha256=ti80IfuDZwIvQcmJxkOeUaB1iMsiyOPmQmVO-h0y1IU,1126
|
12
12
|
pywebexec/static/images/running.gif,sha256=iYuzQGkMxrakSIwt6gPieKCImGZoSAHmU5MUNZa7cpw,25696
|
13
13
|
pywebexec/static/images/success.svg,sha256=PJDcCSTevJh7rkfSFLtc7P0pbeh8PVQBS8DaOLQemmc,489
|
14
|
-
pywebexec/static/js/commands.js,sha256=
|
15
|
-
pywebexec/static/js/script.js,sha256
|
14
|
+
pywebexec/static/js/commands.js,sha256=4noexrtU-nTNV1L-qp6QpoGxokELKOdYDxGChYELb0w,7347
|
15
|
+
pywebexec/static/js/script.js,sha256=-MAcmmeRqH4b0xcbHZWiOkJaIa9C6boZ-QOHuXXbMpc,9775
|
16
16
|
pywebexec/static/js/xterm/LICENSE,sha256=EU1P4eXTull-_T9I80VuwnJXubB-zLzUl3xpEYj2T1M,1083
|
17
17
|
pywebexec/static/js/xterm/ansi_up.min.js,sha256=KNGV0vEr30hNqKQimTAvGVy-icD5A1JqMQTtvYtKR2Y,13203
|
18
18
|
pywebexec/static/js/xterm/xterm-addon-fit.js,sha256=Pprm9pZe4SadVXS5Bc8b9VnC9Ex4QlWwA0pxOH53Gck,1460
|
19
19
|
pywebexec/static/js/xterm/xterm.js,sha256=Bzka76jZwEhVt_LlS0e0qMw7ryGa1p5qfxFyeohphBo,283371
|
20
20
|
pywebexec/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
21
21
|
pywebexec/templates/index.html,sha256=M-9JUAR5vrk-19oF8CpxkWJvyWJkZIa71AI-1jpsMWE,2116
|
22
|
-
pywebexec-1.2.
|
23
|
-
pywebexec-1.2.
|
24
|
-
pywebexec-1.2.
|
25
|
-
pywebexec-1.2.
|
26
|
-
pywebexec-1.2.
|
27
|
-
pywebexec-1.2.
|
22
|
+
pywebexec-1.2.9.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
|
23
|
+
pywebexec-1.2.9.dist-info/METADATA,sha256=nvOnY9AFUD_7E79MhEIg_fhniAxF1HRB5CcuUt5I4jQ,6936
|
24
|
+
pywebexec-1.2.9.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
25
|
+
pywebexec-1.2.9.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
|
26
|
+
pywebexec-1.2.9.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
|
27
|
+
pywebexec-1.2.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|