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