pywebexec 1.1.8__py3-none-any.whl → 1.1.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 +2 -2
- pywebexec/static/js/script.js +6 -5
- pywebexec/version.py +2 -2
- {pywebexec-1.1.8.dist-info → pywebexec-1.1.9.dist-info}/METADATA +1 -1
- {pywebexec-1.1.8.dist-info → pywebexec-1.1.9.dist-info}/RECORD +9 -9
- {pywebexec-1.1.8.dist-info → pywebexec-1.1.9.dist-info}/LICENSE +0 -0
- {pywebexec-1.1.8.dist-info → pywebexec-1.1.9.dist-info}/WHEEL +0 -0
- {pywebexec-1.1.8.dist-info → pywebexec-1.1.9.dist-info}/entry_points.txt +0 -0
- {pywebexec-1.1.8.dist-info → pywebexec-1.1.9.dist-info}/top_level.txt +0 -0
pywebexec/static/css/style.css
CHANGED
|
@@ -89,10 +89,10 @@ form {
|
|
|
89
89
|
background-image: url("/static/images/aborted.svg")
|
|
90
90
|
}
|
|
91
91
|
.copy_clip {
|
|
92
|
-
padding-right:
|
|
92
|
+
padding-right: 20px;
|
|
93
93
|
background-repeat: no-repeat;
|
|
94
94
|
background-position: right top;
|
|
95
|
-
background-size:
|
|
95
|
+
background-size: 20px 12px;
|
|
96
96
|
white-space: nowrap;
|
|
97
97
|
}
|
|
98
98
|
.copy_clip:hover {
|
pywebexec/static/js/script.js
CHANGED
|
@@ -33,7 +33,7 @@ async function fetchCommands() {
|
|
|
33
33
|
commandRow.onclick = () => viewOutput(command.command_id);
|
|
34
34
|
commandRow.innerHTML = `
|
|
35
35
|
<td class="monospace">
|
|
36
|
-
<span class="copy_clip" onclick="copyToClipboard('${command.command_id}', this)">${command.command_id.slice(0, 8)}</span>
|
|
36
|
+
<span class="copy_clip" onclick="copyToClipboard('${command.command_id}', this, event)">${command.command_id.slice(0, 8)}</span>
|
|
37
37
|
</td>
|
|
38
38
|
<td><span class="status-icon status-${command.status}"></span>${command.status}</td>
|
|
39
39
|
<td>${formatTime(command.start_time)}</td>
|
|
@@ -41,8 +41,7 @@ async function fetchCommands() {
|
|
|
41
41
|
<td>${command.exit_code}</td>
|
|
42
42
|
<td>${command.command.replace(/^\.\//, '')}</td>
|
|
43
43
|
<td>
|
|
44
|
-
${command.status === 'running' ? `<button onclick="stopCommand('${command.command_id}')">Stop</button>` :
|
|
45
|
-
`}
|
|
44
|
+
${command.status === 'running' ? `<button onclick="stopCommand('${command.command_id}')">Stop</button>` : `<button onclick="relaunchCommand('${command.command_id}')">Run</button>`}
|
|
46
45
|
</td>
|
|
47
46
|
<td class="monospace outcol">${command.last_output_line || ''}</td>
|
|
48
47
|
`;
|
|
@@ -146,12 +145,14 @@ function formatDuration(startTime, endTime) {
|
|
|
146
145
|
return `${hours}h ${minutes}m ${seconds}s`;
|
|
147
146
|
}
|
|
148
147
|
|
|
149
|
-
function copyToClipboard(text, element) {
|
|
148
|
+
function copyToClipboard(text, element, event) {
|
|
149
|
+
event.stopPropagation();
|
|
150
|
+
event.stopImmediatePropagation();
|
|
150
151
|
navigator.clipboard.writeText(text).then(() => {
|
|
151
152
|
element.classList.add('copy_clip_ok');
|
|
152
153
|
setTimeout(() => {
|
|
153
154
|
element.classList.remove('copy_clip_ok');
|
|
154
|
-
},
|
|
155
|
+
}, 1000);
|
|
155
156
|
});
|
|
156
157
|
}
|
|
157
158
|
|
pywebexec/version.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
pywebexec/__init__.py,sha256=4spIsVaF8RJt8S58AG_wWoORRNkws9Iwqprj27C3ljM,99
|
|
2
2
|
pywebexec/pywebexec.py,sha256=fKJElVfBOK_xKlKLPxawrk2gvHT7u8HtK5MAoC2UqPw,21392
|
|
3
|
-
pywebexec/version.py,sha256=
|
|
4
|
-
pywebexec/static/css/style.css,sha256=
|
|
3
|
+
pywebexec/version.py,sha256=kY10SYOU8efy6n9UXsgUY0JUzH_yxPL5Iy3_X-z7LwU,411
|
|
4
|
+
pywebexec/static/css/style.css,sha256=rYpzhBftpZ9pw_FTZFwcAnGC9-EhVOOSy6w56Ybe-Wk,2902
|
|
5
5
|
pywebexec/static/images/aborted.svg,sha256=_mP43hU5QdRLFZIknBgjx-dIXrHgQG23-QV27ApXK2A,381
|
|
6
6
|
pywebexec/static/images/copy.svg,sha256=d9OwtGh5GzzZHzYcDrLfNxZYLth1Q64x7bRyYxu4Px0,622
|
|
7
7
|
pywebexec/static/images/copy_ok.svg,sha256=mEqUVUhSq8xaJK2msQkxRawnz_KwlCZ-tok8QS6hJ3g,451
|
|
@@ -9,12 +9,12 @@ pywebexec/static/images/failed.svg,sha256=ADZ7IKrUyOXtqpivnz3VcH0-Wru-I5MOi3OJAk
|
|
|
9
9
|
pywebexec/static/images/favicon.svg,sha256=ti80IfuDZwIvQcmJxkOeUaB1iMsiyOPmQmVO-h0y1IU,1126
|
|
10
10
|
pywebexec/static/images/running.gif,sha256=iYuzQGkMxrakSIwt6gPieKCImGZoSAHmU5MUNZa7cpw,25696
|
|
11
11
|
pywebexec/static/images/success.svg,sha256=PJDcCSTevJh7rkfSFLtc7P0pbeh8PVQBS8DaOLQemmc,489
|
|
12
|
-
pywebexec/static/js/script.js,sha256=
|
|
12
|
+
pywebexec/static/js/script.js,sha256=3TGSrREfpBzp37yvTs0uCcs_hxWibEeApzJDvcC2JMY,7152
|
|
13
13
|
pywebexec/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
pywebexec/templates/index.html,sha256=7dFHAmHXGMrK1-M6PIAbMS0bv7Pi5-6vDoyUk3irnQc,1346
|
|
15
|
-
pywebexec-1.1.
|
|
16
|
-
pywebexec-1.1.
|
|
17
|
-
pywebexec-1.1.
|
|
18
|
-
pywebexec-1.1.
|
|
19
|
-
pywebexec-1.1.
|
|
20
|
-
pywebexec-1.1.
|
|
15
|
+
pywebexec-1.1.9.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
|
|
16
|
+
pywebexec-1.1.9.dist-info/METADATA,sha256=PjEKCLHjDBM7SdMUC9-re4riB7E1ZcwNVHrPdUYMYkk,6905
|
|
17
|
+
pywebexec-1.1.9.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
18
|
+
pywebexec-1.1.9.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
|
|
19
|
+
pywebexec-1.1.9.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
|
|
20
|
+
pywebexec-1.1.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|