pywebexec 1.7.4__py3-none-any.whl → 1.7.6__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 +7 -7
- pywebexec/static/js/script.js +10 -10
- pywebexec/templates/index.html +1 -1
- pywebexec/templates/popup.html +1 -1
- pywebexec/version.py +2 -2
- {pywebexec-1.7.4.dist-info → pywebexec-1.7.6.dist-info}/METADATA +1 -1
- {pywebexec-1.7.4.dist-info → pywebexec-1.7.6.dist-info}/RECORD +11 -11
- {pywebexec-1.7.4.dist-info → pywebexec-1.7.6.dist-info}/LICENSE +0 -0
- {pywebexec-1.7.4.dist-info → pywebexec-1.7.6.dist-info}/WHEEL +0 -0
- {pywebexec-1.7.4.dist-info → pywebexec-1.7.6.dist-info}/entry_points.txt +0 -0
- {pywebexec-1.7.4.dist-info → pywebexec-1.7.6.dist-info}/top_level.txt +0 -0
pywebexec/static/js/popup.js
CHANGED
@@ -134,12 +134,12 @@ async function fetchOutput(url) {
|
|
134
134
|
fullOutput += data.output;
|
135
135
|
if (fullOutput.length > maxSize)
|
136
136
|
fullOutput = fullOutput.slice(-maxSize);
|
137
|
-
if (percentage ==
|
137
|
+
if (percentage == 1000)
|
138
138
|
terminal.write(data.output);
|
139
139
|
else {
|
140
|
-
percentage = Math.round((outputLength *
|
140
|
+
percentage = Math.round((outputLength * 1000)/fullOutput.length);
|
141
141
|
slider.value = percentage;
|
142
|
-
document.getElementById('outputPercentage').innerText = `${percentage}%`;
|
142
|
+
document.getElementById('outputPercentage').innerText = `${Math.floor(percentage/10)}%`;
|
143
143
|
}
|
144
144
|
nextOutputLink = data.links.next;
|
145
145
|
if (data.status != 'running') {
|
@@ -160,7 +160,7 @@ async function fetchOutput(url) {
|
|
160
160
|
}
|
161
161
|
|
162
162
|
async function viewOutput(command_id) {
|
163
|
-
slider.value =
|
163
|
+
slider.value = 1000;
|
164
164
|
adjustOutputHeight();
|
165
165
|
currentCommandId = command_id;
|
166
166
|
nextOutputLink = `/command_output/${command_id}${urlToken}`;
|
@@ -207,18 +207,18 @@ function adjustOutputHeight() {
|
|
207
207
|
}
|
208
208
|
|
209
209
|
function sliderUpdateOutput() {
|
210
|
-
const percentage = slider.value;
|
210
|
+
const percentage = slider.value / 10;
|
211
211
|
outputLength = Math.floor((fullOutput.length * percentage) / 100);
|
212
212
|
const limitedOutput = fullOutput.slice(0, outputLength);
|
213
213
|
terminal.clear();
|
214
214
|
terminal.reset();
|
215
215
|
terminal.write(limitedOutput);
|
216
|
-
document.getElementById('outputPercentage').innerText = `${percentage}%`;
|
216
|
+
document.getElementById('outputPercentage').innerText = `${Math.floor(percentage)}%`;
|
217
217
|
}
|
218
218
|
|
219
219
|
function toggleFetchOutput() {
|
220
220
|
if (isPaused) {
|
221
|
-
slider.value =
|
221
|
+
slider.value = 1000;
|
222
222
|
document.getElementById('outputPercentage').innerText = '100%';
|
223
223
|
terminal.clear();
|
224
224
|
terminal.reset();
|
pywebexec/static/js/script.js
CHANGED
@@ -228,12 +228,12 @@ async function fetchOutput(url) {
|
|
228
228
|
fullOutput += data.output;
|
229
229
|
if (fullOutput.length > maxSize)
|
230
230
|
fullOutput = fullOutput.slice(-maxSize);
|
231
|
-
if (slider.value ==
|
232
|
-
terminal.write(data.output);
|
231
|
+
if (slider.value == 1000)
|
232
|
+
terminal.write(data.output);
|
233
233
|
else {
|
234
|
-
percentage = Math.round((outputLength *
|
234
|
+
percentage = Math.round((outputLength * 1000)/fullOutput.length);
|
235
235
|
slider.value = percentage;
|
236
|
-
outputPercentage.innerText = `${percentage}%`;
|
236
|
+
outputPercentage.innerText = `${Math.floor(percentage/10)}%`;
|
237
237
|
}
|
238
238
|
nextOutputLink = data.links.next;
|
239
239
|
if (data.status != 'running') {
|
@@ -256,7 +256,7 @@ function setCommandStatus(status) {
|
|
256
256
|
}
|
257
257
|
|
258
258
|
async function viewOutput(command_id) {
|
259
|
-
slider.value =
|
259
|
+
slider.value = 1000;
|
260
260
|
outputPercentage.innerText = '100%';
|
261
261
|
adjustOutputHeight();
|
262
262
|
currentCommandId = command_id;
|
@@ -361,7 +361,7 @@ async function stopCommand(command_id, event) {
|
|
361
361
|
function formatTime(time) {
|
362
362
|
if (!time || time === 'N/A') return 'N/A';
|
363
363
|
const date = new Date(time);
|
364
|
-
return date.toLocaleString(
|
364
|
+
return date.toLocaleString("sv-SE", { hour12: false, timeStyle: 'short', dateStyle: 'short' }).slice(5);
|
365
365
|
}
|
366
366
|
|
367
367
|
function formatDuration(startTime, endTime) {
|
@@ -370,8 +370,8 @@ function formatDuration(startTime, endTime) {
|
|
370
370
|
const end = new Date(endTime);
|
371
371
|
const duration = (end - start) / 1000;
|
372
372
|
const hours = Math.floor(duration / 3600);
|
373
|
-
const minutes = Math.floor((duration % 3600) / 60);
|
374
|
-
const seconds = Math.floor(duration % 60);
|
373
|
+
const minutes = Math.floor((duration % 3600) / 60).toString().padStart(2, '0');
|
374
|
+
const seconds = Math.floor(duration % 60).toString().padStart(2, '0');
|
375
375
|
return `${hours}h ${minutes}m ${seconds}s`;
|
376
376
|
}
|
377
377
|
|
@@ -420,13 +420,13 @@ function initResizer() {
|
|
420
420
|
|
421
421
|
function sliderUpdateOutput()
|
422
422
|
{
|
423
|
-
const percentage = slider.value;
|
423
|
+
const percentage = slider.value/10;
|
424
424
|
outputLength = Math.floor((fullOutput.length * percentage) / 100);
|
425
425
|
const limitedOutput = fullOutput.slice(0, outputLength);
|
426
426
|
terminal.clear();
|
427
427
|
terminal.reset();
|
428
428
|
terminal.write(limitedOutput);
|
429
|
-
outputPercentage.innerText = `${percentage}%`;
|
429
|
+
outputPercentage.innerText = `${Math.floor(percentage)}%`;
|
430
430
|
}
|
431
431
|
|
432
432
|
slider.addEventListener('input', sliderUpdateOutput);
|
pywebexec/templates/index.html
CHANGED
@@ -47,7 +47,7 @@
|
|
47
47
|
<div id="pausedMessage" class="paused-message">Paused</div>
|
48
48
|
<div class="slider-container">
|
49
49
|
<span class="command-info"><span id="commandStatus" class="status-icon"></span><span id="commandInfo"></span></span>
|
50
|
-
<input type="range" id="outputSlider" min="0" max="
|
50
|
+
<input type="range" id="outputSlider" min="0" max="1000" value="1000">
|
51
51
|
<label for="outputSlider"><span id="outputPercentage">100%</span></label>
|
52
52
|
<button id="toggleFetch" class="pause-resume-button pause"></button>
|
53
53
|
<button id="decreaseFontSize" class="font-size-button font-decrease"></button>
|
pywebexec/templates/popup.html
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
<div id="pausedMessage" class="paused-message">Paused</div>
|
16
16
|
<div class="slider-container">
|
17
17
|
<span class="command-info"><span id="commandStatus"></span><span id="commandInfo"></span></span>
|
18
|
-
<input type="range" id="outputSlider" min="0" max="
|
18
|
+
<input type="range" id="outputSlider" min="0" max="1000" value="1000">
|
19
19
|
<label for="outputSlider"><span id="outputPercentage">100%</span></label>
|
20
20
|
<button id="toggleFetch" class="pause-resume-button pause"></button>
|
21
21
|
<button id="decreaseFontSize" class="font-size-button font-decrease"></button>
|
pywebexec/version.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
pywebexec/__init__.py,sha256=4spIsVaF8RJt8S58AG_wWoORRNkws9Iwqprj27C3ljM,99
|
2
2
|
pywebexec/pywebexec.py,sha256=VBR6KmRiHNCd0ZvGEu_5sTqzVrUEPBhM8Hi6knS1QcA,33526
|
3
|
-
pywebexec/version.py,sha256=
|
3
|
+
pywebexec/version.py,sha256=MBf1E8pj__B1I7taPBbzX7t8--SrOKz18oUxfeUZC7U,411
|
4
4
|
pywebexec/static/css/Consolas NF.ttf,sha256=DJEOzF0eqZ-kxu3Gs_VE8X0NJqiobBzmxWDGpdgGRxI,1313900
|
5
5
|
pywebexec/static/css/style.css,sha256=3s7QgbCh4wb7kfZ7Pjo-B6o3lDIBogZ-3j6AfaPdpzU,8209
|
6
6
|
pywebexec/static/css/xterm.css,sha256=uo5phWaUiJgcz0DAzv46uoByLLbJLeetYosL1xf68rY,5559
|
@@ -21,8 +21,8 @@ pywebexec/static/images/resume.svg,sha256=99LP1Ya2JXakRCO9kW8JMuT_4a_CannF65Eiuw
|
|
21
21
|
pywebexec/static/images/running.svg,sha256=fBCYwYb2O9K4N3waC2nURP25NRwZlqR4PbDZy6JQMww,610
|
22
22
|
pywebexec/static/images/success.svg,sha256=NVwezvVMplt46ElW798vqGfrL21Mw_DWHUp_qiD_FU8,489
|
23
23
|
pywebexec/static/js/commands.js,sha256=h2fkd9qpypLBxvhEEbay23nwuqUwcKJA0vHugcyL8pU,7961
|
24
|
-
pywebexec/static/js/popup.js,sha256=
|
25
|
-
pywebexec/static/js/script.js,sha256=
|
24
|
+
pywebexec/static/js/popup.js,sha256=MFGDVjTrddLeeAWmUarWSSP1LiQBOJGPNaSGLn994V4,9418
|
25
|
+
pywebexec/static/js/script.js,sha256=s9tL8CUXCPjCGmmug0g5E2h_J5kYuTP1eok1EYt7Q98,18287
|
26
26
|
pywebexec/static/js/xterm/LICENSE,sha256=EU1P4eXTull-_T9I80VuwnJXubB-zLzUl3xpEYj2T1M,1083
|
27
27
|
pywebexec/static/js/xterm/addon-canvas.js,sha256=ez6QTVvsmLVNJmdJlM-ZQ5bErwlxAQ_9DUmDIptl2TM,94607
|
28
28
|
pywebexec/static/js/xterm/addon-canvas.js.map,sha256=ECBA4B-BqUpdFeRzlsEWLSQnudnhLP-yPQJ8_hKquMo,379537
|
@@ -33,11 +33,11 @@ pywebexec/static/js/xterm/addon-unicode11.js.map,sha256=paDj5KKtTIUGedQn2x7CaUTD
|
|
33
33
|
pywebexec/static/js/xterm/xterm.js,sha256=H5kaw7Syg-v5bmCuI6AKUnZd06Lkb6b92p8aqwMvdJU,289441
|
34
34
|
pywebexec/static/js/xterm/xterm.js.map,sha256=Y7O2Pb-fIS7Z8AC1D5s04_aiW_Jf1f4mCfN0U_OI6Zw,1118392
|
35
35
|
pywebexec/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
36
|
-
pywebexec/templates/index.html,sha256=
|
37
|
-
pywebexec/templates/popup.html,sha256=
|
38
|
-
pywebexec-1.7.
|
39
|
-
pywebexec-1.7.
|
40
|
-
pywebexec-1.7.
|
41
|
-
pywebexec-1.7.
|
42
|
-
pywebexec-1.7.
|
43
|
-
pywebexec-1.7.
|
36
|
+
pywebexec/templates/index.html,sha256=CcLN3v_42lnj4juiTntDTiGHJ8-zQnmB9oqpSK_0kks,2981
|
37
|
+
pywebexec/templates/popup.html,sha256=f5m4u8WKpkevL2mQamGqo4_y-rSuLOXGuNsezuUbniY,1508
|
38
|
+
pywebexec-1.7.6.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
|
39
|
+
pywebexec-1.7.6.dist-info/METADATA,sha256=7CbhFG_ZD1Jkd5D0oibOtzlTZHoQIdxN1CkeUUpCI7g,8122
|
40
|
+
pywebexec-1.7.6.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
41
|
+
pywebexec-1.7.6.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
|
42
|
+
pywebexec-1.7.6.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
|
43
|
+
pywebexec-1.7.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|