pywebexec 1.5.1__tar.gz → 1.5.2__tar.gz

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.
Files changed (39) hide show
  1. {pywebexec-1.5.1/pywebexec.egg-info → pywebexec-1.5.2}/PKG-INFO +1 -1
  2. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/static/css/style.css +14 -0
  3. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/static/js/popup.js +14 -1
  4. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/static/js/script.js +16 -1
  5. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/templates/index.html +2 -0
  6. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/templates/popup.html +3 -2
  7. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/version.py +2 -2
  8. {pywebexec-1.5.1 → pywebexec-1.5.2/pywebexec.egg-info}/PKG-INFO +1 -1
  9. {pywebexec-1.5.1 → pywebexec-1.5.2}/.github/workflows/python-publish.yml +0 -0
  10. {pywebexec-1.5.1 → pywebexec-1.5.2}/.gitignore +0 -0
  11. {pywebexec-1.5.1 → pywebexec-1.5.2}/LICENSE +0 -0
  12. {pywebexec-1.5.1 → pywebexec-1.5.2}/README.md +0 -0
  13. {pywebexec-1.5.1 → pywebexec-1.5.2}/pyproject.toml +0 -0
  14. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/__init__.py +0 -0
  15. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/pywebexec.py +0 -0
  16. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/static/css/Consolas NF.ttf +0 -0
  17. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/static/css/xterm.css +0 -0
  18. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/static/images/aborted.svg +0 -0
  19. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/static/images/copy.svg +0 -0
  20. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/static/images/copy_ok.svg +0 -0
  21. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/static/images/down-arrow.svg +0 -0
  22. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/static/images/failed.svg +0 -0
  23. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/static/images/favicon.svg +0 -0
  24. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/static/images/popup.svg +0 -0
  25. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/static/images/running.gif +0 -0
  26. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/static/images/success.svg +0 -0
  27. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/static/js/commands.js +0 -0
  28. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/static/js/xterm/LICENSE +0 -0
  29. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/static/js/xterm/addon-fit.js +0 -0
  30. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/static/js/xterm/addon-fit.js.map +0 -0
  31. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/static/js/xterm/xterm.js +0 -0
  32. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/static/js/xterm/xterm.js.map +0 -0
  33. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec/templates/__init__.py +0 -0
  34. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec.egg-info/SOURCES.txt +0 -0
  35. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec.egg-info/dependency_links.txt +0 -0
  36. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec.egg-info/entry_points.txt +0 -0
  37. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec.egg-info/requires.txt +0 -0
  38. {pywebexec-1.5.1 → pywebexec-1.5.2}/pywebexec.egg-info/top_level.txt +0 -0
  39. {pywebexec-1.5.1 → pywebexec-1.5.2}/setup.cfg +0 -0
@@ -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
@@ -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>
@@ -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
File without changes
File without changes
File without changes
File without changes
File without changes