@huyooo/ui 0.10.4 → 0.10.7
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/AuthkitSignInPhone-BWPCpUie.js +3034 -0
- package/dist/{Clipboard-CMm8I4Rb.js → Clipboard-CK_nROjb.js} +1 -1
- package/dist/CollapseItem-DUzZA6tx.js +124 -0
- package/dist/{Contact-Dgn8_it4.js → Contact-CpHU1bJ7.js} +2 -2
- package/dist/{CustomTable-CVZ4mFzi.js → CustomTable-1W5byjgJ.js} +3 -2
- package/dist/FeedbackModal-qAJLL3V3.js +1535 -0
- package/dist/{LandingPageSectionTabs-Dv_xOLqR.js → LandingPageSectionTabs-B6ZVxR47.js} +1 -1
- package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-D109kT8_.js +1282 -0
- package/dist/{PaySubscriptions-W6GJ28uE.js → PaySubscriptions-C4Een__-.js} +17 -16
- package/dist/{ReferrerReferees-C5Sjn7aD.js → ReferrerReferees-DIassvGO.js} +8 -8
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-C4-In_x4.js → Upload.vue_vue_type_script_setup_true_lang-DA8VZBrl.js} +1 -1
- package/dist/UserAccountMenu-BIRTtjLb.js +266 -0
- package/dist/UserSubscriptionBaseInformation-BUs3qiHd.js +60 -0
- package/dist/WidthContainer-TXsvW1ut.js +673 -0
- package/dist/{apiClients-DJchWBAG.js → apiClients-ANEApCyY.js} +84 -75
- package/dist/authkit.d.ts +5 -6
- package/dist/authkit.js +43 -43
- package/dist/common.js +3 -3
- package/dist/components/Authkit/Auth/AuthkitServiceAgreementAndPrivacyProtection.vue.d.ts +5 -5
- package/dist/components/Authkit/AuthkitAuthModal.vue.d.ts +13 -31
- package/dist/components/Feedback/FeedbackBubbleEnd.vue.d.ts +1 -1
- package/dist/components/Feedback/FeedbackBubbleStart.vue.d.ts +1 -1
- package/dist/components/User/UserButton.vue.d.ts +1 -36
- package/dist/components/User/UserPanel.vue.d.ts +26 -201
- package/dist/components/User/UserPanelItem.vue.d.ts +38 -0
- package/dist/composables/Authkit/useAuthkitAuth.d.ts +34 -10
- package/dist/composables/Authkit/useAuthkitAuthModal.d.ts +22 -3
- package/dist/composables/Authkit/useLegalLinks.d.ts +34 -0
- package/dist/composables/Authkit/useOauth.d.ts +0 -1
- package/dist/composables.d.ts +3 -2
- package/dist/composables.js +27 -25
- package/dist/{useUploadCos-BO3W_uqs.js → cos-js-sdk-v5-BJ5AlBRu.js} +2232 -2469
- package/dist/feedback.js +15 -16
- package/dist/landingPage.js +1 -1
- package/dist/main.js +177 -177
- package/dist/message.js +9 -10
- 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-C3EHOtlk.js → useAuthkitAppsAuthPageInfo-Da2yJTT-.js} +1 -1
- package/dist/{useAuthkitCreateAndUpdate-CPkogY7K.js → useAuthkitCreateAndUpdate-BLs5vQOu.js} +1 -1
- package/dist/useAuthkitUsersProfile-Cx8NXjlt.js +186 -0
- package/dist/{useDownloads-COXmopbe.js → useDownloads-DT5W2af6.js} +1 -1
- package/dist/useLegalLinks-BIF45kUt.js +60 -0
- package/dist/{useMessageNotifications-SIM85vdb.js → useMessageNotifications-CavBmgO7.js} +1 -1
- package/dist/{useSEO-DeAU9YEc.js → useSEO-MPXQf0dn.js} +2 -2
- package/dist/{useTableHandle-CWu0LbeI.js → useTableHandle--NSbZ-57.js} +1 -1
- package/dist/useUploadCos-D6y0INvP.js +242 -0
- package/dist/user.d.ts +1 -0
- package/dist/user.js +9 -7
- package/dist/utils/legalLinks.d.ts +22 -0
- package/package.json +1 -1
- package/dist/AuthkitAuthModal-De0eEWOC.js +0 -2112
- package/dist/AuthkitSignInPhone-DEUVn3Rq.js +0 -920
- package/dist/CollapseItem-BAuejDBZ.js +0 -57
- package/dist/FeedbackItem-CRiLkWMh.js +0 -495
- package/dist/FeedbackModal-B8WLPCy_.js +0 -1053
- package/dist/MessageHandle-DpIUeQ7U.js +0 -1147
- package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BbtfWRUD.js +0 -142
- package/dist/UserAccountMenu-OdwonGFa.js +0 -633
- package/dist/WidthContainer-Cpdc67hQ.js +0 -652
- package/dist/index-CUfrjRxu.js +0 -73
- package/dist/useAuthkitUsersProfile-BqW74gfs.js +0 -172
|
@@ -0,0 +1,673 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { defineComponent as x, ref as A, watch as W, openBlock as t, createElementBlock as n, createElementVNode as o, createVNode as g, unref as f, withCtx as z, renderSlot as G, toDisplayString as T, createCommentVNode as S, onMounted as q, onUnmounted as se, normalizeClass as I, Fragment as L, renderList as H, createTextVNode as O, createBlock as ae, computed as U, onBeforeUnmount as re, normalizeStyle as R } from "vue";
|
|
4
|
+
import { Spin as j } from "@arco-design/web-vue";
|
|
5
|
+
import { u as ie, a as ue } from "./useAuthkitUsersProfile-Cx8NXjlt.js";
|
|
6
|
+
import { d as le, b as ce, a as de } from "./apiClients-ANEApCyY.js";
|
|
7
|
+
import { u as E } from "./useAuthkitAppsAuthPageInfo-Da2yJTT-.js";
|
|
8
|
+
import { b as F, f as J, w as V, a as Q, c as X, d as Y, e as pe } from "./useSEO-MPXQf0dn.js";
|
|
9
|
+
import "./cos-js-sdk-v5-BJ5AlBRu.js";
|
|
10
|
+
import { useRouter as Z, useRoute as ee } from "vue-router";
|
|
11
|
+
/* empty css */
|
|
12
|
+
/* empty css */
|
|
13
|
+
import { U as he, d as te, e as N } from "./UserAccountMenu-BIRTtjLb.js";
|
|
14
|
+
/* empty css */
|
|
15
|
+
/* empty css */
|
|
16
|
+
/* empty css */
|
|
17
|
+
import { Icon as D } from "@iconify/vue";
|
|
18
|
+
import { M as me } from "./Menu-Cy2ZPeaz.js";
|
|
19
|
+
import "./CollapseItem-DUzZA6tx.js";
|
|
20
|
+
/* empty css */
|
|
21
|
+
/* empty css */
|
|
22
|
+
import "./CustomTable-1W5byjgJ.js";
|
|
23
|
+
import "./index-D56hUMeD.js";
|
|
24
|
+
import { L as ne } from "./Logo-D7fyXyB-.js";
|
|
25
|
+
import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
26
|
+
const fe = {
|
|
27
|
+
class: "SidebarCom"
|
|
28
|
+
}, ve = {
|
|
29
|
+
class: "LogoContent"
|
|
30
|
+
}, _e = {
|
|
31
|
+
class: "MenuContent"
|
|
32
|
+
}, ge = {
|
|
33
|
+
class: "sidebar-footer"
|
|
34
|
+
}, ye = /* @__PURE__ */ x({
|
|
35
|
+
__name: "AppSidebar",
|
|
36
|
+
props: {
|
|
37
|
+
menuType: {
|
|
38
|
+
default: "system"
|
|
39
|
+
},
|
|
40
|
+
showUserPanel: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: !0
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
setup(l) {
|
|
46
|
+
const e = l, {
|
|
47
|
+
appsData: i
|
|
48
|
+
} = E(), {
|
|
49
|
+
menus: c
|
|
50
|
+
} = F(e.menuType), h = Z(), m = A(!1);
|
|
51
|
+
function v() {
|
|
52
|
+
h.push({
|
|
53
|
+
path: "/"
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
const y = ee(), _ = A([""]);
|
|
57
|
+
function k(C) {
|
|
58
|
+
const u = C.path;
|
|
59
|
+
V(() => {
|
|
60
|
+
h.push({
|
|
61
|
+
path: u,
|
|
62
|
+
query: y.query
|
|
63
|
+
}), _.value = [u], window.scrollTo({
|
|
64
|
+
top: 0,
|
|
65
|
+
behavior: "smooth"
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return W(() => [y.path, c.value], () => {
|
|
70
|
+
const C = J(c.value, y.path, {
|
|
71
|
+
// Sidebar 中,子路由应该选中子菜单项
|
|
72
|
+
returnParentOnChildMatch: !1,
|
|
73
|
+
// 后备查找函数
|
|
74
|
+
fallback: (u) => Q(y.matched, e.menuType, u)
|
|
75
|
+
});
|
|
76
|
+
C && (_.value = [C]);
|
|
77
|
+
}, {
|
|
78
|
+
immediate: !0,
|
|
79
|
+
deep: !0
|
|
80
|
+
}), (C, u) => (t(), n("div", fe, [o("div", ve, [g(f(ne), {
|
|
81
|
+
icon: f(i).applicationLogoUrl,
|
|
82
|
+
name: f(i).name,
|
|
83
|
+
onTo: v
|
|
84
|
+
}, null, 8, ["icon", "name"])]), o("div", _e, [g(me, {
|
|
85
|
+
"selected-keys": _.value,
|
|
86
|
+
"onUpdate:selectedKeys": u[0] || (u[0] = (M) => _.value = M),
|
|
87
|
+
menus: f(c),
|
|
88
|
+
onChange: k
|
|
89
|
+
}, null, 8, ["selected-keys", "menus"])]), o("div", ge, [g(f(he), {
|
|
90
|
+
onArrowClick: u[2] || (u[2] = (M) => m.value = !m.value)
|
|
91
|
+
}, {
|
|
92
|
+
avatar: z(() => [g(f(te), {
|
|
93
|
+
modelValue: m.value,
|
|
94
|
+
"onUpdate:modelValue": u[1] || (u[1] = (M) => m.value = M),
|
|
95
|
+
position: "tr",
|
|
96
|
+
"dropdown-offset-y": "30px",
|
|
97
|
+
"dropdown-offset-x": "230px"
|
|
98
|
+
}, null, 8, ["modelValue"])]),
|
|
99
|
+
_: 1
|
|
100
|
+
})])]));
|
|
101
|
+
}
|
|
102
|
+
}), ke = /* @__PURE__ */ P(ye, [["__scopeId", "data-v-2b8dc4d0"]]), be = {
|
|
103
|
+
class: "layout"
|
|
104
|
+
}, we = {
|
|
105
|
+
class: "leftContent"
|
|
106
|
+
}, Ce = {
|
|
107
|
+
class: "content"
|
|
108
|
+
}, $e = {
|
|
109
|
+
class: "contentCenter"
|
|
110
|
+
}, Me = {
|
|
111
|
+
class: "pages"
|
|
112
|
+
}, Se = {
|
|
113
|
+
key: 0,
|
|
114
|
+
class: "loading"
|
|
115
|
+
}, Ie = /* @__PURE__ */ x({
|
|
116
|
+
__name: "AppLayout",
|
|
117
|
+
props: {
|
|
118
|
+
menuType: {
|
|
119
|
+
default: "system"
|
|
120
|
+
},
|
|
121
|
+
showUserPanel: {
|
|
122
|
+
type: Boolean,
|
|
123
|
+
default: !0
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
setup(l) {
|
|
127
|
+
const e = l, {
|
|
128
|
+
isChecking: i
|
|
129
|
+
} = X();
|
|
130
|
+
return Y(), (c, h) => (t(), n("div", be, [o("div", we, [g(ke, {
|
|
131
|
+
"menu-type": e.menuType,
|
|
132
|
+
"show-user-panel": e.showUserPanel
|
|
133
|
+
}, null, 8, ["menu-type", "show-user-panel"])]), o("div", Ce, [o("div", $e, [o("div", Me, [f(i) ? (t(), n("div", Se, [g(f(j), {
|
|
134
|
+
size: 40
|
|
135
|
+
})])) : G(c.$slots, "default", {
|
|
136
|
+
key: 1
|
|
137
|
+
}, void 0, !0)])])])]));
|
|
138
|
+
}
|
|
139
|
+
}), Vt = /* @__PURE__ */ P(Ie, [["__scopeId", "data-v-0eed4f11"]]), Te = {
|
|
140
|
+
class: "ContentHead"
|
|
141
|
+
}, Pe = {
|
|
142
|
+
class: "title"
|
|
143
|
+
}, Ae = {
|
|
144
|
+
key: 0,
|
|
145
|
+
class: "description"
|
|
146
|
+
}, xe = /* @__PURE__ */ x({
|
|
147
|
+
__name: "ContentHead",
|
|
148
|
+
props: {
|
|
149
|
+
title: {
|
|
150
|
+
type: String,
|
|
151
|
+
required: !0,
|
|
152
|
+
default: () => ""
|
|
153
|
+
},
|
|
154
|
+
description: {
|
|
155
|
+
type: String,
|
|
156
|
+
required: !0,
|
|
157
|
+
default: () => ""
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
setup(l) {
|
|
161
|
+
const e = l;
|
|
162
|
+
return (i, c) => (t(), n("div", Te, [o("h1", Pe, T(e.title), 1), e.description ? (t(), n("p", Ae, T(e.description), 1)) : S("", !0)]));
|
|
163
|
+
}
|
|
164
|
+
}), Wt = /* @__PURE__ */ P(xe, [["__scopeId", "data-v-209a7bef"]]), Le = {
|
|
165
|
+
key: 0,
|
|
166
|
+
class: "desktop-menus"
|
|
167
|
+
}, Ue = {
|
|
168
|
+
key: 0,
|
|
169
|
+
class: "header-menu-item"
|
|
170
|
+
}, Be = {
|
|
171
|
+
class: "submenu-popup"
|
|
172
|
+
}, He = {
|
|
173
|
+
class: "submenu-content"
|
|
174
|
+
}, ze = ["onClick"], Ee = {
|
|
175
|
+
key: 0,
|
|
176
|
+
class: "submenu-item-icon"
|
|
177
|
+
}, Ke = {
|
|
178
|
+
class: "submenu-item-content"
|
|
179
|
+
}, De = {
|
|
180
|
+
class: "submenu-item-title"
|
|
181
|
+
}, Oe = {
|
|
182
|
+
key: 0,
|
|
183
|
+
class: "submenu-item-description"
|
|
184
|
+
}, Re = ["onClick"], Ve = {
|
|
185
|
+
key: 3,
|
|
186
|
+
class: "mobile-menu"
|
|
187
|
+
}, We = {
|
|
188
|
+
class: "mobile-menu-content"
|
|
189
|
+
}, Ge = ["onClick"], Ne = {
|
|
190
|
+
key: 0,
|
|
191
|
+
class: "mobile-submenu"
|
|
192
|
+
}, qe = ["onClick"], je = ["onClick"], Fe = /* @__PURE__ */ x({
|
|
193
|
+
__name: "HeaderMenus",
|
|
194
|
+
props: {
|
|
195
|
+
menus: {
|
|
196
|
+
type: Array,
|
|
197
|
+
required: !0
|
|
198
|
+
},
|
|
199
|
+
activateKey: {
|
|
200
|
+
type: String,
|
|
201
|
+
required: !0
|
|
202
|
+
},
|
|
203
|
+
theme: {
|
|
204
|
+
type: String,
|
|
205
|
+
default: "light"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
emits: ["change"],
|
|
209
|
+
setup(l, {
|
|
210
|
+
emit: e
|
|
211
|
+
}) {
|
|
212
|
+
const i = l, c = e, h = A(!1), m = A(!1), v = A({});
|
|
213
|
+
function y() {
|
|
214
|
+
m.value = window.innerWidth <= 1024;
|
|
215
|
+
}
|
|
216
|
+
function _() {
|
|
217
|
+
h.value = !h.value;
|
|
218
|
+
}
|
|
219
|
+
function k() {
|
|
220
|
+
h.value = !1;
|
|
221
|
+
}
|
|
222
|
+
function C(r) {
|
|
223
|
+
c("change", r);
|
|
224
|
+
}
|
|
225
|
+
function u(r) {
|
|
226
|
+
c("change", r), k();
|
|
227
|
+
}
|
|
228
|
+
function M(r) {
|
|
229
|
+
v.value[r] = !v.value[r];
|
|
230
|
+
}
|
|
231
|
+
function $(r) {
|
|
232
|
+
const p = i.activateKey, a = r.path;
|
|
233
|
+
if (p === a || p.startsWith(a + "/"))
|
|
234
|
+
return !0;
|
|
235
|
+
if (r.children && r.children.length > 0) {
|
|
236
|
+
for (const w of r.children)
|
|
237
|
+
if (p === w.path || p.startsWith(w.path + "/"))
|
|
238
|
+
return !0;
|
|
239
|
+
}
|
|
240
|
+
return !1;
|
|
241
|
+
}
|
|
242
|
+
function d(r) {
|
|
243
|
+
const p = i.activateKey, a = r.path;
|
|
244
|
+
return !!(p === a || p.startsWith(a + "/"));
|
|
245
|
+
}
|
|
246
|
+
function B(r) {
|
|
247
|
+
c("change", r);
|
|
248
|
+
}
|
|
249
|
+
function s() {
|
|
250
|
+
y(), m.value || k();
|
|
251
|
+
}
|
|
252
|
+
return q(() => {
|
|
253
|
+
y(), window.addEventListener("resize", s);
|
|
254
|
+
}), se(() => {
|
|
255
|
+
window.removeEventListener("resize", s);
|
|
256
|
+
}), (r, p) => (t(), n("div", {
|
|
257
|
+
class: I(["HeaderMenus", {
|
|
258
|
+
"HeaderMenus--dark": i.theme === "dark"
|
|
259
|
+
}])
|
|
260
|
+
}, [m.value ? S("", !0) : (t(), n("div", Le, [(t(!0), n(L, null, H(i.menus, (a, w) => (t(), n(L, {
|
|
261
|
+
key: w
|
|
262
|
+
}, [a.children && a.children.length > 0 ? (t(), n("div", Ue, [o("div", {
|
|
263
|
+
class: I(["headerLink hasChildren", {
|
|
264
|
+
activate: $(a)
|
|
265
|
+
}])
|
|
266
|
+
}, [O(T(a.name) + " ", 1), g(f(D), {
|
|
267
|
+
icon: "mingcute:down-line",
|
|
268
|
+
class: "dropdown-arrow"
|
|
269
|
+
})], 2), o("div", Be, [o("div", He, [(t(!0), n(L, null, H(a.children, (b, K) => (t(), n("div", {
|
|
270
|
+
key: K,
|
|
271
|
+
class: I(["submenu-item", {
|
|
272
|
+
active: d(b)
|
|
273
|
+
}]),
|
|
274
|
+
onClick: (oe) => C(b)
|
|
275
|
+
}, [b.icon ? (t(), n("div", Ee, [g(f(D), {
|
|
276
|
+
icon: b.icon
|
|
277
|
+
}, null, 8, ["icon"])])) : S("", !0), o("div", Ke, [o("div", De, T(b.name), 1), b.description ? (t(), n("div", Oe, T(b.description), 1)) : S("", !0)])], 10, ze))), 128))])])])) : (t(), n("div", {
|
|
278
|
+
key: 1,
|
|
279
|
+
class: I(["headerLink", {
|
|
280
|
+
activate: $(a)
|
|
281
|
+
}]),
|
|
282
|
+
onClick: (b) => B(a)
|
|
283
|
+
}, T(a.name), 11, Re))], 64))), 128))])), m.value ? (t(), n("button", {
|
|
284
|
+
key: 1,
|
|
285
|
+
class: I(["mobile-menu-toggle", {
|
|
286
|
+
active: h.value
|
|
287
|
+
}]),
|
|
288
|
+
"aria-label": "切换菜单",
|
|
289
|
+
onClick: _
|
|
290
|
+
}, [...p[0] || (p[0] = [o("span", {
|
|
291
|
+
class: "hamburger-line"
|
|
292
|
+
}, null, -1), o("span", {
|
|
293
|
+
class: "hamburger-line"
|
|
294
|
+
}, null, -1), o("span", {
|
|
295
|
+
class: "hamburger-line"
|
|
296
|
+
}, null, -1)])], 2)) : S("", !0), h.value ? (t(), n("div", {
|
|
297
|
+
key: 2,
|
|
298
|
+
class: "mobile-menu-overlay",
|
|
299
|
+
onClick: k
|
|
300
|
+
})) : S("", !0), h.value ? (t(), n("div", Ve, [o("div", We, [(t(!0), n(L, null, H(i.menus, (a, w) => (t(), n(L, {
|
|
301
|
+
key: w
|
|
302
|
+
}, [a.children && a.children.length > 0 ? (t(), n("div", {
|
|
303
|
+
key: 0,
|
|
304
|
+
class: I(["mobile-menu-item has-children", {
|
|
305
|
+
activate: $(a),
|
|
306
|
+
expanded: v.value[w]
|
|
307
|
+
}])
|
|
308
|
+
}, [o("div", {
|
|
309
|
+
class: "mobile-menu-item-header",
|
|
310
|
+
onClick: (b) => M(w)
|
|
311
|
+
}, [o("span", null, T(a.name), 1), g(f(D), {
|
|
312
|
+
icon: v.value[w] ? "mingcute:up-line" : "mingcute:down-line",
|
|
313
|
+
class: "mobile-submenu-arrow"
|
|
314
|
+
}, null, 8, ["icon"])], 8, Ge), v.value[w] ? (t(), n("div", Ne, [(t(!0), n(L, null, H(a.children, (b, K) => (t(), n("div", {
|
|
315
|
+
key: K,
|
|
316
|
+
class: I(["mobile-submenu-item", {
|
|
317
|
+
active: d(b)
|
|
318
|
+
}]),
|
|
319
|
+
onClick: (oe) => u(b)
|
|
320
|
+
}, T(b.name), 11, qe))), 128))])) : S("", !0)], 2)) : (t(), n("div", {
|
|
321
|
+
key: 1,
|
|
322
|
+
class: I(["mobile-menu-item", {
|
|
323
|
+
activate: $(a)
|
|
324
|
+
}]),
|
|
325
|
+
onClick: (b) => u(a)
|
|
326
|
+
}, T(a.name), 11, je))], 64))), 128))])])) : S("", !0)], 2));
|
|
327
|
+
}
|
|
328
|
+
}), Je = /* @__PURE__ */ P(Fe, [["__scopeId", "data-v-42f528ac"]]), Qe = {
|
|
329
|
+
class: "HeaderCom"
|
|
330
|
+
}, Xe = {
|
|
331
|
+
class: "HeaderCom-inner"
|
|
332
|
+
}, Ye = {
|
|
333
|
+
class: "left"
|
|
334
|
+
}, Ze = {
|
|
335
|
+
class: "right"
|
|
336
|
+
}, et = ["aria-label"], tt = {
|
|
337
|
+
key: 0,
|
|
338
|
+
class: "theme-icon",
|
|
339
|
+
"aria-hidden": "true"
|
|
340
|
+
}, nt = {
|
|
341
|
+
key: 1,
|
|
342
|
+
class: "theme-icon",
|
|
343
|
+
"aria-hidden": "true"
|
|
344
|
+
}, ot = /* @__PURE__ */ x({
|
|
345
|
+
__name: "Header",
|
|
346
|
+
props: {
|
|
347
|
+
menuType: {
|
|
348
|
+
default: "header"
|
|
349
|
+
},
|
|
350
|
+
showUserPanel: {
|
|
351
|
+
type: Boolean,
|
|
352
|
+
default: !0
|
|
353
|
+
},
|
|
354
|
+
showThemeToggle: {
|
|
355
|
+
type: Boolean,
|
|
356
|
+
default: !0
|
|
357
|
+
},
|
|
358
|
+
theme: {
|
|
359
|
+
default: "light"
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
setup(l) {
|
|
363
|
+
const e = l, {
|
|
364
|
+
appsData: i
|
|
365
|
+
} = E(), {
|
|
366
|
+
clearAuth: c
|
|
367
|
+
} = ie(), {
|
|
368
|
+
clearUserProfile: h
|
|
369
|
+
} = ue(), {
|
|
370
|
+
menus: m
|
|
371
|
+
} = F(e.menuType), v = A(""), y = Z(), _ = ee();
|
|
372
|
+
function k() {
|
|
373
|
+
V(() => {
|
|
374
|
+
y.push({
|
|
375
|
+
path: "/"
|
|
376
|
+
}), window.scrollTo({
|
|
377
|
+
top: 0,
|
|
378
|
+
behavior: "smooth"
|
|
379
|
+
});
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
function C() {
|
|
383
|
+
h(), c(), k();
|
|
384
|
+
}
|
|
385
|
+
function u($) {
|
|
386
|
+
const d = $.path;
|
|
387
|
+
V(() => {
|
|
388
|
+
y.push(d), v.value = d, window.scrollTo({
|
|
389
|
+
top: 0,
|
|
390
|
+
behavior: "smooth"
|
|
391
|
+
});
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
function M() {
|
|
395
|
+
le(e.theme === "dark" ? "light" : "dark");
|
|
396
|
+
}
|
|
397
|
+
return W(() => [_.path, m.value], () => {
|
|
398
|
+
v.value = J(m.value, _.path, {
|
|
399
|
+
// Header 中,子菜单匹配时返回父菜单路径
|
|
400
|
+
returnParentOnChildMatch: !0,
|
|
401
|
+
// 后备查找函数
|
|
402
|
+
fallback: ($) => Q(_.matched, e.menuType, $)
|
|
403
|
+
});
|
|
404
|
+
}, {
|
|
405
|
+
immediate: !0,
|
|
406
|
+
deep: !0
|
|
407
|
+
}), ($, d) => (t(), n("header", Qe, [o("div", Xe, [o("div", Ye, [g(ne, {
|
|
408
|
+
icon: f(i).applicationLogoUrl,
|
|
409
|
+
name: f(i).name,
|
|
410
|
+
onTo: k
|
|
411
|
+
}, null, 8, ["icon", "name"])]), o("div", Ze, [g(Je, {
|
|
412
|
+
menus: f(m),
|
|
413
|
+
activateKey: v.value,
|
|
414
|
+
theme: e.theme,
|
|
415
|
+
onChange: u
|
|
416
|
+
}, null, 8, ["menus", "activateKey", "theme"]), e.showThemeToggle ? (t(), n("button", {
|
|
417
|
+
key: 0,
|
|
418
|
+
type: "button",
|
|
419
|
+
class: "theme-toggle",
|
|
420
|
+
"aria-label": e.theme === "dark" ? "切换为浅色" : "切换为深色",
|
|
421
|
+
onClick: M
|
|
422
|
+
}, [e.theme === "dark" ? (t(), n("span", tt, [...d[0] || (d[0] = [o("svg", {
|
|
423
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
424
|
+
width: "20",
|
|
425
|
+
height: "20",
|
|
426
|
+
viewBox: "0 0 24 24",
|
|
427
|
+
fill: "none",
|
|
428
|
+
stroke: "currentColor",
|
|
429
|
+
"stroke-width": "2",
|
|
430
|
+
"stroke-linecap": "round",
|
|
431
|
+
"stroke-linejoin": "round"
|
|
432
|
+
}, [o("circle", {
|
|
433
|
+
cx: "12",
|
|
434
|
+
cy: "12",
|
|
435
|
+
r: "4"
|
|
436
|
+
}), o("path", {
|
|
437
|
+
d: "M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"
|
|
438
|
+
})], -1)])])) : (t(), n("span", nt, [...d[1] || (d[1] = [o("svg", {
|
|
439
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
440
|
+
width: "20",
|
|
441
|
+
height: "20",
|
|
442
|
+
viewBox: "0 0 24 24",
|
|
443
|
+
fill: "none",
|
|
444
|
+
stroke: "currentColor",
|
|
445
|
+
"stroke-width": "2",
|
|
446
|
+
"stroke-linecap": "round",
|
|
447
|
+
"stroke-linejoin": "round"
|
|
448
|
+
}, [o("path", {
|
|
449
|
+
d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"
|
|
450
|
+
})], -1)])]))], 8, et)) : S("", !0), e.showUserPanel ? (t(), ae(te, {
|
|
451
|
+
key: 1
|
|
452
|
+
}, {
|
|
453
|
+
items: z(() => [g(N, {
|
|
454
|
+
icon: "lucide:home",
|
|
455
|
+
onClick: k
|
|
456
|
+
}, {
|
|
457
|
+
default: z(() => [...d[2] || (d[2] = [O("主页", -1)])]),
|
|
458
|
+
_: 1
|
|
459
|
+
}), g(N, {
|
|
460
|
+
icon: "lucide:log-out",
|
|
461
|
+
danger: "",
|
|
462
|
+
onClick: C
|
|
463
|
+
}, {
|
|
464
|
+
default: z(() => [...d[3] || (d[3] = [O("退出登陆", -1)])]),
|
|
465
|
+
_: 1
|
|
466
|
+
})]),
|
|
467
|
+
_: 1
|
|
468
|
+
})) : S("", !0)])])]));
|
|
469
|
+
}
|
|
470
|
+
}), st = /* @__PURE__ */ P(ot, [["__scopeId", "data-v-3726fbfe"]]), at = {
|
|
471
|
+
class: "layout-inner"
|
|
472
|
+
}, rt = {
|
|
473
|
+
key: 0,
|
|
474
|
+
class: "loading"
|
|
475
|
+
}, it = "none", ut = "var(--huyooo-layout-dark-background)", lt = /* @__PURE__ */ x({
|
|
476
|
+
__name: "DefaultLayout",
|
|
477
|
+
props: {
|
|
478
|
+
menuType: {
|
|
479
|
+
default: "header"
|
|
480
|
+
},
|
|
481
|
+
showUserPanel: {
|
|
482
|
+
type: Boolean,
|
|
483
|
+
default: !0
|
|
484
|
+
},
|
|
485
|
+
showThemeToggle: {
|
|
486
|
+
type: Boolean,
|
|
487
|
+
default: !0
|
|
488
|
+
},
|
|
489
|
+
enableRoutePermission: {
|
|
490
|
+
type: Boolean,
|
|
491
|
+
default: !0
|
|
492
|
+
},
|
|
493
|
+
backgroundImage: {
|
|
494
|
+
default: ""
|
|
495
|
+
},
|
|
496
|
+
theme: {
|
|
497
|
+
default: void 0
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
setup(l) {
|
|
501
|
+
var d, B;
|
|
502
|
+
const e = l, {
|
|
503
|
+
appsData: i
|
|
504
|
+
} = E(), {
|
|
505
|
+
appsAuthPageInfoApi: c,
|
|
506
|
+
appsAuthPageInfoLoading: h,
|
|
507
|
+
appsAuthPageInfoSuccess: m
|
|
508
|
+
} = E(), v = A(typeof window < "u" && ((B = (d = window.matchMedia) == null ? void 0 : d.call(window, "(prefers-color-scheme: dark)")) == null ? void 0 : B.matches));
|
|
509
|
+
function y() {
|
|
510
|
+
var s, r;
|
|
511
|
+
typeof window > "u" || (v.value = ((r = (s = window.matchMedia) == null ? void 0 : s.call(window, "(prefers-color-scheme: dark)")) == null ? void 0 : r.matches) ?? !1);
|
|
512
|
+
}
|
|
513
|
+
let _;
|
|
514
|
+
q(() => {
|
|
515
|
+
var r, p;
|
|
516
|
+
!m.value && !h.value && c(), y();
|
|
517
|
+
const s = (r = window.matchMedia) == null ? void 0 : r.call(window, "(prefers-color-scheme: dark)");
|
|
518
|
+
(p = s == null ? void 0 : s.addEventListener) == null || p.call(s, "change", y), _ = () => {
|
|
519
|
+
var a;
|
|
520
|
+
return (a = s == null ? void 0 : s.removeEventListener) == null ? void 0 : a.call(s, "change", y);
|
|
521
|
+
};
|
|
522
|
+
});
|
|
523
|
+
const k = U(() => {
|
|
524
|
+
var a, w;
|
|
525
|
+
const s = e.theme;
|
|
526
|
+
if (s && s !== "system") return s;
|
|
527
|
+
if (s === "system") return v.value ? "dark" : "light";
|
|
528
|
+
const r = ce.value;
|
|
529
|
+
if (r === "dark" || r === "light") return r;
|
|
530
|
+
if (r === "system") return v.value ? "dark" : "light";
|
|
531
|
+
const p = (w = (a = i.value) == null ? void 0 : a.brand) == null ? void 0 : w.theme;
|
|
532
|
+
return p === "dark" || p === "light" ? p : "light";
|
|
533
|
+
}), C = U(() => e.backgroundImage ? e.backgroundImage : k.value === "dark" ? ut : it), u = U(() => {
|
|
534
|
+
const s = C.value;
|
|
535
|
+
return !s || s === "none" ? {
|
|
536
|
+
backgroundImage: "none",
|
|
537
|
+
backgroundColor: "transparent"
|
|
538
|
+
} : {
|
|
539
|
+
backgroundImage: s,
|
|
540
|
+
backgroundAttachment: "fixed"
|
|
541
|
+
};
|
|
542
|
+
});
|
|
543
|
+
W(k, (s) => {
|
|
544
|
+
typeof document > "u" || (s === "dark" ? (document.body.setAttribute("arco-theme", "dark"), document.body.classList.add("dark")) : (document.body.removeAttribute("arco-theme"), document.body.classList.remove("dark")));
|
|
545
|
+
}, {
|
|
546
|
+
immediate: !0
|
|
547
|
+
}), re(() => {
|
|
548
|
+
_ == null || _();
|
|
549
|
+
});
|
|
550
|
+
const {
|
|
551
|
+
setGlobalSEO: M
|
|
552
|
+
} = pe();
|
|
553
|
+
M(de);
|
|
554
|
+
const $ = e.enableRoutePermission ? X().isChecking : A(!1);
|
|
555
|
+
return Y(), (s, r) => (t(), n("div", {
|
|
556
|
+
class: I(["layout", {
|
|
557
|
+
"layout--dark": k.value === "dark"
|
|
558
|
+
}]),
|
|
559
|
+
style: R(u.value)
|
|
560
|
+
}, [g(st, {
|
|
561
|
+
"menu-type": e.menuType,
|
|
562
|
+
"show-user-panel": e.showUserPanel,
|
|
563
|
+
"show-theme-toggle": e.showThemeToggle,
|
|
564
|
+
theme: k.value
|
|
565
|
+
}, null, 8, ["menu-type", "show-user-panel", "show-theme-toggle", "theme"]), o("main", at, [f($) ? (t(), n("div", rt, [g(f(j), {
|
|
566
|
+
size: 40
|
|
567
|
+
})])) : G(s.$slots, "default", {
|
|
568
|
+
key: 1
|
|
569
|
+
}, void 0, !0)])], 6));
|
|
570
|
+
}
|
|
571
|
+
}), Gt = /* @__PURE__ */ P(lt, [["__scopeId", "data-v-52a72efd"]]), ct = /* @__PURE__ */ x({
|
|
572
|
+
__name: "Gradientbackground",
|
|
573
|
+
props: {
|
|
574
|
+
width: {
|
|
575
|
+
type: String,
|
|
576
|
+
default: "100%"
|
|
577
|
+
},
|
|
578
|
+
height: {
|
|
579
|
+
type: String,
|
|
580
|
+
default: "100%"
|
|
581
|
+
},
|
|
582
|
+
zIndex: {
|
|
583
|
+
type: String,
|
|
584
|
+
default: "-1"
|
|
585
|
+
},
|
|
586
|
+
top: {
|
|
587
|
+
type: String,
|
|
588
|
+
default: "10%"
|
|
589
|
+
},
|
|
590
|
+
left: {
|
|
591
|
+
type: String,
|
|
592
|
+
default: "0%"
|
|
593
|
+
},
|
|
594
|
+
right: {
|
|
595
|
+
type: String,
|
|
596
|
+
default: "auto"
|
|
597
|
+
},
|
|
598
|
+
blur: {
|
|
599
|
+
type: String,
|
|
600
|
+
default: "0px"
|
|
601
|
+
},
|
|
602
|
+
background: {
|
|
603
|
+
type: String,
|
|
604
|
+
required: !1,
|
|
605
|
+
default: () => "var(--huyooo-gradient-background)"
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
setup(l) {
|
|
609
|
+
const e = l, i = U(() => ({
|
|
610
|
+
pointerEvents: "none",
|
|
611
|
+
position: "absolute",
|
|
612
|
+
zIndex: e.zIndex,
|
|
613
|
+
width: e.width,
|
|
614
|
+
height: e.height,
|
|
615
|
+
filter: `blur(${e.blur})`
|
|
616
|
+
})), c = U(() => ({
|
|
617
|
+
width: "100%",
|
|
618
|
+
height: "100%",
|
|
619
|
+
background: e.background
|
|
620
|
+
}));
|
|
621
|
+
return (h, m) => (t(), n("div", {
|
|
622
|
+
class: "ellipsis",
|
|
623
|
+
style: R(i.value)
|
|
624
|
+
}, [o("div", {
|
|
625
|
+
class: "ellipsis-item",
|
|
626
|
+
style: R(c.value)
|
|
627
|
+
}, null, 4)], 4));
|
|
628
|
+
}
|
|
629
|
+
}), Nt = /* @__PURE__ */ P(ct, [["__scopeId", "data-v-64c41f65"]]), dt = {
|
|
630
|
+
class: "SvgIcon"
|
|
631
|
+
}, pt = ["href", "fill"], ht = /* @__PURE__ */ x({
|
|
632
|
+
__name: "SvgIcon",
|
|
633
|
+
props: {
|
|
634
|
+
prefix: {
|
|
635
|
+
type: String,
|
|
636
|
+
required: !1,
|
|
637
|
+
default: "icon"
|
|
638
|
+
},
|
|
639
|
+
name: {
|
|
640
|
+
type: String,
|
|
641
|
+
required: !0
|
|
642
|
+
},
|
|
643
|
+
color: {
|
|
644
|
+
type: String,
|
|
645
|
+
required: !1,
|
|
646
|
+
default: "currentColor"
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
setup(l) {
|
|
650
|
+
const e = l, i = U(() => `#${e.prefix ?? "icon"}-${e.name}`);
|
|
651
|
+
return (c, h) => (t(), n("svg", dt, [o("use", {
|
|
652
|
+
href: i.value,
|
|
653
|
+
fill: e.color
|
|
654
|
+
}, null, 8, pt)]));
|
|
655
|
+
}
|
|
656
|
+
}), qt = /* @__PURE__ */ P(ht, [["__scopeId", "data-v-9d0b08a0"]]), mt = {}, ft = {
|
|
657
|
+
class: "WidthContainer"
|
|
658
|
+
};
|
|
659
|
+
function vt(l, e) {
|
|
660
|
+
return t(), n("div", ft, [G(l.$slots, "default", {}, void 0, !0)]);
|
|
661
|
+
}
|
|
662
|
+
const jt = /* @__PURE__ */ P(mt, [["render", vt], ["__scopeId", "data-v-d06aac1f"]]);
|
|
663
|
+
export {
|
|
664
|
+
Vt as A,
|
|
665
|
+
Wt as C,
|
|
666
|
+
Gt as D,
|
|
667
|
+
Nt as G,
|
|
668
|
+
st as H,
|
|
669
|
+
qt as S,
|
|
670
|
+
jt as W,
|
|
671
|
+
ke as a,
|
|
672
|
+
Je as b
|
|
673
|
+
};
|