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