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