jmash-core 0.1.16 → 0.1.18
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/dist/{401-KAeiuNjv.mjs → 401-D6Q94FzV.mjs} +1 -1
- package/dist/{404-acqFGqEv.mjs → 404-DhAbpKMM.mjs} +1 -1
- package/dist/{BarChart-wJtn8Ow_.mjs → BarChart-CRekzHxP.mjs} +1 -1
- package/dist/{index-BhlOqpSI.mjs → index-1lsWqWL5.mjs} +3 -3
- package/dist/{index-Crx8EUrV.mjs → index-BrR5K1DU.mjs} +2459 -2413
- package/dist/{index-CMJKWgJS.mjs → index-CnulSJWc.mjs} +12 -12
- package/dist/{index-D1KMMIxN.mjs → index-DP79aUrH.mjs} +15 -15
- package/dist/index-DgZeveji.mjs +2164 -0
- package/dist/index-xCPCjZu8.mjs +463 -0
- package/dist/index.mjs +54 -52
- package/dist/index.vue_vue_type_script_setup_true_lang-Dj7pKP1u.mjs +130 -0
- package/dist/{profile-DrNc9zRG.mjs → profile-rd1rLI2V.mjs} +17 -17
- package/dist/{runAs-Bnicmqn-.mjs → runAs-DaaarFVR.mjs} +1 -1
- package/dist/{runAs.vue_vue_type_script_setup_true_lang-DCtZwltr.mjs → runAs.vue_vue_type_script_setup_true_lang-C-1uRJoS.mjs} +138 -138
- package/dist/style.css +1 -1
- package/dist/{types-LJiNV7Za.mjs → types-hlyKOzFS.mjs} +10 -10
- package/dist/{updatePwd-C5bezsVR.mjs → updatePwd-CYG_P7Xc.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-B7WfsD0M.mjs → updatePwd.vue_vue_type_script_setup_true_lang-B1eIL13s.mjs} +12 -12
- package/dts/src/api/auth/index.d.ts +2 -1
- package/dts/src/api/auth/types.d.ts +12 -0
- package/dts/src/api/change/index.d.ts +13 -0
- package/dts/src/api/change/types.d.ts +26 -0
- package/dts/src/components/ForgetPwd/index.vue.d.ts +6 -0
- package/dts/src/components/GraphicValidate/index.vue.d.ts +8 -0
- package/dts/src/components/GraphicVerification/index.vue.d.ts +8 -0
- package/dts/src/components/JmashMultiImageUpload/index.vue.d.ts +1 -1
- package/dts/src/components/NameValidate/index.vue.d.ts +63 -0
- package/dts/src/index.d.ts +2 -2
- package/dts/src/lang/package/zh-cn.d.ts +38 -1
- package/dts/src/layout/components/NavBar/components/ChangePhoneEmail.vue.d.ts +6 -0
- package/dts/src/layout/components/NavBar/components/ChangeWechatBind.vue.d.ts +10 -0
- package/dts/src/layout/components/NavBar/components/QrCode.vue.d.ts +18 -0
- package/package.json +1 -1
- package/dist/index-Cag9NoGd.mjs +0 -1633
- package/dist/index-hX78lDCk.mjs +0 -244
package/dist/index-Cag9NoGd.mjs
DELETED
|
@@ -1,1633 +0,0 @@
|
|
|
1
|
-
import { u as Z, _ as le, E as ze, S as Fe, a as we, b as Ue, c as te, D as _e, d as qe, f as He, e as We, g as de, h as q, i as Ve, r as Te, j as me, T as he, s as Ke, m as Xe, k as je, l as fe, n as Ge } from "./index-Crx8EUrV.mjs";
|
|
2
|
-
import { defineComponent as D, ref as U, resolveComponent as V, createBlock as S, openBlock as d, withCtx as h, createElementVNode as k, createVNode as p, createElementBlock as x, Fragment as K, renderList as se, unref as l, createTextVNode as N, toDisplayString as E, computed as B, createCommentVNode as T, isRef as ve, watch as oe, onBeforeMount as Ye, TransitionGroup as Je, withModifiers as ue, normalizeClass as H, Transition as Me, KeepAlive as Qe, resolveDynamicComponent as ye, getCurrentInstance as Ze, nextTick as $e, onMounted as Ee, withDirectives as et, normalizeStyle as tt, vShow as nt, normalizeProps as ot, guardReactiveProps as it, renderSlot as at, watchEffect as lt } from "vue";
|
|
3
|
-
import { useRoute as pe, useRouter as ke } from "vue-router";
|
|
4
|
-
import { _ as st } from "./updatePwd.vue_vue_type_script_setup_true_lang-B7WfsD0M.mjs";
|
|
5
|
-
import { _ as rt, E as ct } from "./runAs.vue_vue_type_script_setup_true_lang-DCtZwltr.mjs";
|
|
6
|
-
import { storeToRefs as ut } from "pinia";
|
|
7
|
-
const dt = /* @__PURE__ */ D({
|
|
8
|
-
__name: "index",
|
|
9
|
-
setup(i) {
|
|
10
|
-
const e = Z(), t = U([
|
|
11
|
-
{ label: "默认", value: "default" },
|
|
12
|
-
{ label: "大型", value: "large" },
|
|
13
|
-
{ label: "小型", value: "small" }
|
|
14
|
-
]);
|
|
15
|
-
function o(r) {
|
|
16
|
-
e.changeSize(r), ze.success("切换布局大小成功");
|
|
17
|
-
}
|
|
18
|
-
return (r, n) => {
|
|
19
|
-
const a = le, s = V("el-dropdown-item"), c = V("el-dropdown-menu"), f = V("el-dropdown");
|
|
20
|
-
return d(), S(f, {
|
|
21
|
-
trigger: "click",
|
|
22
|
-
onCommand: o
|
|
23
|
-
}, {
|
|
24
|
-
dropdown: h(() => [
|
|
25
|
-
p(c, null, {
|
|
26
|
-
default: h(() => [
|
|
27
|
-
(d(!0), x(K, null, se(l(t), (m) => (d(), S(s, {
|
|
28
|
-
key: m.value,
|
|
29
|
-
disabled: l(e).size == m.value,
|
|
30
|
-
command: m.value
|
|
31
|
-
}, {
|
|
32
|
-
default: h(() => [
|
|
33
|
-
N(E(m.label), 1)
|
|
34
|
-
]),
|
|
35
|
-
_: 2
|
|
36
|
-
}, 1032, ["disabled", "command"]))), 128))
|
|
37
|
-
]),
|
|
38
|
-
_: 1
|
|
39
|
-
})
|
|
40
|
-
]),
|
|
41
|
-
default: h(() => [
|
|
42
|
-
k("div", null, [
|
|
43
|
-
p(a, { "icon-class": "size" })
|
|
44
|
-
])
|
|
45
|
-
]),
|
|
46
|
-
_: 1
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
}), ft = { class: "flex" }, mt = { class: "flex-center h100% p10px" }, pt = ["src"], _t = { key: 0 }, vt = /* @__PURE__ */ D({
|
|
51
|
-
__name: "NavbarRight",
|
|
52
|
-
setup(i) {
|
|
53
|
-
const e = new Fe(), t = Z(), o = we(), r = Ue(), n = te();
|
|
54
|
-
pe();
|
|
55
|
-
const a = ke(), s = B(() => t.device === _e.MOBILE), c = U(!1), f = U(!1), { isFullscreen: m, toggle: u } = qe(), _ = B(() => He.imageUrl(r.user.avatar, 48, 48)), g = (C) => {
|
|
56
|
-
C.target.src = "https://gh.sooyie.cn/v1/file/path/wxapp/images/user/avatar.png";
|
|
57
|
-
};
|
|
58
|
-
function y() {
|
|
59
|
-
f.value = !0;
|
|
60
|
-
}
|
|
61
|
-
function A() {
|
|
62
|
-
ct.confirm("确定注销并退出系统吗?", "提示", {
|
|
63
|
-
confirmButtonText: "确定",
|
|
64
|
-
cancelButtonText: "取消",
|
|
65
|
-
type: "warning",
|
|
66
|
-
lockScroll: !1
|
|
67
|
-
}).then(() => {
|
|
68
|
-
r.logout().then(() => {
|
|
69
|
-
o.delAllViews();
|
|
70
|
-
}).then(() => {
|
|
71
|
-
a.push("/login");
|
|
72
|
-
});
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
function $(C) {
|
|
76
|
-
c.value = C;
|
|
77
|
-
}
|
|
78
|
-
return (C, L) => {
|
|
79
|
-
const w = le, Y = dt, ee = V("el-tooltip"), ne = We, X = V("router-link"), J = V("el-dropdown-item"), z = V("el-dropdown-menu"), I = V("el-dropdown");
|
|
80
|
-
return d(), x("div", ft, [
|
|
81
|
-
l(s) ? T("", !0) : (d(), x(K, { key: 0 }, [
|
|
82
|
-
k("div", {
|
|
83
|
-
class: "setting-item",
|
|
84
|
-
onClick: L[0] || (L[0] = //@ts-ignore
|
|
85
|
-
(...R) => l(u) && l(u)(...R))
|
|
86
|
-
}, [
|
|
87
|
-
p(w, {
|
|
88
|
-
"icon-class": l(m) ? "fullscreen-exit" : "fullscreen"
|
|
89
|
-
}, null, 8, ["icon-class"])
|
|
90
|
-
]),
|
|
91
|
-
p(ee, {
|
|
92
|
-
content: C.$t("sizeSelect.tooltip"),
|
|
93
|
-
effect: "dark",
|
|
94
|
-
placement: "bottom"
|
|
95
|
-
}, {
|
|
96
|
-
default: h(() => [
|
|
97
|
-
p(Y, { class: "setting-item" })
|
|
98
|
-
]),
|
|
99
|
-
_: 1
|
|
100
|
-
}, 8, ["content"]),
|
|
101
|
-
p(ne, { class: "setting-item" })
|
|
102
|
-
], 64)),
|
|
103
|
-
p(I, {
|
|
104
|
-
class: "setting-item",
|
|
105
|
-
trigger: "click"
|
|
106
|
-
}, {
|
|
107
|
-
dropdown: h(() => [
|
|
108
|
-
p(z, null, {
|
|
109
|
-
default: h(() => [
|
|
110
|
-
p(J, null, {
|
|
111
|
-
default: h(() => [
|
|
112
|
-
p(X, { to: "/" }, {
|
|
113
|
-
default: h(() => [
|
|
114
|
-
N(E(C.$t("navbar.Dashboard")), 1)
|
|
115
|
-
]),
|
|
116
|
-
_: 1
|
|
117
|
-
})
|
|
118
|
-
]),
|
|
119
|
-
_: 1
|
|
120
|
-
}),
|
|
121
|
-
p(J, null, {
|
|
122
|
-
default: h(() => [
|
|
123
|
-
p(X, { to: "/my/profile" }, {
|
|
124
|
-
default: h(() => [
|
|
125
|
-
N(E(C.$t("navbar.profile")), 1)
|
|
126
|
-
]),
|
|
127
|
-
_: 1
|
|
128
|
-
})
|
|
129
|
-
]),
|
|
130
|
-
_: 1
|
|
131
|
-
}),
|
|
132
|
-
p(J, {
|
|
133
|
-
onClick: L[1] || (L[1] = (R) => c.value = !0)
|
|
134
|
-
}, {
|
|
135
|
-
default: h(() => [
|
|
136
|
-
N(E(C.$t("navbar.changePwd")), 1)
|
|
137
|
-
]),
|
|
138
|
-
_: 1
|
|
139
|
-
}),
|
|
140
|
-
l(e).hasRole("tester") || l(e).userInfo().runAs ? (d(), x("div", _t, [
|
|
141
|
-
p(J, { onClick: y }, {
|
|
142
|
-
default: h(() => [
|
|
143
|
-
N(E(C.$t("navbar.runAs")), 1)
|
|
144
|
-
]),
|
|
145
|
-
_: 1
|
|
146
|
-
})
|
|
147
|
-
])) : T("", !0),
|
|
148
|
-
p(J, {
|
|
149
|
-
divided: "",
|
|
150
|
-
onClick: A
|
|
151
|
-
}, {
|
|
152
|
-
default: h(() => [
|
|
153
|
-
N(E(C.$t("navbar.logout")), 1)
|
|
154
|
-
]),
|
|
155
|
-
_: 1
|
|
156
|
-
})
|
|
157
|
-
]),
|
|
158
|
-
_: 1
|
|
159
|
-
})
|
|
160
|
-
]),
|
|
161
|
-
default: h(() => [
|
|
162
|
-
k("div", mt, [
|
|
163
|
-
k("img", {
|
|
164
|
-
src: l(_),
|
|
165
|
-
class: "rounded-full mr-10px w24px w24px",
|
|
166
|
-
onError: g
|
|
167
|
-
}, null, 40, pt),
|
|
168
|
-
k("span", null, E(l(r).user.nickName), 1)
|
|
169
|
-
])
|
|
170
|
-
]),
|
|
171
|
-
_: 1
|
|
172
|
-
}),
|
|
173
|
-
l(de).showSettings ? (d(), x("div", {
|
|
174
|
-
key: 1,
|
|
175
|
-
class: "setting-item",
|
|
176
|
-
onClick: L[2] || (L[2] = (R) => l(n).settingsVisible = !0)
|
|
177
|
-
}, [
|
|
178
|
-
p(w, { "icon-class": "setting" })
|
|
179
|
-
])) : T("", !0),
|
|
180
|
-
l(c) ? (d(), S(st, {
|
|
181
|
-
key: 2,
|
|
182
|
-
"pwd-visible": l(c),
|
|
183
|
-
onDialogActionChange: $
|
|
184
|
-
}, null, 8, ["pwd-visible"])) : T("", !0),
|
|
185
|
-
l(f) ? (d(), S(rt, {
|
|
186
|
-
key: 3,
|
|
187
|
-
modelValue: l(f),
|
|
188
|
-
"onUpdate:modelValue": L[3] || (L[3] = (R) => ve(f) ? f.value = R : null)
|
|
189
|
-
}, null, 8, ["modelValue"])) : T("", !0)
|
|
190
|
-
]);
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
}), Le = /* @__PURE__ */ q(vt, [["__scopeId", "data-v-745304a4"]]);
|
|
194
|
-
function gt(i) {
|
|
195
|
-
for (var e = [], t = 0; t < i.length; ) {
|
|
196
|
-
var o = i[t];
|
|
197
|
-
if (o === "*" || o === "+" || o === "?") {
|
|
198
|
-
e.push({ type: "MODIFIER", index: t, value: i[t++] });
|
|
199
|
-
continue;
|
|
200
|
-
}
|
|
201
|
-
if (o === "\\") {
|
|
202
|
-
e.push({ type: "ESCAPED_CHAR", index: t++, value: i[t++] });
|
|
203
|
-
continue;
|
|
204
|
-
}
|
|
205
|
-
if (o === "{") {
|
|
206
|
-
e.push({ type: "OPEN", index: t, value: i[t++] });
|
|
207
|
-
continue;
|
|
208
|
-
}
|
|
209
|
-
if (o === "}") {
|
|
210
|
-
e.push({ type: "CLOSE", index: t, value: i[t++] });
|
|
211
|
-
continue;
|
|
212
|
-
}
|
|
213
|
-
if (o === ":") {
|
|
214
|
-
for (var r = "", n = t + 1; n < i.length; ) {
|
|
215
|
-
var a = i.charCodeAt(n);
|
|
216
|
-
if (
|
|
217
|
-
// `0-9`
|
|
218
|
-
a >= 48 && a <= 57 || // `A-Z`
|
|
219
|
-
a >= 65 && a <= 90 || // `a-z`
|
|
220
|
-
a >= 97 && a <= 122 || // `_`
|
|
221
|
-
a === 95
|
|
222
|
-
) {
|
|
223
|
-
r += i[n++];
|
|
224
|
-
continue;
|
|
225
|
-
}
|
|
226
|
-
break;
|
|
227
|
-
}
|
|
228
|
-
if (!r)
|
|
229
|
-
throw new TypeError("Missing parameter name at ".concat(t));
|
|
230
|
-
e.push({ type: "NAME", index: t, value: r }), t = n;
|
|
231
|
-
continue;
|
|
232
|
-
}
|
|
233
|
-
if (o === "(") {
|
|
234
|
-
var s = 1, c = "", n = t + 1;
|
|
235
|
-
if (i[n] === "?")
|
|
236
|
-
throw new TypeError('Pattern cannot start with "?" at '.concat(n));
|
|
237
|
-
for (; n < i.length; ) {
|
|
238
|
-
if (i[n] === "\\") {
|
|
239
|
-
c += i[n++] + i[n++];
|
|
240
|
-
continue;
|
|
241
|
-
}
|
|
242
|
-
if (i[n] === ")") {
|
|
243
|
-
if (s--, s === 0) {
|
|
244
|
-
n++;
|
|
245
|
-
break;
|
|
246
|
-
}
|
|
247
|
-
} else if (i[n] === "(" && (s++, i[n + 1] !== "?"))
|
|
248
|
-
throw new TypeError("Capturing groups are not allowed at ".concat(n));
|
|
249
|
-
c += i[n++];
|
|
250
|
-
}
|
|
251
|
-
if (s)
|
|
252
|
-
throw new TypeError("Unbalanced pattern at ".concat(t));
|
|
253
|
-
if (!c)
|
|
254
|
-
throw new TypeError("Missing pattern at ".concat(t));
|
|
255
|
-
e.push({ type: "PATTERN", index: t, value: c }), t = n;
|
|
256
|
-
continue;
|
|
257
|
-
}
|
|
258
|
-
e.push({ type: "CHAR", index: t, value: i[t++] });
|
|
259
|
-
}
|
|
260
|
-
return e.push({ type: "END", index: t, value: "" }), e;
|
|
261
|
-
}
|
|
262
|
-
function ht(i, e) {
|
|
263
|
-
e === void 0 && (e = {});
|
|
264
|
-
for (var t = gt(i), o = e.prefixes, r = o === void 0 ? "./" : o, n = e.delimiter, a = n === void 0 ? "/#?" : n, s = [], c = 0, f = 0, m = "", u = function(z) {
|
|
265
|
-
if (f < t.length && t[f].type === z)
|
|
266
|
-
return t[f++].value;
|
|
267
|
-
}, _ = function(z) {
|
|
268
|
-
var I = u(z);
|
|
269
|
-
if (I !== void 0)
|
|
270
|
-
return I;
|
|
271
|
-
var R = t[f], re = R.type, ce = R.index;
|
|
272
|
-
throw new TypeError("Unexpected ".concat(re, " at ").concat(ce, ", expected ").concat(z));
|
|
273
|
-
}, g = function() {
|
|
274
|
-
for (var z = "", I; I = u("CHAR") || u("ESCAPED_CHAR"); )
|
|
275
|
-
z += I;
|
|
276
|
-
return z;
|
|
277
|
-
}, y = function(z) {
|
|
278
|
-
for (var I = 0, R = a; I < R.length; I++) {
|
|
279
|
-
var re = R[I];
|
|
280
|
-
if (z.indexOf(re) > -1)
|
|
281
|
-
return !0;
|
|
282
|
-
}
|
|
283
|
-
return !1;
|
|
284
|
-
}, A = function(z) {
|
|
285
|
-
var I = s[s.length - 1], R = z || (I && typeof I == "string" ? I : "");
|
|
286
|
-
if (I && !R)
|
|
287
|
-
throw new TypeError('Must have text between two parameters, missing text after "'.concat(I.name, '"'));
|
|
288
|
-
return !R || y(R) ? "[^".concat(be(a), "]+?") : "(?:(?!".concat(be(R), ")[^").concat(be(a), "])+?");
|
|
289
|
-
}; f < t.length; ) {
|
|
290
|
-
var $ = u("CHAR"), C = u("NAME"), L = u("PATTERN");
|
|
291
|
-
if (C || L) {
|
|
292
|
-
var w = $ || "";
|
|
293
|
-
r.indexOf(w) === -1 && (m += w, w = ""), m && (s.push(m), m = ""), s.push({
|
|
294
|
-
name: C || c++,
|
|
295
|
-
prefix: w,
|
|
296
|
-
suffix: "",
|
|
297
|
-
pattern: L || A(w),
|
|
298
|
-
modifier: u("MODIFIER") || ""
|
|
299
|
-
});
|
|
300
|
-
continue;
|
|
301
|
-
}
|
|
302
|
-
var Y = $ || u("ESCAPED_CHAR");
|
|
303
|
-
if (Y) {
|
|
304
|
-
m += Y;
|
|
305
|
-
continue;
|
|
306
|
-
}
|
|
307
|
-
m && (s.push(m), m = "");
|
|
308
|
-
var ee = u("OPEN");
|
|
309
|
-
if (ee) {
|
|
310
|
-
var w = g(), ne = u("NAME") || "", X = u("PATTERN") || "", J = g();
|
|
311
|
-
_("CLOSE"), s.push({
|
|
312
|
-
name: ne || (X ? c++ : ""),
|
|
313
|
-
pattern: ne && !X ? A(w) : X,
|
|
314
|
-
prefix: w,
|
|
315
|
-
suffix: J,
|
|
316
|
-
modifier: u("MODIFIER") || ""
|
|
317
|
-
});
|
|
318
|
-
continue;
|
|
319
|
-
}
|
|
320
|
-
_("END");
|
|
321
|
-
}
|
|
322
|
-
return s;
|
|
323
|
-
}
|
|
324
|
-
function bt(i, e) {
|
|
325
|
-
return xt(ht(i, e), e);
|
|
326
|
-
}
|
|
327
|
-
function xt(i, e) {
|
|
328
|
-
e === void 0 && (e = {});
|
|
329
|
-
var t = wt(e), o = e.encode, r = o === void 0 ? function(c) {
|
|
330
|
-
return c;
|
|
331
|
-
} : o, n = e.validate, a = n === void 0 ? !0 : n, s = i.map(function(c) {
|
|
332
|
-
if (typeof c == "object")
|
|
333
|
-
return new RegExp("^(?:".concat(c.pattern, ")$"), t);
|
|
334
|
-
});
|
|
335
|
-
return function(c) {
|
|
336
|
-
for (var f = "", m = 0; m < i.length; m++) {
|
|
337
|
-
var u = i[m];
|
|
338
|
-
if (typeof u == "string") {
|
|
339
|
-
f += u;
|
|
340
|
-
continue;
|
|
341
|
-
}
|
|
342
|
-
var _ = c ? c[u.name] : void 0, g = u.modifier === "?" || u.modifier === "*", y = u.modifier === "*" || u.modifier === "+";
|
|
343
|
-
if (Array.isArray(_)) {
|
|
344
|
-
if (!y)
|
|
345
|
-
throw new TypeError('Expected "'.concat(u.name, '" to not repeat, but got an array'));
|
|
346
|
-
if (_.length === 0) {
|
|
347
|
-
if (g)
|
|
348
|
-
continue;
|
|
349
|
-
throw new TypeError('Expected "'.concat(u.name, '" to not be empty'));
|
|
350
|
-
}
|
|
351
|
-
for (var A = 0; A < _.length; A++) {
|
|
352
|
-
var $ = r(_[A], u);
|
|
353
|
-
if (a && !s[m].test($))
|
|
354
|
-
throw new TypeError('Expected all "'.concat(u.name, '" to match "').concat(u.pattern, '", but got "').concat($, '"'));
|
|
355
|
-
f += u.prefix + $ + u.suffix;
|
|
356
|
-
}
|
|
357
|
-
continue;
|
|
358
|
-
}
|
|
359
|
-
if (typeof _ == "string" || typeof _ == "number") {
|
|
360
|
-
var $ = r(String(_), u);
|
|
361
|
-
if (a && !s[m].test($))
|
|
362
|
-
throw new TypeError('Expected "'.concat(u.name, '" to match "').concat(u.pattern, '", but got "').concat($, '"'));
|
|
363
|
-
f += u.prefix + $ + u.suffix;
|
|
364
|
-
continue;
|
|
365
|
-
}
|
|
366
|
-
if (!g) {
|
|
367
|
-
var C = y ? "an array" : "a string";
|
|
368
|
-
throw new TypeError('Expected "'.concat(u.name, '" to be ').concat(C));
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
return f;
|
|
372
|
-
};
|
|
373
|
-
}
|
|
374
|
-
function be(i) {
|
|
375
|
-
return i.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
|
|
376
|
-
}
|
|
377
|
-
function wt(i) {
|
|
378
|
-
return i && i.sensitive ? "" : "i";
|
|
379
|
-
}
|
|
380
|
-
function xe(i) {
|
|
381
|
-
var e, t;
|
|
382
|
-
return ge((e = i.name) == null ? void 0 : e.toString(), (t = i.meta) == null ? void 0 : t.title);
|
|
383
|
-
}
|
|
384
|
-
function yt(i) {
|
|
385
|
-
return ge(i.name, i.title);
|
|
386
|
-
}
|
|
387
|
-
function ge(i, e) {
|
|
388
|
-
let t = i && i != "" ? i : e;
|
|
389
|
-
return Ve.global.te("route." + t) ? Ve.global.t("route." + t) : e || i;
|
|
390
|
-
}
|
|
391
|
-
const kt = {
|
|
392
|
-
key: 0,
|
|
393
|
-
class: "color-gray-400"
|
|
394
|
-
}, St = ["onClick"], Ct = /* @__PURE__ */ D({
|
|
395
|
-
__name: "index",
|
|
396
|
-
setup(i) {
|
|
397
|
-
const e = pe(), t = (s) => {
|
|
398
|
-
const { params: c } = e;
|
|
399
|
-
return bt(s)(c);
|
|
400
|
-
}, o = U([]);
|
|
401
|
-
function r() {
|
|
402
|
-
let s = e.matched.filter(
|
|
403
|
-
(f) => f.meta && f.meta.title
|
|
404
|
-
);
|
|
405
|
-
const c = s[0];
|
|
406
|
-
n(c) || (s = [
|
|
407
|
-
{ path: "/dashboard", meta: { title: "Dashboard" } }
|
|
408
|
-
].concat(s)), o.value = s.filter((f) => f.meta && f.meta.title && f.meta.breadcrumb !== !1);
|
|
409
|
-
}
|
|
410
|
-
function n(s) {
|
|
411
|
-
const c = s && s.name;
|
|
412
|
-
return c ? c.toString().trim().toLocaleLowerCase() === "Dashboard".toLocaleLowerCase() : !1;
|
|
413
|
-
}
|
|
414
|
-
function a(s) {
|
|
415
|
-
const { redirect: c, path: f } = s;
|
|
416
|
-
if (c) {
|
|
417
|
-
Te.value.push(c).catch((m) => {
|
|
418
|
-
console.warn(m);
|
|
419
|
-
});
|
|
420
|
-
return;
|
|
421
|
-
}
|
|
422
|
-
Te.value.push(t(f)).catch((m) => {
|
|
423
|
-
console.warn(m);
|
|
424
|
-
});
|
|
425
|
-
}
|
|
426
|
-
return oe(
|
|
427
|
-
() => e.path,
|
|
428
|
-
(s) => {
|
|
429
|
-
s.startsWith("/redirect/") || r();
|
|
430
|
-
}
|
|
431
|
-
), Ye(() => {
|
|
432
|
-
r();
|
|
433
|
-
}), (s, c) => {
|
|
434
|
-
const f = V("el-breadcrumb-item"), m = V("el-breadcrumb");
|
|
435
|
-
return d(), S(m, { class: "flex-y-center" }, {
|
|
436
|
-
default: h(() => [
|
|
437
|
-
p(Je, { "enter-active-class": "animate__animated animate__fadeInRight" }, {
|
|
438
|
-
default: h(() => [
|
|
439
|
-
(d(!0), x(K, null, se(l(o), (u, _) => (d(), S(f, {
|
|
440
|
-
key: u.path
|
|
441
|
-
}, {
|
|
442
|
-
default: h(() => [
|
|
443
|
-
u.redirect === "noredirect" || _ === l(o).length - 1 ? (d(), x("span", kt, E(l(xe)(u)), 1)) : (d(), x("a", {
|
|
444
|
-
key: 1,
|
|
445
|
-
onClick: ue((g) => a(u), ["prevent"])
|
|
446
|
-
}, E(l(xe)(u)), 9, St))
|
|
447
|
-
]),
|
|
448
|
-
_: 2
|
|
449
|
-
}, 1024))), 128))
|
|
450
|
-
]),
|
|
451
|
-
_: 1
|
|
452
|
-
})
|
|
453
|
-
]),
|
|
454
|
-
_: 1
|
|
455
|
-
});
|
|
456
|
-
};
|
|
457
|
-
}
|
|
458
|
-
}), Vt = /* @__PURE__ */ q(Ct, [["__scopeId", "data-v-6109c28e"]]), Tt = /* @__PURE__ */ D({
|
|
459
|
-
__name: "index",
|
|
460
|
-
props: {
|
|
461
|
-
isActive: {
|
|
462
|
-
required: !0,
|
|
463
|
-
type: Boolean,
|
|
464
|
-
default: !1
|
|
465
|
-
}
|
|
466
|
-
},
|
|
467
|
-
emits: ["toggleClick"],
|
|
468
|
-
setup(i, { emit: e }) {
|
|
469
|
-
const t = e;
|
|
470
|
-
function o() {
|
|
471
|
-
t("toggleClick");
|
|
472
|
-
}
|
|
473
|
-
return (r, n) => {
|
|
474
|
-
const a = le;
|
|
475
|
-
return d(), x("div", {
|
|
476
|
-
class: "px-[15px] flex items-center justify-center color-[var(--el-text-color-regular)]",
|
|
477
|
-
onClick: o
|
|
478
|
-
}, [
|
|
479
|
-
p(a, {
|
|
480
|
-
class: H(["hamburger", { "is-active": i.isActive }]),
|
|
481
|
-
"icon-class": "indent-decrease"
|
|
482
|
-
}, null, 8, ["class"])
|
|
483
|
-
]);
|
|
484
|
-
};
|
|
485
|
-
}
|
|
486
|
-
}), Pe = /* @__PURE__ */ q(Tt, [["__scopeId", "data-v-42e37629"]]), $t = { class: "flex" }, At = /* @__PURE__ */ D({
|
|
487
|
-
__name: "NavbarLeft",
|
|
488
|
-
setup(i) {
|
|
489
|
-
const e = Z();
|
|
490
|
-
function t() {
|
|
491
|
-
e.toggleSidebar();
|
|
492
|
-
}
|
|
493
|
-
return (o, r) => {
|
|
494
|
-
const n = Pe, a = Vt;
|
|
495
|
-
return d(), x("div", $t, [
|
|
496
|
-
p(n, {
|
|
497
|
-
"is-active": l(e).sidebar.opened,
|
|
498
|
-
onToggleClick: t
|
|
499
|
-
}, null, 8, ["is-active"]),
|
|
500
|
-
p(a)
|
|
501
|
-
]);
|
|
502
|
-
};
|
|
503
|
-
}
|
|
504
|
-
}), Mt = {}, Et = { class: "navbar-container" };
|
|
505
|
-
function Lt(i, e) {
|
|
506
|
-
const t = At, o = Le;
|
|
507
|
-
return d(), x("div", Et, [
|
|
508
|
-
p(t),
|
|
509
|
-
p(o)
|
|
510
|
-
]);
|
|
511
|
-
}
|
|
512
|
-
const Pt = /* @__PURE__ */ q(Mt, [["render", Lt], ["__scopeId", "data-v-b1624593"]]);
|
|
513
|
-
var Q = /* @__PURE__ */ ((i) => (i.LEFT = "left", i.TOP = "top", i.MIX = "mix", i))(Q || {});
|
|
514
|
-
const It = { class: "flex flex-wrap justify-around w-full h-12" }, Rt = /* @__PURE__ */ D({
|
|
515
|
-
__name: "LayoutSelect",
|
|
516
|
-
props: {
|
|
517
|
-
modelValue: String
|
|
518
|
-
},
|
|
519
|
-
emits: ["update:modelValue"],
|
|
520
|
-
setup(i, { emit: e }) {
|
|
521
|
-
const t = e;
|
|
522
|
-
function o(r) {
|
|
523
|
-
t("update:modelValue", r);
|
|
524
|
-
}
|
|
525
|
-
return (r, n) => {
|
|
526
|
-
const a = V("el-tooltip");
|
|
527
|
-
return d(), x("div", It, [
|
|
528
|
-
p(a, {
|
|
529
|
-
content: "左侧模式",
|
|
530
|
-
placement: "bottom"
|
|
531
|
-
}, {
|
|
532
|
-
default: h(() => [
|
|
533
|
-
k("div", {
|
|
534
|
-
class: H(["layout-item left", { "is-active": i.modelValue === l(Q).LEFT }]),
|
|
535
|
-
onClick: n[0] || (n[0] = (s) => o(l(Q).LEFT))
|
|
536
|
-
}, n[3] || (n[3] = [
|
|
537
|
-
k("div", null, null, -1),
|
|
538
|
-
k("div", null, null, -1)
|
|
539
|
-
]), 2)
|
|
540
|
-
]),
|
|
541
|
-
_: 1
|
|
542
|
-
}),
|
|
543
|
-
p(a, {
|
|
544
|
-
content: "顶部模式",
|
|
545
|
-
placement: "bottom"
|
|
546
|
-
}, {
|
|
547
|
-
default: h(() => [
|
|
548
|
-
k("div", {
|
|
549
|
-
class: H(["layout-item top", { "is-active": i.modelValue === l(Q).TOP }]),
|
|
550
|
-
onClick: n[1] || (n[1] = (s) => o(l(Q).TOP))
|
|
551
|
-
}, n[4] || (n[4] = [
|
|
552
|
-
k("div", null, null, -1),
|
|
553
|
-
k("div", null, null, -1)
|
|
554
|
-
]), 2)
|
|
555
|
-
]),
|
|
556
|
-
_: 1
|
|
557
|
-
}),
|
|
558
|
-
p(a, {
|
|
559
|
-
content: "混合模式",
|
|
560
|
-
placement: "bottom"
|
|
561
|
-
}, {
|
|
562
|
-
default: h(() => [
|
|
563
|
-
k("div", {
|
|
564
|
-
class: H(["layout-item mix", { "is-active": i.modelValue === l(Q).MIX }]),
|
|
565
|
-
onClick: n[2] || (n[2] = (s) => o(l(Q).MIX))
|
|
566
|
-
}, n[5] || (n[5] = [
|
|
567
|
-
k("div", null, null, -1),
|
|
568
|
-
k("div", null, null, -1)
|
|
569
|
-
]), 2)
|
|
570
|
-
]),
|
|
571
|
-
_: 1
|
|
572
|
-
})
|
|
573
|
-
]);
|
|
574
|
-
};
|
|
575
|
-
}
|
|
576
|
-
}), Dt = /* @__PURE__ */ q(Rt, [["__scopeId", "data-v-2bdf1403"]]), Bt = /* @__PURE__ */ D({
|
|
577
|
-
__name: "ThemeColorPicker",
|
|
578
|
-
props: {
|
|
579
|
-
modelValue: String
|
|
580
|
-
},
|
|
581
|
-
emits: ["update:modelValue"],
|
|
582
|
-
setup(i, { emit: e }) {
|
|
583
|
-
const t = i, o = e, r = [
|
|
584
|
-
"#409EFF",
|
|
585
|
-
"#ff4500",
|
|
586
|
-
"#ff8c00",
|
|
587
|
-
"#90ee90",
|
|
588
|
-
"#00ced1",
|
|
589
|
-
"#1e90ff",
|
|
590
|
-
"#c71585",
|
|
591
|
-
"rgba(255, 69, 0, 0.68)",
|
|
592
|
-
"rgb(255, 120, 0)",
|
|
593
|
-
"hsva(120, 40, 94)"
|
|
594
|
-
], n = U(t.modelValue);
|
|
595
|
-
return oe(n, (a) => {
|
|
596
|
-
o("update:modelValue", a);
|
|
597
|
-
}), (a, s) => {
|
|
598
|
-
const c = V("el-color-picker");
|
|
599
|
-
return d(), S(c, {
|
|
600
|
-
modelValue: l(n),
|
|
601
|
-
"onUpdate:modelValue": s[0] || (s[0] = (f) => ve(n) ? n.value = f : null),
|
|
602
|
-
predefine: r,
|
|
603
|
-
"popper-class": "theme-picker-dropdown"
|
|
604
|
-
}, null, 8, ["modelValue"]);
|
|
605
|
-
};
|
|
606
|
-
}
|
|
607
|
-
}), Ot = /* @__PURE__ */ q(Bt, [["__scopeId", "data-v-92c1fd79"]]), Nt = { class: "flex-center" }, zt = { class: "settings-option" }, Ft = { class: "text-xs" }, Ut = { class: "settings-option" }, qt = { class: "text-xs" }, Ht = { class: "settings-option" }, Wt = { class: "text-xs" }, Kt = { class: "settings-option" }, Xt = { class: "text-xs" }, jt = { class: "settings-option" }, Gt = { class: "text-xs" }, Yt = /* @__PURE__ */ D({
|
|
608
|
-
__name: "index",
|
|
609
|
-
setup(i) {
|
|
610
|
-
const e = pe(), t = Z(), o = te(), r = me(), n = B({
|
|
611
|
-
get() {
|
|
612
|
-
return o.settingsVisible;
|
|
613
|
-
},
|
|
614
|
-
set() {
|
|
615
|
-
o.settingsVisible = !1;
|
|
616
|
-
}
|
|
617
|
-
});
|
|
618
|
-
function a(_) {
|
|
619
|
-
o.changeThemeColor(_);
|
|
620
|
-
}
|
|
621
|
-
const s = U(o.theme === he.DARK), c = (_) => {
|
|
622
|
-
s.value = _, o.changeTheme(s.value ? he.DARK : he.LIGHT);
|
|
623
|
-
};
|
|
624
|
-
function f(_) {
|
|
625
|
-
o.changeLayout(_), _ === Q.MIX ? e.name && m(e.name) : _ === Q.TOP && t.openSideBar();
|
|
626
|
-
}
|
|
627
|
-
function m(_) {
|
|
628
|
-
const g = u(r.routes, _);
|
|
629
|
-
t.activeTopMenu !== g.path && t.activeTopMenu(g.path);
|
|
630
|
-
}
|
|
631
|
-
function u(_, g) {
|
|
632
|
-
let y = {};
|
|
633
|
-
function A(C, L) {
|
|
634
|
-
if (y[C.name] = L, C.children)
|
|
635
|
-
for (let w = 0; w < C.children.length; w++)
|
|
636
|
-
A(C.children[w], C);
|
|
637
|
-
}
|
|
638
|
-
for (let C = 0; C < _.length; C++)
|
|
639
|
-
A(_[C], null);
|
|
640
|
-
let $ = y[g];
|
|
641
|
-
for (; $; ) {
|
|
642
|
-
if (!y[$.name])
|
|
643
|
-
return $;
|
|
644
|
-
$ = y[$.name];
|
|
645
|
-
}
|
|
646
|
-
return null;
|
|
647
|
-
}
|
|
648
|
-
return (_, g) => {
|
|
649
|
-
const y = V("el-divider"), A = V("el-switch"), $ = Ot, C = Dt, L = V("el-drawer");
|
|
650
|
-
return d(), S(L, {
|
|
651
|
-
modelValue: l(n),
|
|
652
|
-
"onUpdate:modelValue": g[7] || (g[7] = (w) => ve(n) ? n.value = w : null),
|
|
653
|
-
size: "300",
|
|
654
|
-
title: _.$t("settings.project")
|
|
655
|
-
}, {
|
|
656
|
-
default: h(() => [
|
|
657
|
-
p(y, null, {
|
|
658
|
-
default: h(() => [
|
|
659
|
-
N(E(_.$t("settings.theme")), 1)
|
|
660
|
-
]),
|
|
661
|
-
_: 1
|
|
662
|
-
}),
|
|
663
|
-
k("div", Nt, [
|
|
664
|
-
p(A, {
|
|
665
|
-
modelValue: l(s),
|
|
666
|
-
"onUpdate:modelValue": g[0] || (g[0] = (w) => ve(s) ? s.value = w : null),
|
|
667
|
-
"active-icon": l(Xe),
|
|
668
|
-
"inactive-icon": l(Ke),
|
|
669
|
-
onChange: c
|
|
670
|
-
}, null, 8, ["modelValue", "active-icon", "inactive-icon"])
|
|
671
|
-
]),
|
|
672
|
-
p(y, null, {
|
|
673
|
-
default: h(() => [
|
|
674
|
-
N(E(_.$t("settings.interface")), 1)
|
|
675
|
-
]),
|
|
676
|
-
_: 1
|
|
677
|
-
}),
|
|
678
|
-
k("div", zt, [
|
|
679
|
-
k("span", Ft, E(_.$t("settings.themeColor")), 1),
|
|
680
|
-
p($, {
|
|
681
|
-
modelValue: l(o).themeColor,
|
|
682
|
-
"onUpdate:modelValue": [
|
|
683
|
-
g[1] || (g[1] = (w) => l(o).themeColor = w),
|
|
684
|
-
a
|
|
685
|
-
]
|
|
686
|
-
}, null, 8, ["modelValue"])
|
|
687
|
-
]),
|
|
688
|
-
k("div", Ut, [
|
|
689
|
-
k("span", qt, E(_.$t("settings.tagsView")), 1),
|
|
690
|
-
p(A, {
|
|
691
|
-
modelValue: l(o).tagsView,
|
|
692
|
-
"onUpdate:modelValue": g[2] || (g[2] = (w) => l(o).tagsView = w)
|
|
693
|
-
}, null, 8, ["modelValue"])
|
|
694
|
-
]),
|
|
695
|
-
k("div", Ht, [
|
|
696
|
-
k("span", Wt, E(_.$t("settings.fixedHeader")), 1),
|
|
697
|
-
p(A, {
|
|
698
|
-
modelValue: l(o).fixedHeader,
|
|
699
|
-
"onUpdate:modelValue": g[3] || (g[3] = (w) => l(o).fixedHeader = w)
|
|
700
|
-
}, null, 8, ["modelValue"])
|
|
701
|
-
]),
|
|
702
|
-
k("div", Kt, [
|
|
703
|
-
k("span", Xt, E(_.$t("settings.sidebarLogo")), 1),
|
|
704
|
-
p(A, {
|
|
705
|
-
modelValue: l(o).sidebarLogo,
|
|
706
|
-
"onUpdate:modelValue": g[4] || (g[4] = (w) => l(o).sidebarLogo = w)
|
|
707
|
-
}, null, 8, ["modelValue"])
|
|
708
|
-
]),
|
|
709
|
-
k("div", jt, [
|
|
710
|
-
k("span", Gt, E(_.$t("settings.watermark")), 1),
|
|
711
|
-
p(A, {
|
|
712
|
-
modelValue: l(o).watermarkEnabled,
|
|
713
|
-
"onUpdate:modelValue": g[5] || (g[5] = (w) => l(o).watermarkEnabled = w)
|
|
714
|
-
}, null, 8, ["modelValue"])
|
|
715
|
-
]),
|
|
716
|
-
p(y, null, {
|
|
717
|
-
default: h(() => [
|
|
718
|
-
N(E(_.$t("settings.navigation")), 1)
|
|
719
|
-
]),
|
|
720
|
-
_: 1
|
|
721
|
-
}),
|
|
722
|
-
p(C, {
|
|
723
|
-
modelValue: l(o).layout,
|
|
724
|
-
"onUpdate:modelValue": [
|
|
725
|
-
g[6] || (g[6] = (w) => l(o).layout = w),
|
|
726
|
-
f
|
|
727
|
-
]
|
|
728
|
-
}, null, 8, ["modelValue"])
|
|
729
|
-
]),
|
|
730
|
-
_: 1
|
|
731
|
-
}, 8, ["modelValue", "title"]);
|
|
732
|
-
};
|
|
733
|
-
}
|
|
734
|
-
}), Jt = /* @__PURE__ */ q(Yt, [["__scopeId", "data-v-70f5bf10"]]), Qt = { class: "app-main" }, Zt = /* @__PURE__ */ D({
|
|
735
|
-
__name: "index",
|
|
736
|
-
setup(i) {
|
|
737
|
-
const e = B(() => we().cachedViews);
|
|
738
|
-
return (t, o) => {
|
|
739
|
-
const r = V("router-view");
|
|
740
|
-
return d(), x("section", Qt, [
|
|
741
|
-
p(r, null, {
|
|
742
|
-
default: h(({ Component: n, route: a }) => [
|
|
743
|
-
p(Me, {
|
|
744
|
-
"enter-active-class": "animate__animated animate__fadeIn",
|
|
745
|
-
mode: "out-in"
|
|
746
|
-
}, {
|
|
747
|
-
default: h(() => [
|
|
748
|
-
(d(), S(Qe, {
|
|
749
|
-
include: l(e),
|
|
750
|
-
max: 9
|
|
751
|
-
}, [
|
|
752
|
-
(d(), S(ye(n), {
|
|
753
|
-
key: a.path
|
|
754
|
-
}))
|
|
755
|
-
], 1032, ["include"]))
|
|
756
|
-
]),
|
|
757
|
-
_: 2
|
|
758
|
-
}, 1024)
|
|
759
|
-
]),
|
|
760
|
-
_: 1
|
|
761
|
-
})
|
|
762
|
-
]);
|
|
763
|
-
};
|
|
764
|
-
}
|
|
765
|
-
}), en = /* @__PURE__ */ q(Zt, [["__scopeId", "data-v-f32946ce"]]), tn = {
|
|
766
|
-
viewBox: "0 0 1024 1024",
|
|
767
|
-
width: "1.2em",
|
|
768
|
-
height: "1.2em"
|
|
769
|
-
};
|
|
770
|
-
function nn(i, e) {
|
|
771
|
-
return d(), x("svg", tn, e[0] || (e[0] = [
|
|
772
|
-
k("path", {
|
|
773
|
-
fill: "currentColor",
|
|
774
|
-
d: "M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
775
|
-
}, null, -1)
|
|
776
|
-
]));
|
|
777
|
-
}
|
|
778
|
-
const on = { name: "ep-close", render: nn };
|
|
779
|
-
function G(i) {
|
|
780
|
-
if (typeof i != "string")
|
|
781
|
-
throw new TypeError("Path must be a string. Received " + JSON.stringify(i));
|
|
782
|
-
}
|
|
783
|
-
function Ae(i, e) {
|
|
784
|
-
for (var t = "", o = 0, r = -1, n = 0, a, s = 0; s <= i.length; ++s) {
|
|
785
|
-
if (s < i.length)
|
|
786
|
-
a = i.charCodeAt(s);
|
|
787
|
-
else {
|
|
788
|
-
if (a === 47)
|
|
789
|
-
break;
|
|
790
|
-
a = 47;
|
|
791
|
-
}
|
|
792
|
-
if (a === 47) {
|
|
793
|
-
if (!(r === s - 1 || n === 1)) if (r !== s - 1 && n === 2) {
|
|
794
|
-
if (t.length < 2 || o !== 2 || t.charCodeAt(t.length - 1) !== 46 || t.charCodeAt(t.length - 2) !== 46) {
|
|
795
|
-
if (t.length > 2) {
|
|
796
|
-
var c = t.lastIndexOf("/");
|
|
797
|
-
if (c !== t.length - 1) {
|
|
798
|
-
c === -1 ? (t = "", o = 0) : (t = t.slice(0, c), o = t.length - 1 - t.lastIndexOf("/")), r = s, n = 0;
|
|
799
|
-
continue;
|
|
800
|
-
}
|
|
801
|
-
} else if (t.length === 2 || t.length === 1) {
|
|
802
|
-
t = "", o = 0, r = s, n = 0;
|
|
803
|
-
continue;
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
e && (t.length > 0 ? t += "/.." : t = "..", o = 2);
|
|
807
|
-
} else
|
|
808
|
-
t.length > 0 ? t += "/" + i.slice(r + 1, s) : t = i.slice(r + 1, s), o = s - r - 1;
|
|
809
|
-
r = s, n = 0;
|
|
810
|
-
} else a === 46 && n !== -1 ? ++n : n = -1;
|
|
811
|
-
}
|
|
812
|
-
return t;
|
|
813
|
-
}
|
|
814
|
-
function an(i, e) {
|
|
815
|
-
var t = e.dir || e.root, o = e.base || (e.name || "") + (e.ext || "");
|
|
816
|
-
return t ? t === e.root ? t + o : t + i + o : o;
|
|
817
|
-
}
|
|
818
|
-
var ie = {
|
|
819
|
-
// path.resolve([from ...], to)
|
|
820
|
-
resolve: function() {
|
|
821
|
-
for (var e = "", t = !1, o, r = arguments.length - 1; r >= -1 && !t; r--) {
|
|
822
|
-
var n;
|
|
823
|
-
r >= 0 ? n = arguments[r] : (o === void 0 && (o = process.cwd()), n = o), G(n), n.length !== 0 && (e = n + "/" + e, t = n.charCodeAt(0) === 47);
|
|
824
|
-
}
|
|
825
|
-
return e = Ae(e, !t), t ? e.length > 0 ? "/" + e : "/" : e.length > 0 ? e : ".";
|
|
826
|
-
},
|
|
827
|
-
normalize: function(e) {
|
|
828
|
-
if (G(e), e.length === 0) return ".";
|
|
829
|
-
var t = e.charCodeAt(0) === 47, o = e.charCodeAt(e.length - 1) === 47;
|
|
830
|
-
return e = Ae(e, !t), e.length === 0 && !t && (e = "."), e.length > 0 && o && (e += "/"), t ? "/" + e : e;
|
|
831
|
-
},
|
|
832
|
-
isAbsolute: function(e) {
|
|
833
|
-
return G(e), e.length > 0 && e.charCodeAt(0) === 47;
|
|
834
|
-
},
|
|
835
|
-
join: function() {
|
|
836
|
-
if (arguments.length === 0)
|
|
837
|
-
return ".";
|
|
838
|
-
for (var e, t = 0; t < arguments.length; ++t) {
|
|
839
|
-
var o = arguments[t];
|
|
840
|
-
G(o), o.length > 0 && (e === void 0 ? e = o : e += "/" + o);
|
|
841
|
-
}
|
|
842
|
-
return e === void 0 ? "." : ie.normalize(e);
|
|
843
|
-
},
|
|
844
|
-
relative: function(e, t) {
|
|
845
|
-
if (G(e), G(t), e === t || (e = ie.resolve(e), t = ie.resolve(t), e === t)) return "";
|
|
846
|
-
for (var o = 1; o < e.length && e.charCodeAt(o) === 47; ++o)
|
|
847
|
-
;
|
|
848
|
-
for (var r = e.length, n = r - o, a = 1; a < t.length && t.charCodeAt(a) === 47; ++a)
|
|
849
|
-
;
|
|
850
|
-
for (var s = t.length, c = s - a, f = n < c ? n : c, m = -1, u = 0; u <= f; ++u) {
|
|
851
|
-
if (u === f) {
|
|
852
|
-
if (c > f) {
|
|
853
|
-
if (t.charCodeAt(a + u) === 47)
|
|
854
|
-
return t.slice(a + u + 1);
|
|
855
|
-
if (u === 0)
|
|
856
|
-
return t.slice(a + u);
|
|
857
|
-
} else n > f && (e.charCodeAt(o + u) === 47 ? m = u : u === 0 && (m = 0));
|
|
858
|
-
break;
|
|
859
|
-
}
|
|
860
|
-
var _ = e.charCodeAt(o + u), g = t.charCodeAt(a + u);
|
|
861
|
-
if (_ !== g)
|
|
862
|
-
break;
|
|
863
|
-
_ === 47 && (m = u);
|
|
864
|
-
}
|
|
865
|
-
var y = "";
|
|
866
|
-
for (u = o + m + 1; u <= r; ++u)
|
|
867
|
-
(u === r || e.charCodeAt(u) === 47) && (y.length === 0 ? y += ".." : y += "/..");
|
|
868
|
-
return y.length > 0 ? y + t.slice(a + m) : (a += m, t.charCodeAt(a) === 47 && ++a, t.slice(a));
|
|
869
|
-
},
|
|
870
|
-
_makeLong: function(e) {
|
|
871
|
-
return e;
|
|
872
|
-
},
|
|
873
|
-
dirname: function(e) {
|
|
874
|
-
if (G(e), e.length === 0) return ".";
|
|
875
|
-
for (var t = e.charCodeAt(0), o = t === 47, r = -1, n = !0, a = e.length - 1; a >= 1; --a)
|
|
876
|
-
if (t = e.charCodeAt(a), t === 47) {
|
|
877
|
-
if (!n) {
|
|
878
|
-
r = a;
|
|
879
|
-
break;
|
|
880
|
-
}
|
|
881
|
-
} else
|
|
882
|
-
n = !1;
|
|
883
|
-
return r === -1 ? o ? "/" : "." : o && r === 1 ? "//" : e.slice(0, r);
|
|
884
|
-
},
|
|
885
|
-
basename: function(e, t) {
|
|
886
|
-
if (t !== void 0 && typeof t != "string") throw new TypeError('"ext" argument must be a string');
|
|
887
|
-
G(e);
|
|
888
|
-
var o = 0, r = -1, n = !0, a;
|
|
889
|
-
if (t !== void 0 && t.length > 0 && t.length <= e.length) {
|
|
890
|
-
if (t.length === e.length && t === e) return "";
|
|
891
|
-
var s = t.length - 1, c = -1;
|
|
892
|
-
for (a = e.length - 1; a >= 0; --a) {
|
|
893
|
-
var f = e.charCodeAt(a);
|
|
894
|
-
if (f === 47) {
|
|
895
|
-
if (!n) {
|
|
896
|
-
o = a + 1;
|
|
897
|
-
break;
|
|
898
|
-
}
|
|
899
|
-
} else
|
|
900
|
-
c === -1 && (n = !1, c = a + 1), s >= 0 && (f === t.charCodeAt(s) ? --s === -1 && (r = a) : (s = -1, r = c));
|
|
901
|
-
}
|
|
902
|
-
return o === r ? r = c : r === -1 && (r = e.length), e.slice(o, r);
|
|
903
|
-
} else {
|
|
904
|
-
for (a = e.length - 1; a >= 0; --a)
|
|
905
|
-
if (e.charCodeAt(a) === 47) {
|
|
906
|
-
if (!n) {
|
|
907
|
-
o = a + 1;
|
|
908
|
-
break;
|
|
909
|
-
}
|
|
910
|
-
} else r === -1 && (n = !1, r = a + 1);
|
|
911
|
-
return r === -1 ? "" : e.slice(o, r);
|
|
912
|
-
}
|
|
913
|
-
},
|
|
914
|
-
extname: function(e) {
|
|
915
|
-
G(e);
|
|
916
|
-
for (var t = -1, o = 0, r = -1, n = !0, a = 0, s = e.length - 1; s >= 0; --s) {
|
|
917
|
-
var c = e.charCodeAt(s);
|
|
918
|
-
if (c === 47) {
|
|
919
|
-
if (!n) {
|
|
920
|
-
o = s + 1;
|
|
921
|
-
break;
|
|
922
|
-
}
|
|
923
|
-
continue;
|
|
924
|
-
}
|
|
925
|
-
r === -1 && (n = !1, r = s + 1), c === 46 ? t === -1 ? t = s : a !== 1 && (a = 1) : t !== -1 && (a = -1);
|
|
926
|
-
}
|
|
927
|
-
return t === -1 || r === -1 || // We saw a non-dot character immediately before the dot
|
|
928
|
-
a === 0 || // The (right-most) trimmed path component is exactly '..'
|
|
929
|
-
a === 1 && t === r - 1 && t === o + 1 ? "" : e.slice(t, r);
|
|
930
|
-
},
|
|
931
|
-
format: function(e) {
|
|
932
|
-
if (e === null || typeof e != "object")
|
|
933
|
-
throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof e);
|
|
934
|
-
return an("/", e);
|
|
935
|
-
},
|
|
936
|
-
parse: function(e) {
|
|
937
|
-
G(e);
|
|
938
|
-
var t = { root: "", dir: "", base: "", ext: "", name: "" };
|
|
939
|
-
if (e.length === 0) return t;
|
|
940
|
-
var o = e.charCodeAt(0), r = o === 47, n;
|
|
941
|
-
r ? (t.root = "/", n = 1) : n = 0;
|
|
942
|
-
for (var a = -1, s = 0, c = -1, f = !0, m = e.length - 1, u = 0; m >= n; --m) {
|
|
943
|
-
if (o = e.charCodeAt(m), o === 47) {
|
|
944
|
-
if (!f) {
|
|
945
|
-
s = m + 1;
|
|
946
|
-
break;
|
|
947
|
-
}
|
|
948
|
-
continue;
|
|
949
|
-
}
|
|
950
|
-
c === -1 && (f = !1, c = m + 1), o === 46 ? a === -1 ? a = m : u !== 1 && (u = 1) : a !== -1 && (u = -1);
|
|
951
|
-
}
|
|
952
|
-
return a === -1 || c === -1 || // We saw a non-dot character immediately before the dot
|
|
953
|
-
u === 0 || // The (right-most) trimmed path component is exactly '..'
|
|
954
|
-
u === 1 && a === c - 1 && a === s + 1 ? c !== -1 && (s === 0 && r ? t.base = t.name = e.slice(1, c) : t.base = t.name = e.slice(s, c)) : (s === 0 && r ? (t.name = e.slice(1, a), t.base = e.slice(1, c)) : (t.name = e.slice(s, a), t.base = e.slice(s, c)), t.ext = e.slice(a, c)), s > 0 ? t.dir = e.slice(0, s - 1) : r && (t.dir = "/"), t;
|
|
955
|
-
},
|
|
956
|
-
sep: "/",
|
|
957
|
-
delimiter: ":",
|
|
958
|
-
win32: null,
|
|
959
|
-
posix: null
|
|
960
|
-
};
|
|
961
|
-
ie.posix = ie;
|
|
962
|
-
var Ie = ie;
|
|
963
|
-
const Re = /* @__PURE__ */ je(Ie), ln = { class: "tags-container" }, sn = /* @__PURE__ */ D({
|
|
964
|
-
__name: "index",
|
|
965
|
-
setup(i) {
|
|
966
|
-
const { proxy: e } = Ze(), t = ke(), o = pe(), r = me(), n = we(), a = Z(), { visitedViews: s } = ut(n), c = te(), f = B(() => c.layout), m = U({
|
|
967
|
-
path: "",
|
|
968
|
-
query: "",
|
|
969
|
-
fullPath: "",
|
|
970
|
-
name: "",
|
|
971
|
-
title: "",
|
|
972
|
-
affix: !1,
|
|
973
|
-
keepAlive: !1
|
|
974
|
-
}), u = U([]), _ = U(0), g = U(0);
|
|
975
|
-
oe(
|
|
976
|
-
o,
|
|
977
|
-
() => {
|
|
978
|
-
C(), L();
|
|
979
|
-
},
|
|
980
|
-
{
|
|
981
|
-
immediate: !0
|
|
982
|
-
//初始化立即执行
|
|
983
|
-
}
|
|
984
|
-
);
|
|
985
|
-
const y = U(!1);
|
|
986
|
-
oe(y, (b) => {
|
|
987
|
-
b ? document.body.addEventListener("click", ce) : document.body.removeEventListener("click", ce);
|
|
988
|
-
});
|
|
989
|
-
function A(b, v = "/") {
|
|
990
|
-
let F = [];
|
|
991
|
-
return b.forEach((O) => {
|
|
992
|
-
var M, P, j, Se;
|
|
993
|
-
const W = Ie.resolve(v, O.path);
|
|
994
|
-
if ((M = O.meta) != null && M.affix && F.push({
|
|
995
|
-
path: W,
|
|
996
|
-
fullPath: W,
|
|
997
|
-
name: String(O.name),
|
|
998
|
-
title: ((P = O.meta) == null ? void 0 : P.title) || "no-name",
|
|
999
|
-
affix: (j = O.meta) == null ? void 0 : j.affix,
|
|
1000
|
-
keepAlive: (Se = O.meta) == null ? void 0 : Se.keepAlive
|
|
1001
|
-
}), O.children) {
|
|
1002
|
-
const Ce = A(O.children, v + O.path);
|
|
1003
|
-
Ce.length >= 1 && (F = [...F, ...Ce]);
|
|
1004
|
-
}
|
|
1005
|
-
}), F;
|
|
1006
|
-
}
|
|
1007
|
-
function $() {
|
|
1008
|
-
const b = A(r.routes);
|
|
1009
|
-
u.value = b;
|
|
1010
|
-
for (const v of b)
|
|
1011
|
-
v.name && n.addVisitedView(v);
|
|
1012
|
-
}
|
|
1013
|
-
function C() {
|
|
1014
|
-
var b, v;
|
|
1015
|
-
o.meta.title && n.addView({
|
|
1016
|
-
name: o.name,
|
|
1017
|
-
title: o.meta.title,
|
|
1018
|
-
path: o.path,
|
|
1019
|
-
fullPath: o.fullPath,
|
|
1020
|
-
affix: (b = o.meta) == null ? void 0 : b.affix,
|
|
1021
|
-
keepAlive: (v = o.meta) == null ? void 0 : v.keepAlive,
|
|
1022
|
-
query: o.query
|
|
1023
|
-
});
|
|
1024
|
-
}
|
|
1025
|
-
function L() {
|
|
1026
|
-
$e(() => {
|
|
1027
|
-
var b, v;
|
|
1028
|
-
for (const F of s.value)
|
|
1029
|
-
F.path === o.path && F.fullPath !== o.fullPath && n.updateVisitedView({
|
|
1030
|
-
name: o.name,
|
|
1031
|
-
title: o.meta.title || "",
|
|
1032
|
-
path: o.path,
|
|
1033
|
-
fullPath: o.fullPath,
|
|
1034
|
-
affix: (b = o.meta) == null ? void 0 : b.affix,
|
|
1035
|
-
keepAlive: (v = o.meta) == null ? void 0 : v.keepAlive,
|
|
1036
|
-
query: o.query
|
|
1037
|
-
});
|
|
1038
|
-
});
|
|
1039
|
-
}
|
|
1040
|
-
function w(b) {
|
|
1041
|
-
return b == null ? void 0 : b.affix;
|
|
1042
|
-
}
|
|
1043
|
-
function Y() {
|
|
1044
|
-
return n.visitedViews.length <= 1 ? !1 : m.value.path === "/dashboard" || m.value.fullPath === n.visitedViews[1].fullPath;
|
|
1045
|
-
}
|
|
1046
|
-
function ee() {
|
|
1047
|
-
return n.visitedViews.length <= 1 ? !1 : m.value.fullPath === n.visitedViews[n.visitedViews.length - 1].fullPath;
|
|
1048
|
-
}
|
|
1049
|
-
function ne(b) {
|
|
1050
|
-
n.delCachedView(b);
|
|
1051
|
-
const { fullPath: v } = b;
|
|
1052
|
-
$e(() => {
|
|
1053
|
-
t.replace({ path: "/redirect" + v });
|
|
1054
|
-
});
|
|
1055
|
-
}
|
|
1056
|
-
function X(b) {
|
|
1057
|
-
n.delView(b).then((v) => {
|
|
1058
|
-
n.isActive(b) && n.toLastView(v.visitedViews, b);
|
|
1059
|
-
});
|
|
1060
|
-
}
|
|
1061
|
-
function J() {
|
|
1062
|
-
n.delLeftViews(m.value).then((b) => {
|
|
1063
|
-
b.visitedViews.find((v) => v.path === o.path) || n.toLastView(b.visitedViews);
|
|
1064
|
-
});
|
|
1065
|
-
}
|
|
1066
|
-
function z() {
|
|
1067
|
-
n.delRightViews(m.value).then((b) => {
|
|
1068
|
-
b.visitedViews.find((v) => v.path === o.path) || n.toLastView(b.visitedViews);
|
|
1069
|
-
});
|
|
1070
|
-
}
|
|
1071
|
-
function I() {
|
|
1072
|
-
t.push(m.value), n.delOtherViews(m.value).then(() => {
|
|
1073
|
-
L();
|
|
1074
|
-
});
|
|
1075
|
-
}
|
|
1076
|
-
function R(b) {
|
|
1077
|
-
n.delAllViews().then((v) => {
|
|
1078
|
-
n.toLastView(v.visitedViews, b);
|
|
1079
|
-
});
|
|
1080
|
-
}
|
|
1081
|
-
function re(b, v) {
|
|
1082
|
-
const O = e == null ? void 0 : e.$el.getBoundingClientRect().left, M = (e == null ? void 0 : e.$el.offsetWidth) - 105, P = v.clientX - O + 15;
|
|
1083
|
-
P > M ? _.value = M : _.value = P, f.value === "mix" ? g.value = v.clientY - 50 : g.value = v.clientY, y.value = !0, m.value = b;
|
|
1084
|
-
}
|
|
1085
|
-
function ce() {
|
|
1086
|
-
y.value = !1;
|
|
1087
|
-
}
|
|
1088
|
-
function Be() {
|
|
1089
|
-
ce();
|
|
1090
|
-
}
|
|
1091
|
-
function Oe(b, v) {
|
|
1092
|
-
let F = {};
|
|
1093
|
-
function O(M, P) {
|
|
1094
|
-
if (F[M.name] = P, M.children)
|
|
1095
|
-
for (let j = 0; j < M.children.length; j++)
|
|
1096
|
-
O(M.children[j], M);
|
|
1097
|
-
}
|
|
1098
|
-
for (let M = 0; M < b.length; M++)
|
|
1099
|
-
O(b[M], null);
|
|
1100
|
-
let W = F[v];
|
|
1101
|
-
for (; W; ) {
|
|
1102
|
-
if (!F[W.name])
|
|
1103
|
-
return W;
|
|
1104
|
-
W = F[W.name];
|
|
1105
|
-
}
|
|
1106
|
-
return null;
|
|
1107
|
-
}
|
|
1108
|
-
const Ne = (b) => {
|
|
1109
|
-
if (f.value !== "mix") return;
|
|
1110
|
-
const v = Oe(r.routes, b);
|
|
1111
|
-
a.activeTopMenu !== v.path && a.activeTopMenu(v.path);
|
|
1112
|
-
};
|
|
1113
|
-
return oe(
|
|
1114
|
-
() => o.name,
|
|
1115
|
-
(b) => {
|
|
1116
|
-
b && Ne(b);
|
|
1117
|
-
},
|
|
1118
|
-
{
|
|
1119
|
-
deep: !0
|
|
1120
|
-
}
|
|
1121
|
-
), Ee(() => {
|
|
1122
|
-
$();
|
|
1123
|
-
}), (b, v) => {
|
|
1124
|
-
const F = on, O = V("router-link"), W = V("el-scrollbar"), M = le;
|
|
1125
|
-
return d(), x("div", ln, [
|
|
1126
|
-
p(W, {
|
|
1127
|
-
class: "scroll-container",
|
|
1128
|
-
vertical: !1,
|
|
1129
|
-
onWheel: ue(Be, ["prevent"])
|
|
1130
|
-
}, {
|
|
1131
|
-
default: h(() => [
|
|
1132
|
-
(d(!0), x(K, null, se(l(s), (P) => (d(), S(O, {
|
|
1133
|
-
ref_for: !0,
|
|
1134
|
-
ref: "tagRef",
|
|
1135
|
-
key: P.fullPath,
|
|
1136
|
-
class: H("tags-item " + (l(n).isActive(P) ? "active" : "")),
|
|
1137
|
-
to: { path: P.path, query: P.query },
|
|
1138
|
-
onMouseup: ue((j) => w(P) ? "" : X(P), ["middle"]),
|
|
1139
|
-
onContextmenu: ue((j) => re(P, j), ["prevent"])
|
|
1140
|
-
}, {
|
|
1141
|
-
default: h(() => [
|
|
1142
|
-
N(E(l(yt)(P)) + " ", 1),
|
|
1143
|
-
w(P) ? T("", !0) : (d(), S(F, {
|
|
1144
|
-
key: 0,
|
|
1145
|
-
class: "close-icon",
|
|
1146
|
-
size: "12px",
|
|
1147
|
-
onClick: ue((j) => X(P), ["prevent", "stop"])
|
|
1148
|
-
}, null, 8, ["onClick"]))
|
|
1149
|
-
]),
|
|
1150
|
-
_: 2
|
|
1151
|
-
}, 1032, ["class", "to", "onMouseup", "onContextmenu"]))), 128))
|
|
1152
|
-
]),
|
|
1153
|
-
_: 1
|
|
1154
|
-
}),
|
|
1155
|
-
et(k("ul", {
|
|
1156
|
-
class: "contextmenu",
|
|
1157
|
-
style: tt({ left: l(_) + "px", top: l(g) + "px" })
|
|
1158
|
-
}, [
|
|
1159
|
-
k("li", {
|
|
1160
|
-
onClick: v[0] || (v[0] = (P) => ne(l(m)))
|
|
1161
|
-
}, [
|
|
1162
|
-
p(M, { "icon-class": "refresh" }),
|
|
1163
|
-
v[3] || (v[3] = N(" 刷新 "))
|
|
1164
|
-
]),
|
|
1165
|
-
w(l(m)) ? T("", !0) : (d(), x("li", {
|
|
1166
|
-
key: 0,
|
|
1167
|
-
onClick: v[1] || (v[1] = (P) => X(l(m)))
|
|
1168
|
-
}, [
|
|
1169
|
-
p(M, { "icon-class": "close" }),
|
|
1170
|
-
v[4] || (v[4] = N(" 关闭 "))
|
|
1171
|
-
])),
|
|
1172
|
-
k("li", { onClick: I }, [
|
|
1173
|
-
p(M, { "icon-class": "close_other" }),
|
|
1174
|
-
v[5] || (v[5] = N(" 关闭其它 "))
|
|
1175
|
-
]),
|
|
1176
|
-
Y() ? T("", !0) : (d(), x("li", {
|
|
1177
|
-
key: 1,
|
|
1178
|
-
onClick: J
|
|
1179
|
-
}, [
|
|
1180
|
-
p(M, { "icon-class": "close_left" }),
|
|
1181
|
-
v[6] || (v[6] = N(" 关闭左侧 "))
|
|
1182
|
-
])),
|
|
1183
|
-
ee() ? T("", !0) : (d(), x("li", {
|
|
1184
|
-
key: 2,
|
|
1185
|
-
onClick: z
|
|
1186
|
-
}, [
|
|
1187
|
-
p(M, { "icon-class": "close_right" }),
|
|
1188
|
-
v[7] || (v[7] = N(" 关闭右侧 "))
|
|
1189
|
-
])),
|
|
1190
|
-
k("li", {
|
|
1191
|
-
onClick: v[2] || (v[2] = (P) => R(l(m)))
|
|
1192
|
-
}, [
|
|
1193
|
-
p(M, { "icon-class": "close_all" }),
|
|
1194
|
-
v[8] || (v[8] = N(" 关闭所有 "))
|
|
1195
|
-
])
|
|
1196
|
-
], 4), [
|
|
1197
|
-
[nt, l(y)]
|
|
1198
|
-
])
|
|
1199
|
-
]);
|
|
1200
|
-
};
|
|
1201
|
-
}
|
|
1202
|
-
}), rn = /* @__PURE__ */ q(sn, [["__scopeId", "data-v-77bfe9a5"]]), cn = /* @__PURE__ */ D({
|
|
1203
|
-
name: "AppLink",
|
|
1204
|
-
inheritAttrs: !1,
|
|
1205
|
-
__name: "index",
|
|
1206
|
-
props: {
|
|
1207
|
-
to: {
|
|
1208
|
-
type: String,
|
|
1209
|
-
required: !0
|
|
1210
|
-
}
|
|
1211
|
-
},
|
|
1212
|
-
setup(i) {
|
|
1213
|
-
const e = i, t = B(() => fe(e.to)), o = B(() => t.value ? "a" : "router-link"), r = (n) => t.value ? { href: n, target: "_blank", rel: "noopener noreferrer" } : { to: n };
|
|
1214
|
-
return (n, a) => (d(), S(ye(l(o)), ot(it(r(i.to))), {
|
|
1215
|
-
default: h(() => [
|
|
1216
|
-
at(n.$slots, "default")
|
|
1217
|
-
]),
|
|
1218
|
-
_: 3
|
|
1219
|
-
}, 16));
|
|
1220
|
-
}
|
|
1221
|
-
}), un = {
|
|
1222
|
-
key: 3,
|
|
1223
|
-
class: "ml-1"
|
|
1224
|
-
}, dn = /* @__PURE__ */ D({
|
|
1225
|
-
__name: "SidebarMenuItemTitle",
|
|
1226
|
-
props: {
|
|
1227
|
-
icon: {
|
|
1228
|
-
type: String,
|
|
1229
|
-
default: ""
|
|
1230
|
-
},
|
|
1231
|
-
name: {
|
|
1232
|
-
type: String,
|
|
1233
|
-
default: ""
|
|
1234
|
-
},
|
|
1235
|
-
title: {
|
|
1236
|
-
type: String,
|
|
1237
|
-
default: ""
|
|
1238
|
-
}
|
|
1239
|
-
},
|
|
1240
|
-
setup(i) {
|
|
1241
|
-
return (e, t) => {
|
|
1242
|
-
const o = V("el-icon"), r = le;
|
|
1243
|
-
return d(), x(K, null, [
|
|
1244
|
-
i.icon && i.icon.startsWith("el-icon") ? (d(), S(o, {
|
|
1245
|
-
key: 0,
|
|
1246
|
-
class: "sub-el-icon"
|
|
1247
|
-
}, {
|
|
1248
|
-
default: h(() => [
|
|
1249
|
-
(d(), S(ye(i.icon.replace("el-icon-", ""))))
|
|
1250
|
-
]),
|
|
1251
|
-
_: 1
|
|
1252
|
-
})) : i.icon ? (d(), S(r, {
|
|
1253
|
-
key: 1,
|
|
1254
|
-
"icon-class": i.icon
|
|
1255
|
-
}, null, 8, ["icon-class"])) : (d(), S(r, {
|
|
1256
|
-
key: 2,
|
|
1257
|
-
"icon-class": "menu"
|
|
1258
|
-
})),
|
|
1259
|
-
i.title ? (d(), x("span", un, E(l(ge)(i.name, i.title)), 1)) : T("", !0)
|
|
1260
|
-
], 64);
|
|
1261
|
-
};
|
|
1262
|
-
}
|
|
1263
|
-
}), fn = /* @__PURE__ */ q(dn, [["__scopeId", "data-v-992a058f"]]), mn = { key: 0 }, pn = /* @__PURE__ */ D({
|
|
1264
|
-
name: "SidebarMenuItem",
|
|
1265
|
-
inheritAttrs: !1,
|
|
1266
|
-
__name: "SidebarMenuItem",
|
|
1267
|
-
props: {
|
|
1268
|
-
/**
|
|
1269
|
-
* 路由(eg:user)
|
|
1270
|
-
*/
|
|
1271
|
-
item: {
|
|
1272
|
-
type: Object,
|
|
1273
|
-
required: !0
|
|
1274
|
-
},
|
|
1275
|
-
/**
|
|
1276
|
-
* 父层级完整路由路径(eg:/system)
|
|
1277
|
-
*/
|
|
1278
|
-
basePath: {
|
|
1279
|
-
type: String,
|
|
1280
|
-
required: !0
|
|
1281
|
-
},
|
|
1282
|
-
isNest: {
|
|
1283
|
-
type: Boolean,
|
|
1284
|
-
default: !1
|
|
1285
|
-
}
|
|
1286
|
-
},
|
|
1287
|
-
setup(i) {
|
|
1288
|
-
const e = i, t = U();
|
|
1289
|
-
function o(n = [], a) {
|
|
1290
|
-
const s = n.filter((c) => {
|
|
1291
|
-
var f;
|
|
1292
|
-
return (f = c.meta) != null && f.hidden ? !1 : (c.meta.hidden = !1, t.value = c, !0);
|
|
1293
|
-
});
|
|
1294
|
-
return s.length === 1 ? !0 : s.length === 0 ? (t.value = { ...a, path: "", noShowingChildren: !0 }, !0) : !1;
|
|
1295
|
-
}
|
|
1296
|
-
function r(n) {
|
|
1297
|
-
return fe(n) ? n : fe(e.basePath) ? e.basePath : Re.resolve(e.basePath, n);
|
|
1298
|
-
}
|
|
1299
|
-
return (n, a) => {
|
|
1300
|
-
var _;
|
|
1301
|
-
const s = fn, c = V("el-menu-item"), f = cn, m = V("SidebarMenuItem", !0), u = V("el-sub-menu");
|
|
1302
|
-
return !i.item.meta || !i.item.meta.hidden ? (d(), x("div", mn, [
|
|
1303
|
-
o(i.item.children, i.item) && (!l(t).children || l(t).noShowingChildren) && !((_ = i.item.meta) != null && _.alwaysShow) ? (d(), x(K, { key: 0 }, [
|
|
1304
|
-
l(t).meta ? (d(), S(f, {
|
|
1305
|
-
key: 0,
|
|
1306
|
-
to: r(l(t).path)
|
|
1307
|
-
}, {
|
|
1308
|
-
default: h(() => [
|
|
1309
|
-
p(c, {
|
|
1310
|
-
index: r(l(t).path),
|
|
1311
|
-
class: H({ "submenu-title-noDropdown": !i.isNest })
|
|
1312
|
-
}, {
|
|
1313
|
-
default: h(() => [
|
|
1314
|
-
p(s, {
|
|
1315
|
-
icon: l(t).meta.icon || i.item.meta && i.item.meta.icon,
|
|
1316
|
-
title: l(t).meta.title,
|
|
1317
|
-
name: l(t).name
|
|
1318
|
-
}, null, 8, ["icon", "title", "name"])
|
|
1319
|
-
]),
|
|
1320
|
-
_: 1
|
|
1321
|
-
}, 8, ["index", "class"])
|
|
1322
|
-
]),
|
|
1323
|
-
_: 1
|
|
1324
|
-
}, 8, ["to"])) : T("", !0)
|
|
1325
|
-
], 64)) : (d(), S(u, {
|
|
1326
|
-
key: 1,
|
|
1327
|
-
index: r(i.item.path),
|
|
1328
|
-
teleported: ""
|
|
1329
|
-
}, {
|
|
1330
|
-
title: h(() => [
|
|
1331
|
-
i.item.meta ? (d(), S(s, {
|
|
1332
|
-
key: 0,
|
|
1333
|
-
icon: i.item.meta && i.item.meta.icon,
|
|
1334
|
-
title: i.item.meta.title,
|
|
1335
|
-
name: i.item.name
|
|
1336
|
-
}, null, 8, ["icon", "title", "name"])) : T("", !0)
|
|
1337
|
-
]),
|
|
1338
|
-
default: h(() => [
|
|
1339
|
-
(d(!0), x(K, null, se(i.item.children, (g) => (d(), S(m, {
|
|
1340
|
-
key: g.path,
|
|
1341
|
-
"is-nest": !0,
|
|
1342
|
-
item: g,
|
|
1343
|
-
"base-path": r(g.path)
|
|
1344
|
-
}, null, 8, ["item", "base-path"]))), 128))
|
|
1345
|
-
]),
|
|
1346
|
-
_: 1
|
|
1347
|
-
}, 8, ["index"]))
|
|
1348
|
-
])) : T("", !0);
|
|
1349
|
-
};
|
|
1350
|
-
}
|
|
1351
|
-
}), _n = "_dark_1sua6_13", ae = {
|
|
1352
|
-
"sidebar-width": "210px",
|
|
1353
|
-
"navbar-height": "50px",
|
|
1354
|
-
"menu-background": "var(--menu-background)",
|
|
1355
|
-
"menu-text": "var(--menu-text)",
|
|
1356
|
-
"menu-active-text": "var(--menu-active-text)",
|
|
1357
|
-
"menu-hover": "var(--menu-hover)",
|
|
1358
|
-
dark: _n
|
|
1359
|
-
}, De = /* @__PURE__ */ D({
|
|
1360
|
-
__name: "SidebarMenu",
|
|
1361
|
-
props: {
|
|
1362
|
-
menuList: {
|
|
1363
|
-
required: !0,
|
|
1364
|
-
default: () => [],
|
|
1365
|
-
type: Array
|
|
1366
|
-
},
|
|
1367
|
-
basePath: {
|
|
1368
|
-
type: String,
|
|
1369
|
-
required: !0
|
|
1370
|
-
}
|
|
1371
|
-
},
|
|
1372
|
-
setup(i) {
|
|
1373
|
-
const e = te(), t = Z(), o = pe(), r = B(() => e.layout), n = i;
|
|
1374
|
-
function a(s) {
|
|
1375
|
-
return fe(s) ? s : fe(n.basePath) ? n.basePath : Re.resolve(n.basePath, s);
|
|
1376
|
-
}
|
|
1377
|
-
return (s, c) => {
|
|
1378
|
-
const f = pn, m = V("el-menu");
|
|
1379
|
-
return d(), S(m, {
|
|
1380
|
-
"default-active": l(o).path,
|
|
1381
|
-
collapse: !l(t).sidebar.opened,
|
|
1382
|
-
"background-color": l(ae)["menu-background"],
|
|
1383
|
-
"text-color": l(ae)["menu-text"],
|
|
1384
|
-
"active-text-color": l(ae)["menu-active-text"],
|
|
1385
|
-
"unique-opened": !1,
|
|
1386
|
-
"collapse-transition": !1,
|
|
1387
|
-
mode: l(r) === "top" ? "horizontal" : "vertical"
|
|
1388
|
-
}, {
|
|
1389
|
-
default: h(() => [
|
|
1390
|
-
(d(!0), x(K, null, se(i.menuList, (u) => (d(), S(f, {
|
|
1391
|
-
key: u.path,
|
|
1392
|
-
item: u,
|
|
1393
|
-
"base-path": a(u.path),
|
|
1394
|
-
"is-collapse": !l(t).sidebar.opened
|
|
1395
|
-
}, null, 8, ["item", "base-path", "is-collapse"]))), 128))
|
|
1396
|
-
]),
|
|
1397
|
-
_: 1
|
|
1398
|
-
}, 8, ["default-active", "collapse", "background-color", "text-color", "active-text-color", "mode"]);
|
|
1399
|
-
};
|
|
1400
|
-
}
|
|
1401
|
-
}), vn = { key: 1 }, gn = {
|
|
1402
|
-
key: 0,
|
|
1403
|
-
class: "ml-1"
|
|
1404
|
-
}, hn = /* @__PURE__ */ D({
|
|
1405
|
-
__name: "SidebarMixTopMenu",
|
|
1406
|
-
setup(i) {
|
|
1407
|
-
const e = Z(), t = me(), o = ke(), r = B(() => e.activeTopMenuPath), n = U([]), a = (c) => {
|
|
1408
|
-
e.activeTopMenu(c), t.setMixLeftMenus(c);
|
|
1409
|
-
const f = t.mixLeftMenus;
|
|
1410
|
-
s(f);
|
|
1411
|
-
}, s = (c) => {
|
|
1412
|
-
if (c.length === 0) return;
|
|
1413
|
-
const [f] = c;
|
|
1414
|
-
f.children && f.children.length > 0 ? s(f.children) : f.name && o.push({
|
|
1415
|
-
name: f.name
|
|
1416
|
-
});
|
|
1417
|
-
};
|
|
1418
|
-
return Ee(() => {
|
|
1419
|
-
n.value = t.routes.filter(
|
|
1420
|
-
(c) => !c.meta || !c.meta.hidden
|
|
1421
|
-
);
|
|
1422
|
-
}), (c, f) => {
|
|
1423
|
-
const m = le, u = V("el-menu-item"), _ = V("el-menu"), g = V("el-scrollbar");
|
|
1424
|
-
return d(), S(g, null, {
|
|
1425
|
-
default: h(() => [
|
|
1426
|
-
p(_, {
|
|
1427
|
-
mode: "horizontal",
|
|
1428
|
-
"default-active": l(r),
|
|
1429
|
-
"background-color": l(ae)["menu-background"],
|
|
1430
|
-
"text-color": l(ae)["menu-text"],
|
|
1431
|
-
"active-text-color": l(ae)["menu-active-text"],
|
|
1432
|
-
onSelect: a
|
|
1433
|
-
}, {
|
|
1434
|
-
default: h(() => [
|
|
1435
|
-
(d(!0), x(K, null, se(l(n), (y) => (d(), S(u, {
|
|
1436
|
-
key: y.path,
|
|
1437
|
-
index: y.path
|
|
1438
|
-
}, {
|
|
1439
|
-
title: h(() => [
|
|
1440
|
-
y.meta && y.meta.icon ? (d(), S(m, {
|
|
1441
|
-
key: 0,
|
|
1442
|
-
"icon-class": y.meta.icon
|
|
1443
|
-
}, null, 8, ["icon-class"])) : T("", !0),
|
|
1444
|
-
y.path === "/" ? (d(), x("span", vn, E(l(ge)("Dashboard", "首页")), 1)) : (d(), x(K, { key: 2 }, [
|
|
1445
|
-
y.meta && y.meta.title ? (d(), x("span", gn, E(l(xe)(y)), 1)) : T("", !0)
|
|
1446
|
-
], 64))
|
|
1447
|
-
]),
|
|
1448
|
-
_: 2
|
|
1449
|
-
}, 1032, ["index"]))), 128))
|
|
1450
|
-
]),
|
|
1451
|
-
_: 1
|
|
1452
|
-
}, 8, ["default-active", "background-color", "text-color", "active-text-color"])
|
|
1453
|
-
]),
|
|
1454
|
-
_: 1
|
|
1455
|
-
});
|
|
1456
|
-
};
|
|
1457
|
-
}
|
|
1458
|
-
}), bn = { class: "logo-container" }, xn = ["src"], wn = ["src"], yn = { class: "logo-title" }, kn = /* @__PURE__ */ D({
|
|
1459
|
-
__name: "SidebarLogo",
|
|
1460
|
-
props: {
|
|
1461
|
-
collapse: {
|
|
1462
|
-
type: Boolean,
|
|
1463
|
-
required: !0
|
|
1464
|
-
}
|
|
1465
|
-
},
|
|
1466
|
-
setup(i) {
|
|
1467
|
-
const e = te(), t = de.logo;
|
|
1468
|
-
return (o, r) => {
|
|
1469
|
-
const n = V("router-link");
|
|
1470
|
-
return d(), x("div", bn, [
|
|
1471
|
-
p(Me, { "enter-active-class": "animate__animated animate__fadeInLeft" }, {
|
|
1472
|
-
default: h(() => [
|
|
1473
|
-
i.collapse ? (d(), S(n, {
|
|
1474
|
-
key: 0,
|
|
1475
|
-
class: "wh-full flex-center",
|
|
1476
|
-
to: "/"
|
|
1477
|
-
}, {
|
|
1478
|
-
default: h(() => [
|
|
1479
|
-
l(e).sidebarLogo ? (d(), x("img", {
|
|
1480
|
-
key: 0,
|
|
1481
|
-
src: l(t),
|
|
1482
|
-
class: "logo-image"
|
|
1483
|
-
}, null, 8, xn)) : T("", !0)
|
|
1484
|
-
]),
|
|
1485
|
-
_: 1
|
|
1486
|
-
})) : (d(), S(n, {
|
|
1487
|
-
key: 1,
|
|
1488
|
-
class: "wh-full flex-center",
|
|
1489
|
-
to: "/"
|
|
1490
|
-
}, {
|
|
1491
|
-
default: h(() => [
|
|
1492
|
-
l(e).sidebarLogo ? (d(), x("img", {
|
|
1493
|
-
key: 0,
|
|
1494
|
-
src: l(t),
|
|
1495
|
-
class: "logo-image"
|
|
1496
|
-
}, null, 8, wn)) : T("", !0),
|
|
1497
|
-
k("span", yn, E(l(de).title), 1)
|
|
1498
|
-
]),
|
|
1499
|
-
_: 1
|
|
1500
|
-
}))
|
|
1501
|
-
]),
|
|
1502
|
-
_: 1
|
|
1503
|
-
})
|
|
1504
|
-
]);
|
|
1505
|
-
};
|
|
1506
|
-
}
|
|
1507
|
-
}), Sn = /* @__PURE__ */ q(kn, [["__scopeId", "data-v-210c85a9"]]), Cn = {
|
|
1508
|
-
key: 0,
|
|
1509
|
-
class: "flex w-full"
|
|
1510
|
-
}, Vn = /* @__PURE__ */ D({
|
|
1511
|
-
__name: "index",
|
|
1512
|
-
setup(i) {
|
|
1513
|
-
const e = Z(), t = te(), o = me(), r = B(() => t.sidebarLogo), n = B(() => t.layout);
|
|
1514
|
-
return (a, s) => {
|
|
1515
|
-
const c = Sn, f = hn, m = Le, u = De, _ = V("el-scrollbar");
|
|
1516
|
-
return d(), x("div", {
|
|
1517
|
-
class: H({ "has-logo": l(r) })
|
|
1518
|
-
}, [
|
|
1519
|
-
l(n) == "mix" ? (d(), x("div", Cn, [
|
|
1520
|
-
l(r) ? (d(), S(c, {
|
|
1521
|
-
key: 0,
|
|
1522
|
-
collapse: !l(e).sidebar.opened
|
|
1523
|
-
}, null, 8, ["collapse"])) : T("", !0),
|
|
1524
|
-
p(f, { class: "flex-1" }),
|
|
1525
|
-
p(m)
|
|
1526
|
-
])) : (d(), x(K, { key: 1 }, [
|
|
1527
|
-
l(r) ? (d(), S(c, {
|
|
1528
|
-
key: 0,
|
|
1529
|
-
collapse: !l(e).sidebar.opened
|
|
1530
|
-
}, null, 8, ["collapse"])) : T("", !0),
|
|
1531
|
-
p(_, null, {
|
|
1532
|
-
default: h(() => [
|
|
1533
|
-
p(u, {
|
|
1534
|
-
"menu-list": l(o).routes,
|
|
1535
|
-
"base-path": ""
|
|
1536
|
-
}, null, 8, ["menu-list"])
|
|
1537
|
-
]),
|
|
1538
|
-
_: 1
|
|
1539
|
-
}),
|
|
1540
|
-
l(n) === "top" ? (d(), S(m, { key: 1 })) : T("", !0)
|
|
1541
|
-
], 64))
|
|
1542
|
-
], 2);
|
|
1543
|
-
};
|
|
1544
|
-
}
|
|
1545
|
-
}), Tn = /* @__PURE__ */ q(Vn, [["__scopeId", "data-v-a6d3f8e9"]]), $n = {
|
|
1546
|
-
key: 1,
|
|
1547
|
-
class: "mix-container"
|
|
1548
|
-
}, An = { class: "mix-container__left" }, Mn = { class: "sidebar-toggle" }, En = 992, Ln = /* @__PURE__ */ D({
|
|
1549
|
-
__name: "index",
|
|
1550
|
-
setup(i) {
|
|
1551
|
-
const e = Z(), t = te(), o = me(), r = B(() => t.fixedHeader), n = B(() => t.tagsView), a = B(() => t.layout), s = B(() => e.activeTopMenuPath), c = B(() => o.mixLeftMenus);
|
|
1552
|
-
oe(
|
|
1553
|
-
() => s.value,
|
|
1554
|
-
(g) => {
|
|
1555
|
-
o.setMixLeftMenus(g);
|
|
1556
|
-
},
|
|
1557
|
-
{
|
|
1558
|
-
deep: !0,
|
|
1559
|
-
immediate: !0
|
|
1560
|
-
}
|
|
1561
|
-
);
|
|
1562
|
-
const f = B(() => ({
|
|
1563
|
-
hideSidebar: !e.sidebar.opened,
|
|
1564
|
-
openSidebar: e.sidebar.opened,
|
|
1565
|
-
mobile: e.device === _e.MOBILE,
|
|
1566
|
-
"layout-left": a.value === "left",
|
|
1567
|
-
"layout-top": a.value === "top",
|
|
1568
|
-
"layout-mix": a.value === "mix"
|
|
1569
|
-
})), m = Ge().width;
|
|
1570
|
-
lt(() => {
|
|
1571
|
-
m.value < En ? (e.toggleDevice(_e.MOBILE), e.closeSideBar()) : (e.toggleDevice(_e.DESKTOP), m.value >= 1200 ? e.openSideBar() : e.closeSideBar());
|
|
1572
|
-
});
|
|
1573
|
-
function u() {
|
|
1574
|
-
e.closeSideBar();
|
|
1575
|
-
}
|
|
1576
|
-
function _() {
|
|
1577
|
-
e.toggleSidebar();
|
|
1578
|
-
}
|
|
1579
|
-
return (g, y) => {
|
|
1580
|
-
const A = Tn, $ = De, C = Pe, L = rn, w = en, Y = Jt, ee = Pt;
|
|
1581
|
-
return d(), x("div", {
|
|
1582
|
-
class: H(["wh-full", l(f)])
|
|
1583
|
-
}, [
|
|
1584
|
-
l(f).mobile && l(f).openSidebar ? (d(), x("div", {
|
|
1585
|
-
key: 0,
|
|
1586
|
-
class: "wh-full fixed-lt z-999 bg-black bg-opacity-30",
|
|
1587
|
-
onClick: u
|
|
1588
|
-
})) : T("", !0),
|
|
1589
|
-
p(A, { class: "sidebar-container" }),
|
|
1590
|
-
l(a) === "mix" ? (d(), x("div", $n, [
|
|
1591
|
-
k("div", An, [
|
|
1592
|
-
p($, {
|
|
1593
|
-
"menu-list": l(c),
|
|
1594
|
-
"base-path": l(s)
|
|
1595
|
-
}, null, 8, ["menu-list", "base-path"]),
|
|
1596
|
-
k("div", Mn, [
|
|
1597
|
-
p(C, {
|
|
1598
|
-
"is-active": l(e).sidebar.opened,
|
|
1599
|
-
onToggleClick: _
|
|
1600
|
-
}, null, 8, ["is-active"])
|
|
1601
|
-
])
|
|
1602
|
-
]),
|
|
1603
|
-
k("div", {
|
|
1604
|
-
class: H([{ hasTagsView: l(n) }, "main-container"])
|
|
1605
|
-
}, [
|
|
1606
|
-
k("div", {
|
|
1607
|
-
class: H({ "fixed-header": l(r) })
|
|
1608
|
-
}, [
|
|
1609
|
-
l(n) ? (d(), S(L, { key: 0 })) : T("", !0)
|
|
1610
|
-
], 2),
|
|
1611
|
-
p(w),
|
|
1612
|
-
l(de).showSettings ? (d(), S(Y, { key: 0 })) : T("", !0)
|
|
1613
|
-
], 2)
|
|
1614
|
-
])) : (d(), x("div", {
|
|
1615
|
-
key: 2,
|
|
1616
|
-
class: H([{ hasTagsView: l(n) }, "main-container"])
|
|
1617
|
-
}, [
|
|
1618
|
-
k("div", {
|
|
1619
|
-
class: H({ "fixed-header": l(r) })
|
|
1620
|
-
}, [
|
|
1621
|
-
l(a) === "left" ? (d(), S(ee, { key: 0 })) : T("", !0),
|
|
1622
|
-
l(n) ? (d(), S(L, { key: 1 })) : T("", !0)
|
|
1623
|
-
], 2),
|
|
1624
|
-
p(w),
|
|
1625
|
-
l(de).showSettings ? (d(), S(Y, { key: 0 })) : T("", !0)
|
|
1626
|
-
], 2))
|
|
1627
|
-
], 2);
|
|
1628
|
-
};
|
|
1629
|
-
}
|
|
1630
|
-
}), Nn = /* @__PURE__ */ q(Ln, [["__scopeId", "data-v-71891bc2"]]);
|
|
1631
|
-
export {
|
|
1632
|
-
Nn as default
|
|
1633
|
-
};
|