@huyooo/ui 0.5.24 → 0.5.25

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 (41) hide show
  1. package/dist/{AuthkitAuthModal-BdVB7Kz7.js → AuthkitAuthModal-EtAHk3jC.js} +482 -517
  2. package/dist/{AuthkitAuthorize-bzCh_YJp.js → AuthkitAuthorize-iudRkudt.js} +2 -2
  3. package/dist/{Clipboard-Bful1lNJ.js → Clipboard-CIWjWQOZ.js} +2 -3
  4. package/dist/{Contact-DNiynQXl.js → Contact-Dy9U5zuU.js} +2 -2
  5. package/dist/{FeedbackItem-DFCuTCaI.js → FeedbackItem-4WHDAqT0.js} +3 -3
  6. package/dist/{FeedbackModal-BGXr3jPm.js → FeedbackModal-Cf9lDRpp.js} +5 -6
  7. package/dist/LandingPageSectionTabs-CHUcFEzO.js +38248 -0
  8. package/dist/{MessageHandle-De7eLBi_.js → MessageHandle-CVsfCWky.js} +16 -16
  9. package/dist/{PaySubscriptions-77rXNTOt.js → PaySubscriptions-CMSBkkoi.js} +8 -8
  10. package/dist/{ReferrerReferees-DCALYxND.js → ReferrerReferees-BFF_mWBd.js} +7 -7
  11. package/dist/{Upload.vue_vue_type_script_setup_true_lang-9HB-tLZd.js → Upload.vue_vue_type_script_setup_true_lang-DA9w3O2R.js} +2 -2
  12. package/dist/{UserAccountMenu-ul2FbWYe.js → UserAccountMenu-8Vqgdtq1.js} +11 -12
  13. package/dist/{WidthContainer-DmwEcM3F.js → WidthContainer-CeJ1eykf.js} +24 -27
  14. package/dist/auth-DafjnKRu.js +180 -0
  15. package/dist/authkit.js +6 -6
  16. package/dist/common.js +1 -1
  17. package/dist/composables.js +30 -31
  18. package/dist/feedback.js +3 -3
  19. package/dist/index.js +615 -699
  20. package/dist/landingPage.js +1 -1
  21. package/dist/message.js +2 -2
  22. package/dist/pay.js +1 -1
  23. package/dist/privateCom.js +1 -1
  24. package/dist/referrer.js +1 -1
  25. package/dist/style.css +1 -1
  26. package/dist/upload.js +2 -2
  27. package/dist/{useAuthkitAppsAuthPageInfo-Dyjhw7qb.js → useAuthkitAppsAuthPageInfo-C7KEv8pi.js} +1 -1
  28. package/dist/useAuthkitCreateAndUpdate-BpTxxKc0.js +24 -0
  29. package/dist/useAuthkitUsersProfile-eWz3ShS9.js +198 -0
  30. package/dist/{useDownloads-DnMYa52H.js → useDownloads-BpQUd6AV.js} +4 -5
  31. package/dist/{useMessageNotifications-DSRanuRe.js → useMessageNotifications-DZBBxw31.js} +8 -8
  32. package/dist/{useSEO-BKJkX1nG.js → useSEO-sQmoCl0K.js} +2 -2
  33. package/dist/{useTableHandle-DKUIdSSh.js → useTableHandle-DujKY4Bl.js} +14 -15
  34. package/dist/{useUploadCos-D5k1YLb7.js → useUploadCos-CNKDNSrg.js} +1 -1
  35. package/dist/user.js +1 -1
  36. package/package.json +1 -1
  37. package/dist/LandingPageSectionTabs-BrAxO3Ad.js +0 -29013
  38. package/dist/globalConfig-C1YOJcxa.js +0 -22
  39. package/dist/useAuthkitAuthModal-BpOmabWi.js +0 -10
  40. package/dist/useAuthkitCreateAndUpdate-BpPW409v.js +0 -25
  41. package/dist/useAuthkitUsersProfile-zbKT0W_h.js +0 -237
@@ -4,26 +4,26 @@ import { defineComponent as b, ref as r, createBlock as p, openBlock as l, unref
4
4
  /* empty css */
5
5
  /* empty css */
6
6
  import { Spin as V, Empty as K, Button as G, Divider as J, Breadcrumb as O, BreadcrumbItem as x, Modal as P } from "@arco-design/web-vue";
7
- import { api as S } from "@huyooo/api";
8
- import { g as D } from "./globalConfig-C1YOJcxa.js";
7
+ import { g as S } from "./auth-DafjnKRu.js";
8
+ import { api as D } from "@huyooo/api";
9
9
  import { TiptapEditor as Q, TiptapTitle as W } from "@huyooo/vue-tiptap";
10
10
  import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  /* empty css */
12
12
  import { useIntersectionObserver as X } from "@vueuse/core";
13
- import { u as Y } from "./useMessageNotifications-DSRanuRe.js";
13
+ import { u as Y } from "./useMessageNotifications-DZBBxw31.js";
14
14
  import { Icon as Z } from "@iconify/vue";
15
- import { u as ee } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
15
+ import { u as ee } from "./useAuthkitCreateAndUpdate-BpTxxKc0.js";
16
16
  import { M as te } from "./Menu-ejsosUdV.js";
17
17
  function ne(a) {
18
- return S({
19
- url: `${D.prefixUrl}/restfulApi/messageCenter/changelogNotifications/find`,
18
+ return D({
19
+ url: `${S.prefixUrl}/restfulApi/messageCenter/changelogNotifications/find`,
20
20
  method: "post",
21
21
  data: a
22
22
  });
23
23
  }
24
24
  function se(a) {
25
- return S({
26
- url: `${D.prefixUrl}/restfulApi/messageCenter/changelogNotifications/findOne`,
25
+ return D({
26
+ url: `${S.prefixUrl}/restfulApi/messageCenter/changelogNotifications/findOne`,
27
27
  method: "post",
28
28
  data: a
29
29
  });
@@ -318,15 +318,15 @@ const ie = /* @__PURE__ */ b({
318
318
  }
319
319
  }), Ne = /* @__PURE__ */ C(ke, [["__scopeId", "data-v-e755c9b4"]]);
320
320
  function Ce(a) {
321
- return S({
322
- url: `${D.prefixUrl}/restfulApi/messageCenter/eventNotifications/find`,
321
+ return D({
322
+ url: `${S.prefixUrl}/restfulApi/messageCenter/eventNotifications/find`,
323
323
  method: "post",
324
324
  data: a
325
325
  });
326
326
  }
327
327
  function $e(a) {
328
- return S({
329
- url: `${D.prefixUrl}/restfulApi/messageCenter/eventNotifications/findOne`,
328
+ return D({
329
+ url: `${S.prefixUrl}/restfulApi/messageCenter/eventNotifications/findOne`,
330
330
  method: "post",
331
331
  data: a
332
332
  });
@@ -573,15 +573,15 @@ const xe = /* @__PURE__ */ b({
573
573
  }
574
574
  }), Ee = /* @__PURE__ */ C(ze, [["__scopeId", "data-v-7310aa38"]]);
575
575
  function Fe(a) {
576
- return S({
577
- url: `${D.prefixUrl}/restfulApi/messageCenter/noticeNotifications/find`,
576
+ return D({
577
+ url: `${S.prefixUrl}/restfulApi/messageCenter/noticeNotifications/find`,
578
578
  method: "post",
579
579
  data: a
580
580
  });
581
581
  }
582
582
  function Ve(a) {
583
- return S({
584
- url: `${D.prefixUrl}/restfulApi/messageCenter/noticeNotifications/findOne`,
583
+ return D({
584
+ url: `${S.prefixUrl}/restfulApi/messageCenter/noticeNotifications/findOne`,
585
585
  method: "post",
586
586
  data: a
587
587
  });
@@ -6,23 +6,23 @@
6
6
  /* empty css */
7
7
  import { defineComponent as D, ref as U, createBlock as B, openBlock as L, unref as a, isRef as M, withCtx as o, createElementVNode as d, createVNode as r, createTextVNode as u, toDisplayString as n } from "vue";
8
8
  import { Modal as V, Popconfirm as $, Button as E, Tag as g } from "@arco-design/web-vue";
9
- import { api as _ } from "@huyooo/api";
10
- import { g as x } from "./globalConfig-C1YOJcxa.js";
11
- import { u as H } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
12
- import { u as j } from "./useTableHandle-DKUIdSSh.js";
9
+ import { g as _ } from "./auth-DafjnKRu.js";
10
+ import { api as x } from "@huyooo/api";
11
+ import { u as H } from "./useAuthkitCreateAndUpdate-BpTxxKc0.js";
12
+ import { u as j } from "./useTableHandle-DujKY4Bl.js";
13
13
  import { f as y } from "./index-Bb-d5pBq.js";
14
14
  import { C as q } from "./CustomTable-BGm0KdAy.js";
15
15
  import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
16
  function G(m) {
17
- return _({
18
- url: `${x.prefixUrl}/restfulApi/orders/cancel`,
17
+ return x({
18
+ url: `${_.prefixUrl}/restfulApi/orders/cancel`,
19
19
  method: "post",
20
20
  data: m
21
21
  });
22
22
  }
23
23
  function J(m) {
24
- return _({
25
- url: `${x.prefixUrl}/restfulApi/orders/myOrders`,
24
+ return x({
25
+ url: `${_.prefixUrl}/restfulApi/orders/myOrders`,
26
26
  method: "post",
27
27
  data: m
28
28
  });
@@ -3,16 +3,16 @@
3
3
  /* empty css */
4
4
  import { defineComponent as z, ref as d, createBlock as v, openBlock as g, unref as a, withCtx as _, createElementVNode as n, createVNode as A, createCommentVNode as V, toDisplayString as C, createTextVNode as w } from "vue";
5
5
  import { Modal as T } from "@arco-design/web-vue";
6
- import { api as U } from "@huyooo/api";
7
- import { g as y } from "./globalConfig-C1YOJcxa.js";
8
- import { u as B } from "./useTableHandle-DKUIdSSh.js";
6
+ import { g as U } from "./auth-DafjnKRu.js";
7
+ import { api as y } from "@huyooo/api";
8
+ import { u as B } from "./useTableHandle-DujKY4Bl.js";
9
9
  import { C as D } from "./CustomTable-BGm0KdAy.js";
10
- import { C as E } from "./Clipboard-Bful1lNJ.js";
11
- import { a as H } from "./useAuthkitUsersProfile-zbKT0W_h.js";
10
+ import { C as E } from "./Clipboard-CIWjWQOZ.js";
11
+ import { a as H } from "./useAuthkitUsersProfile-eWz3ShS9.js";
12
12
  import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
13
  function $(f) {
14
- return U({
15
- url: `${y.prefixUrl}/restfulApi/referrer/referees`,
14
+ return y({
15
+ url: `${U.prefixUrl}/restfulApi/referrer/referees`,
16
16
  method: "post",
17
17
  data: f
18
18
  });
@@ -5,8 +5,8 @@
5
5
  /* empty css */
6
6
  import { defineComponent as q, createBlock as y, openBlock as F, unref as S, mergeProps as h, createSlots as C, withCtx as u, renderSlot as p } from "vue";
7
7
  import { Upload as I } from "@arco-design/web-vue";
8
- import { u as _ } from "./useUploadCos-D5k1YLb7.js";
9
- import { g as l } from "./globalConfig-C1YOJcxa.js";
8
+ import { u as _ } from "./useUploadCos-CNKDNSrg.js";
9
+ import { g as l } from "./auth-DafjnKRu.js";
10
10
  const O = /* @__PURE__ */ q({
11
11
  __name: "Upload",
12
12
  props: {
@@ -5,14 +5,13 @@ import { I as U } from "./index-Cr5RQSnA.js";
5
5
  /* empty css */
6
6
  import { defineComponent as b, createElementBlock as v, openBlock as u, normalizeStyle as E, normalizeClass as K, createElementVNode as d, computed as B, createBlock as _, createCommentVNode as P, createVNode as r, unref as n, withCtx as l, createTextVNode as k, toDisplayString as S, mergeModels as D, useModel as T, renderSlot as W, ref as p, Fragment as be } from "vue";
7
7
  import { Tag as Ce, Button as X, Avatar as Y, Dropdown as $e, Divider as G, Doption as C } from "@arco-design/web-vue";
8
- import { S as we } from "./PaySubscriptions-77rXNTOt.js";
9
- import { R as Ie } from "./ReferrerReferees-DCALYxND.js";
10
- import { a as N, u as he } from "./useAuthkitUsersProfile-zbKT0W_h.js";
11
- import { u as Ue } from "./useAuthkitAuthModal-BpOmabWi.js";
12
- import { g as q } from "./globalConfig-C1YOJcxa.js";
13
- import { c as Ae, A as Me } from "./AuthkitAuthModal-BdVB7Kz7.js";
14
- import { d as xe } from "./FeedbackModal-BGXr3jPm.js";
15
- import { M as Be } from "./MessageHandle-De7eLBi_.js";
8
+ import { S as we } from "./PaySubscriptions-CMSBkkoi.js";
9
+ import { R as Ie } from "./ReferrerReferees-BFF_mWBd.js";
10
+ import { a as N, u as he } from "./useAuthkitUsersProfile-eWz3ShS9.js";
11
+ import { u as Ue, g as q } from "./auth-DafjnKRu.js";
12
+ import { c as Ae, A as Me } from "./AuthkitAuthModal-EtAHk3jC.js";
13
+ import { d as xe } from "./FeedbackModal-Cf9lDRpp.js";
14
+ import { M as Be } from "./MessageHandle-CVsfCWky.js";
16
15
  /* empty css */
17
16
  import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
17
  import { _ as J, g as Q, i as Z } from "./plugin-vue_export-helper-LjDO2Zua.js";
@@ -568,7 +567,7 @@ const je = Object.assign(z, {
568
567
  onCancel: ue
569
568
  }))], 64)) : P("", !0)]));
570
569
  }
571
- }), Vt = /* @__PURE__ */ I(lt, [["__scopeId", "data-v-9bfab947"]]), ut = {
570
+ }), Pt = /* @__PURE__ */ I(lt, [["__scopeId", "data-v-9bfab947"]]), ut = {
572
571
  class: "UserAccountMenu"
573
572
  }, ct = {
574
573
  class: "avatar"
@@ -600,12 +599,12 @@ const je = Object.assign(z, {
600
599
  })])]);
601
600
  };
602
601
  }
603
- }), Rt = /* @__PURE__ */ I(mt, [["__scopeId", "data-v-b801e222"]]);
602
+ }), Vt = /* @__PURE__ */ I(mt, [["__scopeId", "data-v-b801e222"]]);
604
603
  export {
605
604
  Ke as S,
606
605
  Ye as U,
607
606
  ot as a,
608
607
  it as b,
609
- Vt as c,
610
- Rt as d
608
+ Pt as c,
609
+ Vt as d
611
610
  };
@@ -2,29 +2,26 @@
2
2
  /* empty css */
3
3
  import { defineComponent as g, ref as C, watch as H, createElementBlock as o, openBlock as t, createElementVNode as r, createVNode as _, unref as d, withCtx as Q, resolveComponent as X, createBlock as E, createCommentVNode as $, toDisplayString as I, onMounted as Y, onUnmounted as Z, Fragment as z, renderList as q, normalizeClass as L, normalizeStyle as x, renderSlot as K, computed as P } from "vue";
4
4
  import { Spin as V } from "@arco-design/web-vue";
5
- import { a as B } from "./useAuthkitUsersProfile-zbKT0W_h.js";
6
- import { u as R } from "./useAuthkitAuthModal-BpOmabWi.js";
7
- import { u as D } from "./useAuthkitAppsAuthPageInfo-Dyjhw7qb.js";
8
- /* empty css */
9
- import "@huyooo/api";
10
- import { a as O, w as A, b as G, d as W, f as ee, c as te } from "./useSEO-BKJkX1nG.js";
11
- import "./useUploadCos-D5k1YLb7.js";
5
+ import { a as B } from "./useAuthkitUsersProfile-eWz3ShS9.js";
6
+ import { u as R, a as ee } from "./auth-DafjnKRu.js";
7
+ import { u as D } from "./useAuthkitAppsAuthPageInfo-C7KEv8pi.js";
8
+ import { a as O, w as A, b as G, d as W, f as te, c as ne } from "./useSEO-sQmoCl0K.js";
9
+ import "./useUploadCos-CNKDNSrg.js";
12
10
  import { useRouter as N, useRoute as F } from "vue-router";
13
11
  /* empty css */
14
12
  /* empty css */
15
- import { d as ne, c as j } from "./UserAccountMenu-ul2FbWYe.js";
13
+ import { d as oe, c as j } from "./UserAccountMenu-8Vqgdtq1.js";
16
14
  import "./plugin-vue_export-helper-LjDO2Zua.js";
17
15
  /* empty css */
18
16
  import "./index-Cr5RQSnA.js";
19
17
  /* empty css */
20
- import { M as oe } from "./Menu-ejsosUdV.js";
18
+ import { M as se } from "./Menu-ejsosUdV.js";
21
19
  import "./CollapseItem-Cw1vcdLu.js";
22
20
  /* empty css */
23
21
  import "./CustomTable-BGm0KdAy.js";
24
22
  import "./index-Bb-d5pBq.js";
25
23
  import "@iconify/vue";
26
24
  import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
27
- import { a as se } from "./globalConfig-C1YOJcxa.js";
28
25
  const ae = {
29
26
  class: "SidebarCom"
30
27
  }, ie = {
@@ -92,12 +89,12 @@ const ae = {
92
89
  icon: d(i).applicationLogoUrl,
93
90
  name: d(i).name,
94
91
  onTo: S
95
- }, null, 8, ["icon", "name"])]), r("div", re, [_(oe, {
92
+ }, null, 8, ["icon", "name"])]), r("div", re, [_(se, {
96
93
  "selected-keys": b.value,
97
94
  "onUpdate:selectedKeys": s[0] || (s[0] = (v) => b.value = v),
98
95
  menus: d(u),
99
96
  onChange: w
100
- }, null, 8, ["selected-keys", "menus"])]), r("div", ce, [_(d(ne), {
97
+ }, null, 8, ["selected-keys", "menus"])]), r("div", ce, [_(d(oe), {
101
98
  onArrowClick: s[2] || (s[2] = (v) => f.value = !f.value)
102
99
  }, {
103
100
  avatar: Q(() => [_(d(j), {
@@ -150,7 +147,7 @@ const ae = {
150
147
  }))])])])]);
151
148
  };
152
149
  }
153
- }), kt = /* @__PURE__ */ h(ve, [["__scopeId", "data-v-1778eb2d"]]), ge = {
150
+ }), gt = /* @__PURE__ */ h(ve, [["__scopeId", "data-v-1778eb2d"]]), ge = {
154
151
  class: "ContentHead"
155
152
  }, ye = {
156
153
  class: "title"
@@ -175,7 +172,7 @@ const ae = {
175
172
  const e = n;
176
173
  return (a, c) => (t(), o("div", ge, [r("h1", ye, I(e.title), 1), e.description ? (t(), o("p", be, I(e.description), 1)) : $("", !0)]));
177
174
  }
178
- }), St = /* @__PURE__ */ h(ke, [["__scopeId", "data-v-209a7bef"]]), Se = {
175
+ }), yt = /* @__PURE__ */ h(ke, [["__scopeId", "data-v-209a7bef"]]), Se = {
179
176
  class: "HeaderMenus"
180
177
  }, we = {
181
178
  key: 0,
@@ -360,7 +357,7 @@ const ae = {
360
357
  });
361
358
  }
362
359
  return H(() => S.path, () => {
363
- y.value = ee(S.matched, e.menuType, S.path);
360
+ y.value = te(S.matched, e.menuType, S.path);
364
361
  }, {
365
362
  immediate: !0
366
363
  }), (w, l) => (t(), o("div", Ae, [r("div", Ue, [_(J, {
@@ -399,8 +396,8 @@ const ae = {
399
396
  setup(n) {
400
397
  const e = n, {
401
398
  setGlobalSEO: a
402
- } = te();
403
- a(se);
399
+ } = ne();
400
+ a(ee);
404
401
  const {
405
402
  isChecking: c
406
403
  } = G();
@@ -419,7 +416,7 @@ const ae = {
419
416
  key: 1
420
417
  }, void 0, !0)])], 4));
421
418
  }
422
- }), wt = /* @__PURE__ */ h(Be, [["__scopeId", "data-v-690c2133"]]), Re = /* @__PURE__ */ g({
419
+ }), bt = /* @__PURE__ */ h(Be, [["__scopeId", "data-v-690c2133"]]), Re = /* @__PURE__ */ g({
423
420
  __name: "Gradientbackground",
424
421
  props: {
425
422
  width: {
@@ -480,7 +477,7 @@ const ae = {
480
477
  style: x(c.value)
481
478
  }, null, 4)], 4));
482
479
  }
483
- }), $t = /* @__PURE__ */ h(Re, [["__scopeId", "data-v-b6461ac4"]]), De = {
480
+ }), kt = /* @__PURE__ */ h(Re, [["__scopeId", "data-v-b6461ac4"]]), De = {
484
481
  class: "SvgIcon"
485
482
  }, Oe = ["href", "fill"], Ge = /* @__PURE__ */ g({
486
483
  __name: "SvgIcon",
@@ -507,22 +504,22 @@ const ae = {
507
504
  fill: e.color
508
505
  }, null, 8, Oe)]));
509
506
  }
510
- }), Ct = /* @__PURE__ */ h(Ge, [["__scopeId", "data-v-0a9de94e"]]), We = {}, Ne = {
507
+ }), St = /* @__PURE__ */ h(Ge, [["__scopeId", "data-v-0a9de94e"]]), We = {}, Ne = {
511
508
  class: "WidthContainer"
512
509
  };
513
510
  function Fe(n, e) {
514
511
  return t(), o("div", Ne, [K(n.$slots, "default", {}, void 0, !0)]);
515
512
  }
516
- const It = /* @__PURE__ */ h(We, [["render", Fe], ["__scopeId", "data-v-d06aac1f"]]);
513
+ const wt = /* @__PURE__ */ h(We, [["render", Fe], ["__scopeId", "data-v-d06aac1f"]]);
517
514
  export {
518
- kt as A,
519
- St as C,
520
- wt as D,
521
- $t as G,
515
+ gt as A,
516
+ yt as C,
517
+ bt as D,
518
+ kt as G,
522
519
  He as H,
523
520
  J as L,
524
- Ct as S,
525
- It as W,
521
+ St as S,
522
+ wt as W,
526
523
  le as a,
527
524
  Te as b
528
525
  };
@@ -0,0 +1,180 @@
1
+ /* empty css */
2
+ import { Message as u } from "@arco-design/web-vue";
3
+ import { api as n } from "@huyooo/api";
4
+ import { ref as p } from "vue";
5
+ function y(e, r = 3) {
6
+ const t = e.indexOf("@");
7
+ if (t > 1) {
8
+ const o = e.slice(0, r), c = e.slice(t);
9
+ return o + "***" + c;
10
+ }
11
+ return e;
12
+ }
13
+ function h() {
14
+ try {
15
+ localStorage.removeItem("jwtToken"), localStorage.removeItem("refreshToken");
16
+ } catch (e) {
17
+ console.warn("Failed to clear localStorage:", e);
18
+ }
19
+ }
20
+ function k() {
21
+ try {
22
+ return localStorage.getItem("refreshToken");
23
+ } catch (e) {
24
+ return console.warn("Failed to get refreshToken from localStorage:", e), null;
25
+ }
26
+ }
27
+ function m(e) {
28
+ try {
29
+ localStorage.setItem("jwtToken", e);
30
+ } catch (r) {
31
+ console.warn("Failed to update jwtToken in localStorage:", r);
32
+ }
33
+ }
34
+ let a = {
35
+ appId: "",
36
+ prefixUrl: "",
37
+ authPrefixUrl: "",
38
+ avatarBucketId: "68350c206888f565dc7d09e9",
39
+ feedbackBucketId: "6826e4db6888f565dc775dce",
40
+ bucket: "ones-1358549778",
41
+ region: "ap-beijing",
42
+ web3formsAccessKey: "72604aac-d55e-4df0-9bcf-31b2206b3753"
43
+ }, g = {};
44
+ function A(e) {
45
+ Object.assign(g, e);
46
+ }
47
+ function S(e) {
48
+ a.appId = e.appId, a.prefixUrl = e.prefixUrl, a.authPrefixUrl = e.authPrefixUrl, e.avatarBucketId !== void 0 && (a.avatarBucketId = e.avatarBucketId), e.feedbackBucketId !== void 0 && (a.feedbackBucketId = e.feedbackBucketId), e.bucket !== void 0 && (a.bucket = e.bucket), e.region !== void 0 && (a.region = e.region), e.web3formsAccessKey !== void 0 && (a.web3formsAccessKey = e.web3formsAccessKey);
49
+ }
50
+ const b = p(!1);
51
+ function T() {
52
+ return {
53
+ show: b
54
+ };
55
+ }
56
+ let i = !1, f = [];
57
+ function d(e, r = null) {
58
+ f.forEach(({
59
+ resolve: t,
60
+ reject: o
61
+ }) => {
62
+ e ? o(e) : t(r);
63
+ }), f = [];
64
+ }
65
+ async function I() {
66
+ var r;
67
+ const e = k();
68
+ if (!e)
69
+ throw new Error("No refresh token available");
70
+ try {
71
+ const t = await P(e), {
72
+ data: o
73
+ } = t;
74
+ if (o.success && ((r = o.data) != null && r.jwtToken))
75
+ return m(o.data.jwtToken), o.data.refreshToken && localStorage.setItem("refreshToken", o.data.refreshToken), o.data.jwtToken;
76
+ throw new Error(o.message || "Token refresh failed");
77
+ } catch (t) {
78
+ throw console.error("Token refresh failed:", t), h(), t;
79
+ }
80
+ }
81
+ n.interceptors.request.use((e) => {
82
+ console.log(e, "configconfig");
83
+ const r = localStorage.getItem("jwtToken");
84
+ return r && (e.headers.authorization = `Bearer ${r}`), e.headers["app-id"] = a.appId, e;
85
+ }, (e) => Promise.reject(e));
86
+ n.interceptors.response.use(async (e) => {
87
+ const {
88
+ data: {
89
+ message: r,
90
+ success: t,
91
+ code: o
92
+ }
93
+ } = e;
94
+ if (console.log(e.data, "dsdsds"), t)
95
+ return e.data;
96
+ if (o === 40101) {
97
+ console.log(e, "response");
98
+ const c = e.config;
99
+ if (i)
100
+ return new Promise((s, l) => {
101
+ f.push({
102
+ resolve: s,
103
+ reject: l
104
+ });
105
+ }).then((s) => (c.headers.authorization = `Bearer ${s}`, n(c))).catch((s) => Promise.reject(s));
106
+ c._retry = !0, i = !0;
107
+ try {
108
+ const s = await I();
109
+ return d(null, s), c.headers.authorization = `Bearer ${s}`, n(c);
110
+ } catch (s) {
111
+ d(s, null), h();
112
+ const {
113
+ show: l
114
+ } = T();
115
+ return l.value = !0, Promise.reject(s);
116
+ } finally {
117
+ i = !1;
118
+ }
119
+ } else
120
+ return u.error(r), Promise.reject(e.data);
121
+ }, (e) => {
122
+ if (e.response) {
123
+ const {
124
+ data: r
125
+ } = e.response, {
126
+ message: t
127
+ } = r || {};
128
+ console.log(e.response, "error.response"), console.error("Error Response:", e.response), u.error(t || "服务错误");
129
+ } else e.request ? (console.error("Error Request:", e.request), u.error("网络错误,请检查网络连接")) : (console.error("Error Message:", e.message), u.error(e.message || "服务错误"));
130
+ return Promise.reject(e);
131
+ });
132
+ function U(e) {
133
+ return n({
134
+ url: `${a.authPrefixUrl}/restfulApi/auth/signIn`,
135
+ method: "post",
136
+ data: e
137
+ });
138
+ }
139
+ function B(e) {
140
+ return n({
141
+ url: `${a.authPrefixUrl}/restfulApi/auth/resetPassword`,
142
+ method: "post",
143
+ data: e
144
+ });
145
+ }
146
+ function E(e) {
147
+ return n({
148
+ url: `${a.authPrefixUrl}/restfulApi/auth/signUp`,
149
+ method: "post",
150
+ data: e
151
+ });
152
+ }
153
+ function R(e) {
154
+ return n({
155
+ url: `${a.authPrefixUrl}/restfulApi/oauth2/authorize`,
156
+ method: "post",
157
+ data: e
158
+ });
159
+ }
160
+ function P(e) {
161
+ return n({
162
+ url: "/restfulApi/auth/refresh",
163
+ method: "post",
164
+ data: {
165
+ refreshToken: e
166
+ }
167
+ });
168
+ }
169
+ export {
170
+ g as a,
171
+ A as b,
172
+ B as c,
173
+ E as d,
174
+ U as e,
175
+ a as g,
176
+ y as h,
177
+ R as o,
178
+ S as s,
179
+ T as u
180
+ };
package/dist/authkit.js CHANGED
@@ -1,9 +1,9 @@
1
- import { A as a, a as s, c as u, b as A, n as h, E as e, k as r, l as o, _ as k, O as n, f as d, o as p, P as f, j as m, R as P, S, i as g, m as l, d as w, e as U, g as c, h as x } from "./AuthkitAuthModal-BdVB7Kz7.js";
2
- import { A as y, a as E } from "./AuthkitAuthorize-bzCh_YJp.js";
3
- import { u as C } from "./useAuthkitAppsAuthPageInfo-Dyjhw7qb.js";
4
- import { u as V, a as b } from "./useAuthkitUsersProfile-zbKT0W_h.js";
5
- import { u as B } from "./useAuthkitAuthModal-BpOmabWi.js";
6
- import { u as j } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
1
+ import { A as a, a as s, c as u, b as A, n as h, E as e, k as r, l as o, _ as k, O as n, f as d, o as p, P as f, j as m, R as P, S, i as g, m as l, d as w, e as U, g as c, h as x } from "./AuthkitAuthModal-EtAHk3jC.js";
2
+ import { A as y, a as E } from "./AuthkitAuthorize-iudRkudt.js";
3
+ import { u as C } from "./useAuthkitAppsAuthPageInfo-C7KEv8pi.js";
4
+ import { u as V, a as b } from "./useAuthkitUsersProfile-eWz3ShS9.js";
5
+ import { u as B } from "./auth-DafjnKRu.js";
6
+ import { u as j } from "./useAuthkitCreateAndUpdate-BpTxxKc0.js";
7
7
  export {
8
8
  a as AuthkitAppSetting,
9
9
  s as AuthkitAuth,
package/dist/common.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as s, a as o, C as t, D as r, G as p, H as n, b as l, L as u, S as C, W as d } from "./WidthContainer-DmwEcM3F.js";
1
+ import { A as s, a as o, C as t, D as r, G as p, H as n, b as l, L as u, S as C, W as d } from "./WidthContainer-CeJ1eykf.js";
2
2
  import { C as i, a as f } from "./CollapseItem-Cw1vcdLu.js";
3
3
  import { C as x, E as H } from "./CustomTable-BGm0KdAy.js";
4
4
  import { M, a as g } from "./Menu-ejsosUdV.js";
@@ -1,33 +1,32 @@
1
- import { u as o, a } from "./useAuthkitUsersProfile-zbKT0W_h.js";
2
- import { u } from "./useAuthkitAuthModal-BpOmabWi.js";
3
- import { u as i } from "./useAuthkitAppsAuthPageInfo-Dyjhw7qb.js";
4
- import { u as n } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
5
- import { u as l } from "./useMessageNotifications-DSRanuRe.js";
6
- import { g as A, a as h, s as d, b as x } from "./globalConfig-C1YOJcxa.js";
7
- import { u as C, a as b } from "./useDownloads-DnMYa52H.js";
8
- import { u as c } from "./useTableHandle-DKUIdSSh.js";
9
- import { f as E, u as M, a as O, b as P, d as S, c as U, w as D } from "./useSEO-BKJkX1nG.js";
10
- import { u as R } from "./useUploadCos-D5k1YLb7.js";
1
+ import { u as a, a as o } from "./useAuthkitUsersProfile-eWz3ShS9.js";
2
+ import { g as u, a as r, s as i, b as f, u as n } from "./auth-DafjnKRu.js";
3
+ import { u as p } from "./useAuthkitAppsAuthPageInfo-C7KEv8pi.js";
4
+ import { u as m } from "./useAuthkitCreateAndUpdate-BpTxxKc0.js";
5
+ import { u as d } from "./useMessageNotifications-DZBBxw31.js";
6
+ import { u as x, a as C } from "./useDownloads-BpQUd6AV.js";
7
+ import { u as k } from "./useTableHandle-DujKY4Bl.js";
8
+ import { f as w, u as E, a as M, b as O, d as P, c as S, w as U } from "./useSEO-sQmoCl0K.js";
9
+ import { u as G } from "./useUploadCos-CNKDNSrg.js";
11
10
  export {
12
- E as findMenuPath,
13
- A as globalConfig,
14
- h as globalSEOConfig,
15
- d as setGlobalConfig,
16
- x as setGlobalSEOConfig,
17
- M as useActiveDoc,
18
- O as useAuthMenu,
19
- i as useAuthkitAppsAuthPageInfo,
20
- o as useAuthkitAuth,
21
- u as useAuthkitAuthModal,
22
- n as useAuthkitCreateAndUpdate,
23
- a as useAuthkitUsersProfile,
24
- C as useCommonCreateAndUpdate,
25
- b as useDownloads,
26
- l as useMessageNotifications,
27
- P as useRoutePermission,
28
- S as useRouteSEO,
29
- U as useSEO,
30
- c as useTableHandle,
31
- R as useUploadCos,
32
- D as withViewTransition
11
+ w as findMenuPath,
12
+ u as globalConfig,
13
+ r as globalSEOConfig,
14
+ i as setGlobalConfig,
15
+ f as setGlobalSEOConfig,
16
+ E as useActiveDoc,
17
+ M as useAuthMenu,
18
+ p as useAuthkitAppsAuthPageInfo,
19
+ a as useAuthkitAuth,
20
+ n as useAuthkitAuthModal,
21
+ m as useAuthkitCreateAndUpdate,
22
+ o as useAuthkitUsersProfile,
23
+ x as useCommonCreateAndUpdate,
24
+ C as useDownloads,
25
+ d as useMessageNotifications,
26
+ O as useRoutePermission,
27
+ P as useRouteSEO,
28
+ S as useSEO,
29
+ k as useTableHandle,
30
+ G as useUploadCos,
31
+ U as withViewTransition
33
32
  };
package/dist/feedback.js CHANGED
@@ -1,6 +1,6 @@
1
- import { _ as b, a as s, F as d, b as F, c, d as o, R as t } from "./FeedbackModal-BGXr3jPm.js";
2
- import { C as r } from "./Clipboard-Bful1lNJ.js";
3
- import { F as m, a as n, c as f, b as i, d as p } from "./FeedbackItem-DFCuTCaI.js";
1
+ import { _ as b, a as s, F as d, b as F, c, d as o, R as t } from "./FeedbackModal-Cf9lDRpp.js";
2
+ import { C as r } from "./Clipboard-CIWjWQOZ.js";
3
+ import { F as m, a as n, c as f, b as i, d as p } from "./FeedbackItem-4WHDAqT0.js";
4
4
  export {
5
5
  r as Clipboard,
6
6
  b as FeedbackBubbleEnd,