dsh-workbench-vault 0.3.7 → 0.3.10
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/cordis.patch.yml +1 -1
- package/lib/client.js +774 -330
- package/lib/index.js +2 -1
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -39,150 +39,39 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
39
39
|
};
|
|
40
40
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
41
41
|
|
|
42
|
-
// packages/addons/lib/
|
|
43
|
-
var
|
|
44
|
-
"packages/addons/lib/
|
|
45
|
-
"use strict";
|
|
46
|
-
module2.exports = [
|
|
47
|
-
".wbck{display:flex;flex-direction:column;min-width:0}",
|
|
48
|
-
".wbck-search{padding:0 0 6px}",
|
|
49
|
-
".wbck-input{width:100%;box-sizing:border-box;font:inherit;font-size:12.5px;padding:6px 9px;border:1px solid var(--wb-border);border-radius:8px;background:var(--wb-surface);color:inherit}",
|
|
50
|
-
".wbck-input:focus-visible{outline:2px solid var(--wb-accent);outline-offset:1px}",
|
|
51
|
-
".wbck-input:disabled{opacity:.6;cursor:not-allowed}",
|
|
52
|
-
".wbck-head{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--wb-muted);padding:2px 4px 7px}",
|
|
53
|
-
".wbck-grow{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",
|
|
54
|
-
".wbck-sel{flex:none;color:var(--wb-accent)}",
|
|
55
|
-
".wbck-clear{appearance:none;flex:none;border:0;background:transparent;color:inherit;border-radius:4px;margin:0;padding:3px 5px;font:inherit;font-size:11.5px;line-height:1;cursor:pointer;opacity:.75}",
|
|
56
|
-
".wbck-clear:hover:enabled{opacity:1;background:color-mix(in srgb, currentColor 8%, transparent)}",
|
|
57
|
-
".wbck-clear:focus-visible{outline:2px solid var(--wb-accent);outline-offset:1px}",
|
|
58
|
-
".wbck-clear:disabled{opacity:.4;cursor:not-allowed}",
|
|
59
|
-
".wbck-list{max-height:220px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--wb-border);border-radius:10px;padding:2px}",
|
|
60
|
-
".wbck-opt{display:flex;align-items:center;gap:7px;padding:6px;border-radius:6px;font-size:12.5px;cursor:pointer}",
|
|
61
|
-
".wbck-opt:hover{background:color-mix(in srgb, currentColor 7%, transparent)}",
|
|
62
|
-
".wbck-opt.is-on{background:color-mix(in srgb, var(--wb-accent) 10%, transparent)}",
|
|
63
|
-
".wbck-opt input{margin:0;flex:none;accent-color:var(--wb-accent)}",
|
|
64
|
-
// 单选变体用 button 渲染(role="radio"),这里把浏览器默认按钮样式清掉,视觉与多选行一致。
|
|
65
|
-
'.wbck-opt[role="radio"]{appearance:none;width:100%;box-sizing:border-box;border:0;background:transparent;color:inherit;font:inherit;text-align:left}',
|
|
66
|
-
'.wbck-opt[role="radio"]:disabled{opacity:.55;cursor:not-allowed}',
|
|
67
|
-
'.wbck-opt[role="radio"]:focus-visible{outline:2px solid var(--wb-accent);outline-offset:-2px}',
|
|
68
|
-
".wbck-nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",
|
|
69
|
-
".wbck-meta{margin-left:auto;flex:none;font-size:11.5px;color:var(--wb-muted)}",
|
|
70
|
-
".wbck-note{font-size:12px;color:var(--wb-muted);padding:8px 6px}",
|
|
71
|
-
".wbck-more{font-size:11px;color:var(--wb-muted);text-align:center;padding:6px 0 2px;opacity:.8}",
|
|
72
|
-
"@media (max-width:760px){.wbck-list{max-height:200px}}"
|
|
73
|
-
];
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
// packages/addons/lib/client-base-styles.cjs
|
|
78
|
-
var require_client_base_styles = __commonJS({
|
|
79
|
-
"packages/addons/lib/client-base-styles.cjs"(exports2, module2) {
|
|
80
|
-
"use strict";
|
|
81
|
-
var SECRET_FIELD = [
|
|
82
|
-
".wb-secret-field{position:relative;display:flex;align-items:center;min-width:0}",
|
|
83
|
-
".wb-secret-field input{flex:1 1 auto;min-width:0;padding-right:34px}",
|
|
84
|
-
".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,#6b7280);cursor:pointer}",
|
|
85
|
-
".wb-eye:hover:not(:disabled){color:var(--wb-accent,#2563eb);background:color-mix(in srgb, var(--wb-accent,#2563eb) 12%, transparent)}",
|
|
86
|
-
".wb-eye:focus-visible{outline:2px solid var(--wb-accent,#2563eb);outline-offset:1px}",
|
|
87
|
-
".wb-eye:disabled{opacity:.45;cursor:not-allowed}"
|
|
88
|
-
];
|
|
89
|
-
module2.exports = function baseStyles(prefix) {
|
|
90
|
-
var p = String(prefix || "wb");
|
|
91
|
-
var s = "." + p;
|
|
92
|
-
return SECRET_FIELD.concat([
|
|
93
|
-
s + "-wrap{display:flex;flex-direction:column;gap:12px;padding:16px;overflow:auto;height:100%;box-sizing:border-box}",
|
|
94
|
-
s + "-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}",
|
|
95
|
-
s + "-title{font-size:16px;font-weight:650;margin:0}",
|
|
96
|
-
s + "-sub{font-size:12px;color:var(--wb-muted,#6b7280);margin:2px 0 0}",
|
|
97
|
-
s + "-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}",
|
|
98
|
-
s + "-card{border:1px solid var(--wb-border,#e5e7eb);border-radius:10px;background:var(--wb-surface,#fff);padding:12px}",
|
|
99
|
-
s + "-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}",
|
|
100
|
-
s + "-kpi{font-size:22px;font-weight:700;line-height:1.2}" + s + "-kpi-label{font-size:12px;color:var(--wb-muted,#6b7280)}",
|
|
101
|
-
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,#eef0f3);text-align:left;vertical-align:top}",
|
|
102
|
-
s + "-table th{font-weight:600;color:var(--wb-muted,#6b7280);white-space:nowrap}",
|
|
103
|
-
s + "-btn{border:1px solid var(--wb-border,#d1d5db);background:var(--wb-surface,#fff);color:inherit;border-radius:7px;padding:5px 10px;font-size:12px;cursor:pointer}",
|
|
104
|
-
s + "-btn:hover:not(:disabled){border-color:var(--wb-accent,#2563eb)}" + s + "-btn:disabled{opacity:.5;cursor:default}",
|
|
105
|
-
s + "-btn.primary{background:var(--wb-accent,#2563eb);border-color:var(--wb-accent,#2563eb);color:#fff}",
|
|
106
|
-
s + "-btn.danger{color:#b91c1c;border-color:#fecaca}",
|
|
107
|
-
s + "-field{display:flex;flex-direction:column;gap:4px;font-size:12px}" + s + "-label{font-weight:600}",
|
|
108
|
-
s + "-field input," + s + "-field select," + s + "-field textarea{border:1px solid var(--wb-border,#d1d5db);border-radius:7px;padding:6px 8px;font:inherit;background:var(--wb-surface,#fff);color:inherit;min-width:0}",
|
|
109
|
-
s + "-hint{color:var(--wb-muted,#6b7280);font-size:11px}" + s + "-notice{padding:8px 10px;border-radius:8px;font-size:12px;background:#eff6ff;color:#1e40af}",
|
|
110
|
-
s + "-notice.error{background:#fef2f2;color:#b91c1c}" + s + "-notice.ok{background:#ecfdf5;color:#047857}",
|
|
111
|
-
s + "-empty{padding:18px;text-align:center;color:var(--wb-muted,#6b7280);font-size:12px;border:1px dashed var(--wb-border,#e5e7eb);border-radius:8px}",
|
|
112
|
-
s + "-pill{display:inline-block;padding:1px 7px;border-radius:999px;font-size:11px;background:#f3f4f6;color:#374151}",
|
|
113
|
-
s + "-pill.ok{background:#ecfdf5;color:#047857}" + s + "-pill.error{background:#fef2f2;color:#b91c1c}" + s + "-pill.warn{background:#fffbeb;color:#b45309}",
|
|
114
|
-
s + "-json{margin:0;padding:8px;background:#f8fafc;border-radius:8px;font-size:11px;max-height:240px;overflow:auto}",
|
|
115
|
-
s + "-muted{color:var(--wb-muted,#6b7280)}" + s + "-link{color:var(--wb-accent,#2563eb);cursor:pointer;text-decoration:none}",
|
|
116
|
-
s + "-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}"
|
|
117
|
-
]);
|
|
118
|
-
};
|
|
119
|
-
module2.exports.secretFieldStyles = SECRET_FIELD;
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
// packages/addons/vault/client/ui/styles.cjs
|
|
124
|
-
var require_styles = __commonJS({
|
|
125
|
-
"packages/addons/vault/client/ui/styles.cjs"(exports2, module2) {
|
|
42
|
+
// packages/addons/lib/icons.cjs
|
|
43
|
+
var require_icons = __commonJS({
|
|
44
|
+
"packages/addons/lib/icons.cjs"(exports2, module2) {
|
|
126
45
|
"use strict";
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
".wbv-tabs{display:flex;gap:6px;flex-wrap:wrap}.wbv-tab{border:none;background:transparent;padding:4px 8px;border-radius:6px;cursor:pointer;font-size:12px}",
|
|
157
|
-
".wbv-tab.on{background:color-mix(in srgb,var(--wb-accent) 12%,transparent);color:var(--wb-accent);font-weight:600}",
|
|
158
|
-
".wbv-secret{font-family:ui-monospace,Menlo,Consolas,monospace;background:var(--wb-surface);border:1px solid var(--wb-border);border-radius:6px;padding:6px 8px;word-break:break-all}",
|
|
159
|
-
".wbv-inline{display:flex;gap:6px;align-items:center;flex-wrap:wrap}",
|
|
160
|
-
".wbv-modal{position:fixed;inset:0;background:color-mix(in srgb,var(--wb-muted) 45%,transparent);display:flex;align-items:center;justify-content:center;z-index:50;padding:18px}",
|
|
161
|
-
".wbv-modal-box{background:var(--wb-card);border:1px solid var(--wb-border);border-radius:12px;padding:16px;width:min(520px,100%);max-height:88vh;overflow:auto;display:flex;flex-direction:column;gap:10px;box-shadow:0 12px 40px color-mix(in srgb,var(--wb-muted) 30%,transparent)}",
|
|
162
|
-
".wbv-code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11px;white-space:pre-wrap;word-break:break-word;background:var(--wb-surface);border:1px solid var(--wb-border);border-radius:8px;padding:10px;max-height:320px;overflow:auto}",
|
|
163
|
-
".wbv-split{display:grid;grid-template-columns:minmax(260px,1fr) minmax(320px,1.6fr);gap:12px;align-items:start}",
|
|
164
|
-
".wbv-list{display:flex;flex-direction:column;gap:6px}",
|
|
165
|
-
".wbv-item{border:1px solid var(--wb-border);border-radius:10px;padding:9px 10px;background:var(--wb-card);cursor:pointer}",
|
|
166
|
-
".wbv-item:hover{border-color:var(--wb-accent)}",
|
|
167
|
-
".wbv-item.on{border-color:var(--wb-accent);box-shadow:inset 3px 0 0 var(--wb-accent)}",
|
|
168
|
-
".wbv-item-top{display:flex;gap:8px;align-items:center}",
|
|
169
|
-
".wbv-dot{width:10px;height:10px;border-radius:999px;flex:none;background:var(--wb-accent)}",
|
|
170
|
-
".wbv-chips{display:flex;gap:6px;flex-wrap:wrap}",
|
|
171
|
-
".wbv-chip{display:inline-flex;gap:6px;align-items:center;border:1px solid var(--wb-border);border-radius:999px;padding:2px 8px;font-size:11px;background:var(--wb-surface)}",
|
|
172
|
-
".wbv-check{display:flex;gap:6px;align-items:center;padding:3px 0;font-size:12px}",
|
|
173
|
-
".wbv-scroll{max-height:220px;overflow:auto;border:1px solid var(--wb-border);border-radius:8px;padding:8px}",
|
|
174
|
-
"@media (max-width:820px){.wbv-split{grid-template-columns:1fr}}",
|
|
175
|
-
".wbv-search{flex:0 0 220px;width:220px}",
|
|
176
|
-
".wbv-row>input:not([type=checkbox]),.wbv-row>select{width:auto;flex:0 1 220px;min-width:120px}",
|
|
177
|
-
".wbv-sub{font-size:12px;opacity:.65;margin-top:2px}",
|
|
178
|
-
".wbv-table tbody tr:hover{background:color-mix(in srgb,var(--wb-accent) 6%,transparent)}",
|
|
179
|
-
".wbv-table td{vertical-align:top}",
|
|
180
|
-
".wbv-empty-card{border:1px dashed var(--wb-border);border-radius:10px;padding:28px 16px;display:flex;flex-direction:column;gap:8px;align-items:center;text-align:center;background:var(--wb-card)}",
|
|
181
|
-
".wbv-empty-title{font-size:14px;font-weight:600}",
|
|
182
|
-
".wbv-check-list{display:flex;flex-wrap:wrap;gap:6px 14px;margin:4px 0}",
|
|
183
|
-
".wbv-check{display:inline-flex;align-items:center;gap:6px;font-size:12px;cursor:pointer}",
|
|
184
|
-
".wbv-dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex:none}"
|
|
185
|
-
].concat(require_filter_checklist_styles()).concat(require_client_base_styles().secretFieldStyles);
|
|
46
|
+
var h = require("react").createElement;
|
|
47
|
+
function create(prefix, glyphs, options) {
|
|
48
|
+
var opts = options || {};
|
|
49
|
+
var ICONS = Object.assign({}, glyphs);
|
|
50
|
+
function Icon2(props) {
|
|
51
|
+
var C = ICONS[props.name] || (opts.fallback ? ICONS[opts.fallback] : null);
|
|
52
|
+
if (!C) return null;
|
|
53
|
+
var size = typeof opts.sizeOf === "function" ? opts.sizeOf(props) : props.size || 14;
|
|
54
|
+
var cls = prefix + "-svg" + (opts.classNameAppend && props.className ? " " + props.className : "");
|
|
55
|
+
var attrs = {
|
|
56
|
+
size,
|
|
57
|
+
strokeWidth: props.strokeWidth || 2,
|
|
58
|
+
"aria-hidden": "true",
|
|
59
|
+
className: cls
|
|
60
|
+
};
|
|
61
|
+
if (opts.focusable) attrs.focusable = false;
|
|
62
|
+
return h(C, attrs);
|
|
63
|
+
}
|
|
64
|
+
var set = { ICONS, Icon: Icon2 };
|
|
65
|
+
if (opts.tabIcon) {
|
|
66
|
+
set.tabIcon = function(name) {
|
|
67
|
+
return function TabIcon() {
|
|
68
|
+
return h(Icon2, { name, size: 14 });
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
return set;
|
|
73
|
+
}
|
|
74
|
+
module2.exports = { create };
|
|
186
75
|
}
|
|
187
76
|
});
|
|
188
77
|
|
|
@@ -474,60 +363,56 @@ var init_createLucideIcon = __esm({
|
|
|
474
363
|
}
|
|
475
364
|
});
|
|
476
365
|
|
|
477
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/
|
|
478
|
-
var
|
|
479
|
-
__export(
|
|
366
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/database.mjs
|
|
367
|
+
var database_exports = {};
|
|
368
|
+
__export(database_exports, {
|
|
480
369
|
__iconData: () => __iconData,
|
|
481
|
-
default: () =>
|
|
370
|
+
default: () => Database
|
|
482
371
|
});
|
|
483
|
-
var __iconData,
|
|
484
|
-
var
|
|
485
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/
|
|
372
|
+
var __iconData, Database;
|
|
373
|
+
var init_database = __esm({
|
|
374
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/database.mjs"() {
|
|
486
375
|
init_createLucideIcon();
|
|
487
376
|
__iconData = {
|
|
488
|
-
name: "
|
|
377
|
+
name: "database",
|
|
489
378
|
size: 24,
|
|
490
379
|
node: [
|
|
491
|
-
[
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
|
|
495
|
-
key: "oel41y"
|
|
496
|
-
}
|
|
497
|
-
]
|
|
380
|
+
["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
|
|
381
|
+
["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
|
|
382
|
+
["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
|
|
498
383
|
]
|
|
499
384
|
};
|
|
500
385
|
__iconData.node;
|
|
501
|
-
|
|
386
|
+
Database = createLucideIcon(__iconData);
|
|
502
387
|
}
|
|
503
388
|
});
|
|
504
389
|
|
|
505
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/
|
|
506
|
-
var
|
|
507
|
-
__export(
|
|
390
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/eye.mjs
|
|
391
|
+
var eye_exports = {};
|
|
392
|
+
__export(eye_exports, {
|
|
508
393
|
__iconData: () => __iconData2,
|
|
509
|
-
default: () =>
|
|
394
|
+
default: () => Eye
|
|
510
395
|
});
|
|
511
|
-
var __iconData2,
|
|
512
|
-
var
|
|
513
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/
|
|
396
|
+
var __iconData2, Eye;
|
|
397
|
+
var init_eye = __esm({
|
|
398
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/eye.mjs"() {
|
|
514
399
|
init_createLucideIcon();
|
|
515
400
|
__iconData2 = {
|
|
516
|
-
name: "
|
|
401
|
+
name: "eye",
|
|
517
402
|
size: 24,
|
|
518
403
|
node: [
|
|
519
404
|
[
|
|
520
405
|
"path",
|
|
521
406
|
{
|
|
522
|
-
d: "M2.
|
|
523
|
-
key: "
|
|
407
|
+
d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",
|
|
408
|
+
key: "1nclc0"
|
|
524
409
|
}
|
|
525
410
|
],
|
|
526
|
-
["circle", { cx: "
|
|
411
|
+
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
527
412
|
]
|
|
528
413
|
};
|
|
529
414
|
__iconData2.node;
|
|
530
|
-
|
|
415
|
+
Eye = createLucideIcon(__iconData2);
|
|
531
416
|
}
|
|
532
417
|
});
|
|
533
418
|
|
|
@@ -559,57 +444,75 @@ var init_folder = __esm({
|
|
|
559
444
|
}
|
|
560
445
|
});
|
|
561
446
|
|
|
562
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/
|
|
563
|
-
var
|
|
564
|
-
__export(
|
|
447
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/key-round.mjs
|
|
448
|
+
var key_round_exports = {};
|
|
449
|
+
__export(key_round_exports, {
|
|
565
450
|
__iconData: () => __iconData4,
|
|
566
|
-
default: () =>
|
|
451
|
+
default: () => KeyRound
|
|
567
452
|
});
|
|
568
|
-
var __iconData4,
|
|
569
|
-
var
|
|
570
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/
|
|
453
|
+
var __iconData4, KeyRound;
|
|
454
|
+
var init_key_round = __esm({
|
|
455
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/key-round.mjs"() {
|
|
571
456
|
init_createLucideIcon();
|
|
572
457
|
__iconData4 = {
|
|
573
|
-
name: "
|
|
458
|
+
name: "key-round",
|
|
574
459
|
size: 24,
|
|
575
460
|
node: [
|
|
576
|
-
[
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
["
|
|
584
|
-
["path", { d: "M8 12H3", key: "a7s4jb" }]
|
|
461
|
+
[
|
|
462
|
+
"path",
|
|
463
|
+
{
|
|
464
|
+
d: "M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",
|
|
465
|
+
key: "1s6t7t"
|
|
466
|
+
}
|
|
467
|
+
],
|
|
468
|
+
["circle", { cx: "16.5", cy: "7.5", r: ".5", fill: "currentColor", key: "w0ekpg" }]
|
|
585
469
|
]
|
|
586
470
|
};
|
|
587
471
|
__iconData4.node;
|
|
588
|
-
|
|
472
|
+
KeyRound = createLucideIcon(__iconData4);
|
|
589
473
|
}
|
|
590
474
|
});
|
|
591
475
|
|
|
592
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/
|
|
593
|
-
var
|
|
594
|
-
__export(
|
|
476
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/layers.mjs
|
|
477
|
+
var layers_exports = {};
|
|
478
|
+
__export(layers_exports, {
|
|
595
479
|
__iconData: () => __iconData5,
|
|
596
|
-
default: () =>
|
|
480
|
+
default: () => Layers
|
|
597
481
|
});
|
|
598
|
-
var __iconData5,
|
|
599
|
-
var
|
|
600
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/
|
|
482
|
+
var __iconData5, Layers;
|
|
483
|
+
var init_layers = __esm({
|
|
484
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/layers.mjs"() {
|
|
601
485
|
init_createLucideIcon();
|
|
602
486
|
__iconData5 = {
|
|
603
|
-
name: "
|
|
487
|
+
name: "layers",
|
|
604
488
|
size: 24,
|
|
605
489
|
node: [
|
|
606
|
-
[
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
490
|
+
[
|
|
491
|
+
"path",
|
|
492
|
+
{
|
|
493
|
+
d: "M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",
|
|
494
|
+
key: "zw3jo"
|
|
495
|
+
}
|
|
496
|
+
],
|
|
497
|
+
[
|
|
498
|
+
"path",
|
|
499
|
+
{
|
|
500
|
+
d: "M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",
|
|
501
|
+
key: "1wduqc"
|
|
502
|
+
}
|
|
503
|
+
],
|
|
504
|
+
[
|
|
505
|
+
"path",
|
|
506
|
+
{
|
|
507
|
+
d: "M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",
|
|
508
|
+
key: "kqbvx6"
|
|
509
|
+
}
|
|
510
|
+
]
|
|
511
|
+
],
|
|
512
|
+
aliases: ["layers-3"]
|
|
610
513
|
};
|
|
611
514
|
__iconData5.node;
|
|
612
|
-
|
|
515
|
+
Layers = createLucideIcon(__iconData5);
|
|
613
516
|
}
|
|
614
517
|
});
|
|
615
518
|
|
|
@@ -635,80 +538,478 @@ var init_list = __esm({
|
|
|
635
538
|
["path", { d: "M8 19h13", key: "m83p4d" }]
|
|
636
539
|
]
|
|
637
540
|
};
|
|
638
|
-
__iconData6.node;
|
|
639
|
-
List = createLucideIcon(__iconData6);
|
|
541
|
+
__iconData6.node;
|
|
542
|
+
List = createLucideIcon(__iconData6);
|
|
543
|
+
}
|
|
544
|
+
});
|
|
545
|
+
|
|
546
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/lock.mjs
|
|
547
|
+
var lock_exports = {};
|
|
548
|
+
__export(lock_exports, {
|
|
549
|
+
__iconData: () => __iconData7,
|
|
550
|
+
default: () => Lock
|
|
551
|
+
});
|
|
552
|
+
var __iconData7, Lock;
|
|
553
|
+
var init_lock = __esm({
|
|
554
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/lock.mjs"() {
|
|
555
|
+
init_createLucideIcon();
|
|
556
|
+
__iconData7 = {
|
|
557
|
+
name: "lock",
|
|
558
|
+
size: 24,
|
|
559
|
+
node: [
|
|
560
|
+
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
|
561
|
+
["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
|
|
562
|
+
]
|
|
563
|
+
};
|
|
564
|
+
__iconData7.node;
|
|
565
|
+
Lock = createLucideIcon(__iconData7);
|
|
566
|
+
}
|
|
567
|
+
});
|
|
568
|
+
|
|
569
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/lock-open.mjs
|
|
570
|
+
var lock_open_exports = {};
|
|
571
|
+
__export(lock_open_exports, {
|
|
572
|
+
__iconData: () => __iconData8,
|
|
573
|
+
default: () => LockOpen
|
|
574
|
+
});
|
|
575
|
+
var __iconData8, LockOpen;
|
|
576
|
+
var init_lock_open = __esm({
|
|
577
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/lock-open.mjs"() {
|
|
578
|
+
init_createLucideIcon();
|
|
579
|
+
__iconData8 = {
|
|
580
|
+
name: "lock-open",
|
|
581
|
+
size: 24,
|
|
582
|
+
node: [
|
|
583
|
+
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
|
584
|
+
["path", { d: "M7 11V7a5 5 0 0 1 9.9-1", key: "1mm8w8" }]
|
|
585
|
+
],
|
|
586
|
+
aliases: ["unlock"]
|
|
587
|
+
};
|
|
588
|
+
__iconData8.node;
|
|
589
|
+
LockOpen = createLucideIcon(__iconData8);
|
|
590
|
+
}
|
|
591
|
+
});
|
|
592
|
+
|
|
593
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/pencil.mjs
|
|
594
|
+
var pencil_exports = {};
|
|
595
|
+
__export(pencil_exports, {
|
|
596
|
+
__iconData: () => __iconData9,
|
|
597
|
+
default: () => Pencil
|
|
598
|
+
});
|
|
599
|
+
var __iconData9, Pencil;
|
|
600
|
+
var init_pencil = __esm({
|
|
601
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/pencil.mjs"() {
|
|
602
|
+
init_createLucideIcon();
|
|
603
|
+
__iconData9 = {
|
|
604
|
+
name: "pencil",
|
|
605
|
+
size: 24,
|
|
606
|
+
node: [
|
|
607
|
+
[
|
|
608
|
+
"path",
|
|
609
|
+
{
|
|
610
|
+
d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",
|
|
611
|
+
key: "1a8usu"
|
|
612
|
+
}
|
|
613
|
+
],
|
|
614
|
+
["path", { d: "m15 5 4 4", key: "1mk7zo" }]
|
|
615
|
+
]
|
|
616
|
+
};
|
|
617
|
+
__iconData9.node;
|
|
618
|
+
Pencil = createLucideIcon(__iconData9);
|
|
619
|
+
}
|
|
620
|
+
});
|
|
621
|
+
|
|
622
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/plus.mjs
|
|
623
|
+
var plus_exports = {};
|
|
624
|
+
__export(plus_exports, {
|
|
625
|
+
__iconData: () => __iconData10,
|
|
626
|
+
default: () => Plus
|
|
627
|
+
});
|
|
628
|
+
var __iconData10, Plus;
|
|
629
|
+
var init_plus = __esm({
|
|
630
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/plus.mjs"() {
|
|
631
|
+
init_createLucideIcon();
|
|
632
|
+
__iconData10 = {
|
|
633
|
+
name: "plus",
|
|
634
|
+
size: 24,
|
|
635
|
+
node: [
|
|
636
|
+
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
637
|
+
["path", { d: "M12 5v14", key: "s699le" }]
|
|
638
|
+
]
|
|
639
|
+
};
|
|
640
|
+
__iconData10.node;
|
|
641
|
+
Plus = createLucideIcon(__iconData10);
|
|
642
|
+
}
|
|
643
|
+
});
|
|
644
|
+
|
|
645
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/refresh-cw.mjs
|
|
646
|
+
var refresh_cw_exports = {};
|
|
647
|
+
__export(refresh_cw_exports, {
|
|
648
|
+
__iconData: () => __iconData11,
|
|
649
|
+
default: () => RefreshCw
|
|
650
|
+
});
|
|
651
|
+
var __iconData11, RefreshCw;
|
|
652
|
+
var init_refresh_cw = __esm({
|
|
653
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/refresh-cw.mjs"() {
|
|
654
|
+
init_createLucideIcon();
|
|
655
|
+
__iconData11 = {
|
|
656
|
+
name: "refresh-cw",
|
|
657
|
+
size: 24,
|
|
658
|
+
node: [
|
|
659
|
+
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
660
|
+
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
661
|
+
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
662
|
+
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
663
|
+
]
|
|
664
|
+
};
|
|
665
|
+
__iconData11.node;
|
|
666
|
+
RefreshCw = createLucideIcon(__iconData11);
|
|
667
|
+
}
|
|
668
|
+
});
|
|
669
|
+
|
|
670
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/shield.mjs
|
|
671
|
+
var shield_exports = {};
|
|
672
|
+
__export(shield_exports, {
|
|
673
|
+
__iconData: () => __iconData12,
|
|
674
|
+
default: () => Shield
|
|
675
|
+
});
|
|
676
|
+
var __iconData12, Shield;
|
|
677
|
+
var init_shield = __esm({
|
|
678
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/shield.mjs"() {
|
|
679
|
+
init_createLucideIcon();
|
|
680
|
+
__iconData12 = {
|
|
681
|
+
name: "shield",
|
|
682
|
+
size: 24,
|
|
683
|
+
node: [
|
|
684
|
+
[
|
|
685
|
+
"path",
|
|
686
|
+
{
|
|
687
|
+
d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
|
|
688
|
+
key: "oel41y"
|
|
689
|
+
}
|
|
690
|
+
]
|
|
691
|
+
]
|
|
692
|
+
};
|
|
693
|
+
__iconData12.node;
|
|
694
|
+
Shield = createLucideIcon(__iconData12);
|
|
695
|
+
}
|
|
696
|
+
});
|
|
697
|
+
|
|
698
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/shield-check.mjs
|
|
699
|
+
var shield_check_exports = {};
|
|
700
|
+
__export(shield_check_exports, {
|
|
701
|
+
__iconData: () => __iconData13,
|
|
702
|
+
default: () => ShieldCheck
|
|
703
|
+
});
|
|
704
|
+
var __iconData13, ShieldCheck;
|
|
705
|
+
var init_shield_check = __esm({
|
|
706
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/shield-check.mjs"() {
|
|
707
|
+
init_createLucideIcon();
|
|
708
|
+
__iconData13 = {
|
|
709
|
+
name: "shield-check",
|
|
710
|
+
size: 24,
|
|
711
|
+
node: [
|
|
712
|
+
[
|
|
713
|
+
"path",
|
|
714
|
+
{
|
|
715
|
+
d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
|
|
716
|
+
key: "oel41y"
|
|
717
|
+
}
|
|
718
|
+
],
|
|
719
|
+
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
720
|
+
]
|
|
721
|
+
};
|
|
722
|
+
__iconData13.node;
|
|
723
|
+
ShieldCheck = createLucideIcon(__iconData13);
|
|
724
|
+
}
|
|
725
|
+
});
|
|
726
|
+
|
|
727
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/shield-plus.mjs
|
|
728
|
+
var shield_plus_exports = {};
|
|
729
|
+
__export(shield_plus_exports, {
|
|
730
|
+
__iconData: () => __iconData14,
|
|
731
|
+
default: () => ShieldPlus
|
|
732
|
+
});
|
|
733
|
+
var __iconData14, ShieldPlus;
|
|
734
|
+
var init_shield_plus = __esm({
|
|
735
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/shield-plus.mjs"() {
|
|
736
|
+
init_createLucideIcon();
|
|
737
|
+
__iconData14 = {
|
|
738
|
+
name: "shield-plus",
|
|
739
|
+
size: 24,
|
|
740
|
+
node: [
|
|
741
|
+
[
|
|
742
|
+
"path",
|
|
743
|
+
{
|
|
744
|
+
d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
|
|
745
|
+
key: "oel41y"
|
|
746
|
+
}
|
|
747
|
+
],
|
|
748
|
+
["path", { d: "M9 12h6", key: "1c52cq" }],
|
|
749
|
+
["path", { d: "M12 9v6", key: "199k2o" }]
|
|
750
|
+
]
|
|
751
|
+
};
|
|
752
|
+
__iconData14.node;
|
|
753
|
+
ShieldPlus = createLucideIcon(__iconData14);
|
|
754
|
+
}
|
|
755
|
+
});
|
|
756
|
+
|
|
757
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/sliders-horizontal.mjs
|
|
758
|
+
var sliders_horizontal_exports = {};
|
|
759
|
+
__export(sliders_horizontal_exports, {
|
|
760
|
+
__iconData: () => __iconData15,
|
|
761
|
+
default: () => SlidersHorizontal
|
|
762
|
+
});
|
|
763
|
+
var __iconData15, SlidersHorizontal;
|
|
764
|
+
var init_sliders_horizontal = __esm({
|
|
765
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/sliders-horizontal.mjs"() {
|
|
766
|
+
init_createLucideIcon();
|
|
767
|
+
__iconData15 = {
|
|
768
|
+
name: "sliders-horizontal",
|
|
769
|
+
size: 24,
|
|
770
|
+
node: [
|
|
771
|
+
["path", { d: "M10 5H3", key: "1qgfaw" }],
|
|
772
|
+
["path", { d: "M12 19H3", key: "yhmn1j" }],
|
|
773
|
+
["path", { d: "M14 3v4", key: "1sua03" }],
|
|
774
|
+
["path", { d: "M16 17v4", key: "1q0r14" }],
|
|
775
|
+
["path", { d: "M21 12h-9", key: "1o4lsq" }],
|
|
776
|
+
["path", { d: "M21 19h-5", key: "1rlt1p" }],
|
|
777
|
+
["path", { d: "M21 5h-7", key: "1oszz2" }],
|
|
778
|
+
["path", { d: "M8 10v4", key: "tgpxqk" }],
|
|
779
|
+
["path", { d: "M8 12H3", key: "a7s4jb" }]
|
|
780
|
+
]
|
|
781
|
+
};
|
|
782
|
+
__iconData15.node;
|
|
783
|
+
SlidersHorizontal = createLucideIcon(__iconData15);
|
|
784
|
+
}
|
|
785
|
+
});
|
|
786
|
+
|
|
787
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/trash.mjs
|
|
788
|
+
var __iconData16, Trash;
|
|
789
|
+
var init_trash = __esm({
|
|
790
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/trash.mjs"() {
|
|
791
|
+
init_createLucideIcon();
|
|
792
|
+
__iconData16 = {
|
|
793
|
+
name: "trash",
|
|
794
|
+
size: 24,
|
|
795
|
+
node: [
|
|
796
|
+
["path", { d: "M10 11v6", key: "nco0om" }],
|
|
797
|
+
["path", { d: "M14 11v6", key: "outv1u" }],
|
|
798
|
+
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
799
|
+
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
800
|
+
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
801
|
+
],
|
|
802
|
+
aliases: ["trash-2"]
|
|
803
|
+
};
|
|
804
|
+
__iconData16.node;
|
|
805
|
+
Trash = createLucideIcon(__iconData16);
|
|
806
|
+
}
|
|
807
|
+
});
|
|
808
|
+
|
|
809
|
+
// node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/trash-2.mjs
|
|
810
|
+
var trash_2_exports = {};
|
|
811
|
+
__export(trash_2_exports, {
|
|
812
|
+
default: () => Trash
|
|
813
|
+
});
|
|
814
|
+
var init_trash_2 = __esm({
|
|
815
|
+
"node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/trash-2.mjs"() {
|
|
816
|
+
init_trash();
|
|
817
|
+
}
|
|
818
|
+
});
|
|
819
|
+
|
|
820
|
+
// packages/addons/vault/client/ui/icons.cjs
|
|
821
|
+
var require_icons2 = __commonJS({
|
|
822
|
+
"packages/addons/vault/client/ui/icons.cjs"(exports2, module2) {
|
|
823
|
+
"use strict";
|
|
824
|
+
var icons = require_icons();
|
|
825
|
+
var set = icons.create("wbv", {
|
|
826
|
+
"database": (init_database(), __toCommonJS(database_exports)).default,
|
|
827
|
+
"eye": (init_eye(), __toCommonJS(eye_exports)).default,
|
|
828
|
+
"folder": (init_folder(), __toCommonJS(folder_exports)).default,
|
|
829
|
+
"key-round": (init_key_round(), __toCommonJS(key_round_exports)).default,
|
|
830
|
+
"layers": (init_layers(), __toCommonJS(layers_exports)).default,
|
|
831
|
+
"list": (init_list(), __toCommonJS(list_exports)).default,
|
|
832
|
+
"lock": (init_lock(), __toCommonJS(lock_exports)).default,
|
|
833
|
+
"lock-open": (init_lock_open(), __toCommonJS(lock_open_exports)).default,
|
|
834
|
+
"pencil": (init_pencil(), __toCommonJS(pencil_exports)).default,
|
|
835
|
+
"plus": (init_plus(), __toCommonJS(plus_exports)).default,
|
|
836
|
+
"refresh-cw": (init_refresh_cw(), __toCommonJS(refresh_cw_exports)).default,
|
|
837
|
+
"shield": (init_shield(), __toCommonJS(shield_exports)).default,
|
|
838
|
+
"shield-check": (init_shield_check(), __toCommonJS(shield_check_exports)).default,
|
|
839
|
+
"shield-plus": (init_shield_plus(), __toCommonJS(shield_plus_exports)).default,
|
|
840
|
+
"sliders-horizontal": (init_sliders_horizontal(), __toCommonJS(sliders_horizontal_exports)).default,
|
|
841
|
+
"trash-2": (init_trash_2(), __toCommonJS(trash_2_exports)).default
|
|
842
|
+
});
|
|
843
|
+
module2.exports = { ICONS: set.ICONS, Icon: set.Icon };
|
|
844
|
+
}
|
|
845
|
+
});
|
|
846
|
+
|
|
847
|
+
// packages/addons/lib/filter-checklist-styles.cjs
|
|
848
|
+
var require_filter_checklist_styles = __commonJS({
|
|
849
|
+
"packages/addons/lib/filter-checklist-styles.cjs"(exports2, module2) {
|
|
850
|
+
"use strict";
|
|
851
|
+
module2.exports = [
|
|
852
|
+
".wbck{display:flex;flex-direction:column;min-width:0}",
|
|
853
|
+
".wbck-search{padding:0 0 6px}",
|
|
854
|
+
".wbck-input{width:100%;box-sizing:border-box;font:inherit;font-size:12.5px;padding:6px 9px;border:1px solid var(--wb-border);border-radius:8px;background:var(--wb-surface);color:inherit}",
|
|
855
|
+
".wbck-input:focus-visible{outline:2px solid var(--wb-accent);outline-offset:1px}",
|
|
856
|
+
".wbck-input:disabled{opacity:.6;cursor:not-allowed}",
|
|
857
|
+
".wbck-head{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--wb-muted);padding:2px 4px 7px}",
|
|
858
|
+
".wbck-grow{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",
|
|
859
|
+
".wbck-sel{flex:none;color:var(--wb-accent)}",
|
|
860
|
+
".wbck-clear{appearance:none;flex:none;border:0;background:transparent;color:inherit;border-radius:4px;margin:0;padding:3px 5px;font:inherit;font-size:11.5px;line-height:1;cursor:pointer;opacity:.75}",
|
|
861
|
+
".wbck-clear:hover:enabled{opacity:1;background:color-mix(in srgb, currentColor 8%, transparent)}",
|
|
862
|
+
".wbck-clear:focus-visible{outline:2px solid var(--wb-accent);outline-offset:1px}",
|
|
863
|
+
".wbck-clear:disabled{opacity:.4;cursor:not-allowed}",
|
|
864
|
+
".wbck-list{max-height:220px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--wb-border);border-radius:10px;padding:2px}",
|
|
865
|
+
".wbck-opt{display:flex;align-items:center;gap:7px;padding:6px;border-radius:6px;font-size:12.5px;cursor:pointer}",
|
|
866
|
+
".wbck-opt:hover{background:color-mix(in srgb, currentColor 7%, transparent)}",
|
|
867
|
+
".wbck-opt.is-on{background:color-mix(in srgb, var(--wb-accent) 10%, transparent)}",
|
|
868
|
+
".wbck-opt input{margin:0;flex:none;accent-color:var(--wb-accent)}",
|
|
869
|
+
// 单选变体用 button 渲染(role="radio"),这里把浏览器默认按钮样式清掉,视觉与多选行一致。
|
|
870
|
+
'.wbck-opt[role="radio"]{appearance:none;width:100%;box-sizing:border-box;border:0;background:transparent;color:inherit;font:inherit;text-align:left}',
|
|
871
|
+
'.wbck-opt[role="radio"]:disabled{opacity:.55;cursor:not-allowed}',
|
|
872
|
+
'.wbck-opt[role="radio"]:focus-visible{outline:2px solid var(--wb-accent);outline-offset:-2px}',
|
|
873
|
+
".wbck-nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",
|
|
874
|
+
".wbck-meta{margin-left:auto;flex:none;font-size:11.5px;color:var(--wb-muted)}",
|
|
875
|
+
".wbck-note{font-size:12px;color:var(--wb-muted);padding:8px 6px}",
|
|
876
|
+
".wbck-more{font-size:11px;color:var(--wb-muted);text-align:center;padding:6px 0 2px;opacity:.8}",
|
|
877
|
+
"@media (max-width:760px){.wbck-list{max-height:200px}}"
|
|
878
|
+
];
|
|
879
|
+
}
|
|
880
|
+
});
|
|
881
|
+
|
|
882
|
+
// packages/addons/lib/client-base-styles.cjs
|
|
883
|
+
var require_client_base_styles = __commonJS({
|
|
884
|
+
"packages/addons/lib/client-base-styles.cjs"(exports2, module2) {
|
|
885
|
+
"use strict";
|
|
886
|
+
var SECRET_FIELD = [
|
|
887
|
+
".wb-secret-field{position:relative;display:flex;align-items:center;min-width:0}",
|
|
888
|
+
".wb-secret-field input{flex:1 1 auto;min-width:0;padding-right:34px}",
|
|
889
|
+
".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,#6b7280);cursor:pointer}",
|
|
890
|
+
".wb-eye:hover:not(:disabled){color:var(--wb-accent,#2563eb);background:color-mix(in srgb, var(--wb-accent,#2563eb) 12%, transparent)}",
|
|
891
|
+
".wb-eye:focus-visible{outline:2px solid var(--wb-accent,#2563eb);outline-offset:1px}",
|
|
892
|
+
".wb-eye:disabled{opacity:.45;cursor:not-allowed}"
|
|
893
|
+
];
|
|
894
|
+
module2.exports = function baseStyles(prefix) {
|
|
895
|
+
var p = String(prefix || "wb");
|
|
896
|
+
var s = "." + p;
|
|
897
|
+
return SECRET_FIELD.concat([
|
|
898
|
+
s + "-wrap{display:flex;flex-direction:column;gap:12px;padding:16px;overflow:auto;height:100%;box-sizing:border-box}",
|
|
899
|
+
s + "-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}",
|
|
900
|
+
s + "-title{font-size:16px;font-weight:650;margin:0}",
|
|
901
|
+
s + "-sub{font-size:12px;color:var(--wb-muted,#6b7280);margin:2px 0 0}",
|
|
902
|
+
s + "-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}",
|
|
903
|
+
s + "-card{border:1px solid var(--wb-border,#e5e7eb);border-radius:10px;background:var(--wb-surface,#fff);padding:12px}",
|
|
904
|
+
s + "-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}",
|
|
905
|
+
s + "-kpi{font-size:22px;font-weight:700;line-height:1.2}" + s + "-kpi-label{font-size:12px;color:var(--wb-muted,#6b7280)}",
|
|
906
|
+
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,#eef0f3);text-align:left;vertical-align:top}",
|
|
907
|
+
s + "-table th{font-weight:600;color:var(--wb-muted,#6b7280);white-space:nowrap}",
|
|
908
|
+
s + "-btn{border:1px solid var(--wb-border,#d1d5db);background:var(--wb-surface,#fff);color:inherit;border-radius:7px;padding:5px 10px;font-size:12px;cursor:pointer}",
|
|
909
|
+
s + "-btn:hover:not(:disabled){border-color:var(--wb-accent,#2563eb)}" + s + "-btn:disabled{opacity:.5;cursor:default}",
|
|
910
|
+
s + "-btn.primary{background:var(--wb-accent,#2563eb);border-color:var(--wb-accent,#2563eb);color:#fff}",
|
|
911
|
+
s + "-btn.danger{color:#b91c1c;border-color:#fecaca}",
|
|
912
|
+
s + "-field{display:flex;flex-direction:column;gap:4px;font-size:12px}" + s + "-label{font-weight:600}",
|
|
913
|
+
s + "-field input," + s + "-field select," + s + "-field textarea{border:1px solid var(--wb-border,#d1d5db);border-radius:7px;padding:6px 8px;font:inherit;background:var(--wb-surface,#fff);color:inherit;min-width:0}",
|
|
914
|
+
s + "-hint{color:var(--wb-muted,#6b7280);font-size:11px}" + s + "-notice{padding:8px 10px;border-radius:8px;font-size:12px;background:#eff6ff;color:#1e40af}",
|
|
915
|
+
s + "-notice.error{background:#fef2f2;color:#b91c1c}" + s + "-notice.ok{background:#ecfdf5;color:#047857}",
|
|
916
|
+
s + "-empty{padding:18px;text-align:center;color:var(--wb-muted,#6b7280);font-size:12px;border:1px dashed var(--wb-border,#e5e7eb);border-radius:8px}",
|
|
917
|
+
s + "-pill{display:inline-block;padding:1px 7px;border-radius:999px;font-size:11px;background:#f3f4f6;color:#374151}",
|
|
918
|
+
s + "-pill.ok{background:#ecfdf5;color:#047857}" + s + "-pill.error{background:#fef2f2;color:#b91c1c}" + s + "-pill.warn{background:#fffbeb;color:#b45309}",
|
|
919
|
+
s + "-json{margin:0;padding:8px;background:#f8fafc;border-radius:8px;font-size:11px;max-height:240px;overflow:auto}",
|
|
920
|
+
s + "-muted{color:var(--wb-muted,#6b7280)}" + s + "-link{color:var(--wb-accent,#2563eb);cursor:pointer;text-decoration:none}",
|
|
921
|
+
s + "-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}"
|
|
922
|
+
]);
|
|
923
|
+
};
|
|
924
|
+
module2.exports.secretFieldStyles = SECRET_FIELD;
|
|
640
925
|
}
|
|
641
926
|
});
|
|
642
927
|
|
|
643
|
-
//
|
|
644
|
-
var
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
name: "layers",
|
|
655
|
-
size: 24,
|
|
656
|
-
node: [
|
|
657
|
-
[
|
|
658
|
-
"path",
|
|
659
|
-
{
|
|
660
|
-
d: "M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",
|
|
661
|
-
key: "zw3jo"
|
|
662
|
-
}
|
|
663
|
-
],
|
|
664
|
-
[
|
|
665
|
-
"path",
|
|
666
|
-
{
|
|
667
|
-
d: "M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",
|
|
668
|
-
key: "1wduqc"
|
|
669
|
-
}
|
|
670
|
-
],
|
|
671
|
-
[
|
|
672
|
-
"path",
|
|
673
|
-
{
|
|
674
|
-
d: "M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",
|
|
675
|
-
key: "kqbvx6"
|
|
676
|
-
}
|
|
677
|
-
]
|
|
678
|
-
],
|
|
679
|
-
aliases: ["layers-3"]
|
|
928
|
+
// packages/addons/lib/icon-label.cjs
|
|
929
|
+
var require_icon_label = __commonJS({
|
|
930
|
+
"packages/addons/lib/icon-label.cjs"(exports2, module2) {
|
|
931
|
+
"use strict";
|
|
932
|
+
module2.exports = function iconLabel(h, Icon2, text) {
|
|
933
|
+
return h(
|
|
934
|
+
"span",
|
|
935
|
+
{ className: "wb-icon-label" },
|
|
936
|
+
Icon2 ? h(Icon2, { size: 14, strokeWidth: 2, "aria-hidden": true, focusable: false }) : null,
|
|
937
|
+
h("span", null, text)
|
|
938
|
+
);
|
|
680
939
|
};
|
|
681
|
-
|
|
682
|
-
Layers = createLucideIcon(__iconData7);
|
|
940
|
+
module2.exports.styles = ".wb-icon-label{display:inline-flex;align-items:center;gap:5px;max-width:100%;vertical-align:middle;text-align:start}.wb-icon-label>svg{flex:none}.wb-icon-label>span{min-width:0;overflow-wrap:anywhere}";
|
|
683
941
|
}
|
|
684
942
|
});
|
|
685
943
|
|
|
686
|
-
//
|
|
687
|
-
var
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
944
|
+
// packages/addons/vault/client/ui/styles.cjs
|
|
945
|
+
var require_styles = __commonJS({
|
|
946
|
+
"packages/addons/vault/client/ui/styles.cjs"(exports2, module2) {
|
|
947
|
+
"use strict";
|
|
948
|
+
module2.exports = [
|
|
949
|
+
".wbv{display:flex;flex-direction:column;gap:14px;font-size:13px;min-height:100%;padding:2px}",
|
|
950
|
+
".wbv h2{font-size:17px;margin:0}.wbv h3{font-size:14px;margin:0}",
|
|
951
|
+
".wbv-muted{opacity:.62}.wbv-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}",
|
|
952
|
+
".wbv-grow{flex:1}.wbv-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}",
|
|
953
|
+
".wbv-card{border:1px solid var(--wb-border);border-radius:10px;padding:12px;background:var(--wb-card)}",
|
|
954
|
+
".wbv-card h3{margin-bottom:6px}.wbv-kpi{font-size:22px;font-weight:650;line-height:1.2}",
|
|
955
|
+
".wbv-btn{border:1px solid var(--wb-border);background:var(--wb-card);color:inherit;border-radius:7px;padding:5px 10px;cursor:pointer;font-size:12px;line-height:1.4}",
|
|
956
|
+
".wbv-btn:hover:enabled{border-color:var(--wb-accent)}.wbv-btn:disabled{opacity:.45;cursor:not-allowed}",
|
|
957
|
+
".wbv-btn:focus-visible{outline:2px solid var(--wb-accent);outline-offset:2px}",
|
|
958
|
+
".wbv-btn.primary{background:var(--wb-accent);border-color:var(--wb-accent);color:var(--wb-on-accent,inherit)}",
|
|
959
|
+
".wbv-btn.danger{color:var(--wb-danger);border-color:color-mix(in srgb,var(--wb-danger) 45%,transparent)}",
|
|
960
|
+
".wbv-btn.ghost{background:transparent;border-color:transparent;color:var(--wb-accent);padding:2px 4px}",
|
|
961
|
+
".wbv-btn.wbv-delete{color:var(--wb-danger)}",
|
|
962
|
+
".wbv-field{display:flex;flex-direction:column;gap:4px;min-width:180px;flex:1}",
|
|
963
|
+
".wbv-label{font-size:11px;font-weight:600;opacity:.75}.wbv-hint{font-size:11px;opacity:.55}",
|
|
964
|
+
".wbv input,.wbv select,.wbv textarea{border:1px solid var(--wb-border);border-radius:7px;padding:6px 8px;font:inherit;background:var(--wb-surface);color:inherit;width:100%;box-sizing:border-box}",
|
|
965
|
+
".wbv input[type=checkbox]{width:auto}",
|
|
966
|
+
".wbv textarea{min-height:70px;resize:vertical}",
|
|
967
|
+
".wbv-notice{border-radius:8px;padding:8px 10px;font-size:12px;border:1px solid var(--wb-border);background:color-mix(in srgb,var(--wb-accent) 8%,transparent);color:inherit}",
|
|
968
|
+
".wbv-notice.error{border-color:color-mix(in srgb,var(--wb-danger) 45%,transparent);background:color-mix(in srgb,var(--wb-danger) 10%,transparent);color:var(--wb-danger)}",
|
|
969
|
+
".wbv-notice.ok{border-color:color-mix(in srgb,var(--wb-ok) 45%,transparent);background:color-mix(in srgb,var(--wb-ok) 10%,transparent);color:var(--wb-ok)}",
|
|
970
|
+
".wbv-empty{padding:22px;text-align:center;opacity:.55;border:1px dashed var(--wb-border);border-radius:10px}",
|
|
971
|
+
".wbv-table-scroll{max-width:100%;overflow-x:auto;padding:4px}.wbv-table-scroll:focus-visible{outline:2px solid var(--wb-accent);outline-offset:-2px}",
|
|
972
|
+
".wbv-table{width:100%;border-collapse:collapse;font-size:12px}",
|
|
973
|
+
".wbv-table th,.wbv-table td{text-align:left;padding:7px 8px;border-bottom:1px solid var(--wb-line);vertical-align:top}",
|
|
974
|
+
".wbv-table th{font-weight:600;opacity:.65;white-space:nowrap}.wbv-table code{font-size:11px;opacity:.8}",
|
|
975
|
+
".wbv-table tbody tr:hover{background:color-mix(in srgb,var(--wb-muted) 8%,transparent)}",
|
|
976
|
+
".wbv-pill{display:inline-block;border-radius:999px;padding:1px 8px;font-size:11px;background:color-mix(in srgb,var(--wb-muted) 14%,transparent);color:inherit}",
|
|
977
|
+
".wbv-pill.ok{background:color-mix(in srgb,var(--wb-ok) 16%,transparent);color:var(--wb-ok)}",
|
|
978
|
+
".wbv-pill.warn{background:color-mix(in srgb,var(--wb-warn) 18%,transparent);color:var(--wb-warn)}",
|
|
979
|
+
".wbv-pill.bad{background:color-mix(in srgb,var(--wb-danger) 16%,transparent);color:var(--wb-danger)}",
|
|
980
|
+
".wbv-tabs{display:flex;gap:6px;flex-wrap:wrap}.wbv-tab{border:none;background:transparent;padding:4px 8px;border-radius:6px;cursor:pointer;font-size:12px}",
|
|
981
|
+
".wbv-tab.on{background:color-mix(in srgb,var(--wb-accent) 12%,transparent);color:var(--wb-accent);font-weight:600}",
|
|
982
|
+
".wbv-secret{font-family:ui-monospace,Menlo,Consolas,monospace;background:var(--wb-surface);border:1px solid var(--wb-border);border-radius:6px;padding:6px 8px;word-break:break-all}",
|
|
983
|
+
".wbv-inline{display:flex;gap:6px;align-items:center;flex-wrap:wrap}",
|
|
984
|
+
".wbv-modal{position:fixed;inset:0;background:color-mix(in srgb,var(--wb-muted) 45%,transparent);display:flex;align-items:center;justify-content:center;z-index:50;padding:18px}",
|
|
985
|
+
".wbv-modal-box{background:var(--wb-card);border:1px solid var(--wb-border);border-radius:12px;padding:16px;width:min(520px,100%);max-height:88vh;overflow:auto;display:flex;flex-direction:column;gap:10px;box-shadow:0 12px 40px color-mix(in srgb,var(--wb-muted) 30%,transparent)}",
|
|
986
|
+
".wbv-code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11px;white-space:pre-wrap;word-break:break-word;background:var(--wb-surface);border:1px solid var(--wb-border);border-radius:8px;padding:10px;max-height:320px;overflow:auto}",
|
|
987
|
+
".wbv-split{display:grid;grid-template-columns:minmax(260px,1fr) minmax(320px,1.6fr);gap:12px;align-items:start}",
|
|
988
|
+
".wbv-list{display:flex;flex-direction:column;gap:6px}",
|
|
989
|
+
".wbv-item{border:1px solid var(--wb-border);border-radius:10px;padding:9px 10px;background:var(--wb-card);cursor:pointer}",
|
|
990
|
+
".wbv-item:hover{border-color:var(--wb-accent)}",
|
|
991
|
+
".wbv-item.on{border-color:var(--wb-accent);box-shadow:inset 3px 0 0 var(--wb-accent)}",
|
|
992
|
+
".wbv-item-top{display:flex;gap:8px;align-items:center}",
|
|
993
|
+
".wbv-dot{width:10px;height:10px;border-radius:999px;flex:none;background:var(--wb-accent)}",
|
|
994
|
+
".wbv-chips{display:flex;gap:6px;flex-wrap:wrap}",
|
|
995
|
+
".wbv-chip{display:inline-flex;gap:6px;align-items:center;border:1px solid var(--wb-border);border-radius:999px;padding:2px 8px;font-size:11px;background:var(--wb-surface)}",
|
|
996
|
+
".wbv-check{display:flex;gap:6px;align-items:center;padding:3px 0;font-size:12px}",
|
|
997
|
+
".wbv-scroll{max-height:220px;overflow:auto;border:1px solid var(--wb-border);border-radius:8px;padding:8px}",
|
|
998
|
+
"@media (max-width:820px){.wbv-split{grid-template-columns:1fr}}",
|
|
999
|
+
".wbv-search{flex:0 0 220px;width:220px}",
|
|
1000
|
+
".wbv-row>input:not([type=checkbox]),.wbv-row>select{width:auto;flex:0 1 220px;min-width:120px}",
|
|
1001
|
+
".wbv-sub{font-size:12px;opacity:.65;margin-top:2px}",
|
|
1002
|
+
".wbv-table tbody tr:hover{background:color-mix(in srgb,var(--wb-accent) 6%,transparent)}",
|
|
1003
|
+
".wbv-table td{vertical-align:top}",
|
|
1004
|
+
".wbv-empty-card{border:1px dashed var(--wb-border);border-radius:10px;padding:28px 16px;display:flex;flex-direction:column;gap:8px;align-items:center;text-align:center;background:var(--wb-card)}",
|
|
1005
|
+
".wbv-empty-title{font-size:14px;font-weight:600}",
|
|
1006
|
+
".wbv-check-list{display:flex;flex-wrap:wrap;gap:6px 14px;margin:4px 0}",
|
|
1007
|
+
".wbv-check{display:inline-flex;align-items:center;gap:6px;font-size:12px;cursor:pointer}",
|
|
1008
|
+
".wbv-dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex:none}",
|
|
1009
|
+
".wbv-lock-card{max-width:560px;margin:28px auto;padding:26px 24px;border:1px solid var(--wb-border);border-radius:12px;background:var(--wb-card);display:flex;flex-direction:column;gap:8px;align-items:flex-start}",
|
|
1010
|
+
".wbv-lock-ico{color:var(--wb-muted)}",
|
|
1011
|
+
".wbv-lock-title{font-size:15px;font-weight:600}"
|
|
1012
|
+
].concat(require_filter_checklist_styles()).concat(require_client_base_styles().secretFieldStyles, require_icon_label().styles);
|
|
712
1013
|
}
|
|
713
1014
|
});
|
|
714
1015
|
|
|
@@ -838,46 +1139,17 @@ var require_common = __commonJS({
|
|
|
838
1139
|
}
|
|
839
1140
|
});
|
|
840
1141
|
|
|
841
|
-
// node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/eye.mjs
|
|
842
|
-
var eye_exports = {};
|
|
843
|
-
__export(eye_exports, {
|
|
844
|
-
__iconData: () => __iconData9,
|
|
845
|
-
default: () => Eye
|
|
846
|
-
});
|
|
847
|
-
var __iconData9, Eye;
|
|
848
|
-
var init_eye = __esm({
|
|
849
|
-
"node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/eye.mjs"() {
|
|
850
|
-
init_createLucideIcon();
|
|
851
|
-
__iconData9 = {
|
|
852
|
-
name: "eye",
|
|
853
|
-
size: 24,
|
|
854
|
-
node: [
|
|
855
|
-
[
|
|
856
|
-
"path",
|
|
857
|
-
{
|
|
858
|
-
d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",
|
|
859
|
-
key: "1nclc0"
|
|
860
|
-
}
|
|
861
|
-
],
|
|
862
|
-
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
863
|
-
]
|
|
864
|
-
};
|
|
865
|
-
__iconData9.node;
|
|
866
|
-
Eye = createLucideIcon(__iconData9);
|
|
867
|
-
}
|
|
868
|
-
});
|
|
869
|
-
|
|
870
1142
|
// node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/eye-off.mjs
|
|
871
1143
|
var eye_off_exports = {};
|
|
872
1144
|
__export(eye_off_exports, {
|
|
873
|
-
__iconData: () =>
|
|
1145
|
+
__iconData: () => __iconData17,
|
|
874
1146
|
default: () => EyeOff
|
|
875
1147
|
});
|
|
876
|
-
var
|
|
1148
|
+
var __iconData17, EyeOff;
|
|
877
1149
|
var init_eye_off = __esm({
|
|
878
1150
|
"node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/eye-off.mjs"() {
|
|
879
1151
|
init_createLucideIcon();
|
|
880
|
-
|
|
1152
|
+
__iconData17 = {
|
|
881
1153
|
name: "eye-off",
|
|
882
1154
|
size: 24,
|
|
883
1155
|
node: [
|
|
@@ -899,8 +1171,8 @@ var init_eye_off = __esm({
|
|
|
899
1171
|
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
900
1172
|
]
|
|
901
1173
|
};
|
|
902
|
-
|
|
903
|
-
EyeOff = createLucideIcon(
|
|
1174
|
+
__iconData17.node;
|
|
1175
|
+
EyeOff = createLucideIcon(__iconData17);
|
|
904
1176
|
}
|
|
905
1177
|
});
|
|
906
1178
|
|
|
@@ -1020,8 +1292,13 @@ var require_ask_passphrase = __commonJS({
|
|
|
1020
1292
|
var require_status = __commonJS({
|
|
1021
1293
|
"packages/addons/vault/client/views/status.cjs"(exports2, module2) {
|
|
1022
1294
|
"use strict";
|
|
1295
|
+
var GLYPHS2 = require_icons2().ICONS;
|
|
1023
1296
|
var C = require_common();
|
|
1024
1297
|
var AskPassphrase = require_ask_passphrase();
|
|
1298
|
+
var iconLabel = require_icon_label();
|
|
1299
|
+
var Lock2 = GLYPHS2["lock"];
|
|
1300
|
+
var Unlock = GLYPHS2["lock-open"];
|
|
1301
|
+
var ShieldPlus2 = GLYPHS2["shield-plus"];
|
|
1025
1302
|
var SecretField = require_secret_field();
|
|
1026
1303
|
module2.exports = function StatusView(props) {
|
|
1027
1304
|
var h = props.h;
|
|
@@ -1214,7 +1491,7 @@ var require_status = __commonJS({
|
|
|
1214
1491
|
run(function() {
|
|
1215
1492
|
return C.call(api, "vault.setup", { passphrase: pass[0], mode: mode[0] });
|
|
1216
1493
|
});
|
|
1217
|
-
} }, busy[0] ? "\u521D\u59CB\u5316\u4E2D\u2026" : "\u521B\u5EFA\u4FDD\u9669\u7BB1")
|
|
1494
|
+
} }, iconLabel(h, ShieldPlus2, busy[0] ? "\u521D\u59CB\u5316\u4E2D\u2026" : "\u521B\u5EFA\u4FDD\u9669\u7BB1"))
|
|
1218
1495
|
)
|
|
1219
1496
|
);
|
|
1220
1497
|
}
|
|
@@ -1258,7 +1535,7 @@ var require_status = __commonJS({
|
|
|
1258
1535
|
return h(
|
|
1259
1536
|
"div",
|
|
1260
1537
|
{ className: "wbv" },
|
|
1261
|
-
h("h2", null, "\u4FDD\u9669\u7BB1\u5DF2\u9501\u5B9A"),
|
|
1538
|
+
h("h2", null, iconLabel(h, Lock2, "\u4FDD\u9669\u7BB1\u5DF2\u9501\u5B9A")),
|
|
1262
1539
|
h("p", { className: "wbv-muted" }, "\u8F93\u5165\u4E3B\u53E3\u4EE4\u89E3\u9501\u3002\u89E3\u9501\u72B6\u6001\u53EA\u4FDD\u5B58\u5728\u5F53\u524D\u8FDB\u7A0B\u5185\u5B58\uFF0C\u7A7A\u95F2\u8D85\u65F6\u4F1A\u81EA\u52A8\u9501\u5B9A\u3002"),
|
|
1263
1540
|
h(
|
|
1264
1541
|
"div",
|
|
@@ -1283,7 +1560,7 @@ var require_status = __commonJS({
|
|
|
1283
1560
|
run(function() {
|
|
1284
1561
|
return C.call(api, "vault.unlock", { passphrase: pass[0] });
|
|
1285
1562
|
});
|
|
1286
|
-
} }, busy[0] ? "\u89E3\u9501\u4E2D\u2026" : "\u89E3\u9501")
|
|
1563
|
+
} }, iconLabel(h, Unlock, busy[0] ? "\u89E3\u9501\u4E2D\u2026" : "\u89E3\u9501"))
|
|
1287
1564
|
),
|
|
1288
1565
|
h(C.Notice, { h, kind: "error", text: msg[0] }),
|
|
1289
1566
|
h("p", { className: "wbv-muted" }, "\u6A21\u5F0F\uFF1A" + modeName(status.unlockMode) + "\uFF1B\u8FDE\u7EED\u5931\u8D25 5 \u6B21\u4F1A\u9501\u5B9A 5 \u5206\u949F\u3002")
|
|
@@ -1329,7 +1606,7 @@ var require_status = __commonJS({
|
|
|
1329
1606
|
return h(
|
|
1330
1607
|
"div",
|
|
1331
1608
|
{ className: "wbv" },
|
|
1332
|
-
h("div", { className: "wbv-row" }, h("h2", { className: "wbv-grow" }, "\u51ED\u636E\u4FDD\u9669\u7BB1"), h(
|
|
1609
|
+
h("div", { className: "wbv-row" }, h("h2", { className: "wbv-grow" }, "\u51ED\u636E\u4FDD\u9669\u7BB1"), h(C.Pill, { h, kind: "ok" }, iconLabel(h, Unlock, "\u5DF2\u89E3\u9501"))),
|
|
1333
1610
|
h(
|
|
1334
1611
|
"div",
|
|
1335
1612
|
{ className: "wbv-grid" },
|
|
@@ -1346,7 +1623,7 @@ var require_status = __commonJS({
|
|
|
1346
1623
|
run(function() {
|
|
1347
1624
|
return C.call(api, "vault.lock");
|
|
1348
1625
|
});
|
|
1349
|
-
} }, "\u7ACB\u5373\u9501\u5B9A"),
|
|
1626
|
+
} }, iconLabel(h, Lock2, "\u7ACB\u5373\u9501\u5B9A")),
|
|
1350
1627
|
h(C.Btn, { h, onClick: function() {
|
|
1351
1628
|
askS[1]({ value: "", busy: false, error: "" });
|
|
1352
1629
|
} }, "\u5207\u56DE A \u6A21\u5F0F")
|
|
@@ -1363,6 +1640,82 @@ var require_status = __commonJS({
|
|
|
1363
1640
|
}
|
|
1364
1641
|
});
|
|
1365
1642
|
|
|
1643
|
+
// packages/addons/vault/client/ui/lock.cjs
|
|
1644
|
+
var require_lock = __commonJS({
|
|
1645
|
+
"packages/addons/vault/client/ui/lock.cjs"(exports2, module2) {
|
|
1646
|
+
"use strict";
|
|
1647
|
+
var GLYPHS2 = require_icons2().ICONS;
|
|
1648
|
+
var POLL_MS = 4e3;
|
|
1649
|
+
function useVaultLock(options) {
|
|
1650
|
+
var React = options.React;
|
|
1651
|
+
var api = options.api;
|
|
1652
|
+
var C = options.C;
|
|
1653
|
+
var every = Number(options.pollMs) > 0 ? Number(options.pollMs) : Number(obj.POLL_MS) || POLL_MS;
|
|
1654
|
+
var st = React.useState({ ready: false, locked: true, initialized: false, error: "" });
|
|
1655
|
+
var tick = React.useState(0);
|
|
1656
|
+
function read() {
|
|
1657
|
+
return C.call(api, "vault.status").then(function(data) {
|
|
1658
|
+
st[1](function(old) {
|
|
1659
|
+
var next = {
|
|
1660
|
+
ready: true,
|
|
1661
|
+
locked: !(data && data.locked === false),
|
|
1662
|
+
initialized: !!(data && data.initialized),
|
|
1663
|
+
error: ""
|
|
1664
|
+
};
|
|
1665
|
+
if (old.ready === next.ready && old.locked === next.locked && old.initialized === next.initialized && !old.error) return old;
|
|
1666
|
+
return next;
|
|
1667
|
+
});
|
|
1668
|
+
}).catch(function(e) {
|
|
1669
|
+
st[1](function(old) {
|
|
1670
|
+
return Object.assign({}, old, { ready: true, locked: true, error: C.errText(e) });
|
|
1671
|
+
});
|
|
1672
|
+
});
|
|
1673
|
+
}
|
|
1674
|
+
React.useEffect(function() {
|
|
1675
|
+
var alive = true;
|
|
1676
|
+
function poll() {
|
|
1677
|
+
if (alive) read();
|
|
1678
|
+
}
|
|
1679
|
+
poll();
|
|
1680
|
+
var timer = setInterval(poll, every);
|
|
1681
|
+
if (timer && typeof timer.unref === "function") timer.unref();
|
|
1682
|
+
return function() {
|
|
1683
|
+
alive = false;
|
|
1684
|
+
clearInterval(timer);
|
|
1685
|
+
};
|
|
1686
|
+
}, [tick[0]]);
|
|
1687
|
+
return {
|
|
1688
|
+
ready: st[0].ready,
|
|
1689
|
+
locked: st[0].locked,
|
|
1690
|
+
initialized: st[0].initialized,
|
|
1691
|
+
error: st[0].error,
|
|
1692
|
+
refresh: function() {
|
|
1693
|
+
tick[1](tick[0] + 1);
|
|
1694
|
+
}
|
|
1695
|
+
};
|
|
1696
|
+
}
|
|
1697
|
+
function Panel(props) {
|
|
1698
|
+
var h = props.h;
|
|
1699
|
+
var C = props.C;
|
|
1700
|
+
var en = props.lang === "en";
|
|
1701
|
+
return h(
|
|
1702
|
+
"div",
|
|
1703
|
+
{ className: "wbv" },
|
|
1704
|
+
h(
|
|
1705
|
+
"div",
|
|
1706
|
+
{ className: "wbv-lock-card", role: "status", "aria-live": "polite" },
|
|
1707
|
+
h(GLYPHS2.lock, { size: 22, strokeWidth: 2, "aria-hidden": "true", className: "wbv-lock-ico" }),
|
|
1708
|
+
h("div", { className: "wbv-lock-title" }, en ? "Vault is locked" : "\u4FDD\u9669\u7BB1\u5DF2\u9501\u5B9A"),
|
|
1709
|
+
h("div", { className: "wbv-muted" }, en ? "Unlock it on the Vault page first; this page recovers automatically once unlocked." : "\u8BF7\u5148\u5728\u300C\u4FDD\u9669\u7BB1\u300D\u9875\u89E3\u9501\uFF1B\u89E3\u9501\u540E\u672C\u9875\u4F1A\u81EA\u52A8\u6062\u590D\u5217\u8868\u4E0E\u8BE6\u60C5\u3002"),
|
|
1710
|
+
props.error ? h(C.Notice, { h, kind: "error", text: props.error }) : null
|
|
1711
|
+
)
|
|
1712
|
+
);
|
|
1713
|
+
}
|
|
1714
|
+
var obj = { use: useVaultLock, Panel, POLL_MS };
|
|
1715
|
+
module2.exports = obj;
|
|
1716
|
+
}
|
|
1717
|
+
});
|
|
1718
|
+
|
|
1366
1719
|
// packages/addons/vault/client/ui/kinds.cjs
|
|
1367
1720
|
var require_kinds = __commonJS({
|
|
1368
1721
|
"packages/addons/vault/client/ui/kinds.cjs"(exports2, module2) {
|
|
@@ -1388,9 +1741,18 @@ var require_kinds = __commonJS({
|
|
|
1388
1741
|
var require_secrets = __commonJS({
|
|
1389
1742
|
"packages/addons/vault/client/views/secrets.cjs"(exports2, module2) {
|
|
1390
1743
|
"use strict";
|
|
1744
|
+
var GLYPHS2 = require_icons2().ICONS;
|
|
1391
1745
|
var C = require_common();
|
|
1392
1746
|
var AskPassphrase = require_ask_passphrase();
|
|
1747
|
+
var iconLabel = require_icon_label();
|
|
1748
|
+
var Refresh = GLYPHS2["refresh-cw"];
|
|
1749
|
+
var Unlock = GLYPHS2["lock-open"];
|
|
1750
|
+
var Plus2 = GLYPHS2["plus"];
|
|
1751
|
+
var Eye2 = GLYPHS2["eye"];
|
|
1752
|
+
var Pencil2 = GLYPHS2["pencil"];
|
|
1753
|
+
var Trash2 = GLYPHS2["trash-2"];
|
|
1393
1754
|
var SecretField = require_secret_field();
|
|
1755
|
+
var Lock2 = require_lock();
|
|
1394
1756
|
var K = require_kinds();
|
|
1395
1757
|
var KIND_LABEL = K.KIND_LABEL;
|
|
1396
1758
|
module2.exports = function SecretsView(props) {
|
|
@@ -1411,8 +1773,15 @@ var require_secrets = __commonJS({
|
|
|
1411
1773
|
var revealS = React.useState(null);
|
|
1412
1774
|
var askS = React.useState(null);
|
|
1413
1775
|
var unlockS = React.useState(null);
|
|
1776
|
+
var guard = Lock2.use({ api, C, React });
|
|
1777
|
+
var inflight = React.useState({ seq: 0 })[0];
|
|
1414
1778
|
var rows = listS[0].rows;
|
|
1415
1779
|
function load() {
|
|
1780
|
+
if (guard.locked) {
|
|
1781
|
+
listS[1]({ loading: false, rows: [], error: "" });
|
|
1782
|
+
return;
|
|
1783
|
+
}
|
|
1784
|
+
var seq = inflight.seq += 1;
|
|
1416
1785
|
listS[1](function(old) {
|
|
1417
1786
|
return Object.assign({}, old, { loading: true });
|
|
1418
1787
|
});
|
|
@@ -1425,16 +1794,31 @@ var require_secrets = __commonJS({
|
|
|
1425
1794
|
return { items: [] };
|
|
1426
1795
|
})
|
|
1427
1796
|
]).then(function(r) {
|
|
1797
|
+
if (inflight.seq !== seq) return;
|
|
1428
1798
|
listS[1]({ loading: false, rows: r[0] && (r[0].items || r[0].secrets) || [], error: "" });
|
|
1429
1799
|
statusS[1](r[1]);
|
|
1430
1800
|
setsS[1](r[2] && r[2].items || []);
|
|
1431
1801
|
}).catch(function(e) {
|
|
1802
|
+
if (inflight.seq !== seq) return;
|
|
1432
1803
|
listS[1]({ loading: false, rows: [], error: C.errText(e) });
|
|
1433
1804
|
});
|
|
1434
1805
|
}
|
|
1435
1806
|
React.useEffect(function() {
|
|
1807
|
+
if (!guard.ready) return;
|
|
1808
|
+
inflight.seq += 1;
|
|
1809
|
+
if (guard.locked) {
|
|
1810
|
+
listS[1]({ loading: false, rows: [], error: "" });
|
|
1811
|
+
revealS[1](null);
|
|
1812
|
+
askS[1](null);
|
|
1813
|
+
unlockS[1](null);
|
|
1814
|
+
formS[1](emptyForm());
|
|
1815
|
+
editingS[1](false);
|
|
1816
|
+
showSecretS[1](false);
|
|
1817
|
+
msgS[1]("");
|
|
1818
|
+
return;
|
|
1819
|
+
}
|
|
1436
1820
|
load();
|
|
1437
|
-
}, []);
|
|
1821
|
+
}, [guard.ready, guard.locked]);
|
|
1438
1822
|
function startCreate() {
|
|
1439
1823
|
formS[1](emptyForm());
|
|
1440
1824
|
showSecretS[1](false);
|
|
@@ -1590,6 +1974,8 @@ var require_secrets = __commonJS({
|
|
|
1590
1974
|
setsS[0].forEach(function(s) {
|
|
1591
1975
|
setIndex[s.id] = s.name;
|
|
1592
1976
|
});
|
|
1977
|
+
if (!guard.ready) return h("div", { className: "wbv" }, h(C.Empty, { h, text: "\u6B63\u5728\u8BFB\u53D6\u4FDD\u9669\u7BB1\u72B6\u6001\u2026" }));
|
|
1978
|
+
if (guard.locked) return h(Lock2.Panel, { h, C, lang, error: guard.error });
|
|
1593
1979
|
return h(
|
|
1594
1980
|
"div",
|
|
1595
1981
|
{ className: "wbv" },
|
|
@@ -1622,11 +2008,11 @@ var require_secrets = __commonJS({
|
|
|
1622
2008
|
return h("option", { key: k, value: k }, KIND_LABEL[k]);
|
|
1623
2009
|
})
|
|
1624
2010
|
),
|
|
1625
|
-
h(C.Btn, { h, onClick: load }, "\u5237\u65B0"),
|
|
2011
|
+
h(C.Btn, { h, onClick: load }, iconLabel(h, Refresh, "\u5237\u65B0")),
|
|
1626
2012
|
statusS[0] && statusS[0].locked ? h(C.Btn, { h, kind: "primary", onClick: function() {
|
|
1627
2013
|
askUnlock("");
|
|
1628
|
-
} }, "\u89E3\u9501") : null,
|
|
1629
|
-
h(C.Btn, { h, kind: "primary", onClick: startCreate }, "\u65B0\u589E\u51ED\u636E")
|
|
2014
|
+
} }, iconLabel(h, Unlock, "\u89E3\u9501")) : null,
|
|
2015
|
+
h(C.Btn, { h, kind: "primary", onClick: startCreate }, iconLabel(h, Plus2, "\u65B0\u589E\u51ED\u636E"))
|
|
1630
2016
|
),
|
|
1631
2017
|
h("p", { className: "wbv-muted" }, "\u51ED\u636E\u6309\u300C\u96C6\u5408\u300D\u7EC4\u7EC7\uFF1A\u4E00\u6761\u51ED\u636E\u53EF\u4EE5\u8FDB\u591A\u4E2A\u96C6\u5408\uFF0C\u4E00\u4E2A\u96C6\u5408\u53EF\u4EE5\u6302\u5230\u591A\u4E2A\u5206\u7EC4\u3002\u660E\u6587\u53EA\u5728\u672C\u673A\u89E3\u9501\u540E\u53EF\u89C1\u3002"),
|
|
1632
2018
|
statusS[0] && statusS[0].locked ? h(C.Notice, { h, kind: "error", text: "\u4FDD\u9669\u7BB1\u5DF2\u9501\u5B9A\uFF08" + (statusS[0].unlockMode || "A") + " \u6A21\u5F0F\uFF09\uFF1A\u65B0\u589E\u3001\u7F16\u8F91\u548C\u67E5\u770B\u660E\u6587\u90FD\u9700\u8981\u5148\u89E3\u9501\u3002\u70B9\u53F3\u4E0A\u89D2\u300C\u89E3\u9501\u300D\uFF0C\u6216\u76F4\u63A5\u4FDD\u5B58\u65F6\u6309\u63D0\u793A\u89E3\u9501\u3002" }) : null,
|
|
@@ -1636,8 +2022,8 @@ var require_secrets = __commonJS({
|
|
|
1636
2022
|
{ className: "wbv-empty-card" },
|
|
1637
2023
|
h("div", { className: "wbv-empty-title" }, qS[0] || kindS[0] ? "\u6CA1\u6709\u5339\u914D\u7684\u51ED\u636E" : "\u8FD8\u6CA1\u6709\u51ED\u636E"),
|
|
1638
2024
|
h("div", { className: "wbv-muted" }, qS[0] || kindS[0] ? "\u6362\u4E2A\u5173\u952E\u8BCD\u6216\u7C7B\u578B\u8BD5\u8BD5\u3002" : "\u65B0\u589E\u4E00\u6761\u540E\uFF0C\u628A\u5B83\u52A0\u5165\u96C6\u5408\uFF1B\u7AD9\u70B9\u8D26\u53F7\u4F1A\u81EA\u52A8\u7528\u8D26\u53F7 id \u4F5C\u4E3A\u96C6\u5408\u540D\u3002"),
|
|
1639
|
-
h("div", { className: "wbv-row" }, h(C.Btn, { h, kind: "primary", onClick: startCreate }, "\u65B0\u589E\u51ED\u636E"))
|
|
1640
|
-
) : h(
|
|
2025
|
+
h("div", { className: "wbv-row" }, h(C.Btn, { h, kind: "primary", onClick: startCreate }, iconLabel(h, Plus2, "\u65B0\u589E\u51ED\u636E")))
|
|
2026
|
+
) : h("div", { className: "wbv-table-scroll", role: "region", "aria-label": "\u51ED\u636E\u5217\u8868", tabIndex: 0 }, h(
|
|
1641
2027
|
"table",
|
|
1642
2028
|
{ className: "wbv-table" },
|
|
1643
2029
|
h("thead", null, h("tr", null, ["\u540D\u79F0", "\u7C7B\u578B", "\u6240\u5C5E\u96C6\u5408", "\u5907\u6CE8", "\u6700\u8FD1\u4F7F\u7528", "\u64CD\u4F5C"].map(function(x) {
|
|
@@ -1666,17 +2052,17 @@ var require_secrets = __commonJS({
|
|
|
1666
2052
|
{ className: "wbv-inline" },
|
|
1667
2053
|
h(C.Btn, { h, kind: "ghost", onClick: function() {
|
|
1668
2054
|
reveal(row);
|
|
1669
|
-
} }, "\u67E5\u770B"),
|
|
2055
|
+
} }, iconLabel(h, Eye2, "\u67E5\u770B")),
|
|
1670
2056
|
h(C.Btn, { h, kind: "ghost", onClick: function() {
|
|
1671
2057
|
startEdit(row);
|
|
1672
|
-
} }, "\u7F16\u8F91"),
|
|
1673
|
-
h(C.Btn, { h, kind: "ghost", onClick: function() {
|
|
2058
|
+
} }, iconLabel(h, Pencil2, "\u7F16\u8F91")),
|
|
2059
|
+
h(C.Btn, { h, kind: "ghost wbv-delete", onClick: function() {
|
|
1674
2060
|
del(row);
|
|
1675
|
-
} }, "\u5220\u9664")
|
|
2061
|
+
} }, iconLabel(h, Trash2, "\u5220\u9664"))
|
|
1676
2062
|
))
|
|
1677
2063
|
);
|
|
1678
2064
|
}))
|
|
1679
|
-
),
|
|
2065
|
+
)),
|
|
1680
2066
|
editingS[0] ? h(
|
|
1681
2067
|
"div",
|
|
1682
2068
|
{ className: "wbv-modal", onClick: function() {
|
|
@@ -1839,6 +2225,7 @@ var require_sets = __commonJS({
|
|
|
1839
2225
|
"use strict";
|
|
1840
2226
|
var C = require_common();
|
|
1841
2227
|
var K = require_kinds();
|
|
2228
|
+
var Lock2 = require_lock();
|
|
1842
2229
|
module2.exports = function SetsView(props) {
|
|
1843
2230
|
var h = props.h;
|
|
1844
2231
|
var api = props.api;
|
|
@@ -1854,7 +2241,14 @@ var require_sets = __commonJS({
|
|
|
1854
2241
|
var busyS = React.useState(false);
|
|
1855
2242
|
var draftS = React.useState(null);
|
|
1856
2243
|
var pickS = React.useState([]);
|
|
2244
|
+
var guard = Lock2.use({ api, C, React });
|
|
2245
|
+
var inflight = React.useState({ seq: 0 })[0];
|
|
1857
2246
|
function load() {
|
|
2247
|
+
if (guard.locked) {
|
|
2248
|
+
listS[1]({ loading: false, items: [], error: "" });
|
|
2249
|
+
return;
|
|
2250
|
+
}
|
|
2251
|
+
var seq = inflight.seq += 1;
|
|
1858
2252
|
listS[1](function(old) {
|
|
1859
2253
|
return Object.assign({}, old, { loading: true });
|
|
1860
2254
|
});
|
|
@@ -1863,28 +2257,47 @@ var require_sets = __commonJS({
|
|
|
1863
2257
|
C.call(api, "vault.secretList", {}),
|
|
1864
2258
|
C.call(api, "vault.groupList", {})
|
|
1865
2259
|
]).then(function(r) {
|
|
2260
|
+
if (inflight.seq !== seq) return;
|
|
1866
2261
|
listS[1]({ loading: false, items: r[0] && r[0].items || [], error: "" });
|
|
1867
2262
|
secretsS[1](r[1] && (r[1].items || r[1].secrets) || []);
|
|
1868
2263
|
groupsS[1](r[2] && r[2].items || []);
|
|
1869
2264
|
if (activeS[0]) return open(activeS[0]).then(null, function() {
|
|
1870
2265
|
});
|
|
1871
2266
|
}).catch(function(e) {
|
|
2267
|
+
if (inflight.seq !== seq) return;
|
|
1872
2268
|
listS[1]({ loading: false, items: [], error: C.errText(e) });
|
|
1873
2269
|
});
|
|
1874
2270
|
}
|
|
1875
2271
|
React.useEffect(function() {
|
|
2272
|
+
if (!guard.ready) return;
|
|
2273
|
+
inflight.seq += 1;
|
|
2274
|
+
if (guard.locked) {
|
|
2275
|
+
listS[1]({ loading: false, items: [], error: "" });
|
|
2276
|
+
secretsS[1]([]);
|
|
2277
|
+
groupsS[1]([]);
|
|
2278
|
+
activeS[1](null);
|
|
2279
|
+
detailS[1]({ setId: "", secrets: [], groups: [], error: "" });
|
|
2280
|
+
draftS[1](null);
|
|
2281
|
+
pickS[1]([]);
|
|
2282
|
+
msgS[1]("");
|
|
2283
|
+
return;
|
|
2284
|
+
}
|
|
1876
2285
|
load();
|
|
1877
|
-
}, []);
|
|
2286
|
+
}, [guard.ready, guard.locked]);
|
|
1878
2287
|
function secretName(id) {
|
|
1879
2288
|
for (var i = 0; i < secretsS[0].length; i += 1) if (secretsS[0][i].id === id) return secretsS[0][i].name;
|
|
1880
2289
|
return id;
|
|
1881
2290
|
}
|
|
1882
2291
|
function open(row) {
|
|
2292
|
+
if (guard.locked) return null;
|
|
1883
2293
|
activeS[1](row);
|
|
1884
2294
|
detailS[1]({ setId: row.id, secrets: [], groups: [], error: "" });
|
|
2295
|
+
var seq = inflight.seq += 1;
|
|
1885
2296
|
return C.call(api, "vault.setGet", { id: row.id }).then(function(r) {
|
|
2297
|
+
if (inflight.seq !== seq) return;
|
|
1886
2298
|
detailS[1]({ setId: row.id, secrets: r && r.secrets || [], groups: r && r.groupIds || [], error: "" });
|
|
1887
2299
|
}).catch(function(e) {
|
|
2300
|
+
if (inflight.seq !== seq) return;
|
|
1888
2301
|
detailS[1]({ setId: row.id, secrets: [], groups: [], error: C.errText(e) });
|
|
1889
2302
|
});
|
|
1890
2303
|
}
|
|
@@ -1980,6 +2393,8 @@ var require_sets = __commonJS({
|
|
|
1980
2393
|
var candidates = secretsS[0].filter(function(s) {
|
|
1981
2394
|
return !inSet[s.id];
|
|
1982
2395
|
});
|
|
2396
|
+
if (!guard.ready) return h("div", { className: "wbv" }, h(C.Empty, { h, text: "\u6B63\u5728\u8BFB\u53D6\u4FDD\u9669\u7BB1\u72B6\u6001\u2026" }));
|
|
2397
|
+
if (guard.locked) return h(Lock2.Panel, { h, C, lang, error: guard.error });
|
|
1983
2398
|
return h(
|
|
1984
2399
|
"div",
|
|
1985
2400
|
{ className: "wbv" },
|
|
@@ -2323,6 +2738,7 @@ var require_groups = __commonJS({
|
|
|
2323
2738
|
"use strict";
|
|
2324
2739
|
var C = require_common();
|
|
2325
2740
|
var FilterChecklist = require_filter_checklist();
|
|
2741
|
+
var Lock2 = require_lock();
|
|
2326
2742
|
module2.exports = function GroupsView(props) {
|
|
2327
2743
|
var h = props.h;
|
|
2328
2744
|
var api = props.api;
|
|
@@ -2336,7 +2752,14 @@ var require_groups = __commonJS({
|
|
|
2336
2752
|
var setsS = React.useState([]);
|
|
2337
2753
|
var delS = React.useState(null);
|
|
2338
2754
|
var pickS = React.useState({ q: "", rows: [], page: 1, loading: false });
|
|
2755
|
+
var guard = Lock2.use({ api, C, React });
|
|
2756
|
+
var inflight = React.useState({ seq: 0 })[0];
|
|
2339
2757
|
function load() {
|
|
2758
|
+
if (guard.locked) {
|
|
2759
|
+
listS[1]({ loading: false, rows: [], error: "" });
|
|
2760
|
+
return;
|
|
2761
|
+
}
|
|
2762
|
+
var seq = inflight.seq += 1;
|
|
2340
2763
|
listS[1](function(old) {
|
|
2341
2764
|
return Object.assign({}, old, { loading: true });
|
|
2342
2765
|
});
|
|
@@ -2346,15 +2769,29 @@ var require_groups = __commonJS({
|
|
|
2346
2769
|
return { items: [] };
|
|
2347
2770
|
})
|
|
2348
2771
|
]).then(function(r) {
|
|
2772
|
+
if (inflight.seq !== seq) return;
|
|
2349
2773
|
listS[1]({ loading: false, rows: r[0] && r[0].items || [], error: "" });
|
|
2350
2774
|
setsS[1](r[1] && r[1].items || []);
|
|
2351
2775
|
}).catch(function(e) {
|
|
2776
|
+
if (inflight.seq !== seq) return;
|
|
2352
2777
|
listS[1]({ loading: false, rows: [], error: C.errText(e) });
|
|
2353
2778
|
});
|
|
2354
2779
|
}
|
|
2355
2780
|
React.useEffect(function() {
|
|
2781
|
+
if (!guard.ready) return;
|
|
2782
|
+
inflight.seq += 1;
|
|
2783
|
+
if (guard.locked) {
|
|
2784
|
+
listS[1]({ loading: false, rows: [], error: "" });
|
|
2785
|
+
setsS[1]([]);
|
|
2786
|
+
openS[1](null);
|
|
2787
|
+
createS[1](null);
|
|
2788
|
+
delS[1](null);
|
|
2789
|
+
pickS[1]({ q: "", rows: [], page: 1, loading: false });
|
|
2790
|
+
msgS[1]("");
|
|
2791
|
+
return;
|
|
2792
|
+
}
|
|
2356
2793
|
load();
|
|
2357
|
-
}, []);
|
|
2794
|
+
}, [guard.ready, guard.locked]);
|
|
2358
2795
|
function openCreate() {
|
|
2359
2796
|
createS[1]({ name: "", description: "", setIds: [], error: "", busy: false });
|
|
2360
2797
|
}
|
|
@@ -2473,10 +2910,14 @@ var require_groups = __commonJS({
|
|
|
2473
2910
|
});
|
|
2474
2911
|
}
|
|
2475
2912
|
function open(row) {
|
|
2913
|
+
if (guard.locked) return;
|
|
2476
2914
|
openS[1]({ group: row, items: [], loading: true, error: "" });
|
|
2915
|
+
var seq = inflight.seq += 1;
|
|
2477
2916
|
C.call(api, "vault.subjectsOf", { groupId: row.id }).then(function(r) {
|
|
2917
|
+
if (inflight.seq !== seq) return;
|
|
2478
2918
|
openS[1]({ group: row, items: r && r.items || [], loading: false, error: "" });
|
|
2479
2919
|
}).catch(function(e) {
|
|
2920
|
+
if (inflight.seq !== seq) return;
|
|
2480
2921
|
openS[1]({ group: row, items: [], loading: false, error: C.errText(e) });
|
|
2481
2922
|
});
|
|
2482
2923
|
}
|
|
@@ -2508,6 +2949,8 @@ var require_groups = __commonJS({
|
|
|
2508
2949
|
msgS[1](C.errText(e));
|
|
2509
2950
|
});
|
|
2510
2951
|
}
|
|
2952
|
+
if (!guard.ready) return h("div", { className: "wbv" }, h(C.Empty, { h, text: "\u6B63\u5728\u8BFB\u53D6\u4FDD\u9669\u7BB1\u72B6\u6001\u2026" }));
|
|
2953
|
+
if (guard.locked) return h(Lock2.Panel, { h, C, lang, error: guard.error });
|
|
2511
2954
|
return h(
|
|
2512
2955
|
"div",
|
|
2513
2956
|
{ className: "wbv" },
|
|
@@ -4733,6 +5176,7 @@ var require_actions = __commonJS({
|
|
|
4733
5176
|
});
|
|
4734
5177
|
|
|
4735
5178
|
// packages/addons/vault/client/client.src.cjs
|
|
5179
|
+
var GLYPHS = require_icons2().ICONS;
|
|
4736
5180
|
(function() {
|
|
4737
5181
|
var root = typeof window !== "undefined" ? window : null;
|
|
4738
5182
|
var host = root && root.__WB_HOST__;
|
|
@@ -4747,13 +5191,13 @@ var require_actions = __commonJS({
|
|
|
4747
5191
|
var CSS_ARR = require_styles();
|
|
4748
5192
|
var CSS = Array.isArray(CSS_ARR) ? CSS_ARR.join("\n") : String(CSS_ARR || "");
|
|
4749
5193
|
var ICONS = {
|
|
4750
|
-
shield:
|
|
4751
|
-
key:
|
|
4752
|
-
folder:
|
|
4753
|
-
sliders:
|
|
4754
|
-
database:
|
|
4755
|
-
list:
|
|
4756
|
-
layers:
|
|
5194
|
+
shield: GLYPHS["shield"],
|
|
5195
|
+
key: GLYPHS["key-round"],
|
|
5196
|
+
folder: GLYPHS["folder"],
|
|
5197
|
+
sliders: GLYPHS["sliders-horizontal"],
|
|
5198
|
+
database: GLYPHS["database"],
|
|
5199
|
+
list: GLYPHS["list"],
|
|
5200
|
+
layers: GLYPHS["layers"]
|
|
4757
5201
|
};
|
|
4758
5202
|
function Icon2(props) {
|
|
4759
5203
|
var C = ICONS[props.name] || ICONS.shield;
|
|
@@ -4786,8 +5230,8 @@ var require_actions = __commonJS({
|
|
|
4786
5230
|
ensureStyles();
|
|
4787
5231
|
host.registerAddon({
|
|
4788
5232
|
id: "wb-addon-vault",
|
|
4789
|
-
version: "0.3.
|
|
4790
|
-
icon:
|
|
5233
|
+
version: "0.3.10",
|
|
5234
|
+
icon: GLYPHS["shield-check"],
|
|
4791
5235
|
views: [
|
|
4792
5236
|
{ id: "status", icon: tabIcon("shield"), title: { zh: "\u4FDD\u9669\u7BB1", en: "Vault" }, component: withProps(require_status(), "\u4FDD\u9669\u7BB1") },
|
|
4793
5237
|
{ id: "secrets", icon: tabIcon("key"), title: { zh: "\u51ED\u636E", en: "Secrets" }, component: withProps(require_secrets(), "\u51ED\u636E") },
|