pywebexec 1.4.7__tar.gz → 1.4.8__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 (38) hide show
  1. {pywebexec-1.4.7/pywebexec.egg-info → pywebexec-1.4.8}/PKG-INFO +1 -1
  2. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/static/js/popup.js +4 -1
  3. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/static/js/script.js +1 -1
  4. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/templates/popup.html +1 -1
  5. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/version.py +2 -2
  6. {pywebexec-1.4.7 → pywebexec-1.4.8/pywebexec.egg-info}/PKG-INFO +1 -1
  7. {pywebexec-1.4.7 → pywebexec-1.4.8}/.github/workflows/python-publish.yml +0 -0
  8. {pywebexec-1.4.7 → pywebexec-1.4.8}/.gitignore +0 -0
  9. {pywebexec-1.4.7 → pywebexec-1.4.8}/LICENSE +0 -0
  10. {pywebexec-1.4.7 → pywebexec-1.4.8}/README.md +0 -0
  11. {pywebexec-1.4.7 → pywebexec-1.4.8}/pyproject.toml +0 -0
  12. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/__init__.py +0 -0
  13. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/pywebexec.py +0 -0
  14. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/static/css/Consolas NF.ttf +0 -0
  15. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/static/css/style.css +0 -0
  16. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/static/css/xterm.css +0 -0
  17. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/static/images/aborted.svg +0 -0
  18. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/static/images/copy.svg +0 -0
  19. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/static/images/copy_ok.svg +0 -0
  20. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/static/images/down-arrow.svg +0 -0
  21. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/static/images/failed.svg +0 -0
  22. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/static/images/favicon.svg +0 -0
  23. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/static/images/popup.svg +0 -0
  24. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/static/images/running.gif +0 -0
  25. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/static/images/success.svg +0 -0
  26. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/static/js/commands.js +0 -0
  27. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/static/js/xterm/LICENSE +0 -0
  28. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/static/js/xterm/ansi_up.min.js +0 -0
  29. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/static/js/xterm/xterm-addon-fit.js +0 -0
  30. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/static/js/xterm/xterm.js +0 -0
  31. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/templates/__init__.py +0 -0
  32. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec/templates/index.html +0 -0
  33. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec.egg-info/SOURCES.txt +0 -0
  34. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec.egg-info/dependency_links.txt +0 -0
  35. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec.egg-info/entry_points.txt +0 -0
  36. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec.egg-info/requires.txt +0 -0
  37. {pywebexec-1.4.7 → pywebexec-1.4.8}/pywebexec.egg-info/top_level.txt +0 -0
  38. {pywebexec-1.4.7 → pywebexec-1.4.8}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pywebexec
3
- Version: 1.4.7
3
+ Version: 1.4.8
4
4
  Summary: Simple Python HTTP Exec Server
5
5
  Home-page: https://github.com/joknarf/pywebexec
6
6
  Author: Franck Jouvanceau
@@ -31,6 +31,7 @@ let outputInterval = null;
31
31
  let nextOutputLink = null;
32
32
  let fullOutput = '';
33
33
  let outputLength = 0;
34
+ let title = null;
34
35
 
35
36
  function getTokenParam() {
36
37
  const urlParams = new URLSearchParams(window.location.search);
@@ -61,6 +62,7 @@ async function fetchOutput(url) {
61
62
  }
62
63
  nextOutputLink = data.links.next;
63
64
  if (data.status != 'running') {
65
+ title.innerText = `${data.status} ${title.innerText.split(' ').slice(1).join(' ')}`;
64
66
  clearInterval(outputInterval);
65
67
  }
66
68
  }
@@ -84,7 +86,7 @@ async function viewOutput(command_id) {
84
86
  return;
85
87
  }
86
88
  const data = await response.json();
87
- document.getElementsByTagName('title')[0].innerText = `${data.command} ${data.status}`;
89
+ title.innerText = `${data.status} ${data.command} ${data.params.join(' ')}`;
88
90
  if (data.command == 'term')
89
91
  terminal.options.cursorInactiveStyle = 'outline';
90
92
  else
@@ -124,6 +126,7 @@ document.getElementById('outputSlider').addEventListener('input', sliderUpdateOu
124
126
 
125
127
  window.addEventListener('resize', adjustOutputHeight);
126
128
  window.addEventListener('load', () => {
129
+ title = document.getElementById('outputTitle');
127
130
  const commandId = window.location.pathname.split('/').slice(-1)[0];
128
131
  viewOutput(commandId);
129
132
  });
@@ -187,7 +187,7 @@ async function viewOutput(command_id) {
187
187
 
188
188
  async function openPopup(command_id) {
189
189
  const popupUrl = `/popup/${command_id}${urlToken}`;
190
- window.open(popupUrl, '_blank', 'width=800,height=600');
190
+ window.open(popupUrl, '_blank', 'width=1000,height=600');
191
191
  }
192
192
 
193
193
  async function relaunchCommand(command_id, event) {
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="UTF-8">
5
5
  <link rel="icon" href="/static/images/favicon.svg" type="image/svg+xml">
6
- <title>Command Output</title>
6
+ <title id="outputTitle">Command Output</title>
7
7
  <link rel="stylesheet" href="/static/css/style.css">
8
8
  <link rel="stylesheet" href="/static/css/xterm.css">
9
9
  </head>
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.4.7'
16
- __version_tuple__ = version_tuple = (1, 4, 7)
15
+ __version__ = version = '1.4.8'
16
+ __version_tuple__ = version_tuple = (1, 4, 8)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pywebexec
3
- Version: 1.4.7
3
+ Version: 1.4.8
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