@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.
Files changed (68) hide show
  1. package/dist/AuthkitAppSetting-BCrLMpLg.js +1322 -0
  2. package/dist/AuthkitSignInPhone-DmCQ2fWs.js +1721 -0
  3. package/dist/{Clipboard-CK_nROjb.js → Clipboard---tG2Zxz.js} +1 -1
  4. package/dist/{Contact-CpHU1bJ7.js → Contact-BEUbBGiB.js} +2 -2
  5. package/dist/{CustomTable-1W5byjgJ.js → CustomTable-CVZ4mFzi.js} +2 -3
  6. package/dist/FeedbackItem-CN041vTm.js +495 -0
  7. package/dist/FeedbackModal-aI28o-w5.js +1053 -0
  8. package/dist/MessageHandle-BV1nKlxs.js +1147 -0
  9. package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-F6neJUg3.js +142 -0
  10. package/dist/{PaySubscriptions-C4Een__-.js → PaySubscriptions-B3gI1Eme.js} +5 -6
  11. package/dist/{ReferrerReferees-DIassvGO.js → ReferrerReferees-DJzPo7X5.js} +7 -7
  12. 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
  13. package/dist/UserAccountMenu-CJ9KKVYa.js +371 -0
  14. package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-ClAXNSgl.js +81 -0
  15. package/dist/{WidthContainer-TXsvW1ut.js → WidthContainer-BG10rumn.js} +248 -252
  16. package/dist/{apiClients-ANEApCyY.js → apiClients-9b4zNZ2S.js} +2 -2
  17. package/dist/authkit.js +41 -40
  18. package/dist/common.js +2 -2
  19. package/dist/components/Authkit/AuthkitAppSetting.vue.d.ts +1 -1
  20. package/dist/components/Referrer/ReferrerReferees.vue.d.ts +1 -1
  21. package/dist/components/{User → UserMenu}/UserAccountMenu.vue.d.ts +1 -5
  22. package/dist/components/{User/UserPanel.vue.d.ts → UserMenu/UserMenu.vue.d.ts} +5 -12
  23. package/dist/components/UserMenu/UserMenuDivider.vue.d.ts +2 -0
  24. package/dist/components/UserMenu/UserMenuHeader.vue.d.ts +13 -0
  25. package/dist/components/{User/UserPanelItem.vue.d.ts → UserMenu/UserMenuItem.vue.d.ts} +6 -10
  26. package/dist/components/UserMenu/UserMenuModals.vue.d.ts +137 -0
  27. package/dist/components/UserMenu/items/UserMenuFeedbackItem.vue.d.ts +2 -0
  28. package/dist/components/UserMenu/items/UserMenuInvitationsItem.vue.d.ts +2 -0
  29. package/dist/components/UserMenu/items/UserMenuMessageItem.vue.d.ts +2 -0
  30. package/dist/components/UserMenu/items/UserMenuSettingItem.vue.d.ts +2 -0
  31. package/dist/components/UserMenu/items/UserMenuSubscriptionItem.vue.d.ts +2 -0
  32. package/dist/components/UserMenu/parts/UserAvatar.vue.d.ts +9 -0
  33. package/dist/components/UserMenu/parts/UserBasicInformation.vue.d.ts +13 -0
  34. package/dist/components/UserMenu/parts/UserSubscriptionBaseInformation.vue.d.ts +15 -0
  35. package/dist/composables/UserMenu/useUserMenu.d.ts +20 -0
  36. package/dist/composables.d.ts +1 -0
  37. package/dist/composables.js +19 -17
  38. package/dist/feedback.js +16 -15
  39. package/dist/main.js +193 -180
  40. package/dist/message.js +10 -9
  41. package/dist/pay.js +1 -1
  42. package/dist/privateCom.js +1 -1
  43. package/dist/referrer.js +1 -1
  44. package/dist/style.css +1 -1
  45. package/dist/upload.js +2 -2
  46. package/dist/{useAuthkitAppsAuthPageInfo-Da2yJTT-.js → useAuthkitAppsAuthPageInfo-494yLvsu.js} +1 -1
  47. package/dist/{useAuthkitCreateAndUpdate-BLs5vQOu.js → useAuthkitCreateAndUpdate-DyRtFxZS.js} +1 -1
  48. package/dist/{useAuthkitUsersProfile-Cx8NXjlt.js → useAuthkitUsersProfile-lGlQP54m.js} +1 -1
  49. package/dist/{useDownloads-DT5W2af6.js → useDownloads-DaeIY0E9.js} +1 -1
  50. package/dist/{useLegalLinks-BIF45kUt.js → useLegalLinks-CPbWqlu6.js} +2 -2
  51. package/dist/{useMessageNotifications-CavBmgO7.js → useMessageNotifications-Dg5q-C_o.js} +1 -1
  52. package/dist/{useSEO-MPXQf0dn.js → useSEO-CXX9dcBx.js} +2 -2
  53. package/dist/{useTableHandle--NSbZ-57.js → useTableHandle-Cjq4gcC0.js} +1 -1
  54. package/dist/{cos-js-sdk-v5-BJ5AlBRu.js → useUploadCos-DiJmmbRf.js} +2469 -2232
  55. package/dist/useUserMenu-B3HKZKJ4.js +43 -0
  56. package/dist/user.d.ts +15 -7
  57. package/dist/user.js +17 -9
  58. package/package.json +1 -1
  59. package/dist/AuthkitSignInPhone-BWPCpUie.js +0 -3034
  60. package/dist/FeedbackModal-qAJLL3V3.js +0 -1535
  61. package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-D109kT8_.js +0 -1282
  62. package/dist/UserAccountMenu-BIRTtjLb.js +0 -266
  63. package/dist/UserSubscriptionBaseInformation-BUs3qiHd.js +0 -60
  64. package/dist/components/User/UserAvatar.vue.d.ts +0 -23
  65. package/dist/components/User/UserBasicInformation.vue.d.ts +0 -41
  66. package/dist/components/User/UserSubscriptionBaseInformation.vue.d.ts +0 -32
  67. package/dist/useUploadCos-D6y0INvP.js +0 -242
  68. /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 x, ref as A, watch as W, openBlock as t, createElementBlock as n, createElementVNode as o, createVNode as g, unref as f, withCtx as z, renderSlot as G, toDisplayString as T, createCommentVNode as S, onMounted as q, onUnmounted as se, normalizeClass as I, Fragment as L, renderList as H, createTextVNode as O, createBlock as ae, computed as U, onBeforeUnmount as re, normalizeStyle as R } from "vue";
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 ie, a as ue } from "./useAuthkitUsersProfile-Cx8NXjlt.js";
6
- import { d as le, b as ce, a as de } from "./apiClients-ANEApCyY.js";
7
- import { u as E } from "./useAuthkitAppsAuthPageInfo-Da2yJTT-.js";
8
- import { b as F, f as J, w as V, a as Q, c as X, d as Y, e as pe } from "./useSEO-MPXQf0dn.js";
9
- import "./cos-js-sdk-v5-BJ5AlBRu.js";
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
- /* empty css */
12
- /* empty css */
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 me } from "./Menu-Cy2ZPeaz.js";
17
+ import { M as fe } from "./Menu-Cy2ZPeaz.js";
19
18
  import "./CollapseItem-DUzZA6tx.js";
20
19
  /* empty css */
21
20
  /* empty css */
22
- import "./CustomTable-1W5byjgJ.js";
21
+ /* empty css */
22
+ import "./CustomTable-CVZ4mFzi.js";
23
23
  import "./index-D56hUMeD.js";
24
- import { L as ne } from "./Logo-D7fyXyB-.js";
25
- import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
26
- const fe = {
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
- }, ye = /* @__PURE__ */ x({
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(l) {
46
- const e = l, {
45
+ setup(c) {
46
+ const e = c, {
47
47
  appsData: i
48
48
  } = E(), {
49
- menus: c
50
- } = F(e.menuType), h = Z(), m = A(!1);
51
- function v() {
52
- h.push({
49
+ menus: d
50
+ } = F(e.menuType), _ = Z();
51
+ function y() {
52
+ _.push({
53
53
  path: "/"
54
54
  });
55
55
  }
56
- const y = ee(), _ = A([""]);
57
- function k(C) {
58
- const u = C.path;
59
- V(() => {
60
- h.push({
61
- path: u,
62
- query: y.query
63
- }), _.value = [u], window.scrollTo({
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 W(() => [y.path, c.value], () => {
70
- const C = J(c.value, y.path, {
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: (u) => Q(y.matched, e.menuType, u)
74
+ fallback: (k) => Q(u.matched, e.menuType, k)
75
75
  });
76
- C && (_.value = [C]);
76
+ l && (v.value = [l]);
77
77
  }, {
78
78
  immediate: !0,
79
79
  deep: !0
80
- }), (C, u) => (t(), n("div", fe, [o("div", ve, [g(f(ne), {
81
- icon: f(i).applicationLogoUrl,
82
- name: f(i).name,
83
- onTo: v
84
- }, null, 8, ["icon", "name"])]), o("div", _e, [g(me, {
85
- "selected-keys": _.value,
86
- "onUpdate:selectedKeys": u[0] || (u[0] = (M) => _.value = M),
87
- menus: f(c),
88
- onChange: k
89
- }, null, 8, ["selected-keys", "menus"])]), o("div", ge, [g(f(he), {
90
- onArrowClick: u[2] || (u[2] = (M) => m.value = !m.value)
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
- }, null, 8, ["modelValue"])]),
94
+ })]),
99
95
  _: 1
100
- })])]));
96
+ }), f(m(ne))])]));
101
97
  }
102
- }), ke = /* @__PURE__ */ P(ye, [["__scopeId", "data-v-2b8dc4d0"]]), be = {
98
+ }), be = /* @__PURE__ */ I(ke, [["__scopeId", "data-v-a337a33b"]]), we = {
103
99
  class: "layout"
104
- }, we = {
105
- class: "leftContent"
106
100
  }, Ce = {
107
- class: "content"
101
+ class: "leftContent"
108
102
  }, $e = {
109
- class: "contentCenter"
103
+ class: "content"
110
104
  }, Me = {
111
- class: "pages"
105
+ class: "contentCenter"
112
106
  }, Se = {
107
+ class: "pages"
108
+ }, Ie = {
113
109
  key: 0,
114
110
  class: "loading"
115
- }, Ie = /* @__PURE__ */ x({
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(l) {
127
- const e = l, {
122
+ setup(c) {
123
+ const e = c, {
128
124
  isChecking: i
129
125
  } = X();
130
- return Y(), (c, h) => (t(), n("div", be, [o("div", we, [g(ke, {
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", Ce, [o("div", $e, [o("div", Me, [f(i) ? (t(), n("div", Se, [g(f(j), {
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
- })])) : G(c.$slots, "default", {
131
+ })])) : V(d.$slots, "default", {
136
132
  key: 1
137
133
  }, void 0, !0)])])])]));
138
134
  }
139
- }), Vt = /* @__PURE__ */ P(Ie, [["__scopeId", "data-v-0eed4f11"]]), Te = {
135
+ }), Gt = /* @__PURE__ */ I(Te, [["__scopeId", "data-v-0eed4f11"]]), Ae = {
140
136
  class: "ContentHead"
141
137
  }, Pe = {
142
138
  class: "title"
143
- }, Ae = {
139
+ }, xe = {
144
140
  key: 0,
145
141
  class: "description"
146
- }, xe = /* @__PURE__ */ x({
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(l) {
161
- const e = l;
162
- return (i, c) => (t(), n("div", Te, [o("h1", Pe, T(e.title), 1), e.description ? (t(), n("p", Ae, T(e.description), 1)) : S("", !0)]));
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
- }), Wt = /* @__PURE__ */ P(xe, [["__scopeId", "data-v-209a7bef"]]), Le = {
160
+ }), Vt = /* @__PURE__ */ I(Le, [["__scopeId", "data-v-209a7bef"]]), Ue = {
165
161
  key: 0,
166
162
  class: "desktop-menus"
167
- }, Ue = {
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
- }, ze = ["onClick"], Ee = {
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-title"
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
- }, Re = ["onClick"], Ve = {
180
+ }, We = ["onClick"], Ge = {
185
181
  key: 3,
186
182
  class: "mobile-menu"
187
- }, We = {
183
+ }, Ve = {
188
184
  class: "mobile-menu-content"
189
- }, Ge = ["onClick"], Ne = {
185
+ }, Ne = ["onClick"], qe = {
190
186
  key: 0,
191
187
  class: "mobile-submenu"
192
- }, qe = ["onClick"], je = ["onClick"], Fe = /* @__PURE__ */ x({
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(l, {
205
+ setup(c, {
210
206
  emit: e
211
207
  }) {
212
- const i = l, c = e, h = A(!1), m = A(!1), v = A({});
213
- function y() {
214
- m.value = window.innerWidth <= 1024;
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
- h.value = !h.value;
212
+ function w() {
213
+ _.value = !_.value;
218
214
  }
219
- function k() {
220
- h.value = !1;
215
+ function l() {
216
+ _.value = !1;
221
217
  }
222
- function C(r) {
223
- c("change", r);
218
+ function k(r) {
219
+ d("change", r);
224
220
  }
225
- function u(r) {
226
- c("change", r), k();
221
+ function T(r) {
222
+ d("change", r), l();
227
223
  }
228
- function M(r) {
229
- v.value[r] = !v.value[r];
224
+ function U(r) {
225
+ u.value[r] = !u.value[r];
230
226
  }
231
- function $(r) {
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 w of r.children)
237
- if (p === w.path || p.startsWith(w.path + "/"))
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 d(r) {
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
- c("change", r);
243
+ d("change", r);
248
244
  }
249
245
  function s() {
250
- y(), m.value || k();
246
+ v(), y.value || l();
251
247
  }
252
248
  return q(() => {
253
- y(), window.addEventListener("resize", s);
254
- }), se(() => {
249
+ v(), window.addEventListener("resize", s);
250
+ }), ae(() => {
255
251
  window.removeEventListener("resize", s);
256
252
  }), (r, p) => (t(), n("div", {
257
- class: I(["HeaderMenus", {
253
+ class: M(["HeaderMenus", {
258
254
  "HeaderMenus--dark": i.theme === "dark"
259
255
  }])
260
- }, [m.value ? S("", !0) : (t(), n("div", Le, [(t(!0), n(L, null, H(i.menus, (a, w) => (t(), n(L, {
261
- key: w
262
- }, [a.children && a.children.length > 0 ? (t(), n("div", Ue, [o("div", {
263
- class: I(["headerLink hasChildren", {
264
- activate: $(a)
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(T(a.name) + " ", 1), g(f(D), {
262
+ }, [O(S(a.name) + " ", 1), f(m(D), {
267
263
  icon: "mingcute:down-line",
268
264
  class: "dropdown-arrow"
269
- })], 2), o("div", Be, [o("div", He, [(t(!0), n(L, null, H(a.children, (b, K) => (t(), n("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: I(["submenu-item", {
272
- active: d(b)
267
+ class: M(["submenu-item", {
268
+ active: h(g)
273
269
  }]),
274
- onClick: (oe) => C(b)
275
- }, [b.icon ? (t(), n("div", Ee, [g(f(D), {
276
- icon: b.icon
277
- }, null, 8, ["icon"])])) : S("", !0), o("div", Ke, [o("div", De, T(b.name), 1), b.description ? (t(), n("div", Oe, T(b.description), 1)) : S("", !0)])], 10, ze))), 128))])])])) : (t(), n("div", {
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: I(["headerLink", {
280
- activate: $(a)
275
+ class: M(["headerLink", {
276
+ activate: C(a)
281
277
  }]),
282
- onClick: (b) => B(a)
283
- }, T(a.name), 11, Re))], 64))), 128))])), m.value ? (t(), n("button", {
278
+ onClick: (g) => B(a)
279
+ }, S(a.name), 11, We))], 64))), 128))])), y.value ? (t(), n("button", {
284
280
  key: 1,
285
- class: I(["mobile-menu-toggle", {
286
- active: h.value
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)) : S("", !0), h.value ? (t(), n("div", {
292
+ }, null, -1)])], 2)) : $("", !0), _.value ? (t(), n("div", {
297
293
  key: 2,
298
294
  class: "mobile-menu-overlay",
299
- onClick: k
300
- })) : S("", !0), h.value ? (t(), n("div", Ve, [o("div", We, [(t(!0), n(L, null, H(i.menus, (a, w) => (t(), n(L, {
301
- key: w
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: I(["mobile-menu-item has-children", {
305
- activate: $(a),
306
- expanded: v.value[w]
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: (b) => M(w)
311
- }, [o("span", null, T(a.name), 1), g(f(D), {
312
- icon: v.value[w] ? "mingcute:up-line" : "mingcute:down-line",
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, Ge), v.value[w] ? (t(), n("div", Ne, [(t(!0), n(L, null, H(a.children, (b, K) => (t(), n("div", {
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: I(["mobile-submenu-item", {
317
- active: d(b)
312
+ class: M(["mobile-submenu-item", {
313
+ active: h(g)
318
314
  }]),
319
- onClick: (oe) => u(b)
320
- }, T(b.name), 11, qe))), 128))])) : S("", !0)], 2)) : (t(), n("div", {
315
+ onClick: (se) => T(g)
316
+ }, S(g.name), 11, je))), 128))])) : $("", !0)], 2)) : (t(), n("div", {
321
317
  key: 1,
322
- class: I(["mobile-menu-item", {
323
- activate: $(a)
318
+ class: M(["mobile-menu-item", {
319
+ activate: C(a)
324
320
  }]),
325
- onClick: (b) => u(a)
326
- }, T(a.name), 11, je))], 64))), 128))])])) : S("", !0)], 2));
321
+ onClick: (g) => T(a)
322
+ }, S(a.name), 11, Fe))], 64))), 128))])])) : $("", !0)], 2));
327
323
  }
328
- }), Je = /* @__PURE__ */ P(Fe, [["__scopeId", "data-v-42f528ac"]]), Qe = {
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: "left"
327
+ class: "HeaderCom-inner"
334
328
  }, Ze = {
329
+ class: "left"
330
+ }, et = {
335
331
  class: "right"
336
- }, et = ["aria-label"], tt = {
332
+ }, tt = ["aria-label"], nt = {
337
333
  key: 0,
338
334
  class: "theme-icon",
339
335
  "aria-hidden": "true"
340
- }, nt = {
336
+ }, ot = {
341
337
  key: 1,
342
338
  class: "theme-icon",
343
339
  "aria-hidden": "true"
344
- }, ot = /* @__PURE__ */ x({
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(l) {
363
- const e = l, {
358
+ setup(c) {
359
+ const e = c, {
364
360
  appsData: i
365
361
  } = E(), {
366
- clearAuth: c
367
- } = ie(), {
368
- clearUserProfile: h
362
+ clearAuth: d
369
363
  } = ue(), {
370
- menus: m
371
- } = F(e.menuType), v = A(""), y = Z(), _ = ee();
372
- function k() {
373
- V(() => {
374
- y.push({
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 C() {
383
- h(), c(), k();
378
+ function k() {
379
+ _(), d(), l();
384
380
  }
385
- function u($) {
386
- const d = $.path;
387
- V(() => {
388
- y.push(d), v.value = d, window.scrollTo({
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 M() {
395
- le(e.theme === "dark" ? "light" : "dark");
390
+ function U() {
391
+ ce(e.theme === "dark" ? "light" : "dark");
396
392
  }
397
- return W(() => [_.path, m.value], () => {
398
- v.value = J(m.value, _.path, {
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: ($) => Q(_.matched, e.menuType, $)
398
+ fallback: (C) => Q(w.matched, e.menuType, C)
403
399
  });
404
400
  }, {
405
401
  immediate: !0,
406
402
  deep: !0
407
- }), ($, d) => (t(), n("header", Qe, [o("div", Xe, [o("div", Ye, [g(ne, {
408
- icon: f(i).applicationLogoUrl,
409
- name: f(i).name,
410
- onTo: k
411
- }, null, 8, ["icon", "name"])]), o("div", Ze, [g(Je, {
412
- menus: f(m),
413
- activateKey: v.value,
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: u
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: M
422
- }, [e.theme === "dark" ? (t(), n("span", tt, [...d[0] || (d[0] = [o("svg", {
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", nt, [...d[1] || (d[1] = [o("svg", {
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, et)) : S("", !0), e.showUserPanel ? (t(), ae(te, {
446
+ })], -1)])]))], 8, tt)) : $("", !0), e.showUserPanel ? (t(), re(te, {
451
447
  key: 1
452
448
  }, {
453
- items: z(() => [g(N, {
449
+ items: z(() => [f(N, {
454
450
  icon: "lucide:home",
455
- onClick: k
451
+ onClick: l
456
452
  }, {
457
- default: z(() => [...d[2] || (d[2] = [O("主页", -1)])]),
453
+ default: z(() => [...h[2] || (h[2] = [O("主页", -1)])]),
458
454
  _: 1
459
- }), g(N, {
455
+ }), f(N, {
460
456
  icon: "lucide:log-out",
461
457
  danger: "",
462
- onClick: C
458
+ onClick: k
463
459
  }, {
464
- default: z(() => [...d[3] || (d[3] = [O("退出登陆", -1)])]),
460
+ default: z(() => [...h[3] || (h[3] = [O("退出登陆", -1)])]),
465
461
  _: 1
466
462
  })]),
467
463
  _: 1
468
- })) : S("", !0)])])]));
464
+ })) : $("", !0), f(ne)])])]));
469
465
  }
470
- }), st = /* @__PURE__ */ P(ot, [["__scopeId", "data-v-3726fbfe"]]), at = {
466
+ }), at = /* @__PURE__ */ I(st, [["__scopeId", "data-v-785fac7b"]]), rt = {
471
467
  class: "layout-inner"
472
- }, rt = {
468
+ }, it = {
473
469
  key: 0,
474
470
  class: "loading"
475
- }, it = "none", ut = "var(--huyooo-layout-dark-background)", lt = /* @__PURE__ */ x({
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(l) {
501
- var d, B;
502
- const e = l, {
496
+ setup(c) {
497
+ var h, B;
498
+ const e = c, {
503
499
  appsData: i
504
500
  } = E(), {
505
- appsAuthPageInfoApi: c,
506
- appsAuthPageInfoLoading: h,
507
- appsAuthPageInfoSuccess: m
508
- } = E(), v = A(typeof window < "u" && ((B = (d = window.matchMedia) == null ? void 0 : d.call(window, "(prefers-color-scheme: dark)")) == null ? void 0 : B.matches));
509
- function y() {
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" || (v.value = ((r = (s = window.matchMedia) == null ? void 0 : s.call(window, "(prefers-color-scheme: dark)")) == null ? void 0 : r.matches) ?? !1);
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
- !m.value && !h.value && c(), y();
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", y), _ = () => {
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", y);
516
+ return (a = s == null ? void 0 : s.removeEventListener) == null ? void 0 : a.call(s, "change", v);
521
517
  };
522
518
  });
523
- const k = U(() => {
524
- var a, w;
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 v.value ? "dark" : "light";
528
- const r = ce.value;
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 v.value ? "dark" : "light";
531
- const p = (w = (a = i.value) == null ? void 0 : a.brand) == null ? void 0 : w.theme;
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
- }), C = U(() => e.backgroundImage ? e.backgroundImage : k.value === "dark" ? ut : it), u = U(() => {
534
- const s = C.value;
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
- W(k, (s) => {
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
- }), re(() => {
548
- _ == null || _();
543
+ }), ie(() => {
544
+ w == null || w();
549
545
  });
550
546
  const {
551
- setGlobalSEO: M
547
+ setGlobalSEO: U
552
548
  } = pe();
553
- M(de);
554
- const $ = e.enableRoutePermission ? X().isChecking : A(!1);
549
+ U(he);
550
+ const C = e.enableRoutePermission ? X().isChecking : P(!1);
555
551
  return Y(), (s, r) => (t(), n("div", {
556
- class: I(["layout", {
557
- "layout--dark": k.value === "dark"
552
+ class: M(["layout", {
553
+ "layout--dark": l.value === "dark"
558
554
  }]),
559
- style: R(u.value)
560
- }, [g(st, {
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: k.value
565
- }, null, 8, ["menu-type", "show-user-panel", "show-theme-toggle", "theme"]), o("main", at, [f($) ? (t(), n("div", rt, [g(f(j), {
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
- })])) : G(s.$slots, "default", {
563
+ })])) : V(s.$slots, "default", {
568
564
  key: 1
569
565
  }, void 0, !0)])], 6));
570
566
  }
571
- }), Gt = /* @__PURE__ */ P(lt, [["__scopeId", "data-v-52a72efd"]]), ct = /* @__PURE__ */ x({
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(l) {
609
- const e = l, i = U(() => ({
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
- })), c = U(() => ({
612
+ })), d = L(() => ({
617
613
  width: "100%",
618
614
  height: "100%",
619
615
  background: e.background
620
616
  }));
621
- return (h, m) => (t(), n("div", {
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(c.value)
622
+ style: R(d.value)
627
623
  }, null, 4)], 4));
628
624
  }
629
- }), Nt = /* @__PURE__ */ P(ct, [["__scopeId", "data-v-64c41f65"]]), dt = {
625
+ }), qt = /* @__PURE__ */ I(dt, [["__scopeId", "data-v-64c41f65"]]), ht = {
630
626
  class: "SvgIcon"
631
- }, pt = ["href", "fill"], ht = /* @__PURE__ */ x({
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(l) {
650
- const e = l, i = U(() => `#${e.prefix ?? "icon"}-${e.name}`);
651
- return (c, h) => (t(), n("svg", dt, [o("use", {
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
- }), qt = /* @__PURE__ */ P(ht, [["__scopeId", "data-v-9d0b08a0"]]), mt = {}, ft = {
652
+ }), jt = /* @__PURE__ */ I(mt, [["__scopeId", "data-v-9d0b08a0"]]), ft = {}, _t = {
657
653
  class: "WidthContainer"
658
654
  };
659
- function vt(l, e) {
660
- return t(), n("div", ft, [G(l.$slots, "default", {}, void 0, !0)]);
655
+ function vt(c, e) {
656
+ return t(), n("div", _t, [V(c.$slots, "default", {}, void 0, !0)]);
661
657
  }
662
- const jt = /* @__PURE__ */ P(mt, [["render", vt], ["__scopeId", "data-v-d06aac1f"]]);
658
+ const Ft = /* @__PURE__ */ I(ft, [["render", vt], ["__scopeId", "data-v-d06aac1f"]]);
663
659
  export {
664
- Vt as A,
665
- Wt as C,
666
- Gt as D,
667
- Nt as G,
668
- st as H,
669
- qt as S,
670
- jt as W,
671
- ke as a,
672
- Je as b
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
  };