shell-mirror 1.5.111 โ 1.5.112
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.
- package/package.json +1 -1
- package/public/app/dashboard.css +22 -7
- package/public/app/dashboard.js +1 -8
package/package.json
CHANGED
package/public/app/dashboard.css
CHANGED
|
@@ -23,11 +23,15 @@
|
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
html {
|
|
27
|
+
background: #0a0b0d;
|
|
28
|
+
}
|
|
29
|
+
|
|
26
30
|
body {
|
|
27
31
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
28
32
|
line-height: 1.5;
|
|
29
33
|
color: var(--text-primary);
|
|
30
|
-
background: var(--bg-primary);
|
|
34
|
+
background: var(--bg-primary) !important;
|
|
31
35
|
min-height: 100vh;
|
|
32
36
|
}
|
|
33
37
|
|
|
@@ -194,12 +198,7 @@ body {
|
|
|
194
198
|
}
|
|
195
199
|
|
|
196
200
|
.agent-count {
|
|
197
|
-
|
|
198
|
-
color: white;
|
|
199
|
-
padding: 2px 8px;
|
|
200
|
-
border-radius: 10px;
|
|
201
|
-
font-size: 0.75rem;
|
|
202
|
-
font-weight: 600;
|
|
201
|
+
display: none;
|
|
203
202
|
}
|
|
204
203
|
|
|
205
204
|
.refresh-time {
|
|
@@ -295,12 +294,28 @@ body {
|
|
|
295
294
|
padding: 0;
|
|
296
295
|
}
|
|
297
296
|
|
|
297
|
+
.agent-status.recent::before {
|
|
298
|
+
content: '';
|
|
299
|
+
width: 8px;
|
|
300
|
+
height: 8px;
|
|
301
|
+
background: var(--warning);
|
|
302
|
+
border-radius: 50%;
|
|
303
|
+
}
|
|
304
|
+
|
|
298
305
|
.agent-status.offline {
|
|
299
306
|
color: var(--danger);
|
|
300
307
|
background: none;
|
|
301
308
|
padding: 0;
|
|
302
309
|
}
|
|
303
310
|
|
|
311
|
+
.agent-status.offline::before {
|
|
312
|
+
content: '';
|
|
313
|
+
width: 8px;
|
|
314
|
+
height: 8px;
|
|
315
|
+
background: var(--danger);
|
|
316
|
+
border-radius: 50%;
|
|
317
|
+
}
|
|
318
|
+
|
|
304
319
|
.agent-session-count {
|
|
305
320
|
color: var(--text-muted);
|
|
306
321
|
font-weight: 400;
|
package/public/app/dashboard.js
CHANGED
|
@@ -556,12 +556,6 @@ class ShellMirrorDashboard {
|
|
|
556
556
|
const sessionCount = sessions.length;
|
|
557
557
|
|
|
558
558
|
const isConnectable = agent.status === 'online' || agent.status === 'recent';
|
|
559
|
-
const statusIcon = {
|
|
560
|
-
'online': '๐ข',
|
|
561
|
-
'recent': '๐ก',
|
|
562
|
-
'offline': '๐ด'
|
|
563
|
-
}[agent.status] || 'โ';
|
|
564
|
-
|
|
565
559
|
const statusText = {
|
|
566
560
|
'online': 'Live',
|
|
567
561
|
'recent': 'Recent',
|
|
@@ -597,8 +591,7 @@ class ShellMirrorDashboard {
|
|
|
597
591
|
</button>
|
|
598
592
|
</div>
|
|
599
593
|
<div class="agent-status ${agent.status}">
|
|
600
|
-
${
|
|
601
|
-
${sessionCount > 0 ? ` ยท ${sessionCount} session${sessionCount !== 1 ? 's' : ''}` : ''}
|
|
594
|
+
${statusText}${sessionCount > 0 ? ` ยท ${sessionCount} session${sessionCount !== 1 ? 's' : ''}` : ''}
|
|
602
595
|
</div>
|
|
603
596
|
</div>
|
|
604
597
|
</div>
|