pywebexec 1.5.1__py3-none-any.whl → 1.5.3__py3-none-any.whl
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/static/css/style.css +14 -0
- pywebexec/static/js/popup.js +15 -2
- pywebexec/static/js/script.js +17 -2
- pywebexec/templates/index.html +2 -0
- pywebexec/templates/popup.html +3 -2
- pywebexec/version.py +2 -2
- {pywebexec-1.5.1.dist-info → pywebexec-1.5.3.dist-info}/METADATA +1 -1
- {pywebexec-1.5.1.dist-info → pywebexec-1.5.3.dist-info}/RECORD +12 -12
- {pywebexec-1.5.1.dist-info → pywebexec-1.5.3.dist-info}/LICENSE +0 -0
- {pywebexec-1.5.1.dist-info → pywebexec-1.5.3.dist-info}/WHEEL +0 -0
- {pywebexec-1.5.1.dist-info → pywebexec-1.5.3.dist-info}/entry_points.txt +0 -0
- {pywebexec-1.5.1.dist-info → pywebexec-1.5.3.dist-info}/top_level.txt +0 -0
pywebexec/static/css/style.css
CHANGED
@@ -279,3 +279,17 @@ span {
|
|
279
279
|
height: 16px;
|
280
280
|
}
|
281
281
|
|
282
|
+
.font-size-button {
|
283
|
+
background-color: #444;
|
284
|
+
color: #eee;
|
285
|
+
border: none;
|
286
|
+
border-radius: 5px;
|
287
|
+
cursor: pointer;
|
288
|
+
font-size: 14px;
|
289
|
+
width: 45px;
|
290
|
+
}
|
291
|
+
|
292
|
+
.font-size-button:hover {
|
293
|
+
background-color: #666;
|
294
|
+
}
|
295
|
+
|
pywebexec/static/js/popup.js
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
const maxScrollback = 99999;
|
2
2
|
const maxSize = 10485760; // 10MB
|
3
|
+
let fontSize = 14;
|
3
4
|
let terminal = new Terminal({
|
4
5
|
cursorBlink: false,
|
5
6
|
cursorInactiveStyle: 'none',
|
6
7
|
disableStdin: true,
|
7
8
|
convertEol: true,
|
8
9
|
fontFamily: 'Consolas NF, monospace, courier-new, courier',
|
9
|
-
fontSize:
|
10
|
+
fontSize: fontSize,
|
10
11
|
scrollback: maxScrollback,
|
11
12
|
theme: {
|
12
13
|
background: '#111412',
|
@@ -104,7 +105,7 @@ async function viewOutput(command_id) {
|
|
104
105
|
terminal.options.cursorInactiveStyle = 'none';
|
105
106
|
if (data.status === 'running') {
|
106
107
|
fetchOutput(nextOutputLink);
|
107
|
-
outputInterval = setInterval(() => fetchOutput(nextOutputLink),
|
108
|
+
outputInterval = setInterval(() => fetchOutput(nextOutputLink), 500);
|
108
109
|
} else {
|
109
110
|
fetchOutput(nextOutputLink);
|
110
111
|
}
|
@@ -142,3 +143,15 @@ window.addEventListener('load', () => {
|
|
142
143
|
const commandId = window.location.pathname.split('/').slice(-1)[0];
|
143
144
|
viewOutput(commandId);
|
144
145
|
});
|
146
|
+
|
147
|
+
document.getElementById('decreaseFontSize').addEventListener('click', () => {
|
148
|
+
fontSize = Math.max(8, fontSize - 1);
|
149
|
+
terminal.options.fontSize = fontSize;
|
150
|
+
fitAddon.fit();
|
151
|
+
});
|
152
|
+
|
153
|
+
document.getElementById('increaseFontSize').addEventListener('click', () => {
|
154
|
+
fontSize = Math.min(32, fontSize + 1);
|
155
|
+
terminal.options.fontSize = fontSize;
|
156
|
+
fitAddon.fit();
|
157
|
+
});
|
pywebexec/static/js/script.js
CHANGED
@@ -7,6 +7,7 @@ let fullOutput = '';
|
|
7
7
|
let outputLength = 0;
|
8
8
|
const maxScrollback = 99999;
|
9
9
|
const maxSize = 10485760; // 10MB
|
10
|
+
let fontSize = 14;
|
10
11
|
|
11
12
|
function initTerminal()
|
12
13
|
{
|
@@ -16,7 +17,7 @@ function initTerminal()
|
|
16
17
|
disableStdin: true,
|
17
18
|
convertEol: true,
|
18
19
|
fontFamily: 'Consolas NF, monospace, courier-new, courier',
|
19
|
-
|
20
|
+
fontSize: fontSize,
|
20
21
|
scrollback: maxScrollback,
|
21
22
|
theme: {
|
22
23
|
background: '#111412',
|
@@ -187,7 +188,7 @@ async function viewOutput(command_id) {
|
|
187
188
|
terminal.options.cursorInactiveStyle = 'none';
|
188
189
|
if (data.status === 'running') {
|
189
190
|
fetchOutput(nextOutputLink);
|
190
|
-
outputInterval = setInterval(() => fetchOutput(nextOutputLink),
|
191
|
+
outputInterval = setInterval(() => fetchOutput(nextOutputLink), 500);
|
191
192
|
} else {
|
192
193
|
fetchOutput(nextOutputLink);
|
193
194
|
}
|
@@ -334,8 +335,22 @@ function sliderUpdateOutput()
|
|
334
335
|
|
335
336
|
slider.addEventListener('input', sliderUpdateOutput);
|
336
337
|
|
338
|
+
document.getElementById('decreaseFontSize').addEventListener('click', () => {
|
339
|
+
fontSize = Math.max(8, fontSize - 1);
|
340
|
+
terminal.options.fontSize = fontSize;
|
341
|
+
fitAddon.fit();
|
342
|
+
});
|
343
|
+
|
344
|
+
document.getElementById('increaseFontSize').addEventListener('click', () => {
|
345
|
+
fontSize = Math.min(32, fontSize + 1);
|
346
|
+
terminal.options.fontSize = fontSize;
|
347
|
+
fitAddon.fit();
|
348
|
+
});
|
349
|
+
|
337
350
|
window.addEventListener('resize', adjustOutputHeight);
|
338
351
|
window.addEventListener('load', initResizer);
|
339
352
|
|
340
353
|
fetchCommands();
|
341
354
|
setInterval(fetchCommands, 5000);
|
355
|
+
|
356
|
+
|
pywebexec/templates/index.html
CHANGED
@@ -47,6 +47,8 @@
|
|
47
47
|
<div class="slider-container">
|
48
48
|
<input type="range" id="outputSlider" min="0" max="100" value="100">
|
49
49
|
<label for="outputSlider"><span id="outputPercentage">100%</span></label>
|
50
|
+
<button id="decreaseFontSize" class="font-size-button">A–</button>
|
51
|
+
<button id="increaseFontSize" class="font-size-button">A+</button>
|
50
52
|
</div>
|
51
53
|
<script src="/static/js/xterm/xterm.js"></script>
|
52
54
|
<script src="/static/js/xterm/addon-fit.js"></script>
|
pywebexec/templates/popup.html
CHANGED
@@ -15,10 +15,11 @@
|
|
15
15
|
<div class="slider-container">
|
16
16
|
<input type="range" id="outputSlider" min="0" max="100" value="100">
|
17
17
|
<label for="outputSlider"><span id="outputPercentage">100%</span></label>
|
18
|
+
<button id="decreaseFontSize" class="font-size-button">A–</button>
|
19
|
+
<button id="increaseFontSize" class="font-size-button">A+</button>
|
18
20
|
</div>
|
19
|
-
<script src="/static/js/xterm/ansi_up.min.js"></script>
|
20
21
|
<script src="/static/js/xterm/xterm.js"></script>
|
21
|
-
<script src="/static/js/xterm/
|
22
|
+
<script src="/static/js/xterm/addon-fit.js"></script>
|
22
23
|
<script type="text/javascript" src="/static/js/popup.js"></script>
|
23
24
|
</body>
|
24
25
|
</html>
|
pywebexec/version.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
pywebexec/__init__.py,sha256=4spIsVaF8RJt8S58AG_wWoORRNkws9Iwqprj27C3ljM,99
|
2
2
|
pywebexec/pywebexec.py,sha256=hacpB6OnS_ZN1SBmuReTUkvAuenl6czD6aD_yV8wusY,28462
|
3
|
-
pywebexec/version.py,sha256=
|
3
|
+
pywebexec/version.py,sha256=qpWMa3r-Mid4OHoz1spx5Qra38bLcIkEwP2xut7PVrA,411
|
4
4
|
pywebexec/static/css/Consolas NF.ttf,sha256=DJEOzF0eqZ-kxu3Gs_VE8X0NJqiobBzmxWDGpdgGRxI,1313900
|
5
|
-
pywebexec/static/css/style.css,sha256=
|
5
|
+
pywebexec/static/css/style.css,sha256=oHjmcuKWG6Gv03POupZgvIREgBQMfiPZLguKKnXGf70,6000
|
6
6
|
pywebexec/static/css/xterm.css,sha256=uo5phWaUiJgcz0DAzv46uoByLLbJLeetYosL1xf68rY,5559
|
7
7
|
pywebexec/static/images/aborted.svg,sha256=_mP43hU5QdRLFZIknBgjx-dIXrHgQG23-QV27ApXK2A,381
|
8
8
|
pywebexec/static/images/copy.svg,sha256=d9OwtGh5GzzZHzYcDrLfNxZYLth1Q64x7bRyYxu4Px0,622
|
@@ -14,19 +14,19 @@ pywebexec/static/images/popup.svg,sha256=0Bl9A_v5cBsMPn6FnOlVWlAQKgd2zqiWQbhjcL9
|
|
14
14
|
pywebexec/static/images/running.gif,sha256=iYuzQGkMxrakSIwt6gPieKCImGZoSAHmU5MUNZa7cpw,25696
|
15
15
|
pywebexec/static/images/success.svg,sha256=PJDcCSTevJh7rkfSFLtc7P0pbeh8PVQBS8DaOLQemmc,489
|
16
16
|
pywebexec/static/js/commands.js,sha256=8JDb3Q55EJOYf2Q9Uy6qEuqAnn1oGjM0RndgQ4aOjqo,7725
|
17
|
-
pywebexec/static/js/popup.js,sha256=
|
18
|
-
pywebexec/static/js/script.js,sha256=
|
17
|
+
pywebexec/static/js/popup.js,sha256=898IdPLvdXNLE2ZoL9zpx2Ei7B4sb5ksRltfszZAsg8,5195
|
18
|
+
pywebexec/static/js/script.js,sha256=mT4EVrQLxBYLSMWqEzDXfns0W0m7D3HlaivZEhkJyTc,12700
|
19
19
|
pywebexec/static/js/xterm/LICENSE,sha256=EU1P4eXTull-_T9I80VuwnJXubB-zLzUl3xpEYj2T1M,1083
|
20
20
|
pywebexec/static/js/xterm/addon-fit.js,sha256=va76Nwsb_ELuiNRv5gckAJAqTUstRc2TQ43amyPJcIk,1497
|
21
21
|
pywebexec/static/js/xterm/addon-fit.js.map,sha256=zPUOkZVKfQNvj1W_fUktD5UNNu80XwqfSEWXBVxA8uY,5477
|
22
22
|
pywebexec/static/js/xterm/xterm.js,sha256=H5kaw7Syg-v5bmCuI6AKUnZd06Lkb6b92p8aqwMvdJU,289441
|
23
23
|
pywebexec/static/js/xterm/xterm.js.map,sha256=Y7O2Pb-fIS7Z8AC1D5s04_aiW_Jf1f4mCfN0U_OI6Zw,1118392
|
24
24
|
pywebexec/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
25
|
-
pywebexec/templates/index.html,sha256
|
26
|
-
pywebexec/templates/popup.html,sha256=
|
27
|
-
pywebexec-1.5.
|
28
|
-
pywebexec-1.5.
|
29
|
-
pywebexec-1.5.
|
30
|
-
pywebexec-1.5.
|
31
|
-
pywebexec-1.5.
|
32
|
-
pywebexec-1.5.
|
25
|
+
pywebexec/templates/index.html,sha256=-fdhtsbqXql4b67QiLY5e501fjpSKpzhitPnsSIxWVk,2411
|
26
|
+
pywebexec/templates/popup.html,sha256=BMIILNsvprcqNTfZVCL3UszgEs1-OdBtH2qWoXuzyoE,1035
|
27
|
+
pywebexec-1.5.3.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
|
28
|
+
pywebexec-1.5.3.dist-info/METADATA,sha256=9iF3w4VEqmN6IKp49BxIzr33n4X_AexNXT_QHUATtzk,7800
|
29
|
+
pywebexec-1.5.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
30
|
+
pywebexec-1.5.3.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
|
31
|
+
pywebexec-1.5.3.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
|
32
|
+
pywebexec-1.5.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|