dsh-workbench-danmaku 0.4.2 → 0.4.8
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 +28 -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 +200 -187
- 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,9 +834,9 @@ 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
|
-
".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
|
|
838
|
-
".wb-eye:hover:not(:disabled){color:var(--wb-accent
|
|
839
|
-
".wb-eye:focus-visible{outline:2px solid var(--wb-accent
|
|
837
|
+
".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}",
|
|
838
|
+
".wb-eye:hover:not(:disabled){color:var(--wb-accent);background:color-mix(in srgb, var(--wb-accent) 12%, transparent)}",
|
|
839
|
+
".wb-eye:focus-visible{outline:2px solid var(--wb-accent);outline-offset:1px}",
|
|
840
840
|
".wb-eye:disabled{opacity:.45;cursor:not-allowed}"
|
|
841
841
|
];
|
|
842
842
|
module2.exports = function baseStyles(prefix) {
|
|
@@ -846,26 +846,26 @@ var require_client_base_styles = __commonJS({
|
|
|
846
846
|
s + "-wrap{display:flex;flex-direction:column;gap:12px;padding:16px;overflow:auto;height:100%;box-sizing:border-box}",
|
|
847
847
|
s + "-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}",
|
|
848
848
|
s + "-title{font-size:16px;font-weight:650;margin:0}",
|
|
849
|
-
s + "-sub{font-size:12px;color:var(--wb-muted
|
|
849
|
+
s + "-sub{font-size:12px;color:var(--wb-muted);margin:2px 0 0}",
|
|
850
850
|
s + "-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}",
|
|
851
|
-
s + "-card{border:1px solid var(--wb-border
|
|
851
|
+
s + "-card{border:1px solid var(--wb-border);border-radius:10px;background:var(--wb-surface);padding:12px}",
|
|
852
852
|
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
|
|
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);text-align:left;vertical-align:top}",
|
|
855
|
+
s + "-table th{font-weight:600;color:var(--wb-muted);white-space:nowrap}",
|
|
856
|
+
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}",
|
|
857
|
+
s + "-btn:hover:not(:disabled){border-color:var(--wb-accent)}" + s + "-btn:disabled{opacity:.5;cursor:default}",
|
|
858
|
+
s + "-btn.primary{background:var(--wb-accent);border-color:var(--wb-accent);color:var(--dsw-alias-label-primary-inverted)}",
|
|
859
|
+
s + "-btn.danger{color:var(--wb-danger);border-color:color-mix(in oklab,var(--wb-danger) 35%,transparent)}",
|
|
860
860
|
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
|
|
861
|
+
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}",
|
|
862
|
+
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)}",
|
|
863
|
+
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)}",
|
|
864
|
+
s + "-empty{padding:18px;text-align:center;color:var(--wb-muted);font-size:12px;border:1px dashed var(--wb-border);border-radius:8px}",
|
|
865
865
|
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
|
|
866
|
+
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
867
|
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
|
|
868
|
+
s + "-muted{color:var(--wb-muted)}" + s + "-link{color:var(--wb-accent);cursor:pointer;text-decoration:none}",
|
|
869
869
|
s + "-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}",
|
|
870
870
|
// 窄屏:页面容器不再自带左右内边距(宿主的 .wb-immersive-main 已经给过),
|
|
871
871
|
// 卡片与栅格收紧,把宽度尽量留给内容——窄屏下两侧留白比桌面更影响可读性。
|
|
@@ -881,14 +881,14 @@ var require_switch = __commonJS({
|
|
|
881
881
|
"packages/addons/lib/switch.cjs"(exports2, module2) {
|
|
882
882
|
"use strict";
|
|
883
883
|
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
|
|
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);cursor:pointer;user-select:none;border-radius:999px}",
|
|
885
885
|
".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
|
|
886
|
+
".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}",
|
|
887
|
+
".wbctl-switch[aria-checked=true]{color:var(--wb-accent)}",
|
|
888
|
+
".wbctl-switch[aria-checked=true] .wbctl-switch-track{background:var(--wb-accent)}",
|
|
889
889
|
".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
|
|
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);outline-offset:2px}",
|
|
892
892
|
".wbctl-switch:disabled{opacity:.45;cursor:not-allowed}",
|
|
893
893
|
".wbctl-switch-text{white-space:nowrap}",
|
|
894
894
|
"@media (prefers-reduced-motion:reduce){.wbctl-switch-track,.wbctl-switch-knob{transition:none}}"
|
|
@@ -931,7 +931,7 @@ var require_switch = __commonJS({
|
|
|
931
931
|
var require_number_field = __commonJS({
|
|
932
932
|
"packages/addons/lib/number-field.cjs"(exports2, module2) {
|
|
933
933
|
"use strict";
|
|
934
|
-
var
|
|
934
|
+
var React2 = require("react");
|
|
935
935
|
var NUM = /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)$/;
|
|
936
936
|
var TEXT = {
|
|
937
937
|
zh: {
|
|
@@ -1007,22 +1007,22 @@ var require_number_field = __commonJS({
|
|
|
1007
1007
|
return parts.join(en ? ", " : "\uFF0C");
|
|
1008
1008
|
}
|
|
1009
1009
|
function NumberField(props) {
|
|
1010
|
-
var h = props.h ||
|
|
1010
|
+
var h = props.h || React2.createElement;
|
|
1011
1011
|
var lang = props.lang;
|
|
1012
1012
|
var M = messages(lang);
|
|
1013
1013
|
var text = props.value === null || props.value === void 0 ? "" : String(props.value);
|
|
1014
|
-
var draftS =
|
|
1014
|
+
var draftS = React2.useState(text);
|
|
1015
1015
|
var draft = draftS[0];
|
|
1016
1016
|
var setDraft = draftS[1];
|
|
1017
|
-
var focusS =
|
|
1017
|
+
var focusS = React2.useState(false);
|
|
1018
1018
|
var focused = focusS[0];
|
|
1019
1019
|
var setFocused = focusS[1];
|
|
1020
|
-
var errS =
|
|
1020
|
+
var errS = React2.useState("");
|
|
1021
1021
|
var err = errS[0];
|
|
1022
1022
|
var setErr = errS[1];
|
|
1023
|
-
var lastRef =
|
|
1024
|
-
var skipBlurRef =
|
|
1025
|
-
|
|
1023
|
+
var lastRef = React2.useRef(text);
|
|
1024
|
+
var skipBlurRef = React2.useRef(false);
|
|
1025
|
+
React2.useEffect(
|
|
1026
1026
|
function() {
|
|
1027
1027
|
if (focused) return;
|
|
1028
1028
|
if (lastRef.current === text) return;
|
|
@@ -1106,13 +1106,13 @@ var require_number_field = __commonJS({
|
|
|
1106
1106
|
".wbctl-num-box{display:inline-flex;align-items:center;gap:6px;min-width:0}",
|
|
1107
1107
|
".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
1108
|
".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
|
|
1109
|
+
".wbctl-num-input:focus{outline:2px solid color-mix(in oklab,var(--wb-accent) 55%,transparent);outline-offset:1px;border-color: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) 55%,transparent)}",
|
|
1112
1112
|
".wbctl-num-input:disabled{opacity:.5;cursor:not-allowed}",
|
|
1113
1113
|
".wbctl-num-unit{color:var(--wb-muted,inherit);font-size:12px;white-space:nowrap}",
|
|
1114
1114
|
".wbctl-num-hint{color:var(--wb-muted,inherit);font-size:11px;line-height:1.4}",
|
|
1115
|
-
".wbctl-num-err{color:var(--wb-danger
|
|
1115
|
+
".wbctl-num-err{color:var(--wb-danger);font-size:11px;line-height:1.4}",
|
|
1116
1116
|
"@media (prefers-reduced-motion:reduce){.wbctl-num-input{transition:none}}"
|
|
1117
1117
|
];
|
|
1118
1118
|
module2.exports = {
|
|
@@ -1140,118 +1140,118 @@ var require_styles = __commonJS({
|
|
|
1140
1140
|
".wbdm-hero-main{min-width:0}",
|
|
1141
1141
|
/* 右侧指标卡 */
|
|
1142
1142
|
".wbdm-kpis{display:flex;gap:8px;flex-wrap:wrap}",
|
|
1143
|
-
".wbdm-kpi{min-width:82px;padding:8px 12px;border:1px solid var(--wb-border
|
|
1143
|
+
".wbdm-kpi{min-width:82px;padding:8px 12px;border:1px solid var(--wb-border);border-radius:10px;background:var(--wb-card)}",
|
|
1144
1144
|
".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
|
|
1145
|
+
".wbdm-kpi-l{margin-top:3px;font-size:11px;color:var(--wb-muted)}",
|
|
1146
1146
|
/* 卡片 */
|
|
1147
|
-
".wbdm-card{border:1px solid var(--wb-border
|
|
1147
|
+
".wbdm-card{border:1px solid var(--wb-border);border-radius:12px;background:var(--wb-card);padding:14px 16px}",
|
|
1148
1148
|
".wbdm-card-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}",
|
|
1149
1149
|
".wbdm-card-t{font-size:13px;font-weight:650}",
|
|
1150
|
-
".wbdm-card-s{font-size:11px;color:var(--wb-muted
|
|
1150
|
+
".wbdm-card-s{font-size:11px;color:var(--wb-muted)}",
|
|
1151
1151
|
/* 添加区 */
|
|
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
|
|
1152
|
+
".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}",
|
|
1153
|
+
".wbdm-textarea::placeholder{color:var(--wb-muted)}",
|
|
1154
|
+
".wbdm-textarea:focus{outline:none;border-color:var(--wb-accent);box-shadow:0 0 0 3px rgba(37,99,235,.14)}",
|
|
1155
1155
|
".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
|
|
1156
|
+
".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}",
|
|
1157
|
+
".wbdm-tone:hover{border-color:var(--wb-accent);color:var(--wb-accent)}",
|
|
1158
|
+
".wbdm-tone.on{border-color:var(--wb-accent);color:var(--wb-accent);background:rgba(37,99,235,.08)}",
|
|
1159
|
+
".wbdm-dot{width:6px;height:6px;border-radius:50%;background:var(--wb-muted);flex:none}",
|
|
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);font-variant-numeric:tabular-nums}",
|
|
1165
1165
|
/* 按钮 */
|
|
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
|
|
1166
|
+
".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}",
|
|
1167
|
+
".wbdm-btn:hover{border-color:var(--wb-accent);color:var(--wb-accent)}",
|
|
1168
|
+
".wbdm-btn.primary{border-color:var(--wb-accent);background:var(--wb-accent);color:var(--dsw-alias-label-primary-inverted)}",
|
|
1169
|
+
".wbdm-btn.primary:hover{opacity:.9;color:var(--dsw-alias-label-primary-inverted)}",
|
|
1170
1170
|
".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
|
|
1171
|
+
".wbdm-btn.primary:disabled{background:var(--wb-border);border-color:var(--wb-border);color:var(--wb-muted)}",
|
|
1172
|
+
".wbdm-btn.ghost{border-color:transparent;background:transparent;color:var(--wb-muted)}",
|
|
1173
1173
|
/* 清单 */
|
|
1174
1174
|
".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
|
|
1175
|
+
".wbdm-item{display:flex;align-items:center;gap:10px;padding:10px 8px;border-top:1px solid var(--wb-line);min-width:0}",
|
|
1176
1176
|
".wbdm-item:first-child{border-top:0}",
|
|
1177
1177
|
".wbdm-item:hover{background:rgba(127,127,127,.06);border-radius:8px}",
|
|
1178
|
-
".wbdm-order{flex:none;width:18px;text-align:right;font-size:11px;color:var(--wb-muted
|
|
1178
|
+
".wbdm-order{flex:none;width:18px;text-align:right;font-size:11px;color:var(--wb-muted);font-variant-numeric:tabular-nums}",
|
|
1179
1179
|
".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
|
|
1180
|
+
".wbdm-item.off .wbdm-body{color:var(--wb-muted);text-decoration:line-through}",
|
|
1181
|
+
".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)}",
|
|
1182
|
+
".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}",
|
|
1183
1183
|
".wbdm-item-edit:focus{outline:none;box-shadow:0 0 0 3px rgba(37,99,235,.14)}",
|
|
1184
1184
|
".wbdm-ops{display:flex;align-items:center;gap:2px;flex:none;opacity:.55;transition:opacity .15s}",
|
|
1185
1185
|
".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:rgba(127,127,127,.12);color:var(--wb-accent
|
|
1188
|
-
".wbdm-icon-btn.danger:hover{color:var(--wb-danger
|
|
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);cursor:pointer}",
|
|
1187
|
+
".wbdm-icon-btn:hover{background:rgba(127,127,127,.12);color:var(--wb-accent)}",
|
|
1188
|
+
".wbdm-icon-btn.danger:hover{color:var(--wb-danger)}",
|
|
1189
1189
|
".wbdm-icon-btn:disabled{opacity:.3;cursor:not-allowed}",
|
|
1190
1190
|
/* 开关外观统一由 lib/switch.cjs 的 wbctl-* 规则提供,见文件末尾追加 */
|
|
1191
1191
|
// 行内小开关(添加卡里的「卡片背景」)
|
|
1192
1192
|
".wbdm-inline-label{white-space:nowrap}",
|
|
1193
1193
|
// 行内「卡片/纯文字」标签:点一下切换该条弹幕是否有底
|
|
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
|
|
1194
|
+
".wbdm-cardtag{flex:none;padding:1px 8px;border:1px solid var(--wb-border);border-radius:999px;background:none;",
|
|
1195
|
+
"font:inherit;font-size:11px;color:var(--wb-muted);cursor:pointer;transition:color .12s,border-color .12s,background .12s}",
|
|
1196
|
+
".wbdm-cardtag:hover{color:var(--wb-accent);border-color:var(--wb-accent)}",
|
|
1197
|
+
".wbdm-cardtag.plain{color:var(--wb-muted);border-style:dashed}",
|
|
1198
1198
|
/* 空态与提示 */
|
|
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:rgba(37,99,235,.1);color:var(--wb-accent
|
|
1199
|
+
".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}",
|
|
1200
|
+
".wbdm-empty-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:rgba(37,99,235,.1);color:var(--wb-accent)}",
|
|
1201
1201
|
".wbdm-notice{margin:0}",
|
|
1202
1202
|
/* 配置页:分组卡 + 行式布局 */
|
|
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
|
|
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)}",
|
|
1204
1204
|
".wbdm-crow:first-child{border-top:0}",
|
|
1205
1205
|
".wbdm-clabel{font-size:12px;font-weight:550}",
|
|
1206
|
-
".wbdm-chint{margin-top:2px;font-size:11px;color:var(--wb-muted
|
|
1206
|
+
".wbdm-chint{margin-top:2px;font-size:11px;color:var(--wb-muted);line-height:1.5}",
|
|
1207
1207
|
".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
|
|
1208
|
+
".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
1209
|
".wbdm-input{width:100%;max-width:280px}",
|
|
1210
1210
|
/* 数字项改用共享控件(wbctl-num*)后,这里只给它一个与其它控件一致的窄宽度。 */
|
|
1211
1211
|
".wbdm-crow .wbctl-num .wbctl-num-input{width:120px}",
|
|
1212
1212
|
".wbdm-select{min-width:140px;max-width:280px}",
|
|
1213
|
-
".wbdm-input:focus,.wbdm-select:focus{outline:none;border-color:var(--wb-accent
|
|
1213
|
+
".wbdm-input:focus,.wbdm-select:focus{outline:none;border-color:var(--wb-accent);box-shadow:0 0 0 3px rgba(37,99,235,.14)}",
|
|
1214
1214
|
/* 桌面层状态 */
|
|
1215
1215
|
".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
|
|
1216
|
+
".wbdm-status-cell{padding:8px 10px;border:1px solid var(--wb-border);border-radius:9px;background:var(--wb-surface)}",
|
|
1217
|
+
".wbdm-status-k{font-size:11px;color:var(--wb-muted)}",
|
|
1218
1218
|
".wbdm-status-v{margin-top:2px;font-size:12px;font-weight:550}",
|
|
1219
1219
|
".wbdm-status-actions{display:flex;gap:8px;flex-wrap:wrap}",
|
|
1220
1220
|
/* 页面标题、指标卡数值(库页/配置页共用) */
|
|
1221
1221
|
".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
|
|
1222
|
+
".wbdm-page-sub{margin-top:3px;font-size:12px;color:var(--wb-muted)}",
|
|
1223
1223
|
".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
|
|
1224
|
+
".wbdm-kpi-n.ok{color:var(--wb-ok)}",
|
|
1225
|
+
".wbdm-kpi-n.warn{color:var(--wb-warn)}",
|
|
1226
1226
|
/* 颜色胶囊(详情面板复用添加区样式) */
|
|
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
|
|
1227
|
+
".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}",
|
|
1228
|
+
".wbdm-tone-chip:hover{border-color:var(--wb-accent);color:var(--wb-accent)}",
|
|
1229
|
+
".wbdm-tone-chip.on{border-color:var(--wb-accent);color:var(--wb-accent);background:rgba(37,99,235,.08)}",
|
|
1230
1230
|
/* 清单行:正文可点开详情 */
|
|
1231
1231
|
"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-meta{flex:none;font-size:10px;color:var(--wb-muted
|
|
1232
|
+
"button.wbdm-body:hover{color:var(--wb-accent)}",
|
|
1233
|
+
".wbdm-meta{flex:none;font-size:10px;color:var(--wb-muted);font-variant-numeric:tabular-nums}",
|
|
1234
1234
|
/* 详情面板 */
|
|
1235
1235
|
".wbdm-modal{position:fixed;inset:0;z-index:900;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(15,17,21,.42)}",
|
|
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
|
|
1236
|
+
".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 rgba(0,0,0,.28);overflow:hidden}",
|
|
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)}",
|
|
1238
1238
|
".wbdm-modal-t{font-size:15px;font-weight:660}",
|
|
1239
|
-
".wbdm-modal-s{margin-top:2px;font-size:11px;color:var(--wb-muted
|
|
1239
|
+
".wbdm-modal-s{margin-top:2px;font-size:11px;color:var(--wb-muted)}",
|
|
1240
1240
|
".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
|
|
1241
|
+
".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)}",
|
|
1242
|
+
".wbdm-section{padding:12px 0 6px;border-top:1px solid var(--wb-line)}",
|
|
1243
1243
|
".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
|
|
1244
|
+
".wbdm-section-t{margin-bottom:6px;font-size:11px;font-weight:650;letter-spacing:.02em;color:var(--wb-muted)}",
|
|
1245
1245
|
".wbdm-card-action{margin-left:auto}",
|
|
1246
1246
|
".wbdm-crow-label{display:block;min-width:0}",
|
|
1247
1247
|
".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
|
|
1248
|
+
".wbdm-crow-h{display:block;margin-top:2px;font-size:10px;color:var(--wb-muted);line-height:1.45}",
|
|
1249
1249
|
/* 详情面板顶部的实时预览舞台 */
|
|
1250
|
-
".wbdm-preview{position:relative;margin:12px 16px 0;border:1px solid var(--wb-border
|
|
1250
|
+
".wbdm-preview{position:relative;margin:12px 16px 0;border:1px solid var(--wb-border);border-radius:12px;background:var(--wb-surface);overflow:hidden}",
|
|
1251
1251
|
".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
|
|
1252
|
+
".wbdm-preview-hint{position:absolute;right:12px;bottom:8px;font-size:10px;letter-spacing:.02em;color:var(--wb-muted);pointer-events:none}",
|
|
1253
1253
|
/* 深色:卡片底色更贴近主题表面 */
|
|
1254
|
-
"@media (prefers-color-scheme:dark){.wbdm-kpi,.wbdm-card,.wbdm-status-cell{background:var(--wb-surface
|
|
1254
|
+
"@media (prefers-color-scheme:dark){.wbdm-kpi,.wbdm-card,.wbdm-status-cell{background:var(--wb-surface)}}",
|
|
1255
1255
|
/* 窄屏:配置行从「标签 + 控件」两列改成上下单列,输入框不再固定 280px 宽。 */
|
|
1256
1256
|
"@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
1257
|
];
|
|
@@ -1274,15 +1274,15 @@ var require_style = __commonJS({
|
|
|
1274
1274
|
".wbdm-dm-field{position:absolute;inset:0;overflow:hidden}",
|
|
1275
1275
|
".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
1276
|
"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
|
|
1277
|
+
"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
1278
|
"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
1279
|
"backdrop-filter:blur(7px) saturate(1.15);-webkit-backdrop-filter:blur(7px) saturate(1.15);",
|
|
1280
1280
|
"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
|
|
1281
|
+
".wbdm-dm-tone-normal{color:var(--wbdm-fg)}",
|
|
1282
|
+
".wbdm-dm-tone-accent{color:var(--wbdm-accent);border-color:var(--wbdm-accent)}",
|
|
1283
|
+
".wbdm-dm-tone-success{color:var(--wbdm-ok);border-color:var(--wbdm-ok)}",
|
|
1284
|
+
".wbdm-dm-tone-warn{color:var(--wbdm-warn);border-color:var(--wbdm-warn)}",
|
|
1285
|
+
".wbdm-dm-tone-danger{color:var(--wbdm-danger);border-color:var(--wbdm-danger)}",
|
|
1286
1286
|
".wbdm-dm-chip.wbdm-dm-plain{background:none;border-color:transparent;box-shadow:none;padding:2px 3px;",
|
|
1287
1287
|
"backdrop-filter:none;-webkit-backdrop-filter:none;text-shadow:0 1px 3px var(--wbdm-shadow,rgba(0,0,0,.35))}",
|
|
1288
1288
|
"@media (prefers-reduced-motion: reduce){.wbdm-dm-chip{transition:none}}"
|
|
@@ -1546,7 +1546,7 @@ var require_layer = __commonJS({
|
|
|
1546
1546
|
var require_config_client = __commonJS({
|
|
1547
1547
|
"packages/addons/lib/config-client.cjs"(exports2, module2) {
|
|
1548
1548
|
"use strict";
|
|
1549
|
-
var
|
|
1549
|
+
var React2 = require("react");
|
|
1550
1550
|
var BASE = "/workbench/api";
|
|
1551
1551
|
var HOST_DOMAIN = "wb-shell";
|
|
1552
1552
|
var DEFAULT_TTL = 3e4;
|
|
@@ -1555,6 +1555,12 @@ var require_config_client = __commonJS({
|
|
|
1555
1555
|
var listeners = /* @__PURE__ */ new Map();
|
|
1556
1556
|
var events = null;
|
|
1557
1557
|
var eventRefs = 0;
|
|
1558
|
+
function domainId(raw) {
|
|
1559
|
+
var id = String(raw == null ? "" : raw).trim();
|
|
1560
|
+
if (!id) return id;
|
|
1561
|
+
if (id.indexOf("wb-addon-") === 0 || id === "wb-shell" || id.indexOf("wb-shell") === 0) return id;
|
|
1562
|
+
return "wb-addon-" + id;
|
|
1563
|
+
}
|
|
1558
1564
|
function mergeValues(fallback, values) {
|
|
1559
1565
|
var out = {};
|
|
1560
1566
|
var base = fallback && typeof fallback === "object" ? fallback : {};
|
|
@@ -1624,6 +1630,7 @@ var require_config_client = __commonJS({
|
|
|
1624
1630
|
return callHost(api, "wb.configCenterGet", { domain }).then(toSnapshot);
|
|
1625
1631
|
}
|
|
1626
1632
|
function readConfig(api, domain, fallback, ttlMs) {
|
|
1633
|
+
domain = domainId(domain);
|
|
1627
1634
|
var ttl = typeof ttlMs === "number" ? ttlMs : DEFAULT_TTL;
|
|
1628
1635
|
var hit = cache.get(domain);
|
|
1629
1636
|
if (hit && Date.now() - hit.at < ttl) return Promise.resolve(mergeValues(fallback, hit.values));
|
|
@@ -1657,6 +1664,7 @@ var require_config_client = __commonJS({
|
|
|
1657
1664
|
);
|
|
1658
1665
|
}
|
|
1659
1666
|
function writeConfig(api, domain, values) {
|
|
1667
|
+
domain = domainId(domain);
|
|
1660
1668
|
return callHost(api, "wb.configCenterSet", { domain, values: values || {} }).then(function(body) {
|
|
1661
1669
|
var snapshot = toSnapshot(body);
|
|
1662
1670
|
storeSnapshot(domain, snapshot);
|
|
@@ -1665,9 +1673,11 @@ var require_config_client = __commonJS({
|
|
|
1665
1673
|
});
|
|
1666
1674
|
}
|
|
1667
1675
|
function invalidateConfig(domain) {
|
|
1676
|
+
domain = domainId(domain);
|
|
1668
1677
|
cache.delete(domain);
|
|
1669
1678
|
}
|
|
1670
1679
|
function subscribeConfigChange(api, domain, cb) {
|
|
1680
|
+
domain = domainId(domain);
|
|
1671
1681
|
if (typeof window === "undefined" || typeof window.EventSource !== "function") return function() {
|
|
1672
1682
|
};
|
|
1673
1683
|
var set = listeners.get(domain);
|
|
@@ -1714,7 +1724,8 @@ var require_config_client = __commonJS({
|
|
|
1714
1724
|
};
|
|
1715
1725
|
}
|
|
1716
1726
|
function useConfig(api, domain, fallback, ReactImpl) {
|
|
1717
|
-
var R = ReactImpl ||
|
|
1727
|
+
var R = ReactImpl || React2;
|
|
1728
|
+
domain = domainId(domain);
|
|
1718
1729
|
var initial = {
|
|
1719
1730
|
ready: false,
|
|
1720
1731
|
values: mergeValues(fallback, null),
|
|
@@ -1768,6 +1779,7 @@ var require_config_client = __commonJS({
|
|
|
1768
1779
|
return current;
|
|
1769
1780
|
}
|
|
1770
1781
|
module2.exports = {
|
|
1782
|
+
domainId,
|
|
1771
1783
|
useConfig,
|
|
1772
1784
|
readConfig,
|
|
1773
1785
|
writeConfig,
|
|
@@ -2232,8 +2244,8 @@ var require_overlay = __commonJS({
|
|
|
2232
2244
|
var FOCUSABLE = "button:not(:disabled),input:not(:disabled),textarea:not(:disabled),select:not(:disabled),a[href]";
|
|
2233
2245
|
module2.exports = function createOverlay(options) {
|
|
2234
2246
|
var opts = options || {};
|
|
2235
|
-
var
|
|
2236
|
-
var h =
|
|
2247
|
+
var React2 = opts.React || defaultReact;
|
|
2248
|
+
var h = React2.createElement;
|
|
2237
2249
|
var tag = opts.tag || "section";
|
|
2238
2250
|
var maskClass = opts.maskClass;
|
|
2239
2251
|
var dialogClass = opts.dialogClass;
|
|
@@ -2257,7 +2269,7 @@ var require_overlay = __commonJS({
|
|
|
2257
2269
|
var autoFocusDialog = opts.autoFocusDialog !== false;
|
|
2258
2270
|
var focusableSelector = opts.focusableSelector || FOCUSABLE;
|
|
2259
2271
|
function Modal(props) {
|
|
2260
|
-
var R = props.React ||
|
|
2272
|
+
var R = props.React || React2;
|
|
2261
2273
|
var ref = R.useRef(null);
|
|
2262
2274
|
R.useEffect(function() {
|
|
2263
2275
|
var previous = typeof document !== "undefined" ? document.activeElement : null;
|
|
@@ -2330,8 +2342,8 @@ var require_detail = __commonJS({
|
|
|
2330
2342
|
"packages/addons/danmaku/client/views/detail.cjs"(exports2, module2) {
|
|
2331
2343
|
"use strict";
|
|
2332
2344
|
var GLYPHS2 = require_icons2().ICONS;
|
|
2333
|
-
var
|
|
2334
|
-
var h =
|
|
2345
|
+
var React2 = require("react");
|
|
2346
|
+
var h = React2.createElement;
|
|
2335
2347
|
var chipStyle = require_chip_style();
|
|
2336
2348
|
var createOverlay = require_overlay();
|
|
2337
2349
|
var SW = require_switch();
|
|
@@ -2354,11 +2366,11 @@ var require_detail = __commonJS({
|
|
|
2354
2366
|
return value === null || value === void 0 ? "" : String(value);
|
|
2355
2367
|
}
|
|
2356
2368
|
function PreviewStage(props) {
|
|
2357
|
-
var stageRef =
|
|
2369
|
+
var stageRef = React2.useRef(null);
|
|
2358
2370
|
var detail = props.detail;
|
|
2359
2371
|
var hint = props.hint;
|
|
2360
2372
|
var placeholder = props.placeholder || "";
|
|
2361
|
-
|
|
2373
|
+
React2.useEffect(
|
|
2362
2374
|
function() {
|
|
2363
2375
|
var stage = stageRef.current;
|
|
2364
2376
|
if (!stage) return void 0;
|
|
@@ -2698,8 +2710,8 @@ var require_library = __commonJS({
|
|
|
2698
2710
|
"packages/addons/danmaku/client/views/library.cjs"(exports2, module2) {
|
|
2699
2711
|
"use strict";
|
|
2700
2712
|
var GLYPHS2 = require_icons2().ICONS;
|
|
2701
|
-
var
|
|
2702
|
-
var h =
|
|
2713
|
+
var React2 = require("react");
|
|
2714
|
+
var h = React2.createElement;
|
|
2703
2715
|
var copy = require_copy();
|
|
2704
2716
|
var SW = require_switch();
|
|
2705
2717
|
var ICONS = {
|
|
@@ -2753,29 +2765,29 @@ var require_library = __commonJS({
|
|
|
2753
2765
|
var api = props.api;
|
|
2754
2766
|
var lang = props.lang;
|
|
2755
2767
|
var C = copy.pick(lang);
|
|
2756
|
-
var listS =
|
|
2768
|
+
var listS = React2.useState({ loading: true, error: "", items: [], total: 0, paused: 0 });
|
|
2757
2769
|
var list = listS[0];
|
|
2758
2770
|
var setList = listS[1];
|
|
2759
|
-
var createS =
|
|
2771
|
+
var createS = React2.useState(null);
|
|
2760
2772
|
var creating = createS[0];
|
|
2761
2773
|
var setCreating = createS[1];
|
|
2762
|
-
var busyS =
|
|
2774
|
+
var busyS = React2.useState("");
|
|
2763
2775
|
var busy = busyS[0];
|
|
2764
2776
|
var setBusy = busyS[1];
|
|
2765
|
-
var detailS =
|
|
2777
|
+
var detailS = React2.useState(null);
|
|
2766
2778
|
var detail = detailS[0];
|
|
2767
2779
|
var setDetail = detailS[1];
|
|
2768
|
-
var sayS =
|
|
2780
|
+
var sayS = React2.useState("");
|
|
2769
2781
|
var say = sayS[0];
|
|
2770
2782
|
var setSay = sayS[1];
|
|
2771
|
-
var aliveRef =
|
|
2783
|
+
var aliveRef = React2.useRef(true);
|
|
2772
2784
|
function notify(text) {
|
|
2773
2785
|
setSay(text);
|
|
2774
2786
|
window.setTimeout(function() {
|
|
2775
2787
|
if (aliveRef.current) setSay("");
|
|
2776
2788
|
}, 2400);
|
|
2777
2789
|
}
|
|
2778
|
-
var refresh =
|
|
2790
|
+
var refresh = React2.useCallback(function() {
|
|
2779
2791
|
return api.call("danmaku.list", {}).then(payloadOf).then(function(body) {
|
|
2780
2792
|
if (!aliveRef.current) return;
|
|
2781
2793
|
setList({
|
|
@@ -2792,7 +2804,7 @@ var require_library = __commonJS({
|
|
|
2792
2804
|
});
|
|
2793
2805
|
});
|
|
2794
2806
|
}, [api]);
|
|
2795
|
-
|
|
2807
|
+
React2.useEffect(function() {
|
|
2796
2808
|
aliveRef.current = true;
|
|
2797
2809
|
refresh();
|
|
2798
2810
|
var off = null;
|
|
@@ -3176,6 +3188,7 @@ var require_library = __commonJS({
|
|
|
3176
3188
|
|
|
3177
3189
|
// packages/addons/danmaku/client/client.src.cjs
|
|
3178
3190
|
var GLYPHS = require_icons2().ICONS;
|
|
3191
|
+
var React = require("react");
|
|
3179
3192
|
var styles = require_styles();
|
|
3180
3193
|
var overlay = require_mount();
|
|
3181
3194
|
var STYLE_ID = "wbdm-styles";
|
|
@@ -3209,19 +3222,19 @@ var icons = {
|
|
|
3209
3222
|
settings: GLYPHS["settings"],
|
|
3210
3223
|
play: GLYPHS["play"]
|
|
3211
3224
|
};
|
|
3212
|
-
function makeTab(
|
|
3225
|
+
function makeTab(React2) {
|
|
3213
3226
|
return function tab(name) {
|
|
3214
3227
|
var Icon2 = icons[name];
|
|
3215
3228
|
return function TabIcon(props) {
|
|
3216
|
-
return
|
|
3229
|
+
return React2.createElement(Icon2, props);
|
|
3217
3230
|
};
|
|
3218
3231
|
};
|
|
3219
3232
|
}
|
|
3220
|
-
function definition(
|
|
3221
|
-
var tab = makeTab(
|
|
3233
|
+
function definition() {
|
|
3234
|
+
var tab = makeTab(React);
|
|
3222
3235
|
return {
|
|
3223
3236
|
id: ADDON_ID,
|
|
3224
|
-
version: "0.4.
|
|
3237
|
+
version: "0.4.8",
|
|
3225
3238
|
icon: tab("megaphone"),
|
|
3226
3239
|
views: [
|
|
3227
3240
|
{
|
|
@@ -3236,7 +3249,7 @@ function definition(host) {
|
|
|
3236
3249
|
var tries = 0;
|
|
3237
3250
|
function boot() {
|
|
3238
3251
|
var host = window.__WB_HOST__;
|
|
3239
|
-
if (!host || typeof host.registerAddon !== "function"
|
|
3252
|
+
if (!host || typeof host.registerAddon !== "function") {
|
|
3240
3253
|
if (tries < 120) {
|
|
3241
3254
|
tries += 1;
|
|
3242
3255
|
window.setTimeout(boot, 150);
|
|
@@ -3244,11 +3257,11 @@ function boot() {
|
|
|
3244
3257
|
return;
|
|
3245
3258
|
}
|
|
3246
3259
|
if (hasAddon(host)) return;
|
|
3247
|
-
host.registerAddon(definition(
|
|
3260
|
+
host.registerAddon(definition());
|
|
3248
3261
|
[300, 900, 1800, 3600].forEach(function(delay) {
|
|
3249
3262
|
window.setTimeout(function() {
|
|
3250
3263
|
var h = window.__WB_HOST__;
|
|
3251
|
-
if (h && typeof h.registerAddon === "function" && !hasAddon(h)) h.registerAddon(definition(
|
|
3264
|
+
if (h && typeof h.registerAddon === "function" && !hasAddon(h)) h.registerAddon(definition());
|
|
3252
3265
|
}, delay);
|
|
3253
3266
|
});
|
|
3254
3267
|
}
|