@jjlmoya/utils-hardware 1.26.0 → 1.28.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/package.json +1 -1
- package/src/category/index.ts +3 -1
- package/src/entries.ts +7 -1
- package/src/index.ts +2 -0
- package/src/tests/locale_completeness.test.ts +1 -1
- package/src/tests/tool_validation.test.ts +1 -1
- package/src/tool/mobileSensorTest/bibliography.astro +14 -0
- package/src/tool/mobileSensorTest/bibliography.ts +24 -0
- package/src/tool/mobileSensorTest/component.astro +241 -0
- package/src/tool/mobileSensorTest/entry.ts +29 -0
- package/src/tool/mobileSensorTest/i18n/de.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/en.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/es.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/fr.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/id.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/it.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/ja.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/ko.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/nl.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/pl.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/pt.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/ru.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/sv.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/tr.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/zh.ts +186 -0
- package/src/tool/mobileSensorTest/index.ts +11 -0
- package/src/tool/mobileSensorTest/logic.ts +39 -0
- package/src/tool/mobileSensorTest/mobile-sensor-test.css +460 -0
- package/src/tool/mobileSensorTest/seo.astro +15 -0
- package/src/tool/mobileSensorTest/ui.ts +31 -0
- package/src/tool/usbPowerBudgetCalculator/bibliography.astro +14 -0
- package/src/tool/usbPowerBudgetCalculator/bibliography.ts +16 -0
- package/src/tool/usbPowerBudgetCalculator/component.astro +266 -0
- package/src/tool/usbPowerBudgetCalculator/entry.ts +29 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/de.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/en.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/es.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/fr.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/id.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/it.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/ja.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/ko.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/nl.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/pl.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/pt.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/ru.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/sv.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/tr.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/zh.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/index.ts +11 -0
- package/src/tool/usbPowerBudgetCalculator/logic.ts +81 -0
- package/src/tool/usbPowerBudgetCalculator/seo.astro +15 -0
- package/src/tool/usbPowerBudgetCalculator/ui.ts +32 -0
- package/src/tool/usbPowerBudgetCalculator/usb-power-budget-calculator.css +484 -0
- package/src/tools.ts +3 -1
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
.upb-shell {
|
|
2
|
+
--upb-bg: #eef5ff;
|
|
3
|
+
--upb-panel: rgba(255, 255, 255, 0.84);
|
|
4
|
+
--upb-panel-strong: #fff;
|
|
5
|
+
--upb-ink: #111827;
|
|
6
|
+
--upb-muted: #526072;
|
|
7
|
+
--upb-line: rgba(50, 72, 110, 0.18);
|
|
8
|
+
--upb-glow: #32d19c;
|
|
9
|
+
--upb-accent: #2477ff;
|
|
10
|
+
--upb-hot: #ffbe3d;
|
|
11
|
+
--upb-danger: #ee4b67;
|
|
12
|
+
--upb-shadow: rgba(24, 42, 76, 0.18);
|
|
13
|
+
|
|
14
|
+
background:
|
|
15
|
+
radial-gradient(circle at 13% 17%, rgba(50, 209, 156, 0.26), transparent 31%),
|
|
16
|
+
radial-gradient(circle at 86% 18%, rgba(36, 119, 255, 0.24), transparent 28%),
|
|
17
|
+
linear-gradient(135deg, #f8fbff 0%, var(--upb-bg) 48%, #eaf0f8 100%);
|
|
18
|
+
border: 1px solid var(--upb-line);
|
|
19
|
+
border-radius: 8px;
|
|
20
|
+
box-shadow: 0 24px 70px var(--upb-shadow);
|
|
21
|
+
color: var(--upb-ink);
|
|
22
|
+
display: grid;
|
|
23
|
+
gap: 0.8rem;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
padding: 0.75rem;
|
|
26
|
+
position: relative;
|
|
27
|
+
width: 100%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.upb-shell::before {
|
|
31
|
+
animation: upb-grid-drift 12s linear infinite;
|
|
32
|
+
background:
|
|
33
|
+
linear-gradient(rgba(36, 119, 255, 0.08) 1px, transparent 1px),
|
|
34
|
+
linear-gradient(90deg, rgba(36, 119, 255, 0.08) 1px, transparent 1px);
|
|
35
|
+
background-size: 26px 26px;
|
|
36
|
+
content: '';
|
|
37
|
+
inset: 0;
|
|
38
|
+
opacity: 0.42;
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
position: absolute;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.theme-dark .upb-shell {
|
|
44
|
+
--upb-bg: #0f1724;
|
|
45
|
+
--upb-panel: rgba(19, 27, 42, 0.82);
|
|
46
|
+
--upb-panel-strong: #141d2e;
|
|
47
|
+
--upb-ink: #f4f8ff;
|
|
48
|
+
--upb-muted: #aab8cb;
|
|
49
|
+
--upb-line: rgba(151, 180, 222, 0.22);
|
|
50
|
+
--upb-glow: #31e6ad;
|
|
51
|
+
--upb-accent: #80aefc;
|
|
52
|
+
--upb-hot: #ffd166;
|
|
53
|
+
--upb-danger: #ff6b87;
|
|
54
|
+
--upb-shadow: rgba(0, 0, 0, 0.42);
|
|
55
|
+
|
|
56
|
+
background:
|
|
57
|
+
radial-gradient(circle at 15% 8%, rgba(49, 230, 173, 0.18), transparent 29%),
|
|
58
|
+
radial-gradient(circle at 88% 17%, rgba(128, 174, 252, 0.2), transparent 31%),
|
|
59
|
+
linear-gradient(135deg, #080d19 0%, var(--upb-bg) 55%, #111827 100%);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.upb-shell[data-status='tight'] {
|
|
63
|
+
--upb-glow: var(--upb-hot);
|
|
64
|
+
--upb-accent: #f59e0b;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.upb-shell[data-status='over'] {
|
|
68
|
+
--upb-glow: var(--upb-danger);
|
|
69
|
+
--upb-accent: #fb7185;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.upb-board,
|
|
73
|
+
.upb-console {
|
|
74
|
+
backdrop-filter: blur(20px);
|
|
75
|
+
background: var(--upb-panel);
|
|
76
|
+
border: 1px solid var(--upb-line);
|
|
77
|
+
border-radius: 8px;
|
|
78
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
|
|
79
|
+
position: relative;
|
|
80
|
+
z-index: 1;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.upb-board {
|
|
84
|
+
display: grid;
|
|
85
|
+
gap: 0.7rem;
|
|
86
|
+
padding: 0.75rem;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.upb-board-top {
|
|
90
|
+
align-items: center;
|
|
91
|
+
display: grid;
|
|
92
|
+
gap: 0.6rem;
|
|
93
|
+
grid-template-columns: 1fr;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.upb-eyebrow {
|
|
97
|
+
color: var(--upb-muted);
|
|
98
|
+
font-size: 0.78rem;
|
|
99
|
+
font-weight: 900;
|
|
100
|
+
text-transform: uppercase;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.upb-unit-switch {
|
|
104
|
+
background: color-mix(in srgb, var(--upb-panel-strong) 76%, transparent);
|
|
105
|
+
border: 1px solid var(--upb-line);
|
|
106
|
+
border-radius: 8px;
|
|
107
|
+
display: grid;
|
|
108
|
+
grid-template-columns: 1fr 1fr;
|
|
109
|
+
padding: 0.18rem;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.upb-unit-switch button {
|
|
113
|
+
background: transparent;
|
|
114
|
+
border: 0;
|
|
115
|
+
border-radius: 6px;
|
|
116
|
+
color: var(--upb-muted);
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
font: inherit;
|
|
119
|
+
font-size: 0.78rem;
|
|
120
|
+
font-weight: 900;
|
|
121
|
+
min-height: 2rem;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.upb-unit-switch button.is-active {
|
|
125
|
+
background: var(--upb-ink);
|
|
126
|
+
color: var(--upb-panel-strong);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.theme-dark .upb-unit-switch button.is-active {
|
|
130
|
+
background: var(--upb-glow);
|
|
131
|
+
color: #06110e;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.upb-hero {
|
|
135
|
+
align-items: center;
|
|
136
|
+
display: grid;
|
|
137
|
+
gap: 0.45rem;
|
|
138
|
+
grid-template-columns: 1fr;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.upb-socket {
|
|
142
|
+
background:
|
|
143
|
+
linear-gradient(145deg, color-mix(in srgb, var(--upb-panel-strong) 88%, transparent), color-mix(in srgb, var(--upb-panel-strong) 56%, transparent)),
|
|
144
|
+
radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--upb-glow) 18%, transparent), transparent 42%);
|
|
145
|
+
border: 1px solid var(--upb-line);
|
|
146
|
+
border-radius: 8px;
|
|
147
|
+
box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
|
|
148
|
+
display: grid;
|
|
149
|
+
gap: 0.22rem;
|
|
150
|
+
min-height: 5.7rem;
|
|
151
|
+
padding: 0.8rem;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.upb-socket span,
|
|
155
|
+
.upb-socket small,
|
|
156
|
+
.upb-field span,
|
|
157
|
+
.upb-metrics span,
|
|
158
|
+
.upb-gauge-copy span {
|
|
159
|
+
color: var(--upb-muted);
|
|
160
|
+
font-size: 0.72rem;
|
|
161
|
+
font-weight: 850;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.upb-socket strong {
|
|
165
|
+
font-size: clamp(1.8rem, 7vw, 3rem);
|
|
166
|
+
line-height: 0.95;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.upb-socket small {
|
|
170
|
+
color: var(--upb-accent);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.upb-cable-stage {
|
|
174
|
+
align-items: center;
|
|
175
|
+
display: grid;
|
|
176
|
+
min-height: 9.5rem;
|
|
177
|
+
overflow: hidden;
|
|
178
|
+
position: relative;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.upb-cable-stage::before {
|
|
182
|
+
animation: upb-pulse 2.5s ease-in-out infinite;
|
|
183
|
+
background: radial-gradient(circle, color-mix(in srgb, var(--upb-glow) 30%, transparent), transparent 64%);
|
|
184
|
+
content: '';
|
|
185
|
+
height: 10rem;
|
|
186
|
+
left: 50%;
|
|
187
|
+
position: absolute;
|
|
188
|
+
top: 50%;
|
|
189
|
+
transform: translate(-50%, -50%);
|
|
190
|
+
width: 18rem;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.upb-cable-art {
|
|
194
|
+
filter: drop-shadow(0 18px 24px rgba(15, 23, 42, 0.16));
|
|
195
|
+
height: 100%;
|
|
196
|
+
min-height: 9.5rem;
|
|
197
|
+
overflow: visible;
|
|
198
|
+
position: relative;
|
|
199
|
+
width: 100%;
|
|
200
|
+
z-index: 1;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.upb-cable-shadow,
|
|
204
|
+
.upb-cable-body,
|
|
205
|
+
.upb-cable-core,
|
|
206
|
+
.upb-cable-spark {
|
|
207
|
+
fill: none;
|
|
208
|
+
stroke-linecap: round;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.upb-cable-shadow {
|
|
212
|
+
opacity: 0.25;
|
|
213
|
+
stroke: #0f172a;
|
|
214
|
+
stroke-width: 38;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.upb-cable-body {
|
|
218
|
+
stroke: color-mix(in srgb, var(--upb-ink) 68%, #6b7d96);
|
|
219
|
+
stroke-width: 27;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.upb-cable-core {
|
|
223
|
+
filter: url("#upb-glow");
|
|
224
|
+
opacity: 0.72;
|
|
225
|
+
stroke: var(--upb-glow);
|
|
226
|
+
stroke-width: 8;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.upb-cable-spark {
|
|
230
|
+
animation: upb-energy 1.25s linear infinite;
|
|
231
|
+
filter: url("#upb-glow");
|
|
232
|
+
stroke: #fff;
|
|
233
|
+
stroke-dasharray: 34 310;
|
|
234
|
+
stroke-width: 5;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.upb-plug rect,
|
|
238
|
+
.upb-plug circle {
|
|
239
|
+
fill: var(--upb-panel-strong);
|
|
240
|
+
stroke: var(--upb-line);
|
|
241
|
+
stroke-width: 3;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.upb-plug line {
|
|
245
|
+
stroke: var(--upb-accent);
|
|
246
|
+
stroke-linecap: round;
|
|
247
|
+
stroke-width: 4;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.upb-flow-chip {
|
|
251
|
+
animation: upb-float 3s ease-in-out infinite;
|
|
252
|
+
background: var(--upb-ink);
|
|
253
|
+
border: 1px solid color-mix(in srgb, var(--upb-glow) 45%, transparent);
|
|
254
|
+
border-radius: 999px;
|
|
255
|
+
box-shadow: 0 0 28px color-mix(in srgb, var(--upb-glow) 44%, transparent);
|
|
256
|
+
color: var(--upb-panel-strong);
|
|
257
|
+
font-size: 0.78rem;
|
|
258
|
+
font-weight: 950;
|
|
259
|
+
left: 50%;
|
|
260
|
+
padding: 0.38rem 0.7rem;
|
|
261
|
+
position: absolute;
|
|
262
|
+
top: 48%;
|
|
263
|
+
transform: translate(-50%, -50%);
|
|
264
|
+
z-index: 2;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.theme-dark .upb-flow-chip {
|
|
268
|
+
color: #07110f;
|
|
269
|
+
background: var(--upb-glow);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.upb-flow-label {
|
|
273
|
+
bottom: 0.1rem;
|
|
274
|
+
color: var(--upb-muted);
|
|
275
|
+
font-size: 0.68rem;
|
|
276
|
+
font-weight: 900;
|
|
277
|
+
left: 50%;
|
|
278
|
+
position: absolute;
|
|
279
|
+
text-transform: uppercase;
|
|
280
|
+
transform: translateX(-50%);
|
|
281
|
+
z-index: 2;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.upb-status-row {
|
|
285
|
+
display: grid;
|
|
286
|
+
gap: 0.55rem;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.upb-status {
|
|
290
|
+
border: 1px solid color-mix(in srgb, var(--upb-glow) 38%, var(--upb-line));
|
|
291
|
+
border-radius: 8px;
|
|
292
|
+
padding: 0.8rem;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.upb-status[data-status='safe'] {
|
|
296
|
+
background: linear-gradient(135deg, rgba(49, 230, 173, 0.18), rgba(36, 119, 255, 0.08));
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.upb-status[data-status='tight'] {
|
|
300
|
+
background: linear-gradient(135deg, rgba(255, 190, 61, 0.2), rgba(36, 119, 255, 0.06));
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.upb-status[data-status='over'] {
|
|
304
|
+
background: linear-gradient(135deg, rgba(238, 75, 103, 0.2), rgba(255, 190, 61, 0.08));
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.upb-status span {
|
|
308
|
+
display: block;
|
|
309
|
+
font-size: clamp(1.35rem, 5vw, 2.25rem);
|
|
310
|
+
font-weight: 950;
|
|
311
|
+
line-height: 1;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.upb-status p {
|
|
315
|
+
color: var(--upb-muted);
|
|
316
|
+
margin: 0.35rem 0 0;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.upb-gauge {
|
|
320
|
+
background: color-mix(in srgb, var(--upb-panel-strong) 78%, transparent);
|
|
321
|
+
border: 1px solid var(--upb-line);
|
|
322
|
+
border-radius: 8px;
|
|
323
|
+
display: grid;
|
|
324
|
+
gap: 0.45rem;
|
|
325
|
+
padding: 0.75rem;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.upb-gauge-copy {
|
|
329
|
+
align-items: baseline;
|
|
330
|
+
display: flex;
|
|
331
|
+
justify-content: space-between;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.upb-gauge-copy strong {
|
|
335
|
+
font-size: 1.55rem;
|
|
336
|
+
line-height: 1;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.upb-gauge-track {
|
|
340
|
+
background: color-mix(in srgb, var(--upb-ink) 12%, transparent);
|
|
341
|
+
border-radius: 999px;
|
|
342
|
+
height: 0.7rem;
|
|
343
|
+
overflow: hidden;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.upb-gauge-track i {
|
|
347
|
+
background: linear-gradient(90deg, var(--upb-glow), var(--upb-accent));
|
|
348
|
+
border-radius: inherit;
|
|
349
|
+
box-shadow: 0 0 18px color-mix(in srgb, var(--upb-glow) 48%, transparent);
|
|
350
|
+
display: block;
|
|
351
|
+
height: 100%;
|
|
352
|
+
max-width: 100%;
|
|
353
|
+
transition: width 220ms ease;
|
|
354
|
+
width: 0;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.upb-console {
|
|
358
|
+
align-content: start;
|
|
359
|
+
display: grid;
|
|
360
|
+
gap: 0.55rem;
|
|
361
|
+
padding: 0.65rem;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.upb-field,
|
|
365
|
+
.upb-field-pair {
|
|
366
|
+
min-width: 0;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.upb-field {
|
|
370
|
+
display: grid;
|
|
371
|
+
gap: 0.28rem;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.upb-field-pair {
|
|
375
|
+
display: grid;
|
|
376
|
+
gap: 0.55rem;
|
|
377
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.upb-field input,
|
|
381
|
+
.upb-field select {
|
|
382
|
+
background: color-mix(in srgb, var(--upb-panel-strong) 82%, transparent);
|
|
383
|
+
border: 1px solid var(--upb-line);
|
|
384
|
+
border-radius: 8px;
|
|
385
|
+
color: var(--upb-ink);
|
|
386
|
+
font: inherit;
|
|
387
|
+
font-weight: 800;
|
|
388
|
+
min-height: 2.35rem;
|
|
389
|
+
padding: 0 0.68rem;
|
|
390
|
+
width: 100%;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.upb-field input:focus,
|
|
394
|
+
.upb-field select:focus {
|
|
395
|
+
border-color: var(--upb-accent);
|
|
396
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--upb-accent) 20%, transparent);
|
|
397
|
+
outline: none;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.upb-metrics {
|
|
401
|
+
display: grid;
|
|
402
|
+
gap: 0.45rem;
|
|
403
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.upb-metrics div {
|
|
407
|
+
background: color-mix(in srgb, var(--upb-panel-strong) 78%, transparent);
|
|
408
|
+
border: 1px solid var(--upb-line);
|
|
409
|
+
border-radius: 8px;
|
|
410
|
+
display: grid;
|
|
411
|
+
gap: 0.2rem;
|
|
412
|
+
min-width: 0;
|
|
413
|
+
padding: 0.62rem;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.upb-metrics strong {
|
|
417
|
+
font-size: 1.18rem;
|
|
418
|
+
line-height: 1;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
@keyframes upb-energy {
|
|
422
|
+
to {
|
|
423
|
+
stroke-dashoffset: -344;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
@keyframes upb-float {
|
|
428
|
+
50% {
|
|
429
|
+
transform: translate(-50%, calc(-50% - 7px));
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
@keyframes upb-pulse {
|
|
434
|
+
50% {
|
|
435
|
+
opacity: 0.42;
|
|
436
|
+
transform: translate(-50%, -50%) scale(1.13);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
@keyframes upb-grid-drift {
|
|
441
|
+
to {
|
|
442
|
+
background-position: 26px 26px;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
@media (min-width: 820px) {
|
|
447
|
+
.upb-shell {
|
|
448
|
+
grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.75fr);
|
|
449
|
+
padding: 0.9rem;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.upb-board {
|
|
453
|
+
min-height: 27rem;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.upb-board-top {
|
|
457
|
+
grid-template-columns: 1fr 15rem;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.upb-hero {
|
|
461
|
+
grid-template-columns: minmax(9rem, 0.72fr) minmax(17rem, 1.2fr) minmax(9rem, 0.72fr);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.upb-cable-stage {
|
|
465
|
+
min-height: 14.5rem;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.upb-cable-art {
|
|
469
|
+
min-height: 14.5rem;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.upb-status-row {
|
|
473
|
+
grid-template-columns: 1fr minmax(12rem, 0.45fr);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
@media (prefers-reduced-motion: reduce) {
|
|
478
|
+
.upb-shell::before,
|
|
479
|
+
.upb-cable-spark,
|
|
480
|
+
.upb-flow-chip,
|
|
481
|
+
.upb-cable-stage::before {
|
|
482
|
+
animation: none;
|
|
483
|
+
}
|
|
484
|
+
}
|
package/src/tools.ts
CHANGED
|
@@ -17,5 +17,7 @@ import { STEREO_AUDIO_TEST_TOOL } from './tool/stereoAudioTest/index';
|
|
|
17
17
|
import { WEB_BLUETOOTH_BLE_SCANNER_TOOL } from './tool/webBluetoothBleScanner/index';
|
|
18
18
|
import { KEYBOARD_CHATTER_TEST_TOOL } from './tool/keyboardChatterTest/index';
|
|
19
19
|
import { WEB_USB_SERIAL_MONITOR_TOOL } from './tool/webUsbSerialMonitor/index';
|
|
20
|
+
import { USB_POWER_BUDGET_CALCULATOR_TOOL } from './tool/usbPowerBudgetCalculator/index';
|
|
21
|
+
import { MOBILE_SENSOR_TEST_TOOL } from './tool/mobileSensorTest/index';
|
|
20
22
|
|
|
21
|
-
export const ALL_TOOLS: ToolDefinition[] = [PIXELES_PANTALLA_TOOL, TEST_TECLADO_TOOL, KEYBOARD_CHATTER_TEST_TOOL, TEST_MANDO_TOOL, PROBADOR_VIBRACION_MANDO_TOOL, TEST_RATON_TOOL, MOUSE_DOUBLE_CLICK_TEST_TOOL, MOUSE_SCROLL_TEST_TOOL, ESTIMADOR_SALUD_BATERIA_TOOL, TONE_GENERATOR_TOOL, REFRESH_RATE_DETECTOR_TOOL, MONITOR_GHOSTING_TEST_TOOL, SPECTRUM_CANVAS_TOOL, UPS_RUNTIME_CALCULATOR_TOOL, STEREO_AUDIO_TEST_TOOL, WEB_BLUETOOTH_BLE_SCANNER_TOOL, WEB_USB_SERIAL_MONITOR_TOOL];
|
|
23
|
+
export const ALL_TOOLS: ToolDefinition[] = [PIXELES_PANTALLA_TOOL, TEST_TECLADO_TOOL, KEYBOARD_CHATTER_TEST_TOOL, TEST_MANDO_TOOL, PROBADOR_VIBRACION_MANDO_TOOL, TEST_RATON_TOOL, MOUSE_DOUBLE_CLICK_TEST_TOOL, MOUSE_SCROLL_TEST_TOOL, ESTIMADOR_SALUD_BATERIA_TOOL, TONE_GENERATOR_TOOL, REFRESH_RATE_DETECTOR_TOOL, MONITOR_GHOSTING_TEST_TOOL, SPECTRUM_CANVAS_TOOL, UPS_RUNTIME_CALCULATOR_TOOL, USB_POWER_BUDGET_CALCULATOR_TOOL, MOBILE_SENSOR_TEST_TOOL, STEREO_AUDIO_TEST_TOOL, WEB_BLUETOOTH_BLE_SCANNER_TOOL, WEB_USB_SERIAL_MONITOR_TOOL];
|