pywebexec 1.9.2__py3-none-any.whl → 1.9.3__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/commands.js +1 -1
- pywebexec/static/js/popup.js +2 -7
- pywebexec/static/js/script.js +8 -14
- pywebexec/version.py +2 -2
- {pywebexec-1.9.2.dist-info → pywebexec-1.9.3.dist-info}/METADATA +1 -1
- {pywebexec-1.9.2.dist-info → pywebexec-1.9.3.dist-info}/RECORD +10 -10
- {pywebexec-1.9.2.dist-info → pywebexec-1.9.3.dist-info}/LICENSE +0 -0
- {pywebexec-1.9.2.dist-info → pywebexec-1.9.3.dist-info}/WHEEL +0 -0
- {pywebexec-1.9.2.dist-info → pywebexec-1.9.3.dist-info}/entry_points.txt +0 -0
- {pywebexec-1.9.2.dist-info → pywebexec-1.9.3.dist-info}/top_level.txt +0 -0
pywebexec/static/js/commands.js
CHANGED
@@ -216,7 +216,7 @@ window.addEventListener('load', () => {
|
|
216
216
|
|
217
217
|
async function fetchExecutables() {
|
218
218
|
try {
|
219
|
-
const response = await fetch(`/executables
|
219
|
+
const response = await fetch(`/executables`);
|
220
220
|
if (!response.ok) {
|
221
221
|
throw new Error('Failed to fetch command status');
|
222
222
|
}
|
pywebexec/static/js/popup.js
CHANGED
@@ -98,11 +98,6 @@ function autoFit(scroll=true) {
|
|
98
98
|
if (scroll) terminal.scrollToBottom();
|
99
99
|
}
|
100
100
|
|
101
|
-
function getTokenParam() {
|
102
|
-
const urlParams = new URLSearchParams(window.location.search);
|
103
|
-
return urlParams.get('token') ? `?token=${urlParams.get('token')}` : '';
|
104
|
-
}
|
105
|
-
const urlToken = getTokenParam();
|
106
101
|
|
107
102
|
|
108
103
|
function setCommandStatus(status) {
|
@@ -161,14 +156,14 @@ async function viewOutput(command_id) {
|
|
161
156
|
slider.value = 1000;
|
162
157
|
adjustOutputHeight();
|
163
158
|
currentCommandId = command_id;
|
164
|
-
nextOutputLink = `/commands/${command_id}/output
|
159
|
+
nextOutputLink = `/commands/${command_id}/output`;
|
165
160
|
clearInterval(outputInterval);
|
166
161
|
terminal.clear();
|
167
162
|
terminal.reset();
|
168
163
|
fullOutput = '';
|
169
164
|
try {
|
170
165
|
// Updated endpoint below:
|
171
|
-
const response = await fetch(`/commands/${command_id}
|
166
|
+
const response = await fetch(`/commands/${command_id}`);
|
172
167
|
if (!response.ok) {
|
173
168
|
return;
|
174
169
|
}
|
pywebexec/static/js/script.js
CHANGED
@@ -108,12 +108,6 @@ function autoFit(scroll=true) {
|
|
108
108
|
if (scroll) terminal.scrollToBottom();
|
109
109
|
}
|
110
110
|
|
111
|
-
function getTokenParam() {
|
112
|
-
const urlParams = new URLSearchParams(window.location.search);
|
113
|
-
return urlParams.get('token') ? `?token=${urlParams.get('token')}` : '';
|
114
|
-
}
|
115
|
-
const urlToken = getTokenParam();
|
116
|
-
|
117
111
|
|
118
112
|
document.getElementById('launchForm').addEventListener('submit', async (event) => {
|
119
113
|
event.preventDefault();
|
@@ -122,7 +116,7 @@ document.getElementById('launchForm').addEventListener('submit', async (event) =
|
|
122
116
|
fitAddon.fit();
|
123
117
|
terminal.clear();
|
124
118
|
try {
|
125
|
-
const response = await fetch(`/commands
|
119
|
+
const response = await fetch(`/commands`, {
|
126
120
|
method: 'POST',
|
127
121
|
headers: {
|
128
122
|
'Content-Type': 'application/json'
|
@@ -144,7 +138,7 @@ document.getElementById('launchForm').addEventListener('submit', async (event) =
|
|
144
138
|
|
145
139
|
async function fetchCommands(hide=false) {
|
146
140
|
try {
|
147
|
-
const response = await fetch(`/commands
|
141
|
+
const response = await fetch(`/commands`);
|
148
142
|
if (!response.ok) {
|
149
143
|
document.getElementById('dimmer').style.display = 'block';
|
150
144
|
return;
|
@@ -252,13 +246,13 @@ async function viewOutput(command_id) {
|
|
252
246
|
outputPercentage.innerText = '100%';
|
253
247
|
adjustOutputHeight();
|
254
248
|
currentCommandId = command_id;
|
255
|
-
nextOutputLink = `/commands/${command_id}/output
|
249
|
+
nextOutputLink = `/commands/${command_id}/output`;
|
256
250
|
clearInterval(outputInterval);
|
257
251
|
terminal.clear();
|
258
252
|
terminal.reset();
|
259
253
|
fullOutput = '';
|
260
254
|
try {
|
261
|
-
const response = await fetch(`/commands/${command_id}
|
255
|
+
const response = await fetch(`/commands/${command_id}`);
|
262
256
|
if (!response.ok) {
|
263
257
|
outputInterval = setInterval(() => fetchOutput(nextOutputLink), 500);
|
264
258
|
}
|
@@ -289,7 +283,7 @@ async function viewOutput(command_id) {
|
|
289
283
|
async function openPopup(command_id, event) {
|
290
284
|
event.stopPropagation();
|
291
285
|
event.stopImmediatePropagation();
|
292
|
-
const popupUrl = `/commands/${command_id}/popup
|
286
|
+
const popupUrl = `/commands/${command_id}/popup`;
|
293
287
|
window.open(popupUrl, '_blank', 'width=1000,height=600');
|
294
288
|
}
|
295
289
|
|
@@ -297,7 +291,7 @@ async function relaunchCommand(command_id, event) {
|
|
297
291
|
event.stopPropagation();
|
298
292
|
event.stopImmediatePropagation();
|
299
293
|
try {
|
300
|
-
const response = await fetch(`/commands/${command_id}
|
294
|
+
const response = await fetch(`/commands/${command_id}`);
|
301
295
|
if (!response.ok) {
|
302
296
|
throw new Error('Failed to fetch command status');
|
303
297
|
}
|
@@ -308,7 +302,7 @@ async function relaunchCommand(command_id, event) {
|
|
308
302
|
}
|
309
303
|
fitAddon.fit();
|
310
304
|
terminal.clear();
|
311
|
-
const relaunchResponse = await fetch(`/commands
|
305
|
+
const relaunchResponse = await fetch(`/commands`, {
|
312
306
|
method: 'POST',
|
313
307
|
headers: {
|
314
308
|
'Content-Type': 'application/json'
|
@@ -336,7 +330,7 @@ async function stopCommand(command_id, event) {
|
|
336
330
|
event.stopPropagation();
|
337
331
|
event.stopImmediatePropagation();
|
338
332
|
try {
|
339
|
-
const response = await fetch(`/commands/${command_id}/stop
|
333
|
+
const response = await fetch(`/commands/${command_id}/stop`, {
|
340
334
|
method: 'PATCH'
|
341
335
|
});
|
342
336
|
if (!response.ok) {
|
pywebexec/version.py
CHANGED
@@ -2,7 +2,7 @@ pywebexec/__init__.py,sha256=197fHJy0UDBwTTpGCGortZRr-w2kTaD7MxqdbVmTEi0,61
|
|
2
2
|
pywebexec/host_ip.py,sha256=Ud_HTflWVQ8789aoQ2RZdT1wGI-ccvrwSWGz_c7T3TI,1241
|
3
3
|
pywebexec/pywebexec.py,sha256=uGOdA0nQ4Na9F12vZYXVBr11Uk9XoYuhdM8lJxEUC0Y,33679
|
4
4
|
pywebexec/swagger.yaml,sha256=-uafngZxQFHLdnWY-9SFCdgotO5wynFN2sTEyuBpQ_Q,1998
|
5
|
-
pywebexec/version.py,sha256=
|
5
|
+
pywebexec/version.py,sha256=9iRyJjXIu4ospHHgY6jThnBbx_i0E46WrhiFzzJdLrE,511
|
6
6
|
pywebexec/static/css/style.css,sha256=SuOU_USRh8BiAxEJ1LDYIx3asf3lETu_evWzA54gsBo,8145
|
7
7
|
pywebexec/static/css/xterm.css,sha256=uo5phWaUiJgcz0DAzv46uoByLLbJLeetYosL1xf68rY,5559
|
8
8
|
pywebexec/static/fonts/CommitMonoNerdFontMono-Regular.ttf,sha256=v6nZdSx5cs_TIic8Fujrjzg9u9glWjorDIr7RlwNceM,2370228
|
@@ -23,9 +23,9 @@ pywebexec/static/images/popup.svg,sha256=0Bl9A_v5cBsMPn6FnOlVWlAQKgd2zqiWQbhjcL9
|
|
23
23
|
pywebexec/static/images/resume.svg,sha256=99LP1Ya2JXakRCO9kW8JMuT_4a_CannF65EiuwtvK4A,607
|
24
24
|
pywebexec/static/images/running.svg,sha256=fBCYwYb2O9K4N3waC2nURP25NRwZlqR4PbDZy6JQMww,610
|
25
25
|
pywebexec/static/images/success.svg,sha256=NVwezvVMplt46ElW798vqGfrL21Mw_DWHUp_qiD_FU8,489
|
26
|
-
pywebexec/static/js/commands.js,sha256=
|
27
|
-
pywebexec/static/js/popup.js,sha256=
|
28
|
-
pywebexec/static/js/script.js,sha256=
|
26
|
+
pywebexec/static/js/commands.js,sha256=VhfRJsMqXIwrTRCkEhGzDuaG5WslmTGCcrEo_eqfl1w,8409
|
27
|
+
pywebexec/static/js/popup.js,sha256=0fr3pp4j9D2fXEVnHyQrx2bPWFHfgbb336dbewgH1d8,9023
|
28
|
+
pywebexec/static/js/script.js,sha256=ZtVBu2CtH5XgHIF9nflGNw-Aq26LXzYGmyd51MHrAHY,17851
|
29
29
|
pywebexec/static/js/xterm/LICENSE,sha256=EU1P4eXTull-_T9I80VuwnJXubB-zLzUl3xpEYj2T1M,1083
|
30
30
|
pywebexec/static/js/xterm/addon-canvas.js,sha256=ez6QTVvsmLVNJmdJlM-ZQ5bErwlxAQ_9DUmDIptl2TM,94607
|
31
31
|
pywebexec/static/js/xterm/addon-canvas.js.map,sha256=ECBA4B-BqUpdFeRzlsEWLSQnudnhLP-yPQJ8_hKquMo,379537
|
@@ -40,9 +40,9 @@ pywebexec/static/js/xterm/xterm.js.map,sha256=Y7O2Pb-fIS7Z8AC1D5s04_aiW_Jf1f4mCf
|
|
40
40
|
pywebexec/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
41
41
|
pywebexec/templates/index.html,sha256=VLcuC0RUkwefDugXWcXsjd5C3owKk5wCJoYIo48xbgk,3106
|
42
42
|
pywebexec/templates/popup.html,sha256=3kpMccKD_OLLhJ4Y9KRw6Ny8wQWjVaRrUfV9y5-bDiQ,1580
|
43
|
-
pywebexec-1.9.
|
44
|
-
pywebexec-1.9.
|
45
|
-
pywebexec-1.9.
|
46
|
-
pywebexec-1.9.
|
47
|
-
pywebexec-1.9.
|
48
|
-
pywebexec-1.9.
|
43
|
+
pywebexec-1.9.3.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
|
44
|
+
pywebexec-1.9.3.dist-info/METADATA,sha256=AaRXJqL-SrwHOVX5XQ4Rdxdpw0h46jL2YHE4awGcFnU,8154
|
45
|
+
pywebexec-1.9.3.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
46
|
+
pywebexec-1.9.3.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
|
47
|
+
pywebexec-1.9.3.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
|
48
|
+
pywebexec-1.9.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|