pywebexec 1.7.5__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.
@@ -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 == 100)
137
+ if (percentage == 1000)
138
138
  terminal.write(data.output);
139
139
  else {
140
- percentage = Math.round((outputLength * 100)/fullOutput.length);
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 = 100;
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 = 100;
221
+ slider.value = 1000;
222
222
  document.getElementById('outputPercentage').innerText = '100%';
223
223
  terminal.clear();
224
224
  terminal.reset();
@@ -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 == 100)
232
- terminal.write(data.output); //.replace(/ \r/g, "\r\n")); tty size mismatch
231
+ if (slider.value == 1000)
232
+ terminal.write(data.output);
233
233
  else {
234
- percentage = Math.round((outputLength * 100)/fullOutput.length);
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 = 100;
259
+ slider.value = 1000;
260
260
  outputPercentage.innerText = '100%';
261
261
  adjustOutputHeight();
262
262
  currentCommandId = command_id;
@@ -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);
@@ -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="100" value="100">
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>
@@ -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="100" value="100">
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
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.7.5'
16
- __version_tuple__ = version_tuple = (1, 7, 5)
15
+ __version__ = version = '1.7.6'
16
+ __version_tuple__ = version_tuple = (1, 7, 6)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pywebexec
3
- Version: 1.7.5
3
+ Version: 1.7.6
4
4
  Summary: Simple Python HTTP Exec Server
5
5
  Home-page: https://github.com/joknarf/pywebexec
6
6
  Author: Franck Jouvanceau
@@ -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=1PmSWdbIl6FG3GO33tTDihvotemU0-1S8uTOfaXKRIY,411
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=oVkwnOKHae11omBiTZs-00NVeS9HGNEiUo71JSwOqn4,9382
25
- pywebexec/static/js/script.js,sha256=TtniIzVgYa9A0nXPS13MpcGyGZfrM-r8eb0pmpqgXJA,18301
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=2fEN8cggHBEd8-RamDFpnekVJtIbRembFSw0-1YEptc,2979
37
- pywebexec/templates/popup.html,sha256=GT2jY7oOxpCaBaRl924QJWdFBmfSOP952T13d37R_pY,1506
38
- pywebexec-1.7.5.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
39
- pywebexec-1.7.5.dist-info/METADATA,sha256=ueE1L7xvCOkQEjAF480gyouw1IiRKk0tVOUahe1dxU4,8122
40
- pywebexec-1.7.5.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
41
- pywebexec-1.7.5.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
42
- pywebexec-1.7.5.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
43
- pywebexec-1.7.5.dist-info/RECORD,,
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,,