dsh-ssh-hub 0.0.0-stage → 0.2.0
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/LICENSE +202 -0
- package/README.md +271 -2
- package/cordis.patch.yml +16 -0
- package/icon.svg +3 -0
- package/lib/client.js +13975 -0
- package/lib/index.js +6908 -0
- package/lib/types/activity/history.d.ts +50 -0
- package/lib/types/alerting/notify.d.ts +89 -0
- package/lib/types/alerting/prompt-summary.d.ts +28 -0
- package/lib/types/alerting/rules.d.ts +135 -0
- package/lib/types/alerting/tools.d.ts +30 -0
- package/lib/types/audit/audit-log.d.ts +84 -0
- package/lib/types/audit/recorder.d.ts +50 -0
- package/lib/types/client/api.d.ts +222 -0
- package/lib/types/client/index.d.ts +45 -0
- package/lib/types/client/locales.d.ts +319 -0
- package/lib/types/client/native-panel.d.ts +70 -0
- package/lib/types/client/panel/ClusterTab.d.ts +7 -0
- package/lib/types/client/panel/DeployTab.d.ts +10 -0
- package/lib/types/client/panel/FleetTab.d.ts +10 -0
- package/lib/types/client/panel/HostFormDialog.d.ts +12 -0
- package/lib/types/client/panel/HostsTab.d.ts +25 -0
- package/lib/types/client/panel/LogsTab.d.ts +10 -0
- package/lib/types/client/panel/SshPanel.d.ts +14 -0
- package/lib/types/client/panel/TerminalTab.d.ts +27 -0
- package/lib/types/client/panel/TransferTab.d.ts +7 -0
- package/lib/types/client/panel/TunnelEditDialog.d.ts +15 -0
- package/lib/types/client/panel/TunnelsTab.d.ts +27 -0
- package/lib/types/client/panel/controller.d.ts +253 -0
- package/lib/types/client/panel/helpers.d.ts +45 -0
- package/lib/types/client/panel/tabs.d.ts +62 -0
- package/lib/types/client/panel/xterm.css.d.ts +2 -0
- package/lib/types/client/settings-binding.d.ts +71 -0
- package/lib/types/deploy/orchestrator.d.ts +158 -0
- package/lib/types/deploy/tools.d.ts +14 -0
- package/lib/types/dsh-home.d.ts +16 -0
- package/lib/types/engine/cluster.d.ts +19 -0
- package/lib/types/engine/connection-pool.d.ts +183 -0
- package/lib/types/engine/proxy-command.d.ts +36 -0
- package/lib/types/engine/pty.d.ts +32 -0
- package/lib/types/engine/sftp.d.ts +20 -0
- package/lib/types/engine/terminal-sessions.d.ts +67 -0
- package/lib/types/engine/tunnel-discovery.d.ts +89 -0
- package/lib/types/engine/tunnel-remarks.d.ts +49 -0
- package/lib/types/engine/tunnel.d.ts +76 -0
- package/lib/types/engine.d.ts +103 -0
- package/lib/types/http.d.ts +59 -0
- package/lib/types/index.d.ts +128 -0
- package/lib/types/inspect/checks.d.ts +118 -0
- package/lib/types/inspect/inspection.d.ts +111 -0
- package/lib/types/inspect/tools.d.ts +50 -0
- package/lib/types/logs/search.d.ts +131 -0
- package/lib/types/logs/tools.d.ts +6 -0
- package/lib/types/loopback.d.ts +64 -0
- package/lib/types/monitor/loop.d.ts +133 -0
- package/lib/types/monitor/metrics.d.ts +151 -0
- package/lib/types/mount-once.d.ts +55 -0
- package/lib/types/protocol.d.ts +524 -0
- package/lib/types/routes.d.ts +82 -0
- package/lib/types/security/known-hosts.d.ts +153 -0
- package/lib/types/security/master-secret.d.ts +157 -0
- package/lib/types/security/redact.d.ts +44 -0
- package/lib/types/security/secrets.d.ts +70 -0
- package/lib/types/ssh-config.d.ts +42 -0
- package/lib/types/store.d.ts +183 -0
- package/lib/types/tool-surface.d.ts +72 -0
- package/lib/types/tools.d.ts +56 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +126 -6
- package/src/activity/history.ts +117 -0
- package/src/alerting/notify.ts +212 -0
- package/src/alerting/prompt-summary.ts +71 -0
- package/src/alerting/rules.ts +281 -0
- package/src/alerting/tools.ts +263 -0
- package/src/audit/audit-log.ts +199 -0
- package/src/audit/recorder.ts +73 -0
- package/src/client/api.ts +782 -0
- package/src/client/css-modules.d.ts +5 -0
- package/src/client/index.ts +150 -0
- package/src/client/locales.ts +654 -0
- package/src/client/native-panel.tsx +141 -0
- package/src/client/panel/ClusterTab.tsx +141 -0
- package/src/client/panel/DeployTab.tsx +314 -0
- package/src/client/panel/FleetTab.tsx +494 -0
- package/src/client/panel/HostFormDialog.tsx +289 -0
- package/src/client/panel/HostsTab.tsx +395 -0
- package/src/client/panel/LogsTab.tsx +208 -0
- package/src/client/panel/SshPanel.tsx +105 -0
- package/src/client/panel/TerminalTab.tsx +550 -0
- package/src/client/panel/TransferTab.tsx +238 -0
- package/src/client/panel/TunnelEditDialog.tsx +174 -0
- package/src/client/panel/TunnelsTab.tsx +328 -0
- package/src/client/panel/controller.ts +507 -0
- package/src/client/panel/helpers.ts +84 -0
- package/src/client/panel/panel.module.css +1734 -0
- package/src/client/panel/tabs.ts +52 -0
- package/src/client/panel/xterm.css.ts +2 -0
- package/src/client/settings-binding.ts +184 -0
- package/src/deploy/orchestrator.ts +326 -0
- package/src/deploy/tools.ts +225 -0
- package/src/dsh-home.ts +42 -0
- package/src/engine/cluster.ts +60 -0
- package/src/engine/connection-pool.ts +721 -0
- package/src/engine/proxy-command.ts +248 -0
- package/src/engine/pty.ts +78 -0
- package/src/engine/sftp.ts +229 -0
- package/src/engine/terminal-sessions.ts +280 -0
- package/src/engine/tunnel-discovery.ts +353 -0
- package/src/engine/tunnel-remarks.ts +120 -0
- package/src/engine/tunnel.ts +300 -0
- package/src/engine.ts +195 -0
- package/src/http.ts +127 -0
- package/src/index.ts +690 -0
- package/src/inspect/checks.ts +251 -0
- package/src/inspect/inspection.ts +321 -0
- package/src/inspect/tools.ts +366 -0
- package/src/logs/search.ts +251 -0
- package/src/logs/tools.ts +160 -0
- package/src/loopback.ts +119 -0
- package/src/monitor/loop.ts +265 -0
- package/src/monitor/metrics.ts +333 -0
- package/src/mount-once.ts +142 -0
- package/src/protocol.ts +534 -0
- package/src/routes.ts +998 -0
- package/src/security/known-hosts.ts +342 -0
- package/src/security/master-secret.ts +334 -0
- package/src/security/redact.ts +119 -0
- package/src/security/secrets.ts +152 -0
- package/src/ssh-config.ts +182 -0
- package/src/store.ts +757 -0
- package/src/tool-surface.ts +96 -0
- package/src/tools.ts +550 -0
|
@@ -0,0 +1,1734 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* dsh-ssh panel styles. Scoped by the plugin's own data attributes so nothing
|
|
3
|
+
* leaks into the rest of the GUI; colors ride the dsh --dsw-* tokens so the
|
|
4
|
+
* panel follows the active theme (light/dark and skins).
|
|
5
|
+
*
|
|
6
|
+
* The panel is a native main-slot page: the shell renders it only while this
|
|
7
|
+
* panel is selected, so this file carries no visibility rule and no rule over
|
|
8
|
+
* the conversation column, and the sidebar row is the shell's own panel row,
|
|
9
|
+
* so there is no injected entry row to style either.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/* ---panel frame --------------------------------------------------------------
|
|
13
|
+
*
|
|
14
|
+
* Rack-instrument visual system. The navigation, controls and ledger are a
|
|
15
|
+
* single instrument rather than a page containing unrelated web widgets.
|
|
16
|
+
* Every colour remains a shell token: the rack is a surface treatment, not a
|
|
17
|
+
* second theme, so the light and dark palettes both remain in force.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
.view {
|
|
21
|
+
height: 100%;
|
|
22
|
+
min-height: 0;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.panel {
|
|
27
|
+
--ssh-unit: 4px;
|
|
28
|
+
--ssh-radius: 5px;
|
|
29
|
+
--ssh-control-height: 32px;
|
|
30
|
+
--ssh-data-face: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
|
|
31
|
+
/* Header and tab strip share the surrounding surface. An inverted dark
|
|
32
|
+
chassis was tried and rejected: next to the rest of the shell it reads as a
|
|
33
|
+
different application bolted into the page. Only the terminal keeps its own
|
|
34
|
+
dark surface, because a terminal is expected to have one.
|
|
35
|
+
|
|
36
|
+
The fills below are MIXES, not bg-layer tokens: in the light skin
|
|
37
|
+
bg-base, bg-layer-1 and bg-layer-2 all resolve to pure white, so painting
|
|
38
|
+
the active tab with bg-layer-2 made it indistinguishable from its
|
|
39
|
+
neighbours. Mixing a little label-primary into transparent produces a
|
|
40
|
+
visible step on white and on near-black alike, and still follows the theme. */
|
|
41
|
+
--ssh-chrome: var(--dsw-alias-bg-layer-1);
|
|
42
|
+
--ssh-tab-hover: color-mix(in srgb, var(--dsw-alias-label-primary) 5%, transparent);
|
|
43
|
+
--ssh-tab-active: color-mix(in srgb, var(--dsw-alias-label-primary) 10%, transparent);
|
|
44
|
+
/* Calibrated TEXT colours.
|
|
45
|
+
The raw state-* and label-tertiary tokens are built for dots and fills, not
|
|
46
|
+
glyphs: on the light skin state-success measures 2.28:1 and state-warn
|
|
47
|
+
2.15:1 against white, roughly half the 4.5:1 floor for body text, and
|
|
48
|
+
label-tertiary lands at 3.71:1. Pulling each hue toward label-primary closes
|
|
49
|
+
the gap and works in both skins at once, because label-primary is near-black
|
|
50
|
+
on the light skin and near-white on the dark one. Measured by
|
|
51
|
+
scripts/audit-text-contrast.mjs; do not "tidy" these back to the raw tokens. */
|
|
52
|
+
/* Muted text mixes toward SECONDARY, not primary: pulling it toward primary
|
|
53
|
+
makes it darker than secondary in the light skin and lighter than it in the
|
|
54
|
+
dark one, i.e. louder than secondary either way, which inverts the
|
|
55
|
+
hierarchy. At 50% it measures 4.58:1 (light) and 8.84:1 (dark) — above the
|
|
56
|
+
4.5 floor and still quieter than secondary's 5.80 / 10.42. */
|
|
57
|
+
--ssh-ink-muted: color-mix(in srgb, var(--dsw-alias-label-tertiary) 50%, var(--dsw-alias-label-secondary));
|
|
58
|
+
--ssh-ok-text: color-mix(in srgb, var(--dsw-alias-state-success-primary) 66%, var(--dsw-alias-label-primary));
|
|
59
|
+
--ssh-warn-text: color-mix(in srgb, var(--dsw-alias-state-warn-primary) 60%, var(--dsw-alias-label-primary));
|
|
60
|
+
--ssh-error-text: color-mix(in srgb, var(--dsw-alias-state-error-primary) 80%, var(--dsw-alias-label-primary));
|
|
61
|
+
--ssh-info-text: color-mix(in srgb, var(--dsw-alias-state-business-primary) 80%, var(--dsw-alias-label-primary));
|
|
62
|
+
/* Solid-fill buttons carry their own foreground, so they are a separate case:
|
|
63
|
+
`label-primary-foreground` (white in the light skin) on
|
|
64
|
+
`button-info-fill` (rgb(65,118,230)) measures 4.23:1 — just under the floor,
|
|
65
|
+
and the theme has no darker info fill to switch to. Pulling the fill 10%
|
|
66
|
+
toward the foreground's opposite reaches 5.06:1 while staying visually the
|
|
67
|
+
same blue. */
|
|
68
|
+
--ssh-fill-primary: color-mix(in srgb, var(--dsw-alias-button-info-fill) 90%, var(--dsw-alias-label-primary));
|
|
69
|
+
/* Hover is derived from the fill, not from `button-info-hover`.
|
|
70
|
+
The theme's hover token is `deepseek-400` — a LIGHTER blue — in the light
|
|
71
|
+
skin, while the fill is `deepseek-500`. Mixing that toward label-primary
|
|
72
|
+
therefore lightened the button, and white text on it measured 2.79:1, below
|
|
73
|
+
the 4.5 floor at exactly the moment the user's cursor is on the control.
|
|
74
|
+
Mixing the fill further toward label-primary instead moves it away from the
|
|
75
|
+
foreground colour in both skins, because the foreground is the opposite of
|
|
76
|
+
label-primary. Measured: light 4.93 -> 6.14, dark 8.86 -> 9.94. */
|
|
77
|
+
--ssh-fill-primary-hover: color-mix(in srgb, var(--ssh-fill-primary) 85%, var(--dsw-alias-label-primary));
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
height: 100%;
|
|
81
|
+
min-width: 0;
|
|
82
|
+
min-height: 0;
|
|
83
|
+
padding: 0;
|
|
84
|
+
gap: 0;
|
|
85
|
+
background: var(--dsw-alias-bg-layer-1);
|
|
86
|
+
color: var(--dsw-alias-label-primary);
|
|
87
|
+
font-family: var(--dsw-font-family);
|
|
88
|
+
font-size: 13px;
|
|
89
|
+
line-height: 1.45;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.panelHeader {
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
gap: 16px;
|
|
96
|
+
flex: none;
|
|
97
|
+
min-height: 48px;
|
|
98
|
+
padding: 0 20px;
|
|
99
|
+
background: var(--ssh-chrome);
|
|
100
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.panelTitle {
|
|
104
|
+
margin: 0;
|
|
105
|
+
/* Inside .panelHeader this is the growing child: it takes the space left by
|
|
106
|
+
the back button. Unrelated to the tab strip's flex, which acts on height. */
|
|
107
|
+
flex: 1;
|
|
108
|
+
font-size: 14px;
|
|
109
|
+
font-weight: 650;
|
|
110
|
+
letter-spacing: 0.01em;
|
|
111
|
+
color: var(--dsw-alias-label-primary);
|
|
112
|
+
white-space: nowrap;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.backButton {
|
|
116
|
+
display: inline-flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
gap: 6px;
|
|
119
|
+
height: 28px;
|
|
120
|
+
padding: 0;
|
|
121
|
+
color: var(--dsw-alias-label-secondary);
|
|
122
|
+
font-size: 12px;
|
|
123
|
+
border: none;
|
|
124
|
+
background: transparent;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.backButton:hover:not(:disabled) {
|
|
128
|
+
color: var(--dsw-alias-brand-primary);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* --- tab bar ------------------------------------------------------------------
|
|
132
|
+
*
|
|
133
|
+
* A segmented channel selector, not eight links. Its filled selected segment
|
|
134
|
+
* makes the current instrument unmistakable even when the page is busy.
|
|
135
|
+
*/
|
|
136
|
+
|
|
137
|
+
.tabBar {
|
|
138
|
+
display: flex;
|
|
139
|
+
align-items: stretch;
|
|
140
|
+
gap: 2px;
|
|
141
|
+
/* `flex: none` is correct HERE and must not be "fixed" into a growable value:
|
|
142
|
+
the bar is a child of `.panel`, which is a COLUMN flex container, so flex
|
|
143
|
+
controls its height, not its width. Width comes from `align-items: stretch`,
|
|
144
|
+
and `overflow-x: auto` then scrolls the tabs inside that width. Measured on
|
|
145
|
+
the real SshPanel at 768 / 640 / 600 / 520 / 480 / 360 px: the page never
|
|
146
|
+
scrolls sideways and the strip switches to its own horizontal scroll below
|
|
147
|
+
520px. Making it grow would stretch the strip vertically. */
|
|
148
|
+
flex: none;
|
|
149
|
+
padding: 0 20px;
|
|
150
|
+
background: var(--ssh-chrome);
|
|
151
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1);
|
|
152
|
+
overflow-x: auto;
|
|
153
|
+
scroll-padding-inline: 20px;
|
|
154
|
+
scrollbar-width: thin;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.tab {
|
|
158
|
+
position: relative;
|
|
159
|
+
min-height: 40px;
|
|
160
|
+
padding: 0 14px;
|
|
161
|
+
font-size: 12px;
|
|
162
|
+
font-weight: 500;
|
|
163
|
+
color: var(--dsw-alias-label-secondary);
|
|
164
|
+
background: transparent;
|
|
165
|
+
border: none;
|
|
166
|
+
border-radius: var(--ssh-radius) var(--ssh-radius) 0 0;
|
|
167
|
+
cursor: pointer;
|
|
168
|
+
white-space: nowrap;
|
|
169
|
+
transition: color 140ms ease, background 140ms ease;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* The underline is the only "selected" signal that survives a busy page, and
|
|
173
|
+
it sits on the tab bar's own rule so it never boxes the label in. */
|
|
174
|
+
.tab::after {
|
|
175
|
+
content: '';
|
|
176
|
+
position: absolute;
|
|
177
|
+
left: 8px;
|
|
178
|
+
right: 8px;
|
|
179
|
+
bottom: -1px;
|
|
180
|
+
height: 2px;
|
|
181
|
+
border-radius: 1px;
|
|
182
|
+
background: transparent;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.tab:hover {
|
|
186
|
+
color: var(--dsw-alias-label-primary);
|
|
187
|
+
background: var(--ssh-tab-hover);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.tab[data-active] {
|
|
191
|
+
color: var(--dsw-alias-label-primary);
|
|
192
|
+
font-weight: 650;
|
|
193
|
+
background: var(--ssh-tab-active);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.tab[data-active]::after {
|
|
197
|
+
background: var(--dsw-alias-brand-primary);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.panelContent {
|
|
201
|
+
flex: 1;
|
|
202
|
+
min-height: 0;
|
|
203
|
+
display: flex;
|
|
204
|
+
flex-direction: column;
|
|
205
|
+
overflow: hidden;
|
|
206
|
+
padding: 16px 20px 20px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/* Deploy and Logs return their own flex page rather than a scrollable tabBody.
|
|
210
|
+
This rule is deliberately limited to those direct children: Hosts keeps its
|
|
211
|
+
fixed toolbar and internally scrolling table. */
|
|
212
|
+
.panelContent > .panel {
|
|
213
|
+
flex: 1;
|
|
214
|
+
overflow-y: auto;
|
|
215
|
+
background: transparent;
|
|
216
|
+
gap: 14px;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.fillBody:has(> .formCard) {
|
|
220
|
+
overflow-y: auto;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/* Scrollable tab body (transfer / tunnels); hosts and cluster use fillBody so
|
|
224
|
+
their toolbars stay put while the table scrolls internally. */
|
|
225
|
+
.tabBody {
|
|
226
|
+
display: flex;
|
|
227
|
+
flex-direction: column;
|
|
228
|
+
gap: 16px;
|
|
229
|
+
flex: 1;
|
|
230
|
+
min-height: 0;
|
|
231
|
+
overflow-y: auto;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.fillBody {
|
|
235
|
+
display: flex;
|
|
236
|
+
flex-direction: column;
|
|
237
|
+
gap: 14px;
|
|
238
|
+
flex: 1;
|
|
239
|
+
min-height: 0;
|
|
240
|
+
overflow: hidden;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* --- toolbar / controls ------------------------------------------------------- */
|
|
244
|
+
|
|
245
|
+
.toolbar {
|
|
246
|
+
display: flex;
|
|
247
|
+
align-items: center;
|
|
248
|
+
gap: 8px;
|
|
249
|
+
flex: none;
|
|
250
|
+
flex-wrap: wrap;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.controls {
|
|
254
|
+
display: flex;
|
|
255
|
+
align-items: center;
|
|
256
|
+
gap: 8px;
|
|
257
|
+
flex: none;
|
|
258
|
+
flex-wrap: wrap;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.controls .input {
|
|
262
|
+
flex: 0 1 260px;
|
|
263
|
+
min-width: 150px;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.toolbarSpacer {
|
|
267
|
+
flex: 1;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.search {
|
|
271
|
+
flex: 1 1 240px;
|
|
272
|
+
min-width: 140px;
|
|
273
|
+
max-width: 360px;
|
|
274
|
+
height: var(--ssh-control-height);
|
|
275
|
+
box-sizing: border-box;
|
|
276
|
+
padding: 0 12px;
|
|
277
|
+
font-size: 12px;
|
|
278
|
+
color: var(--dsw-alias-label-primary);
|
|
279
|
+
background: var(--dsw-alias-bg-base);
|
|
280
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
281
|
+
border-radius: var(--ssh-radius);
|
|
282
|
+
outline: none;
|
|
283
|
+
transition: border-color 140ms ease;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.search:hover,
|
|
287
|
+
.groupBySelect:hover {
|
|
288
|
+
border-color: var(--dsw-alias-border-l2);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.search:focus,
|
|
292
|
+
.groupBySelect:focus,
|
|
293
|
+
.input:focus {
|
|
294
|
+
border-color: var(--dsw-alias-brand-primary);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.search::placeholder {
|
|
298
|
+
color: var(--ssh-ink-muted);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.groupBySelect {
|
|
302
|
+
height: var(--ssh-control-height);
|
|
303
|
+
box-sizing: border-box;
|
|
304
|
+
padding: 0 10px;
|
|
305
|
+
font-size: 12px;
|
|
306
|
+
color: var(--dsw-alias-label-secondary);
|
|
307
|
+
background: var(--dsw-alias-bg-base);
|
|
308
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
309
|
+
border-radius: var(--ssh-radius);
|
|
310
|
+
outline: none;
|
|
311
|
+
cursor: pointer;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.groupBySelect:hover {
|
|
315
|
+
color: var(--dsw-alias-label-primary);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/* --- host groups (#379) ------------------------------------------------------- */
|
|
319
|
+
|
|
320
|
+
.groupSection + .groupSection {
|
|
321
|
+
border-top: 1px solid var(--dsw-alias-border-l1);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.groupHeader {
|
|
325
|
+
display: flex;
|
|
326
|
+
align-items: center;
|
|
327
|
+
gap: 8px;
|
|
328
|
+
padding: 4px 8px;
|
|
329
|
+
position: sticky;
|
|
330
|
+
top: 0;
|
|
331
|
+
background: var(--dsw-alias-bg-base, var(--dsw-specific-input-major));
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.groupToggle {
|
|
335
|
+
display: flex;
|
|
336
|
+
align-items: center;
|
|
337
|
+
gap: 6px;
|
|
338
|
+
flex: 1;
|
|
339
|
+
min-width: 0;
|
|
340
|
+
padding: 4px 6px;
|
|
341
|
+
border: none;
|
|
342
|
+
background: none;
|
|
343
|
+
color: var(--dsw-alias-label-primary);
|
|
344
|
+
font-size: 12.5px;
|
|
345
|
+
font-weight: 500;
|
|
346
|
+
cursor: pointer;
|
|
347
|
+
text-align: left;
|
|
348
|
+
border-radius: 6px;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.groupToggle:hover {
|
|
352
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.groupChevron {
|
|
356
|
+
width: 7px;
|
|
357
|
+
height: 7px;
|
|
358
|
+
border-right: 1.5px solid var(--dsw-alias-label-tertiary);
|
|
359
|
+
border-bottom: 1.5px solid var(--dsw-alias-label-tertiary);
|
|
360
|
+
transform: rotate(45deg);
|
|
361
|
+
transition: transform 120ms ease;
|
|
362
|
+
flex: none;
|
|
363
|
+
margin-bottom: 2px;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.groupChevron[data-collapsed] {
|
|
367
|
+
transform: rotate(-45deg);
|
|
368
|
+
margin-bottom: 0;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.groupName {
|
|
372
|
+
overflow: hidden;
|
|
373
|
+
text-overflow: ellipsis;
|
|
374
|
+
white-space: nowrap;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.groupCount {
|
|
378
|
+
color: var(--ssh-ink-muted);
|
|
379
|
+
font-weight: 400;
|
|
380
|
+
flex: none;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/* --- rack ledger --------------------------------------------------------------
|
|
384
|
+
*
|
|
385
|
+
* The table is a continuous equipment ledger: squared-off frame, engraved
|
|
386
|
+
* column labels, generous host identifiers and tightly aligned machine data.
|
|
387
|
+
* Only the row's state rail uses colour decoratively; all status is also text.
|
|
388
|
+
*/
|
|
389
|
+
|
|
390
|
+
.tableWrap {
|
|
391
|
+
flex: 1;
|
|
392
|
+
min-height: 0;
|
|
393
|
+
overflow: auto;
|
|
394
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
395
|
+
border-radius: var(--ssh-radius);
|
|
396
|
+
background: var(--dsw-alias-bg-base);
|
|
397
|
+
box-shadow: 0 1px 2px var(--dsw-alias-bg-mask-1);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.table {
|
|
401
|
+
width: 100%;
|
|
402
|
+
border-collapse: separate;
|
|
403
|
+
border-spacing: 0;
|
|
404
|
+
font-size: 12px;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.table th {
|
|
408
|
+
position: sticky;
|
|
409
|
+
top: 0;
|
|
410
|
+
z-index: 1;
|
|
411
|
+
padding: 11px 14px;
|
|
412
|
+
text-align: left;
|
|
413
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
414
|
+
color: var(--ssh-ink-muted);
|
|
415
|
+
font-size: 11px;
|
|
416
|
+
font-weight: 600;
|
|
417
|
+
letter-spacing: 0.06em;
|
|
418
|
+
text-transform: uppercase;
|
|
419
|
+
border-bottom: 1px solid var(--dsw-alias-border-l2);
|
|
420
|
+
white-space: nowrap;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.table td {
|
|
424
|
+
padding: 8px 14px;
|
|
425
|
+
border-bottom: 1px solid var(--dsw-alias-separator-primary, var(--dsw-alias-border-l1));
|
|
426
|
+
vertical-align: middle;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/* Only the host ledger receives the dense two-line row height. Result grids
|
|
430
|
+
elsewhere retain their own content-driven height. */
|
|
431
|
+
.hostsTable td {
|
|
432
|
+
height: 60px;
|
|
433
|
+
box-sizing: border-box;
|
|
434
|
+
padding-top: 10px;
|
|
435
|
+
padding-bottom: 10px;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/* Scoped to the host ledger: other tabs' result grids must not acquire a
|
|
439
|
+
decorative state rail or pin an unrelated last column. */
|
|
440
|
+
.hostsTable td:first-child {
|
|
441
|
+
border-left: 3px solid transparent;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.table tbody tr:last-child td {
|
|
445
|
+
border-bottom: none;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.table tbody tr:hover td {
|
|
449
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.hostsTable th:last-child,
|
|
453
|
+
.hostsTable td:last-child {
|
|
454
|
+
position: sticky;
|
|
455
|
+
right: 0;
|
|
456
|
+
background: var(--dsw-alias-bg-base);
|
|
457
|
+
box-shadow: -8px 0 12px -10px var(--dsw-alias-border-l2);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.hostsTable tbody tr:hover td:last-child {
|
|
461
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.hostsTable tbody tr[data-state='ok'] td:first-child {
|
|
465
|
+
border-left-color: var(--ssh-ok-text);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.hostsTable tbody tr[data-state='fail'] td:first-child {
|
|
469
|
+
border-left-color: var(--ssh-error-text);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.hostsTable tbody tr[data-state='testing'] td:first-child {
|
|
473
|
+
border-left-color: var(--dsw-alias-brand-primary);
|
|
474
|
+
animation: dshSshPulse 1.1s ease-in-out infinite;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
@keyframes dshSshPulse {
|
|
478
|
+
50% { opacity: 0.35; }
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/* --- machine identity --------------------------------------------------------- */
|
|
482
|
+
|
|
483
|
+
.hostIdentity {
|
|
484
|
+
display: flex;
|
|
485
|
+
flex-direction: column;
|
|
486
|
+
gap: 3px;
|
|
487
|
+
min-width: 0;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.hostAlias {
|
|
491
|
+
font-size: 13px;
|
|
492
|
+
font-weight: 650;
|
|
493
|
+
letter-spacing: -0.01em;
|
|
494
|
+
color: var(--dsw-alias-label-primary);
|
|
495
|
+
overflow: hidden;
|
|
496
|
+
text-overflow: ellipsis;
|
|
497
|
+
white-space: nowrap;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.hostEndpoint {
|
|
501
|
+
display: flex;
|
|
502
|
+
align-items: center;
|
|
503
|
+
gap: 6px;
|
|
504
|
+
font-family: var(--ssh-data-face);
|
|
505
|
+
font-size: 12px;
|
|
506
|
+
font-variant-numeric: tabular-nums;
|
|
507
|
+
color: var(--ssh-ink-muted);
|
|
508
|
+
overflow: hidden;
|
|
509
|
+
text-overflow: ellipsis;
|
|
510
|
+
white-space: nowrap;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.hostEndpointSep {
|
|
514
|
+
opacity: 0.45;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.mono {
|
|
518
|
+
font-family: var(--ssh-data-face);
|
|
519
|
+
font-variant-numeric: tabular-nums;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.cellMuted {
|
|
523
|
+
color: var(--ssh-ink-muted);
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.tagList {
|
|
527
|
+
display: flex;
|
|
528
|
+
flex-wrap: wrap;
|
|
529
|
+
gap: 4px;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.tag {
|
|
533
|
+
padding: 1px 5px;
|
|
534
|
+
font-family: var(--ssh-data-face);
|
|
535
|
+
font-size: 11px;
|
|
536
|
+
line-height: 1.5;
|
|
537
|
+
color: var(--dsw-alias-label-secondary);
|
|
538
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
539
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
540
|
+
border-radius: 3px;
|
|
541
|
+
white-space: nowrap;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/* --- row actions --------------------------------------------------------------
|
|
545
|
+
*
|
|
546
|
+
* The main action is a compact instrument key, not a full-width web CTA.
|
|
547
|
+
* Secondary actions only reveal their full colour on intent.
|
|
548
|
+
*/
|
|
549
|
+
|
|
550
|
+
.actions {
|
|
551
|
+
display: flex;
|
|
552
|
+
align-items: center;
|
|
553
|
+
justify-content: flex-end;
|
|
554
|
+
gap: 12px;
|
|
555
|
+
white-space: nowrap;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.actionLinks {
|
|
559
|
+
display: inline-flex;
|
|
560
|
+
align-items: center;
|
|
561
|
+
gap: 10px;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.actionLink {
|
|
565
|
+
min-height: 24px;
|
|
566
|
+
padding: 0;
|
|
567
|
+
font-size: 12px;
|
|
568
|
+
color: var(--ssh-ink-muted);
|
|
569
|
+
background: none;
|
|
570
|
+
border: none;
|
|
571
|
+
cursor: pointer;
|
|
572
|
+
white-space: nowrap;
|
|
573
|
+
transition: color 140ms ease;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.actionLink:hover:not(:disabled) {
|
|
577
|
+
color: var(--dsw-alias-brand-primary);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.actionLink:disabled {
|
|
581
|
+
opacity: 0.5;
|
|
582
|
+
cursor: default;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.actionLink[data-danger]:hover:not(:disabled) {
|
|
586
|
+
color: var(--ssh-error-text);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
.connectButton {
|
|
590
|
+
display: inline-flex;
|
|
591
|
+
align-items: center;
|
|
592
|
+
justify-content: center;
|
|
593
|
+
gap: 4px;
|
|
594
|
+
height: 28px;
|
|
595
|
+
padding: 0 12px;
|
|
596
|
+
font-size: 12px;
|
|
597
|
+
font-weight: 650;
|
|
598
|
+
color: var(--dsw-alias-label-primary-foreground);
|
|
599
|
+
background: var(--ssh-fill-primary);
|
|
600
|
+
border: 1px solid transparent;
|
|
601
|
+
border-radius: var(--ssh-radius);
|
|
602
|
+
cursor: pointer; white-space: nowrap;
|
|
603
|
+
transition: background 140ms ease;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.connectButton:hover {
|
|
607
|
+
background: var(--ssh-fill-primary-hover);
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.inlineTest {
|
|
611
|
+
display: inline-flex;
|
|
612
|
+
align-items: center;
|
|
613
|
+
gap: 4px;
|
|
614
|
+
max-width: 220px;
|
|
615
|
+
padding: 0;
|
|
616
|
+
font-family: var(--ssh-data-face);
|
|
617
|
+
font-size: 11px;
|
|
618
|
+
line-height: 1.6;
|
|
619
|
+
color: var(--dsw-alias-label-secondary);
|
|
620
|
+
background: transparent;
|
|
621
|
+
overflow: hidden;
|
|
622
|
+
text-overflow: ellipsis;
|
|
623
|
+
white-space: nowrap;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
.inlineTest[data-status='ok'] {
|
|
627
|
+
color: var(--ssh-ok-text);
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
.inlineTest[data-status='fail'] {
|
|
631
|
+
color: var(--ssh-error-text);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/* --- status and instrument keys ------------------------------------------------
|
|
635
|
+
*
|
|
636
|
+
* Status is a small rectangular instrument readout. Its side rule carries the
|
|
637
|
+
* state colour; the text remains readable without colour vision.
|
|
638
|
+
*/
|
|
639
|
+
|
|
640
|
+
.badge {
|
|
641
|
+
display: inline-flex;
|
|
642
|
+
align-items: center;
|
|
643
|
+
gap: 5px;
|
|
644
|
+
padding: 2px 6px;
|
|
645
|
+
font-family: var(--ssh-data-face);
|
|
646
|
+
font-size: 11px;
|
|
647
|
+
line-height: 1.5;
|
|
648
|
+
color: var(--dsw-alias-label-secondary);
|
|
649
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
650
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
651
|
+
border-radius: 3px;
|
|
652
|
+
white-space: nowrap;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.badge::before {
|
|
656
|
+
content: '';
|
|
657
|
+
width: 3px;
|
|
658
|
+
height: 10px;
|
|
659
|
+
flex: none;
|
|
660
|
+
border-radius: 1px;
|
|
661
|
+
background: var(--dsw-alias-border-l2);
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
/* Authentication (data-kind=key/password/agent) and forwarding carry no
|
|
665
|
+
colour of their own: they fall through to the neutral base above, because a
|
|
666
|
+
password host is metadata, not a warning, and an agent host is not a health
|
|
667
|
+
verdict. Only genuine STATUS words below are coloured.
|
|
668
|
+
`warn` (plaintext credentials, not-armed) and `pending`/`timeout` are real
|
|
669
|
+
caution states and stay amber — neutralizing them would hide live warnings. */
|
|
670
|
+
.badge[data-status='pending'],
|
|
671
|
+
.badge[data-status='warn'],
|
|
672
|
+
.badge[data-status='timeout'] {
|
|
673
|
+
color: var(--ssh-warn-text);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
.badge[data-status='pending']::before,
|
|
677
|
+
.badge[data-status='warn']::before,
|
|
678
|
+
.badge[data-status='timeout']::before {
|
|
679
|
+
background: var(--dsw-alias-state-warn-primary);
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.badge[data-status='ok'] {
|
|
683
|
+
color: var(--ssh-ok-text);
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
.badge[data-status='ok']::before {
|
|
687
|
+
background: var(--dsw-alias-state-success-primary);
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
.badge[data-status='fail'],
|
|
691
|
+
.badge[data-status='error'] {
|
|
692
|
+
color: var(--ssh-error-text);
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
.badge[data-status='fail']::before,
|
|
696
|
+
.badge[data-status='error']::before {
|
|
697
|
+
background: var(--dsw-alias-state-error-primary);
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
.badge[data-kind='proxy'],
|
|
701
|
+
.badge[data-kind='forward-agent'] {
|
|
702
|
+
margin-left: 2px;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.primaryButton {
|
|
706
|
+
height: var(--ssh-control-height);
|
|
707
|
+
padding: 0 14px;
|
|
708
|
+
font-size: 12px;
|
|
709
|
+
font-weight: 650;
|
|
710
|
+
color: var(--dsw-alias-label-primary-foreground);
|
|
711
|
+
background: var(--ssh-fill-primary);
|
|
712
|
+
border: 1px solid transparent;
|
|
713
|
+
border-radius: var(--ssh-radius);
|
|
714
|
+
cursor: pointer;
|
|
715
|
+
white-space: nowrap;
|
|
716
|
+
transition: background 140ms ease;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
.primaryButton:hover:not(:disabled) {
|
|
720
|
+
background: var(--ssh-fill-primary-hover);
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.primaryButton:disabled {
|
|
724
|
+
opacity: 0.5;
|
|
725
|
+
cursor: default;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/* Every button that declares `cursor: pointer` needs a disabled state, or a
|
|
729
|
+
control that cannot be clicked still advertises itself as clickable. These
|
|
730
|
+
three were the only ones missing it, and secondaryButton drives the deploy
|
|
731
|
+
form's "add step". Kept together so a new button class has an obvious place
|
|
732
|
+
to join the group. */
|
|
733
|
+
.iconButton:disabled,
|
|
734
|
+
.secondaryButton:disabled,
|
|
735
|
+
.connectButton:disabled {
|
|
736
|
+
opacity: 0.5;
|
|
737
|
+
cursor: default;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
.ghostButton {
|
|
741
|
+
display: inline-flex;
|
|
742
|
+
align-items: center;
|
|
743
|
+
justify-content: center;
|
|
744
|
+
height: var(--ssh-control-height);
|
|
745
|
+
box-sizing: border-box;
|
|
746
|
+
padding: 0 12px;
|
|
747
|
+
font-size: 12px;
|
|
748
|
+
color: var(--dsw-alias-label-secondary);
|
|
749
|
+
background: var(--dsw-alias-bg-base);
|
|
750
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
751
|
+
border-radius: var(--ssh-radius);
|
|
752
|
+
cursor: pointer;
|
|
753
|
+
white-space: nowrap;
|
|
754
|
+
transition: background 140ms ease, color 140ms ease;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
.ghostButton:hover:not(:disabled) {
|
|
758
|
+
color: var(--dsw-alias-label-primary);
|
|
759
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
760
|
+
border-color: var(--dsw-alias-border-l2);
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
.ghostButton:disabled {
|
|
764
|
+
opacity: 0.45;
|
|
765
|
+
cursor: default;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
.iconButton {
|
|
769
|
+
display: inline-flex;
|
|
770
|
+
align-items: center;
|
|
771
|
+
justify-content: center;
|
|
772
|
+
width: 26px;
|
|
773
|
+
height: 26px;
|
|
774
|
+
padding: 0;
|
|
775
|
+
background: transparent;
|
|
776
|
+
border: none;
|
|
777
|
+
border-radius: var(--ssh-radius);
|
|
778
|
+
color: var(--dsw-alias-label-secondary);
|
|
779
|
+
cursor: pointer;
|
|
780
|
+
font-size: 13px;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
.iconButton:hover {
|
|
784
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
785
|
+
color: var(--dsw-alias-label-primary);
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
.linkButton {
|
|
789
|
+
padding: 0;
|
|
790
|
+
font-size: 12px;
|
|
791
|
+
color: var(--dsw-alias-brand-primary);
|
|
792
|
+
background: none;
|
|
793
|
+
border: none;
|
|
794
|
+
cursor: pointer;
|
|
795
|
+
white-space: nowrap;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.linkButton:hover:not(:disabled) {
|
|
799
|
+
text-decoration: underline;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
.linkButton:disabled {
|
|
803
|
+
opacity: 0.45;
|
|
804
|
+
cursor: default;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
.linkButton[data-danger] {
|
|
808
|
+
color: var(--ssh-error-text);
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
/* Keyboard focus, once, for everything the panel renders. `:focus-visible` so a
|
|
812
|
+
mouse click does not leave a ring behind. */
|
|
813
|
+
.panel button:focus-visible,
|
|
814
|
+
.panel input:focus-visible,
|
|
815
|
+
.panel select:focus-visible,
|
|
816
|
+
.panel textarea:focus-visible,
|
|
817
|
+
.panel summary:focus-visible {
|
|
818
|
+
outline: 2px solid var(--dsw-alias-brand-primary);
|
|
819
|
+
outline-offset: 2px;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
/* Motion here is feedback, never decoration: honour the system preference.
|
|
825
|
+
*
|
|
826
|
+
* Every animated element under the panel is covered at once instead of naming
|
|
827
|
+
* them one by one. The enumerated list that used to live here had already fallen
|
|
828
|
+
* behind: .primaryButton declares a transition and was never in it, so the main
|
|
829
|
+
* call-to-action kept animating for anyone who asked for less motion. A blanket
|
|
830
|
+
* rule cannot drift like that, and it stays inside .panel so the host GUI keeps
|
|
831
|
+
* whatever motion its own settings allow. */
|
|
832
|
+
@media (prefers-reduced-motion: reduce) {
|
|
833
|
+
.panel,
|
|
834
|
+
.panel *,
|
|
835
|
+
.panel *::before,
|
|
836
|
+
.panel *::after {
|
|
837
|
+
transition: none !important;
|
|
838
|
+
animation: none !important;
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
@media (max-width: 720px) {
|
|
843
|
+
.panelHeader,
|
|
844
|
+
.tabBar {
|
|
845
|
+
padding-inline: 12px;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
.panelContent {
|
|
849
|
+
padding: 12px;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
.tab {
|
|
853
|
+
padding-inline: 12px;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
/* The host ledger needs nothing here, and adding a min-width would have been
|
|
857
|
+
cargo cult: measured on the real panel it is already 723px wide naturally,
|
|
858
|
+
and at 720 / 600 / 480px .tableWrap scrolls it inside its own box with no
|
|
859
|
+
page overflow while the sticky actions column stays visible and reachable
|
|
860
|
+
(last cell right edge 707 / 587 / 467, all inside the wrap). A min-width
|
|
861
|
+
below that natural width changes nothing; one above it would only force
|
|
862
|
+
scrolling where none is needed. Verified rather than assumed. */
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
/* ---feedback and forms -------------------------------------------------------- */
|
|
866
|
+
|
|
867
|
+
.spinner {
|
|
868
|
+
display: inline-block;
|
|
869
|
+
width: 11px;
|
|
870
|
+
height: 11px;
|
|
871
|
+
flex: none;
|
|
872
|
+
border: 2px solid var(--dsw-alias-brand-primary);
|
|
873
|
+
border-top-color: transparent;
|
|
874
|
+
border-radius: 50%;
|
|
875
|
+
animation: dshSshSpin 800ms linear infinite;
|
|
876
|
+
vertical-align: -1px;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
@keyframes dshSshSpin {
|
|
880
|
+
to { transform: rotate(360deg); }
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
.banner {
|
|
884
|
+
padding: 9px 12px;
|
|
885
|
+
font-size: 12px;
|
|
886
|
+
line-height: 1.5;
|
|
887
|
+
border-radius: var(--ssh-radius);
|
|
888
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
889
|
+
border-left-width: 3px;
|
|
890
|
+
color: var(--dsw-alias-label-secondary);
|
|
891
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
892
|
+
overflow-wrap: anywhere;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
.importSkips {
|
|
896
|
+
list-style: none;
|
|
897
|
+
margin: 6px 0 0;
|
|
898
|
+
padding: 10px 12px;
|
|
899
|
+
display: flex;
|
|
900
|
+
flex-direction: column;
|
|
901
|
+
gap: 4px;
|
|
902
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
903
|
+
border-radius: var(--ssh-radius);
|
|
904
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
.importSkipRow {
|
|
908
|
+
display: flex;
|
|
909
|
+
justify-content: space-between;
|
|
910
|
+
align-items: baseline;
|
|
911
|
+
gap: 12px;
|
|
912
|
+
font-size: 12px;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
.banner[data-kind='ok'] {
|
|
916
|
+
color: var(--ssh-ok-text);
|
|
917
|
+
border-left-color: var(--ssh-ok-text);
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
.banner[data-kind='error'] {
|
|
921
|
+
color: var(--ssh-error-text);
|
|
922
|
+
border-left-color: var(--ssh-error-text);
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
.banner[data-kind='info'] {
|
|
926
|
+
color: var(--dsw-alias-brand-primary);
|
|
927
|
+
border-left-color: var(--dsw-alias-brand-primary);
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
.empty,
|
|
931
|
+
.loading {
|
|
932
|
+
padding: 40px 16px;
|
|
933
|
+
text-align: center;
|
|
934
|
+
font-size: 12px;
|
|
935
|
+
color: var(--ssh-ink-muted);
|
|
936
|
+
border: 1px dashed var(--dsw-alias-border-l1);
|
|
937
|
+
border-radius: var(--ssh-radius);
|
|
938
|
+
background: var(--dsw-alias-bg-base);
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
.modalBackdrop {
|
|
942
|
+
position: fixed;
|
|
943
|
+
inset: 0;
|
|
944
|
+
z-index: 40;
|
|
945
|
+
display: flex;
|
|
946
|
+
align-items: center;
|
|
947
|
+
justify-content: center;
|
|
948
|
+
background: var(--dsw-alias-bg-mask-1);
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
.modal {
|
|
952
|
+
display: flex;
|
|
953
|
+
flex-direction: column;
|
|
954
|
+
gap: 14px;
|
|
955
|
+
width: min(560px, calc(100vw - 48px));
|
|
956
|
+
max-height: calc(100vh - 96px);
|
|
957
|
+
overflow-y: auto;
|
|
958
|
+
padding: 22px;
|
|
959
|
+
/* Same surface the host's own dialogs use (SettingsRoot.module.css: the
|
|
960
|
+
settings panel is `bg-layer-2` with `dsw-elevation-prominent`). This panel
|
|
961
|
+
was the only thing in the app using `bg-overlay` as a content surface, and
|
|
962
|
+
that token resolves to a mid grey in the dark skin (neutral-bluish-700) —
|
|
963
|
+
near-white field labels on it measured 3.85:1 and the hints 3.24:1, both
|
|
964
|
+
under the 4.5 floor. Matching the host's elevation fixes the ratio and
|
|
965
|
+
makes the dialog look like the rest of the GUI. */
|
|
966
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
967
|
+
box-shadow: var(--dsw-elevation-prominent);
|
|
968
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
969
|
+
border-radius: 8px;
|
|
970
|
+
color: var(--dsw-alias-label-primary);
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
.modalTitle {
|
|
974
|
+
margin: 0;
|
|
975
|
+
font-size: 16px;
|
|
976
|
+
font-weight: 650;
|
|
977
|
+
letter-spacing: 0.01em;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
/* The terminal keyboard-interactive auth form (TerminalTab) overlays the dark
|
|
981
|
+
terminal and references modalCard/modalHeader rather than .modal. It needs an
|
|
982
|
+
opaque themed surface of its own, or its title reads near-black on the dark
|
|
983
|
+
terminal in the light skin. */
|
|
984
|
+
.modalCard {
|
|
985
|
+
display: flex;
|
|
986
|
+
flex-direction: column;
|
|
987
|
+
gap: 12px;
|
|
988
|
+
width: min(440px, calc(100% - 32px));
|
|
989
|
+
max-height: calc(100% - 32px);
|
|
990
|
+
overflow-y: auto;
|
|
991
|
+
padding: 20px;
|
|
992
|
+
/* Same elevation as .modal above, for the same reason: this card overlays the
|
|
993
|
+
dark terminal, and `bg-overlay` is a mid grey that no calibrated text token
|
|
994
|
+
was measured against. */
|
|
995
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
996
|
+
box-shadow: var(--dsw-elevation-prominent);
|
|
997
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
998
|
+
border-radius: 8px;
|
|
999
|
+
color: var(--dsw-alias-label-primary);
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
.modalHeader {
|
|
1003
|
+
display: flex;
|
|
1004
|
+
align-items: center;
|
|
1005
|
+
gap: 8px;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
.modalFooter {
|
|
1009
|
+
display: flex;
|
|
1010
|
+
justify-content: flex-end;
|
|
1011
|
+
gap: 10px;
|
|
1012
|
+
margin-top: 6px;
|
|
1013
|
+
padding-top: 14px;
|
|
1014
|
+
border-top: 1px solid var(--dsw-alias-border-l1);
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
.formError {
|
|
1018
|
+
margin: 0;
|
|
1019
|
+
font-size: 12px;
|
|
1020
|
+
color: var(--ssh-error-text);
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
.hint {
|
|
1024
|
+
font-size: 11px;
|
|
1025
|
+
color: var(--ssh-ink-muted);
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
.field {
|
|
1029
|
+
display: flex;
|
|
1030
|
+
flex-direction: column;
|
|
1031
|
+
gap: 5px;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
.fieldLabel {
|
|
1035
|
+
font-size: 11px;
|
|
1036
|
+
font-weight: 600;
|
|
1037
|
+
letter-spacing: 0.02em;
|
|
1038
|
+
color: var(--dsw-alias-label-secondary);
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
.input {
|
|
1042
|
+
padding: 8px 10px;
|
|
1043
|
+
font-size: 12px;
|
|
1044
|
+
color: var(--dsw-alias-label-primary);
|
|
1045
|
+
background: var(--dsw-alias-bg-base);
|
|
1046
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
1047
|
+
border-radius: var(--ssh-radius);
|
|
1048
|
+
outline: none;
|
|
1049
|
+
resize: vertical;
|
|
1050
|
+
font-family: inherit;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
.input::placeholder {
|
|
1054
|
+
color: var(--ssh-ink-muted);
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
.input:disabled {
|
|
1058
|
+
opacity: 0.55;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
.formRow {
|
|
1062
|
+
display: grid;
|
|
1063
|
+
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
1064
|
+
gap: 10px 12px;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
.radioRow {
|
|
1068
|
+
display: flex;
|
|
1069
|
+
gap: 16px;
|
|
1070
|
+
align-items: center;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
.radioLabel {
|
|
1074
|
+
display: inline-flex;
|
|
1075
|
+
gap: 6px;
|
|
1076
|
+
align-items: center;
|
|
1077
|
+
font-size: 12px;
|
|
1078
|
+
color: var(--dsw-alias-label-primary);
|
|
1079
|
+
cursor: pointer;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
/* --- terminal ----------------------------------------------------------------- */
|
|
1083
|
+
|
|
1084
|
+
.termBody {
|
|
1085
|
+
display: flex;
|
|
1086
|
+
flex-direction: column;
|
|
1087
|
+
gap: 8px;
|
|
1088
|
+
flex: 1;
|
|
1089
|
+
min-height: 0;
|
|
1090
|
+
overflow: hidden;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
/* Terminal tab strip (issue #1950): one row of host PTY sessions above the
|
|
1094
|
+
toolbar. It scrolls sideways instead of wrapping so the controls above the
|
|
1095
|
+
terminal never move as tabs accumulate. */
|
|
1096
|
+
.termTabs {
|
|
1097
|
+
display: flex;
|
|
1098
|
+
align-items: stretch;
|
|
1099
|
+
gap: 2px;
|
|
1100
|
+
flex: none;
|
|
1101
|
+
overflow-x: auto;
|
|
1102
|
+
scrollbar-width: thin;
|
|
1103
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1);
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
.termTab {
|
|
1107
|
+
display: inline-flex;
|
|
1108
|
+
align-items: center;
|
|
1109
|
+
flex: none;
|
|
1110
|
+
max-width: 200px;
|
|
1111
|
+
border-radius: 6px 6px 0 0;
|
|
1112
|
+
border-bottom: 2px solid transparent;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
.termTab[data-active] {
|
|
1116
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
1117
|
+
border-bottom-color: var(--dsw-alias-brand-primary);
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
.termTabLabel {
|
|
1121
|
+
display: inline-flex;
|
|
1122
|
+
align-items: baseline;
|
|
1123
|
+
gap: 6px;
|
|
1124
|
+
min-width: 0;
|
|
1125
|
+
padding: 5px 4px 5px 10px;
|
|
1126
|
+
font-size: 12.5px;
|
|
1127
|
+
color: var(--dsw-alias-label-secondary);
|
|
1128
|
+
background: transparent;
|
|
1129
|
+
border: none;
|
|
1130
|
+
cursor: pointer;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
.termTab[data-active] .termTabLabel {
|
|
1134
|
+
color: var(--dsw-alias-label-primary);
|
|
1135
|
+
font-weight: 600;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
.termTabAlias {
|
|
1139
|
+
overflow: hidden;
|
|
1140
|
+
text-overflow: ellipsis;
|
|
1141
|
+
white-space: nowrap;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
.termTabState {
|
|
1145
|
+
flex: none;
|
|
1146
|
+
font-size: 11px;
|
|
1147
|
+
font-weight: 400;
|
|
1148
|
+
color: var(--ssh-ink-muted);
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
.termTabState[data-state='error'] {
|
|
1152
|
+
color: var(--ssh-error-text);
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
.termTabState[data-state='exited'] {
|
|
1156
|
+
color: var(--dsw-alias-label-secondary);
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
.termTabClose,
|
|
1160
|
+
.termTabNew {
|
|
1161
|
+
flex: none;
|
|
1162
|
+
display: inline-flex;
|
|
1163
|
+
align-items: center;
|
|
1164
|
+
justify-content: center;
|
|
1165
|
+
width: 20px;
|
|
1166
|
+
height: 20px;
|
|
1167
|
+
margin-right: 4px;
|
|
1168
|
+
padding: 0;
|
|
1169
|
+
font-size: 13px;
|
|
1170
|
+
line-height: 1;
|
|
1171
|
+
color: var(--ssh-ink-muted);
|
|
1172
|
+
background: transparent;
|
|
1173
|
+
border: none;
|
|
1174
|
+
border-radius: 5px;
|
|
1175
|
+
cursor: pointer;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
.termTabNew {
|
|
1179
|
+
width: 24px;
|
|
1180
|
+
margin: 2px 0 2px 4px;
|
|
1181
|
+
font-size: 15px;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
.termTabClose:hover,
|
|
1185
|
+
.termTabNew:hover:not(:disabled) {
|
|
1186
|
+
color: var(--dsw-alias-label-primary);
|
|
1187
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
.termTabNew:disabled {
|
|
1191
|
+
opacity: 0.45;
|
|
1192
|
+
cursor: default;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
.termWrap {
|
|
1196
|
+
position: relative;
|
|
1197
|
+
flex: 1;
|
|
1198
|
+
min-height: 0;
|
|
1199
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
1200
|
+
border-radius: var(--ssh-radius);
|
|
1201
|
+
overflow: hidden;
|
|
1202
|
+
background: #0b0e14;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
.termContainer {
|
|
1206
|
+
position: absolute;
|
|
1207
|
+
/* Inset offsets, not padding: FitAddon measures this element's height as
|
|
1208
|
+
the drawable area, so padding here would be measured as terminal space
|
|
1209
|
+
and clip the bottom line under a global border-box reset. */
|
|
1210
|
+
inset: 8px 10px;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
/* The placeholder covers the terminal, which is the one surface that is
|
|
1214
|
+
deliberately dark. A themed (light-in-light-skin) overlay here flashed a white
|
|
1215
|
+
block over the dark terminal and read as a rendering bug. */
|
|
1216
|
+
.termPlaceholder {
|
|
1217
|
+
position: absolute;
|
|
1218
|
+
inset: 0;
|
|
1219
|
+
z-index: 2;
|
|
1220
|
+
display: flex;
|
|
1221
|
+
align-items: center;
|
|
1222
|
+
justify-content: center;
|
|
1223
|
+
padding: 0 24px;
|
|
1224
|
+
text-align: center;
|
|
1225
|
+
font-size: 12.5px;
|
|
1226
|
+
color: #9fb0c0;
|
|
1227
|
+
background: color-mix(in srgb, #0b0e14 88%, transparent);
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
/* --- transfer ----------------------------------------------------------------- */
|
|
1231
|
+
|
|
1232
|
+
.hiddenFile {
|
|
1233
|
+
display: none;
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
.browsePanel {
|
|
1237
|
+
display: flex;
|
|
1238
|
+
flex-direction: column;
|
|
1239
|
+
flex: none;
|
|
1240
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
1241
|
+
border-radius: var(--ssh-radius);
|
|
1242
|
+
overflow: hidden;
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
.browseHeader {
|
|
1246
|
+
display: flex;
|
|
1247
|
+
align-items: center;
|
|
1248
|
+
gap: 8px;
|
|
1249
|
+
padding: 8px 10px;
|
|
1250
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
1251
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1);
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
.browsePath {
|
|
1255
|
+
flex: 1;
|
|
1256
|
+
min-width: 0;
|
|
1257
|
+
overflow: hidden;
|
|
1258
|
+
text-overflow: ellipsis;
|
|
1259
|
+
white-space: nowrap;
|
|
1260
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
1261
|
+
font-size: 12px;
|
|
1262
|
+
color: var(--dsw-alias-label-secondary);
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
.browseList {
|
|
1266
|
+
max-height: 240px;
|
|
1267
|
+
overflow-y: auto;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
.dirRow {
|
|
1271
|
+
display: grid;
|
|
1272
|
+
grid-template-columns: minmax(0, 1fr) auto auto;
|
|
1273
|
+
gap: 12px;
|
|
1274
|
+
width: 100%;
|
|
1275
|
+
padding: 5px 10px;
|
|
1276
|
+
text-align: left;
|
|
1277
|
+
font: inherit;
|
|
1278
|
+
font-size: 12.5px;
|
|
1279
|
+
color: var(--dsw-alias-label-primary);
|
|
1280
|
+
background: transparent;
|
|
1281
|
+
border: none;
|
|
1282
|
+
border-bottom: 1px solid var(--dsw-alias-separator-primary);
|
|
1283
|
+
cursor: pointer;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
.dirRow:hover {
|
|
1287
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
.dirRow[data-type='dir'] .dirName {
|
|
1291
|
+
color: var(--ssh-info-text);
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
.dirRow[data-up] {
|
|
1295
|
+
color: var(--dsw-alias-label-secondary);
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
.dirName {
|
|
1299
|
+
overflow: hidden;
|
|
1300
|
+
text-overflow: ellipsis;
|
|
1301
|
+
white-space: nowrap;
|
|
1302
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
.dirType {
|
|
1306
|
+
color: var(--ssh-ink-muted);
|
|
1307
|
+
white-space: nowrap;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
.dirSize {
|
|
1311
|
+
color: var(--ssh-ink-muted);
|
|
1312
|
+
white-space: nowrap;
|
|
1313
|
+
text-align: right;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
.transferBlock {
|
|
1317
|
+
display: flex;
|
|
1318
|
+
flex-direction: column;
|
|
1319
|
+
gap: 6px;
|
|
1320
|
+
flex: none;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
.progressMeta {
|
|
1324
|
+
display: flex;
|
|
1325
|
+
gap: 12px;
|
|
1326
|
+
flex-wrap: wrap;
|
|
1327
|
+
font-size: 12px;
|
|
1328
|
+
color: var(--dsw-alias-label-secondary);
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
.progressTrack {
|
|
1332
|
+
height: 8px;
|
|
1333
|
+
border-radius: 999px;
|
|
1334
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
1335
|
+
overflow: hidden;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
.progressBar {
|
|
1339
|
+
height: 100%;
|
|
1340
|
+
border-radius: 999px;
|
|
1341
|
+
background: var(--dsw-alias-state-business-primary);
|
|
1342
|
+
transition: width 120ms linear;
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
/* --- tunnels ------------------------------------------------------------------ */
|
|
1346
|
+
|
|
1347
|
+
.tunnelList {
|
|
1348
|
+
display: flex;
|
|
1349
|
+
flex-direction: column;
|
|
1350
|
+
gap: 8px;
|
|
1351
|
+
flex: none;
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
.tunnelRow {
|
|
1355
|
+
display: flex;
|
|
1356
|
+
align-items: center;
|
|
1357
|
+
gap: 10px;
|
|
1358
|
+
padding: 10px 12px;
|
|
1359
|
+
background: var(--dsw-alias-bg-base);
|
|
1360
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
1361
|
+
border-left-width: 3px;
|
|
1362
|
+
border-radius: var(--ssh-radius);
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
.tunnelRow[data-state='forwarding'] {
|
|
1366
|
+
border-left-color: var(--ssh-ok-text);
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
.tunnelRow[data-state='connecting'] {
|
|
1370
|
+
border-left-color: var(--ssh-warn-text);
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
.tunnelRow[data-state='failed'] {
|
|
1374
|
+
border-left-color: var(--ssh-error-text);
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
/* A forward owned by another process: visible, not stoppable from here. The
|
|
1378
|
+
dashed rail says "not mine" without relying on colour. */
|
|
1379
|
+
.tunnelRow[data-source='external'] {
|
|
1380
|
+
border-style: dashed;
|
|
1381
|
+
border-left-style: solid;
|
|
1382
|
+
border-left-color: var(--ssh-ink-muted);
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
.tunnelState {
|
|
1386
|
+
flex: none;
|
|
1387
|
+
font-size: 11px;
|
|
1388
|
+
color: var(--ssh-ink-muted);
|
|
1389
|
+
white-space: nowrap;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
/* The word says which state it is; colour only reinforces it.
|
|
1393
|
+
These are TEXT, so they must clear 4.5:1 on BOTH skins. The raw
|
|
1394
|
+
state-success (rgb(34,197,94)) and state-warn (rgb(245,158,11)) tokens are
|
|
1395
|
+
built for fills and dots, not glyphs: as text they measure 2.28:1 and 2.15:1
|
|
1396
|
+
on white. Pulling them 40% toward the primary label (black on the light skin,
|
|
1397
|
+
near-white on the dark one) keeps the hue recognisable while lifting the
|
|
1398
|
+
glyph well past 4.5:1 in both. */
|
|
1399
|
+
.tunnelState[data-live='true'] {
|
|
1400
|
+
color: color-mix(in srgb, var(--dsw-alias-state-success-primary) 60%, var(--dsw-alias-label-primary));
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
.tunnelState[data-live='false'] {
|
|
1404
|
+
color: color-mix(in srgb, var(--dsw-alias-state-error-primary) 60%, var(--dsw-alias-label-primary));
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
.tunnelInfo {
|
|
1408
|
+
flex: 1;
|
|
1409
|
+
min-width: 0;
|
|
1410
|
+
display: flex;
|
|
1411
|
+
flex-direction: column;
|
|
1412
|
+
gap: 3px;
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
.tunnelHeaderLine {
|
|
1416
|
+
display: flex;
|
|
1417
|
+
align-items: center;
|
|
1418
|
+
gap: 8px;
|
|
1419
|
+
min-width: 0;
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
.tunnelName {
|
|
1423
|
+
font-weight: 600;
|
|
1424
|
+
font-size: 13px;
|
|
1425
|
+
color: var(--dsw-alias-label-primary);
|
|
1426
|
+
white-space: nowrap;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
.tunnelEndpoint {
|
|
1430
|
+
font-family: var(--ssh-data-face);
|
|
1431
|
+
font-size: 12px;
|
|
1432
|
+
color: var(--ssh-ink-muted);
|
|
1433
|
+
overflow: hidden;
|
|
1434
|
+
text-overflow: ellipsis;
|
|
1435
|
+
white-space: nowrap;
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
.tunnelMetaLine {
|
|
1439
|
+
display: flex;
|
|
1440
|
+
align-items: center;
|
|
1441
|
+
gap: 8px;
|
|
1442
|
+
font-size: 11.5px;
|
|
1443
|
+
color: var(--ssh-ink-muted);
|
|
1444
|
+
min-width: 0;
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
.tunnelDesc {
|
|
1448
|
+
overflow: hidden;
|
|
1449
|
+
text-overflow: ellipsis;
|
|
1450
|
+
white-space: nowrap;
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
.tunnelPid {
|
|
1454
|
+
font-family: var(--ssh-data-face);
|
|
1455
|
+
flex: none;
|
|
1456
|
+
font-size: 10.5px;
|
|
1457
|
+
padding: 1px 5px;
|
|
1458
|
+
border-radius: 2px;
|
|
1459
|
+
background: var(--dsw-alias-bg-layer-1);
|
|
1460
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
/* Marks a name the operator typed, so it is never confused with one the
|
|
1464
|
+
plugin guessed from forwards.conf. Same chip geometry as the pid tag; the
|
|
1465
|
+
colour carries the difference, the word carries the meaning. */
|
|
1466
|
+
.tunnelRemarkTag {
|
|
1467
|
+
flex: none;
|
|
1468
|
+
font-size: 10.5px;
|
|
1469
|
+
padding: 1px 5px;
|
|
1470
|
+
border-radius: 2px;
|
|
1471
|
+
color: var(--ssh-ink-muted);
|
|
1472
|
+
background: var(--dsw-alias-bg-layer-1);
|
|
1473
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
/* Edit and stop sit as one block on the right rail: the row's own width must
|
|
1477
|
+
not decide where the buttons land, or a long endpoint pushes them out. */
|
|
1478
|
+
.tunnelActions {
|
|
1479
|
+
flex: none;
|
|
1480
|
+
display: flex;
|
|
1481
|
+
align-items: center;
|
|
1482
|
+
gap: 6px;
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
.tunnelLabel {
|
|
1486
|
+
flex: 1;
|
|
1487
|
+
min-width: 0;
|
|
1488
|
+
overflow: hidden;
|
|
1489
|
+
text-overflow: ellipsis;
|
|
1490
|
+
white-space: nowrap;
|
|
1491
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
1492
|
+
font-size: 12.5px;
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
.formCard {
|
|
1496
|
+
display: flex;
|
|
1497
|
+
flex-direction: column;
|
|
1498
|
+
gap: 12px;
|
|
1499
|
+
padding: 16px;
|
|
1500
|
+
background: var(--dsw-alias-bg-base);
|
|
1501
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
1502
|
+
border-radius: var(--ssh-radius);
|
|
1503
|
+
flex: none;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
/* --- cluster ------------------------------------------------------------------ */
|
|
1507
|
+
|
|
1508
|
+
.clusterForm {
|
|
1509
|
+
display: flex;
|
|
1510
|
+
flex-direction: column;
|
|
1511
|
+
gap: 8px;
|
|
1512
|
+
flex: none;
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
.clusterFilters {
|
|
1516
|
+
display: grid;
|
|
1517
|
+
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
|
|
1518
|
+
gap: 10px;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
/* The run button and the reason it is unavailable sit on one line, so the
|
|
1522
|
+
explanation is read together with the control it explains rather than
|
|
1523
|
+
being hidden in a banner that only appears after a failed click. */
|
|
1524
|
+
.clusterActions {
|
|
1525
|
+
display: flex;
|
|
1526
|
+
align-items: center;
|
|
1527
|
+
gap: 12px;
|
|
1528
|
+
flex-wrap: wrap;
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
.inlineHint {
|
|
1532
|
+
font-size: 12px;
|
|
1533
|
+
color: var(--ssh-warn-text);
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
.commandInput {
|
|
1537
|
+
min-height: 96px;
|
|
1538
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
.cellDetails summary {
|
|
1542
|
+
cursor: pointer;
|
|
1543
|
+
font-size: 12px;
|
|
1544
|
+
color: var(--dsw-alias-label-secondary);
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
.cellPre {
|
|
1548
|
+
margin: 4px 0 0;
|
|
1549
|
+
padding: 6px 8px;
|
|
1550
|
+
max-height: 180px;
|
|
1551
|
+
overflow: auto;
|
|
1552
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
1553
|
+
border: 1px solid var(--dsw-alias-border-l2);
|
|
1554
|
+
border-radius: 6px;
|
|
1555
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
1556
|
+
font-size: 11.5px;
|
|
1557
|
+
white-space: pre-wrap;
|
|
1558
|
+
word-break: break-all;
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
/* ------------------------------------------------- deploy / logs tabs
|
|
1562
|
+
*
|
|
1563
|
+
* Added with the deploy and log-search tabs. Everything composes the panel's
|
|
1564
|
+
* existing tokens.
|
|
1565
|
+
*/
|
|
1566
|
+
|
|
1567
|
+
.sectionTitle {
|
|
1568
|
+
margin: 0 0 6px;
|
|
1569
|
+
font-size: 13px;
|
|
1570
|
+
font-weight: 600;
|
|
1571
|
+
color: var(--dsw-alias-label-secondary);
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
.inlineRow {
|
|
1575
|
+
display: flex;
|
|
1576
|
+
gap: 12px;
|
|
1577
|
+
align-items: flex-end;
|
|
1578
|
+
flex-wrap: wrap;
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
.inlineRow .field {
|
|
1582
|
+
flex: 1 1 160px;
|
|
1583
|
+
min-width: 0;
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
.checkRow {
|
|
1587
|
+
display: flex;
|
|
1588
|
+
gap: 6px;
|
|
1589
|
+
align-items: center;
|
|
1590
|
+
font-size: 12px;
|
|
1591
|
+
color: var(--dsw-alias-label-secondary);
|
|
1592
|
+
padding-bottom: 6px;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
.secondaryButton {
|
|
1596
|
+
align-self: flex-start;
|
|
1597
|
+
min-height: 28px;
|
|
1598
|
+
padding: 4px 10px;
|
|
1599
|
+
font-size: 11px;
|
|
1600
|
+
border-radius: var(--ssh-radius);
|
|
1601
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
1602
|
+
background: var(--dsw-alias-bg-base);
|
|
1603
|
+
color: var(--dsw-alias-label-secondary);
|
|
1604
|
+
cursor: pointer;
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
.secondaryButton:hover:not(:disabled) {
|
|
1608
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
1609
|
+
color: var(--dsw-alias-label-primary);
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
.stepCard {
|
|
1613
|
+
display: flex;
|
|
1614
|
+
flex-direction: column;
|
|
1615
|
+
gap: 8px;
|
|
1616
|
+
padding: 12px;
|
|
1617
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
1618
|
+
border-radius: var(--ssh-radius);
|
|
1619
|
+
background: var(--dsw-alias-bg-base);
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
.stepHead {
|
|
1623
|
+
display: flex;
|
|
1624
|
+
justify-content: space-between;
|
|
1625
|
+
align-items: center;
|
|
1626
|
+
font-size: 12px;
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
.chipRow {
|
|
1630
|
+
display: flex;
|
|
1631
|
+
flex-wrap: wrap;
|
|
1632
|
+
gap: 6px;
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1635
|
+
.chip {
|
|
1636
|
+
padding: 4px 9px;
|
|
1637
|
+
font-size: 11px;
|
|
1638
|
+
border-radius: var(--ssh-radius);
|
|
1639
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
1640
|
+
background: var(--dsw-alias-bg-base);
|
|
1641
|
+
color: var(--dsw-alias-label-secondary);
|
|
1642
|
+
cursor: pointer;
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
|
+
.chip[data-selected='true'] {
|
|
1646
|
+
border-color: var(--dsw-alias-brand-primary);
|
|
1647
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
1648
|
+
color: var(--dsw-alias-label-primary);
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
.resultCard {
|
|
1652
|
+
display: flex;
|
|
1653
|
+
flex-direction: column;
|
|
1654
|
+
gap: 8px;
|
|
1655
|
+
padding: 12px;
|
|
1656
|
+
margin-bottom: 8px;
|
|
1657
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
1658
|
+
border-radius: var(--ssh-radius);
|
|
1659
|
+
background: var(--dsw-alias-bg-base);
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
.resultHead {
|
|
1663
|
+
display: flex;
|
|
1664
|
+
gap: 10px;
|
|
1665
|
+
align-items: baseline;
|
|
1666
|
+
flex-wrap: wrap;
|
|
1667
|
+
font-size: 12px;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
.resultHead code {
|
|
1671
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
1672
|
+
font-size: 12px;
|
|
1673
|
+
color: var(--dsw-alias-label-primary);
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
.hostList {
|
|
1677
|
+
display: flex;
|
|
1678
|
+
flex-direction: column;
|
|
1679
|
+
gap: 2px;
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
.hostRow {
|
|
1683
|
+
display: flex;
|
|
1684
|
+
gap: 8px;
|
|
1685
|
+
align-items: center;
|
|
1686
|
+
width: 100%;
|
|
1687
|
+
padding: 4px 2px;
|
|
1688
|
+
border: none;
|
|
1689
|
+
background: transparent;
|
|
1690
|
+
cursor: pointer;
|
|
1691
|
+
text-align: left;
|
|
1692
|
+
font-size: 12px;
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
.hostRow:hover {
|
|
1696
|
+
background: var(--dsw-alias-bg-layer-1);
|
|
1697
|
+
border-radius: 4px;
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
.logBlock {
|
|
1701
|
+
margin: 4px 0 6px;
|
|
1702
|
+
padding: 6px 8px;
|
|
1703
|
+
max-height: 220px;
|
|
1704
|
+
overflow: auto;
|
|
1705
|
+
background: var(--dsw-alias-bg-layer-1);
|
|
1706
|
+
border: 1px solid var(--dsw-alias-border-l2);
|
|
1707
|
+
border-radius: 6px;
|
|
1708
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
1709
|
+
font-size: 11.5px;
|
|
1710
|
+
white-space: pre-wrap;
|
|
1711
|
+
word-break: break-all;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
/* ------------------------------------------------- master-secret card
|
|
1715
|
+
*
|
|
1716
|
+
* The secret block lives inside the monitor card. It is separated by a rule
|
|
1717
|
+
* rather than its own card, because it answers the same question the card
|
|
1718
|
+
* above it asks ("is this fleet actually protected?").
|
|
1719
|
+
*/
|
|
1720
|
+
|
|
1721
|
+
.secretCard {
|
|
1722
|
+
display: flex;
|
|
1723
|
+
flex-direction: column;
|
|
1724
|
+
gap: 8px;
|
|
1725
|
+
margin-top: 6px;
|
|
1726
|
+
padding-top: 10px;
|
|
1727
|
+
border-top: 1px solid var(--dsw-alias-border-l1);
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
.banner[data-kind='warn'] {
|
|
1731
|
+
color: var(--ssh-warn-text);
|
|
1732
|
+
border-left-color: var(--ssh-warn-text);
|
|
1733
|
+
}
|
|
1734
|
+
|