pywebexec 2.4.2__py3-none-any.whl → 2.4.4__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 +5 -1
- pywebexec/static/js/tablefilter.js +11 -17
- pywebexec/version.py +2 -2
- {pywebexec-2.4.2.dist-info → pywebexec-2.4.4.dist-info}/METADATA +1 -1
- {pywebexec-2.4.2.dist-info → pywebexec-2.4.4.dist-info}/RECORD +9 -9
- {pywebexec-2.4.2.dist-info → pywebexec-2.4.4.dist-info}/WHEEL +0 -0
- {pywebexec-2.4.2.dist-info → pywebexec-2.4.4.dist-info}/entry_points.txt +0 -0
- {pywebexec-2.4.2.dist-info → pywebexec-2.4.4.dist-info}/licenses/LICENSE +0 -0
- {pywebexec-2.4.2.dist-info → pywebexec-2.4.4.dist-info}/top_level.txt +0 -0
pywebexec/static/css/style.css
CHANGED
@@ -529,6 +529,10 @@ body.dimmed * {
|
|
529
529
|
min-width: 17px;
|
530
530
|
text-align: center;
|
531
531
|
}
|
532
|
+
.glyph-font {
|
533
|
+
font-family: 'Glyphicons Halflings';
|
534
|
+
font-size: 9px;
|
535
|
+
}
|
532
536
|
.row-count {
|
533
537
|
display: inline-block;
|
534
538
|
font-size: 11px;
|
@@ -539,7 +543,7 @@ body.dimmed * {
|
|
539
543
|
text-align: center;
|
540
544
|
padding: 0px 4px;
|
541
545
|
margin-left: auto;
|
542
|
-
cursor: pointer
|
546
|
+
cursor: pointer;
|
543
547
|
}
|
544
548
|
|
545
549
|
.xterm-accessibility {
|
@@ -7,8 +7,8 @@ function initTableFilters(table) {
|
|
7
7
|
|
8
8
|
// Add sort button first
|
9
9
|
const sortBtn = document.createElement('span');
|
10
|
-
sortBtn.className = 'sort-btn';
|
11
|
-
sortBtn.innerHTML = '
|
10
|
+
sortBtn.className = 'sort-btn glyph-font';
|
11
|
+
sortBtn.innerHTML = '';
|
12
12
|
sortBtn.style.cursor = 'pointer';
|
13
13
|
sortBtn.setAttribute('data-sort-order', '');
|
14
14
|
sortBtn.onclick = () => toggleSort(table, index, sortBtn);
|
@@ -25,8 +25,7 @@ function initTableFilters(table) {
|
|
25
25
|
if (index === headers.length - 1) {
|
26
26
|
// Add row counter
|
27
27
|
const rowCount = document.createElement('span');
|
28
|
-
rowCount.className = 'row-count';
|
29
|
-
rowCount.classList.add('system-font');
|
28
|
+
rowCount.className = 'row-count system-font';
|
30
29
|
rowCount.onclick = () => exportToExcel(table);
|
31
30
|
contentSpan.appendChild(rowCount);
|
32
31
|
}
|
@@ -49,7 +48,7 @@ function initTableFilters(table) {
|
|
49
48
|
function updateRowCount(table, count) {
|
50
49
|
const rowCount = table.querySelector('.row-count');
|
51
50
|
if (rowCount) {
|
52
|
-
rowCount.
|
51
|
+
rowCount.innerHTML = `<span class="glyph-font"></span> ${count}`;
|
53
52
|
}
|
54
53
|
}
|
55
54
|
|
@@ -58,7 +57,7 @@ function toggleSort(table, colIndex, sortBtn) {
|
|
58
57
|
table.querySelectorAll('.sort-btn').forEach(btn => {
|
59
58
|
if (btn !== sortBtn) {
|
60
59
|
btn.setAttribute('data-sort-order', '');
|
61
|
-
btn.innerHTML = '
|
60
|
+
btn.innerHTML = '';
|
62
61
|
}
|
63
62
|
});
|
64
63
|
|
@@ -67,12 +66,12 @@ function toggleSort(table, colIndex, sortBtn) {
|
|
67
66
|
let newOrder = 'asc';
|
68
67
|
if (currentOrder === 'asc') {
|
69
68
|
newOrder = 'desc';
|
70
|
-
sortBtn.innerHTML = '
|
69
|
+
sortBtn.innerHTML = '';
|
71
70
|
} else if (currentOrder === 'desc') {
|
72
71
|
newOrder = '';
|
73
|
-
sortBtn.innerHTML = '
|
72
|
+
sortBtn.innerHTML = '';
|
74
73
|
} else {
|
75
|
-
sortBtn.innerHTML = '
|
74
|
+
sortBtn.innerHTML = '';
|
76
75
|
}
|
77
76
|
sortBtn.setAttribute('data-sort-order', newOrder);
|
78
77
|
sortBtn.setAttribute('data-col-index', colIndex); // Store column index on the button
|
@@ -151,19 +150,14 @@ function exportToExcel(table) {
|
|
151
150
|
<html>
|
152
151
|
<head>
|
153
152
|
<meta charset="UTF-8">
|
154
|
-
<style>
|
155
|
-
table { border-collapse: collapse; }
|
156
|
-
th, td { border: 1px solid black; padding: 5px; }
|
157
|
-
th { background-color: #f2f2f2; }
|
158
|
-
</style>
|
159
153
|
</head>
|
160
154
|
<body>
|
161
|
-
<table>
|
155
|
+
<table border="1" bgcolor="#f0f0f0" bordercolor="#ffffff">
|
162
156
|
<thead>
|
163
157
|
<tr>${
|
164
158
|
Array.from(table.querySelectorAll('thead th'))
|
165
159
|
.filter((_, i) => i !== 4 || table !== commandsTable)
|
166
|
-
.map(th => `<th>${th.querySelector('.th-content')?.textContent.replace('⇕', '').replace(/⤓.*/, '').trim() || ''}</th>`)
|
160
|
+
.map(th => `<th bgcolor="#b0c7ff">${th.querySelector('.th-content')?.textContent.replace('⇕', '').replace(/⤓.*/, '').trim() || ''}</th>`)
|
167
161
|
.join('')
|
168
162
|
}</tr>
|
169
163
|
</thead>
|
@@ -174,7 +168,7 @@ function exportToExcel(table) {
|
|
174
168
|
`<tr>${
|
175
169
|
Array.from(row.cells)
|
176
170
|
.filter((_, i) => i !== 4 || table !== commandsTable)
|
177
|
-
.map(cell => `<td>${cell.
|
171
|
+
.map(cell => `<td valign="top">${cell.innerHTML}</td>`)
|
178
172
|
.join('')
|
179
173
|
}</tr>`
|
180
174
|
).join('')
|
pywebexec/version.py
CHANGED
@@ -2,10 +2,10 @@ pywebexec/__init__.py,sha256=197fHJy0UDBwTTpGCGortZRr-w2kTaD7MxqdbVmTEi0,61
|
|
2
2
|
pywebexec/host_ip.py,sha256=oiCMlo2o3AkkgXDarUSx8T3FWXKI0vk1-EPnx5FGBd8,1332
|
3
3
|
pywebexec/pywebexec.py,sha256=NT4f7Xd4qMkAgjgwguqKKbUkOTCqT7ArRYlsW57Pfwg,48477
|
4
4
|
pywebexec/swagger.yaml,sha256=I_oLpp7Hqel8SDEEykvpmCT-Gv3ytGlziq9bvQOrtZY,7598
|
5
|
-
pywebexec/version.py,sha256=
|
5
|
+
pywebexec/version.py,sha256=MR9avcqaQooUbRHXdvzgSvIO8lnZznuyDaeYiPpkwyo,511
|
6
6
|
pywebexec/static/css/form.css,sha256=2JUhraeL46JaiNoD_MSKA2JdouHkXaamhd77DnCqG8k,7291
|
7
7
|
pywebexec/static/css/markdown.css,sha256=br4-iK9wigTs54N2KHtjgZ4KLH0THVSvJo-XZAdMHiE,1970
|
8
|
-
pywebexec/static/css/style.css,sha256=
|
8
|
+
pywebexec/static/css/style.css,sha256=TX60M-mzIPTGVDmaypRCOcyxc8A7dOjx-p1_bpJ6t9M,11772
|
9
9
|
pywebexec/static/css/swagger-ui.css,sha256=xhXN8fnUaIACGHuPIEIr9-qmyYr6Zx0k2wv4Qy7Bg1Y,154985
|
10
10
|
pywebexec/static/css/swagger-ui.css.map,sha256=dJy-xBn_htK4BNupTMIl33ddse7BXsrCdDJWlTJodnw,258842
|
11
11
|
pywebexec/static/css/xterm.css,sha256=uo5phWaUiJgcz0DAzv46uoByLLbJLeetYosL1xf68rY,5559
|
@@ -38,7 +38,7 @@ pywebexec/static/js/popup.js,sha256=IaKmk2U2hEn-Nv6krf_PPW6LaG8NcpCkJKb7lUX0qZo,
|
|
38
38
|
pywebexec/static/js/schemaform.js,sha256=2AIjwdjSDTE2ide8UMmQt4tS-7-JKqidKdopq9mNzvo,12458
|
39
39
|
pywebexec/static/js/script.js,sha256=SpNmskHKJHza0Au7QWrb17EKqiMPbMz5CDmaLt_i3M4,21548
|
40
40
|
pywebexec/static/js/swagger-form.js,sha256=CLcSHMhk5P4-_2MIRBoJLgEnIj_9keDDSzUugXHZjio,4565
|
41
|
-
pywebexec/static/js/tablefilter.js,sha256=
|
41
|
+
pywebexec/static/js/tablefilter.js,sha256=8vhu8hOR5zE1U7U91cedtde4wPYu24-vfRORUqJasSg,7613
|
42
42
|
pywebexec/static/js/js-yaml/LICENSE,sha256=oHvCRGi5ZUznalR9R6LbKC0HcztxXbTHOpi9Y5YflVA,1084
|
43
43
|
pywebexec/static/js/js-yaml/js-yaml.min.js,sha256=Rdw90D3AegZwWiwpibjH9wkBPwS9U4bjJ51ORH8H69c,39430
|
44
44
|
pywebexec/static/js/marked/LICENSE.md,sha256=jjo_gvWaYJWPVsoI9EVkfDKkcz3HymwsRvbriYRxq5w,2942
|
@@ -68,9 +68,9 @@ pywebexec/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
|
|
68
68
|
pywebexec/templates/index.html,sha256=29-MBjeJ5mgYdrkRB27WiY0okQLYcFFycJvdCMuwvV0,3974
|
69
69
|
pywebexec/templates/popup.html,sha256=3kpMccKD_OLLhJ4Y9KRw6Ny8wQWjVaRrUfV9y5-bDiQ,1580
|
70
70
|
pywebexec/templates/swagger_ui.html,sha256=MAPr-z96VERAecDvX37V8q2Nxph-O0fNDBul1x2w9SI,1147
|
71
|
-
pywebexec-2.4.
|
72
|
-
pywebexec-2.4.
|
73
|
-
pywebexec-2.4.
|
74
|
-
pywebexec-2.4.
|
75
|
-
pywebexec-2.4.
|
76
|
-
pywebexec-2.4.
|
71
|
+
pywebexec-2.4.4.dist-info/licenses/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
|
72
|
+
pywebexec-2.4.4.dist-info/METADATA,sha256=WXs1g0yQUpO0irTLYgd3he52eCwT4uFqqr3RrKuQ-tQ,13015
|
73
|
+
pywebexec-2.4.4.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
74
|
+
pywebexec-2.4.4.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
|
75
|
+
pywebexec-2.4.4.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
|
76
|
+
pywebexec-2.4.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|