pywebexec 1.2.8__tar.gz → 1.2.10__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 (34) hide show
  1. {pywebexec-1.2.8/pywebexec.egg-info → pywebexec-1.2.10}/PKG-INFO +1 -1
  2. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec/pywebexec.py +0 -1
  3. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec/static/css/style.css +5 -0
  4. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec/static/js/commands.js +11 -1
  5. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec/static/js/script.js +1 -1
  6. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec/version.py +2 -2
  7. {pywebexec-1.2.8 → pywebexec-1.2.10/pywebexec.egg-info}/PKG-INFO +1 -1
  8. {pywebexec-1.2.8 → pywebexec-1.2.10}/.github/workflows/python-publish.yml +0 -0
  9. {pywebexec-1.2.8 → pywebexec-1.2.10}/.gitignore +0 -0
  10. {pywebexec-1.2.8 → pywebexec-1.2.10}/LICENSE +0 -0
  11. {pywebexec-1.2.8 → pywebexec-1.2.10}/README.md +0 -0
  12. {pywebexec-1.2.8 → pywebexec-1.2.10}/pyproject.toml +0 -0
  13. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec/__init__.py +0 -0
  14. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec/static/css/xterm.css +0 -0
  15. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec/static/images/aborted.svg +0 -0
  16. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec/static/images/copy.svg +0 -0
  17. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec/static/images/copy_ok.svg +0 -0
  18. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec/static/images/down-arrow.svg +0 -0
  19. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec/static/images/failed.svg +0 -0
  20. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec/static/images/favicon.svg +0 -0
  21. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec/static/images/running.gif +0 -0
  22. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec/static/images/success.svg +0 -0
  23. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec/static/js/xterm/LICENSE +0 -0
  24. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec/static/js/xterm/ansi_up.min.js +0 -0
  25. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec/static/js/xterm/xterm-addon-fit.js +0 -0
  26. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec/static/js/xterm/xterm.js +0 -0
  27. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec/templates/__init__.py +0 -0
  28. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec/templates/index.html +0 -0
  29. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec.egg-info/SOURCES.txt +0 -0
  30. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec.egg-info/dependency_links.txt +0 -0
  31. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec.egg-info/entry_points.txt +0 -0
  32. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec.egg-info/requires.txt +0 -0
  33. {pywebexec-1.2.8 → pywebexec-1.2.10}/pywebexec.egg-info/top_level.txt +0 -0
  34. {pywebexec-1.2.8 → pywebexec-1.2.10}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pywebexec
3
- Version: 1.2.8
3
+ Version: 1.2.10
4
4
  Summary: Simple Python HTTP Exec Server
5
5
  Home-page: https://github.com/joknarf/pywebexec
6
6
  Author: Franck Jouvanceau
@@ -402,7 +402,6 @@ def check_authentication():
402
402
  @auth.verify_password
403
403
  def verify_password(username, password):
404
404
  if not username:
405
- session['username'] = '-'
406
405
  return False
407
406
  if app.config['USER']:
408
407
  if username == app.config['USER'] and password == app.config['PASSWORD']:
@@ -31,6 +31,10 @@ th {
31
31
  width: 100%;
32
32
  }
33
33
  select { /* Safari bug */
34
+ -webkit-appearance: none;
35
+ -webkit-border-radius: none;
36
+ appearance: none;
37
+ outline: none;
34
38
  font-size: 15px;
35
39
  border: #aaa solid 1px;
36
40
  border-radius: 5px;
@@ -180,6 +184,7 @@ form {
180
184
  border: 1px solid #aaa;
181
185
  border-radius: 5px;
182
186
  padding: 0px 5px 0px 5px;
187
+ margin-top: 2px;
183
188
  overflow-y: auto;
184
189
  z-index: 1000;
185
190
  }
@@ -27,6 +27,7 @@ function filterCommands() {
27
27
  }
28
28
  if (nbVisibleItems>1) {
29
29
  commandListSelect.size = Math.min(20, nbVisibleItems);
30
+ commandListSelect.style.display = 'block';
30
31
  } else {
31
32
  commandListSelect.style.display = 'none';
32
33
  }
@@ -97,7 +98,16 @@ commandInput.addEventListener('keydown', (event) => {
97
98
  });
98
99
 
99
100
  paramsInput.addEventListener('keydown', (event) => {
100
- if (event.key === 'ArrowLeft' && paramsInput.selectionStart === 0) {
101
+ if (paramsInput.selectionStart > 0) return;
102
+ if (event.key === 'ArrowLeft') {
103
+ commandInput.focus();
104
+ commandInput.setSelectionRange(0, commandInput.value.length);
105
+ event.preventDefault();
106
+ return;
107
+ }
108
+ if (event.key === 'Backspace') {
109
+ val = paramsInput.value
110
+ paramsInput.value = val.slice(0, paramsInput.selectionStart) + val.slice(paramsInput.selectionEnd)
101
111
  commandInput.focus();
102
112
  commandInput.setSelectionRange(0, commandInput.value.length);
103
113
  event.preventDefault();
@@ -53,7 +53,7 @@ document.getElementById('launchForm').addEventListener('submit', async (event) =
53
53
  throw new Error('Failed to launch command');
54
54
  }
55
55
  const data = await response.json();
56
- await new Promise(r => setTimeout(r, 200));
56
+ await new Promise(r => setTimeout(r, 300));
57
57
  fetchCommands();
58
58
  viewOutput(data.command_id);
59
59
  commandInput.focus()
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.2.8'
16
- __version_tuple__ = version_tuple = (1, 2, 8)
15
+ __version__ = version = '1.2.10'
16
+ __version_tuple__ = version_tuple = (1, 2, 10)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pywebexec
3
- Version: 1.2.8
3
+ Version: 1.2.10
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