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