@hyvnt/hyvui 0.2.0 → 0.3.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/README.md +264 -253
- package/dist/components/ambient/CornerBrackets.svelte +83 -87
- package/dist/components/ambient/DataStream.svelte +111 -94
- package/dist/components/ambient/GlyphMark.svelte +69 -69
- package/dist/components/ambient/GridOverlay.svelte +26 -28
- package/dist/components/ambient/ParallaxLayer.svelte +37 -41
- package/dist/components/ambient/ScanBand.svelte +95 -91
- package/dist/components/ambient/SignalRing.svelte +100 -100
- package/dist/components/ambient/ThreadLine.svelte +71 -78
- package/dist/components/ambient/Vignette.svelte +24 -26
- package/dist/components/depth/DepthLayer.svelte +22 -27
- package/dist/components/depth/DepthStage.svelte +63 -62
- package/dist/components/depth/FloatCard.svelte +113 -104
- package/dist/components/depth/HorizonGrid.svelte +216 -160
- package/dist/components/depth/Plinth.svelte +52 -57
- package/dist/components/display/Avatar.svelte +64 -69
- package/dist/components/display/Badge.svelte +59 -63
- package/dist/components/display/Blockquote.svelte +31 -34
- package/dist/components/display/CodeBlock.svelte +71 -76
- package/dist/components/display/MetricCard.svelte +77 -83
- package/dist/components/display/Table.svelte +99 -104
- package/dist/components/feedback/Alert.svelte +71 -76
- package/dist/components/feedback/EmptyState.svelte +68 -68
- package/dist/components/feedback/ErrorState.svelte +73 -73
- package/dist/components/feedback/Skeleton.svelte +52 -52
- package/dist/components/feedback/StatusDot.svelte +49 -54
- package/dist/components/feedback/StatusLine.svelte +122 -122
- package/dist/components/feedback/Toast.svelte +130 -136
- package/dist/components/inputs/Button.svelte +240 -237
- package/dist/components/inputs/Checkbox.svelte +104 -105
- package/dist/components/inputs/FileUpload.svelte +165 -163
- package/dist/components/inputs/Input.svelte +145 -147
- package/dist/components/inputs/Select.svelte +156 -150
- package/dist/components/inputs/Textarea.svelte +153 -154
- package/dist/components/inputs/Toggle.svelte +120 -120
- package/dist/components/layout/Card.svelte +70 -76
- package/dist/components/layout/Drawer.svelte +133 -109
- package/dist/components/layout/Grid.svelte +118 -43
- package/dist/components/layout/Grid.svelte.d.ts +8 -2
- package/dist/components/layout/Modal.svelte +176 -159
- package/dist/components/layout/Panel.svelte +49 -54
- package/dist/components/layout/Popover.svelte +178 -67
- package/dist/components/layout/Popover.svelte.d.ts +10 -1
- package/dist/components/layout/Stack.svelte +53 -53
- package/dist/components/navigation/Breadcrumb.svelte +70 -73
- package/dist/components/navigation/DropdownMenu.svelte +167 -124
- package/dist/components/navigation/DropdownMenu.svelte.d.ts +12 -2
- package/dist/components/navigation/SidebarNav.svelte +86 -90
- package/dist/components/navigation/Tabs.svelte +81 -86
- package/dist/components/navigation/Topbar.svelte +85 -85
- package/dist/components/patterns/ActionBar.svelte +71 -76
- package/dist/components/patterns/ConfirmDialog.svelte +63 -64
- package/dist/components/patterns/PageHeader.svelte +109 -114
- package/dist/components/patterns/SearchBar.svelte +54 -59
- package/dist/components/patterns/TerminalBoot.svelte +104 -104
- package/dist/components/primitives/Divider.svelte +26 -29
- package/dist/components/primitives/Icon.svelte +44 -49
- package/dist/components/primitives/Label.svelte +39 -44
- package/dist/components/primitives/Surface.svelte +89 -87
- package/dist/components/primitives/Text.svelte +98 -98
- package/dist/components/scenes/ArchiveScene.svelte +92 -95
- package/dist/components/scenes/ArchiveScene.svelte.d.ts +7 -1
- package/dist/components/scenes/LogScene.svelte +72 -77
- package/dist/components/scenes/NarrativeScene.svelte +91 -92
- package/dist/components/scenes/ReadoutScene.svelte +120 -107
- package/dist/components/scenes/ReadoutScene.svelte.d.ts +3 -1
- package/dist/components/scenes/StageScene.svelte +97 -104
- package/dist/examples/FieldReport.svelte +226 -223
- package/dist/examples/ObservationDeck.svelte +333 -317
- package/dist/examples/SignalLost.svelte +191 -191
- package/dist/styles.css +113 -0
- package/dist/system/actions/echo.js +9 -9
- package/dist/system/actions/resolve.js +9 -9
- package/dist/system/actions/reveal.js +1 -1
- package/dist/system/actions/surface.js +13 -1
- package/dist/system/depth/depth.css +49 -49
- package/dist/system/depth/depth.js +1 -1
- package/dist/system/expressions.css +80 -80
- package/dist/system/override-template.css +72 -72
- package/dist/system/register.css +74 -74
- package/dist/system/scroll-lock.d.ts +6 -0
- package/dist/system/scroll-lock.js +23 -0
- package/dist/tokens/tokens.css +100 -86
- package/dist/tokens/tokens.js +4 -4
- package/dist/utils/motion.js +1 -1
- package/package.json +67 -60
|
@@ -1,317 +1,333 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
EXAMPLE: Observation Deck
|
|
3
|
-
REGISTER: mission-control
|
|
4
|
-
CONCEPT: a deep-space monitoring dashboard operated by someone who has been watching for months
|
|
5
|
-
DEMONSTRATES: ReadoutScene, DepthStage, HorizonGrid, FloatCard, Table, SidebarNav, Topbar, StatusDot, Alert, MetricCard, Label, Text expressions, TerminalBoot, DataStream, GlyphMark
|
|
6
|
-
INSPIRED BY: the third hour of a night watch on a research vessel bridge
|
|
7
|
-
-->
|
|
8
|
-
<script lang="ts">
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
1
|
+
<!--
|
|
2
|
+
EXAMPLE: Observation Deck
|
|
3
|
+
REGISTER: mission-control
|
|
4
|
+
CONCEPT: a deep-space monitoring dashboard operated by someone who has been watching for months
|
|
5
|
+
DEMONSTRATES: ReadoutScene, DepthStage, HorizonGrid, FloatCard, Table, SidebarNav, Topbar, StatusDot, Alert, MetricCard, Label, Text expressions, TerminalBoot, DataStream, GlyphMark
|
|
6
|
+
INSPIRED BY: the third hour of a night watch on a research vessel bridge
|
|
7
|
+
-->
|
|
8
|
+
<script lang="ts">
|
|
9
|
+
import {
|
|
10
|
+
Text,
|
|
11
|
+
Label,
|
|
12
|
+
StatusDot,
|
|
13
|
+
Alert,
|
|
14
|
+
MetricCard,
|
|
15
|
+
Table,
|
|
16
|
+
SidebarNav,
|
|
17
|
+
Topbar,
|
|
18
|
+
ReadoutScene,
|
|
19
|
+
DepthStage,
|
|
20
|
+
DepthLayer,
|
|
21
|
+
FloatCard,
|
|
22
|
+
HorizonGrid,
|
|
23
|
+
DataStream,
|
|
24
|
+
GlyphMark,
|
|
25
|
+
Grid,
|
|
26
|
+
Stack,
|
|
27
|
+
Divider,
|
|
28
|
+
applyRegister
|
|
29
|
+
} from '../index.js';
|
|
30
|
+
import { onMount } from 'svelte';
|
|
31
|
+
|
|
32
|
+
let elapsed = $state(0);
|
|
33
|
+
let statusCycle = $state<'ok' | 'pend' | 'warn' | 'fail'>('ok');
|
|
34
|
+
let intervalId: ReturnType<typeof setInterval> | undefined;
|
|
35
|
+
let cycleId: ReturnType<typeof setInterval> | undefined;
|
|
36
|
+
|
|
37
|
+
const statuses: ('ok' | 'pend' | 'warn' | 'fail')[] = [
|
|
38
|
+
'ok',
|
|
39
|
+
'ok',
|
|
40
|
+
'ok',
|
|
41
|
+
'pend',
|
|
42
|
+
'ok',
|
|
43
|
+
'warn',
|
|
44
|
+
'ok'
|
|
45
|
+
];
|
|
46
|
+
let cycleIndex = $state(0);
|
|
47
|
+
|
|
48
|
+
const elapsedFormatted = $derived(() => {
|
|
49
|
+
const h = Math.floor(elapsed / 3600);
|
|
50
|
+
const m = Math.floor((elapsed % 3600) / 60);
|
|
51
|
+
const s = elapsed % 60;
|
|
52
|
+
return `${String(h).padStart(2, '0')}:${String(m).padStart(2, '0')}:${String(s).padStart(2, '0')}`;
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
const navItems = [
|
|
56
|
+
{ label: 'overview', href: '#', active: true },
|
|
57
|
+
{ label: 'telemetry', href: '#' },
|
|
58
|
+
{ label: 'signal log', href: '#' },
|
|
59
|
+
{ label: 'thermal map', href: '#' },
|
|
60
|
+
{ label: 'diagnostics', href: '#' }
|
|
61
|
+
];
|
|
62
|
+
|
|
63
|
+
const metricsData = [
|
|
64
|
+
{ label: 'signal strength', value: '-42 dbm' },
|
|
65
|
+
{ label: 'thermal variance', value: '0.003 K' },
|
|
66
|
+
{ label: 'distance', value: '4.2 ly' },
|
|
67
|
+
{ label: 'cycle count', value: '1,847' },
|
|
68
|
+
{ label: 'uptime', value: '99.97%' },
|
|
69
|
+
{ label: 'queue depth', value: '12' }
|
|
70
|
+
];
|
|
71
|
+
|
|
72
|
+
const eventLog = [
|
|
73
|
+
{ time: '03:42:18', event: 'frequency sweep completed', status: 'ok' },
|
|
74
|
+
{ time: '03:38:04', event: 'sector 7 beacon refresh', status: 'ok' },
|
|
75
|
+
{ time: '03:31:55', event: 'thermal anomaly logged', status: 'warn' },
|
|
76
|
+
{ time: '03:24:12', event: 'handshake with relay 9', status: 'ok' },
|
|
77
|
+
{ time: '03:18:40', event: 'particle density spike', status: 'pend' },
|
|
78
|
+
{ time: '03:12:07', event: 'calibration cycle 1847', status: 'ok' },
|
|
79
|
+
{ time: '03:04:33', event: 'sector 4 unresponsive', status: 'fail' },
|
|
80
|
+
{ time: '02:58:19', event: 'backup frequency locked', status: 'ok' }
|
|
81
|
+
];
|
|
82
|
+
|
|
83
|
+
const eventColumns = [
|
|
84
|
+
{ key: 'time', label: 'time' },
|
|
85
|
+
{ key: 'event', label: 'event' },
|
|
86
|
+
{ key: 'status', label: 'status' }
|
|
87
|
+
];
|
|
88
|
+
|
|
89
|
+
const bootLines: { status: 'ok' | 'pend' | 'warn' | 'fail'; message: string }[] = [
|
|
90
|
+
{ status: 'ok', message: 'observation array initialized' },
|
|
91
|
+
{ status: 'ok', message: 'frequency lock acquired' },
|
|
92
|
+
{ status: 'ok', message: 'telemetry streams active' },
|
|
93
|
+
{ status: 'ok', message: 'thermal sensors calibrated' },
|
|
94
|
+
{ status: 'pend', message: 'awaiting sector 4 response' }
|
|
95
|
+
];
|
|
96
|
+
|
|
97
|
+
onMount(() => {
|
|
98
|
+
applyRegister('mission-control');
|
|
99
|
+
|
|
100
|
+
intervalId = setInterval(() => {
|
|
101
|
+
elapsed += 1;
|
|
102
|
+
}, 1000);
|
|
103
|
+
|
|
104
|
+
cycleId = setInterval(() => {
|
|
105
|
+
cycleIndex = (cycleIndex + 1) % statuses.length;
|
|
106
|
+
statusCycle = statuses[cycleIndex];
|
|
107
|
+
}, 4000);
|
|
108
|
+
|
|
109
|
+
elapsed = 3 * 3600 + 44 * 60 + 12;
|
|
110
|
+
|
|
111
|
+
return () => {
|
|
112
|
+
document.body.removeAttribute('data-register');
|
|
113
|
+
if (intervalId) clearInterval(intervalId);
|
|
114
|
+
if (cycleId) clearInterval(cycleId);
|
|
115
|
+
};
|
|
116
|
+
});
|
|
117
|
+
</script>
|
|
118
|
+
|
|
119
|
+
<div class="obs-deck">
|
|
120
|
+
<Topbar class="obs-deck-topbar">
|
|
121
|
+
{#snippet left()}
|
|
122
|
+
<Stack direction="horizontal" gap="0.75rem" align="center">
|
|
123
|
+
<StatusDot status={statusCycle} size={7} />
|
|
124
|
+
<Text expression="readout" as="span">deep field observatory</Text>
|
|
125
|
+
</Stack>
|
|
126
|
+
{/snippet}
|
|
127
|
+
{#snippet center()}
|
|
128
|
+
<GlyphMark variant="reticle" size={16} color="var(--signal)" />
|
|
129
|
+
{/snippet}
|
|
130
|
+
{#snippet right()}
|
|
131
|
+
<Stack direction="horizontal" gap="1rem" align="center">
|
|
132
|
+
<Label color="muted">elapsed</Label>
|
|
133
|
+
<Text expression="readout" as="span" color="signal">{elapsedFormatted()}</Text>
|
|
134
|
+
</Stack>
|
|
135
|
+
{/snippet}
|
|
136
|
+
</Topbar>
|
|
137
|
+
|
|
138
|
+
<div class="obs-deck-body">
|
|
139
|
+
<aside class="obs-deck-sidebar">
|
|
140
|
+
<SidebarNav items={navItems} />
|
|
141
|
+
<Divider />
|
|
142
|
+
<Stack direction="vertical" gap="0.5rem">
|
|
143
|
+
<Alert variant="ok" title="particle density nominal">
|
|
144
|
+
<Text expression="readout">within expected parameters for sector</Text>
|
|
145
|
+
</Alert>
|
|
146
|
+
<Alert variant="warn" title="sector 7 unresponsive">
|
|
147
|
+
<Text expression="readout">last contact 26 minutes ago</Text>
|
|
148
|
+
</Alert>
|
|
149
|
+
<Alert variant="info" title="calibration window approaching">
|
|
150
|
+
<Text expression="readout">next cycle in 14 minutes</Text>
|
|
151
|
+
</Alert>
|
|
152
|
+
</Stack>
|
|
153
|
+
<div class="obs-deck-stream" aria-hidden="true">
|
|
154
|
+
<DataStream active speed="slow" />
|
|
155
|
+
<DataStream active speed="medium" />
|
|
156
|
+
</div>
|
|
157
|
+
</aside>
|
|
158
|
+
|
|
159
|
+
<main class="obs-deck-main">
|
|
160
|
+
<DepthStage perspective="mid" class="obs-deck-depth">
|
|
161
|
+
<DepthLayer level="ground" class="obs-deck-horizon">
|
|
162
|
+
<HorizonGrid rows={18} cols={10} vanishY={0.35} />
|
|
163
|
+
</DepthLayer>
|
|
164
|
+
|
|
165
|
+
<DepthLayer level="raised" class="obs-deck-content">
|
|
166
|
+
<div class="obs-deck-metrics">
|
|
167
|
+
<Grid cols={3} gap="0.75rem">
|
|
168
|
+
{#each metricsData as m}
|
|
169
|
+
<FloatCard tiltMax={4}>
|
|
170
|
+
<div class="obs-deck-metric-inner">
|
|
171
|
+
<Label color="muted">{m.label}</Label>
|
|
172
|
+
<Text variant="heading" as="span" color="primary">{m.value}</Text>
|
|
173
|
+
</div>
|
|
174
|
+
</FloatCard>
|
|
175
|
+
{/each}
|
|
176
|
+
</Grid>
|
|
177
|
+
</div>
|
|
178
|
+
|
|
179
|
+
<DepthLayer level="ground" class="obs-deck-table-layer">
|
|
180
|
+
<div class="obs-deck-table-section">
|
|
181
|
+
<Text expression="chapter" as="span">recent events</Text>
|
|
182
|
+
<Table columns={eventColumns} rows={eventLog} />
|
|
183
|
+
</div>
|
|
184
|
+
</DepthLayer>
|
|
185
|
+
|
|
186
|
+
<div class="obs-deck-boot">
|
|
187
|
+
<Text expression="chapter" as="span">initialization log</Text>
|
|
188
|
+
<div class="obs-deck-boot-lines">
|
|
189
|
+
{#each bootLines as line}
|
|
190
|
+
<div class="obs-deck-boot-line">
|
|
191
|
+
<span
|
|
192
|
+
class="obs-deck-boot-glyph"
|
|
193
|
+
style:color={line.status === 'ok'
|
|
194
|
+
? 'var(--status-ok)'
|
|
195
|
+
: line.status === 'pend'
|
|
196
|
+
? 'var(--status-pend)'
|
|
197
|
+
: line.status === 'warn'
|
|
198
|
+
? 'var(--status-warn)'
|
|
199
|
+
: 'var(--status-fail)'}
|
|
200
|
+
>
|
|
201
|
+
{line.status === 'ok'
|
|
202
|
+
? '[ OK ]'
|
|
203
|
+
: line.status === 'pend'
|
|
204
|
+
? '[ .. ]'
|
|
205
|
+
: line.status === 'warn'
|
|
206
|
+
? '[WARN]'
|
|
207
|
+
: '[FAIL]'}
|
|
208
|
+
</span>
|
|
209
|
+
<span class="obs-deck-boot-msg">{line.message}</span>
|
|
210
|
+
</div>
|
|
211
|
+
{/each}
|
|
212
|
+
</div>
|
|
213
|
+
</div>
|
|
214
|
+
</DepthLayer>
|
|
215
|
+
</DepthStage>
|
|
216
|
+
</main>
|
|
217
|
+
</div>
|
|
218
|
+
</div>
|
|
219
|
+
|
|
220
|
+
<style>
|
|
221
|
+
.obs-deck {
|
|
222
|
+
min-height: 100dvh;
|
|
223
|
+
display: flex;
|
|
224
|
+
flex-direction: column;
|
|
225
|
+
background-color: var(--bg);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
:global(.obs-deck-topbar) {
|
|
229
|
+
flex-shrink: 0;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.obs-deck-body {
|
|
233
|
+
display: grid;
|
|
234
|
+
grid-template-columns: 220px 1fr;
|
|
235
|
+
flex: 1;
|
|
236
|
+
min-height: 0;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.obs-deck-sidebar {
|
|
240
|
+
padding: 1.25rem 1rem;
|
|
241
|
+
display: flex;
|
|
242
|
+
flex-direction: column;
|
|
243
|
+
gap: 1rem;
|
|
244
|
+
border-right: 1px solid var(--line);
|
|
245
|
+
overflow-y: auto;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.obs-deck-stream {
|
|
249
|
+
display: flex;
|
|
250
|
+
gap: 0.5rem;
|
|
251
|
+
justify-content: center;
|
|
252
|
+
margin-top: auto;
|
|
253
|
+
padding-top: 1rem;
|
|
254
|
+
opacity: 0.6;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.obs-deck-main {
|
|
258
|
+
position: relative;
|
|
259
|
+
overflow-y: auto;
|
|
260
|
+
padding: 1.5rem;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
:global(.obs-deck-depth) {
|
|
264
|
+
min-height: 100%;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
:global(.obs-deck-horizon) {
|
|
268
|
+
position: absolute;
|
|
269
|
+
inset: 0;
|
|
270
|
+
opacity: 0.4;
|
|
271
|
+
pointer-events: none;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
:global(.obs-deck-content) {
|
|
275
|
+
position: relative;
|
|
276
|
+
display: flex;
|
|
277
|
+
flex-direction: column;
|
|
278
|
+
gap: 2rem;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.obs-deck-metric-inner {
|
|
282
|
+
display: flex;
|
|
283
|
+
flex-direction: column;
|
|
284
|
+
gap: 0.25rem;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.obs-deck-table-section {
|
|
288
|
+
display: flex;
|
|
289
|
+
flex-direction: column;
|
|
290
|
+
gap: 0.75rem;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.obs-deck-boot {
|
|
294
|
+
display: flex;
|
|
295
|
+
flex-direction: column;
|
|
296
|
+
gap: 0.5rem;
|
|
297
|
+
border-left: 2px solid rgba(121, 166, 163, 0.14);
|
|
298
|
+
padding-left: 1.25rem;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.obs-deck-boot-lines {
|
|
302
|
+
display: flex;
|
|
303
|
+
flex-direction: column;
|
|
304
|
+
gap: 0.25rem;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.obs-deck-boot-line {
|
|
308
|
+
display: flex;
|
|
309
|
+
align-items: baseline;
|
|
310
|
+
gap: 0.75rem;
|
|
311
|
+
font-family: var(--font-mono);
|
|
312
|
+
font-size: 0.82rem;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.obs-deck-boot-glyph {
|
|
316
|
+
white-space: nowrap;
|
|
317
|
+
flex-shrink: 0;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.obs-deck-boot-msg {
|
|
321
|
+
color: var(--text-soft);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
@media (max-width: 768px) {
|
|
325
|
+
.obs-deck-body {
|
|
326
|
+
grid-template-columns: 1fr;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.obs-deck-sidebar {
|
|
330
|
+
display: none;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
</style>
|