pywebexec 1.5.1__py3-none-any.whl → 1.5.2__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.
@@ -279,3 +279,17 @@ span {
279
279
  height: 16px;
280
280
  }
281
281
 
282
+ .font-size-button {
283
+ background-color: #444;
284
+ color: #eee;
285
+ border: none;
286
+ border-radius: 5px;
287
+ cursor: pointer;
288
+ font-size: 14px;
289
+ width: 45px;
290
+ }
291
+
292
+ .font-size-button:hover {
293
+ background-color: #666;
294
+ }
295
+
@@ -1,12 +1,13 @@
1
1
  const maxScrollback = 99999;
2
2
  const maxSize = 10485760; // 10MB
3
+ let fontSize = 14;
3
4
  let terminal = new Terminal({
4
5
  cursorBlink: false,
5
6
  cursorInactiveStyle: 'none',
6
7
  disableStdin: true,
7
8
  convertEol: true,
8
9
  fontFamily: 'Consolas NF, monospace, courier-new, courier',
9
- fontSize: 14,
10
+ fontSize: fontSize,
10
11
  scrollback: maxScrollback,
11
12
  theme: {
12
13
  background: '#111412',
@@ -142,3 +143,15 @@ window.addEventListener('load', () => {
142
143
  const commandId = window.location.pathname.split('/').slice(-1)[0];
143
144
  viewOutput(commandId);
144
145
  });
146
+
147
+ document.getElementById('decreaseFontSize').addEventListener('click', () => {
148
+ fontSize = Math.max(8, fontSize - 1);
149
+ terminal.options.fontSize = fontSize;
150
+ fitAddon.fit();
151
+ });
152
+
153
+ document.getElementById('increaseFontSize').addEventListener('click', () => {
154
+ fontSize = Math.min(32, fontSize + 1);
155
+ terminal.options.fontSize = fontSize;
156
+ fitAddon.fit();
157
+ });
@@ -7,6 +7,7 @@ let fullOutput = '';
7
7
  let outputLength = 0;
8
8
  const maxScrollback = 99999;
9
9
  const maxSize = 10485760; // 10MB
10
+ let fontSize = 14;
10
11
 
11
12
  function initTerminal()
12
13
  {
@@ -16,7 +17,7 @@ function initTerminal()
16
17
  disableStdin: true,
17
18
  convertEol: true,
18
19
  fontFamily: 'Consolas NF, monospace, courier-new, courier',
19
- fontSize: 14,
20
+ fontSize: fontSize,
20
21
  scrollback: maxScrollback,
21
22
  theme: {
22
23
  background: '#111412',
@@ -334,8 +335,22 @@ function sliderUpdateOutput()
334
335
 
335
336
  slider.addEventListener('input', sliderUpdateOutput);
336
337
 
338
+ document.getElementById('decreaseFontSize').addEventListener('click', () => {
339
+ fontSize = Math.max(8, fontSize - 1);
340
+ terminal.options.fontSize = fontSize;
341
+ fitAddon.fit();
342
+ });
343
+
344
+ document.getElementById('increaseFontSize').addEventListener('click', () => {
345
+ fontSize = Math.min(32, fontSize + 1);
346
+ terminal.options.fontSize = fontSize;
347
+ fitAddon.fit();
348
+ });
349
+
337
350
  window.addEventListener('resize', adjustOutputHeight);
338
351
  window.addEventListener('load', initResizer);
339
352
 
340
353
  fetchCommands();
341
354
  setInterval(fetchCommands, 5000);
355
+
356
+
@@ -47,6 +47,8 @@
47
47
  <div class="slider-container">
48
48
  <input type="range" id="outputSlider" min="0" max="100" value="100">
49
49
  <label for="outputSlider"><span id="outputPercentage">100%</span></label>
50
+ <button id="decreaseFontSize" class="font-size-button">A&ndash;</button>
51
+ <button id="increaseFontSize" class="font-size-button">A+</button>
50
52
  </div>
51
53
  <script src="/static/js/xterm/xterm.js"></script>
52
54
  <script src="/static/js/xterm/addon-fit.js"></script>
@@ -15,10 +15,11 @@
15
15
  <div class="slider-container">
16
16
  <input type="range" id="outputSlider" min="0" max="100" value="100">
17
17
  <label for="outputSlider"><span id="outputPercentage">100%</span></label>
18
+ <button id="decreaseFontSize" class="font-size-button">A&ndash;</button>
19
+ <button id="increaseFontSize" class="font-size-button">A+</button>
18
20
  </div>
19
- <script src="/static/js/xterm/ansi_up.min.js"></script>
20
21
  <script src="/static/js/xterm/xterm.js"></script>
21
- <script src="/static/js/xterm/xterm-addon-fit.js"></script>
22
+ <script src="/static/js/xterm/addon-fit.js"></script>
22
23
  <script type="text/javascript" src="/static/js/popup.js"></script>
23
24
  </body>
24
25
  </html>
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.5.1'
16
- __version_tuple__ = version_tuple = (1, 5, 1)
15
+ __version__ = version = '1.5.2'
16
+ __version_tuple__ = version_tuple = (1, 5, 2)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pywebexec
3
- Version: 1.5.1
3
+ Version: 1.5.2
4
4
  Summary: Simple Python HTTP Exec Server
5
5
  Home-page: https://github.com/joknarf/pywebexec
6
6
  Author: Franck Jouvanceau
@@ -1,8 +1,8 @@
1
1
  pywebexec/__init__.py,sha256=4spIsVaF8RJt8S58AG_wWoORRNkws9Iwqprj27C3ljM,99
2
2
  pywebexec/pywebexec.py,sha256=hacpB6OnS_ZN1SBmuReTUkvAuenl6czD6aD_yV8wusY,28462
3
- pywebexec/version.py,sha256=W6YuN1JOd6M-rSt9HDXK91AutRDYXTjJT_LQg3rCsjk,411
3
+ pywebexec/version.py,sha256=P-JlE1bO3FGbbntvKHqxjgKk7ORvjFhybkK-h8R2s5g,411
4
4
  pywebexec/static/css/Consolas NF.ttf,sha256=DJEOzF0eqZ-kxu3Gs_VE8X0NJqiobBzmxWDGpdgGRxI,1313900
5
- pywebexec/static/css/style.css,sha256=3r7WkJxq0QVbjlviJa5FwXDhJGZzf8Z6VxpcnqIzXGw,5774
5
+ pywebexec/static/css/style.css,sha256=oHjmcuKWG6Gv03POupZgvIREgBQMfiPZLguKKnXGf70,6000
6
6
  pywebexec/static/css/xterm.css,sha256=uo5phWaUiJgcz0DAzv46uoByLLbJLeetYosL1xf68rY,5559
7
7
  pywebexec/static/images/aborted.svg,sha256=_mP43hU5QdRLFZIknBgjx-dIXrHgQG23-QV27ApXK2A,381
8
8
  pywebexec/static/images/copy.svg,sha256=d9OwtGh5GzzZHzYcDrLfNxZYLth1Q64x7bRyYxu4Px0,622
@@ -14,19 +14,19 @@ pywebexec/static/images/popup.svg,sha256=0Bl9A_v5cBsMPn6FnOlVWlAQKgd2zqiWQbhjcL9
14
14
  pywebexec/static/images/running.gif,sha256=iYuzQGkMxrakSIwt6gPieKCImGZoSAHmU5MUNZa7cpw,25696
15
15
  pywebexec/static/images/success.svg,sha256=PJDcCSTevJh7rkfSFLtc7P0pbeh8PVQBS8DaOLQemmc,489
16
16
  pywebexec/static/js/commands.js,sha256=8JDb3Q55EJOYf2Q9Uy6qEuqAnn1oGjM0RndgQ4aOjqo,7725
17
- pywebexec/static/js/popup.js,sha256=aLmkeBOjVg9DECoY-rEFkw-7f9XuAE6r3AQ28Pxbm2c,4796
18
- pywebexec/static/js/script.js,sha256=JZWIZaYRBjFD3JEYx9pJy-ITZgn31KiuAO_334SVWbI,12292
17
+ pywebexec/static/js/popup.js,sha256=pNNsUotHoLx7YYtiXCIUhD5L6EY46U2KFrFIQXFwPJM,5196
18
+ pywebexec/static/js/script.js,sha256=DpgFByRpVj07QJDv1-DgQ-P9EI9HEppy-4ozZzfbkOo,12701
19
19
  pywebexec/static/js/xterm/LICENSE,sha256=EU1P4eXTull-_T9I80VuwnJXubB-zLzUl3xpEYj2T1M,1083
20
20
  pywebexec/static/js/xterm/addon-fit.js,sha256=va76Nwsb_ELuiNRv5gckAJAqTUstRc2TQ43amyPJcIk,1497
21
21
  pywebexec/static/js/xterm/addon-fit.js.map,sha256=zPUOkZVKfQNvj1W_fUktD5UNNu80XwqfSEWXBVxA8uY,5477
22
22
  pywebexec/static/js/xterm/xterm.js,sha256=H5kaw7Syg-v5bmCuI6AKUnZd06Lkb6b92p8aqwMvdJU,289441
23
23
  pywebexec/static/js/xterm/xterm.js.map,sha256=Y7O2Pb-fIS7Z8AC1D5s04_aiW_Jf1f4mCfN0U_OI6Zw,1118392
24
24
  pywebexec/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
- pywebexec/templates/index.html,sha256=u5nyZ3QhMPCet2VP3dSSzXXeUg0NycX8DJXxu3ijVuI,2255
26
- pywebexec/templates/popup.html,sha256=T6_tAOUoA58sA1oxB5pb8i42RenoMdCsH8T86Gccb6Q,945
27
- pywebexec-1.5.1.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
28
- pywebexec-1.5.1.dist-info/METADATA,sha256=XF7ObWlZzD1iEOQX1u01e_F5bSqR3bWJu0mSP7xfgRo,7800
29
- pywebexec-1.5.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
30
- pywebexec-1.5.1.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
31
- pywebexec-1.5.1.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
32
- pywebexec-1.5.1.dist-info/RECORD,,
25
+ pywebexec/templates/index.html,sha256=-fdhtsbqXql4b67QiLY5e501fjpSKpzhitPnsSIxWVk,2411
26
+ pywebexec/templates/popup.html,sha256=BMIILNsvprcqNTfZVCL3UszgEs1-OdBtH2qWoXuzyoE,1035
27
+ pywebexec-1.5.2.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
28
+ pywebexec-1.5.2.dist-info/METADATA,sha256=e-Uu8PjfiTDpMbseZt5J6FlqIRsJ_7CX901ppPPIcmc,7800
29
+ pywebexec-1.5.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
30
+ pywebexec-1.5.2.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
31
+ pywebexec-1.5.2.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
32
+ pywebexec-1.5.2.dist-info/RECORD,,