@cslug/inspector 0.0.0-placeholder → 0.15.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/ui/app.css ADDED
@@ -0,0 +1,400 @@
1
+ :root {
2
+ --bg: #f7f7f8;
3
+ --panel: #ffffff;
4
+ --text: #1c1d21;
5
+ --muted: #6b6f7a;
6
+ --line: #e3e4e8;
7
+ --hover: #f0f1f4;
8
+ --accent: #3b5bdb;
9
+ --accent-soft: #e7ecff;
10
+ --ok: #2b8a3e;
11
+ --warn: #b35c00;
12
+ --bad: #c92a2a;
13
+ --bad-soft: #fff0f0;
14
+ --code: #f3f4f6;
15
+ --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
16
+ color-scheme: light;
17
+ }
18
+ @media (prefers-color-scheme: dark) {
19
+ :root {
20
+ --bg: #111215;
21
+ --panel: #18191d;
22
+ --text: #e6e7ea;
23
+ --muted: #9497a1;
24
+ --line: #2a2c32;
25
+ --hover: #202227;
26
+ --accent: #8fa8ff;
27
+ --accent-soft: #1f2640;
28
+ --ok: #69db7c;
29
+ --warn: #ffa94d;
30
+ --bad: #ff8787;
31
+ --bad-soft: #2c1a1c;
32
+ --code: #1f2025;
33
+ color-scheme: dark;
34
+ }
35
+ }
36
+ * {
37
+ box-sizing: border-box;
38
+ }
39
+ html,
40
+ body {
41
+ margin: 0;
42
+ height: 100%;
43
+ }
44
+ body {
45
+ background: var(--bg);
46
+ color: var(--text);
47
+ font:
48
+ 14px / 1.45 system-ui,
49
+ -apple-system,
50
+ "Segoe UI",
51
+ Roboto,
52
+ sans-serif;
53
+ }
54
+ a {
55
+ color: var(--accent);
56
+ text-decoration: none;
57
+ }
58
+ a:hover {
59
+ text-decoration: underline;
60
+ }
61
+ button {
62
+ font: inherit;
63
+ color: var(--text);
64
+ background: var(--panel);
65
+ border: 1px solid var(--line);
66
+ border-radius: 6px;
67
+ padding: 4px 10px;
68
+ cursor: pointer;
69
+ }
70
+ button:hover {
71
+ background: var(--hover);
72
+ }
73
+ button.danger {
74
+ color: var(--bad);
75
+ }
76
+ button.on {
77
+ background: var(--accent-soft);
78
+ border-color: var(--accent);
79
+ }
80
+
81
+ .bar {
82
+ position: sticky;
83
+ top: 0;
84
+ z-index: 2;
85
+ display: flex;
86
+ align-items: center;
87
+ gap: 10px;
88
+ padding: 10px 16px;
89
+ background: var(--panel);
90
+ border-bottom: 1px solid var(--line);
91
+ }
92
+ .brand {
93
+ font-weight: 650;
94
+ color: var(--text);
95
+ }
96
+ .env {
97
+ font-size: 12px;
98
+ color: var(--warn);
99
+ border: 1px solid currentColor;
100
+ border-radius: 99px;
101
+ padding: 0 8px;
102
+ }
103
+ #search {
104
+ flex: 1;
105
+ max-width: 420px;
106
+ font: inherit;
107
+ color: var(--text);
108
+ background: var(--bg);
109
+ border: 1px solid var(--line);
110
+ border-radius: 6px;
111
+ padding: 5px 10px;
112
+ }
113
+ .live {
114
+ margin-left: auto;
115
+ font-size: 12px;
116
+ color: var(--ok);
117
+ }
118
+ .live::before {
119
+ content: "● ";
120
+ }
121
+ .live.paused {
122
+ color: var(--muted);
123
+ }
124
+
125
+ .layout {
126
+ display: grid;
127
+ grid-template-columns: 200px minmax(0, 1fr);
128
+ min-height: calc(100% - 53px);
129
+ }
130
+ .kinds {
131
+ border-right: 1px solid var(--line);
132
+ padding: 10px 8px;
133
+ background: var(--panel);
134
+ }
135
+ .kinds a {
136
+ display: flex;
137
+ justify-content: space-between;
138
+ padding: 5px 10px;
139
+ border-radius: 6px;
140
+ color: var(--text);
141
+ }
142
+ .kinds a:hover {
143
+ background: var(--hover);
144
+ text-decoration: none;
145
+ }
146
+ .kinds a.current {
147
+ background: var(--accent-soft);
148
+ color: var(--accent);
149
+ font-weight: 600;
150
+ }
151
+ .kinds .count {
152
+ color: var(--muted);
153
+ font-variant-numeric: tabular-nums;
154
+ }
155
+ .main {
156
+ padding: 16px;
157
+ min-width: 0;
158
+ outline: none;
159
+ }
160
+
161
+ .empty {
162
+ color: var(--muted);
163
+ padding: 40px 0;
164
+ text-align: center;
165
+ }
166
+ .tags-filter {
167
+ display: flex;
168
+ flex-wrap: wrap;
169
+ gap: 6px;
170
+ margin-bottom: 10px;
171
+ }
172
+
173
+ table.entries {
174
+ width: 100%;
175
+ border-collapse: collapse;
176
+ background: var(--panel);
177
+ border: 1px solid var(--line);
178
+ border-radius: 8px;
179
+ overflow: hidden;
180
+ }
181
+ table.entries td {
182
+ padding: 7px 10px;
183
+ border-top: 1px solid var(--line);
184
+ vertical-align: top;
185
+ }
186
+ table.entries tr:first-child td {
187
+ border-top: 0;
188
+ }
189
+ table.entries tr {
190
+ cursor: pointer;
191
+ }
192
+ table.entries tr:hover td {
193
+ background: var(--hover);
194
+ }
195
+ td.time {
196
+ color: var(--muted);
197
+ white-space: nowrap;
198
+ font-variant-numeric: tabular-nums;
199
+ width: 1%;
200
+ }
201
+ td.kind {
202
+ width: 1%;
203
+ white-space: nowrap;
204
+ }
205
+ td.summary {
206
+ font-family: var(--mono);
207
+ font-size: 13px;
208
+ word-break: break-word;
209
+ }
210
+ td.role {
211
+ color: var(--muted);
212
+ width: 1%;
213
+ white-space: nowrap;
214
+ font-size: 12px;
215
+ }
216
+
217
+ .badge {
218
+ display: inline-block;
219
+ font-size: 11px;
220
+ line-height: 18px;
221
+ padding: 0 7px;
222
+ border-radius: 99px;
223
+ background: var(--code);
224
+ color: var(--muted);
225
+ white-space: nowrap;
226
+ }
227
+ .badge.kind {
228
+ background: var(--accent-soft);
229
+ color: var(--accent);
230
+ }
231
+ .badge.bad {
232
+ background: var(--bad-soft);
233
+ color: var(--bad);
234
+ }
235
+ .badge.warn {
236
+ color: var(--warn);
237
+ }
238
+ .badge.ok {
239
+ color: var(--ok);
240
+ }
241
+ .tags {
242
+ display: inline-flex;
243
+ gap: 4px;
244
+ margin-left: 6px;
245
+ }
246
+ button.tag {
247
+ font-size: 12px;
248
+ padding: 1px 8px;
249
+ border-radius: 99px;
250
+ }
251
+
252
+ .more {
253
+ display: block;
254
+ margin: 12px auto;
255
+ }
256
+
257
+ .detail h1 {
258
+ font-size: 16px;
259
+ font-family: var(--mono);
260
+ font-weight: 600;
261
+ margin: 4px 0 12px;
262
+ word-break: break-word;
263
+ }
264
+ .back {
265
+ display: inline-block;
266
+ margin-bottom: 8px;
267
+ }
268
+ .meta {
269
+ display: flex;
270
+ flex-wrap: wrap;
271
+ gap: 6px 18px;
272
+ color: var(--muted);
273
+ font-size: 13px;
274
+ margin-bottom: 14px;
275
+ }
276
+ .meta b {
277
+ color: var(--text);
278
+ font-weight: 500;
279
+ }
280
+ section.card {
281
+ background: var(--panel);
282
+ border: 1px solid var(--line);
283
+ border-radius: 8px;
284
+ margin-bottom: 14px;
285
+ }
286
+ section.card > h2 {
287
+ font-size: 13px;
288
+ margin: 0;
289
+ padding: 8px 12px;
290
+ border-bottom: 1px solid var(--line);
291
+ display: flex;
292
+ align-items: center;
293
+ justify-content: space-between;
294
+ }
295
+ section.card > .body {
296
+ padding: 10px 12px;
297
+ }
298
+ pre {
299
+ margin: 0;
300
+ font: 12.5px / 1.5 var(--mono);
301
+ white-space: pre-wrap;
302
+ word-break: break-word;
303
+ background: var(--code);
304
+ border-radius: 6px;
305
+ padding: 10px;
306
+ max-height: 520px;
307
+ overflow: auto;
308
+ }
309
+ table.kv {
310
+ border-collapse: collapse;
311
+ width: 100%;
312
+ font-size: 13px;
313
+ }
314
+ table.kv td {
315
+ padding: 3px 8px 3px 0;
316
+ vertical-align: top;
317
+ }
318
+ table.kv td:first-child {
319
+ color: var(--muted);
320
+ white-space: nowrap;
321
+ width: 1%;
322
+ padding-right: 16px;
323
+ }
324
+ table.kv td:last-child {
325
+ font-family: var(--mono);
326
+ word-break: break-word;
327
+ }
328
+ iframe.mail {
329
+ width: 100%;
330
+ height: 520px;
331
+ border: 0;
332
+ background: #fff;
333
+ border-radius: 6px;
334
+ }
335
+
336
+ .timeline {
337
+ list-style: none;
338
+ margin: 0;
339
+ padding: 0;
340
+ }
341
+ .timeline li {
342
+ display: grid;
343
+ grid-template-columns: 70px 110px minmax(0, 1fr);
344
+ gap: 8px;
345
+ padding: 5px 0;
346
+ border-top: 1px solid var(--line);
347
+ cursor: pointer;
348
+ }
349
+ .timeline li:first-child {
350
+ border-top: 0;
351
+ }
352
+ .timeline li:hover {
353
+ background: var(--hover);
354
+ }
355
+ .timeline .offset {
356
+ color: var(--muted);
357
+ text-align: right;
358
+ font-variant-numeric: tabular-nums;
359
+ font-size: 12px;
360
+ }
361
+ .timeline .summary {
362
+ font-family: var(--mono);
363
+ font-size: 12.5px;
364
+ word-break: break-word;
365
+ }
366
+
367
+ @media (max-width: 760px) {
368
+ .layout {
369
+ grid-template-columns: 1fr;
370
+ }
371
+ .kinds {
372
+ display: flex;
373
+ overflow-x: auto;
374
+ border-right: 0;
375
+ border-bottom: 1px solid var(--line);
376
+ padding: 6px;
377
+ }
378
+ .kinds a {
379
+ flex: none;
380
+ gap: 8px;
381
+ }
382
+ td.role,
383
+ td.time {
384
+ display: none;
385
+ }
386
+ .bar {
387
+ flex-wrap: wrap;
388
+ }
389
+ #search {
390
+ order: 9;
391
+ max-width: none;
392
+ flex-basis: 100%;
393
+ }
394
+ .timeline li {
395
+ grid-template-columns: 56px minmax(0, 1fr);
396
+ }
397
+ .timeline li .badge {
398
+ display: none;
399
+ }
400
+ }