@huyooo/ui 0.9.8 → 0.10.0
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-BpQZ_cSv.js → AuthkitAuthModal-CIqo_ytT.js} +2 -2
- package/dist/{AuthkitSignInPhone-DEkq7yIu.js → AuthkitSignInPhone-GEP_InIp.js} +3 -6
- package/dist/{Contact-HpDiHdUv.js → Contact-D1RLCHL7.js} +3 -3
- package/dist/{CustomTable-Dyjn6dOW.js → CustomTable-CVZ4mFzi.js} +1 -1
- package/dist/{FeedbackItem-CUQUsQCd.js → FeedbackItem-BhBJPtoI.js} +1 -1
- package/dist/{FeedbackModal-DCxmeHW4.js → FeedbackModal-Ci0sZsOa.js} +4 -4
- package/dist/{LandingPageSectionHeader-AfrKhRQg.js → LandingPageSectionHeader-1h01zdKJ.js} +168 -222
- package/dist/{LandingPageSectionTabs-BPG1U38v.js → LandingPageSectionTabs-BRTZaLEe.js} +380 -371
- package/dist/Logo-D7fyXyB-.js +67 -0
- package/dist/{MessageHandle-DJCHYY9T.js → MessageHandle-Dkpc4axC.js} +1 -1
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-rkng32OA.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DqXjEfo9.js} +1 -1
- package/dist/{PaySubscriptions-CWey-mbh.js → PaySubscriptions-ygmbIpWM.js} +1 -1
- package/dist/{ReferrerReferees-Byrr8T8H.js → ReferrerReferees-BlHsWD6F.js} +1 -1
- package/dist/{UserAccountMenu-CxYmNgME.js → UserAccountMenu-C6MK8Ulm.js} +6 -6
- package/dist/WidthContainer-IvPa1ayt.js +655 -0
- package/dist/authkit.js +2 -2
- package/dist/common/downloadOptions.d.ts +3 -0
- package/dist/common.js +14 -13
- package/dist/components/DefaultLayout.vue.d.ts +6 -0
- package/dist/components/Header.vue.d.ts +3 -0
- package/dist/components/LandingPage/LandingPageBrandInfo.vue.d.ts +2 -0
- package/dist/components/LandingPage/PageContent.vue.d.ts +18 -0
- package/dist/components/Logo.vue.d.ts +30 -4
- package/dist/composables/useDownloads.d.ts +4 -7
- package/dist/composables.js +1 -1
- package/dist/feedback.js +2 -2
- package/dist/head.d.ts +7 -0
- package/dist/landingPage.d.ts +2 -1
- package/dist/landingPage.js +29 -27
- package/dist/main.d.ts +1 -1
- package/dist/main.js +308 -295
- 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/useDownloads-CpbLR--j.js +52 -0
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/WidthContainer-BsPQN5_v.js +0 -677
- package/dist/components/LandingPage/LandingPageLogo.vue.d.ts +0 -64
- package/dist/useDownloads-CMQtTjNj.js +0 -73
|
@@ -0,0 +1,655 @@
|
|
|
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 $, onMounted as W, onUnmounted as ne, normalizeClass as C, 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 le } 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 ue } 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-C6MK8Ulm.js";
|
|
14
|
+
/* empty css */
|
|
15
|
+
/* empty css */
|
|
16
|
+
/* empty css */
|
|
17
|
+
import "./AuthkitAuthModal-CIqo_ytT.js";
|
|
18
|
+
import { M as de } from "./Menu-v8cCDSzi.js";
|
|
19
|
+
import "./CollapseItem-DN-GUAQA.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
|
+
}, me = {
|
|
29
|
+
class: "LogoContent"
|
|
30
|
+
}, he = {
|
|
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: l
|
|
48
|
+
} = z(), {
|
|
49
|
+
menus: u
|
|
50
|
+
} = N(e.menuType), c = Q(), f = T(!1);
|
|
51
|
+
function v() {
|
|
52
|
+
c.push({
|
|
53
|
+
path: "/"
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
const p = X(), y = T([""]);
|
|
57
|
+
function w(_) {
|
|
58
|
+
const i = _.path;
|
|
59
|
+
O(() => {
|
|
60
|
+
c.push({
|
|
61
|
+
path: i,
|
|
62
|
+
query: p.query
|
|
63
|
+
}), y.value = [i], window.scrollTo({
|
|
64
|
+
top: 0,
|
|
65
|
+
behavior: "smooth"
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return R(() => [p.path, u.value], () => {
|
|
70
|
+
const _ = q(u.value, p.path, {
|
|
71
|
+
// Sidebar 中,子路由应该选中子菜单项
|
|
72
|
+
returnParentOnChildMatch: !1,
|
|
73
|
+
// 后备查找函数
|
|
74
|
+
fallback: (i) => j(p.matched, e.menuType, i)
|
|
75
|
+
});
|
|
76
|
+
console.log(_, p.matched, e.menuType, p.path, "activateKey"), _ && (y.value = [_]);
|
|
77
|
+
}, {
|
|
78
|
+
immediate: !0,
|
|
79
|
+
deep: !0
|
|
80
|
+
}), (_, i) => (t(), n("div", pe, [o("div", me, [b(h(Z), {
|
|
81
|
+
icon: h(l).applicationLogoUrl,
|
|
82
|
+
name: h(l).name,
|
|
83
|
+
onTo: v
|
|
84
|
+
}, null, 8, ["icon", "name"])]), o("div", he, [b(de, {
|
|
85
|
+
"selected-keys": y.value,
|
|
86
|
+
"onUpdate:selectedKeys": i[0] || (i[0] = (I) => y.value = I),
|
|
87
|
+
menus: h(u),
|
|
88
|
+
onChange: w
|
|
89
|
+
}, null, 8, ["selected-keys", "menus"])]), o("div", fe, [b(h(ce), {
|
|
90
|
+
onArrowClick: i[2] || (i[2] = (I) => f.value = !f.value)
|
|
91
|
+
}, {
|
|
92
|
+
avatar: te(() => [b(h(Y), {
|
|
93
|
+
modelValue: f.value,
|
|
94
|
+
"onUpdate:modelValue": i[1] || (i[1] = (I) => f.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-d6d56676"]]), 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
|
+
}, $e = {
|
|
113
|
+
key: 0,
|
|
114
|
+
class: "loading"
|
|
115
|
+
}, Ce = /* @__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: l
|
|
129
|
+
} = F();
|
|
130
|
+
return J(), (u, 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(l) ? (t(), n("div", $e, [b(h(G), {
|
|
134
|
+
size: 40
|
|
135
|
+
})])) : V(u.$slots, "default", {
|
|
136
|
+
key: 1
|
|
137
|
+
}, void 0, !0)])])])]));
|
|
138
|
+
}
|
|
139
|
+
}), Dt = /* @__PURE__ */ S(Ce, [["__scopeId", "data-v-59271b3a"]]), 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 (l, u) => (t(), n("div", Me, [o("h1", Se, M(e.title), 1), e.description ? (t(), n("p", Ie, M(e.description), 1)) : $("", !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 l = d, u = e, c = T(!1), f = T(!1), v = T({});
|
|
213
|
+
function p() {
|
|
214
|
+
f.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
|
+
u("change", r);
|
|
224
|
+
}
|
|
225
|
+
function i(r) {
|
|
226
|
+
u("change", r), w();
|
|
227
|
+
}
|
|
228
|
+
function I(r) {
|
|
229
|
+
v.value[r] = !v.value[r];
|
|
230
|
+
}
|
|
231
|
+
function x(r) {
|
|
232
|
+
const m = l.activateKey, a = r.path;
|
|
233
|
+
if (m === a || m.startsWith(a + "/"))
|
|
234
|
+
return !0;
|
|
235
|
+
if (r.children && r.children.length > 0) {
|
|
236
|
+
for (const k of r.children)
|
|
237
|
+
if (m === k.path || m.startsWith(k.path + "/"))
|
|
238
|
+
return !0;
|
|
239
|
+
}
|
|
240
|
+
return !1;
|
|
241
|
+
}
|
|
242
|
+
function B(r) {
|
|
243
|
+
const m = l.activateKey, a = r.path;
|
|
244
|
+
return !!(m === a || m.startsWith(a + "/"));
|
|
245
|
+
}
|
|
246
|
+
function U(r) {
|
|
247
|
+
u("change", r);
|
|
248
|
+
}
|
|
249
|
+
function s() {
|
|
250
|
+
p(), f.value || w();
|
|
251
|
+
}
|
|
252
|
+
return W(() => {
|
|
253
|
+
p(), window.addEventListener("resize", s);
|
|
254
|
+
}), ne(() => {
|
|
255
|
+
window.removeEventListener("resize", s);
|
|
256
|
+
}), (r, m) => (t(), n("div", {
|
|
257
|
+
class: C(["HeaderMenus", {
|
|
258
|
+
"HeaderMenus--dark": l.theme === "dark"
|
|
259
|
+
}])
|
|
260
|
+
}, [f.value ? $("", !0) : (t(), n("div", Pe, [(t(!0), n(A, null, H(l.menus, (a, k) => (t(), n(A, {
|
|
261
|
+
key: k
|
|
262
|
+
}, [a.children && a.children.length > 0 ? (t(), n("div", xe, [o("div", {
|
|
263
|
+
class: C(["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: C(["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"])])) : $("", !0), o("div", He, [o("div", ze, M(g.name), 1), g.description ? (t(), n("div", Ee, M(g.description), 1)) : $("", !0)])], 10, Be))), 128))])])])) : (t(), n("div", {
|
|
278
|
+
key: 1,
|
|
279
|
+
class: C(["headerLink", {
|
|
280
|
+
activate: x(a)
|
|
281
|
+
}]),
|
|
282
|
+
onClick: (g) => U(a)
|
|
283
|
+
}, M(a.name), 11, Ke))], 64))), 128))])), f.value ? (t(), n("button", {
|
|
284
|
+
key: 1,
|
|
285
|
+
class: C(["mobile-menu-toggle", {
|
|
286
|
+
active: c.value
|
|
287
|
+
}]),
|
|
288
|
+
"aria-label": "切换菜单",
|
|
289
|
+
onClick: y
|
|
290
|
+
}, [...m[0] || (m[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)) : $("", !0), c.value ? (t(), n("div", {
|
|
297
|
+
key: 2,
|
|
298
|
+
class: "mobile-menu-overlay",
|
|
299
|
+
onClick: w
|
|
300
|
+
})) : $("", !0), c.value ? (t(), n("div", De, [o("div", Oe, [(t(!0), n(A, null, H(l.menus, (a, k) => (t(), n(A, {
|
|
301
|
+
key: k
|
|
302
|
+
}, [a.children && a.children.length > 0 ? (t(), n("div", {
|
|
303
|
+
key: 0,
|
|
304
|
+
class: C(["mobile-menu-item has-children", {
|
|
305
|
+
activate: x(a),
|
|
306
|
+
expanded: v.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: v.value[k] ? "mingcute:up-line" : "mingcute:down-line",
|
|
313
|
+
class: "mobile-submenu-arrow"
|
|
314
|
+
}, null, 8, ["icon"])], 8, Re), v.value[k] ? (t(), n("div", Ve, [(t(!0), n(A, null, H(a.children, (g, E) => (t(), n("div", {
|
|
315
|
+
key: E,
|
|
316
|
+
class: C(["mobile-submenu-item", {
|
|
317
|
+
active: B(g)
|
|
318
|
+
}]),
|
|
319
|
+
onClick: (ee) => i(g)
|
|
320
|
+
}, M(g.name), 11, We))), 128))])) : $("", !0)], 2)) : (t(), n("div", {
|
|
321
|
+
key: 1,
|
|
322
|
+
class: C(["mobile-menu-item", {
|
|
323
|
+
activate: x(a)
|
|
324
|
+
}]),
|
|
325
|
+
onClick: (g) => i(a)
|
|
326
|
+
}, M(a.name), 11, Ge))], 64))), 128))])])) : $("", !0)], 2));
|
|
327
|
+
}
|
|
328
|
+
}), qe = /* @__PURE__ */ S(Ne, [["__scopeId", "data-v-e62ccc15"]]), 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: l
|
|
365
|
+
} = z(), {
|
|
366
|
+
menus: u
|
|
367
|
+
} = N(e.menuType), c = T(""), f = Q(), v = X();
|
|
368
|
+
function p() {
|
|
369
|
+
O(() => {
|
|
370
|
+
f.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
|
+
f.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(() => [v.path, u.value], () => {
|
|
391
|
+
c.value = q(u.value, v.path, {
|
|
392
|
+
// Header 中,子菜单匹配时返回父菜单路径
|
|
393
|
+
returnParentOnChildMatch: !0,
|
|
394
|
+
// 后备查找函数
|
|
395
|
+
fallback: (_) => j(v.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(l).applicationLogoUrl,
|
|
402
|
+
name: h(l).name,
|
|
403
|
+
onTo: p
|
|
404
|
+
}, null, 8, ["icon", "name"])]), o("div", Qe, [b(qe, {
|
|
405
|
+
menus: h(u),
|
|
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)) : $("", !0), e.showUserPanel ? (t(), se(Y, {
|
|
444
|
+
key: 1,
|
|
445
|
+
onToHomePage: p,
|
|
446
|
+
onSignOut: p
|
|
447
|
+
})) : $("", !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 = "linear-gradient(to bottom, #09090b, #0c0c0e, #0f0f12, #121215, #151518, #18181b, #1a1a1e, #1c1c20, #1e1e22, #212124, #242427, #27272a)", 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: l
|
|
483
|
+
} = z(), {
|
|
484
|
+
appsAuthPageInfoApi: u,
|
|
485
|
+
appsAuthPageInfoLoading: c,
|
|
486
|
+
appsAuthPageInfoSuccess: f
|
|
487
|
+
} = z(), v = 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 p() {
|
|
489
|
+
var s, r;
|
|
490
|
+
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);
|
|
491
|
+
}
|
|
492
|
+
let y;
|
|
493
|
+
W(() => {
|
|
494
|
+
var r, m;
|
|
495
|
+
!f.value && !c.value && u(), p();
|
|
496
|
+
const s = (r = window.matchMedia) == null ? void 0 : r.call(window, "(prefers-color-scheme: dark)");
|
|
497
|
+
(m = s == null ? void 0 : s.addEventListener) == null || m.call(s, "change", p), y = () => {
|
|
498
|
+
var a;
|
|
499
|
+
return (a = s == null ? void 0 : s.removeEventListener) == null ? void 0 : a.call(s, "change", p);
|
|
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 v.value ? "dark" : "light";
|
|
507
|
+
const r = ie.value;
|
|
508
|
+
if (r === "dark" || r === "light") return r;
|
|
509
|
+
if (r === "system") return v.value ? "dark" : "light";
|
|
510
|
+
const m = (k = (a = l.value) == null ? void 0 : a.brand) == null ? void 0 : k.theme;
|
|
511
|
+
return m === "dark" || m === "light" ? m : "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
|
+
} = ue();
|
|
532
|
+
I(le);
|
|
533
|
+
const x = e.enableRoutePermission ? F().isChecking : T(!1);
|
|
534
|
+
return J(), (s, r) => (t(), n("div", {
|
|
535
|
+
class: C(["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-fde52988"]]), 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: () => "linear-gradient(180deg, rgb(0 225 10 / 10%) 0.31%, rgb(26 214 255 / 52%) 74.99%, rgb(220 189 0 / 0%) 99.69%)"
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
setup(d) {
|
|
588
|
+
const e = d, l = 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
|
+
})), u = L(() => ({
|
|
596
|
+
width: "100%",
|
|
597
|
+
height: "100%",
|
|
598
|
+
background: e.background
|
|
599
|
+
// background: `linear-gradient(180deg, #D5D1FF 0.31%, #EAEDFF 74.99%, rgba(240, 246, 255, 0) 99.69%)`,
|
|
600
|
+
// 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%)`,
|
|
601
|
+
// background: `linear-gradient(315deg, rgb(0 225 10 / 63%) 10%, rgb(26 214 255 / 52%) 50%, rgb(220 189 0 / 37%) 100%)`,
|
|
602
|
+
}));
|
|
603
|
+
return (c, f) => (t(), n("div", {
|
|
604
|
+
class: "ellipsis",
|
|
605
|
+
style: D(l.value)
|
|
606
|
+
}, [o("div", {
|
|
607
|
+
class: "ellipsis-item",
|
|
608
|
+
style: D(u.value)
|
|
609
|
+
}, null, 4)], 4));
|
|
610
|
+
}
|
|
611
|
+
}), Vt = /* @__PURE__ */ S(it, [["__scopeId", "data-v-b6461ac4"]]), lt = {
|
|
612
|
+
class: "SvgIcon"
|
|
613
|
+
}, ut = ["href", "fill"], ct = /* @__PURE__ */ P({
|
|
614
|
+
__name: "SvgIcon",
|
|
615
|
+
props: {
|
|
616
|
+
prefix: {
|
|
617
|
+
type: String,
|
|
618
|
+
required: !1,
|
|
619
|
+
default: "icon"
|
|
620
|
+
},
|
|
621
|
+
name: {
|
|
622
|
+
type: String,
|
|
623
|
+
required: !0
|
|
624
|
+
},
|
|
625
|
+
color: {
|
|
626
|
+
type: String,
|
|
627
|
+
required: !1,
|
|
628
|
+
default: "#333"
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
setup(d) {
|
|
632
|
+
const e = d, l = L(() => `#${e.prefix ?? "icon"}-${e.name}`);
|
|
633
|
+
return (u, c) => (t(), n("svg", lt, [o("use", {
|
|
634
|
+
href: l.value,
|
|
635
|
+
fill: e.color
|
|
636
|
+
}, null, 8, ut)]));
|
|
637
|
+
}
|
|
638
|
+
}), Wt = /* @__PURE__ */ S(ct, [["__scopeId", "data-v-0a9de94e"]]), dt = {}, pt = {
|
|
639
|
+
class: "WidthContainer"
|
|
640
|
+
};
|
|
641
|
+
function mt(d, e) {
|
|
642
|
+
return t(), n("div", pt, [V(d.$slots, "default", {}, void 0, !0)]);
|
|
643
|
+
}
|
|
644
|
+
const Gt = /* @__PURE__ */ S(dt, [["render", mt], ["__scopeId", "data-v-d06aac1f"]]);
|
|
645
|
+
export {
|
|
646
|
+
Dt as A,
|
|
647
|
+
Ot as C,
|
|
648
|
+
Rt as D,
|
|
649
|
+
Vt as G,
|
|
650
|
+
tt as H,
|
|
651
|
+
Wt as S,
|
|
652
|
+
Gt as W,
|
|
653
|
+
_e as a,
|
|
654
|
+
qe as b
|
|
655
|
+
};
|
package/dist/authkit.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as i, a as u, b as s, c as h, E as A, d as e, e as k, _ as o, f as r, O as n, f as d, O as p, P as f, g as m, h as P, i as l, R as S, S as g, j as O, k as c, l as w, m as U, n as I, o as x, u as b, p as C } from "./AuthkitAuthModal-
|
|
2
|
-
import { A as y, a as B, b as R, c as V, d as v, d as L, e as M, f as j } from "./AuthkitSignInPhone-
|
|
1
|
+
import { A as i, a as u, b as s, c as h, E as A, d as e, e as k, _ as o, f as r, O as n, f as d, O as p, P as f, g as m, h as P, i as l, R as S, S as g, j as O, k as c, l as w, m as U, n as I, o as x, u as b, p as C } from "./AuthkitAuthModal-CIqo_ytT.js";
|
|
2
|
+
import { A as y, a as B, b as R, c as V, d as v, d as L, e as M, f as j } from "./AuthkitSignInPhone-GEP_InIp.js";
|
|
3
3
|
import { u as G } from "./useAuthkitAppsAuthPageInfo-C3EHOtlk.js";
|
|
4
4
|
import { u as _, a as q } from "./useAuthkitUsersProfile-BqW74gfs.js";
|
|
5
5
|
import { u as F } from "./apiClients-DJchWBAG.js";
|