pywebexec 1.1.8__tar.gz → 1.1.9__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 (27) hide show
  1. {pywebexec-1.1.8/pywebexec.egg-info → pywebexec-1.1.9}/PKG-INFO +1 -1
  2. {pywebexec-1.1.8 → pywebexec-1.1.9}/pywebexec/static/css/style.css +2 -2
  3. {pywebexec-1.1.8 → pywebexec-1.1.9}/pywebexec/static/js/script.js +6 -5
  4. {pywebexec-1.1.8 → pywebexec-1.1.9}/pywebexec/version.py +2 -2
  5. {pywebexec-1.1.8 → pywebexec-1.1.9/pywebexec.egg-info}/PKG-INFO +1 -1
  6. {pywebexec-1.1.8 → pywebexec-1.1.9}/.github/workflows/python-publish.yml +0 -0
  7. {pywebexec-1.1.8 → pywebexec-1.1.9}/.gitignore +0 -0
  8. {pywebexec-1.1.8 → pywebexec-1.1.9}/LICENSE +0 -0
  9. {pywebexec-1.1.8 → pywebexec-1.1.9}/README.md +0 -0
  10. {pywebexec-1.1.8 → pywebexec-1.1.9}/pyproject.toml +0 -0
  11. {pywebexec-1.1.8 → pywebexec-1.1.9}/pywebexec/__init__.py +0 -0
  12. {pywebexec-1.1.8 → pywebexec-1.1.9}/pywebexec/pywebexec.py +0 -0
  13. {pywebexec-1.1.8 → pywebexec-1.1.9}/pywebexec/static/images/aborted.svg +0 -0
  14. {pywebexec-1.1.8 → pywebexec-1.1.9}/pywebexec/static/images/copy.svg +0 -0
  15. {pywebexec-1.1.8 → pywebexec-1.1.9}/pywebexec/static/images/copy_ok.svg +0 -0
  16. {pywebexec-1.1.8 → pywebexec-1.1.9}/pywebexec/static/images/failed.svg +0 -0
  17. {pywebexec-1.1.8 → pywebexec-1.1.9}/pywebexec/static/images/favicon.svg +0 -0
  18. {pywebexec-1.1.8 → pywebexec-1.1.9}/pywebexec/static/images/running.gif +0 -0
  19. {pywebexec-1.1.8 → pywebexec-1.1.9}/pywebexec/static/images/success.svg +0 -0
  20. {pywebexec-1.1.8 → pywebexec-1.1.9}/pywebexec/templates/__init__.py +0 -0
  21. {pywebexec-1.1.8 → pywebexec-1.1.9}/pywebexec/templates/index.html +0 -0
  22. {pywebexec-1.1.8 → pywebexec-1.1.9}/pywebexec.egg-info/SOURCES.txt +0 -0
  23. {pywebexec-1.1.8 → pywebexec-1.1.9}/pywebexec.egg-info/dependency_links.txt +0 -0
  24. {pywebexec-1.1.8 → pywebexec-1.1.9}/pywebexec.egg-info/entry_points.txt +0 -0
  25. {pywebexec-1.1.8 → pywebexec-1.1.9}/pywebexec.egg-info/requires.txt +0 -0
  26. {pywebexec-1.1.8 → pywebexec-1.1.9}/pywebexec.egg-info/top_level.txt +0 -0
  27. {pywebexec-1.1.8 → pywebexec-1.1.9}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pywebexec
3
- Version: 1.1.8
3
+ Version: 1.1.9
4
4
  Summary: Simple Python HTTP Exec Server
5
5
  Home-page: https://github.com/joknarf/pywebexec
6
6
  Author: Franck Jouvanceau
@@ -89,10 +89,10 @@ form {
89
89
  background-image: url("/static/images/aborted.svg")
90
90
  }
91
91
  .copy_clip {
92
- padding-right: 25px;
92
+ padding-right: 20px;
93
93
  background-repeat: no-repeat;
94
94
  background-position: right top;
95
- background-size: 25px 16px;
95
+ background-size: 20px 12px;
96
96
  white-space: nowrap;
97
97
  }
98
98
  .copy_clip:hover {
@@ -33,7 +33,7 @@ async function fetchCommands() {
33
33
  commandRow.onclick = () => viewOutput(command.command_id);
34
34
  commandRow.innerHTML = `
35
35
  <td class="monospace">
36
- <span class="copy_clip" onclick="copyToClipboard('${command.command_id}', this)">${command.command_id.slice(0, 8)}</span>
36
+ <span class="copy_clip" onclick="copyToClipboard('${command.command_id}', this, event)">${command.command_id.slice(0, 8)}</span>
37
37
  </td>
38
38
  <td><span class="status-icon status-${command.status}"></span>${command.status}</td>
39
39
  <td>${formatTime(command.start_time)}</td>
@@ -41,8 +41,7 @@ async function fetchCommands() {
41
41
  <td>${command.exit_code}</td>
42
42
  <td>${command.command.replace(/^\.\//, '')}</td>
43
43
  <td>
44
- ${command.status === 'running' ? `<button onclick="stopCommand('${command.command_id}')">Stop</button>` : ` <button onclick="relaunchCommand('${command.command_id}')">Run</button>
45
- `}
44
+ ${command.status === 'running' ? `<button onclick="stopCommand('${command.command_id}')">Stop</button>` : `<button onclick="relaunchCommand('${command.command_id}')">Run</button>`}
46
45
  </td>
47
46
  <td class="monospace outcol">${command.last_output_line || ''}</td>
48
47
  `;
@@ -146,12 +145,14 @@ function formatDuration(startTime, endTime) {
146
145
  return `${hours}h ${minutes}m ${seconds}s`;
147
146
  }
148
147
 
149
- function copyToClipboard(text, element) {
148
+ function copyToClipboard(text, element, event) {
149
+ event.stopPropagation();
150
+ event.stopImmediatePropagation();
150
151
  navigator.clipboard.writeText(text).then(() => {
151
152
  element.classList.add('copy_clip_ok');
152
153
  setTimeout(() => {
153
154
  element.classList.remove('copy_clip_ok');
154
- }, 2000);
155
+ }, 1000);
155
156
  });
156
157
  }
157
158
 
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.1.8'
16
- __version_tuple__ = version_tuple = (1, 1, 8)
15
+ __version__ = version = '1.1.9'
16
+ __version_tuple__ = version_tuple = (1, 1, 9)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pywebexec
3
- Version: 1.1.8
3
+ Version: 1.1.9
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