@huyooo/ui 0.5.50 → 0.5.52
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/{AuthkitAuthModal-D9KYU2Q_.js → AuthkitAuthModal-bJhi6_gD.js} +5 -5
- package/dist/{AuthkitAuthorize-Dp2O6V8H.js → AuthkitAuthorize-DkATUOHh.js} +2 -2
- package/dist/{Clipboard-CKth2I5_.js → Clipboard-B1S22H4u.js} +1 -1
- package/dist/{Contact-Dn0SG2yv.js → Contact-BedOlSzv.js} +2 -2
- package/dist/{FeedbackItem-CRLaflw8.js → FeedbackItem-Dpo--iGm.js} +3 -3
- package/dist/{FeedbackModal-CieTPhns.js → FeedbackModal-CF9_lxXh.js} +3 -3
- package/dist/{MessageHandle-CXNFRd1b.js → MessageHandle-20vJx3hm.js} +3 -3
- package/dist/{PaySubscriptions--3YYjJJQ.js → PaySubscriptions-CK8CP3zA.js} +3 -3
- package/dist/{ReferrerReferees-BTGhLFWg.js → ReferrerReferees-BUbkO2tK.js} +4 -4
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-BRIQece7.js → Upload.vue_vue_type_script_setup_true_lang-CZ26PPi_.js} +2 -2
- package/dist/{UserAccountMenu-kABD5Mgj.js → UserAccountMenu-CWrFWNvu.js} +7 -7
- package/dist/WidthContainer-Bz4U5oVZ.js +585 -0
- package/dist/{auth-DoFeUkvU.js → auth-BsBlc_B8.js} +2 -1
- package/dist/authkit.js +6 -6
- package/dist/common.js +1 -1
- package/dist/composables/Authkit/useAuthMenu.d.ts +11 -0
- package/dist/composables.d.ts +1 -1
- package/dist/composables.js +23 -21
- package/dist/feedback.js +3 -3
- package/dist/index.js +168 -166
- package/dist/message.js +2 -2
- package/dist/pay.js +1 -1
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-ColL5PT9.js → useAuthkitAppsAuthPageInfo-CoQi1eR1.js} +1 -1
- package/dist/{useAuthkitCreateAndUpdate-sd36XPRm.js → useAuthkitCreateAndUpdate-Cf7nddgv.js} +1 -1
- package/dist/{useAuthkitUsersProfile-DZErSTcF.js → useAuthkitUsersProfile-ChX1jsty.js} +1 -1
- package/dist/{useDownloads-ZE9iJwIA.js → useDownloads-ysVfpJuf.js} +1 -1
- package/dist/{useMessageNotifications-a37WUHHY.js → useMessageNotifications-ChYsrw0-.js} +1 -1
- package/dist/{useSEO-cMg2LHqd.js → useSEO-gIh42v6e.js} +233 -197
- package/dist/{useTableHandle-CdyzAUWe.js → useTableHandle-C_-K5ipT.js} +1 -1
- package/dist/{useUploadCos-BEzVZoNh.js → useUploadCos-Cn_58MaN.js} +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/WidthContainer-DPR4sEn4.js +0 -626
package/dist/user.js
CHANGED
package/package.json
CHANGED
|
@@ -1,626 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
/* empty css */
|
|
3
|
-
import { defineComponent as T, ref as q, watch as V, createElementBlock as n, openBlock as e, createElementVNode as s, createVNode as y, unref as h, withCtx as te, renderSlot as O, createCommentVNode as k, toDisplayString as S, onMounted as ne, onUnmounted as oe, Fragment as U, renderList as H, normalizeClass as L, createTextVNode as se, normalizeStyle as K, createBlock as ae, computed as W } from "vue";
|
|
4
|
-
import { Spin as D } from "@arco-design/web-vue";
|
|
5
|
-
import { a as R } from "./useAuthkitUsersProfile-DZErSTcF.js";
|
|
6
|
-
import { u as G, a as ie } from "./auth-DoFeUkvU.js";
|
|
7
|
-
import { u as N } from "./useAuthkitAppsAuthPageInfo-ColL5PT9.js";
|
|
8
|
-
import { a as F, f as j, w as B, b as J, d as Q, c as re } from "./useSEO-cMg2LHqd.js";
|
|
9
|
-
import "./useUploadCos-BEzVZoNh.js";
|
|
10
|
-
import { useRouter as X, useRoute as Y } from "vue-router";
|
|
11
|
-
/* empty css */
|
|
12
|
-
/* empty css */
|
|
13
|
-
import { d as ce, c as Z } from "./UserAccountMenu-kABD5Mgj.js";
|
|
14
|
-
/* empty css */
|
|
15
|
-
/* empty css */
|
|
16
|
-
/* empty css */
|
|
17
|
-
/* empty css */
|
|
18
|
-
import { M as ue } from "./Menu-ejsosUdV.js";
|
|
19
|
-
import "./CollapseItem-Cw1vcdLu.js";
|
|
20
|
-
/* empty css */
|
|
21
|
-
import "./CustomTable-B8i1SbFB.js";
|
|
22
|
-
import "./index-Bb-d5pBq.js";
|
|
23
|
-
import { Icon as E } from "@iconify/vue";
|
|
24
|
-
import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
25
|
-
const le = {
|
|
26
|
-
class: "SidebarCom"
|
|
27
|
-
}, de = {
|
|
28
|
-
class: "LogoContent"
|
|
29
|
-
}, pe = {
|
|
30
|
-
class: "MenuContent"
|
|
31
|
-
}, he = {
|
|
32
|
-
class: "sidebar-footer"
|
|
33
|
-
}, me = /* @__PURE__ */ T({
|
|
34
|
-
__name: "AppSidebar",
|
|
35
|
-
props: {
|
|
36
|
-
menuType: {
|
|
37
|
-
default: "system"
|
|
38
|
-
},
|
|
39
|
-
showUserPanel: {
|
|
40
|
-
type: Boolean,
|
|
41
|
-
default: !0
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
setup(a) {
|
|
45
|
-
const t = a, {
|
|
46
|
-
show: c
|
|
47
|
-
} = G(), {
|
|
48
|
-
isLoggedIn: d
|
|
49
|
-
} = R(), {
|
|
50
|
-
appsData: u
|
|
51
|
-
} = N(), {
|
|
52
|
-
menus: m,
|
|
53
|
-
hasPermission: b
|
|
54
|
-
} = F(t.menuType), w = X(), C = q(!1);
|
|
55
|
-
function I() {
|
|
56
|
-
w.push({
|
|
57
|
-
path: "/"
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
const f = Y(), M = q([""]);
|
|
61
|
-
function x(_) {
|
|
62
|
-
const r = _.path;
|
|
63
|
-
if (!b(r)) {
|
|
64
|
-
d.value || (c.value = !0);
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
B(() => {
|
|
68
|
-
w.push({
|
|
69
|
-
path: r,
|
|
70
|
-
query: f.query
|
|
71
|
-
}), M.value = [r], window.scrollTo({
|
|
72
|
-
top: 0,
|
|
73
|
-
behavior: "smooth"
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
return V(() => f.path, () => {
|
|
78
|
-
const _ = j(f.matched, t.menuType, f.path);
|
|
79
|
-
console.log(_, f.matched, t.menuType, f.path, "activateKey"), _ && (M.value = [_]);
|
|
80
|
-
}, {
|
|
81
|
-
immediate: !0
|
|
82
|
-
}), (_, r) => (e(), n("div", le, [s("div", de, [y(h(ee), {
|
|
83
|
-
icon: h(u).applicationLogoUrl,
|
|
84
|
-
name: h(u).name,
|
|
85
|
-
onTo: I
|
|
86
|
-
}, null, 8, ["icon", "name"])]), s("div", pe, [y(ue, {
|
|
87
|
-
"selected-keys": M.value,
|
|
88
|
-
"onUpdate:selectedKeys": r[0] || (r[0] = (v) => M.value = v),
|
|
89
|
-
menus: h(m),
|
|
90
|
-
onChange: x
|
|
91
|
-
}, null, 8, ["selected-keys", "menus"])]), s("div", he, [y(h(ce), {
|
|
92
|
-
onArrowClick: r[2] || (r[2] = (v) => C.value = !C.value)
|
|
93
|
-
}, {
|
|
94
|
-
avatar: te(() => [y(h(Z), {
|
|
95
|
-
modelValue: C.value,
|
|
96
|
-
"onUpdate:modelValue": r[1] || (r[1] = (v) => C.value = v),
|
|
97
|
-
position: "tr",
|
|
98
|
-
"dropdown-offset-y": "30px",
|
|
99
|
-
"dropdown-offset-x": "230px"
|
|
100
|
-
}, null, 8, ["modelValue"])]),
|
|
101
|
-
_: 1
|
|
102
|
-
})])]));
|
|
103
|
-
}
|
|
104
|
-
}), fe = /* @__PURE__ */ $(me, [["__scopeId", "data-v-19d56143"]]), _e = {
|
|
105
|
-
class: "layout"
|
|
106
|
-
}, ve = {
|
|
107
|
-
class: "leftContent"
|
|
108
|
-
}, ge = {
|
|
109
|
-
class: "content"
|
|
110
|
-
}, ye = {
|
|
111
|
-
class: "contentCenter"
|
|
112
|
-
}, be = {
|
|
113
|
-
class: "pages"
|
|
114
|
-
}, ke = {
|
|
115
|
-
key: 0,
|
|
116
|
-
class: "loading"
|
|
117
|
-
}, Se = /* @__PURE__ */ T({
|
|
118
|
-
__name: "AppLayout",
|
|
119
|
-
props: {
|
|
120
|
-
menuType: {
|
|
121
|
-
default: "system"
|
|
122
|
-
},
|
|
123
|
-
showUserPanel: {
|
|
124
|
-
type: Boolean,
|
|
125
|
-
default: !0
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
setup(a) {
|
|
129
|
-
const t = a, {
|
|
130
|
-
isChecking: c
|
|
131
|
-
} = J();
|
|
132
|
-
return Q(), (d, u) => (e(), n("div", _e, [s("div", ve, [y(fe, {
|
|
133
|
-
"menu-type": t.menuType,
|
|
134
|
-
"show-user-panel": t.showUserPanel
|
|
135
|
-
}, null, 8, ["menu-type", "show-user-panel"])]), s("div", ge, [s("div", ye, [s("div", be, [h(c) ? (e(), n("div", ke, [y(h(D), {
|
|
136
|
-
size: 40
|
|
137
|
-
})])) : O(d.$slots, "default", {
|
|
138
|
-
key: 1
|
|
139
|
-
}, void 0, !0)])])])]));
|
|
140
|
-
}
|
|
141
|
-
}), qt = /* @__PURE__ */ $(Se, [["__scopeId", "data-v-f79dd27f"]]), $e = {
|
|
142
|
-
class: "ContentHead"
|
|
143
|
-
}, we = {
|
|
144
|
-
class: "title"
|
|
145
|
-
}, Ce = {
|
|
146
|
-
key: 0,
|
|
147
|
-
class: "description"
|
|
148
|
-
}, Ie = /* @__PURE__ */ T({
|
|
149
|
-
__name: "ContentHead",
|
|
150
|
-
props: {
|
|
151
|
-
title: {
|
|
152
|
-
type: String,
|
|
153
|
-
required: !0,
|
|
154
|
-
default: () => ""
|
|
155
|
-
},
|
|
156
|
-
description: {
|
|
157
|
-
type: String,
|
|
158
|
-
required: !0,
|
|
159
|
-
default: () => ""
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
setup(a) {
|
|
163
|
-
const t = a;
|
|
164
|
-
return (c, d) => (e(), n("div", $e, [s("h1", we, S(t.title), 1), t.description ? (e(), n("p", Ce, S(t.description), 1)) : k("", !0)]));
|
|
165
|
-
}
|
|
166
|
-
}), zt = /* @__PURE__ */ $(Ie, [["__scopeId", "data-v-209a7bef"]]), Me = {
|
|
167
|
-
class: "HeaderMenus"
|
|
168
|
-
}, Pe = {
|
|
169
|
-
key: 0,
|
|
170
|
-
class: "desktop-menus"
|
|
171
|
-
}, Te = {
|
|
172
|
-
key: 0,
|
|
173
|
-
class: "header-menu-item"
|
|
174
|
-
}, xe = {
|
|
175
|
-
class: "submenu-popup"
|
|
176
|
-
}, Ae = {
|
|
177
|
-
class: "submenu-content"
|
|
178
|
-
}, Le = ["onClick"], Ue = {
|
|
179
|
-
key: 0,
|
|
180
|
-
class: "submenu-item-icon"
|
|
181
|
-
}, qe = {
|
|
182
|
-
class: "submenu-item-content"
|
|
183
|
-
}, ze = {
|
|
184
|
-
class: "submenu-item-title"
|
|
185
|
-
}, He = {
|
|
186
|
-
key: 0,
|
|
187
|
-
class: "submenu-item-description"
|
|
188
|
-
}, Ke = ["onClick"], Ee = {
|
|
189
|
-
key: 3,
|
|
190
|
-
class: "mobile-menu"
|
|
191
|
-
}, We = {
|
|
192
|
-
class: "mobile-menu-content"
|
|
193
|
-
}, Be = ["onClick"], Oe = {
|
|
194
|
-
key: 0,
|
|
195
|
-
class: "mobile-submenu"
|
|
196
|
-
}, Ve = ["onClick"], De = ["onClick"], Re = /* @__PURE__ */ T({
|
|
197
|
-
__name: "HeaderMenus",
|
|
198
|
-
props: {
|
|
199
|
-
menus: {
|
|
200
|
-
type: Array,
|
|
201
|
-
required: !0
|
|
202
|
-
},
|
|
203
|
-
activateKey: {
|
|
204
|
-
type: String,
|
|
205
|
-
required: !0
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
emits: ["change"],
|
|
209
|
-
setup(a, {
|
|
210
|
-
emit: t
|
|
211
|
-
}) {
|
|
212
|
-
const c = a, d = t, u = q(!1), m = q(!1), b = q({});
|
|
213
|
-
function w() {
|
|
214
|
-
m.value = window.innerWidth <= 1024;
|
|
215
|
-
}
|
|
216
|
-
function C() {
|
|
217
|
-
u.value = !u.value;
|
|
218
|
-
}
|
|
219
|
-
function I() {
|
|
220
|
-
u.value = !1;
|
|
221
|
-
}
|
|
222
|
-
function f(l) {
|
|
223
|
-
d("change", l);
|
|
224
|
-
}
|
|
225
|
-
function M(l) {
|
|
226
|
-
d("change", l), I();
|
|
227
|
-
}
|
|
228
|
-
function x(l) {
|
|
229
|
-
b.value[l] = !b.value[l];
|
|
230
|
-
}
|
|
231
|
-
function _(l) {
|
|
232
|
-
const g = c.activateKey, o = l.path;
|
|
233
|
-
if (g === o || g.startsWith(o + "/"))
|
|
234
|
-
return !0;
|
|
235
|
-
if (l.children && l.children.length > 0) {
|
|
236
|
-
for (const p of l.children)
|
|
237
|
-
if (g === p.path || g.startsWith(p.path + "/"))
|
|
238
|
-
return !0;
|
|
239
|
-
}
|
|
240
|
-
return !1;
|
|
241
|
-
}
|
|
242
|
-
function r(l) {
|
|
243
|
-
const g = c.activateKey, o = l.path;
|
|
244
|
-
return !!(g === o || g.startsWith(o + "/"));
|
|
245
|
-
}
|
|
246
|
-
function v(l) {
|
|
247
|
-
d("change", l);
|
|
248
|
-
}
|
|
249
|
-
function P() {
|
|
250
|
-
w(), m.value || I();
|
|
251
|
-
}
|
|
252
|
-
return ne(() => {
|
|
253
|
-
w(), window.addEventListener("resize", P);
|
|
254
|
-
}), oe(() => {
|
|
255
|
-
window.removeEventListener("resize", P);
|
|
256
|
-
}), (l, g) => (e(), n("div", Me, [m.value ? k("", !0) : (e(), n("div", Pe, [(e(!0), n(U, null, H(c.menus, (o, p) => (e(), n(U, {
|
|
257
|
-
key: p
|
|
258
|
-
}, [o.children && o.children.length > 0 ? (e(), n("div", Te, [s("div", {
|
|
259
|
-
class: L(["headerLink hasChildren", {
|
|
260
|
-
activate: _(o)
|
|
261
|
-
}])
|
|
262
|
-
}, [se(S(o.name) + " ", 1), y(h(E), {
|
|
263
|
-
icon: "mingcute:down-line",
|
|
264
|
-
class: "dropdown-arrow"
|
|
265
|
-
})], 2), s("div", xe, [s("div", Ae, [(e(!0), n(U, null, H(o.children, (i, A) => (e(), n("div", {
|
|
266
|
-
key: A,
|
|
267
|
-
class: L(["submenu-item", {
|
|
268
|
-
active: r(i)
|
|
269
|
-
}]),
|
|
270
|
-
onClick: (z) => f(i)
|
|
271
|
-
}, [i.icon ? (e(), n("div", Ue, [y(h(E), {
|
|
272
|
-
icon: i.icon
|
|
273
|
-
}, null, 8, ["icon"])])) : k("", !0), s("div", qe, [s("div", ze, S(i.name), 1), i.description ? (e(), n("div", He, S(i.description), 1)) : k("", !0)])], 10, Le))), 128))])])])) : (e(), n("div", {
|
|
274
|
-
key: 1,
|
|
275
|
-
class: L(["headerLink", {
|
|
276
|
-
activate: _(o)
|
|
277
|
-
}]),
|
|
278
|
-
onClick: (i) => v(o)
|
|
279
|
-
}, S(o.name), 11, Ke))], 64))), 128))])), m.value ? (e(), n("button", {
|
|
280
|
-
key: 1,
|
|
281
|
-
class: L(["mobile-menu-toggle", {
|
|
282
|
-
active: u.value
|
|
283
|
-
}]),
|
|
284
|
-
"aria-label": "切换菜单",
|
|
285
|
-
onClick: C
|
|
286
|
-
}, [...g[0] || (g[0] = [s("span", {
|
|
287
|
-
class: "hamburger-line"
|
|
288
|
-
}, null, -1), s("span", {
|
|
289
|
-
class: "hamburger-line"
|
|
290
|
-
}, null, -1), s("span", {
|
|
291
|
-
class: "hamburger-line"
|
|
292
|
-
}, null, -1)])], 2)) : k("", !0), u.value ? (e(), n("div", {
|
|
293
|
-
key: 2,
|
|
294
|
-
class: "mobile-menu-overlay",
|
|
295
|
-
onClick: I
|
|
296
|
-
})) : k("", !0), u.value ? (e(), n("div", Ee, [s("div", We, [(e(!0), n(U, null, H(c.menus, (o, p) => (e(), n(U, {
|
|
297
|
-
key: p
|
|
298
|
-
}, [o.children && o.children.length > 0 ? (e(), n("div", {
|
|
299
|
-
key: 0,
|
|
300
|
-
class: L(["mobile-menu-item has-children", {
|
|
301
|
-
activate: _(o),
|
|
302
|
-
expanded: b.value[p]
|
|
303
|
-
}])
|
|
304
|
-
}, [s("div", {
|
|
305
|
-
class: "mobile-menu-item-header",
|
|
306
|
-
onClick: (i) => x(p)
|
|
307
|
-
}, [s("span", null, S(o.name), 1), y(h(E), {
|
|
308
|
-
icon: b.value[p] ? "mingcute:up-line" : "mingcute:down-line",
|
|
309
|
-
class: "mobile-submenu-arrow"
|
|
310
|
-
}, null, 8, ["icon"])], 8, Be), b.value[p] ? (e(), n("div", Oe, [(e(!0), n(U, null, H(o.children, (i, A) => (e(), n("div", {
|
|
311
|
-
key: A,
|
|
312
|
-
class: L(["mobile-submenu-item", {
|
|
313
|
-
active: r(i)
|
|
314
|
-
}]),
|
|
315
|
-
onClick: (z) => M(i)
|
|
316
|
-
}, S(i.name), 11, Ve))), 128))])) : k("", !0)], 2)) : (e(), n("div", {
|
|
317
|
-
key: 1,
|
|
318
|
-
class: L(["mobile-menu-item", {
|
|
319
|
-
activate: _(o)
|
|
320
|
-
}]),
|
|
321
|
-
onClick: (i) => M(o)
|
|
322
|
-
}, S(o.name), 11, De))], 64))), 128))])])) : k("", !0)]));
|
|
323
|
-
}
|
|
324
|
-
}), Ge = /* @__PURE__ */ $(Re, [["__scopeId", "data-v-73bcb18b"]]), Ne = ["src"], Fe = /* @__PURE__ */ T({
|
|
325
|
-
__name: "Logo",
|
|
326
|
-
props: {
|
|
327
|
-
name: {
|
|
328
|
-
type: String,
|
|
329
|
-
required: !1,
|
|
330
|
-
default: () => "#2d2d2d"
|
|
331
|
-
},
|
|
332
|
-
icon: {
|
|
333
|
-
type: String,
|
|
334
|
-
required: !1,
|
|
335
|
-
default: () => ""
|
|
336
|
-
},
|
|
337
|
-
color: {
|
|
338
|
-
type: String,
|
|
339
|
-
required: !1,
|
|
340
|
-
default: () => "#2d2d2d"
|
|
341
|
-
},
|
|
342
|
-
fontSize: {
|
|
343
|
-
type: String,
|
|
344
|
-
required: !1,
|
|
345
|
-
default: () => "16px"
|
|
346
|
-
}
|
|
347
|
-
},
|
|
348
|
-
emits: ["to"],
|
|
349
|
-
setup(a, {
|
|
350
|
-
emit: t
|
|
351
|
-
}) {
|
|
352
|
-
const c = a, d = t;
|
|
353
|
-
function u() {
|
|
354
|
-
d("to");
|
|
355
|
-
}
|
|
356
|
-
return (m, b) => (e(), n("div", {
|
|
357
|
-
class: "Logo",
|
|
358
|
-
onClick: u
|
|
359
|
-
}, [a.icon ? (e(), n("img", {
|
|
360
|
-
key: 0,
|
|
361
|
-
class: "icon",
|
|
362
|
-
src: a.icon,
|
|
363
|
-
alt: "logo",
|
|
364
|
-
loading: "lazy",
|
|
365
|
-
decoding: "async"
|
|
366
|
-
}, null, 8, Ne)) : k("", !0), s("div", {
|
|
367
|
-
class: "text",
|
|
368
|
-
style: K({
|
|
369
|
-
color: c.color,
|
|
370
|
-
fontSize: c.fontSize
|
|
371
|
-
})
|
|
372
|
-
}, S(a.name), 5)]));
|
|
373
|
-
}
|
|
374
|
-
}), ee = /* @__PURE__ */ $(Fe, [["__scopeId", "data-v-694a3ecc"]]), je = {
|
|
375
|
-
class: "HeaderCom"
|
|
376
|
-
}, Je = {
|
|
377
|
-
class: "left"
|
|
378
|
-
}, Qe = {
|
|
379
|
-
class: "right"
|
|
380
|
-
}, Xe = /* @__PURE__ */ T({
|
|
381
|
-
__name: "Header",
|
|
382
|
-
props: {
|
|
383
|
-
menuType: {
|
|
384
|
-
default: "header"
|
|
385
|
-
},
|
|
386
|
-
showUserPanel: {
|
|
387
|
-
type: Boolean,
|
|
388
|
-
default: !0
|
|
389
|
-
}
|
|
390
|
-
},
|
|
391
|
-
setup(a) {
|
|
392
|
-
const t = a, {
|
|
393
|
-
show: c
|
|
394
|
-
} = G(), {
|
|
395
|
-
isLoggedIn: d
|
|
396
|
-
} = R(), {
|
|
397
|
-
appsData: u
|
|
398
|
-
} = N(), {
|
|
399
|
-
menus: m,
|
|
400
|
-
hasPermission: b
|
|
401
|
-
} = F(t.menuType), w = q(""), C = X(), I = Y();
|
|
402
|
-
function f(r) {
|
|
403
|
-
return r.split("?")[0].split("#")[0];
|
|
404
|
-
}
|
|
405
|
-
function M(r, v) {
|
|
406
|
-
const P = f(v);
|
|
407
|
-
function l(o, p) {
|
|
408
|
-
for (const i of o) {
|
|
409
|
-
if (f(i.path) === p)
|
|
410
|
-
return i.path;
|
|
411
|
-
if (i.children && i.children.length > 0) {
|
|
412
|
-
const z = l(i.children, p);
|
|
413
|
-
if (z)
|
|
414
|
-
return z;
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
return null;
|
|
418
|
-
}
|
|
419
|
-
const g = l(r, P);
|
|
420
|
-
if (g)
|
|
421
|
-
return g;
|
|
422
|
-
for (const o of r) {
|
|
423
|
-
const p = f(o.path);
|
|
424
|
-
if (P.startsWith(p + "/") || P === p) {
|
|
425
|
-
if (o.children && o.children.length > 0)
|
|
426
|
-
for (const i of o.children) {
|
|
427
|
-
const A = f(i.path);
|
|
428
|
-
if (P.startsWith(A + "/") || P === A)
|
|
429
|
-
return o.path;
|
|
430
|
-
}
|
|
431
|
-
return o.path;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
return j(I.matched, t.menuType, P);
|
|
435
|
-
}
|
|
436
|
-
function x() {
|
|
437
|
-
B(() => {
|
|
438
|
-
C.push({
|
|
439
|
-
path: "/"
|
|
440
|
-
}), window.scrollTo({
|
|
441
|
-
top: 0,
|
|
442
|
-
behavior: "smooth"
|
|
443
|
-
});
|
|
444
|
-
});
|
|
445
|
-
}
|
|
446
|
-
function _(r) {
|
|
447
|
-
const v = r.path;
|
|
448
|
-
if (!b(v)) {
|
|
449
|
-
d.value || (c.value = !0);
|
|
450
|
-
return;
|
|
451
|
-
}
|
|
452
|
-
B(() => {
|
|
453
|
-
C.push(v), w.value = v, window.scrollTo({
|
|
454
|
-
top: 0,
|
|
455
|
-
behavior: "smooth"
|
|
456
|
-
});
|
|
457
|
-
});
|
|
458
|
-
}
|
|
459
|
-
return V(() => [I.path, m.value], () => {
|
|
460
|
-
w.value = M(m.value, I.path);
|
|
461
|
-
}, {
|
|
462
|
-
immediate: !0,
|
|
463
|
-
deep: !0
|
|
464
|
-
}), (r, v) => (e(), n("div", je, [s("div", Je, [y(ee, {
|
|
465
|
-
icon: h(u).applicationLogoUrl,
|
|
466
|
-
name: h(u).name,
|
|
467
|
-
onTo: x
|
|
468
|
-
}, null, 8, ["icon", "name"])]), s("div", Qe, [y(Ge, {
|
|
469
|
-
menus: h(m),
|
|
470
|
-
activateKey: w.value,
|
|
471
|
-
onChange: _
|
|
472
|
-
}, null, 8, ["menus", "activateKey"]), t.showUserPanel ? (e(), ae(Z, {
|
|
473
|
-
key: 0,
|
|
474
|
-
onToHomePage: x,
|
|
475
|
-
onSignOut: x
|
|
476
|
-
})) : k("", !0)])]));
|
|
477
|
-
}
|
|
478
|
-
}), Ye = /* @__PURE__ */ $(Xe, [["__scopeId", "data-v-b34685b5"]]), Ze = {
|
|
479
|
-
class: "body"
|
|
480
|
-
}, et = {
|
|
481
|
-
key: 0,
|
|
482
|
-
class: "loading"
|
|
483
|
-
}, tt = "linear-gradient(to bottom, #fefdff, #f9f6fe, #f2eefd, #ebe8fd, #e2e1fd, #dfe0fd, #dcdffd, #d9defd, #dde2fd, #e0e5fd, #e4e9fd, #e8ecfd)", nt = /* @__PURE__ */ T({
|
|
484
|
-
__name: "DefaultLayout",
|
|
485
|
-
props: {
|
|
486
|
-
menuType: {
|
|
487
|
-
default: "header"
|
|
488
|
-
},
|
|
489
|
-
showUserPanel: {
|
|
490
|
-
type: Boolean,
|
|
491
|
-
default: !0
|
|
492
|
-
},
|
|
493
|
-
backgroundImage: {
|
|
494
|
-
default: ""
|
|
495
|
-
}
|
|
496
|
-
},
|
|
497
|
-
setup(a) {
|
|
498
|
-
const t = a, {
|
|
499
|
-
setGlobalSEO: c
|
|
500
|
-
} = re();
|
|
501
|
-
c(ie);
|
|
502
|
-
const {
|
|
503
|
-
isChecking: d
|
|
504
|
-
} = J();
|
|
505
|
-
return Q(), (u, m) => (e(), n("div", {
|
|
506
|
-
class: "layout",
|
|
507
|
-
style: K({
|
|
508
|
-
backgroundImage: t.backgroundImage || tt,
|
|
509
|
-
backgroundAttachment: "fixed"
|
|
510
|
-
})
|
|
511
|
-
}, [y(Ye, {
|
|
512
|
-
"menu-type": t.menuType,
|
|
513
|
-
"show-user-panel": t.showUserPanel
|
|
514
|
-
}, null, 8, ["menu-type", "show-user-panel"]), s("div", Ze, [h(d) ? (e(), n("div", et, [y(h(D), {
|
|
515
|
-
size: 40
|
|
516
|
-
})])) : O(u.$slots, "default", {
|
|
517
|
-
key: 1
|
|
518
|
-
}, void 0, !0)])], 4));
|
|
519
|
-
}
|
|
520
|
-
}), Ht = /* @__PURE__ */ $(nt, [["__scopeId", "data-v-690c2133"]]), ot = /* @__PURE__ */ T({
|
|
521
|
-
__name: "Gradientbackground",
|
|
522
|
-
props: {
|
|
523
|
-
width: {
|
|
524
|
-
type: String,
|
|
525
|
-
default: "100%"
|
|
526
|
-
},
|
|
527
|
-
height: {
|
|
528
|
-
type: String,
|
|
529
|
-
default: "100%"
|
|
530
|
-
},
|
|
531
|
-
zIndex: {
|
|
532
|
-
type: String,
|
|
533
|
-
default: "-1"
|
|
534
|
-
},
|
|
535
|
-
top: {
|
|
536
|
-
type: String,
|
|
537
|
-
default: "10%"
|
|
538
|
-
},
|
|
539
|
-
left: {
|
|
540
|
-
type: String,
|
|
541
|
-
default: "0%"
|
|
542
|
-
},
|
|
543
|
-
right: {
|
|
544
|
-
type: String,
|
|
545
|
-
default: "auto"
|
|
546
|
-
},
|
|
547
|
-
blur: {
|
|
548
|
-
type: String,
|
|
549
|
-
default: "0px"
|
|
550
|
-
},
|
|
551
|
-
background: {
|
|
552
|
-
type: String,
|
|
553
|
-
required: !1,
|
|
554
|
-
default: () => "linear-gradient(180deg, rgb(0 225 10 / 10%) 0.31%, rgb(26 214 255 / 52%) 74.99%, rgb(220 189 0 / 0%) 99.69%)"
|
|
555
|
-
}
|
|
556
|
-
},
|
|
557
|
-
setup(a) {
|
|
558
|
-
const t = a, c = W(() => ({
|
|
559
|
-
pointerEvents: "none",
|
|
560
|
-
position: "absolute",
|
|
561
|
-
zIndex: t.zIndex,
|
|
562
|
-
width: t.width,
|
|
563
|
-
height: t.height,
|
|
564
|
-
filter: `blur(${t.blur})`
|
|
565
|
-
})), d = W(() => ({
|
|
566
|
-
width: "100%",
|
|
567
|
-
height: "100%",
|
|
568
|
-
background: t.background
|
|
569
|
-
// background: `linear-gradient(180deg, #D5D1FF 0.31%, #EAEDFF 74.99%, rgba(240, 246, 255, 0) 99.69%)`,
|
|
570
|
-
// background: `linear-gradient(180deg, rgb(0 225 10 / 63%) 0.31%, rgb(26 214 255 / 52%) 74.99%, rgb(220 189 0 / 0%) 99.69%)`,
|
|
571
|
-
// background: `linear-gradient(315deg, rgb(0 225 10 / 63%) 10%, rgb(26 214 255 / 52%) 50%, rgb(220 189 0 / 37%) 100%)`,
|
|
572
|
-
}));
|
|
573
|
-
return (u, m) => (e(), n("div", {
|
|
574
|
-
class: "ellipsis",
|
|
575
|
-
style: K(c.value)
|
|
576
|
-
}, [s("div", {
|
|
577
|
-
class: "ellipsis-item",
|
|
578
|
-
style: K(d.value)
|
|
579
|
-
}, null, 4)], 4));
|
|
580
|
-
}
|
|
581
|
-
}), Kt = /* @__PURE__ */ $(ot, [["__scopeId", "data-v-b6461ac4"]]), st = {
|
|
582
|
-
class: "SvgIcon"
|
|
583
|
-
}, at = ["href", "fill"], it = /* @__PURE__ */ T({
|
|
584
|
-
__name: "SvgIcon",
|
|
585
|
-
props: {
|
|
586
|
-
prefix: {
|
|
587
|
-
type: String,
|
|
588
|
-
required: !1,
|
|
589
|
-
default: "icon"
|
|
590
|
-
},
|
|
591
|
-
name: {
|
|
592
|
-
type: String,
|
|
593
|
-
required: !0
|
|
594
|
-
},
|
|
595
|
-
color: {
|
|
596
|
-
type: String,
|
|
597
|
-
required: !1,
|
|
598
|
-
default: "#333"
|
|
599
|
-
}
|
|
600
|
-
},
|
|
601
|
-
setup(a) {
|
|
602
|
-
const t = a, c = W(() => `#${t.prefix ?? "icon"}-${t.name}`);
|
|
603
|
-
return (d, u) => (e(), n("svg", st, [s("use", {
|
|
604
|
-
href: c.value,
|
|
605
|
-
fill: t.color
|
|
606
|
-
}, null, 8, at)]));
|
|
607
|
-
}
|
|
608
|
-
}), Et = /* @__PURE__ */ $(it, [["__scopeId", "data-v-0a9de94e"]]), rt = {}, ct = {
|
|
609
|
-
class: "WidthContainer"
|
|
610
|
-
};
|
|
611
|
-
function ut(a, t) {
|
|
612
|
-
return e(), n("div", ct, [O(a.$slots, "default", {}, void 0, !0)]);
|
|
613
|
-
}
|
|
614
|
-
const Wt = /* @__PURE__ */ $(rt, [["render", ut], ["__scopeId", "data-v-d06aac1f"]]);
|
|
615
|
-
export {
|
|
616
|
-
qt as A,
|
|
617
|
-
zt as C,
|
|
618
|
-
Ht as D,
|
|
619
|
-
Kt as G,
|
|
620
|
-
Ye as H,
|
|
621
|
-
ee as L,
|
|
622
|
-
Et as S,
|
|
623
|
-
Wt as W,
|
|
624
|
-
fe as a,
|
|
625
|
-
Ge as b
|
|
626
|
-
};
|