@done-coding/admin-plugin-theme 0.3.2 → 0.3.3-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/assets/cockpit-brutal-steel.mjs +1 -1
- package/es/assets/cockpit-liquid-ink.mjs +1 -1
- package/es/assets/cockpit-mono-paper.mjs +1 -1
- package/es/assets/cockpit-neural-field.mjs +1 -1
- package/es/assets/kitchen-foundry.mjs +515 -0
- package/es/assets/studio-stage.mjs +274 -0
- package/es/chunks/CockpitFrameMatte-DGQRZk-I.mjs +52 -0
- package/es/chunks/CockpitShellBase.vue_vue_type_script_setup_true_lang-CoSsDjcF.mjs +194 -0
- package/es/style.css +1 -1
- package/lib/assets/cockpit-brutal-steel.cjs +1 -1
- package/lib/assets/cockpit-liquid-ink.cjs +1 -1
- package/lib/assets/cockpit-mono-paper.cjs +1 -1
- package/lib/assets/cockpit-neural-field.cjs +1 -1
- package/lib/assets/kitchen-foundry.cjs +7 -0
- package/lib/assets/studio-stage.cjs +1 -0
- package/lib/chunks/CockpitFrameMatte-pWBt5o2E.cjs +1 -0
- package/lib/chunks/CockpitShellBase.vue_vue_type_script_setup_true_lang-CgiZq-kW.cjs +1 -0
- package/lib/style.css +1 -1
- package/package.json +2 -2
- package/types/assets/kitchen-foundry.d.ts +3 -0
- package/types/assets/studio-stage.d.ts +17 -0
- package/types/shells/KitchenFoundryShell.vue.d.ts +27 -0
- package/types/shells/KitchenPassRail.vue.d.ts +2 -0
- package/types/shells/StudioStageShell.vue.d.ts +27 -0
- package/types/shells/decor/KitchenFoundryDecor.vue.d.ts +2 -0
- package/types/shells/decor/StudioStageDecor.vue.d.ts +2 -0
- package/types/types.d.ts +1 -1
- package/es/chunks/CockpitShellBase.vue_vue_type_script_setup_true_lang-B6k0Utzz.mjs +0 -238
- package/lib/chunks/CockpitShellBase.vue_vue_type_script_setup_true_lang-D2LEvqm8.cjs +0 -1
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { defineComponent as S, computed as s, openBlock as i, createBlock as W, Teleport as N, unref as o, createElementBlock as u, normalizeStyle as T, createElementVNode as a, Fragment as f, renderList as _, createCommentVNode as O, renderSlot as y, createVNode as v, withCtx as k, markRaw as V } from "vue";
|
|
2
|
+
import { ADMIN_CORE_VIEWPORT_DECOR_ZINDEX_BELOW as z, AppFooter as P, AppSidebar as X, AppAside as Y, AppHeader as G, AppTheme as A } from "@done-coding/admin-core";
|
|
3
|
+
import { u as Z } from "../chunks/use-frame-geometry-DPWBVziK.mjs";
|
|
4
|
+
import { _ as j } from "../chunks/_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
|
+
const q = ["width", "height", "viewBox"], J = { id: "ssRingMask" }, K = ["width", "height"], Q = ["x", "y", "width", "height"], U = { mask: "url(#ssRingMask)" }, ee = ["x", "y", "width", "fill", "opacity"], oe = ["stroke", "opacity"], te = ["x1", "y1", "x2", "y2"], ae = ["x1", "y1", "x2", "y2"], le = ["x1", "y1", "x2", "y2"], re = ["x1", "y1", "x2", "y2"], se = ["x", "y", "fill", "opacity"], ie = ["x", "y", "width", "fill", "opacity"], ne = ["stroke", "opacity"], de = ["x1", "y1", "x2", "y2"], ue = /* @__PURE__ */ S({
|
|
6
|
+
__name: "StudioStageDecor",
|
|
7
|
+
setup(l) {
|
|
8
|
+
const { isDark: t, vw: g, vh: p, hasFrame: F, hollowX: c, hollowY: x, hollowW: h, hollowH: b } = Z(), C = s(() => t.value ? "#e86a2a" : "#c94f1a"), m = s(() => t.value ? "#69a99a" : "#286f63"), M = s(() => t.value ? "#cbb89c" : "#6b5d4d"), R = s(() => Math.max(0, x.value - 9)), w = s(() => x.value + b.value + 9), $ = s(() => {
|
|
9
|
+
const n = c.value, d = x.value, e = c.value + h.value, r = x.value + b.value;
|
|
10
|
+
return [
|
|
11
|
+
{ x: n, y: d, dx: -1, dy: -1 },
|
|
12
|
+
{ x: e, y: d, dx: 1, dy: -1 },
|
|
13
|
+
{ x: n, y: r, dx: -1, dy: 1 },
|
|
14
|
+
{ x: e, y: r, dx: 1, dy: 1 }
|
|
15
|
+
];
|
|
16
|
+
}), B = s(() => c.value + h.value + 6), L = s(() => {
|
|
17
|
+
const n = [
|
|
18
|
+
C.value,
|
|
19
|
+
m.value,
|
|
20
|
+
M.value,
|
|
21
|
+
t.value ? "#4a3f33" : "#e7ddcf"
|
|
22
|
+
], d = 30, e = 7, r = n.length * d + (n.length - 1) * e, H = p.value / 2 - r / 2;
|
|
23
|
+
return n.map((D, I) => ({ color: D, y: H + I * (d + e) }));
|
|
24
|
+
}), E = s(
|
|
25
|
+
() => Array.from(
|
|
26
|
+
{ length: Math.floor(h.value / 32) },
|
|
27
|
+
(n, d) => c.value + d * 32
|
|
28
|
+
)
|
|
29
|
+
);
|
|
30
|
+
return (n, d) => (i(), W(N, { to: "body" }, [
|
|
31
|
+
o(F) ? (i(), u("svg", {
|
|
32
|
+
key: 0,
|
|
33
|
+
class: "studio-stage-decor",
|
|
34
|
+
style: T({
|
|
35
|
+
position: "fixed",
|
|
36
|
+
left: 0,
|
|
37
|
+
top: 0,
|
|
38
|
+
pointerEvents: "none",
|
|
39
|
+
zIndex: o(z),
|
|
40
|
+
opacity: o(t) ? 0.92 : 1
|
|
41
|
+
}),
|
|
42
|
+
width: o(g),
|
|
43
|
+
height: o(p),
|
|
44
|
+
viewBox: `0 0 ${o(g)} ${o(p)}`,
|
|
45
|
+
"aria-hidden": "true"
|
|
46
|
+
}, [
|
|
47
|
+
a("defs", null, [
|
|
48
|
+
a("mask", J, [
|
|
49
|
+
a("rect", {
|
|
50
|
+
x: "0",
|
|
51
|
+
y: "0",
|
|
52
|
+
width: o(g),
|
|
53
|
+
height: o(p),
|
|
54
|
+
fill: "white"
|
|
55
|
+
}, null, 8, K),
|
|
56
|
+
a("rect", {
|
|
57
|
+
x: o(c),
|
|
58
|
+
y: o(x),
|
|
59
|
+
width: o(h),
|
|
60
|
+
height: o(b),
|
|
61
|
+
fill: "black"
|
|
62
|
+
}, null, 8, Q)
|
|
63
|
+
])
|
|
64
|
+
]),
|
|
65
|
+
a("g", U, [
|
|
66
|
+
a("rect", {
|
|
67
|
+
x: o(c),
|
|
68
|
+
y: R.value,
|
|
69
|
+
width: o(h),
|
|
70
|
+
height: "1.5",
|
|
71
|
+
fill: C.value,
|
|
72
|
+
opacity: o(t) ? 0.42 : 0.32
|
|
73
|
+
}, null, 8, ee),
|
|
74
|
+
a("g", {
|
|
75
|
+
stroke: M.value,
|
|
76
|
+
"stroke-width": "1.6",
|
|
77
|
+
opacity: o(t) ? 0.62 : 0.5
|
|
78
|
+
}, [
|
|
79
|
+
(i(!0), u(f, null, _($.value, (e, r) => (i(), u("g", {
|
|
80
|
+
key: `crop${r}`
|
|
81
|
+
}, [
|
|
82
|
+
a("line", {
|
|
83
|
+
x1: e.x + e.dx * 5,
|
|
84
|
+
y1: e.y,
|
|
85
|
+
x2: e.x + e.dx * 22,
|
|
86
|
+
y2: e.y
|
|
87
|
+
}, null, 8, te),
|
|
88
|
+
a("line", {
|
|
89
|
+
x1: e.x,
|
|
90
|
+
y1: e.y + e.dy * 5,
|
|
91
|
+
x2: e.x,
|
|
92
|
+
y2: e.y + e.dy * 22
|
|
93
|
+
}, null, 8, ae),
|
|
94
|
+
a("line", {
|
|
95
|
+
x1: e.x + e.dx * 13,
|
|
96
|
+
y1: e.y + e.dy * 5,
|
|
97
|
+
x2: e.x + e.dx * 13,
|
|
98
|
+
y2: e.y + e.dy * 9
|
|
99
|
+
}, null, 8, le),
|
|
100
|
+
a("line", {
|
|
101
|
+
x1: e.x + e.dx * 5,
|
|
102
|
+
y1: e.y + e.dy * 13,
|
|
103
|
+
x2: e.x + e.dx * 9,
|
|
104
|
+
y2: e.y + e.dy * 13
|
|
105
|
+
}, null, 8, re)
|
|
106
|
+
]))), 128))
|
|
107
|
+
], 8, oe),
|
|
108
|
+
a("g", null, [
|
|
109
|
+
(i(!0), u(f, null, _(L.value, (e, r) => (i(), u("rect", {
|
|
110
|
+
key: `sw${r}`,
|
|
111
|
+
x: B.value,
|
|
112
|
+
y: e.y,
|
|
113
|
+
width: "8",
|
|
114
|
+
height: "30",
|
|
115
|
+
rx: "1.5",
|
|
116
|
+
fill: e.color,
|
|
117
|
+
opacity: o(t) ? 0.6 : 0.5
|
|
118
|
+
}, null, 8, se))), 128))
|
|
119
|
+
]),
|
|
120
|
+
a("rect", {
|
|
121
|
+
x: o(c),
|
|
122
|
+
y: w.value,
|
|
123
|
+
width: o(h),
|
|
124
|
+
height: "1.5",
|
|
125
|
+
fill: m.value,
|
|
126
|
+
opacity: o(t) ? 0.4 : 0.32
|
|
127
|
+
}, null, 8, ie),
|
|
128
|
+
a("g", {
|
|
129
|
+
stroke: m.value,
|
|
130
|
+
"stroke-width": "1.2",
|
|
131
|
+
opacity: o(t) ? 0.42 : 0.34
|
|
132
|
+
}, [
|
|
133
|
+
(i(!0), u(f, null, _(E.value, (e, r) => (i(), u("line", {
|
|
134
|
+
key: `bk${r}`,
|
|
135
|
+
x1: e,
|
|
136
|
+
y1: w.value,
|
|
137
|
+
x2: e,
|
|
138
|
+
y2: w.value + 5
|
|
139
|
+
}, null, 8, de))), 128))
|
|
140
|
+
], 8, ne)
|
|
141
|
+
])
|
|
142
|
+
], 12, q)) : O("", !0)
|
|
143
|
+
]));
|
|
144
|
+
}
|
|
145
|
+
}), ce = /* @__PURE__ */ j(ue, [["__scopeId", "data-v-ae0e9545"]]), he = /* @__PURE__ */ S({
|
|
146
|
+
__name: "StudioStageShell",
|
|
147
|
+
props: {
|
|
148
|
+
menus: {},
|
|
149
|
+
menuFlatList: {},
|
|
150
|
+
sidebarMenus: {},
|
|
151
|
+
headerMenus: {},
|
|
152
|
+
activeMenu: {},
|
|
153
|
+
activeModuleMenu: {},
|
|
154
|
+
showHeader: { type: Boolean },
|
|
155
|
+
showSidebar: { type: Boolean },
|
|
156
|
+
showAside: { type: Boolean },
|
|
157
|
+
sidebarAboveHeader: { type: Boolean }
|
|
158
|
+
},
|
|
159
|
+
setup(l) {
|
|
160
|
+
return (t, g) => (i(), u(f, null, [
|
|
161
|
+
y(t.$slots, "default", { Footer: o(P) }),
|
|
162
|
+
v(o(X), {
|
|
163
|
+
show: l.showSidebar,
|
|
164
|
+
aboveHeader: l.sidebarAboveHeader,
|
|
165
|
+
menus: l.sidebarMenus,
|
|
166
|
+
menuFlatList: l.menuFlatList
|
|
167
|
+
}, null, 8, ["show", "aboveHeader", "menus", "menuFlatList"]),
|
|
168
|
+
v(o(Y), { show: l.showAside }, {
|
|
169
|
+
default: k(() => [
|
|
170
|
+
y(t.$slots, "aside")
|
|
171
|
+
]),
|
|
172
|
+
_: 3
|
|
173
|
+
}, 8, ["show"]),
|
|
174
|
+
v(o(G), {
|
|
175
|
+
show: l.showHeader,
|
|
176
|
+
menus: l.headerMenus,
|
|
177
|
+
activeMenu: l.activeMenu,
|
|
178
|
+
activeModuleMenu: l.activeModuleMenu,
|
|
179
|
+
menuFlatList: l.menuFlatList
|
|
180
|
+
}, {
|
|
181
|
+
left: k(() => [
|
|
182
|
+
y(t.$slots, "brand")
|
|
183
|
+
]),
|
|
184
|
+
right: k(() => [
|
|
185
|
+
y(t.$slots, "themeSwitcher", { Default: o(A) }, () => [
|
|
186
|
+
v(o(A))
|
|
187
|
+
]),
|
|
188
|
+
y(t.$slots, "userEntry"),
|
|
189
|
+
y(t.$slots, "settings")
|
|
190
|
+
]),
|
|
191
|
+
_: 3
|
|
192
|
+
}, 8, ["show", "menus", "activeMenu", "activeModuleMenu", "menuFlatList"]),
|
|
193
|
+
v(ce)
|
|
194
|
+
], 64));
|
|
195
|
+
}
|
|
196
|
+
}), pe = {
|
|
197
|
+
id: "studio-stage",
|
|
198
|
+
label: "创作工坊",
|
|
199
|
+
description: {
|
|
200
|
+
suitable: "kitchen 编排产出的端用 AI 应用台:内容创作 / 多模态生成 / 对话类成稿等场景;要暖纸亮场、内容舞台居中、慷慨留白、ember 克制点睛、画廊气质。",
|
|
201
|
+
unsuitable: "数据密集的监控 / 编排控制台(请用姐妹主题编排熔炉);需暗场沉浸或厚重装饰动效的场景。"
|
|
202
|
+
},
|
|
203
|
+
config: {
|
|
204
|
+
light: {
|
|
205
|
+
bodyColor: "#f2efe8",
|
|
206
|
+
baseColor: "#1e2424",
|
|
207
|
+
primaryColor: "#c94f1a",
|
|
208
|
+
successColor: "#2f8f68",
|
|
209
|
+
warningColor: "#b87912",
|
|
210
|
+
dangerColor: "#c93645",
|
|
211
|
+
errorColor: "#c93645",
|
|
212
|
+
infoColor: "#657174",
|
|
213
|
+
radius: "8px",
|
|
214
|
+
borderColor: "#d8cdbd",
|
|
215
|
+
borderWidth: "1px",
|
|
216
|
+
accent: "#286f63",
|
|
217
|
+
glow: "0 0 0 1px rgba(201, 79, 26, 0.12)",
|
|
218
|
+
shadow: "0 18px 42px -30px rgba(54, 43, 30, 0.34)",
|
|
219
|
+
focusRing: "0 0 0 3px rgba(201, 79, 26, 0.22)",
|
|
220
|
+
surface: "#fffdf8"
|
|
221
|
+
},
|
|
222
|
+
dark: {
|
|
223
|
+
bodyColor: "#141210",
|
|
224
|
+
baseColor: "#f2e8da",
|
|
225
|
+
primaryColor: "#e86a2a",
|
|
226
|
+
successColor: "#3fbf8f",
|
|
227
|
+
warningColor: "#d99a3a",
|
|
228
|
+
dangerColor: "#e8616e",
|
|
229
|
+
errorColor: "#e8616e",
|
|
230
|
+
infoColor: "#9a8c79",
|
|
231
|
+
radius: "8px",
|
|
232
|
+
borderColor: "rgba(218, 190, 154, 0.22)",
|
|
233
|
+
borderWidth: "1px",
|
|
234
|
+
accent: "#69a99a",
|
|
235
|
+
glow: "0 0 22px rgba(232, 106, 42, 0.26)",
|
|
236
|
+
shadow: "0 18px 44px -24px rgba(0, 0, 0, 0.7)",
|
|
237
|
+
focusRing: "0 0 0 3px rgba(232, 106, 42, 0.4)",
|
|
238
|
+
surface: "#211b16"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
layout: {
|
|
242
|
+
viewport: {
|
|
243
|
+
paddingTop: 20,
|
|
244
|
+
paddingRight: 20,
|
|
245
|
+
paddingBottom: 20,
|
|
246
|
+
paddingLeft: 20
|
|
247
|
+
},
|
|
248
|
+
gap: { size: 12 },
|
|
249
|
+
// 端用应用台(非 admin):app 式细 rail(非菜单墙)+ 大留白内容舞台 + 上下文 inspector;
|
|
250
|
+
// radius 8(克制不软塌)、sidebar 收窄、body shim 加大突出"画布"。
|
|
251
|
+
header: {
|
|
252
|
+
height: 64,
|
|
253
|
+
background: "var(--admin-core-surface, var(--el-bg-color-overlay))",
|
|
254
|
+
style: { borderRadius: "8px" }
|
|
255
|
+
},
|
|
256
|
+
sidebar: {
|
|
257
|
+
width: 176,
|
|
258
|
+
collapseWidth: 64,
|
|
259
|
+
background: "var(--admin-core-surface, var(--el-bg-color-overlay))",
|
|
260
|
+
style: { borderRadius: "8px" }
|
|
261
|
+
},
|
|
262
|
+
aside: {
|
|
263
|
+
// 340:aside 大概率承载 AI 对话面板(ChatAsidePanel),留持久会话舒适宽度。
|
|
264
|
+
width: 340,
|
|
265
|
+
background: "var(--admin-core-surface, var(--el-bg-color-overlay))",
|
|
266
|
+
style: { borderRadius: "8px" }
|
|
267
|
+
},
|
|
268
|
+
body: { shimPadding: 28 },
|
|
269
|
+
shell: V(he)
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
export {
|
|
273
|
+
pe as default
|
|
274
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { defineComponent as p, computed as v, openBlock as n, createBlock as w, Teleport as x, unref as a, createElementBlock as i, normalizeStyle as y, createElementVNode as f, Fragment as g, renderList as k, createCommentVNode as E } from "vue";
|
|
2
|
+
import { ADMIN_CORE_VIEWPORT_DECOR_ZINDEX_BELOW as C } from "@done-coding/admin-core";
|
|
3
|
+
import { u as B } from "./use-frame-geometry-DPWBVziK.mjs";
|
|
4
|
+
import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
|
+
const I = ["width", "height", "viewBox"], M = { fill: "var(--admin-core-body-color, var(--el-bg-color-page, var(--el-bg-color)))" }, b = ["x", "y", "width", "height"], N = /* @__PURE__ */ p({
|
|
6
|
+
__name: "CockpitFrameMatte",
|
|
7
|
+
setup(O) {
|
|
8
|
+
const { vw: r, vh: c, hasFrame: s, hollowX: h, hollowY: m, hollowW: _, hollowH: u } = B(), d = v(() => {
|
|
9
|
+
const l = h.value, t = m.value, e = _.value, o = u.value;
|
|
10
|
+
return [
|
|
11
|
+
{ x: 0, y: 0, w: r.value, h: t },
|
|
12
|
+
// 顶带
|
|
13
|
+
{ x: 0, y: t + o, w: r.value, h: Math.max(0, c.value - t - o) },
|
|
14
|
+
// 底带
|
|
15
|
+
{ x: 0, y: t, w: l, h: o },
|
|
16
|
+
// 左带
|
|
17
|
+
{ x: l + e, y: t, w: Math.max(0, r.value - l - e), h: o }
|
|
18
|
+
// 右带
|
|
19
|
+
];
|
|
20
|
+
});
|
|
21
|
+
return (l, t) => (n(), w(x, { to: "body" }, [
|
|
22
|
+
a(s) ? (n(), i("svg", {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "cockpit-frame-matte",
|
|
25
|
+
style: y({
|
|
26
|
+
position: "fixed",
|
|
27
|
+
left: 0,
|
|
28
|
+
top: 0,
|
|
29
|
+
pointerEvents: "none",
|
|
30
|
+
zIndex: a(C)
|
|
31
|
+
}),
|
|
32
|
+
width: a(r),
|
|
33
|
+
height: a(c),
|
|
34
|
+
viewBox: `0 0 ${a(r)} ${a(c)}`,
|
|
35
|
+
"aria-hidden": "true"
|
|
36
|
+
}, [
|
|
37
|
+
f("g", M, [
|
|
38
|
+
(n(!0), i(g, null, k(d.value, (e, o) => (n(), i("rect", {
|
|
39
|
+
key: o,
|
|
40
|
+
x: e.x,
|
|
41
|
+
y: e.y,
|
|
42
|
+
width: e.w,
|
|
43
|
+
height: e.h
|
|
44
|
+
}, null, 8, b))), 128))
|
|
45
|
+
])
|
|
46
|
+
], 12, I)) : E("", !0)
|
|
47
|
+
]));
|
|
48
|
+
}
|
|
49
|
+
}), z = /* @__PURE__ */ F(N, [["__scopeId", "data-v-a8c0e509"]]);
|
|
50
|
+
export {
|
|
51
|
+
z as C
|
|
52
|
+
};
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { defineComponent as h, inject as $, computed as p, openBlock as c, createElementBlock as u, normalizeStyle as H, createElementVNode as e, unref as i, Fragment as f, createCommentVNode as N, toDisplayString as y, renderList as E, createTextVNode as O, renderSlot as l, createVNode as d, withCtx as v } from "vue";
|
|
2
|
+
import { APP_LAYOUT_BRIDGE_KEY as R, AppSidebar as z, AppAside as T, AppHeader as j, AppTheme as b } from "@done-coding/admin-core";
|
|
3
|
+
import { u as P } from "./use-frame-geometry-DPWBVziK.mjs";
|
|
4
|
+
import { C as V } from "./CockpitFrameMatte-DGQRZk-I.mjs";
|
|
5
|
+
const D = {
|
|
6
|
+
cx: "5",
|
|
7
|
+
cy: "5",
|
|
8
|
+
r: "3",
|
|
9
|
+
fill: "var(--admin-core-accent, var(--admin-core-primary-color, var(--el-color-primary)))"
|
|
10
|
+
}, G = /* @__PURE__ */ h({
|
|
11
|
+
__name: "CockpitStatusBar",
|
|
12
|
+
setup(t) {
|
|
13
|
+
const { animated: r } = P(), a = $(R), g = p(() => {
|
|
14
|
+
const n = (a == null ? void 0 : a.themeStyle.value) ?? "";
|
|
15
|
+
return (a == null ? void 0 : a.theme.labelOf(n)) || n || "意图座舱";
|
|
16
|
+
}), m = p(() => a == null ? void 0 : a.APP_LAYOUT_FOOTER_CONFIG), x = ["思考", "检索", "编排", "执行"], S = p(() => {
|
|
17
|
+
var n, o, s;
|
|
18
|
+
return {
|
|
19
|
+
...((n = m.value) == null ? void 0 : n.style) ?? {},
|
|
20
|
+
display: "flex",
|
|
21
|
+
alignItems: "center",
|
|
22
|
+
justifyContent: "space-between",
|
|
23
|
+
gap: "16px",
|
|
24
|
+
width: "100%",
|
|
25
|
+
height: `${((o = m.value) == null ? void 0 : o.height) ?? 36}px`,
|
|
26
|
+
padding: "0 16px",
|
|
27
|
+
fontSize: "12px",
|
|
28
|
+
lineHeight: "1",
|
|
29
|
+
color: "var(--admin-core-base-color, var(--el-text-color-regular))",
|
|
30
|
+
// 不透明实底(缺则退 el overlay)——挡住身后 decor,不透出。
|
|
31
|
+
background: ((s = m.value) == null ? void 0 : s.background) ?? "var(--admin-core-surface, var(--el-bg-color-overlay))",
|
|
32
|
+
userSelect: "none",
|
|
33
|
+
overflow: "hidden",
|
|
34
|
+
whiteSpace: "nowrap",
|
|
35
|
+
boxSizing: "border-box"
|
|
36
|
+
};
|
|
37
|
+
}), w = {
|
|
38
|
+
display: "flex",
|
|
39
|
+
alignItems: "center",
|
|
40
|
+
gap: "8px",
|
|
41
|
+
flex: "0 0 auto",
|
|
42
|
+
fontWeight: 600
|
|
43
|
+
}, M = {
|
|
44
|
+
flex: "0 0 auto",
|
|
45
|
+
// active 辉光:主色派生 drop-shadow(随主题/亮暗自适配)。
|
|
46
|
+
filter: "drop-shadow(0 0 4px var(--admin-core-primary-color, var(--el-color-primary)))"
|
|
47
|
+
}, k = {
|
|
48
|
+
color: "var(--admin-core-primary-color, var(--el-color-primary))"
|
|
49
|
+
}, C = {
|
|
50
|
+
display: "flex",
|
|
51
|
+
alignItems: "center",
|
|
52
|
+
justifyContent: "center",
|
|
53
|
+
gap: "6px",
|
|
54
|
+
flex: "1 1 auto",
|
|
55
|
+
minWidth: "0",
|
|
56
|
+
overflow: "hidden"
|
|
57
|
+
}, F = {
|
|
58
|
+
display: "inline-flex",
|
|
59
|
+
alignItems: "center",
|
|
60
|
+
gap: "5px",
|
|
61
|
+
padding: "3px 10px",
|
|
62
|
+
borderRadius: "var(--admin-core-radius, var(--el-border-radius-base))",
|
|
63
|
+
// surface 玻璃面板底(缺则退 el overlay);榨干 --admin-core-surface。
|
|
64
|
+
background: "var(--admin-core-surface, var(--el-bg-color-overlay))",
|
|
65
|
+
border: "1px solid var(--admin-core-border-color, var(--el-border-color-lighter))",
|
|
66
|
+
opacity: 0.85
|
|
67
|
+
}, A = {
|
|
68
|
+
display: "inline-flex",
|
|
69
|
+
alignItems: "center",
|
|
70
|
+
justifyContent: "center",
|
|
71
|
+
width: "14px",
|
|
72
|
+
height: "14px",
|
|
73
|
+
borderRadius: "50%",
|
|
74
|
+
fontSize: "10px",
|
|
75
|
+
fontWeight: 700,
|
|
76
|
+
color: "var(--admin-core-body-color, var(--el-bg-color))",
|
|
77
|
+
background: "var(--admin-core-primary-color, var(--el-color-primary))"
|
|
78
|
+
}, L = {
|
|
79
|
+
display: "flex",
|
|
80
|
+
alignItems: "center",
|
|
81
|
+
gap: "8px",
|
|
82
|
+
flex: "0 0 auto",
|
|
83
|
+
opacity: 0.7
|
|
84
|
+
}, B = {
|
|
85
|
+
padding: "2px 6px",
|
|
86
|
+
borderRadius: "4px",
|
|
87
|
+
fontSize: "11px",
|
|
88
|
+
fontFamily: "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",
|
|
89
|
+
background: "var(--admin-core-surface, var(--el-fill-color-light))",
|
|
90
|
+
border: "1px solid var(--admin-core-border-color, var(--el-border-color))"
|
|
91
|
+
};
|
|
92
|
+
return (n, o) => (c(), u("div", {
|
|
93
|
+
class: "cockpit-statusbar",
|
|
94
|
+
style: H(S.value)
|
|
95
|
+
}, [
|
|
96
|
+
e("div", { style: w }, [
|
|
97
|
+
(c(), u("svg", {
|
|
98
|
+
width: "10",
|
|
99
|
+
height: "10",
|
|
100
|
+
viewBox: "0 0 10 10",
|
|
101
|
+
style: M,
|
|
102
|
+
"aria-hidden": "true"
|
|
103
|
+
}, [
|
|
104
|
+
e("circle", D, [
|
|
105
|
+
i(r) ? (c(), u(f, { key: 0 }, [
|
|
106
|
+
o[0] || (o[0] = e("animate", {
|
|
107
|
+
attributeName: "opacity",
|
|
108
|
+
values: "1;0.3;1",
|
|
109
|
+
dur: "2.4s",
|
|
110
|
+
repeatCount: "indefinite"
|
|
111
|
+
}, null, -1)),
|
|
112
|
+
o[1] || (o[1] = e("animate", {
|
|
113
|
+
attributeName: "r",
|
|
114
|
+
values: "3;3.7;3",
|
|
115
|
+
dur: "2.4s",
|
|
116
|
+
repeatCount: "indefinite"
|
|
117
|
+
}, null, -1))
|
|
118
|
+
], 64)) : N("", !0)
|
|
119
|
+
])
|
|
120
|
+
])),
|
|
121
|
+
e("span", { style: k }, y(g.value), 1),
|
|
122
|
+
o[2] || (o[2] = e("span", { style: { opacity: 0.66 } }, "Agent 待命", -1))
|
|
123
|
+
]),
|
|
124
|
+
e("div", { style: C }, [
|
|
125
|
+
(c(), u(f, null, E(x, (s, I) => e("span", {
|
|
126
|
+
key: s,
|
|
127
|
+
style: F
|
|
128
|
+
}, [
|
|
129
|
+
e("span", { style: A }, y(I + 1), 1),
|
|
130
|
+
O(" " + y(s), 1)
|
|
131
|
+
])), 64))
|
|
132
|
+
]),
|
|
133
|
+
e("div", { style: L }, [
|
|
134
|
+
e("kbd", { style: B }, "⌘K"),
|
|
135
|
+
o[3] || (o[3] = e("span", null, "唤起意图", -1))
|
|
136
|
+
])
|
|
137
|
+
], 4));
|
|
138
|
+
}
|
|
139
|
+
}), q = /* @__PURE__ */ h({
|
|
140
|
+
__name: "CockpitShellBase",
|
|
141
|
+
props: {
|
|
142
|
+
menus: {},
|
|
143
|
+
menuFlatList: {},
|
|
144
|
+
sidebarMenus: {},
|
|
145
|
+
headerMenus: {},
|
|
146
|
+
activeMenu: {},
|
|
147
|
+
activeModuleMenu: {},
|
|
148
|
+
showHeader: { type: Boolean },
|
|
149
|
+
showSidebar: { type: Boolean },
|
|
150
|
+
showAside: { type: Boolean },
|
|
151
|
+
sidebarAboveHeader: { type: Boolean }
|
|
152
|
+
},
|
|
153
|
+
setup(t) {
|
|
154
|
+
return (r, a) => (c(), u(f, null, [
|
|
155
|
+
l(r.$slots, "default", { Footer: G }),
|
|
156
|
+
d(i(z), {
|
|
157
|
+
show: t.showSidebar,
|
|
158
|
+
aboveHeader: t.sidebarAboveHeader,
|
|
159
|
+
menus: t.sidebarMenus,
|
|
160
|
+
menuFlatList: t.menuFlatList
|
|
161
|
+
}, null, 8, ["show", "aboveHeader", "menus", "menuFlatList"]),
|
|
162
|
+
d(i(T), { show: t.showAside }, {
|
|
163
|
+
default: v(() => [
|
|
164
|
+
l(r.$slots, "aside")
|
|
165
|
+
]),
|
|
166
|
+
_: 3
|
|
167
|
+
}, 8, ["show"]),
|
|
168
|
+
d(i(j), {
|
|
169
|
+
show: t.showHeader,
|
|
170
|
+
menus: t.headerMenus,
|
|
171
|
+
activeMenu: t.activeMenu,
|
|
172
|
+
activeModuleMenu: t.activeModuleMenu,
|
|
173
|
+
menuFlatList: t.menuFlatList
|
|
174
|
+
}, {
|
|
175
|
+
left: v(() => [
|
|
176
|
+
l(r.$slots, "brand")
|
|
177
|
+
]),
|
|
178
|
+
right: v(() => [
|
|
179
|
+
l(r.$slots, "themeSwitcher", { Default: i(b) }, () => [
|
|
180
|
+
d(i(b))
|
|
181
|
+
]),
|
|
182
|
+
l(r.$slots, "userEntry"),
|
|
183
|
+
l(r.$slots, "settings")
|
|
184
|
+
]),
|
|
185
|
+
_: 3
|
|
186
|
+
}, 8, ["show", "menus", "activeMenu", "activeModuleMenu", "menuFlatList"]),
|
|
187
|
+
d(V),
|
|
188
|
+
l(r.$slots, "decor")
|
|
189
|
+
], 64));
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
export {
|
|
193
|
+
q as _
|
|
194
|
+
};
|
package/es/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.aurora-frame-decor[data-v-99584d50],.aurora-nebula-decor[data-v-bd06edd0],.aurora-mesh-decor[data-v-30bd1904],.cockpit-frame-matte[data-v-a8c0e509],.cockpit-brutal-steel-decor[data-v-d5f290cf],.cockpit-liquid-ink-decor[data-v-122f9ed8],.cockpit-mono-paper-decor[data-v-a518c8db],.cockpit-neural-field-decor[data-v-81008f21],.film-grade-decor[data-v-dedf7df3],.neon-stage-decor[data-v-9a7212b2],.quantum-orbit-decor[data-v-b17094ed],.studio-glow-decor[data-v-31ae78d7],.synapse-grid-decor[data-v-66a77bb9],.scanline-decor[data-v-cf9db83e]{position:fixed;left:0;top:0;pointer-events:none}
|
|
1
|
+
.aurora-frame-decor[data-v-99584d50],.aurora-nebula-decor[data-v-bd06edd0],.aurora-mesh-decor[data-v-30bd1904],.cockpit-frame-matte[data-v-a8c0e509],.cockpit-brutal-steel-decor[data-v-d5f290cf],.cockpit-liquid-ink-decor[data-v-122f9ed8],.cockpit-mono-paper-decor[data-v-a518c8db],.cockpit-neural-field-decor[data-v-81008f21],.film-grade-decor[data-v-dedf7df3],.kitchen-foundry-decor[data-v-d39e914e],.neon-stage-decor[data-v-9a7212b2],.quantum-orbit-decor[data-v-b17094ed],.studio-glow-decor[data-v-31ae78d7],.studio-stage-decor[data-v-ae0e9545],.synapse-grid-decor[data-v-66a77bb9],.scanline-decor[data-v-cf9db83e]{position:fixed;left:0;top:0;pointer-events:none}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../chunks/CockpitShellBase.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../chunks/CockpitShellBase.vue_vue_type_script_setup_true_lang-CgiZq-kW.cjs"),h=require("@done-coding/admin-core"),m=require("../chunks/use-frame-geometry-5WRLC-WU.cjs"),b=require("../chunks/_plugin-vue_export-helper-BHFhmbuH.cjs"),y=["width","height","viewBox"],g={id:"brutalHazard",width:"18",height:"18",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)"},v=["fill","opacity"],_={id:"brutalScan",x1:"0%",y1:"0%",x2:"0%",y2:"100%"},C=["stop-color"],w=["stop-color","stop-opacity"],k=["stop-color"],E=["width","height"],x=["y","width","height"],V=["y","width","height"],N=["values"],S=["stroke","opacity"],B=["d"],$=["d"],M=["d"],R=["width","height","opacity"],H=e.defineComponent({__name:"BrutalSteelCockpitDecor",setup(a){const{isDark:n,animated:o,vw:r,vh:t,hasFrame:u,vp:p}=m.useFrameGeometry(),c=e.computed(()=>n.value?"#8a93a0":"#4a525c"),s=e.computed(()=>n.value?"#f5a524":"#d97706"),i=e.computed(()=>Math.max(24,p.value.paddingTop));return(z,l)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.unref(u)?(e.openBlock(),e.createElementBlock("svg",{key:0,class:"cockpit-brutal-steel-decor",style:e.normalizeStyle({position:"fixed",left:0,top:0,pointerEvents:"none",zIndex:e.unref(h.ADMIN_CORE_VIEWPORT_DECOR_ZINDEX_BELOW),opacity:e.unref(n)?.9:.6}),width:e.unref(r),height:e.unref(t),viewBox:`0 0 ${e.unref(r)} ${e.unref(t)}`,"aria-hidden":"true"},[e.createElementVNode("defs",null,[e.createElementVNode("pattern",g,[e.createElementVNode("rect",{width:"9",height:"18",fill:c.value,opacity:e.unref(n)?.5:.4},null,8,v)]),e.createElementVNode("linearGradient",_,[e.createElementVNode("stop",{offset:"0%","stop-color":s.value,"stop-opacity":"0"},null,8,C),e.createElementVNode("stop",{offset:"50%","stop-color":s.value,"stop-opacity":e.unref(n)?.5:.28},null,8,w),e.createElementVNode("stop",{offset:"100%","stop-color":s.value,"stop-opacity":"0"},null,8,k)]),l[0]||(l[0]=e.createElementVNode("filter",{id:"brutalGrain"},[e.createElementVNode("feTurbulence",{type:"fractalNoise",baseFrequency:"0.7",numOctaves:"3",stitchTiles:"stitch"}),e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"})],-1))]),e.createElementVNode("rect",{x:0,y:0,width:e.unref(r),height:i.value,fill:"url(#brutalHazard)"},null,8,E),e.createElementVNode("rect",{x:0,y:e.unref(t)-i.value,width:e.unref(r),height:i.value,fill:"url(#brutalHazard)"},null,8,x),e.unref(o)?(e.openBlock(),e.createElementBlock("rect",{key:0,x:0,y:-e.unref(t)*.12,width:e.unref(r),height:e.unref(t)*.12,fill:"url(#brutalScan)"},[e.createElementVNode("animate",{attributeName:"y",values:`${-e.unref(t)*.12}; ${e.unref(t)}`,dur:"6s",repeatCount:"indefinite"},null,8,N)],8,V)):e.createCommentVNode("",!0),e.createElementVNode("g",{stroke:c.value,"stroke-width":"3",fill:"none",opacity:e.unref(n)?.9:.7},[l[1]||(l[1]=e.createElementVNode("path",{d:"M10 40 V10 H40"},null,-1)),e.createElementVNode("path",{d:`M${e.unref(r)-10} 40 V10 H${e.unref(r)-40}`},null,8,B),e.createElementVNode("path",{d:`M10 ${e.unref(t)-40} V${e.unref(t)-10} H40`},null,8,$),e.createElementVNode("path",{d:`M${e.unref(r)-10} ${e.unref(t)-40} V${e.unref(t)-10} H${e.unref(r)-40}`},null,8,M)],8,S),e.createElementVNode("rect",{width:e.unref(r),height:e.unref(t),filter:"url(#brutalGrain)",opacity:e.unref(n)?.08:.05},null,8,R)],12,y)):e.createCommentVNode("",!0)]))}}),D=b._export_sfc(H,[["__scopeId","data-v-d5f290cf"]]),T=e.defineComponent({__name:"BrutalSteelCockpitShell",props:{menus:{},menuFlatList:{},sidebarMenus:{},headerMenus:{},activeMenu:{},activeModuleMenu:{},showHeader:{type:Boolean},showSidebar:{type:Boolean},showAside:{type:Boolean},sidebarAboveHeader:{type:Boolean}},setup(a){const n=a;return(o,r)=>(e.openBlock(),e.createBlock(f._sfc_main,e.normalizeProps(e.guardReactiveProps(n)),e.createSlots({default:e.withCtx(t=>[e.renderSlot(o.$slots,"default",{Footer:t.Footer})]),decor:e.withCtx(()=>[e.createVNode(D)]),_:2},[o.$slots.brand?{name:"brand",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"brand")]),key:"0"}:void 0,o.$slots.themeSwitcher?{name:"themeSwitcher",fn:e.withCtx(t=>[e.renderSlot(o.$slots,"themeSwitcher",{Default:t.Default})]),key:"1"}:void 0,o.$slots.userEntry?{name:"userEntry",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"userEntry")]),key:"2"}:void 0,o.$slots.settings?{name:"settings",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"settings")]),key:"3"}:void 0,o.$slots.aside?{name:"aside",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"aside")]),key:"4"}:void 0]),1040))}}),d="admin-theme-cockpit-brutal-steel";function F(){if(typeof document>"u"||document.getElementById(d))return;const a=document.createElement("style");a.id=d,a.setAttribute("data-admin-theme","cockpit-brutal-steel"),a.textContent=`
|
|
2
2
|
.cockpit-statusbar{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.02em;}
|
|
3
3
|
.app-header-module-item{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.06em;text-transform:uppercase;}
|
|
4
4
|
`,document.head.appendChild(a)}function I(){var a;typeof document>"u"||(a=document.getElementById(d))==null||a.remove()}const A={id:"cockpit-brutal-steel",label:"座舱·机械",description:{suitable:"要工业/机械裸结构气质的 AI 控制台:高反差、硬边、确定感;适合运维/编排/监控类重操作场景。",unsuitable:"需柔和亲和/留白舒展的内容型后台;低对比护眼诉求;偏好圆润玻璃质感的场景。"},config:{light:{bodyColor:"#e8e6e1",baseColor:"#14151a",primaryColor:"#e2480c",successColor:"#2f8f43",warningColor:"#d97706",dangerColor:"#e23b2c",errorColor:"#e23b2c",infoColor:"#5b6b7d",radius:"0px",borderColor:"#1a1c20",borderWidth:"2px",accent:"#4a525c",shadow:"5px 5px 0 rgba(20, 21, 26, 0.18)",focusRing:"0 0 0 3px #e2480c",surface:"#f2f0eb"},dark:{bodyColor:"#0c0d0f",baseColor:"#eceef0",primaryColor:"#ff5b1e",successColor:"#46a758",warningColor:"#f5a524",dangerColor:"#ff4d3d",errorColor:"#ff4d3d",infoColor:"#7d8590",radius:"0px",borderColor:"#3a3f47",borderWidth:"2px",accent:"#8a93a0",shadow:"6px 6px 0 rgba(0, 0, 0, 0.6)",focusRing:"0 0 0 3px #ff5b1e",surface:"#16181b"}},layout:{viewport:{paddingTop:28,paddingRight:16,paddingBottom:28,paddingLeft:16},gap:{size:10},extractLevel1ToHeader:!0,header:{height:56,background:"var(--admin-core-surface, var(--el-bg-color-overlay))",style:{borderRadius:"0px"}},sidebar:{width:244,collapseWidth:64,background:"var(--admin-core-surface, var(--el-bg-color-overlay))",style:{borderRadius:"0px"}},aside:{width:330,background:"var(--admin-core-surface, var(--el-bg-color-overlay))",style:{borderRadius:"0px"}},footer:{height:36,background:"var(--admin-core-surface, var(--el-bg-color-overlay))",style:{borderRadius:"0px"}},breadcrumb:{height:44},body:{shimPadding:16},shell:e.markRaw(T)},onActivate(){F()},onDeactivate(){I()}};exports.default=A;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../chunks/CockpitShellBase.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../chunks/CockpitShellBase.vue_vue_type_script_setup_true_lang-CgiZq-kW.cjs"),f=require("@done-coding/admin-core"),m=require("../chunks/use-frame-geometry-5WRLC-WU.cjs"),h=require("../chunks/_plugin-vue_export-helper-BHFhmbuH.cjs"),y=["width","height","viewBox"],_={id:"liqA",cx:"50%",cy:"50%",r:"50%"},b=["stop-color","stop-opacity"],v=["stop-color","stop-opacity"],g=["stop-color"],x={id:"liqB",cx:"50%",cy:"50%",r:"50%"},C=["stop-color","stop-opacity"],k=["stop-color"],N={id:"liqScan",x1:"0%",y1:"0%",x2:"100%",y2:"0%"},E=["stop-color"],w=["stop-color","stop-opacity"],V=["stop-color"],$=["cx","cy","rx","ry"],B=["values"],q=["values"],S=["values"],R=["cx","cy","rx","ry"],I=["values"],M=["x","width","height"],F=["values"],D=["width","height","opacity"],L=e.defineComponent({__name:"LiquidInkCockpitDecor",setup(i){const{isDark:n,animated:t,vw:r,vh:a,hasFrame:u}=m.useFrameGeometry(),l=e.computed(()=>n.value?"#5b8cff":"#3f6fe6"),s=e.computed(()=>n.value?"#22d3ee":"#0e9fc4");function o(c){return Number((Math.min(r.value,a.value)*c).toFixed(1))}return(c,d)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.unref(u)?(e.openBlock(),e.createElementBlock("svg",{key:0,class:"cockpit-liquid-ink-decor",style:e.normalizeStyle({position:"fixed",left:0,top:0,pointerEvents:"none",zIndex:e.unref(f.ADMIN_CORE_VIEWPORT_DECOR_ZINDEX_BELOW),opacity:e.unref(n)?1:.55}),width:e.unref(r),height:e.unref(a),viewBox:`0 0 ${e.unref(r)} ${e.unref(a)}`,"aria-hidden":"true"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",_,[e.createElementVNode("stop",{offset:"0%","stop-color":l.value,"stop-opacity":e.unref(n)?.4:.16},null,8,b),e.createElementVNode("stop",{offset:"55%","stop-color":l.value,"stop-opacity":e.unref(n)?.12:.05},null,8,v),e.createElementVNode("stop",{offset:"100%","stop-color":l.value,"stop-opacity":"0"},null,8,g)]),e.createElementVNode("radialGradient",x,[e.createElementVNode("stop",{offset:"0%","stop-color":s.value,"stop-opacity":e.unref(n)?.32:.12},null,8,C),e.createElementVNode("stop",{offset:"100%","stop-color":s.value,"stop-opacity":"0"},null,8,k)]),e.createElementVNode("linearGradient",N,[e.createElementVNode("stop",{offset:"0%","stop-color":s.value,"stop-opacity":"0"},null,8,E),e.createElementVNode("stop",{offset:"50%","stop-color":s.value,"stop-opacity":e.unref(n)?.22:.09},null,8,w),e.createElementVNode("stop",{offset:"100%","stop-color":s.value,"stop-opacity":"0"},null,8,V)]),d[0]||(d[0]=e.createElementVNode("filter",{id:"liqGrain"},[e.createElementVNode("feTurbulence",{type:"fractalNoise",baseFrequency:"0.9",numOctaves:"2",stitchTiles:"stitch"}),e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"})],-1))]),e.createElementVNode("ellipse",{cx:e.unref(r)*.22,cy:e.unref(a)*.26,rx:o(.42),ry:o(.34),fill:"url(#liqA)"},[e.unref(t)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("animate",{attributeName:"rx",values:`${o(.42)};${o(.5)};${o(.42)}`,dur:"17s",repeatCount:"indefinite"},null,8,B),e.createElementVNode("animate",{attributeName:"ry",values:`${o(.34)};${o(.4)};${o(.34)}`,dur:"17s",repeatCount:"indefinite"},null,8,q),e.createElementVNode("animateTransform",{attributeName:"transform",type:"translate",values:`0,0; ${e.unref(r)*.03},${e.unref(a)*.025}; 0,0`,dur:"29s",repeatCount:"indefinite"},null,8,S)],64)):e.createCommentVNode("",!0)],8,$),e.createElementVNode("ellipse",{cx:e.unref(r)*.82,cy:e.unref(a)*.78,rx:o(.36),ry:o(.3),fill:"url(#liqB)"},[e.unref(t)?(e.openBlock(),e.createElementBlock("animate",{key:0,attributeName:"rx",values:`${o(.36)};${o(.44)};${o(.36)}`,dur:"21s",begin:"5s",repeatCount:"indefinite"},null,8,I)):e.createCommentVNode("",!0)],8,R),e.unref(t)?(e.openBlock(),e.createElementBlock("rect",{key:0,y:"0",x:-e.unref(r)*.16,width:e.unref(r)*.16,height:e.unref(a),fill:"url(#liqScan)"},[e.createElementVNode("animate",{attributeName:"x",values:`${-e.unref(r)*.16}; ${e.unref(r)}`,dur:"11s",repeatCount:"indefinite"},null,8,F)],8,M)):e.createCommentVNode("",!0),e.createElementVNode("rect",{width:e.unref(r),height:e.unref(a),filter:"url(#liqGrain)",opacity:e.unref(n)?.045:.02},null,8,D)],12,y)):e.createCommentVNode("",!0)]))}}),T=h._export_sfc(L,[["__scopeId","data-v-122f9ed8"]]),G=e.defineComponent({__name:"LiquidInkCockpitShell",props:{menus:{},menuFlatList:{},sidebarMenus:{},headerMenus:{},activeMenu:{},activeModuleMenu:{},showHeader:{type:Boolean},showSidebar:{type:Boolean},showAside:{type:Boolean},sidebarAboveHeader:{type:Boolean}},setup(i){const n=i;return(t,r)=>(e.openBlock(),e.createBlock(p._sfc_main,e.normalizeProps(e.guardReactiveProps(n)),e.createSlots({default:e.withCtx(a=>[e.renderSlot(t.$slots,"default",{Footer:a.Footer})]),decor:e.withCtx(()=>[e.createVNode(T)]),_:2},[t.$slots.brand?{name:"brand",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"brand")]),key:"0"}:void 0,t.$slots.themeSwitcher?{name:"themeSwitcher",fn:e.withCtx(a=>[e.renderSlot(t.$slots,"themeSwitcher",{Default:a.Default})]),key:"1"}:void 0,t.$slots.userEntry?{name:"userEntry",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"userEntry")]),key:"2"}:void 0,t.$slots.settings?{name:"settings",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"settings")]),key:"3"}:void 0,t.$slots.aside?{name:"aside",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"aside")]),key:"4"}:void 0]),1040))}}),A={id:"cockpit-liquid-ink",label:"座舱·液墨",description:{suitable:"AI / 智能应用层旗舰后台(webagent + 编辑器矩阵):要任务域切换 + 常驻副驾 + 行动状态条的 agentic 工作台;深墨玻璃沉浸、暗场为主、premium 克制。",unsuitable:"极简纯表格台 / 老年低视力主用群体 / 需全亮场暖色亲和的轻量 C 端后台。"},config:{light:{bodyColor:"#eef3fc",baseColor:"#131a2b",primaryColor:"#3f6fe6",successColor:"#16a34a",warningColor:"#d97706",dangerColor:"#e8424e",errorColor:"#e8424e",infoColor:"#5b6b7d",radius:"14px",borderColor:"#dde6f4",borderWidth:"1px",accent:"#0e9fc4",glow:"0 0 0 1px rgba(63, 111, 230, 0.12)",blur:"12px",shadow:"0 10px 30px -18px rgba(19, 26, 43, 0.2)",focusRing:"0 0 0 3px rgba(63, 111, 230, 0.22)",surface:"#ffffff"},dark:{bodyColor:"#0a0e16",baseColor:"#e6ecf5",primaryColor:"#4d84ff",successColor:"#34d399",warningColor:"#f5a524",dangerColor:"#f25864",errorColor:"#f25864",infoColor:"#7d8aa0",radius:"14px",borderColor:"rgba(91, 140, 255, 0.16)",borderWidth:"1px",accent:"#22d3ee",glow:"0 0 24px rgba(91, 140, 255, 0.35)",blur:"14px",shadow:"0 0 0 1px rgba(91, 140, 255, 0.08), 0 18px 50px -24px rgba(0, 0, 0, 0.85)",focusRing:"0 0 0 3px rgba(91, 140, 255, 0.4)",surface:"#121a2b"}},layout:{viewport:{paddingTop:18,paddingRight:18,paddingBottom:18,paddingLeft:18},gap:{size:12},extractLevel1ToHeader:!0,header:{height:58,background:"var(--admin-core-surface, var(--el-bg-color-overlay))",style:{borderRadius:"14px"}},sidebar:{width:248,collapseWidth:68,background:"var(--admin-core-surface, var(--el-bg-color-overlay))",style:{borderRadius:"14px"}},aside:{width:340,background:"var(--admin-core-surface, var(--el-bg-color-overlay))",style:{borderRadius:"14px"}},footer:{height:36,background:"var(--admin-core-surface, var(--el-bg-color-overlay))",style:{borderRadius:"14px"}},breadcrumb:{height:44},body:{shimPadding:18},shell:e.markRaw(G)}};exports.default=A;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../chunks/CockpitShellBase.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../chunks/CockpitShellBase.vue_vue_type_script_setup_true_lang-CgiZq-kW.cjs"),c=require("@done-coding/admin-core"),u=require("../chunks/use-frame-geometry-5WRLC-WU.cjs"),p=require("../chunks/_plugin-vue_export-helper-BHFhmbuH.cjs"),h=["width","height","viewBox"],f={id:"monoGrid",width:"32",height:"32",patternUnits:"userSpaceOnUse"},m=["stroke","opacity"],b=["width","height"],y=["stroke","opacity"],_=["d"],g=["d"],v=["d"],k=["y2","stroke"],C=["values"],w=["values"],$=e.defineComponent({__name:"MonoPaperCockpitDecor",setup(s){const{isDark:n,animated:o,vw:t,vh:r,hasFrame:d}=u.useFrameGeometry(),a=e.computed(()=>n.value?"#aeb6c2":"#3a3f47");return(N,i)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.unref(d)?(e.openBlock(),e.createElementBlock("svg",{key:0,class:"cockpit-mono-paper-decor",style:e.normalizeStyle({position:"fixed",left:0,top:0,pointerEvents:"none",zIndex:e.unref(c.ADMIN_CORE_VIEWPORT_DECOR_ZINDEX_BELOW),opacity:e.unref(n)?.5:.4}),width:e.unref(t),height:e.unref(r),viewBox:`0 0 ${e.unref(t)} ${e.unref(r)}`,"aria-hidden":"true"},[e.createElementVNode("defs",null,[e.createElementVNode("pattern",f,[e.createElementVNode("path",{d:"M32 0 H0 V32",fill:"none",stroke:a.value,"stroke-width":"0.5",opacity:e.unref(n)?.5:.6},null,8,m)])]),e.createElementVNode("rect",{x:0,y:0,width:e.unref(t),height:e.unref(r),fill:"url(#monoGrid)",opacity:.5},null,8,b),e.createElementVNode("g",{stroke:a.value,"stroke-width":"1",fill:"none",opacity:e.unref(n)?.7:.8},[i[0]||(i[0]=e.createElementVNode("path",{d:"M16 28 V16 H28"},null,-1)),e.createElementVNode("path",{d:`M${e.unref(t)-16} 28 V16 H${e.unref(t)-28}`},null,8,_),e.createElementVNode("path",{d:`M16 ${e.unref(r)-28} V${e.unref(r)-16} H28`},null,8,g),e.createElementVNode("path",{d:`M${e.unref(t)-16} ${e.unref(r)-28} V${e.unref(r)-16} H${e.unref(t)-28}`},null,8,v)],8,y),e.unref(o)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:0,y1:0,x2:0,y2:e.unref(r),stroke:a.value,"stroke-width":"1",opacity:"0.5"},[e.createElementVNode("animate",{attributeName:"x1",values:`0;${e.unref(t)}`,dur:"14s",repeatCount:"indefinite"},null,8,C),e.createElementVNode("animate",{attributeName:"x2",values:`0;${e.unref(t)}`,dur:"14s",repeatCount:"indefinite"},null,8,w)],8,k)):e.createCommentVNode("",!0)],12,h)):e.createCommentVNode("",!0)]))}}),E=p._export_sfc($,[["__scopeId","data-v-a518c8db"]]),V=e.defineComponent({__name:"MonoPaperCockpitShell",props:{menus:{},menuFlatList:{},sidebarMenus:{},headerMenus:{},activeMenu:{},activeModuleMenu:{},showHeader:{type:Boolean},showSidebar:{type:Boolean},showAside:{type:Boolean},sidebarAboveHeader:{type:Boolean}},setup(s){const n=s;return(o,t)=>(e.openBlock(),e.createBlock(l._sfc_main,e.normalizeProps(e.guardReactiveProps(n)),e.createSlots({default:e.withCtx(r=>[e.renderSlot(o.$slots,"default",{Footer:r.Footer})]),decor:e.withCtx(()=>[e.createVNode(E)]),_:2},[o.$slots.brand?{name:"brand",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"brand")]),key:"0"}:void 0,o.$slots.themeSwitcher?{name:"themeSwitcher",fn:e.withCtx(r=>[e.renderSlot(o.$slots,"themeSwitcher",{Default:r.Default})]),key:"1"}:void 0,o.$slots.userEntry?{name:"userEntry",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"userEntry")]),key:"2"}:void 0,o.$slots.settings?{name:"settings",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"settings")]),key:"3"}:void 0,o.$slots.aside?{name:"aside",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"aside")]),key:"4"}:void 0]),1040))}}),x={id:"cockpit-mono-paper",label:"座舱·墨纸",description:{suitable:"偏文档化/编辑器密集的 AI 工作台:要座舱系统能力但视觉极简克制、低负载、长时间停留;亮暗皆宜。",unsuitable:"需强视觉冲击/营销大屏;想要沉浸辉光科技感的场景(请用座舱·液墨 / 神经)。"},config:{light:{bodyColor:"#f2f1ec",baseColor:"#2b2e33",primaryColor:"#4f5d6e",successColor:"#4f8a63",warningColor:"#a87f3c",dangerColor:"#b15b54",errorColor:"#b15b54",infoColor:"#6b7480",radius:"4px",borderColor:"#dcdad2",borderWidth:"1px",shadow:"none",focusRing:"0 0 0 2px rgba(79, 93, 110, 0.28)",surface:"#fbfbf8"},dark:{bodyColor:"#16181c",baseColor:"#d8dce2",primaryColor:"#9fb0c4",successColor:"#6b9e7a",warningColor:"#c2a15a",dangerColor:"#c77a72",errorColor:"#c77a72",infoColor:"#8a93a0",radius:"4px",borderColor:"#2a2e35",borderWidth:"1px",shadow:"none",focusRing:"0 0 0 2px rgba(159, 176, 196, 0.4)",surface:"#1d2025"}},layout:{viewport:{paddingTop:14,paddingRight:14,paddingBottom:14,paddingLeft:14},gap:{size:10},extractLevel1ToHeader:!0,header:{height:54,background:"var(--admin-core-surface, var(--el-bg-color-overlay))",style:{borderRadius:"4px"}},sidebar:{width:240,collapseWidth:64,background:"var(--admin-core-surface, var(--el-bg-color-overlay))",style:{borderRadius:"4px"}},aside:{width:320,background:"var(--admin-core-surface, var(--el-bg-color-overlay))",style:{borderRadius:"4px"}},footer:{height:34,background:"var(--admin-core-surface, var(--el-bg-color-overlay))",style:{borderRadius:"4px"}},breadcrumb:{height:42},body:{shimPadding:20},shell:e.markRaw(V)}};exports.default=x;
|