@done-coding/admin-plugin-theme 0.1.1-alpha.0 → 0.2.1-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/applied-intelligence-frame.mjs +315 -0
- package/es/assets/applied-intelligence-nebula.mjs +400 -0
- package/es/assets/aurora-mesh.mjs +350 -0
- package/es/assets/botanical-paper.mjs +60 -0
- package/es/assets/brutal-concrete.mjs +51 -0
- package/es/assets/cockpit-brutal-steel.mjs +300 -0
- package/es/assets/cockpit-liquid-ink.mjs +329 -0
- package/es/assets/cockpit-mono-paper.mjs +238 -0
- package/es/assets/cockpit-neural-field.mjs +339 -0
- package/es/assets/compact-rail.mjs +105 -0
- package/es/assets/console-horizon.mjs +98 -0
- package/es/assets/contrast.mjs +3 -1
- package/es/assets/copilot-calm.mjs +59 -0
- package/es/assets/copilot-stage.mjs +110 -0
- package/es/assets/coral-reef.mjs +60 -0
- package/es/assets/cyber.mjs +3 -1
- package/es/assets/dragon-vermilion.mjs +450 -0
- package/es/assets/film-grade.mjs +252 -0
- package/es/assets/glass.mjs +3 -1
- package/es/assets/graphite-mono.mjs +51 -0
- package/es/assets/gugong.mjs +3 -1
- package/es/assets/ink.mjs +3 -1
- package/es/assets/neon-set.mjs +316 -0
- package/es/assets/nordic-fjord.mjs +58 -0
- package/es/assets/perspective-deck.mjs +229 -0
- package/es/assets/quantum-ai.mjs +255 -0
- package/es/assets/sandstone-editorial.mjs +60 -0
- package/es/assets/starfield-cosmos.mjs +352 -0
- package/es/assets/studio-ink.mjs +308 -0
- package/es/assets/studio-triptych.mjs +115 -0
- package/es/assets/sunset-amber.mjs +61 -0
- package/es/assets/synapse-grid.mjs +275 -0
- package/es/assets/terminal-phosphor.mjs +240 -0
- package/es/assets/velvet-noir.mjs +60 -0
- package/es/chunks/CockpitShellBase.vue_vue_type_script_setup_true_lang-B6k0Utzz.mjs +238 -0
- package/es/chunks/FrameShellBase.vue_vue_type_script_setup_true_lang-sr56H_8-.mjs +57 -0
- package/es/chunks/HeaderNavMenu.vue_vue_type_script_setup_true_lang-Dfv8_Muy.mjs +31 -0
- package/es/chunks/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/es/chunks/use-frame-geometry-DPWBVziK.mjs +45 -0
- package/es/style.css +1 -0
- package/lib/assets/applied-intelligence-frame.cjs +1 -0
- package/lib/assets/applied-intelligence-nebula.cjs +1 -0
- package/lib/assets/aurora-mesh.cjs +1 -0
- package/lib/assets/botanical-paper.cjs +1 -0
- package/lib/assets/brutal-concrete.cjs +1 -0
- package/lib/assets/cockpit-brutal-steel.cjs +4 -0
- package/lib/assets/cockpit-liquid-ink.cjs +1 -0
- package/lib/assets/cockpit-mono-paper.cjs +1 -0
- package/lib/assets/cockpit-neural-field.cjs +1 -0
- package/lib/assets/compact-rail.cjs +1 -0
- package/lib/assets/console-horizon.cjs +1 -0
- package/lib/assets/contrast.cjs +1 -1
- package/lib/assets/copilot-calm.cjs +1 -0
- package/lib/assets/copilot-stage.cjs +1 -0
- package/lib/assets/coral-reef.cjs +1 -0
- package/lib/assets/cyber.cjs +1 -1
- package/lib/assets/dragon-vermilion.cjs +1 -0
- package/lib/assets/film-grade.cjs +1 -0
- package/lib/assets/glass.cjs +1 -1
- package/lib/assets/graphite-mono.cjs +1 -0
- package/lib/assets/gugong.cjs +1 -1
- package/lib/assets/ink.cjs +1 -1
- package/lib/assets/neon-set.cjs +1 -0
- package/lib/assets/nordic-fjord.cjs +1 -0
- package/lib/assets/perspective-deck.cjs +1 -0
- package/lib/assets/quantum-ai.cjs +1 -0
- package/lib/assets/sandstone-editorial.cjs +1 -0
- package/lib/assets/starfield-cosmos.cjs +1 -0
- package/lib/assets/studio-ink.cjs +1 -0
- package/lib/assets/studio-triptych.cjs +1 -0
- package/lib/assets/sunset-amber.cjs +1 -0
- package/lib/assets/synapse-grid.cjs +1 -0
- package/lib/assets/terminal-phosphor.cjs +1 -0
- package/lib/assets/velvet-noir.cjs +1 -0
- package/lib/chunks/CockpitShellBase.vue_vue_type_script_setup_true_lang-D2LEvqm8.cjs +1 -0
- package/lib/chunks/FrameShellBase.vue_vue_type_script_setup_true_lang-C-mttf00.cjs +1 -0
- package/lib/chunks/HeaderNavMenu.vue_vue_type_script_setup_true_lang-LJ3mDZkH.cjs +1 -0
- package/lib/chunks/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
- package/lib/chunks/use-frame-geometry-5WRLC-WU.cjs +1 -0
- package/lib/style.css +1 -0
- package/package.json +3 -3
- package/types/assets/applied-intelligence-frame.d.ts +15 -0
- package/types/assets/applied-intelligence-nebula.d.ts +14 -0
- package/types/assets/aurora-mesh.d.ts +9 -0
- package/types/assets/botanical-paper.d.ts +10 -0
- package/types/assets/brutal-concrete.d.ts +10 -0
- package/types/assets/cockpit-brutal-steel.d.ts +3 -0
- package/types/assets/cockpit-liquid-ink.d.ts +14 -0
- package/types/assets/cockpit-mono-paper.d.ts +12 -0
- package/types/assets/cockpit-neural-field.d.ts +11 -0
- package/types/assets/compact-rail.d.ts +9 -0
- package/types/assets/console-horizon.d.ts +9 -0
- package/types/assets/copilot-calm.d.ts +10 -0
- package/types/assets/copilot-stage.d.ts +9 -0
- package/types/assets/coral-reef.d.ts +10 -0
- package/types/assets/dragon-vermilion.d.ts +9 -0
- package/types/assets/film-grade.d.ts +12 -0
- package/types/assets/graphite-mono.d.ts +10 -0
- package/types/assets/neon-set.d.ts +12 -0
- package/types/assets/nordic-fjord.d.ts +9 -0
- package/types/assets/perspective-deck.d.ts +10 -0
- package/types/assets/quantum-ai.d.ts +9 -0
- package/types/assets/sandstone-editorial.d.ts +10 -0
- package/types/assets/starfield-cosmos.d.ts +10 -0
- package/types/assets/studio-ink.d.ts +12 -0
- package/types/assets/studio-triptych.d.ts +9 -0
- package/types/assets/sunset-amber.d.ts +10 -0
- package/types/assets/synapse-grid.d.ts +9 -0
- package/types/assets/terminal-phosphor.d.ts +9 -0
- package/types/assets/velvet-noir.d.ts +10 -0
- package/types/shells/AppliedIntelligenceFrameShell.vue.d.ts +27 -0
- package/types/shells/AppliedIntelligenceNebulaShell.vue.d.ts +27 -0
- package/types/shells/AuroraMeshShell.vue.d.ts +26 -0
- package/types/shells/BrutalSteelCockpitShell.vue.d.ts +27 -0
- package/types/shells/CockpitShellBase.vue.d.ts +28 -0
- package/types/shells/CockpitStatusBar.vue.d.ts +2 -0
- package/types/shells/CoilingDragonShell.vue.d.ts +26 -0
- package/types/shells/CosmosShell.vue.d.ts +26 -0
- package/types/shells/FilmGradeShell.vue.d.ts +26 -0
- package/types/shells/FrameShellBase.vue.d.ts +28 -0
- package/types/shells/HeaderNavMenu.vue.d.ts +4 -0
- package/types/shells/IconRailShell.vue.d.ts +26 -0
- package/types/shells/LiquidInkCockpitShell.vue.d.ts +27 -0
- package/types/shells/MonoPaperCockpitShell.vue.d.ts +27 -0
- package/types/shells/NeonSetShell.vue.d.ts +27 -0
- package/types/shells/NeuralFieldCockpitShell.vue.d.ts +27 -0
- package/types/shells/PerspectiveDeckShell.vue.d.ts +26 -0
- package/types/shells/QuantumOrbitShell.vue.d.ts +26 -0
- package/types/shells/ScanlineShell.vue.d.ts +26 -0
- package/types/shells/StageChatShell.vue.d.ts +27 -0
- package/types/shells/StudioInkShell.vue.d.ts +27 -0
- package/types/shells/SynapseGridShell.vue.d.ts +26 -0
- package/types/shells/TopNavShell.vue.d.ts +26 -0
- package/types/shells/TriColumnShell.vue.d.ts +27 -0
- package/types/shells/decor/AuroraFrameDecor.vue.d.ts +2 -0
- package/types/shells/decor/AuroraMeshDecor.vue.d.ts +2 -0
- package/types/shells/decor/AuroraNebulaDecor.vue.d.ts +2 -0
- package/types/shells/decor/BrutalSteelCockpitDecor.vue.d.ts +2 -0
- package/types/shells/decor/CockpitFrameMatte.vue.d.ts +2 -0
- package/types/shells/decor/CoilingDragonDecor.vue.d.ts +2 -0
- package/types/shells/decor/FilmGradeDecor.vue.d.ts +2 -0
- package/types/shells/decor/LiquidInkCockpitDecor.vue.d.ts +2 -0
- package/types/shells/decor/MonoPaperCockpitDecor.vue.d.ts +2 -0
- package/types/shells/decor/NeonStageDecor.vue.d.ts +2 -0
- package/types/shells/decor/NeuralFieldCockpitDecor.vue.d.ts +2 -0
- package/types/shells/decor/PerspectiveDeckDecor.vue.d.ts +4 -0
- package/types/shells/decor/QuantumOrbitDecor.vue.d.ts +2 -0
- package/types/shells/decor/ScanlineDecor.vue.d.ts +2 -0
- package/types/shells/decor/StarfieldDecor.vue.d.ts +2 -0
- package/types/shells/decor/StudioGlowDecor.vue.d.ts +2 -0
- package/types/shells/decor/SynapseGridDecor.vue.d.ts +2 -0
- package/types/shells/decor/use-frame-geometry.d.ts +31 -0
- package/types/types.d.ts +33 -11
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { defineComponent as k, computed as v, openBlock as n, createBlock as E, Teleport as R, unref as r, createElementBlock as s, normalizeStyle as N, createElementVNode as y, Fragment as _, renderList as w, createCommentVNode as h, normalizeProps as F, guardReactiveProps as L, createSlots as T, withCtx as c, createVNode as I, renderSlot as m, markRaw as O } from "vue";
|
|
2
|
+
import { _ as z } from "../chunks/FrameShellBase.vue_vue_type_script_setup_true_lang-sr56H_8-.mjs";
|
|
3
|
+
import { ADMIN_CORE_VIEWPORT_DECOR_ZINDEX_BELOW as A } from "@done-coding/admin-core";
|
|
4
|
+
import { u as P } from "../chunks/use-frame-geometry-DPWBVziK.mjs";
|
|
5
|
+
import { _ as V } from "../chunks/_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
|
+
const W = ["width", "height", "viewBox"], H = { "stroke-width": 1.2 }, X = ["x1", "y1", "x2", "y2", "stroke", "stroke-opacity"], Z = ["dur", "begin"], j = ["dur", "begin", "path"], q = ["cx", "cy", "fill"], J = ["begin"], K = /* @__PURE__ */ k({
|
|
7
|
+
__name: "SynapseGridDecor",
|
|
8
|
+
setup(C) {
|
|
9
|
+
const { vp: u, isDark: o, animated: f, vw: l, vh: g, hasFrame: B } = P(), b = v(
|
|
10
|
+
() => Math.min(
|
|
11
|
+
u.value.paddingTop,
|
|
12
|
+
u.value.paddingRight,
|
|
13
|
+
u.value.paddingBottom,
|
|
14
|
+
u.value.paddingLeft
|
|
15
|
+
) / 2
|
|
16
|
+
), S = [
|
|
17
|
+
0.04,
|
|
18
|
+
0.12,
|
|
19
|
+
0.21,
|
|
20
|
+
0.34,
|
|
21
|
+
0.47,
|
|
22
|
+
0.58,
|
|
23
|
+
0.66,
|
|
24
|
+
0.73,
|
|
25
|
+
0.79,
|
|
26
|
+
0.85,
|
|
27
|
+
0.9,
|
|
28
|
+
0.94,
|
|
29
|
+
0.55,
|
|
30
|
+
0.27,
|
|
31
|
+
0.4,
|
|
32
|
+
0.69
|
|
33
|
+
];
|
|
34
|
+
function D(p, d) {
|
|
35
|
+
const { w: e, h: t, ins: a } = d, G = 2 * (e + t);
|
|
36
|
+
let i = p * G;
|
|
37
|
+
return i <= e ? { x: a + i, y: a } : (i -= e, i <= t ? { x: a + e, y: a + i } : (i -= t, i <= e ? { x: a + e - i, y: a + t } : (i -= e, { x: a, y: a + t - i })));
|
|
38
|
+
}
|
|
39
|
+
const x = v(() => {
|
|
40
|
+
const p = {
|
|
41
|
+
w: Math.max(0, l.value - b.value * 2),
|
|
42
|
+
h: Math.max(0, g.value - b.value * 2),
|
|
43
|
+
ins: b.value
|
|
44
|
+
};
|
|
45
|
+
return S.map((d) => D(d, p));
|
|
46
|
+
}), M = [
|
|
47
|
+
[0, 1],
|
|
48
|
+
[1, 2],
|
|
49
|
+
[2, 3],
|
|
50
|
+
[3, 4],
|
|
51
|
+
[4, 5],
|
|
52
|
+
[5, 6],
|
|
53
|
+
[6, 7],
|
|
54
|
+
[7, 8],
|
|
55
|
+
[8, 9],
|
|
56
|
+
[9, 10],
|
|
57
|
+
[10, 11],
|
|
58
|
+
[0, 13],
|
|
59
|
+
[13, 12],
|
|
60
|
+
[12, 14],
|
|
61
|
+
[14, 4],
|
|
62
|
+
[6, 15]
|
|
63
|
+
], $ = v(
|
|
64
|
+
() => M.map(([p, d], e) => {
|
|
65
|
+
const t = x.value[p], a = x.value[d];
|
|
66
|
+
return {
|
|
67
|
+
x1: t.x,
|
|
68
|
+
y1: t.y,
|
|
69
|
+
x2: a.x,
|
|
70
|
+
y2: a.y,
|
|
71
|
+
// 错相、低频脉冲(2.5~5s)。
|
|
72
|
+
dur: 2.5 + e % 6 * 0.45,
|
|
73
|
+
begin: e % 8 * 0.5
|
|
74
|
+
};
|
|
75
|
+
})
|
|
76
|
+
);
|
|
77
|
+
return (p, d) => (n(), E(R, { to: "body" }, [
|
|
78
|
+
r(B) ? (n(), s("svg", {
|
|
79
|
+
key: 0,
|
|
80
|
+
class: "synapse-grid-decor",
|
|
81
|
+
style: N({
|
|
82
|
+
position: "fixed",
|
|
83
|
+
left: 0,
|
|
84
|
+
top: 0,
|
|
85
|
+
pointerEvents: "none",
|
|
86
|
+
zIndex: r(A),
|
|
87
|
+
opacity: r(o) ? 0.4 : 0.16
|
|
88
|
+
}),
|
|
89
|
+
width: r(l),
|
|
90
|
+
height: r(g),
|
|
91
|
+
viewBox: `0 0 ${r(l)} ${r(g)}`,
|
|
92
|
+
"aria-hidden": "true"
|
|
93
|
+
}, [
|
|
94
|
+
d[0] || (d[0] = y("defs", null, [
|
|
95
|
+
y("filter", {
|
|
96
|
+
id: "synapseGlow",
|
|
97
|
+
x: "-50%",
|
|
98
|
+
y: "-50%",
|
|
99
|
+
width: "200%",
|
|
100
|
+
height: "200%"
|
|
101
|
+
}, [
|
|
102
|
+
y("feGaussianBlur", { stdDeviation: "2.5" })
|
|
103
|
+
])
|
|
104
|
+
], -1)),
|
|
105
|
+
y("g", H, [
|
|
106
|
+
(n(!0), s(_, null, w($.value, (e, t) => (n(), s("line", {
|
|
107
|
+
key: `l${t}`,
|
|
108
|
+
x1: e.x1,
|
|
109
|
+
y1: e.y1,
|
|
110
|
+
x2: e.x2,
|
|
111
|
+
y2: e.y2,
|
|
112
|
+
stroke: r(o) ? t % 2 ? "#a3e635" : "#3ddc97" : "#128a5e",
|
|
113
|
+
"stroke-opacity": r(f) ? 0.25 : 0.5
|
|
114
|
+
}, [
|
|
115
|
+
r(f) ? (n(), s("animate", {
|
|
116
|
+
key: 0,
|
|
117
|
+
attributeName: "stroke-opacity",
|
|
118
|
+
values: "0.2;0.9;0.2",
|
|
119
|
+
dur: `${e.dur}s`,
|
|
120
|
+
begin: `${e.begin}s`,
|
|
121
|
+
repeatCount: "indefinite"
|
|
122
|
+
}, null, 8, Z)) : h("", !0)
|
|
123
|
+
], 8, X))), 128))
|
|
124
|
+
]),
|
|
125
|
+
r(f) ? (n(!0), s(_, { key: 0 }, w($.value, (e, t) => (n(), s("circle", {
|
|
126
|
+
key: `p${t}`,
|
|
127
|
+
r: "3",
|
|
128
|
+
fill: "#5ee88f",
|
|
129
|
+
filter: "url(#synapseGlow)"
|
|
130
|
+
}, [
|
|
131
|
+
y("animateMotion", {
|
|
132
|
+
dur: `${e.dur}s`,
|
|
133
|
+
begin: `${e.begin}s`,
|
|
134
|
+
repeatCount: "indefinite",
|
|
135
|
+
path: `M${e.x1},${e.y1} L${e.x2},${e.y2}`
|
|
136
|
+
}, null, 8, j)
|
|
137
|
+
]))), 128)) : h("", !0),
|
|
138
|
+
(n(!0), s(_, null, w(x.value, (e, t) => (n(), s("circle", {
|
|
139
|
+
key: `n${t}`,
|
|
140
|
+
cx: e.x,
|
|
141
|
+
cy: e.y,
|
|
142
|
+
r: "2.5",
|
|
143
|
+
fill: r(o) ? "#5ee88f" : "#128a5e"
|
|
144
|
+
}, [
|
|
145
|
+
r(f) ? (n(), s("animate", {
|
|
146
|
+
key: 0,
|
|
147
|
+
attributeName: "opacity",
|
|
148
|
+
values: "0.3;0.8;0.3",
|
|
149
|
+
dur: "3s",
|
|
150
|
+
begin: `${t % 5 * 0.6}s`,
|
|
151
|
+
repeatCount: "indefinite"
|
|
152
|
+
}, null, 8, J)) : h("", !0)
|
|
153
|
+
], 8, q))), 128))
|
|
154
|
+
], 12, W)) : h("", !0)
|
|
155
|
+
]));
|
|
156
|
+
}
|
|
157
|
+
}), Q = /* @__PURE__ */ V(K, [["__scopeId", "data-v-66a77bb9"]]), U = /* @__PURE__ */ k({
|
|
158
|
+
__name: "SynapseGridShell",
|
|
159
|
+
props: {
|
|
160
|
+
menus: {},
|
|
161
|
+
menuFlatList: {},
|
|
162
|
+
sidebarMenus: {},
|
|
163
|
+
headerMenus: {},
|
|
164
|
+
activeMenu: {},
|
|
165
|
+
activeModuleMenu: {},
|
|
166
|
+
showHeader: { type: Boolean },
|
|
167
|
+
showSidebar: { type: Boolean },
|
|
168
|
+
showAside: { type: Boolean },
|
|
169
|
+
sidebarAboveHeader: { type: Boolean }
|
|
170
|
+
},
|
|
171
|
+
setup(C) {
|
|
172
|
+
const u = C;
|
|
173
|
+
return (o, f) => (n(), E(z, F(L(u)), T({
|
|
174
|
+
default: c((l) => [
|
|
175
|
+
m(o.$slots, "default", {
|
|
176
|
+
Footer: l.Footer
|
|
177
|
+
})
|
|
178
|
+
]),
|
|
179
|
+
decor: c(() => [
|
|
180
|
+
I(Q)
|
|
181
|
+
]),
|
|
182
|
+
_: 2
|
|
183
|
+
}, [
|
|
184
|
+
o.$slots.brand ? {
|
|
185
|
+
name: "brand",
|
|
186
|
+
fn: c(() => [
|
|
187
|
+
m(o.$slots, "brand")
|
|
188
|
+
]),
|
|
189
|
+
key: "0"
|
|
190
|
+
} : void 0,
|
|
191
|
+
o.$slots.themeSwitcher ? {
|
|
192
|
+
name: "themeSwitcher",
|
|
193
|
+
fn: c((l) => [
|
|
194
|
+
m(o.$slots, "themeSwitcher", {
|
|
195
|
+
Default: l.Default
|
|
196
|
+
})
|
|
197
|
+
]),
|
|
198
|
+
key: "1"
|
|
199
|
+
} : void 0,
|
|
200
|
+
o.$slots.userEntry ? {
|
|
201
|
+
name: "userEntry",
|
|
202
|
+
fn: c(() => [
|
|
203
|
+
m(o.$slots, "userEntry")
|
|
204
|
+
]),
|
|
205
|
+
key: "2"
|
|
206
|
+
} : void 0,
|
|
207
|
+
o.$slots.settings ? {
|
|
208
|
+
name: "settings",
|
|
209
|
+
fn: c(() => [
|
|
210
|
+
m(o.$slots, "settings")
|
|
211
|
+
]),
|
|
212
|
+
key: "3"
|
|
213
|
+
} : void 0
|
|
214
|
+
]), 1040));
|
|
215
|
+
}
|
|
216
|
+
}), ae = {
|
|
217
|
+
id: "synapse-grid",
|
|
218
|
+
label: "神经突触",
|
|
219
|
+
description: {
|
|
220
|
+
suitable: "智能体编排 / multi-agent 监控 / 工作流图谱 / 数据管线可观测平台;强调「节点-连线-数据流」心智的暗场控制台。",
|
|
221
|
+
unsuitable: "内容编辑 / 营销官网;需暖色亲和的 C 端后台;老年/低视力主用群体。"
|
|
222
|
+
},
|
|
223
|
+
config: {
|
|
224
|
+
light: {
|
|
225
|
+
bodyColor: "#f0f4f1",
|
|
226
|
+
baseColor: "#14241c",
|
|
227
|
+
primaryColor: "#128a5e",
|
|
228
|
+
successColor: "#128a5e",
|
|
229
|
+
warningColor: "#c2820e",
|
|
230
|
+
dangerColor: "#d83a3a",
|
|
231
|
+
errorColor: "#d83a3a",
|
|
232
|
+
infoColor: "#0d8aa6",
|
|
233
|
+
radius: "6px",
|
|
234
|
+
accent: "#5aa314",
|
|
235
|
+
surface: "#ffffff",
|
|
236
|
+
borderColor: "#d7e2db",
|
|
237
|
+
glow: "0 0 0 1px rgba(18,138,94,0.16)",
|
|
238
|
+
shadow: "0 10px 26px -14px rgba(20,36,28,0.18)",
|
|
239
|
+
focusRing: "0 0 0 2px rgba(18,138,94,0.32)"
|
|
240
|
+
},
|
|
241
|
+
dark: {
|
|
242
|
+
bodyColor: "#05090b",
|
|
243
|
+
baseColor: "#cfe6d8",
|
|
244
|
+
primaryColor: "#3ddc97",
|
|
245
|
+
successColor: "#5ee88f",
|
|
246
|
+
warningColor: "#e8b84b",
|
|
247
|
+
dangerColor: "#ff5a5a",
|
|
248
|
+
errorColor: "#ff5a5a",
|
|
249
|
+
infoColor: "#2fd4d4",
|
|
250
|
+
radius: "6px",
|
|
251
|
+
accent: "#a3e635",
|
|
252
|
+
surface: "#0c1512",
|
|
253
|
+
borderColor: "rgba(61,220,151,0.24)",
|
|
254
|
+
glow: "0 0 14px rgba(61,220,151,0.32)",
|
|
255
|
+
shadow: "0 0 0 1px rgba(61,220,151,0.12), 0 18px 44px -20px rgba(0,0,0,0.92)",
|
|
256
|
+
focusRing: "0 0 0 2px rgba(61,220,151,0.5)"
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
layout: {
|
|
260
|
+
viewport: {
|
|
261
|
+
paddingTop: 14,
|
|
262
|
+
paddingRight: 14,
|
|
263
|
+
paddingBottom: 14,
|
|
264
|
+
paddingLeft: 14
|
|
265
|
+
},
|
|
266
|
+
gap: { size: 0 },
|
|
267
|
+
header: { height: 52 },
|
|
268
|
+
sidebar: { width: 240, collapseWidth: 60 },
|
|
269
|
+
body: { shimPadding: 16 },
|
|
270
|
+
shell: O(U)
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
export {
|
|
274
|
+
ae as default
|
|
275
|
+
};
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { defineComponent as y, computed as c, openBlock as a, createBlock as v, Teleport as C, unref as e, createElementBlock as l, normalizeStyle as x, createElementVNode as o, createCommentVNode as d, normalizeProps as k, guardReactiveProps as B, createSlots as $, withCtx as s, createVNode as S, renderSlot as p, markRaw as E } from "vue";
|
|
2
|
+
import { _ as D } from "../chunks/FrameShellBase.vue_vue_type_script_setup_true_lang-sr56H_8-.mjs";
|
|
3
|
+
import { ADMIN_CORE_VIEWPORT_DECOR_ZINDEX_BELOW as M } from "@done-coding/admin-core";
|
|
4
|
+
import { u as R } from "../chunks/use-frame-geometry-DPWBVziK.mjs";
|
|
5
|
+
import { _ as G } from "../chunks/_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
|
+
const N = ["width", "height", "viewBox"], P = {
|
|
7
|
+
id: "scanlinePattern",
|
|
8
|
+
width: "3",
|
|
9
|
+
height: "3",
|
|
10
|
+
patternUnits: "userSpaceOnUse"
|
|
11
|
+
}, I = ["fill"], T = ["width", "height"], W = ["x", "y", "width", "height", "stroke", "stroke-width", "filter"], F = {
|
|
12
|
+
key: 0,
|
|
13
|
+
attributeName: "stroke-opacity",
|
|
14
|
+
values: "0.5;1;0.5",
|
|
15
|
+
dur: "3s",
|
|
16
|
+
repeatCount: "indefinite"
|
|
17
|
+
}, L = ["width"], O = ["values"], z = { key: 2 }, V = /* @__PURE__ */ y({
|
|
18
|
+
__name: "ScanlineDecor",
|
|
19
|
+
setup(m) {
|
|
20
|
+
const { vp: i, isDark: t, animated: f, vw: r, vh: n, hasFrame: b } = R(), g = c(() => t.value ? "#39ff14" : "#0f8a4f"), h = c(
|
|
21
|
+
() => Math.min(
|
|
22
|
+
i.value.paddingTop,
|
|
23
|
+
i.value.paddingRight,
|
|
24
|
+
i.value.paddingBottom,
|
|
25
|
+
i.value.paddingLeft
|
|
26
|
+
) / 2
|
|
27
|
+
), w = c(() => Math.max(0, r.value - h.value * 2)), _ = c(() => Math.max(0, n.value - h.value * 2));
|
|
28
|
+
return (U, u) => (a(), v(C, { to: "body" }, [
|
|
29
|
+
e(b) ? (a(), l("svg", {
|
|
30
|
+
key: 0,
|
|
31
|
+
class: "scanline-decor",
|
|
32
|
+
style: x({
|
|
33
|
+
position: "fixed",
|
|
34
|
+
left: 0,
|
|
35
|
+
top: 0,
|
|
36
|
+
pointerEvents: "none",
|
|
37
|
+
zIndex: e(M)
|
|
38
|
+
}),
|
|
39
|
+
width: e(r),
|
|
40
|
+
height: e(n),
|
|
41
|
+
viewBox: `0 0 ${e(r)} ${e(n)}`,
|
|
42
|
+
"aria-hidden": "true"
|
|
43
|
+
}, [
|
|
44
|
+
o("defs", null, [
|
|
45
|
+
o("pattern", P, [
|
|
46
|
+
o("rect", {
|
|
47
|
+
width: "3",
|
|
48
|
+
height: "1",
|
|
49
|
+
fill: g.value
|
|
50
|
+
}, null, 8, I)
|
|
51
|
+
]),
|
|
52
|
+
u[0] || (u[0] = o("filter", {
|
|
53
|
+
id: "scanlineGlow",
|
|
54
|
+
x: "-20%",
|
|
55
|
+
y: "-20%",
|
|
56
|
+
width: "140%",
|
|
57
|
+
height: "140%"
|
|
58
|
+
}, [
|
|
59
|
+
o("feGaussianBlur", { stdDeviation: "2.5" })
|
|
60
|
+
], -1))
|
|
61
|
+
]),
|
|
62
|
+
e(t) ? (a(), l("rect", {
|
|
63
|
+
key: 0,
|
|
64
|
+
width: e(r),
|
|
65
|
+
height: e(n),
|
|
66
|
+
fill: "url(#scanlinePattern)",
|
|
67
|
+
opacity: "0.06"
|
|
68
|
+
}, null, 8, T)) : d("", !0),
|
|
69
|
+
o("rect", {
|
|
70
|
+
x: h.value,
|
|
71
|
+
y: h.value,
|
|
72
|
+
width: w.value,
|
|
73
|
+
height: _.value,
|
|
74
|
+
fill: "none",
|
|
75
|
+
stroke: g.value,
|
|
76
|
+
"stroke-width": e(t) ? 1.5 : 1,
|
|
77
|
+
filter: e(t) ? "url(#scanlineGlow)" : void 0
|
|
78
|
+
}, [
|
|
79
|
+
e(f) ? (a(), l("animate", F)) : d("", !0)
|
|
80
|
+
], 8, W),
|
|
81
|
+
e(f) ? (a(), l("rect", {
|
|
82
|
+
key: 1,
|
|
83
|
+
width: e(r),
|
|
84
|
+
height: "60",
|
|
85
|
+
fill: "url(#scanBandGrad)",
|
|
86
|
+
opacity: "0.1"
|
|
87
|
+
}, [
|
|
88
|
+
o("animateTransform", {
|
|
89
|
+
attributeName: "transform",
|
|
90
|
+
type: "translate",
|
|
91
|
+
values: `0,-60;0,${e(n)}`,
|
|
92
|
+
dur: "6s",
|
|
93
|
+
repeatCount: "indefinite"
|
|
94
|
+
}, null, 8, O)
|
|
95
|
+
], 8, L)) : d("", !0),
|
|
96
|
+
e(f) ? (a(), l("defs", z, [...u[1] || (u[1] = [
|
|
97
|
+
o("linearGradient", {
|
|
98
|
+
id: "scanBandGrad",
|
|
99
|
+
x1: "0",
|
|
100
|
+
y1: "0",
|
|
101
|
+
x2: "0",
|
|
102
|
+
y2: "1"
|
|
103
|
+
}, [
|
|
104
|
+
o("stop", {
|
|
105
|
+
offset: "0%",
|
|
106
|
+
"stop-color": "#39ff14",
|
|
107
|
+
"stop-opacity": "0"
|
|
108
|
+
}),
|
|
109
|
+
o("stop", {
|
|
110
|
+
offset: "50%",
|
|
111
|
+
"stop-color": "#39ff14",
|
|
112
|
+
"stop-opacity": "1"
|
|
113
|
+
}),
|
|
114
|
+
o("stop", {
|
|
115
|
+
offset: "100%",
|
|
116
|
+
"stop-color": "#39ff14",
|
|
117
|
+
"stop-opacity": "0"
|
|
118
|
+
})
|
|
119
|
+
], -1)
|
|
120
|
+
])])) : d("", !0)
|
|
121
|
+
], 12, N)) : d("", !0)
|
|
122
|
+
]));
|
|
123
|
+
}
|
|
124
|
+
}), A = /* @__PURE__ */ G(V, [["__scopeId", "data-v-cf9db83e"]]), H = /* @__PURE__ */ y({
|
|
125
|
+
__name: "ScanlineShell",
|
|
126
|
+
props: {
|
|
127
|
+
menus: {},
|
|
128
|
+
menuFlatList: {},
|
|
129
|
+
sidebarMenus: {},
|
|
130
|
+
headerMenus: {},
|
|
131
|
+
activeMenu: {},
|
|
132
|
+
activeModuleMenu: {},
|
|
133
|
+
showHeader: { type: Boolean },
|
|
134
|
+
showSidebar: { type: Boolean },
|
|
135
|
+
showAside: { type: Boolean },
|
|
136
|
+
sidebarAboveHeader: { type: Boolean }
|
|
137
|
+
},
|
|
138
|
+
setup(m) {
|
|
139
|
+
const i = m;
|
|
140
|
+
return (t, f) => (a(), v(D, k(B(i)), $({
|
|
141
|
+
default: s((r) => [
|
|
142
|
+
p(t.$slots, "default", {
|
|
143
|
+
Footer: r.Footer
|
|
144
|
+
})
|
|
145
|
+
]),
|
|
146
|
+
decor: s(() => [
|
|
147
|
+
S(A)
|
|
148
|
+
]),
|
|
149
|
+
_: 2
|
|
150
|
+
}, [
|
|
151
|
+
t.$slots.brand ? {
|
|
152
|
+
name: "brand",
|
|
153
|
+
fn: s(() => [
|
|
154
|
+
p(t.$slots, "brand")
|
|
155
|
+
]),
|
|
156
|
+
key: "0"
|
|
157
|
+
} : void 0,
|
|
158
|
+
t.$slots.themeSwitcher ? {
|
|
159
|
+
name: "themeSwitcher",
|
|
160
|
+
fn: s((r) => [
|
|
161
|
+
p(t.$slots, "themeSwitcher", {
|
|
162
|
+
Default: r.Default
|
|
163
|
+
})
|
|
164
|
+
]),
|
|
165
|
+
key: "1"
|
|
166
|
+
} : void 0,
|
|
167
|
+
t.$slots.userEntry ? {
|
|
168
|
+
name: "userEntry",
|
|
169
|
+
fn: s(() => [
|
|
170
|
+
p(t.$slots, "userEntry")
|
|
171
|
+
]),
|
|
172
|
+
key: "2"
|
|
173
|
+
} : void 0,
|
|
174
|
+
t.$slots.settings ? {
|
|
175
|
+
name: "settings",
|
|
176
|
+
fn: s(() => [
|
|
177
|
+
p(t.$slots, "settings")
|
|
178
|
+
]),
|
|
179
|
+
key: "3"
|
|
180
|
+
} : void 0
|
|
181
|
+
]), 1040));
|
|
182
|
+
}
|
|
183
|
+
}), K = {
|
|
184
|
+
id: "terminal-phosphor",
|
|
185
|
+
label: "磷光终端",
|
|
186
|
+
description: {
|
|
187
|
+
suitable: "日志/监控/运维终端、CLI 风格后台、开发者控制台;偏爱「老式磷光显示器/绿底终端」复古极客味的场景。",
|
|
188
|
+
unsuitable: "C 端 / 营销 / 内容;亮场为主需求;强无障碍(绿底等宽对部分用户不友好)。"
|
|
189
|
+
},
|
|
190
|
+
config: {
|
|
191
|
+
light: {
|
|
192
|
+
bodyColor: "#eef2ec",
|
|
193
|
+
baseColor: "#0d2818",
|
|
194
|
+
primaryColor: "#0f8a4f",
|
|
195
|
+
successColor: "#0f8a4f",
|
|
196
|
+
warningColor: "#b07b16",
|
|
197
|
+
dangerColor: "#c23636",
|
|
198
|
+
errorColor: "#c23636",
|
|
199
|
+
infoColor: "#2a7a6e",
|
|
200
|
+
radius: "2px",
|
|
201
|
+
borderColor: "#cdddd0",
|
|
202
|
+
borderWidth: "1px",
|
|
203
|
+
shadow: "0 4px 16px -10px rgba(13,40,24,0.16)",
|
|
204
|
+
focusRing: "0 0 0 2px rgba(15,138,79,0.35)"
|
|
205
|
+
},
|
|
206
|
+
dark: {
|
|
207
|
+
bodyColor: "#020503",
|
|
208
|
+
baseColor: "#2fe08c",
|
|
209
|
+
primaryColor: "#39ff14",
|
|
210
|
+
successColor: "#39ff14",
|
|
211
|
+
warningColor: "#e8c547",
|
|
212
|
+
dangerColor: "#ff4d4d",
|
|
213
|
+
errorColor: "#ff4d4d",
|
|
214
|
+
infoColor: "#2af0c8",
|
|
215
|
+
radius: "2px",
|
|
216
|
+
surface: "#061008",
|
|
217
|
+
borderColor: "rgba(57,255,20,0.28)",
|
|
218
|
+
borderWidth: "1px",
|
|
219
|
+
glow: "0 0 12px rgba(57,255,20,0.4)",
|
|
220
|
+
shadow: "0 0 0 1px rgba(57,255,20,0.14), 0 16px 40px -20px rgba(0,0,0,0.95)",
|
|
221
|
+
focusRing: "0 0 0 2px rgba(57,255,20,0.55)"
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
layout: {
|
|
225
|
+
viewport: {
|
|
226
|
+
paddingTop: 10,
|
|
227
|
+
paddingRight: 10,
|
|
228
|
+
paddingBottom: 10,
|
|
229
|
+
paddingLeft: 10
|
|
230
|
+
},
|
|
231
|
+
gap: { size: 0 },
|
|
232
|
+
header: { height: 44 },
|
|
233
|
+
sidebar: { width: 220, collapseWidth: 52 },
|
|
234
|
+
body: { shimPadding: 14 },
|
|
235
|
+
shell: E(H)
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
export {
|
|
239
|
+
K as default
|
|
240
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
const r = {
|
|
2
|
+
id: "velvet-noir",
|
|
3
|
+
label: "丝绒午夜",
|
|
4
|
+
description: {
|
|
5
|
+
suitable: "高端品牌后台、奢侈品 / 私人银行 / 会员体系、需精致克制贵气暗场调性的产品。",
|
|
6
|
+
unsuitable: "开发者工具 / 高密度数据台;需活泼或亲民调性;强无障碍纯对比需求。"
|
|
7
|
+
},
|
|
8
|
+
config: {
|
|
9
|
+
light: {
|
|
10
|
+
bodyColor: "#f2eee6",
|
|
11
|
+
baseColor: "#2a2230",
|
|
12
|
+
primaryColor: "#7a5c8a",
|
|
13
|
+
successColor: "#4f8060",
|
|
14
|
+
warningColor: "#b08a2e",
|
|
15
|
+
dangerColor: "#b04658",
|
|
16
|
+
errorColor: "#b04658",
|
|
17
|
+
infoColor: "#5a5f7a",
|
|
18
|
+
radius: "8px",
|
|
19
|
+
accent: "#b8954a",
|
|
20
|
+
surface: "#faf6ee",
|
|
21
|
+
borderColor: "#e2dacb",
|
|
22
|
+
shadow: "0 6px 24px -14px rgba(42, 34, 48, 0.16)",
|
|
23
|
+
focusRing: "0 0 0 2px rgba(122, 92, 138, 0.3)"
|
|
24
|
+
},
|
|
25
|
+
dark: {
|
|
26
|
+
bodyColor: "#14101a",
|
|
27
|
+
baseColor: "#e6dded",
|
|
28
|
+
primaryColor: "#b89ad0",
|
|
29
|
+
successColor: "#6aa884",
|
|
30
|
+
warningColor: "#d4b25c",
|
|
31
|
+
dangerColor: "#d4697c",
|
|
32
|
+
errorColor: "#d4697c",
|
|
33
|
+
infoColor: "#8a8fb0",
|
|
34
|
+
radius: "8px",
|
|
35
|
+
accent: "#c9a96a",
|
|
36
|
+
surface: "#1d1726",
|
|
37
|
+
borderColor: "rgba(201, 169, 106, 0.3)",
|
|
38
|
+
shadow: "0 16px 40px -18px rgba(0, 0, 0, 0.85)",
|
|
39
|
+
focusRing: "0 0 0 2px rgba(201, 169, 106, 0.4)"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
layout: {
|
|
43
|
+
gap: { size: 10 },
|
|
44
|
+
header: {
|
|
45
|
+
height: 58,
|
|
46
|
+
background: "var(--admin-core-surface, var(--el-bg-color-overlay))",
|
|
47
|
+
style: { borderRadius: "8px" }
|
|
48
|
+
},
|
|
49
|
+
sidebar: {
|
|
50
|
+
width: 252,
|
|
51
|
+
collapseWidth: 64,
|
|
52
|
+
background: "var(--admin-core-surface, var(--el-bg-color-overlay))",
|
|
53
|
+
style: { borderRadius: "8px" }
|
|
54
|
+
},
|
|
55
|
+
body: { shimPadding: 24 }
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
r as default
|
|
60
|
+
};
|