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