shell-mirror 1.5.117 → 1.5.118
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 +79 -6
- package/public/app/dashboard.js +25 -3
package/package.json
CHANGED
package/public/app/dashboard.css
CHANGED
|
@@ -1035,20 +1035,93 @@ body {
|
|
|
1035
1035
|
.connection-status.disconnected { color: var(--warning); }
|
|
1036
1036
|
.connection-status.error { color: var(--danger); }
|
|
1037
1037
|
|
|
1038
|
-
/* Usage Instructions - muted helper
|
|
1038
|
+
/* Usage Instructions - muted helper section */
|
|
1039
1039
|
.usage-instructions {
|
|
1040
|
-
margin-top:
|
|
1041
|
-
|
|
1040
|
+
margin-top: 16px;
|
|
1041
|
+
padding-top: 16px;
|
|
1042
|
+
border-top: 1px solid var(--border);
|
|
1042
1043
|
color: var(--text-muted);
|
|
1043
1044
|
font-size: 0.8rem;
|
|
1044
|
-
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
.usage-step {
|
|
1048
|
+
display: flex;
|
|
1049
|
+
align-items: flex-start;
|
|
1050
|
+
gap: 12px;
|
|
1051
|
+
margin-bottom: 12px;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
.usage-step-num {
|
|
1055
|
+
width: 20px;
|
|
1056
|
+
height: 20px;
|
|
1057
|
+
background: var(--bg-tertiary);
|
|
1058
|
+
color: var(--text-muted);
|
|
1059
|
+
border-radius: 50%;
|
|
1060
|
+
display: flex;
|
|
1061
|
+
align-items: center;
|
|
1062
|
+
justify-content: center;
|
|
1063
|
+
font-size: 0.7rem;
|
|
1064
|
+
font-weight: 600;
|
|
1065
|
+
flex-shrink: 0;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
.usage-step-content {
|
|
1069
|
+
display: flex;
|
|
1070
|
+
flex-direction: column;
|
|
1071
|
+
gap: 4px;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
.usage-step-title {
|
|
1075
|
+
color: var(--text-secondary);
|
|
1076
|
+
font-size: 0.8rem;
|
|
1045
1077
|
}
|
|
1046
1078
|
|
|
1047
1079
|
.usage-instructions code {
|
|
1048
1080
|
background: var(--bg-tertiary);
|
|
1049
|
-
padding:
|
|
1081
|
+
padding: 4px 8px;
|
|
1050
1082
|
border-radius: 4px;
|
|
1051
1083
|
font-family: 'Monaco', 'Menlo', monospace;
|
|
1052
1084
|
font-size: 0.75rem;
|
|
1053
|
-
color: var(--text-
|
|
1085
|
+
color: var(--text-muted);
|
|
1086
|
+
display: inline-block;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
.usage-note {
|
|
1090
|
+
color: var(--text-muted);
|
|
1091
|
+
font-size: 0.75rem;
|
|
1092
|
+
margin: 8px 0 16px 32px;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
.usage-troubleshooting {
|
|
1096
|
+
margin-top: 12px;
|
|
1097
|
+
padding-top: 12px;
|
|
1098
|
+
border-top: 1px solid var(--border);
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
.usage-trouble-title {
|
|
1102
|
+
color: var(--text-muted);
|
|
1103
|
+
font-size: 0.75rem;
|
|
1104
|
+
display: block;
|
|
1105
|
+
margin-bottom: 8px;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
.usage-troubleshooting ul {
|
|
1109
|
+
list-style: none;
|
|
1110
|
+
margin: 0;
|
|
1111
|
+
padding: 0;
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
.usage-troubleshooting li {
|
|
1115
|
+
color: var(--text-muted);
|
|
1116
|
+
font-size: 0.75rem;
|
|
1117
|
+
padding: 3px 0;
|
|
1118
|
+
padding-left: 12px;
|
|
1119
|
+
position: relative;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
.usage-troubleshooting li::before {
|
|
1123
|
+
content: '•';
|
|
1124
|
+
position: absolute;
|
|
1125
|
+
left: 0;
|
|
1126
|
+
color: var(--text-muted);
|
|
1054
1127
|
}
|
package/public/app/dashboard.js
CHANGED
|
@@ -671,9 +671,31 @@ class ShellMirrorDashboard {
|
|
|
671
671
|
<div class="card-content">
|
|
672
672
|
${agentCount > 0 ? agentsHtml : this.renderEmptyAgentState()}
|
|
673
673
|
</div>
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
674
|
+
<div class="usage-instructions">
|
|
675
|
+
<div class="usage-step">
|
|
676
|
+
<span class="usage-step-num">1</span>
|
|
677
|
+
<div class="usage-step-content">
|
|
678
|
+
<span class="usage-step-title">Install the agent</span>
|
|
679
|
+
<code>npm install -g shell-mirror</code>
|
|
680
|
+
</div>
|
|
681
|
+
</div>
|
|
682
|
+
<div class="usage-step">
|
|
683
|
+
<span class="usage-step-num">2</span>
|
|
684
|
+
<div class="usage-step-content">
|
|
685
|
+
<span class="usage-step-title">Run the agent</span>
|
|
686
|
+
<code>shell-mirror</code>
|
|
687
|
+
</div>
|
|
688
|
+
</div>
|
|
689
|
+
<p class="usage-note">The agent will automatically connect to your dashboard</p>
|
|
690
|
+
<div class="usage-troubleshooting">
|
|
691
|
+
<span class="usage-trouble-title">Troubleshooting</span>
|
|
692
|
+
<ul>
|
|
693
|
+
<li>Make sure you're logged in with the same Google account</li>
|
|
694
|
+
<li>Check that the agent is running in your terminal</li>
|
|
695
|
+
<li>Refresh this dashboard after starting the agent</li>
|
|
696
|
+
</ul>
|
|
697
|
+
</div>
|
|
698
|
+
</div>
|
|
677
699
|
</div>
|
|
678
700
|
`;
|
|
679
701
|
}
|