@huyooo/ui 0.11.1 → 0.11.5

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 (98) hide show
  1. package/dist/AuthkitAppSetting-CSHkDxQT.js +1914 -0
  2. package/dist/{Clipboard---tG2Zxz.js → Clipboard-CRZDADLE.js} +1 -1
  3. package/dist/{Contact-BEUbBGiB.js → Contact-Y0Yczmc9.js} +8 -7
  4. package/dist/{CustomTable-CVZ4mFzi.js → CustomTable-BUkwlbzN.js} +3 -2
  5. package/dist/{FeedbackItem-CN041vTm.js → FeedbackItem-D7MpOmoM.js} +3 -3
  6. package/dist/FeedbackModal-CvNF1D-5.js +1050 -0
  7. package/dist/LandingPageFAQ-CZJXvor9.js +80 -0
  8. package/dist/LandingPageLinkGroup-DDNRivMt.js +521 -0
  9. package/dist/LandingPageSectionHeader-D_74W4My.js +69 -0
  10. package/dist/{LandingPageSectionTabs-B6ZVxR47.js → LandingPageSectionTabs-Ce3_Rc2L.js} +354 -426
  11. package/dist/MessageHandle-B12koVQL.js +924 -0
  12. package/dist/MessageList-Bo6YCfRO.js +233 -0
  13. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-F6neJUg3.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DxDn6Ok8.js} +2 -2
  14. package/dist/PaySubscriptions-B8jAtG5n.js +515 -0
  15. package/dist/PricingPlans-CO26OcbJ.js +210 -0
  16. package/dist/ReferrerReferees-D_Iiw9wZ.js +106 -0
  17. package/dist/{Upload.vue_vue_type_script_setup_true_lang-D_-oMTOo.js → Upload.vue_vue_type_script_setup_true_lang-CbVSY_vt.js} +1 -1
  18. package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-DpVadjMH.js +508 -0
  19. package/dist/WidthContainer-B6d4xrGT.js +693 -0
  20. package/dist/{apiClients-9b4zNZ2S.js → apiClients-DVz12LeW.js} +81 -75
  21. package/dist/authkit.d.ts +7 -0
  22. package/dist/authkit.js +52 -45
  23. package/dist/common/globalConfig.d.ts +2 -2
  24. package/dist/common/userMenuModal.d.ts +1 -0
  25. package/dist/common.js +2 -2
  26. package/dist/components/Authkit/AppSetting/AuthkitOAuthBinding.vue.d.ts +31 -0
  27. package/dist/components/Authkit/AppSetting/AuthkitPhoneBinding.vue.d.ts +14 -0
  28. package/dist/components/Authkit/AppSetting/AuthkitPhoneVerify.vue.d.ts +66 -0
  29. package/dist/components/Authkit/Auth/AuthkitBindPhone.vue.d.ts +27 -0
  30. package/dist/components/Authkit/Auth/AuthkitEmailUpdate.vue.d.ts +11 -1
  31. package/dist/components/Authkit/Auth/AuthkitOauthCallback.vue.d.ts +2 -2
  32. package/dist/components/Authkit/Auth/AuthkitOauthItem.vue.d.ts +1 -1
  33. package/dist/components/Authkit/Auth/AuthkitPasswordAuth.vue.d.ts +11 -1
  34. package/dist/components/Authkit/Auth/AuthkitPhonePasswordUpdateAndVerify.vue.d.ts +68 -0
  35. package/dist/components/Authkit/Auth/AuthkitSignInEmailCode.vue.d.ts +68 -0
  36. package/dist/components/Authkit/Auth/AuthkitSwitchSignUpOrResetPassword.vue.d.ts +15 -3
  37. package/dist/components/Authkit/AuthkitOAuthCallbackProvider.vue.d.ts +11 -0
  38. package/dist/components/Authkit/AuthkitProvider.vue.d.ts +45 -0
  39. package/dist/components/Feedback/FeedbackBubbleEnd.vue.d.ts +9 -0
  40. package/dist/components/Feedback/FeedbackBubbleStart.vue.d.ts +11 -6
  41. package/dist/components/LandingPage/LandingPageSections.vue.d.ts +1 -1
  42. package/dist/components/Pay/PaySubscriptions.vue.d.ts +2 -1
  43. package/dist/components/Pay/PricingFAQ.vue.d.ts +17 -0
  44. package/dist/components/Pay/PricingPlans.vue.d.ts +12 -0
  45. package/dist/components/UserMenu/UserMenuModals.vue.d.ts +2 -2
  46. package/dist/components/UserMenu/parts/UserSubscriptionBaseInformation.vue.d.ts +8 -0
  47. package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +26 -0
  48. package/dist/composables/Authkit/useAuthkitAuth.d.ts +21 -9
  49. package/dist/composables/Authkit/useEnsureAuthenticated.d.ts +26 -0
  50. package/dist/composables/Authkit/useOauth.d.ts +4 -1
  51. package/dist/composables/Billing/useBillingPlans.d.ts +201 -0
  52. package/dist/composables/Billing/useBillingSubscriptionSummary.d.ts +280 -0
  53. package/dist/composables/Billing/useSubscriptionCheckout.d.ts +12 -0
  54. package/dist/composables/UserMenu/useUserMenu.d.ts +5 -1
  55. package/dist/composables.d.ts +2 -0
  56. package/dist/composables.js +25 -22
  57. package/dist/feedback.js +3 -3
  58. package/dist/index-D3Kp6R4z.js +4 -0
  59. package/dist/landingPage.js +42 -40
  60. package/dist/main.js +285 -269
  61. package/dist/message.js +19 -18
  62. package/dist/pay.d.ts +5 -0
  63. package/dist/pay.js +9 -2
  64. package/dist/privateCom.js +1 -1
  65. package/dist/referrer.js +1 -1
  66. package/dist/style.css +1 -1
  67. package/dist/types/api/auth.generated.d.ts +103 -39
  68. package/dist/types/api/billing.generated.d.ts +61 -28
  69. package/dist/types/api.d.ts +1 -1
  70. package/dist/types/app.d.ts +14 -0
  71. package/dist/upload.js +2 -2
  72. package/dist/{useAuthkitAppsAuthPageInfo-494yLvsu.js → useAuthkitAppsAuthPageInfo-Du5d6VK-.js} +20 -7
  73. package/dist/{useAuthkitCreateAndUpdate-DyRtFxZS.js → useAuthkitCreateAndUpdate-Bc9D5C6R.js} +1 -1
  74. package/dist/useAuthkitUsersProfile-CQGyvL7g.js +201 -0
  75. package/dist/{useDownloads-DaeIY0E9.js → useDownloads-BFx1a-f9.js} +1 -1
  76. package/dist/useEnsureAuthenticated-Cc64hF1O.js +2247 -0
  77. package/dist/{useLegalLinks-CPbWqlu6.js → useLegalLinks-Deksq9h-.js} +2 -2
  78. package/dist/{useMessageNotifications-Dg5q-C_o.js → useMessageNotifications-DY5xKtif.js} +1 -1
  79. package/dist/{useSEO-CXX9dcBx.js → useSEO-CvfzTZA9.js} +2 -2
  80. package/dist/useSubscriptionCheckout-BgQJN61l.js +345 -0
  81. package/dist/{useTableHandle-Cjq4gcC0.js → useTableHandle-D71P3Ez_.js} +1 -1
  82. package/dist/{useUploadCos-DiJmmbRf.js → useUploadCos-N5pim6q1.js} +501 -515
  83. package/dist/useUserMenu-ClPBlvaM.js +44 -0
  84. package/dist/user.js +12 -13
  85. package/dist/utils/apiMiddlewares.d.ts +6 -0
  86. package/package.json +1 -1
  87. package/dist/AuthkitAppSetting-BCrLMpLg.js +0 -1322
  88. package/dist/AuthkitSignInPhone-DmCQ2fWs.js +0 -1721
  89. package/dist/FeedbackModal-aI28o-w5.js +0 -1053
  90. package/dist/LandingPageSectionHeader-Cs1x8i3q.js +0 -584
  91. package/dist/MessageHandle-BV1nKlxs.js +0 -1147
  92. package/dist/PaySubscriptions-B3gI1Eme.js +0 -408
  93. package/dist/ReferrerReferees-DJzPo7X5.js +0 -106
  94. package/dist/UserAccountMenu-CJ9KKVYa.js +0 -371
  95. package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-ClAXNSgl.js +0 -81
  96. package/dist/WidthContainer-BG10rumn.js +0 -669
  97. package/dist/useAuthkitUsersProfile-lGlQP54m.js +0 -186
  98. package/dist/useUserMenu-B3HKZKJ4.js +0 -43
@@ -1,669 +0,0 @@
1
- /* empty css */
2
- /* empty css */
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
- import { Spin as j } from "@arco-design/web-vue";
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
- import { useRouter as Z, useRoute as ee } from "vue-router";
11
- import "./useUserMenu-B3HKZKJ4.js";
12
- import { U as me, c as te, f as ne, e as N } from "./UserAccountMenu-CJ9KKVYa.js";
13
- /* empty css */
14
- /* empty css */
15
- /* empty css */
16
- import { Icon as D } from "@iconify/vue";
17
- import { M as fe } from "./Menu-Cy2ZPeaz.js";
18
- import "./CollapseItem-DUzZA6tx.js";
19
- /* empty css */
20
- /* empty css */
21
- /* empty css */
22
- import "./CustomTable-CVZ4mFzi.js";
23
- import "./index-D56hUMeD.js";
24
- import { L as oe } from "./Logo-D7fyXyB-.js";
25
- import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
26
- const _e = {
27
- class: "SidebarCom"
28
- }, ve = {
29
- class: "LogoContent"
30
- }, ge = {
31
- class: "MenuContent"
32
- }, ye = {
33
- class: "sidebar-footer"
34
- }, ke = /* @__PURE__ */ A({
35
- __name: "AppSidebar",
36
- props: {
37
- menuType: {
38
- default: "system"
39
- },
40
- showUserPanel: {
41
- type: Boolean,
42
- default: !0
43
- }
44
- },
45
- setup(c) {
46
- const e = c, {
47
- appsData: i
48
- } = E(), {
49
- menus: d
50
- } = F(e.menuType), _ = Z();
51
- function y() {
52
- _.push({
53
- path: "/"
54
- });
55
- }
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
- top: 0,
65
- behavior: "smooth"
66
- });
67
- });
68
- }
69
- return G(() => [u.path, d.value], () => {
70
- const l = J(d.value, u.path, {
71
- // Sidebar 中,子路由应该选中子菜单项
72
- returnParentOnChildMatch: !1,
73
- // 后备查找函数
74
- fallback: (k) => Q(u.matched, e.menuType, k)
75
- });
76
- l && (v.value = [l]);
77
- }, {
78
- immediate: !0,
79
- deep: !0
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), {
91
- position: "tr",
92
- "dropdown-offset-y": "30px",
93
- "dropdown-offset-x": "230px"
94
- })]),
95
- _: 1
96
- }), f(m(ne))])]));
97
- }
98
- }), be = /* @__PURE__ */ I(ke, [["__scopeId", "data-v-a337a33b"]]), we = {
99
- class: "layout"
100
- }, Ce = {
101
- class: "leftContent"
102
- }, $e = {
103
- class: "content"
104
- }, Me = {
105
- class: "contentCenter"
106
- }, Se = {
107
- class: "pages"
108
- }, Ie = {
109
- key: 0,
110
- class: "loading"
111
- }, Te = /* @__PURE__ */ A({
112
- __name: "AppLayout",
113
- props: {
114
- menuType: {
115
- default: "system"
116
- },
117
- showUserPanel: {
118
- type: Boolean,
119
- default: !0
120
- }
121
- },
122
- setup(c) {
123
- const e = c, {
124
- isChecking: i
125
- } = X();
126
- return Y(), (d, _) => (t(), n("div", we, [o("div", Ce, [f(be, {
127
- "menu-type": e.menuType,
128
- "show-user-panel": e.showUserPanel
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), {
130
- size: 40
131
- })])) : V(d.$slots, "default", {
132
- key: 1
133
- }, void 0, !0)])])])]));
134
- }
135
- }), Gt = /* @__PURE__ */ I(Te, [["__scopeId", "data-v-0eed4f11"]]), Ae = {
136
- class: "ContentHead"
137
- }, Pe = {
138
- class: "title"
139
- }, xe = {
140
- key: 0,
141
- class: "description"
142
- }, Le = /* @__PURE__ */ A({
143
- __name: "ContentHead",
144
- props: {
145
- title: {
146
- type: String,
147
- required: !0,
148
- default: () => ""
149
- },
150
- description: {
151
- type: String,
152
- required: !0,
153
- default: () => ""
154
- }
155
- },
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)]));
159
- }
160
- }), Vt = /* @__PURE__ */ I(Le, [["__scopeId", "data-v-209a7bef"]]), Ue = {
161
- key: 0,
162
- class: "desktop-menus"
163
- }, Be = {
164
- key: 0,
165
- class: "header-menu-item"
166
- }, He = {
167
- class: "submenu-popup"
168
- }, ze = {
169
- class: "submenu-content"
170
- }, Ee = ["onClick"], Ke = {
171
- key: 0,
172
- class: "submenu-item-icon"
173
- }, De = {
174
- class: "submenu-item-content"
175
- }, Oe = {
176
- class: "submenu-item-title"
177
- }, Re = {
178
- key: 0,
179
- class: "submenu-item-description"
180
- }, We = ["onClick"], Ge = {
181
- key: 3,
182
- class: "mobile-menu"
183
- }, Ve = {
184
- class: "mobile-menu-content"
185
- }, Ne = ["onClick"], qe = {
186
- key: 0,
187
- class: "mobile-submenu"
188
- }, je = ["onClick"], Fe = ["onClick"], Je = /* @__PURE__ */ A({
189
- __name: "HeaderMenus",
190
- props: {
191
- menus: {
192
- type: Array,
193
- required: !0
194
- },
195
- activateKey: {
196
- type: String,
197
- required: !0
198
- },
199
- theme: {
200
- type: String,
201
- default: "light"
202
- }
203
- },
204
- emits: ["change"],
205
- setup(c, {
206
- emit: e
207
- }) {
208
- const i = c, d = e, _ = P(!1), y = P(!1), u = P({});
209
- function v() {
210
- y.value = window.innerWidth <= 1024;
211
- }
212
- function w() {
213
- _.value = !_.value;
214
- }
215
- function l() {
216
- _.value = !1;
217
- }
218
- function k(r) {
219
- d("change", r);
220
- }
221
- function T(r) {
222
- d("change", r), l();
223
- }
224
- function U(r) {
225
- u.value[r] = !u.value[r];
226
- }
227
- function C(r) {
228
- const p = i.activateKey, a = r.path;
229
- if (p === a || p.startsWith(a + "/"))
230
- return !0;
231
- if (r.children && r.children.length > 0) {
232
- for (const b of r.children)
233
- if (p === b.path || p.startsWith(b.path + "/"))
234
- return !0;
235
- }
236
- return !1;
237
- }
238
- function h(r) {
239
- const p = i.activateKey, a = r.path;
240
- return !!(p === a || p.startsWith(a + "/"));
241
- }
242
- function B(r) {
243
- d("change", r);
244
- }
245
- function s() {
246
- v(), y.value || l();
247
- }
248
- return q(() => {
249
- v(), window.addEventListener("resize", s);
250
- }), ae(() => {
251
- window.removeEventListener("resize", s);
252
- }), (r, p) => (t(), n("div", {
253
- class: M(["HeaderMenus", {
254
- "HeaderMenus--dark": i.theme === "dark"
255
- }])
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)
261
- }])
262
- }, [O(S(a.name) + " ", 1), f(m(D), {
263
- icon: "mingcute:down-line",
264
- class: "dropdown-arrow"
265
- })], 2), o("div", He, [o("div", ze, [(t(!0), n(x, null, H(a.children, (g, K) => (t(), n("div", {
266
- key: K,
267
- class: M(["submenu-item", {
268
- active: h(g)
269
- }]),
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", {
274
- key: 1,
275
- class: M(["headerLink", {
276
- activate: C(a)
277
- }]),
278
- onClick: (g) => B(a)
279
- }, S(a.name), 11, We))], 64))), 128))])), y.value ? (t(), n("button", {
280
- key: 1,
281
- class: M(["mobile-menu-toggle", {
282
- active: _.value
283
- }]),
284
- "aria-label": "切换菜单",
285
- onClick: w
286
- }, [...p[0] || (p[0] = [o("span", {
287
- class: "hamburger-line"
288
- }, null, -1), o("span", {
289
- class: "hamburger-line"
290
- }, null, -1), o("span", {
291
- class: "hamburger-line"
292
- }, null, -1)])], 2)) : $("", !0), _.value ? (t(), n("div", {
293
- key: 2,
294
- class: "mobile-menu-overlay",
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
298
- }, [a.children && a.children.length > 0 ? (t(), n("div", {
299
- key: 0,
300
- class: M(["mobile-menu-item has-children", {
301
- activate: C(a),
302
- expanded: u.value[b]
303
- }])
304
- }, [o("div", {
305
- class: "mobile-menu-item-header",
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",
309
- class: "mobile-submenu-arrow"
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", {
311
- key: K,
312
- class: M(["mobile-submenu-item", {
313
- active: h(g)
314
- }]),
315
- onClick: (se) => T(g)
316
- }, S(g.name), 11, je))), 128))])) : $("", !0)], 2)) : (t(), n("div", {
317
- key: 1,
318
- class: M(["mobile-menu-item", {
319
- activate: C(a)
320
- }]),
321
- onClick: (g) => T(a)
322
- }, S(a.name), 11, Fe))], 64))), 128))])])) : $("", !0)], 2));
323
- }
324
- }), Qe = /* @__PURE__ */ I(Je, [["__scopeId", "data-v-42f528ac"]]), Xe = {
325
- class: "HeaderCom"
326
- }, Ye = {
327
- class: "HeaderCom-inner"
328
- }, Ze = {
329
- class: "left"
330
- }, et = {
331
- class: "right"
332
- }, tt = ["aria-label"], nt = {
333
- key: 0,
334
- class: "theme-icon",
335
- "aria-hidden": "true"
336
- }, ot = {
337
- key: 1,
338
- class: "theme-icon",
339
- "aria-hidden": "true"
340
- }, st = /* @__PURE__ */ A({
341
- __name: "Header",
342
- props: {
343
- menuType: {
344
- default: "header"
345
- },
346
- showUserPanel: {
347
- type: Boolean,
348
- default: !0
349
- },
350
- showThemeToggle: {
351
- type: Boolean,
352
- default: !0
353
- },
354
- theme: {
355
- default: "light"
356
- }
357
- },
358
- setup(c) {
359
- const e = c, {
360
- appsData: i
361
- } = E(), {
362
- clearAuth: d
363
- } = ue(), {
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({
371
- path: "/"
372
- }), window.scrollTo({
373
- top: 0,
374
- behavior: "smooth"
375
- });
376
- });
377
- }
378
- function k() {
379
- _(), d(), l();
380
- }
381
- function T(C) {
382
- const h = C.path;
383
- W(() => {
384
- v.push(h), u.value = h, window.scrollTo({
385
- top: 0,
386
- behavior: "smooth"
387
- });
388
- });
389
- }
390
- function U() {
391
- ce(e.theme === "dark" ? "light" : "dark");
392
- }
393
- return G(() => [w.path, y.value], () => {
394
- u.value = J(y.value, w.path, {
395
- // Header 中,子菜单匹配时返回父菜单路径
396
- returnParentOnChildMatch: !0,
397
- // 后备查找函数
398
- fallback: (C) => Q(w.matched, e.menuType, C)
399
- });
400
- }, {
401
- immediate: !0,
402
- deep: !0
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,
410
- theme: e.theme,
411
- onChange: T
412
- }, null, 8, ["menus", "activateKey", "theme"]), e.showThemeToggle ? (t(), n("button", {
413
- key: 0,
414
- type: "button",
415
- class: "theme-toggle",
416
- "aria-label": e.theme === "dark" ? "切换为浅色" : "切换为深色",
417
- onClick: U
418
- }, [e.theme === "dark" ? (t(), n("span", nt, [...h[0] || (h[0] = [o("svg", {
419
- xmlns: "http://www.w3.org/2000/svg",
420
- width: "20",
421
- height: "20",
422
- viewBox: "0 0 24 24",
423
- fill: "none",
424
- stroke: "currentColor",
425
- "stroke-width": "2",
426
- "stroke-linecap": "round",
427
- "stroke-linejoin": "round"
428
- }, [o("circle", {
429
- cx: "12",
430
- cy: "12",
431
- r: "4"
432
- }), o("path", {
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"
434
- })], -1)])])) : (t(), n("span", ot, [...h[1] || (h[1] = [o("svg", {
435
- xmlns: "http://www.w3.org/2000/svg",
436
- width: "20",
437
- height: "20",
438
- viewBox: "0 0 24 24",
439
- fill: "none",
440
- stroke: "currentColor",
441
- "stroke-width": "2",
442
- "stroke-linecap": "round",
443
- "stroke-linejoin": "round"
444
- }, [o("path", {
445
- d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"
446
- })], -1)])]))], 8, tt)) : $("", !0), e.showUserPanel ? (t(), re(te, {
447
- key: 1
448
- }, {
449
- items: z(() => [f(N, {
450
- icon: "lucide:home",
451
- onClick: l
452
- }, {
453
- default: z(() => [...h[2] || (h[2] = [O("主页", -1)])]),
454
- _: 1
455
- }), f(N, {
456
- icon: "lucide:log-out",
457
- danger: "",
458
- onClick: k
459
- }, {
460
- default: z(() => [...h[3] || (h[3] = [O("退出登陆", -1)])]),
461
- _: 1
462
- })]),
463
- _: 1
464
- })) : $("", !0), f(ne)])])]));
465
- }
466
- }), at = /* @__PURE__ */ I(st, [["__scopeId", "data-v-785fac7b"]]), rt = {
467
- class: "layout-inner"
468
- }, it = {
469
- key: 0,
470
- class: "loading"
471
- }, ut = "none", lt = "var(--huyooo-layout-dark-background)", ct = /* @__PURE__ */ A({
472
- __name: "DefaultLayout",
473
- props: {
474
- menuType: {
475
- default: "header"
476
- },
477
- showUserPanel: {
478
- type: Boolean,
479
- default: !0
480
- },
481
- showThemeToggle: {
482
- type: Boolean,
483
- default: !0
484
- },
485
- enableRoutePermission: {
486
- type: Boolean,
487
- default: !0
488
- },
489
- backgroundImage: {
490
- default: ""
491
- },
492
- theme: {
493
- default: void 0
494
- }
495
- },
496
- setup(c) {
497
- var h, B;
498
- const e = c, {
499
- appsData: i
500
- } = E(), {
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() {
506
- var s, r;
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);
508
- }
509
- let w;
510
- q(() => {
511
- var r, p;
512
- !y.value && !_.value && d(), v();
513
- const s = (r = window.matchMedia) == null ? void 0 : r.call(window, "(prefers-color-scheme: dark)");
514
- (p = s == null ? void 0 : s.addEventListener) == null || p.call(s, "change", v), w = () => {
515
- var a;
516
- return (a = s == null ? void 0 : s.removeEventListener) == null ? void 0 : a.call(s, "change", v);
517
- };
518
- });
519
- const l = L(() => {
520
- var a, b;
521
- const s = e.theme;
522
- if (s && s !== "system") return s;
523
- if (s === "system") return u.value ? "dark" : "light";
524
- const r = de.value;
525
- if (r === "dark" || r === "light") return r;
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;
528
- return p === "dark" || p === "light" ? p : "light";
529
- }), k = L(() => e.backgroundImage ? e.backgroundImage : l.value === "dark" ? lt : ut), T = L(() => {
530
- const s = k.value;
531
- return !s || s === "none" ? {
532
- backgroundImage: "none",
533
- backgroundColor: "transparent"
534
- } : {
535
- backgroundImage: s,
536
- backgroundAttachment: "fixed"
537
- };
538
- });
539
- G(l, (s) => {
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")));
541
- }, {
542
- immediate: !0
543
- }), ie(() => {
544
- w == null || w();
545
- });
546
- const {
547
- setGlobalSEO: U
548
- } = pe();
549
- U(he);
550
- const C = e.enableRoutePermission ? X().isChecking : P(!1);
551
- return Y(), (s, r) => (t(), n("div", {
552
- class: M(["layout", {
553
- "layout--dark": l.value === "dark"
554
- }]),
555
- style: R(T.value)
556
- }, [f(at, {
557
- "menu-type": e.menuType,
558
- "show-user-panel": e.showUserPanel,
559
- "show-theme-toggle": e.showThemeToggle,
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), {
562
- size: 40
563
- })])) : V(s.$slots, "default", {
564
- key: 1
565
- }, void 0, !0)])], 6));
566
- }
567
- }), Nt = /* @__PURE__ */ I(ct, [["__scopeId", "data-v-52a72efd"]]), dt = /* @__PURE__ */ A({
568
- __name: "Gradientbackground",
569
- props: {
570
- width: {
571
- type: String,
572
- default: "100%"
573
- },
574
- height: {
575
- type: String,
576
- default: "100%"
577
- },
578
- zIndex: {
579
- type: String,
580
- default: "-1"
581
- },
582
- top: {
583
- type: String,
584
- default: "10%"
585
- },
586
- left: {
587
- type: String,
588
- default: "0%"
589
- },
590
- right: {
591
- type: String,
592
- default: "auto"
593
- },
594
- blur: {
595
- type: String,
596
- default: "0px"
597
- },
598
- background: {
599
- type: String,
600
- required: !1,
601
- default: () => "var(--huyooo-gradient-background)"
602
- }
603
- },
604
- setup(c) {
605
- const e = c, i = L(() => ({
606
- pointerEvents: "none",
607
- position: "absolute",
608
- zIndex: e.zIndex,
609
- width: e.width,
610
- height: e.height,
611
- filter: `blur(${e.blur})`
612
- })), d = L(() => ({
613
- width: "100%",
614
- height: "100%",
615
- background: e.background
616
- }));
617
- return (_, y) => (t(), n("div", {
618
- class: "ellipsis",
619
- style: R(i.value)
620
- }, [o("div", {
621
- class: "ellipsis-item",
622
- style: R(d.value)
623
- }, null, 4)], 4));
624
- }
625
- }), qt = /* @__PURE__ */ I(dt, [["__scopeId", "data-v-64c41f65"]]), ht = {
626
- class: "SvgIcon"
627
- }, pt = ["href", "fill"], mt = /* @__PURE__ */ A({
628
- __name: "SvgIcon",
629
- props: {
630
- prefix: {
631
- type: String,
632
- required: !1,
633
- default: "icon"
634
- },
635
- name: {
636
- type: String,
637
- required: !0
638
- },
639
- color: {
640
- type: String,
641
- required: !1,
642
- default: "currentColor"
643
- }
644
- },
645
- setup(c) {
646
- const e = c, i = L(() => `#${e.prefix ?? "icon"}-${e.name}`);
647
- return (d, _) => (t(), n("svg", ht, [o("use", {
648
- href: i.value,
649
- fill: e.color
650
- }, null, 8, pt)]));
651
- }
652
- }), jt = /* @__PURE__ */ I(mt, [["__scopeId", "data-v-9d0b08a0"]]), ft = {}, _t = {
653
- class: "WidthContainer"
654
- };
655
- function vt(c, e) {
656
- return t(), n("div", _t, [V(c.$slots, "default", {}, void 0, !0)]);
657
- }
658
- const Ft = /* @__PURE__ */ I(ft, [["render", vt], ["__scopeId", "data-v-d06aac1f"]]);
659
- export {
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
669
- };