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