pywebexec 0.0.5__tar.gz → 0.0.6__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.
- {pywebexec-0.0.5/pywebexec.egg-info → pywebexec-0.0.6}/PKG-INFO +2 -2
- {pywebexec-0.0.5 → pywebexec-0.0.6}/pywebexec/pywebexec.py +2 -1
- {pywebexec-0.0.5 → pywebexec-0.0.6}/pywebexec/templates/index.html +5 -0
- {pywebexec-0.0.5 → pywebexec-0.0.6}/pywebexec/version.py +2 -2
- {pywebexec-0.0.5 → pywebexec-0.0.6/pywebexec.egg-info}/PKG-INFO +2 -2
- {pywebexec-0.0.5 → pywebexec-0.0.6}/.github/workflows/python-publish.yml +0 -0
- {pywebexec-0.0.5 → pywebexec-0.0.6}/.gitignore +0 -0
- {pywebexec-0.0.5 → pywebexec-0.0.6}/LICENSE +0 -0
- {pywebexec-0.0.5 → pywebexec-0.0.6}/README.md +0 -0
- {pywebexec-0.0.5 → pywebexec-0.0.6}/pyproject.toml +0 -0
- {pywebexec-0.0.5 → pywebexec-0.0.6}/pywebexec/__init__.py +0 -0
- {pywebexec-0.0.5 → pywebexec-0.0.6}/pywebexec/static/images/aborted.svg +0 -0
- {pywebexec-0.0.5 → pywebexec-0.0.6}/pywebexec/static/images/copy.svg +0 -0
- {pywebexec-0.0.5 → pywebexec-0.0.6}/pywebexec/static/images/copy_ok.svg +0 -0
- {pywebexec-0.0.5 → pywebexec-0.0.6}/pywebexec/static/images/failed.svg +0 -0
- {pywebexec-0.0.5 → pywebexec-0.0.6}/pywebexec/static/images/running.svg +0 -0
- {pywebexec-0.0.5 → pywebexec-0.0.6}/pywebexec/static/images/success.svg +0 -0
- {pywebexec-0.0.5 → pywebexec-0.0.6}/pywebexec/templates/__init__.py +0 -0
- {pywebexec-0.0.5 → pywebexec-0.0.6}/pywebexec.egg-info/SOURCES.txt +0 -0
- {pywebexec-0.0.5 → pywebexec-0.0.6}/pywebexec.egg-info/dependency_links.txt +0 -0
- {pywebexec-0.0.5 → pywebexec-0.0.6}/pywebexec.egg-info/entry_points.txt +0 -0
- {pywebexec-0.0.5 → pywebexec-0.0.6}/pywebexec.egg-info/requires.txt +0 -0
- {pywebexec-0.0.5 → pywebexec-0.0.6}/pywebexec.egg-info/top_level.txt +0 -0
- {pywebexec-0.0.5 → pywebexec-0.0.6}/setup.cfg +0 -0
|
@@ -16,7 +16,7 @@ app = Flask(__name__)
|
|
|
16
16
|
auth = HTTPBasicAuth()
|
|
17
17
|
|
|
18
18
|
# Directory to store the script status and output
|
|
19
|
-
SCRIPT_STATUS_DIR = '
|
|
19
|
+
SCRIPT_STATUS_DIR = '.web_status'
|
|
20
20
|
|
|
21
21
|
if not os.path.exists(SCRIPT_STATUS_DIR):
|
|
22
22
|
os.makedirs(SCRIPT_STATUS_DIR)
|
|
@@ -48,6 +48,7 @@ def start_gunicorn():
|
|
|
48
48
|
options = {
|
|
49
49
|
'bind': '%s:%s' % (args.listen, args.port),
|
|
50
50
|
'workers': 4,
|
|
51
|
+
'timeout': 600,
|
|
51
52
|
'certfile': args.cert,
|
|
52
53
|
'keyfile': args.key,
|
|
53
54
|
}
|
|
@@ -82,6 +82,9 @@
|
|
|
82
82
|
input {
|
|
83
83
|
width: 50%
|
|
84
84
|
}
|
|
85
|
+
.currentscript {
|
|
86
|
+
background-color: #eef;
|
|
87
|
+
}
|
|
85
88
|
</style>
|
|
86
89
|
</head>
|
|
87
90
|
<body>
|
|
@@ -139,6 +142,7 @@
|
|
|
139
142
|
scriptsTbody.innerHTML = '';
|
|
140
143
|
scripts.forEach(script => {
|
|
141
144
|
const scriptRow = document.createElement('tr');
|
|
145
|
+
scriptRow.className = script.script_id === currentScriptId ? 'currentscript' : '';
|
|
142
146
|
scriptRow.innerHTML = `
|
|
143
147
|
<td class="monospace">
|
|
144
148
|
<span class="copy_clip" onclick="copyToClipboard('${script.script_id}', this)">${script.script_id.slice(0, 8)}</span>
|
|
@@ -197,6 +201,7 @@
|
|
|
197
201
|
} else {
|
|
198
202
|
fetchOutput(script_id);
|
|
199
203
|
}
|
|
204
|
+
fetchScripts(); // Refresh the script list to highlight the current script
|
|
200
205
|
}
|
|
201
206
|
|
|
202
207
|
async function relaunchScript(script_id) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|