pywebexec 1.6.1__tar.gz → 1.6.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 (48) hide show
  1. {pywebexec-1.6.1/pywebexec.egg-info → pywebexec-1.6.2}/PKG-INFO +1 -1
  2. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/css/style.css +2 -2
  3. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/js/commands.js +8 -3
  4. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/version.py +2 -2
  5. {pywebexec-1.6.1 → pywebexec-1.6.2/pywebexec.egg-info}/PKG-INFO +1 -1
  6. {pywebexec-1.6.1 → pywebexec-1.6.2}/.github/workflows/python-publish.yml +0 -0
  7. {pywebexec-1.6.1 → pywebexec-1.6.2}/.gitignore +0 -0
  8. {pywebexec-1.6.1 → pywebexec-1.6.2}/LICENSE +0 -0
  9. {pywebexec-1.6.1 → pywebexec-1.6.2}/README.md +0 -0
  10. {pywebexec-1.6.1 → pywebexec-1.6.2}/pyproject.toml +0 -0
  11. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/__init__.py +0 -0
  12. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/pywebexec.py +0 -0
  13. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/css/Consolas NF.ttf +0 -0
  14. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/css/xterm.css +0 -0
  15. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/images/aborted.svg +0 -0
  16. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/images/copy.svg +0 -0
  17. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/images/copy_ok.svg +0 -0
  18. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/images/down-arrow.svg +0 -0
  19. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/images/failed.svg +0 -0
  20. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/images/favicon.svg +0 -0
  21. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/images/font-decrease.svg +0 -0
  22. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/images/font-increase.svg +0 -0
  23. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/images/norun.svg +0 -0
  24. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/images/pause.svg +0 -0
  25. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/images/popup.svg +0 -0
  26. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/images/resume.svg +0 -0
  27. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/images/running.svg +0 -0
  28. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/images/success.svg +0 -0
  29. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/js/popup.js +0 -0
  30. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/js/script.js +0 -0
  31. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/js/xterm/LICENSE +0 -0
  32. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/js/xterm/addon-canvas.js +0 -0
  33. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/js/xterm/addon-canvas.js.map +0 -0
  34. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/js/xterm/addon-fit.js +0 -0
  35. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/js/xterm/addon-fit.js.map +0 -0
  36. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/js/xterm/addon-unicode11.js +0 -0
  37. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/js/xterm/addon-unicode11.js.map +0 -0
  38. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/js/xterm/xterm.js +0 -0
  39. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/static/js/xterm/xterm.js.map +0 -0
  40. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/templates/__init__.py +0 -0
  41. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/templates/index.html +0 -0
  42. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec/templates/popup.html +0 -0
  43. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec.egg-info/SOURCES.txt +0 -0
  44. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec.egg-info/dependency_links.txt +0 -0
  45. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec.egg-info/entry_points.txt +0 -0
  46. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec.egg-info/requires.txt +0 -0
  47. {pywebexec-1.6.1 → pywebexec-1.6.2}/pywebexec.egg-info/top_level.txt +0 -0
  48. {pywebexec-1.6.1 → pywebexec-1.6.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pywebexec
3
- Version: 1.6.1
3
+ Version: 1.6.2
4
4
  Summary: Simple Python HTTP Exec Server
5
5
  Home-page: https://github.com/joknarf/pywebexec
6
6
  Author: Franck Jouvanceau
@@ -386,7 +386,7 @@ span {
386
386
  font-size: 13px;
387
387
  font-weight: normal;
388
388
  border: 1px solid #aaa;
389
- border-radius: 18px;
390
- min-width: 18px;
389
+ border-radius: 17px;
390
+ min-width: 17px;
391
391
  text-align: center;
392
392
  }
@@ -4,6 +4,7 @@ let paramsInput = document.getElementById('params');
4
4
  let commandListSelect = document.getElementById('commandList');
5
5
  let showCommandListButton = document.getElementById('showCommandListButton');
6
6
  let isHandlingKeydown = false;
7
+ let firstVisibleItem = 0;
7
8
 
8
9
  function unfilterCommands() {
9
10
  const options = commandListSelect.options;
@@ -17,10 +18,14 @@ function filterCommands() {
17
18
  const value = commandInput.value.slice(0, commandInput.selectionStart);
18
19
  const options = commandListSelect.options;
19
20
  let nbVisibleItems = 0;
21
+ firstVisibleItem = -1;
20
22
  for (let i = 0; i < options.length; i++) {
21
23
  if (options[i].text.startsWith(value)) {
22
24
  options[i].style.display = 'block';
23
25
  nbVisibleItems += 1;
26
+ if (firstVisibleItem === -1) {
27
+ firstVisibleItem = i;
28
+ }
24
29
  } else {
25
30
  options[i].style.display = 'none';
26
31
  }
@@ -88,12 +93,12 @@ commandInput.addEventListener('keydown', (event) => {
88
93
  paramsInput.focus();
89
94
  paramsInput.setSelectionRange(0, paramsInput.value.length);
90
95
  } else if (event.key === 'ArrowDown') {
91
- /*setCommandListPosition();*/
92
- unfilterCommands();
93
96
  if (commandListSelect.options.length > 1) {
94
97
  commandListSelect.style.display = 'block';
98
+ commandListSelect.selectedIndex = firstVisibleItem;
95
99
  commandListSelect.focus();
96
- commandListSelect.selectedIndex = 0;
100
+ commandListSelect.options[firstVisibleItem].scrollIntoView();
101
+ commandListSelect.options[firstVisibleItem].focus();
97
102
  }
98
103
  event.preventDefault();
99
104
  }
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.6.1'
16
- __version_tuple__ = version_tuple = (1, 6, 1)
15
+ __version__ = version = '1.6.2'
16
+ __version_tuple__ = version_tuple = (1, 6, 2)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pywebexec
3
- Version: 1.6.1
3
+ Version: 1.6.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