shell-mirror 1.5.126 → 1.5.127
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/terminal.html +15 -0
- package/public/app/terminal.js +6 -0
package/package.json
CHANGED
package/public/app/terminal.html
CHANGED
|
@@ -231,6 +231,17 @@
|
|
|
231
231
|
50% { opacity: 0.5; }
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
+
@keyframes calm-pulsate {
|
|
235
|
+
0%, 100% {
|
|
236
|
+
box-shadow: 0 0 0 rgba(102, 126, 234, 0);
|
|
237
|
+
border-color: #444;
|
|
238
|
+
}
|
|
239
|
+
50% {
|
|
240
|
+
box-shadow: 0 0 12px rgba(102, 126, 234, 0.6);
|
|
241
|
+
border-color: #667eea;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
234
245
|
/* Header Buttons */
|
|
235
246
|
.header-btn {
|
|
236
247
|
background: transparent;
|
|
@@ -252,6 +263,10 @@
|
|
|
252
263
|
border-color: #667eea;
|
|
253
264
|
}
|
|
254
265
|
|
|
266
|
+
.dashboard-btn.pulsate {
|
|
267
|
+
animation: calm-pulsate 2s ease-in-out infinite;
|
|
268
|
+
}
|
|
269
|
+
|
|
255
270
|
.help-btn .btn-text {
|
|
256
271
|
display: none;
|
|
257
272
|
}
|
package/public/app/terminal.js
CHANGED
|
@@ -322,6 +322,12 @@ function startConnection() {
|
|
|
322
322
|
term.write(' • Session was terminated\r\n');
|
|
323
323
|
term.write(' • Network connectivity issues\r\n');
|
|
324
324
|
term.write('\r\n\x1b[36m💡 Click Dashboard to return and try another session\x1b[0m\r\n');
|
|
325
|
+
|
|
326
|
+
// Make Dashboard button pulsate calmly to guide user back
|
|
327
|
+
const dashboardBtn = document.querySelector('.dashboard-btn');
|
|
328
|
+
if (dashboardBtn) {
|
|
329
|
+
dashboardBtn.classList.add('pulsate');
|
|
330
|
+
}
|
|
325
331
|
}
|
|
326
332
|
}, 60000);
|
|
327
333
|
|