dsh-workbench-danmaku 0.4.2 → 0.4.9
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/CHANGELOG.md +34 -0
- package/lib/backend/backup-core.js +521 -0
- package/lib/backend/lww.js +51 -0
- package/lib/backend/schema.js +287 -0
- package/lib/backend/tag-source.js +149 -0
- package/lib/client.js +217 -191
- package/lib/db/db.js +58 -62
- package/lib/index.js +7 -17
- package/package.json +5 -4
- package/lib/actions/schema.js +0 -34
package/lib/client.js
CHANGED
|
@@ -99,15 +99,15 @@ var require_icons = __commonJS({
|
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
|
|
102
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
102
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs
|
|
103
103
|
var toKebabCase;
|
|
104
104
|
var init_toKebabCase = __esm({
|
|
105
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
105
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs"() {
|
|
106
106
|
toKebabCase = (string) => string?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
|
|
110
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
110
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs
|
|
111
111
|
function toLucideIconData(iconName, iconNode, aliases = []) {
|
|
112
112
|
if (iconNode == null) {
|
|
113
113
|
throw new Error("[lucide]: iconNode is required when icon name is used");
|
|
@@ -120,15 +120,15 @@ function toLucideIconData(iconName, iconNode, aliases = []) {
|
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
122
|
var init_toLucideIconData = __esm({
|
|
123
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
123
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs"() {
|
|
124
124
|
init_toKebabCase();
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
127
|
|
|
128
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
128
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs
|
|
129
129
|
var toCamelCase;
|
|
130
130
|
var init_toCamelCase = __esm({
|
|
131
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
131
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs"() {
|
|
132
132
|
toCamelCase = (string) => {
|
|
133
133
|
let out = "";
|
|
134
134
|
let upperNext = false;
|
|
@@ -149,10 +149,10 @@ var init_toCamelCase = __esm({
|
|
|
149
149
|
}
|
|
150
150
|
});
|
|
151
151
|
|
|
152
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
152
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.mjs
|
|
153
153
|
var toPascalCase;
|
|
154
154
|
var init_toPascalCase = __esm({
|
|
155
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
155
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.mjs"() {
|
|
156
156
|
init_toCamelCase();
|
|
157
157
|
toPascalCase = (string) => {
|
|
158
158
|
const camelCase = toCamelCase(string);
|
|
@@ -161,20 +161,20 @@ var init_toPascalCase = __esm({
|
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
163
|
|
|
164
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
164
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
|
|
165
165
|
var mergeClasses;
|
|
166
166
|
var init_mergeClasses = __esm({
|
|
167
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
167
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs"() {
|
|
168
168
|
mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
169
169
|
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
170
170
|
}).join(" ").trim();
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
173
|
|
|
174
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
174
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/build/defaultAttributes.mjs
|
|
175
175
|
var defaultAttributes;
|
|
176
176
|
var init_defaultAttributes = __esm({
|
|
177
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
177
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/build/defaultAttributes.mjs"() {
|
|
178
178
|
defaultAttributes = {
|
|
179
179
|
xmlns: "http://www.w3.org/2000/svg",
|
|
180
180
|
width: 24,
|
|
@@ -189,7 +189,7 @@ var init_defaultAttributes = __esm({
|
|
|
189
189
|
}
|
|
190
190
|
});
|
|
191
191
|
|
|
192
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
192
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs
|
|
193
193
|
function isDefined(value) {
|
|
194
194
|
return value !== null && value !== void 0;
|
|
195
195
|
}
|
|
@@ -242,13 +242,13 @@ function buildLucideIconNode(icon, params = {}) {
|
|
|
242
242
|
];
|
|
243
243
|
}
|
|
244
244
|
var init_buildLucideIconNode = __esm({
|
|
245
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
245
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs"() {
|
|
246
246
|
init_defaultAttributes();
|
|
247
247
|
init_mergeClasses();
|
|
248
248
|
}
|
|
249
249
|
});
|
|
250
250
|
|
|
251
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
251
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs
|
|
252
252
|
function buildLucideIconForReact(icon, params = {}) {
|
|
253
253
|
return buildLucideIconNode(icon, {
|
|
254
254
|
...params,
|
|
@@ -263,15 +263,15 @@ function buildLucideIconForReact(icon, params = {}) {
|
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
265
|
var init_buildLucideIconForReact = __esm({
|
|
266
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
266
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs"() {
|
|
267
267
|
init_buildLucideIconNode();
|
|
268
268
|
}
|
|
269
269
|
});
|
|
270
270
|
|
|
271
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
271
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
|
|
272
272
|
var hasA11yProp;
|
|
273
273
|
var init_hasA11yProp = __esm({
|
|
274
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
274
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs"() {
|
|
275
275
|
hasA11yProp = (props) => {
|
|
276
276
|
for (const prop in props) {
|
|
277
277
|
if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
|
|
@@ -283,10 +283,10 @@ var init_hasA11yProp = __esm({
|
|
|
283
283
|
}
|
|
284
284
|
});
|
|
285
285
|
|
|
286
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
286
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/context.mjs
|
|
287
287
|
var import_react, LucideContext, useLucideContext;
|
|
288
288
|
var init_context = __esm({
|
|
289
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
289
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/context.mjs"() {
|
|
290
290
|
"use strict";
|
|
291
291
|
"use client";
|
|
292
292
|
import_react = require("react");
|
|
@@ -295,10 +295,10 @@ var init_context = __esm({
|
|
|
295
295
|
}
|
|
296
296
|
});
|
|
297
297
|
|
|
298
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
298
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.mjs
|
|
299
299
|
var import_react2, Icon;
|
|
300
300
|
var init_Icon = __esm({
|
|
301
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
301
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.mjs"() {
|
|
302
302
|
"use strict";
|
|
303
303
|
"use client";
|
|
304
304
|
import_react2 = require("react");
|
|
@@ -361,7 +361,7 @@ var init_Icon = __esm({
|
|
|
361
361
|
}
|
|
362
362
|
});
|
|
363
363
|
|
|
364
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
364
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.mjs
|
|
365
365
|
function createLucideIcon(iconDataOrName, iconNode = [], aliases = []) {
|
|
366
366
|
const iconData = typeof iconDataOrName === "string" ? toLucideIconData(iconDataOrName, iconNode, aliases) : iconDataOrName;
|
|
367
367
|
const Component = (0, import_react3.forwardRef)(
|
|
@@ -379,7 +379,7 @@ function createLucideIcon(iconDataOrName, iconNode = [], aliases = []) {
|
|
|
379
379
|
}
|
|
380
380
|
var import_react3;
|
|
381
381
|
var init_createLucideIcon = __esm({
|
|
382
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
382
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.mjs"() {
|
|
383
383
|
import_react3 = require("react");
|
|
384
384
|
init_toLucideIconData();
|
|
385
385
|
init_toPascalCase();
|
|
@@ -387,7 +387,7 @@ var init_createLucideIcon = __esm({
|
|
|
387
387
|
}
|
|
388
388
|
});
|
|
389
389
|
|
|
390
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
390
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/arrow-down.mjs
|
|
391
391
|
var arrow_down_exports = {};
|
|
392
392
|
__export(arrow_down_exports, {
|
|
393
393
|
__iconData: () => __iconData,
|
|
@@ -395,7 +395,7 @@ __export(arrow_down_exports, {
|
|
|
395
395
|
});
|
|
396
396
|
var __iconData, ArrowDown;
|
|
397
397
|
var init_arrow_down = __esm({
|
|
398
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
398
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/arrow-down.mjs"() {
|
|
399
399
|
init_createLucideIcon();
|
|
400
400
|
__iconData = {
|
|
401
401
|
name: "arrow-down",
|
|
@@ -410,7 +410,7 @@ var init_arrow_down = __esm({
|
|
|
410
410
|
}
|
|
411
411
|
});
|
|
412
412
|
|
|
413
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
413
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/arrow-up.mjs
|
|
414
414
|
var arrow_up_exports = {};
|
|
415
415
|
__export(arrow_up_exports, {
|
|
416
416
|
__iconData: () => __iconData2,
|
|
@@ -418,7 +418,7 @@ __export(arrow_up_exports, {
|
|
|
418
418
|
});
|
|
419
419
|
var __iconData2, ArrowUp;
|
|
420
420
|
var init_arrow_up = __esm({
|
|
421
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
421
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/arrow-up.mjs"() {
|
|
422
422
|
init_createLucideIcon();
|
|
423
423
|
__iconData2 = {
|
|
424
424
|
name: "arrow-up",
|
|
@@ -433,7 +433,7 @@ var init_arrow_up = __esm({
|
|
|
433
433
|
}
|
|
434
434
|
});
|
|
435
435
|
|
|
436
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
436
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/check.mjs
|
|
437
437
|
var check_exports = {};
|
|
438
438
|
__export(check_exports, {
|
|
439
439
|
__iconData: () => __iconData3,
|
|
@@ -441,7 +441,7 @@ __export(check_exports, {
|
|
|
441
441
|
});
|
|
442
442
|
var __iconData3, Check;
|
|
443
443
|
var init_check = __esm({
|
|
444
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
444
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/check.mjs"() {
|
|
445
445
|
init_createLucideIcon();
|
|
446
446
|
__iconData3 = {
|
|
447
447
|
name: "check",
|
|
@@ -453,7 +453,7 @@ var init_check = __esm({
|
|
|
453
453
|
}
|
|
454
454
|
});
|
|
455
455
|
|
|
456
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
456
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/database.mjs
|
|
457
457
|
var database_exports = {};
|
|
458
458
|
__export(database_exports, {
|
|
459
459
|
__iconData: () => __iconData4,
|
|
@@ -461,7 +461,7 @@ __export(database_exports, {
|
|
|
461
461
|
});
|
|
462
462
|
var __iconData4, Database;
|
|
463
463
|
var init_database = __esm({
|
|
464
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
464
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/database.mjs"() {
|
|
465
465
|
init_createLucideIcon();
|
|
466
466
|
__iconData4 = {
|
|
467
467
|
name: "database",
|
|
@@ -477,7 +477,7 @@ var init_database = __esm({
|
|
|
477
477
|
}
|
|
478
478
|
});
|
|
479
479
|
|
|
480
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
480
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/eye.mjs
|
|
481
481
|
var eye_exports = {};
|
|
482
482
|
__export(eye_exports, {
|
|
483
483
|
__iconData: () => __iconData5,
|
|
@@ -485,7 +485,7 @@ __export(eye_exports, {
|
|
|
485
485
|
});
|
|
486
486
|
var __iconData5, Eye;
|
|
487
487
|
var init_eye = __esm({
|
|
488
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
488
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/eye.mjs"() {
|
|
489
489
|
init_createLucideIcon();
|
|
490
490
|
__iconData5 = {
|
|
491
491
|
name: "eye",
|
|
@@ -506,7 +506,7 @@ var init_eye = __esm({
|
|
|
506
506
|
}
|
|
507
507
|
});
|
|
508
508
|
|
|
509
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
509
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/list.mjs
|
|
510
510
|
var list_exports = {};
|
|
511
511
|
__export(list_exports, {
|
|
512
512
|
__iconData: () => __iconData6,
|
|
@@ -514,7 +514,7 @@ __export(list_exports, {
|
|
|
514
514
|
});
|
|
515
515
|
var __iconData6, List;
|
|
516
516
|
var init_list = __esm({
|
|
517
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
517
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/list.mjs"() {
|
|
518
518
|
init_createLucideIcon();
|
|
519
519
|
__iconData6 = {
|
|
520
520
|
name: "list",
|
|
@@ -533,7 +533,7 @@ var init_list = __esm({
|
|
|
533
533
|
}
|
|
534
534
|
});
|
|
535
535
|
|
|
536
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
536
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/megaphone.mjs
|
|
537
537
|
var megaphone_exports = {};
|
|
538
538
|
__export(megaphone_exports, {
|
|
539
539
|
__iconData: () => __iconData7,
|
|
@@ -541,7 +541,7 @@ __export(megaphone_exports, {
|
|
|
541
541
|
});
|
|
542
542
|
var __iconData7, Megaphone;
|
|
543
543
|
var init_megaphone = __esm({
|
|
544
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
544
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/megaphone.mjs"() {
|
|
545
545
|
init_createLucideIcon();
|
|
546
546
|
__iconData7 = {
|
|
547
547
|
name: "megaphone",
|
|
@@ -563,7 +563,7 @@ var init_megaphone = __esm({
|
|
|
563
563
|
}
|
|
564
564
|
});
|
|
565
565
|
|
|
566
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
566
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/monitor.mjs
|
|
567
567
|
var monitor_exports = {};
|
|
568
568
|
__export(monitor_exports, {
|
|
569
569
|
__iconData: () => __iconData8,
|
|
@@ -571,7 +571,7 @@ __export(monitor_exports, {
|
|
|
571
571
|
});
|
|
572
572
|
var __iconData8, Monitor;
|
|
573
573
|
var init_monitor = __esm({
|
|
574
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
574
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/monitor.mjs"() {
|
|
575
575
|
init_createLucideIcon();
|
|
576
576
|
__iconData8 = {
|
|
577
577
|
name: "monitor",
|
|
@@ -587,7 +587,7 @@ var init_monitor = __esm({
|
|
|
587
587
|
}
|
|
588
588
|
});
|
|
589
589
|
|
|
590
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
590
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/pencil.mjs
|
|
591
591
|
var pencil_exports = {};
|
|
592
592
|
__export(pencil_exports, {
|
|
593
593
|
__iconData: () => __iconData9,
|
|
@@ -595,7 +595,7 @@ __export(pencil_exports, {
|
|
|
595
595
|
});
|
|
596
596
|
var __iconData9, Pencil;
|
|
597
597
|
var init_pencil = __esm({
|
|
598
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
598
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/pencil.mjs"() {
|
|
599
599
|
init_createLucideIcon();
|
|
600
600
|
__iconData9 = {
|
|
601
601
|
name: "pencil",
|
|
@@ -616,7 +616,7 @@ var init_pencil = __esm({
|
|
|
616
616
|
}
|
|
617
617
|
});
|
|
618
618
|
|
|
619
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
619
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/play.mjs
|
|
620
620
|
var play_exports = {};
|
|
621
621
|
__export(play_exports, {
|
|
622
622
|
__iconData: () => __iconData10,
|
|
@@ -624,7 +624,7 @@ __export(play_exports, {
|
|
|
624
624
|
});
|
|
625
625
|
var __iconData10, Play;
|
|
626
626
|
var init_play = __esm({
|
|
627
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
627
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/play.mjs"() {
|
|
628
628
|
init_createLucideIcon();
|
|
629
629
|
__iconData10 = {
|
|
630
630
|
name: "play",
|
|
@@ -644,7 +644,7 @@ var init_play = __esm({
|
|
|
644
644
|
}
|
|
645
645
|
});
|
|
646
646
|
|
|
647
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
647
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/plus.mjs
|
|
648
648
|
var plus_exports = {};
|
|
649
649
|
__export(plus_exports, {
|
|
650
650
|
__iconData: () => __iconData11,
|
|
@@ -652,7 +652,7 @@ __export(plus_exports, {
|
|
|
652
652
|
});
|
|
653
653
|
var __iconData11, Plus;
|
|
654
654
|
var init_plus = __esm({
|
|
655
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
655
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/plus.mjs"() {
|
|
656
656
|
init_createLucideIcon();
|
|
657
657
|
__iconData11 = {
|
|
658
658
|
name: "plus",
|
|
@@ -667,7 +667,7 @@ var init_plus = __esm({
|
|
|
667
667
|
}
|
|
668
668
|
});
|
|
669
669
|
|
|
670
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
670
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/power.mjs
|
|
671
671
|
var power_exports = {};
|
|
672
672
|
__export(power_exports, {
|
|
673
673
|
__iconData: () => __iconData12,
|
|
@@ -675,7 +675,7 @@ __export(power_exports, {
|
|
|
675
675
|
});
|
|
676
676
|
var __iconData12, Power;
|
|
677
677
|
var init_power = __esm({
|
|
678
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
678
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/power.mjs"() {
|
|
679
679
|
init_createLucideIcon();
|
|
680
680
|
__iconData12 = {
|
|
681
681
|
name: "power",
|
|
@@ -690,7 +690,7 @@ var init_power = __esm({
|
|
|
690
690
|
}
|
|
691
691
|
});
|
|
692
692
|
|
|
693
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
693
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/refresh-cw.mjs
|
|
694
694
|
var refresh_cw_exports = {};
|
|
695
695
|
__export(refresh_cw_exports, {
|
|
696
696
|
__iconData: () => __iconData13,
|
|
@@ -698,7 +698,7 @@ __export(refresh_cw_exports, {
|
|
|
698
698
|
});
|
|
699
699
|
var __iconData13, RefreshCw;
|
|
700
700
|
var init_refresh_cw = __esm({
|
|
701
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
701
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/refresh-cw.mjs"() {
|
|
702
702
|
init_createLucideIcon();
|
|
703
703
|
__iconData13 = {
|
|
704
704
|
name: "refresh-cw",
|
|
@@ -715,7 +715,7 @@ var init_refresh_cw = __esm({
|
|
|
715
715
|
}
|
|
716
716
|
});
|
|
717
717
|
|
|
718
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
718
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/settings.mjs
|
|
719
719
|
var settings_exports = {};
|
|
720
720
|
__export(settings_exports, {
|
|
721
721
|
__iconData: () => __iconData14,
|
|
@@ -723,7 +723,7 @@ __export(settings_exports, {
|
|
|
723
723
|
});
|
|
724
724
|
var __iconData14, Settings;
|
|
725
725
|
var init_settings = __esm({
|
|
726
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
726
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/settings.mjs"() {
|
|
727
727
|
init_createLucideIcon();
|
|
728
728
|
__iconData14 = {
|
|
729
729
|
name: "settings",
|
|
@@ -744,10 +744,10 @@ var init_settings = __esm({
|
|
|
744
744
|
}
|
|
745
745
|
});
|
|
746
746
|
|
|
747
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
747
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/trash.mjs
|
|
748
748
|
var __iconData15, Trash;
|
|
749
749
|
var init_trash = __esm({
|
|
750
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
750
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/trash.mjs"() {
|
|
751
751
|
init_createLucideIcon();
|
|
752
752
|
__iconData15 = {
|
|
753
753
|
name: "trash",
|
|
@@ -766,18 +766,18 @@ var init_trash = __esm({
|
|
|
766
766
|
}
|
|
767
767
|
});
|
|
768
768
|
|
|
769
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
769
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/trash-2.mjs
|
|
770
770
|
var trash_2_exports = {};
|
|
771
771
|
__export(trash_2_exports, {
|
|
772
772
|
default: () => Trash
|
|
773
773
|
});
|
|
774
774
|
var init_trash_2 = __esm({
|
|
775
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
775
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/trash-2.mjs"() {
|
|
776
776
|
init_trash();
|
|
777
777
|
}
|
|
778
778
|
});
|
|
779
779
|
|
|
780
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
780
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/x.mjs
|
|
781
781
|
var x_exports = {};
|
|
782
782
|
__export(x_exports, {
|
|
783
783
|
__iconData: () => __iconData16,
|
|
@@ -785,7 +785,7 @@ __export(x_exports, {
|
|
|
785
785
|
});
|
|
786
786
|
var __iconData16, X;
|
|
787
787
|
var init_x = __esm({
|
|
788
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@
|
|
788
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/x.mjs"() {
|
|
789
789
|
init_createLucideIcon();
|
|
790
790
|
__iconData16 = {
|
|
791
791
|
name: "x",
|
|
@@ -834,38 +834,40 @@ var require_client_base_styles = __commonJS({
|
|
|
834
834
|
var SECRET_FIELD = [
|
|
835
835
|
".wb-secret-field{position:relative;display:flex;align-items:center;min-width:0}",
|
|
836
836
|
".wb-secret-field input{flex:1 1 auto;min-width:0;padding-right:34px}",
|
|
837
|
-
|
|
838
|
-
".wb-
|
|
839
|
-
".wb-eye:
|
|
837
|
+
// 多行(textarea):眼睛仍然贴右侧居中,右侧留出 34px 让每一行都不压到按钮;高度可纵向拖。
|
|
838
|
+
".wb-secret-field textarea{flex:1 1 auto;min-width:0;padding-right:34px;resize:vertical;min-height:76px;line-height:1.5;white-space:pre-wrap}",
|
|
839
|
+
".wb-eye{position:absolute;right:4px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:6px;padding:4px;color:var(--wb-muted);cursor:pointer}",
|
|
840
|
+
".wb-eye:hover:not(:disabled){color:var(--wb-accent);background:color-mix(in srgb, var(--wb-accent) 12%, transparent)}",
|
|
841
|
+
".wb-eye:focus-visible{outline:2px solid var(--wb-accent);outline-offset:1px}",
|
|
840
842
|
".wb-eye:disabled{opacity:.45;cursor:not-allowed}"
|
|
841
843
|
];
|
|
842
844
|
module2.exports = function baseStyles(prefix) {
|
|
843
845
|
var p = String(prefix || "wb");
|
|
844
846
|
var s = "." + p;
|
|
845
|
-
return SECRET_FIELD.concat([
|
|
847
|
+
return SECRET_FIELD.concat(STATE_STYLES(p), [
|
|
846
848
|
s + "-wrap{display:flex;flex-direction:column;gap:12px;padding:16px;overflow:auto;height:100%;box-sizing:border-box}",
|
|
847
849
|
s + "-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}",
|
|
848
850
|
s + "-title{font-size:16px;font-weight:650;margin:0}",
|
|
849
|
-
s + "-sub{font-size:12px;color:var(--wb-muted
|
|
851
|
+
s + "-sub{font-size:12px;color:var(--wb-muted);margin:2px 0 0}",
|
|
850
852
|
s + "-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}",
|
|
851
|
-
s + "-card{border:1px solid var(--wb-border
|
|
853
|
+
s + "-card{border:1px solid var(--wb-border);border-radius:10px;background:var(--wb-surface);padding:12px}",
|
|
852
854
|
s + "-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}",
|
|
853
|
-
s + "-kpi{font-size:22px;font-weight:700;line-height:1.2}" + s + "-kpi-label{font-size:12px;color:var(--wb-muted
|
|
854
|
-
s + "-table{width:100%;border-collapse:collapse;font-size:12px}" + s + "-table th," + s + "-table td{padding:7px 8px;border-bottom:1px solid var(--wb-border
|
|
855
|
-
s + "-table th{font-weight:600;color:var(--wb-muted
|
|
856
|
-
s + "-btn{border:1px solid var(--wb-border
|
|
857
|
-
s + "-btn:hover:not(:disabled){border-color:var(--wb-accent
|
|
858
|
-
s + "-btn.primary{background:var(--wb-accent
|
|
859
|
-
s + "-btn.danger{color:var(--wb-danger
|
|
855
|
+
s + "-kpi{font-size:22px;font-weight:700;line-height:1.2}" + s + "-kpi-label{font-size:12px;color:var(--wb-muted)}",
|
|
856
|
+
s + "-table{width:100%;border-collapse:collapse;font-size:12px}" + s + "-table th," + s + "-table td{padding:7px 8px;border-bottom:1px solid var(--wb-border);text-align:left;vertical-align:top}",
|
|
857
|
+
s + "-table th{font-weight:600;color:var(--wb-muted);white-space:nowrap}",
|
|
858
|
+
s + "-btn{border:1px solid var(--wb-border);background:var(--wb-surface);color:inherit;border-radius:7px;padding:5px 10px;font-size:12px;cursor:pointer}",
|
|
859
|
+
s + "-btn:hover:not(:disabled){border-color:var(--wb-accent)}" + s + "-btn:disabled{opacity:.5;cursor:default}",
|
|
860
|
+
s + "-btn.primary{background:var(--wb-accent);border-color:var(--wb-accent);color:var(--dsw-alias-label-primary-inverted)}",
|
|
861
|
+
s + "-btn.danger{color:var(--wb-danger);border-color:color-mix(in oklab,var(--wb-danger) 35%,transparent)}",
|
|
860
862
|
s + "-field{display:flex;flex-direction:column;gap:4px;font-size:12px}" + s + "-label{font-weight:600}",
|
|
861
|
-
s + "-field input," + s + "-field select," + s + "-field textarea{border:1px solid var(--wb-border
|
|
862
|
-
s + "-hint{color:var(--wb-muted
|
|
863
|
-
s + "-notice.error{background:color-mix(in oklab,var(--wb-danger
|
|
864
|
-
s + "-empty{padding:18px;text-align:center;color:var(--wb-muted
|
|
863
|
+
s + "-field input," + s + "-field select," + s + "-field textarea{border:1px solid var(--wb-border);border-radius:7px;padding:6px 8px;font:inherit;background:var(--wb-surface);color:inherit;min-width:0}",
|
|
864
|
+
s + "-hint{color:var(--wb-muted);font-size:11px}" + s + "-notice{padding:8px 10px;border-radius:8px;font-size:12px;background:color-mix(in oklab,var(--wb-accent) 9%,transparent);color:var(--dsw-alias-label-primary,inherit)}",
|
|
865
|
+
s + "-notice.error{background:color-mix(in oklab,var(--wb-danger) 10%,transparent);color:var(--wb-danger)}" + s + "-notice.ok{background:color-mix(in oklab,var(--wb-ok) 10%,transparent);color:var(--wb-ok)}",
|
|
866
|
+
s + "-empty{padding:18px;text-align:center;color:var(--wb-muted);font-size:12px;border:1px dashed var(--wb-border);border-radius:8px}",
|
|
865
867
|
s + "-pill{display:inline-block;padding:1px 7px;border-radius:999px;font-size:11px;background:color-mix(in oklab,currentColor 7%,transparent);color:inherit}",
|
|
866
|
-
s + "-pill.ok{background:color-mix(in oklab,var(--wb-ok
|
|
868
|
+
s + "-pill.ok{background:color-mix(in oklab,var(--wb-ok) 12%,transparent);color:var(--wb-ok)}" + s + "-pill.error{background:color-mix(in oklab,var(--wb-danger) 12%,transparent);color:var(--wb-danger)}" + s + "-pill.warn{background:color-mix(in oklab,var(--wb-warn) 14%,transparent);color:var(--wb-warn)}",
|
|
867
869
|
s + "-json{margin:0;padding:8px;background:color-mix(in oklab,currentColor 4%,transparent);border-radius:8px;font-size:11px;max-height:240px;overflow:auto}",
|
|
868
|
-
s + "-muted{color:var(--wb-muted
|
|
870
|
+
s + "-muted{color:var(--wb-muted)}" + s + "-link{color:var(--wb-accent);cursor:pointer;text-decoration:none}",
|
|
869
871
|
s + "-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}",
|
|
870
872
|
// 窄屏:页面容器不再自带左右内边距(宿主的 .wb-immersive-main 已经给过),
|
|
871
873
|
// 卡片与栅格收紧,把宽度尽量留给内容——窄屏下两侧留白比桌面更影响可读性。
|
|
@@ -873,6 +875,16 @@ var require_client_base_styles = __commonJS({
|
|
|
873
875
|
]);
|
|
874
876
|
};
|
|
875
877
|
module2.exports.secretFieldStyles = SECRET_FIELD;
|
|
878
|
+
function STATE_STYLES(p) {
|
|
879
|
+
var s = "." + p;
|
|
880
|
+
return [
|
|
881
|
+
s + "-table tbody tr{transition:background .14s ease}",
|
|
882
|
+
s + "-table tbody tr:hover{background:color-mix(in oklab,var(--wb-accent) 6%,transparent)}",
|
|
883
|
+
s + "-list-row:hover," + s + "-row-item:hover{background:color-mix(in oklab,var(--wb-accent) 7%,transparent)}",
|
|
884
|
+
s + "-list-row:focus-visible," + s + "-row-item:focus-visible," + s + "-item:focus-visible," + s + "-btn:focus-visible," + s + "-icon-btn:focus-visible," + s + "-tab:focus-visible{outline:2px solid var(--wb-accent);outline-offset:1px}",
|
|
885
|
+
s + "-input:focus-visible," + s + "-select:focus-visible," + s + "-textarea:focus-visible," + s + "-field input:focus-visible," + s + "-field select:focus-visible," + s + "-field textarea:focus-visible{outline:2px solid var(--wb-accent);outline-offset:1px;box-shadow:0 0 0 3px color-mix(in oklab,var(--wb-accent) 18%,transparent)}"
|
|
886
|
+
];
|
|
887
|
+
}
|
|
876
888
|
}
|
|
877
889
|
});
|
|
878
890
|
|
|
@@ -881,14 +893,14 @@ var require_switch = __commonJS({
|
|
|
881
893
|
"packages/addons/lib/switch.cjs"(exports2, module2) {
|
|
882
894
|
"use strict";
|
|
883
895
|
var SWITCH_STYLES = [
|
|
884
|
-
".wbctl-switch{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;min-height:24px;padding:2px;border:0;background:transparent;font:inherit;font-size:12px;color:var(--wb-muted
|
|
896
|
+
".wbctl-switch{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;min-height:24px;padding:2px;border:0;background:transparent;font:inherit;font-size:12px;color:var(--wb-muted);cursor:pointer;user-select:none;border-radius:999px}",
|
|
885
897
|
".wbctl-switch-track{position:relative;display:inline-flex;align-items:center;box-sizing:border-box;width:34px;height:20px;padding:2px;border-radius:999px;background:color-mix(in oklab,currentColor 22%,transparent);transition:background .16s ease;flex:none}",
|
|
886
|
-
".wbctl-switch-knob{display:block;width:16px;height:16px;border-radius:50%;background:var(--wb-card
|
|
887
|
-
".wbctl-switch[aria-checked=true]{color:var(--wb-accent
|
|
888
|
-
".wbctl-switch[aria-checked=true] .wbctl-switch-track{background:var(--wb-accent
|
|
898
|
+
".wbctl-switch-knob{display:block;width:16px;height:16px;border-radius:50%;background:var(--wb-card);box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .16s ease}",
|
|
899
|
+
".wbctl-switch[aria-checked=true]{color:var(--wb-accent)}",
|
|
900
|
+
".wbctl-switch[aria-checked=true] .wbctl-switch-track{background:var(--wb-accent)}",
|
|
889
901
|
".wbctl-switch[aria-checked=true] .wbctl-switch-knob{transform:translateX(14px)}",
|
|
890
|
-
".wbctl-switch:hover:not(:disabled) .wbctl-switch-track{outline:1px solid var(--wb-accent
|
|
891
|
-
".wbctl-switch:focus-visible{outline:2px solid var(--wb-accent
|
|
902
|
+
".wbctl-switch:hover:not(:disabled) .wbctl-switch-track{outline:1px solid var(--wb-accent)}",
|
|
903
|
+
".wbctl-switch:focus-visible{outline:2px solid var(--wb-accent);outline-offset:2px}",
|
|
892
904
|
".wbctl-switch:disabled{opacity:.45;cursor:not-allowed}",
|
|
893
905
|
".wbctl-switch-text{white-space:nowrap}",
|
|
894
906
|
"@media (prefers-reduced-motion:reduce){.wbctl-switch-track,.wbctl-switch-knob{transition:none}}"
|
|
@@ -931,7 +943,7 @@ var require_switch = __commonJS({
|
|
|
931
943
|
var require_number_field = __commonJS({
|
|
932
944
|
"packages/addons/lib/number-field.cjs"(exports2, module2) {
|
|
933
945
|
"use strict";
|
|
934
|
-
var
|
|
946
|
+
var React2 = require("react");
|
|
935
947
|
var NUM = /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)$/;
|
|
936
948
|
var TEXT = {
|
|
937
949
|
zh: {
|
|
@@ -1007,22 +1019,22 @@ var require_number_field = __commonJS({
|
|
|
1007
1019
|
return parts.join(en ? ", " : "\uFF0C");
|
|
1008
1020
|
}
|
|
1009
1021
|
function NumberField(props) {
|
|
1010
|
-
var h = props.h ||
|
|
1022
|
+
var h = props.h || React2.createElement;
|
|
1011
1023
|
var lang = props.lang;
|
|
1012
1024
|
var M = messages(lang);
|
|
1013
1025
|
var text = props.value === null || props.value === void 0 ? "" : String(props.value);
|
|
1014
|
-
var draftS =
|
|
1026
|
+
var draftS = React2.useState(text);
|
|
1015
1027
|
var draft = draftS[0];
|
|
1016
1028
|
var setDraft = draftS[1];
|
|
1017
|
-
var focusS =
|
|
1029
|
+
var focusS = React2.useState(false);
|
|
1018
1030
|
var focused = focusS[0];
|
|
1019
1031
|
var setFocused = focusS[1];
|
|
1020
|
-
var errS =
|
|
1032
|
+
var errS = React2.useState("");
|
|
1021
1033
|
var err = errS[0];
|
|
1022
1034
|
var setErr = errS[1];
|
|
1023
|
-
var lastRef =
|
|
1024
|
-
var skipBlurRef =
|
|
1025
|
-
|
|
1035
|
+
var lastRef = React2.useRef(text);
|
|
1036
|
+
var skipBlurRef = React2.useRef(false);
|
|
1037
|
+
React2.useEffect(
|
|
1026
1038
|
function() {
|
|
1027
1039
|
if (focused) return;
|
|
1028
1040
|
if (lastRef.current === text) return;
|
|
@@ -1106,13 +1118,13 @@ var require_number_field = __commonJS({
|
|
|
1106
1118
|
".wbctl-num-box{display:inline-flex;align-items:center;gap:6px;min-width:0}",
|
|
1107
1119
|
".wbctl-num-input{box-sizing:border-box;width:96px;min-width:0;padding:6px 9px;border:1px solid var(--wb-line,rgba(127,127,127,.35));border-radius:6px;background:var(--wb-surface,var(--wb-card,transparent));color:inherit;font:inherit;font-size:13px;font-variant-numeric:tabular-nums;transition:border-color .14s ease,outline-color .14s ease}",
|
|
1108
1120
|
".wbctl-num-input:hover:not(:disabled){border-color:var(--wb-border,var(--wb-line))}",
|
|
1109
|
-
".wbctl-num-input:focus{outline:2px solid color-mix(in oklab,var(--wb-accent
|
|
1110
|
-
".wbctl-num-input.is-invalid{border-color:var(--wb-danger
|
|
1111
|
-
".wbctl-num-input.is-invalid:focus{outline-color:color-mix(in oklab,var(--wb-danger
|
|
1121
|
+
".wbctl-num-input:focus-visible{outline:2px solid color-mix(in oklab,var(--wb-accent) 55%,transparent);outline-offset:1px;border-color:var(--wb-accent)}",
|
|
1122
|
+
".wbctl-num-input.is-invalid{border-color:var(--wb-danger)}",
|
|
1123
|
+
".wbctl-num-input.is-invalid:focus-visible{outline-color:color-mix(in oklab,var(--wb-danger) 55%,transparent)}",
|
|
1112
1124
|
".wbctl-num-input:disabled{opacity:.5;cursor:not-allowed}",
|
|
1113
1125
|
".wbctl-num-unit{color:var(--wb-muted,inherit);font-size:12px;white-space:nowrap}",
|
|
1114
1126
|
".wbctl-num-hint{color:var(--wb-muted,inherit);font-size:11px;line-height:1.4}",
|
|
1115
|
-
".wbctl-num-err{color:var(--wb-danger
|
|
1127
|
+
".wbctl-num-err{color:var(--wb-danger);font-size:11px;line-height:1.4}",
|
|
1116
1128
|
"@media (prefers-reduced-motion:reduce){.wbctl-num-input{transition:none}}"
|
|
1117
1129
|
];
|
|
1118
1130
|
module2.exports = {
|
|
@@ -1140,118 +1152,119 @@ var require_styles = __commonJS({
|
|
|
1140
1152
|
".wbdm-hero-main{min-width:0}",
|
|
1141
1153
|
/* 右侧指标卡 */
|
|
1142
1154
|
".wbdm-kpis{display:flex;gap:8px;flex-wrap:wrap}",
|
|
1143
|
-
".wbdm-kpi{min-width:82px;padding:8px 12px;border:1px solid var(--wb-border
|
|
1155
|
+
".wbdm-kpi{min-width:82px;padding:8px 12px;border:1px solid var(--wb-border);border-radius:10px;background:var(--wb-card)}",
|
|
1144
1156
|
".wbdm-kpi-v{font-size:19px;font-weight:700;line-height:1.15;letter-spacing:-.01em}",
|
|
1145
|
-
".wbdm-kpi-l{margin-top:3px;font-size:11px;color:var(--wb-muted
|
|
1157
|
+
".wbdm-kpi-l{margin-top:3px;font-size:11px;color:var(--wb-muted)}",
|
|
1146
1158
|
/* 卡片 */
|
|
1147
|
-
".wbdm-card{border:1px solid var(--wb-border
|
|
1159
|
+
".wbdm-card{border:1px solid var(--wb-border);border-radius:12px;background:var(--wb-card);padding:14px 16px}",
|
|
1148
1160
|
".wbdm-card-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}",
|
|
1149
1161
|
".wbdm-card-t{font-size:13px;font-weight:650}",
|
|
1150
|
-
".wbdm-card-s{font-size:11px;color:var(--wb-muted
|
|
1162
|
+
".wbdm-card-s{font-size:11px;color:var(--wb-muted)}",
|
|
1151
1163
|
/* 添加区 */
|
|
1152
|
-
".wbdm-textarea{display:block;width:100%;box-sizing:border-box;min-height:62px;padding:10px 12px;border:1px solid var(--wb-border
|
|
1153
|
-
".wbdm-textarea::placeholder{color:var(--wb-muted
|
|
1154
|
-
".wbdm-textarea:focus{outline:none;border-color:var(--wb-accent
|
|
1164
|
+
".wbdm-textarea{display:block;width:100%;box-sizing:border-box;min-height:62px;padding:10px 12px;border:1px solid var(--wb-border);border-radius:10px;background:var(--wb-surface);color:inherit;font:inherit;font-size:13px;line-height:1.55;resize:vertical}",
|
|
1165
|
+
".wbdm-textarea::placeholder{color:var(--wb-muted)}",
|
|
1166
|
+
".wbdm-textarea:focus-visible{outline:none;border-color:var(--wb-accent);box-shadow:0 0 0 3px color-mix(in oklab,var(--wb-accent) 20%,transparent)}",
|
|
1155
1167
|
".wbdm-tones{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-right:auto}",
|
|
1156
|
-
".wbdm-tone{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border:1px solid var(--wb-border
|
|
1157
|
-
".wbdm-tone:hover{border-color:var(--wb-accent
|
|
1158
|
-
".wbdm-tone.on{border-color:var(--wb-accent
|
|
1159
|
-
".wbdm-dot{width:6px;height:6px;border-radius:50%;background:var(--wb-muted
|
|
1160
|
-
".wbdm-dot.accent{background:var(--wb-accent
|
|
1161
|
-
".wbdm-dot.success{background:var(--wb-ok
|
|
1162
|
-
".wbdm-dot.warn{background:var(--wb-warn
|
|
1163
|
-
".wbdm-dot.danger{background:var(--wb-danger
|
|
1164
|
-
".wbdm-counter{font-size:11px;color:var(--wb-muted
|
|
1168
|
+
".wbdm-tone{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border:1px solid var(--wb-border);border-radius:999px;background:transparent;color:var(--wb-muted);font-size:11px;line-height:1.6;cursor:pointer}",
|
|
1169
|
+
".wbdm-tone:hover{border-color:var(--wb-accent);color:var(--wb-accent)}",
|
|
1170
|
+
".wbdm-tone.on{border-color:var(--wb-accent);color:var(--wb-accent);background:color-mix(in oklab,var(--wb-accent) 10%,transparent)}",
|
|
1171
|
+
".wbdm-dot{width:6px;height:6px;border-radius:50%;background:var(--wb-muted);flex:none}",
|
|
1172
|
+
".wbdm-dot.accent{background:var(--wb-accent)}",
|
|
1173
|
+
".wbdm-dot.success{background:var(--wb-ok)}",
|
|
1174
|
+
".wbdm-dot.warn{background:var(--wb-warn)}",
|
|
1175
|
+
".wbdm-dot.danger{background:var(--wb-danger)}",
|
|
1176
|
+
".wbdm-counter{font-size:11px;color:var(--wb-muted);font-variant-numeric:tabular-nums}",
|
|
1165
1177
|
/* 按钮 */
|
|
1166
|
-
".wbdm-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:5px 12px;border:1px solid var(--wb-border
|
|
1167
|
-
".wbdm-btn:hover{border-color:var(--wb-accent
|
|
1168
|
-
".wbdm-btn.primary{border-color:var(--wb-accent
|
|
1169
|
-
".wbdm-btn.primary:hover{opacity:.9;color
|
|
1178
|
+
".wbdm-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:5px 12px;border:1px solid var(--wb-border);border-radius:8px;background:var(--wb-card);color:inherit;font-size:12px;line-height:1.6;cursor:pointer}",
|
|
1179
|
+
".wbdm-btn:hover{border-color:var(--wb-accent);color:var(--wb-accent)}",
|
|
1180
|
+
".wbdm-btn.primary{border-color:var(--wb-accent);background:var(--wb-accent);color:var(--dsw-alias-label-primary-inverted)}",
|
|
1181
|
+
".wbdm-btn.primary:hover{opacity:.9;color:var(--dsw-alias-label-primary-inverted)}",
|
|
1170
1182
|
".wbdm-btn:disabled{opacity:.45;cursor:not-allowed}",
|
|
1171
|
-
".wbdm-btn.primary:disabled{background:var(--wb-border
|
|
1172
|
-
".wbdm-btn.ghost{border-color:transparent;background:transparent;color:var(--wb-muted
|
|
1183
|
+
".wbdm-btn.primary:disabled{background:var(--wb-border);border-color:var(--wb-border);color:var(--wb-muted)}",
|
|
1184
|
+
".wbdm-btn.ghost{border-color:transparent;background:transparent;color:var(--wb-muted)}",
|
|
1173
1185
|
/* 清单 */
|
|
1174
1186
|
".wbdm-list{display:flex;flex-direction:column}",
|
|
1175
|
-
".wbdm-item{display:flex;align-items:center;gap:10px;padding:10px 8px;border-top:1px solid var(--wb-line
|
|
1187
|
+
".wbdm-item{display:flex;align-items:center;gap:10px;padding:10px 8px;border-top:1px solid var(--wb-line);min-width:0}",
|
|
1176
1188
|
".wbdm-item:first-child{border-top:0}",
|
|
1177
|
-
".wbdm-item:hover{background:
|
|
1178
|
-
".wbdm-order{flex:none;width:18px;text-align:right;font-size:11px;color:var(--wb-muted
|
|
1189
|
+
".wbdm-item:hover{background:color-mix(in oklab,var(--wb-accent) 7%,transparent);border-radius:8px}",
|
|
1190
|
+
".wbdm-order{flex:none;width:18px;text-align:right;font-size:11px;color:var(--wb-muted);font-variant-numeric:tabular-nums}",
|
|
1179
1191
|
".wbdm-body{flex:1 1 auto;min-width:0;font-size:13px;line-height:1.45;overflow-wrap:anywhere}",
|
|
1180
|
-
".wbdm-item.off .wbdm-body{color:var(--wb-muted
|
|
1181
|
-
".wbdm-tag{display:inline-flex;align-items:center;gap:4px;flex:none;padding:1px 8px;border:1px solid var(--wb-border
|
|
1182
|
-
".wbdm-item-edit{flex:1 1 auto;min-width:0;padding:4px 8px;border:1px solid var(--wb-accent
|
|
1183
|
-
".wbdm-item-edit:focus{outline:none;box-shadow:0 0 0 3px
|
|
1192
|
+
".wbdm-item.off .wbdm-body{color:var(--wb-muted);text-decoration:line-through}",
|
|
1193
|
+
".wbdm-tag{display:inline-flex;align-items:center;gap:4px;flex:none;padding:1px 8px;border:1px solid var(--wb-border);border-radius:999px;font-size:11px;color:var(--wb-muted)}",
|
|
1194
|
+
".wbdm-item-edit{flex:1 1 auto;min-width:0;padding:4px 8px;border:1px solid var(--wb-accent);border-radius:8px;background:var(--wb-surface);color:inherit;font:inherit;font-size:13px}",
|
|
1195
|
+
".wbdm-item-edit:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in oklab,var(--wb-accent) 20%,transparent)}",
|
|
1184
1196
|
".wbdm-ops{display:flex;align-items:center;gap:2px;flex:none;opacity:.55;transition:opacity .15s}",
|
|
1185
1197
|
".wbdm-item:hover .wbdm-ops,.wbdm-ops:focus-within{opacity:1}",
|
|
1186
|
-
".wbdm-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border:0;border-radius:7px;background:transparent;color:var(--wb-muted
|
|
1187
|
-
".wbdm-icon-btn:hover{background:
|
|
1188
|
-
".wbdm-icon-btn.danger:hover{color:var(--wb-danger
|
|
1198
|
+
".wbdm-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border:0;border-radius:7px;background:transparent;color:var(--wb-muted);cursor:pointer}",
|
|
1199
|
+
".wbdm-icon-btn:hover{background:color-mix(in oklab,currentColor 10%,transparent);color:var(--wb-accent)}",
|
|
1200
|
+
".wbdm-icon-btn.danger:hover{color:var(--wb-danger)}",
|
|
1189
1201
|
".wbdm-icon-btn:disabled{opacity:.3;cursor:not-allowed}",
|
|
1190
1202
|
/* 开关外观统一由 lib/switch.cjs 的 wbctl-* 规则提供,见文件末尾追加 */
|
|
1191
1203
|
// 行内小开关(添加卡里的「卡片背景」)
|
|
1192
1204
|
".wbdm-inline-label{white-space:nowrap}",
|
|
1193
1205
|
// 行内「卡片/纯文字」标签:点一下切换该条弹幕是否有底
|
|
1194
|
-
".wbdm-cardtag{flex:none;padding:1px 8px;border:1px solid var(--wb-border
|
|
1195
|
-
"font:inherit;font-size:11px;color:var(--wb-muted
|
|
1196
|
-
".wbdm-cardtag:hover{color:var(--wb-accent
|
|
1197
|
-
".wbdm-cardtag.plain{color:var(--wb-muted
|
|
1206
|
+
".wbdm-cardtag{flex:none;padding:1px 8px;border:1px solid var(--wb-border);border-radius:999px;background:none;",
|
|
1207
|
+
"font:inherit;font-size:11px;color:var(--wb-muted);cursor:pointer;transition:color .12s,border-color .12s,background .12s}",
|
|
1208
|
+
".wbdm-cardtag:hover{color:var(--wb-accent);border-color:var(--wb-accent)}",
|
|
1209
|
+
".wbdm-cardtag.plain{color:var(--wb-muted);border-style:dashed}",
|
|
1198
1210
|
/* 空态与提示 */
|
|
1199
|
-
".wbdm-empty-card{display:flex;flex-direction:column;align-items:center;gap:8px;padding:26px 16px;border:1px dashed var(--wb-border
|
|
1200
|
-
".wbdm-empty-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:
|
|
1211
|
+
".wbdm-empty-card{display:flex;flex-direction:column;align-items:center;gap:8px;padding:26px 16px;border:1px dashed var(--wb-border);border-radius:10px;color:var(--wb-muted);font-size:12px;text-align:center}",
|
|
1212
|
+
".wbdm-empty-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:color-mix(in oklab,var(--wb-accent) 12%,transparent);color:var(--wb-accent)}",
|
|
1201
1213
|
".wbdm-notice{margin:0}",
|
|
1202
1214
|
/* 配置页:分组卡 + 行式布局 */
|
|
1203
|
-
".wbdm-crow{display:grid;grid-template-columns:minmax(150px,260px) minmax(0,1fr);align-items:center;gap:14px;padding:10px 0;border-top:1px solid var(--wb-line
|
|
1215
|
+
".wbdm-crow{display:grid;grid-template-columns:minmax(150px,260px) minmax(0,1fr);align-items:center;gap:14px;padding:10px 0;border-top:1px solid var(--wb-line)}",
|
|
1204
1216
|
".wbdm-crow:first-child{border-top:0}",
|
|
1205
1217
|
".wbdm-clabel{font-size:12px;font-weight:550}",
|
|
1206
|
-
".wbdm-chint{margin-top:2px;font-size:11px;color:var(--wb-muted
|
|
1218
|
+
".wbdm-chint{margin-top:2px;font-size:11px;color:var(--wb-muted);line-height:1.5}",
|
|
1207
1219
|
".wbdm-ctl{display:flex;align-items:center;gap:8px;min-width:0}",
|
|
1208
|
-
".wbdm-input,.wbdm-select{box-sizing:border-box;padding:5px 9px;border:1px solid var(--wb-border
|
|
1220
|
+
".wbdm-input,.wbdm-select{box-sizing:border-box;padding:5px 9px;border:1px solid var(--wb-border);border-radius:8px;background:var(--wb-surface);color:inherit;font:inherit;font-size:12px}",
|
|
1209
1221
|
".wbdm-input{width:100%;max-width:280px}",
|
|
1210
1222
|
/* 数字项改用共享控件(wbctl-num*)后,这里只给它一个与其它控件一致的窄宽度。 */
|
|
1211
1223
|
".wbdm-crow .wbctl-num .wbctl-num-input{width:120px}",
|
|
1212
1224
|
".wbdm-select{min-width:140px;max-width:280px}",
|
|
1213
|
-
".wbdm-input:focus,.wbdm-select:focus{outline:none;border-color:var(--wb-accent
|
|
1225
|
+
".wbdm-input:focus-visible,.wbdm-select:focus-visible{outline:none;border-color:var(--wb-accent);box-shadow:0 0 0 3px color-mix(in oklab,var(--wb-accent) 20%,transparent)}",
|
|
1214
1226
|
/* 桌面层状态 */
|
|
1215
1227
|
".wbdm-status{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin:2px 0 12px}",
|
|
1216
|
-
".wbdm-status-cell{padding:8px 10px;border:1px solid var(--wb-border
|
|
1217
|
-
".wbdm-status-k{font-size:11px;color:var(--wb-muted
|
|
1228
|
+
".wbdm-status-cell{padding:8px 10px;border:1px solid var(--wb-border);border-radius:9px;background:var(--wb-surface)}",
|
|
1229
|
+
".wbdm-status-k{font-size:11px;color:var(--wb-muted)}",
|
|
1218
1230
|
".wbdm-status-v{margin-top:2px;font-size:12px;font-weight:550}",
|
|
1219
1231
|
".wbdm-status-actions{display:flex;gap:8px;flex-wrap:wrap}",
|
|
1220
1232
|
/* 页面标题、指标卡数值(库页/配置页共用) */
|
|
1221
1233
|
".wbdm-page-title{font-size:17px;font-weight:680;letter-spacing:-.01em}",
|
|
1222
|
-
".wbdm-page-sub{margin-top:3px;font-size:12px;color:var(--wb-muted
|
|
1234
|
+
".wbdm-page-sub{margin-top:3px;font-size:12px;color:var(--wb-muted)}",
|
|
1223
1235
|
".wbdm-kpi-v,.wbdm-kpi-n{font-size:19px;font-weight:700;line-height:1.15;letter-spacing:-.01em}",
|
|
1224
|
-
".wbdm-kpi-n.ok{color:var(--wb-ok
|
|
1225
|
-
".wbdm-kpi-n.warn{color:var(--wb-warn
|
|
1236
|
+
".wbdm-kpi-n.ok{color:var(--wb-ok)}",
|
|
1237
|
+
".wbdm-kpi-n.warn{color:var(--wb-warn)}",
|
|
1226
1238
|
/* 颜色胶囊(详情面板复用添加区样式) */
|
|
1227
|
-
".wbdm-tone-chip{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border:1px solid var(--wb-border
|
|
1228
|
-
".wbdm-tone-chip:hover{border-color:var(--wb-accent
|
|
1229
|
-
".wbdm-tone-chip.on{border-color:var(--wb-accent
|
|
1239
|
+
".wbdm-tone-chip{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border:1px solid var(--wb-border);border-radius:999px;background:transparent;color:var(--wb-muted);font-size:11px;line-height:1.6;cursor:pointer}",
|
|
1240
|
+
".wbdm-tone-chip:hover{border-color:var(--wb-accent);color:var(--wb-accent)}",
|
|
1241
|
+
".wbdm-tone-chip.on{border-color:var(--wb-accent);color:var(--wb-accent);background:color-mix(in oklab,var(--wb-accent) 10%,transparent)}",
|
|
1230
1242
|
/* 清单行:正文可点开详情 */
|
|
1231
1243
|
"button.wbdm-body{padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}",
|
|
1232
|
-
"button.wbdm-body:hover{color:var(--wb-accent
|
|
1233
|
-
".wbdm-
|
|
1244
|
+
"button.wbdm-body:hover{color:var(--wb-accent)}",
|
|
1245
|
+
"button.wbdm-body:focus-visible{outline:2px solid var(--wb-accent);outline-offset:1px;border-radius:6px}",
|
|
1246
|
+
".wbdm-meta{flex:none;font-size:10px;color:var(--wb-muted);font-variant-numeric:tabular-nums}",
|
|
1234
1247
|
/* 详情面板 */
|
|
1235
|
-
".wbdm-modal{position:fixed;inset:0;z-index:900;display:flex;align-items:center;justify-content:center;padding:24px;background:
|
|
1236
|
-
".wbdm-modal-card{display:flex;flex-direction:column;width:min(620px,100%);max-height:min(86vh,820px);border:1px solid var(--wb-border
|
|
1237
|
-
".wbdm-modal-h{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px 12px;border-bottom:1px solid var(--wb-line
|
|
1248
|
+
".wbdm-modal{position:fixed;inset:0;z-index:900;display:flex;align-items:center;justify-content:center;padding:24px;background:color-mix(in oklab,var(--dsw-alias-bg-base,#000) 52%,transparent)}",
|
|
1249
|
+
".wbdm-modal-card{display:flex;flex-direction:column;width:min(620px,100%);max-height:min(86vh,820px);border:1px solid var(--wb-border);border-radius:14px;background:var(--wb-card);box-shadow:0 18px 60px color-mix(in oklab,currentColor 18%,transparent);overflow:hidden}",
|
|
1250
|
+
".wbdm-modal-h{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px 12px;border-bottom:1px solid var(--wb-line)}",
|
|
1238
1251
|
".wbdm-modal-t{font-size:15px;font-weight:660}",
|
|
1239
|
-
".wbdm-modal-s{margin-top:2px;font-size:11px;color:var(--wb-muted
|
|
1252
|
+
".wbdm-modal-s{margin-top:2px;font-size:11px;color:var(--wb-muted)}",
|
|
1240
1253
|
".wbdm-modal-body{padding:4px 18px 14px;overflow:auto}",
|
|
1241
|
-
".wbdm-modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid var(--wb-line
|
|
1242
|
-
".wbdm-section{padding:12px 0 6px;border-top:1px solid var(--wb-line
|
|
1254
|
+
".wbdm-modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid var(--wb-line);background:var(--wb-surface)}",
|
|
1255
|
+
".wbdm-section{padding:12px 0 6px;border-top:1px solid var(--wb-line)}",
|
|
1243
1256
|
".wbdm-section:first-child{border-top:0}",
|
|
1244
|
-
".wbdm-section-t{margin-bottom:6px;font-size:11px;font-weight:650;letter-spacing:.02em;color:var(--wb-muted
|
|
1257
|
+
".wbdm-section-t{margin-bottom:6px;font-size:11px;font-weight:650;letter-spacing:.02em;color:var(--wb-muted)}",
|
|
1245
1258
|
".wbdm-card-action{margin-left:auto}",
|
|
1246
1259
|
".wbdm-crow-label{display:block;min-width:0}",
|
|
1247
1260
|
".wbdm-crow-t{display:block;font-size:12px;font-weight:550}",
|
|
1248
|
-
".wbdm-crow-h{display:block;margin-top:2px;font-size:10px;color:var(--wb-muted
|
|
1261
|
+
".wbdm-crow-h{display:block;margin-top:2px;font-size:10px;color:var(--wb-muted);line-height:1.45}",
|
|
1249
1262
|
/* 详情面板顶部的实时预览舞台 */
|
|
1250
|
-
".wbdm-preview{position:relative;margin:12px 16px 0;border:1px solid var(--wb-border
|
|
1263
|
+
".wbdm-preview{position:relative;margin:12px 16px 0;border:1px solid var(--wb-border);border-radius:12px;background:var(--wb-surface);overflow:hidden}",
|
|
1251
1264
|
".wbdm-preview-stage{position:relative;height:132px;overflow:hidden}",
|
|
1252
|
-
".wbdm-preview-hint{position:absolute;right:12px;bottom:8px;font-size:10px;letter-spacing:.02em;color:var(--wb-muted
|
|
1265
|
+
".wbdm-preview-hint{position:absolute;right:12px;bottom:8px;font-size:10px;letter-spacing:.02em;color:var(--wb-muted);pointer-events:none}",
|
|
1253
1266
|
/* 深色:卡片底色更贴近主题表面 */
|
|
1254
|
-
"@media (prefers-color-scheme:dark){.wbdm-kpi,.wbdm-card,.wbdm-status-cell{background:var(--wb-surface
|
|
1267
|
+
"@media (prefers-color-scheme:dark){.wbdm-kpi,.wbdm-card,.wbdm-status-cell{background:var(--wb-surface)}}",
|
|
1255
1268
|
/* 窄屏:配置行从「标签 + 控件」两列改成上下单列,输入框不再固定 280px 宽。 */
|
|
1256
1269
|
"@media (max-width:600px){.wbdm-crow{grid-template-columns:minmax(0,1fr);gap:8px;padding:10px 0}.wbdm-ctl{flex-wrap:wrap}.wbdm-input,.wbdm-select{max-width:none;width:100%}.wbdm-crow .wbctl-num .wbctl-num-input{width:100%}.wbdm-preview{margin:10px 12px 0}.wbdm-page-title{font-size:16px}.wbdm-card-h{flex-direction:column;align-items:stretch;gap:6px}.wbdm-card-t,.wbdm-card-s{white-space:nowrap}.wbdm-card-action{width:100%;white-space:nowrap;padding-left:10px;padding-right:10px}.wbdm-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.wbdm-kpi{min-width:0;padding:7px 8px}.wbdm-kpi-n{font-size:17px}.wbdm-status{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.wbdm-status-cell{padding:7px 8px}.wbdm-status-k{font-size:10px}}"
|
|
1257
1270
|
];
|
|
@@ -1274,15 +1287,15 @@ var require_style = __commonJS({
|
|
|
1274
1287
|
".wbdm-dm-field{position:absolute;inset:0;overflow:hidden}",
|
|
1275
1288
|
".wbdm-dm-chip{position:absolute;left:0;top:0;display:inline-flex;align-items:center;gap:7px;padding:4px 13px 4px 11px;border-radius:999px;",
|
|
1276
1289
|
"border:1px solid var(--wbdm-border,rgba(0,0,0,.10));background:var(--wbdm-chip-bg,rgba(255,255,255,.82));",
|
|
1277
|
-
"color:var(--wbdm-fg
|
|
1290
|
+
"color:var(--wbdm-fg);font-size:var(--wbdm-font-size,15px);font-weight:480;line-height:1.45;white-space:nowrap;letter-spacing:.012em;",
|
|
1278
1291
|
"opacity:var(--wbdm-opacity,1);box-shadow:0 3px 12px var(--wbdm-shadow,rgba(0,0,0,.10)),0 1px 2px rgba(0,0,0,.06);",
|
|
1279
1292
|
"backdrop-filter:blur(7px) saturate(1.15);-webkit-backdrop-filter:blur(7px) saturate(1.15);",
|
|
1280
1293
|
"will-change:transform;backface-visibility:hidden;contain:layout style}",
|
|
1281
|
-
".wbdm-dm-tone-normal{color:var(--wbdm-fg
|
|
1282
|
-
".wbdm-dm-tone-accent{color:var(--wbdm-accent
|
|
1283
|
-
".wbdm-dm-tone-success{color:var(--wbdm-ok
|
|
1284
|
-
".wbdm-dm-tone-warn{color:var(--wbdm-warn
|
|
1285
|
-
".wbdm-dm-tone-danger{color:var(--wbdm-danger
|
|
1294
|
+
".wbdm-dm-tone-normal{color:var(--wbdm-fg)}",
|
|
1295
|
+
".wbdm-dm-tone-accent{color:var(--wbdm-accent);border-color:var(--wbdm-accent)}",
|
|
1296
|
+
".wbdm-dm-tone-success{color:var(--wbdm-ok);border-color:var(--wbdm-ok)}",
|
|
1297
|
+
".wbdm-dm-tone-warn{color:var(--wbdm-warn);border-color:var(--wbdm-warn)}",
|
|
1298
|
+
".wbdm-dm-tone-danger{color:var(--wbdm-danger);border-color:var(--wbdm-danger)}",
|
|
1286
1299
|
".wbdm-dm-chip.wbdm-dm-plain{background:none;border-color:transparent;box-shadow:none;padding:2px 3px;",
|
|
1287
1300
|
"backdrop-filter:none;-webkit-backdrop-filter:none;text-shadow:0 1px 3px var(--wbdm-shadow,rgba(0,0,0,.35))}",
|
|
1288
1301
|
"@media (prefers-reduced-motion: reduce){.wbdm-dm-chip{transition:none}}"
|
|
@@ -1546,7 +1559,7 @@ var require_layer = __commonJS({
|
|
|
1546
1559
|
var require_config_client = __commonJS({
|
|
1547
1560
|
"packages/addons/lib/config-client.cjs"(exports2, module2) {
|
|
1548
1561
|
"use strict";
|
|
1549
|
-
var
|
|
1562
|
+
var React2 = require("react");
|
|
1550
1563
|
var BASE = "/workbench/api";
|
|
1551
1564
|
var HOST_DOMAIN = "wb-shell";
|
|
1552
1565
|
var DEFAULT_TTL = 3e4;
|
|
@@ -1555,6 +1568,12 @@ var require_config_client = __commonJS({
|
|
|
1555
1568
|
var listeners = /* @__PURE__ */ new Map();
|
|
1556
1569
|
var events = null;
|
|
1557
1570
|
var eventRefs = 0;
|
|
1571
|
+
function domainId(raw) {
|
|
1572
|
+
var id = String(raw == null ? "" : raw).trim();
|
|
1573
|
+
if (!id) return id;
|
|
1574
|
+
if (id.indexOf("wb-addon-") === 0 || id === "wb-shell" || id.indexOf("wb-shell") === 0) return id;
|
|
1575
|
+
return "wb-addon-" + id;
|
|
1576
|
+
}
|
|
1558
1577
|
function mergeValues(fallback, values) {
|
|
1559
1578
|
var out = {};
|
|
1560
1579
|
var base = fallback && typeof fallback === "object" ? fallback : {};
|
|
@@ -1624,6 +1643,7 @@ var require_config_client = __commonJS({
|
|
|
1624
1643
|
return callHost(api, "wb.configCenterGet", { domain }).then(toSnapshot);
|
|
1625
1644
|
}
|
|
1626
1645
|
function readConfig(api, domain, fallback, ttlMs) {
|
|
1646
|
+
domain = domainId(domain);
|
|
1627
1647
|
var ttl = typeof ttlMs === "number" ? ttlMs : DEFAULT_TTL;
|
|
1628
1648
|
var hit = cache.get(domain);
|
|
1629
1649
|
if (hit && Date.now() - hit.at < ttl) return Promise.resolve(mergeValues(fallback, hit.values));
|
|
@@ -1657,6 +1677,7 @@ var require_config_client = __commonJS({
|
|
|
1657
1677
|
);
|
|
1658
1678
|
}
|
|
1659
1679
|
function writeConfig(api, domain, values) {
|
|
1680
|
+
domain = domainId(domain);
|
|
1660
1681
|
return callHost(api, "wb.configCenterSet", { domain, values: values || {} }).then(function(body) {
|
|
1661
1682
|
var snapshot = toSnapshot(body);
|
|
1662
1683
|
storeSnapshot(domain, snapshot);
|
|
@@ -1665,9 +1686,11 @@ var require_config_client = __commonJS({
|
|
|
1665
1686
|
});
|
|
1666
1687
|
}
|
|
1667
1688
|
function invalidateConfig(domain) {
|
|
1689
|
+
domain = domainId(domain);
|
|
1668
1690
|
cache.delete(domain);
|
|
1669
1691
|
}
|
|
1670
1692
|
function subscribeConfigChange(api, domain, cb) {
|
|
1693
|
+
domain = domainId(domain);
|
|
1671
1694
|
if (typeof window === "undefined" || typeof window.EventSource !== "function") return function() {
|
|
1672
1695
|
};
|
|
1673
1696
|
var set = listeners.get(domain);
|
|
@@ -1714,7 +1737,8 @@ var require_config_client = __commonJS({
|
|
|
1714
1737
|
};
|
|
1715
1738
|
}
|
|
1716
1739
|
function useConfig(api, domain, fallback, ReactImpl) {
|
|
1717
|
-
var R = ReactImpl ||
|
|
1740
|
+
var R = ReactImpl || React2;
|
|
1741
|
+
domain = domainId(domain);
|
|
1718
1742
|
var initial = {
|
|
1719
1743
|
ready: false,
|
|
1720
1744
|
values: mergeValues(fallback, null),
|
|
@@ -1768,6 +1792,7 @@ var require_config_client = __commonJS({
|
|
|
1768
1792
|
return current;
|
|
1769
1793
|
}
|
|
1770
1794
|
module2.exports = {
|
|
1795
|
+
domainId,
|
|
1771
1796
|
useConfig,
|
|
1772
1797
|
readConfig,
|
|
1773
1798
|
writeConfig,
|
|
@@ -2232,8 +2257,8 @@ var require_overlay = __commonJS({
|
|
|
2232
2257
|
var FOCUSABLE = "button:not(:disabled),input:not(:disabled),textarea:not(:disabled),select:not(:disabled),a[href]";
|
|
2233
2258
|
module2.exports = function createOverlay(options) {
|
|
2234
2259
|
var opts = options || {};
|
|
2235
|
-
var
|
|
2236
|
-
var h =
|
|
2260
|
+
var React2 = opts.React || defaultReact;
|
|
2261
|
+
var h = React2.createElement;
|
|
2237
2262
|
var tag = opts.tag || "section";
|
|
2238
2263
|
var maskClass = opts.maskClass;
|
|
2239
2264
|
var dialogClass = opts.dialogClass;
|
|
@@ -2257,7 +2282,7 @@ var require_overlay = __commonJS({
|
|
|
2257
2282
|
var autoFocusDialog = opts.autoFocusDialog !== false;
|
|
2258
2283
|
var focusableSelector = opts.focusableSelector || FOCUSABLE;
|
|
2259
2284
|
function Modal(props) {
|
|
2260
|
-
var R = props.React ||
|
|
2285
|
+
var R = props.React || React2;
|
|
2261
2286
|
var ref = R.useRef(null);
|
|
2262
2287
|
R.useEffect(function() {
|
|
2263
2288
|
var previous = typeof document !== "undefined" ? document.activeElement : null;
|
|
@@ -2330,8 +2355,8 @@ var require_detail = __commonJS({
|
|
|
2330
2355
|
"packages/addons/danmaku/client/views/detail.cjs"(exports2, module2) {
|
|
2331
2356
|
"use strict";
|
|
2332
2357
|
var GLYPHS2 = require_icons2().ICONS;
|
|
2333
|
-
var
|
|
2334
|
-
var h =
|
|
2358
|
+
var React2 = require("react");
|
|
2359
|
+
var h = React2.createElement;
|
|
2335
2360
|
var chipStyle = require_chip_style();
|
|
2336
2361
|
var createOverlay = require_overlay();
|
|
2337
2362
|
var SW = require_switch();
|
|
@@ -2354,11 +2379,11 @@ var require_detail = __commonJS({
|
|
|
2354
2379
|
return value === null || value === void 0 ? "" : String(value);
|
|
2355
2380
|
}
|
|
2356
2381
|
function PreviewStage(props) {
|
|
2357
|
-
var stageRef =
|
|
2382
|
+
var stageRef = React2.useRef(null);
|
|
2358
2383
|
var detail = props.detail;
|
|
2359
2384
|
var hint = props.hint;
|
|
2360
2385
|
var placeholder = props.placeholder || "";
|
|
2361
|
-
|
|
2386
|
+
React2.useEffect(
|
|
2362
2387
|
function() {
|
|
2363
2388
|
var stage = stageRef.current;
|
|
2364
2389
|
if (!stage) return void 0;
|
|
@@ -2698,8 +2723,8 @@ var require_library = __commonJS({
|
|
|
2698
2723
|
"packages/addons/danmaku/client/views/library.cjs"(exports2, module2) {
|
|
2699
2724
|
"use strict";
|
|
2700
2725
|
var GLYPHS2 = require_icons2().ICONS;
|
|
2701
|
-
var
|
|
2702
|
-
var h =
|
|
2726
|
+
var React2 = require("react");
|
|
2727
|
+
var h = React2.createElement;
|
|
2703
2728
|
var copy = require_copy();
|
|
2704
2729
|
var SW = require_switch();
|
|
2705
2730
|
var ICONS = {
|
|
@@ -2753,29 +2778,29 @@ var require_library = __commonJS({
|
|
|
2753
2778
|
var api = props.api;
|
|
2754
2779
|
var lang = props.lang;
|
|
2755
2780
|
var C = copy.pick(lang);
|
|
2756
|
-
var listS =
|
|
2781
|
+
var listS = React2.useState({ loading: true, error: "", items: [], total: 0, paused: 0 });
|
|
2757
2782
|
var list = listS[0];
|
|
2758
2783
|
var setList = listS[1];
|
|
2759
|
-
var createS =
|
|
2784
|
+
var createS = React2.useState(null);
|
|
2760
2785
|
var creating = createS[0];
|
|
2761
2786
|
var setCreating = createS[1];
|
|
2762
|
-
var busyS =
|
|
2787
|
+
var busyS = React2.useState("");
|
|
2763
2788
|
var busy = busyS[0];
|
|
2764
2789
|
var setBusy = busyS[1];
|
|
2765
|
-
var detailS =
|
|
2790
|
+
var detailS = React2.useState(null);
|
|
2766
2791
|
var detail = detailS[0];
|
|
2767
2792
|
var setDetail = detailS[1];
|
|
2768
|
-
var sayS =
|
|
2793
|
+
var sayS = React2.useState("");
|
|
2769
2794
|
var say = sayS[0];
|
|
2770
2795
|
var setSay = sayS[1];
|
|
2771
|
-
var aliveRef =
|
|
2796
|
+
var aliveRef = React2.useRef(true);
|
|
2772
2797
|
function notify(text) {
|
|
2773
2798
|
setSay(text);
|
|
2774
2799
|
window.setTimeout(function() {
|
|
2775
2800
|
if (aliveRef.current) setSay("");
|
|
2776
2801
|
}, 2400);
|
|
2777
2802
|
}
|
|
2778
|
-
var refresh =
|
|
2803
|
+
var refresh = React2.useCallback(function() {
|
|
2779
2804
|
return api.call("danmaku.list", {}).then(payloadOf).then(function(body) {
|
|
2780
2805
|
if (!aliveRef.current) return;
|
|
2781
2806
|
setList({
|
|
@@ -2792,7 +2817,7 @@ var require_library = __commonJS({
|
|
|
2792
2817
|
});
|
|
2793
2818
|
});
|
|
2794
2819
|
}, [api]);
|
|
2795
|
-
|
|
2820
|
+
React2.useEffect(function() {
|
|
2796
2821
|
aliveRef.current = true;
|
|
2797
2822
|
refresh();
|
|
2798
2823
|
var off = null;
|
|
@@ -3176,6 +3201,7 @@ var require_library = __commonJS({
|
|
|
3176
3201
|
|
|
3177
3202
|
// packages/addons/danmaku/client/client.src.cjs
|
|
3178
3203
|
var GLYPHS = require_icons2().ICONS;
|
|
3204
|
+
var React = require("react");
|
|
3179
3205
|
var styles = require_styles();
|
|
3180
3206
|
var overlay = require_mount();
|
|
3181
3207
|
var STYLE_ID = "wbdm-styles";
|
|
@@ -3209,19 +3235,19 @@ var icons = {
|
|
|
3209
3235
|
settings: GLYPHS["settings"],
|
|
3210
3236
|
play: GLYPHS["play"]
|
|
3211
3237
|
};
|
|
3212
|
-
function makeTab(
|
|
3238
|
+
function makeTab(React2) {
|
|
3213
3239
|
return function tab(name) {
|
|
3214
3240
|
var Icon2 = icons[name];
|
|
3215
3241
|
return function TabIcon(props) {
|
|
3216
|
-
return
|
|
3242
|
+
return React2.createElement(Icon2, props);
|
|
3217
3243
|
};
|
|
3218
3244
|
};
|
|
3219
3245
|
}
|
|
3220
|
-
function definition(
|
|
3221
|
-
var tab = makeTab(
|
|
3246
|
+
function definition() {
|
|
3247
|
+
var tab = makeTab(React);
|
|
3222
3248
|
return {
|
|
3223
3249
|
id: ADDON_ID,
|
|
3224
|
-
version: "0.4.
|
|
3250
|
+
version: "0.4.9",
|
|
3225
3251
|
icon: tab("megaphone"),
|
|
3226
3252
|
views: [
|
|
3227
3253
|
{
|
|
@@ -3236,7 +3262,7 @@ function definition(host) {
|
|
|
3236
3262
|
var tries = 0;
|
|
3237
3263
|
function boot() {
|
|
3238
3264
|
var host = window.__WB_HOST__;
|
|
3239
|
-
if (!host || typeof host.registerAddon !== "function"
|
|
3265
|
+
if (!host || typeof host.registerAddon !== "function") {
|
|
3240
3266
|
if (tries < 120) {
|
|
3241
3267
|
tries += 1;
|
|
3242
3268
|
window.setTimeout(boot, 150);
|
|
@@ -3244,11 +3270,11 @@ function boot() {
|
|
|
3244
3270
|
return;
|
|
3245
3271
|
}
|
|
3246
3272
|
if (hasAddon(host)) return;
|
|
3247
|
-
host.registerAddon(definition(
|
|
3273
|
+
host.registerAddon(definition());
|
|
3248
3274
|
[300, 900, 1800, 3600].forEach(function(delay) {
|
|
3249
3275
|
window.setTimeout(function() {
|
|
3250
3276
|
var h = window.__WB_HOST__;
|
|
3251
|
-
if (h && typeof h.registerAddon === "function" && !hasAddon(h)) h.registerAddon(definition(
|
|
3277
|
+
if (h && typeof h.registerAddon === "function" && !hasAddon(h)) h.registerAddon(definition());
|
|
3252
3278
|
}, delay);
|
|
3253
3279
|
});
|
|
3254
3280
|
}
|