@huyooo/ui 0.5.25 → 0.5.27

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 (34) hide show
  1. package/dist/{AuthkitAuthModal-EtAHk3jC.js → AuthkitAuthModal-P9GI9wIQ.js} +8 -9
  2. package/dist/{AuthkitAuthorize-iudRkudt.js → AuthkitAuthorize-Bv2MspFC.js} +2 -2
  3. package/dist/{Contact-Dy9U5zuU.js → Contact-DTGCcXv9.js} +2 -2
  4. package/dist/{FeedbackItem-4WHDAqT0.js → FeedbackItem-DLJhHHDM.js} +3 -3
  5. package/dist/{FeedbackModal-Cf9lDRpp.js → FeedbackModal-OsCK3NqC.js} +4 -5
  6. package/dist/LandingPageSectionTabs-DTVCmfyQ.js +58318 -0
  7. package/dist/{MessageHandle-CVsfCWky.js → MessageHandle-CdOMmp4n.js} +16 -17
  8. package/dist/{PaySubscriptions-CMSBkkoi.js → PaySubscriptions-DVhnjdi3.js} +7 -8
  9. package/dist/{ReferrerReferees-BFF_mWBd.js → ReferrerReferees-Bfu2z-0W.js} +17 -18
  10. package/dist/{Upload.vue_vue_type_script_setup_true_lang-DA9w3O2R.js → Upload.vue_vue_type_script_setup_true_lang-CoOnOaNP.js} +2 -2
  11. package/dist/{UserAccountMenu-8Vqgdtq1.js → UserAccountMenu-AhID9xxq.js} +7 -7
  12. package/dist/{WidthContainer-CeJ1eykf.js → WidthContainer-BACUO8zY.js} +6 -6
  13. package/dist/{auth-DafjnKRu.js → auth-B864DrVx.js} +75 -70
  14. package/dist/authkit.js +5 -5
  15. package/dist/common.js +1 -1
  16. package/dist/components/Authkit/Auth/AuthkitAuthorize.vue.d.ts +1 -1
  17. package/dist/composables.js +6 -6
  18. package/dist/feedback.js +2 -2
  19. package/dist/index.js +176 -177
  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/upload.js +2 -2
  26. package/dist/{useAuthkitAppsAuthPageInfo-C7KEv8pi.js → useAuthkitAppsAuthPageInfo-Ct-ElH04.js} +16 -17
  27. package/dist/{useAuthkitUsersProfile-eWz3ShS9.js → useAuthkitUsersProfile-B1y2nleU.js} +30 -31
  28. package/dist/{useMessageNotifications-DZBBxw31.js → useMessageNotifications-BUJtc-Us.js} +25 -26
  29. package/dist/{useSEO-sQmoCl0K.js → useSEO-CFQMgnVq.js} +2 -2
  30. package/dist/{useUploadCos-CNKDNSrg.js → useUploadCos-Ca4Mo5FD.js} +3 -4
  31. package/dist/user.js +1 -1
  32. package/dist/utils/request.d.ts +2 -1
  33. package/package.json +2 -2
  34. package/dist/LandingPageSectionTabs-CHUcFEzO.js +0 -38248
@@ -4,26 +4,25 @@ 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 { g as S } from "./auth-DafjnKRu.js";
8
- import { api as D } from "@huyooo/api";
7
+ import { c as S, g as D } from "./auth-B864DrVx.js";
9
8
  import { TiptapEditor as Q, TiptapTitle as W } from "@huyooo/vue-tiptap";
10
9
  import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
10
  /* empty css */
12
11
  import { useIntersectionObserver as X } from "@vueuse/core";
13
- import { u as Y } from "./useMessageNotifications-DZBBxw31.js";
12
+ import { u as Y } from "./useMessageNotifications-BUJtc-Us.js";
14
13
  import { Icon as Z } from "@iconify/vue";
15
14
  import { u as ee } from "./useAuthkitCreateAndUpdate-BpTxxKc0.js";
16
15
  import { M as te } from "./Menu-ejsosUdV.js";
17
16
  function ne(a) {
18
- return D({
19
- url: `${S.prefixUrl}/restfulApi/messageCenter/changelogNotifications/find`,
17
+ return S({
18
+ url: `${D.prefixUrl}/restfulApi/messageCenter/changelogNotifications/find`,
20
19
  method: "post",
21
20
  data: a
22
21
  });
23
22
  }
24
23
  function se(a) {
25
- return D({
26
- url: `${S.prefixUrl}/restfulApi/messageCenter/changelogNotifications/findOne`,
24
+ return S({
25
+ url: `${D.prefixUrl}/restfulApi/messageCenter/changelogNotifications/findOne`,
27
26
  method: "post",
28
27
  data: a
29
28
  });
@@ -318,15 +317,15 @@ const ie = /* @__PURE__ */ b({
318
317
  }
319
318
  }), Ne = /* @__PURE__ */ C(ke, [["__scopeId", "data-v-e755c9b4"]]);
320
319
  function Ce(a) {
321
- return D({
322
- url: `${S.prefixUrl}/restfulApi/messageCenter/eventNotifications/find`,
320
+ return S({
321
+ url: `${D.prefixUrl}/restfulApi/messageCenter/eventNotifications/find`,
323
322
  method: "post",
324
323
  data: a
325
324
  });
326
325
  }
327
326
  function $e(a) {
328
- return D({
329
- url: `${S.prefixUrl}/restfulApi/messageCenter/eventNotifications/findOne`,
327
+ return S({
328
+ url: `${D.prefixUrl}/restfulApi/messageCenter/eventNotifications/findOne`,
330
329
  method: "post",
331
330
  data: a
332
331
  });
@@ -573,15 +572,15 @@ const xe = /* @__PURE__ */ b({
573
572
  }
574
573
  }), Ee = /* @__PURE__ */ C(ze, [["__scopeId", "data-v-7310aa38"]]);
575
574
  function Fe(a) {
576
- return D({
577
- url: `${S.prefixUrl}/restfulApi/messageCenter/noticeNotifications/find`,
575
+ return S({
576
+ url: `${D.prefixUrl}/restfulApi/messageCenter/noticeNotifications/find`,
578
577
  method: "post",
579
578
  data: a
580
579
  });
581
580
  }
582
581
  function Ve(a) {
583
- return D({
584
- url: `${S.prefixUrl}/restfulApi/messageCenter/noticeNotifications/findOne`,
582
+ return S({
583
+ url: `${D.prefixUrl}/restfulApi/messageCenter/noticeNotifications/findOne`,
585
584
  method: "post",
586
585
  data: a
587
586
  });
@@ -802,14 +801,14 @@ const Ke = /* @__PURE__ */ b({
802
801
  onCancel: t
803
802
  }, null, 8, ["selected-keys", "menus"]));
804
803
  }
805
- }), ft = /* @__PURE__ */ C(Qe, [["__scopeId", "data-v-dd5fd3b4"]]);
804
+ }), dt = /* @__PURE__ */ C(Qe, [["__scopeId", "data-v-dd5fd3b4"]]);
806
805
  export {
807
806
  Pe as A,
808
807
  Ne as C,
809
808
  U as D,
810
809
  Te as E,
811
810
  ce as I,
812
- ft as M,
811
+ dt as M,
813
812
  He as N,
814
813
  ae as _,
815
814
  Le as a,
@@ -6,23 +6,22 @@
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 { g as _ } from "./auth-DafjnKRu.js";
10
- import { api as x } from "@huyooo/api";
9
+ import { c as _, g as x } from "./auth-B864DrVx.js";
11
10
  import { u as H } from "./useAuthkitCreateAndUpdate-BpTxxKc0.js";
12
11
  import { u as j } from "./useTableHandle-DujKY4Bl.js";
13
12
  import { f as y } from "./index-Bb-d5pBq.js";
14
13
  import { C as q } from "./CustomTable-BGm0KdAy.js";
15
14
  import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
15
  function G(m) {
17
- return x({
18
- url: `${_.prefixUrl}/restfulApi/orders/cancel`,
16
+ return _({
17
+ url: `${x.prefixUrl}/restfulApi/orders/cancel`,
19
18
  method: "post",
20
19
  data: m
21
20
  });
22
21
  }
23
22
  function J(m) {
24
- return x({
25
- url: `${_.prefixUrl}/restfulApi/orders/myOrders`,
23
+ return _({
24
+ url: `${x.prefixUrl}/restfulApi/orders/myOrders`,
26
25
  method: "post",
27
26
  data: m
28
27
  });
@@ -274,7 +273,7 @@ const K = [{
274
273
  _: 1
275
274
  }, 8, ["visible", "onCancel"]));
276
275
  }
277
- }), vt = /* @__PURE__ */ F(at, [["__scopeId", "data-v-8d63590c"]]);
276
+ }), bt = /* @__PURE__ */ F(at, [["__scopeId", "data-v-8d63590c"]]);
278
277
  export {
279
- vt as S
278
+ bt as S
280
279
  };
@@ -3,18 +3,17 @@
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 { g as U } from "./auth-DafjnKRu.js";
7
- import { api as y } from "@huyooo/api";
6
+ import { c as U, g as y } from "./auth-B864DrVx.js";
8
7
  import { u as B } from "./useTableHandle-DujKY4Bl.js";
9
8
  import { C as D } from "./CustomTable-BGm0KdAy.js";
10
9
  import { C as E } from "./Clipboard-CIWjWQOZ.js";
11
- import { a as H } from "./useAuthkitUsersProfile-eWz3ShS9.js";
10
+ import { a as H } from "./useAuthkitUsersProfile-B1y2nleU.js";
12
11
  import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- function $(f) {
14
- return y({
15
- url: `${U.prefixUrl}/restfulApi/referrer/referees`,
12
+ function $(c) {
13
+ return U({
14
+ url: `${y.prefixUrl}/restfulApi/referrer/referees`,
16
15
  method: "post",
17
- data: f
16
+ data: c
18
17
  });
19
18
  }
20
19
  const j = {
@@ -24,13 +23,13 @@ const j = {
24
23
  }, F = /* @__PURE__ */ z({
25
24
  __name: "ReferrerReferees",
26
25
  emits: ["cancel"],
27
- setup(f, {
26
+ setup(c, {
28
27
  expose: h,
29
28
  emit: b
30
29
  }) {
31
30
  const x = b, {
32
31
  pagination: t,
33
- dataSource: c,
32
+ dataSource: f,
34
33
  setPage: m
35
34
  } = B("被邀请人"), {
36
35
  userProfile: s
@@ -54,7 +53,7 @@ const j = {
54
53
  }).then(({
55
54
  data: e
56
55
  }) => {
57
- o.value = !1, c.value = e.items, t.value.total = e.count;
56
+ o.value = !1, f.value = e.items, t.value.total = e.count;
58
57
  }).catch(() => {
59
58
  o.value = !1;
60
59
  });
@@ -74,9 +73,9 @@ const j = {
74
73
  }
75
74
  return h({
76
75
  setData: P
77
- }), (e, i) => (g(), v(a(T), {
76
+ }), (e, l) => (g(), v(a(T), {
78
77
  visible: r.value,
79
- "onUpdate:visible": i[0] || (i[0] = (l) => r.value = l),
78
+ "onUpdate:visible": l[0] || (l[0] = (i) => r.value = i),
80
79
  title: "被邀请人详情",
81
80
  width: "60%",
82
81
  "ok-loading": o.value,
@@ -86,16 +85,16 @@ const j = {
86
85
  onCancel: N
87
86
  }, {
88
87
  default: _(() => {
89
- var l, p;
90
- return [n("div", j, [i[1] || (i[1] = n("div", {
88
+ var i, p;
89
+ return [n("div", j, [l[1] || (l[1] = n("div", {
91
90
  class: "invite-code-label"
92
- }, "我的邀请码:", -1)), n("div", q, [n("span", null, C(((l = a(s)) == null ? void 0 : l.referrerId) || "-"), 1), (p = a(s)) != null && p.referrerId ? (g(), v(E, {
91
+ }, "我的邀请码:", -1)), n("div", q, [n("span", null, C(((i = a(s)) == null ? void 0 : i.referrerId) || "-"), 1), (p = a(s)) != null && p.referrerId ? (g(), v(E, {
93
92
  key: 0,
94
93
  value: a(s).referrerId,
95
94
  message: "邀请码复制成功"
96
95
  }, null, 8, ["value"])) : V("", !0)])]), A(D, {
97
96
  columns: k,
98
- data: a(c),
97
+ data: a(f),
99
98
  loading: o.value,
100
99
  pagination: a(t),
101
100
  onPageChange: I,
@@ -110,7 +109,7 @@ const j = {
110
109
  _: 1
111
110
  }, 8, ["visible", "ok-loading"]));
112
111
  }
113
- }), ae = /* @__PURE__ */ M(F, [["__scopeId", "data-v-122fc8d6"]]);
112
+ }), te = /* @__PURE__ */ M(F, [["__scopeId", "data-v-122fc8d6"]]);
114
113
  export {
115
- ae as R
114
+ te as R
116
115
  };
@@ -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-CNKDNSrg.js";
9
- import { g as l } from "./auth-DafjnKRu.js";
8
+ import { u as _ } from "./useUploadCos-Ca4Mo5FD.js";
9
+ import { g as l } from "./auth-B864DrVx.js";
10
10
  const O = /* @__PURE__ */ q({
11
11
  __name: "Upload",
12
12
  props: {
@@ -5,13 +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-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";
8
+ import { S as we } from "./PaySubscriptions-DVhnjdi3.js";
9
+ import { R as Ie } from "./ReferrerReferees-Bfu2z-0W.js";
10
+ import { a as N, u as he } from "./useAuthkitUsersProfile-B1y2nleU.js";
11
+ import { u as Ue, g as q } from "./auth-B864DrVx.js";
12
+ import { c as Ae, A as Me } from "./AuthkitAuthModal-P9GI9wIQ.js";
13
+ import { d as xe } from "./FeedbackModal-OsCK3NqC.js";
14
+ import { M as Be } from "./MessageHandle-CdOMmp4n.js";
15
15
  /* empty css */
16
16
  import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
17
  import { _ as J, g as Q, i as Z } from "./plugin-vue_export-helper-LjDO2Zua.js";
@@ -2,15 +2,15 @@
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-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";
5
+ import { a as B } from "./useAuthkitUsersProfile-B1y2nleU.js";
6
+ import { u as R, a as ee } from "./auth-B864DrVx.js";
7
+ import { u as D } from "./useAuthkitAppsAuthPageInfo-Ct-ElH04.js";
8
+ import { a as O, w as A, b as G, d as W, f as te, c as ne } from "./useSEO-CFQMgnVq.js";
9
+ import "./useUploadCos-Ca4Mo5FD.js";
10
10
  import { useRouter as N, useRoute as F } from "vue-router";
11
11
  /* empty css */
12
12
  /* empty css */
13
- import { d as oe, c as j } from "./UserAccountMenu-8Vqgdtq1.js";
13
+ import { d as oe, c as j } from "./UserAccountMenu-AhID9xxq.js";
14
14
  import "./plugin-vue_export-helper-LjDO2Zua.js";
15
15
  /* empty css */
16
16
  import "./index-Cr5RQSnA.js";
@@ -1,37 +1,37 @@
1
1
  /* empty css */
2
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) {
3
+ import k from "axios";
4
+ import { ref as m } from "vue";
5
+ function S(e, r = 3) {
6
6
  const t = e.indexOf("@");
7
7
  if (t > 1) {
8
- const o = e.slice(0, r), c = e.slice(t);
9
- return o + "***" + c;
8
+ const o = e.slice(0, r), i = e.slice(t);
9
+ return o + "***" + i;
10
10
  }
11
11
  return e;
12
12
  }
13
- function h() {
13
+ function p() {
14
14
  try {
15
15
  localStorage.removeItem("jwtToken"), localStorage.removeItem("refreshToken");
16
16
  } catch (e) {
17
17
  console.warn("Failed to clear localStorage:", e);
18
18
  }
19
19
  }
20
- function k() {
20
+ function g() {
21
21
  try {
22
22
  return localStorage.getItem("refreshToken");
23
23
  } catch (e) {
24
24
  return console.warn("Failed to get refreshToken from localStorage:", e), null;
25
25
  }
26
26
  }
27
- function m(e) {
27
+ function b(e) {
28
28
  try {
29
29
  localStorage.setItem("jwtToken", e);
30
30
  } catch (r) {
31
31
  console.warn("Failed to update jwtToken in localStorage:", r);
32
32
  }
33
33
  }
34
- let a = {
34
+ let s = {
35
35
  appId: "",
36
36
  prefixUrl: "",
37
37
  authPrefixUrl: "",
@@ -40,84 +40,88 @@ let a = {
40
40
  bucket: "ones-1358549778",
41
41
  region: "ap-beijing",
42
42
  web3formsAccessKey: "72604aac-d55e-4df0-9bcf-31b2206b3753"
43
- }, g = {};
44
- function A(e) {
45
- Object.assign(g, e);
43
+ }, T = {};
44
+ function U(e) {
45
+ Object.assign(T, e);
46
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);
47
+ function B(e) {
48
+ s.appId = e.appId, s.prefixUrl = e.prefixUrl, s.authPrefixUrl = e.authPrefixUrl, e.avatarBucketId !== void 0 && (s.avatarBucketId = e.avatarBucketId), e.feedbackBucketId !== void 0 && (s.feedbackBucketId = e.feedbackBucketId), e.bucket !== void 0 && (s.bucket = e.bucket), e.region !== void 0 && (s.region = e.region), e.web3formsAccessKey !== void 0 && (s.web3formsAccessKey = e.web3formsAccessKey);
49
49
  }
50
- const b = p(!1);
51
- function T() {
50
+ const I = m(!1);
51
+ function P() {
52
52
  return {
53
- show: b
53
+ show: I
54
54
  };
55
55
  }
56
- let i = !1, f = [];
57
- function d(e, r = null) {
58
- f.forEach(({
56
+ const n = k.create({
57
+ timeout: 3e4,
58
+ headers: {
59
+ "Content-Type": "application/json"
60
+ }
61
+ });
62
+ let f = !1, d = [];
63
+ function h(e, r = null) {
64
+ d.forEach(({
59
65
  resolve: t,
60
66
  reject: o
61
67
  }) => {
62
68
  e ? o(e) : t(r);
63
- }), f = [];
69
+ }), d = [];
64
70
  }
65
- async function I() {
71
+ async function w() {
66
72
  var r;
67
- const e = k();
73
+ const e = g();
68
74
  if (!e)
69
75
  throw new Error("No refresh token available");
70
76
  try {
71
- const t = await P(e), {
77
+ const t = await j(e), {
72
78
  data: o
73
79
  } = t;
74
80
  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;
81
+ return b(o.data.jwtToken), o.data.refreshToken && localStorage.setItem("refreshToken", o.data.refreshToken), o.data.jwtToken;
76
82
  throw new Error(o.message || "Token refresh failed");
77
83
  } catch (t) {
78
- throw console.error("Token refresh failed:", t), h(), t;
84
+ throw console.error("Token refresh failed:", t), p(), t;
79
85
  }
80
86
  }
81
87
  n.interceptors.request.use((e) => {
82
88
  console.log(e, "configconfig");
83
89
  const r = localStorage.getItem("jwtToken");
84
- return r && (e.headers.authorization = `Bearer ${r}`), e.headers["app-id"] = a.appId, e;
90
+ return r && e.headers && (e.headers.authorization = `Bearer ${r}`), e.headers && (e.headers["app-id"] = s.appId), e;
85
91
  }, (e) => Promise.reject(e));
86
92
  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) {
93
+ const r = (e == null ? void 0 : e.data) || {}, {
94
+ message: t,
95
+ success: o,
96
+ code: i
97
+ } = r;
98
+ if (console.log(r, "dsdsds"), o)
99
+ return r;
100
+ if (i === 40101) {
97
101
  console.log(e, "response");
98
102
  const c = e.config;
99
- if (i)
100
- return new Promise((s, l) => {
101
- f.push({
102
- resolve: s,
103
+ if (f)
104
+ return new Promise((a, l) => {
105
+ d.push({
106
+ resolve: a,
103
107
  reject: l
104
108
  });
105
- }).then((s) => (c.headers.authorization = `Bearer ${s}`, n(c))).catch((s) => Promise.reject(s));
106
- c._retry = !0, i = !0;
109
+ }).then((a) => (c.headers && (c.headers.authorization = `Bearer ${a}`), n(c))).catch((a) => Promise.reject(a));
110
+ c._retry = !0, f = !0;
107
111
  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 a = await w();
113
+ return h(null, a), c.headers && (c.headers.authorization = `Bearer ${a}`), n(c);
114
+ } catch (a) {
115
+ h(a, null), p();
112
116
  const {
113
117
  show: l
114
- } = T();
115
- return l.value = !0, Promise.reject(s);
118
+ } = P();
119
+ return l.value = !0, Promise.reject(a);
116
120
  } finally {
117
- i = !1;
121
+ f = !1;
118
122
  }
119
123
  } else
120
- return u.error(r), Promise.reject(e.data);
124
+ return u.error(t || "请求失败"), Promise.reject(r);
121
125
  }, (e) => {
122
126
  if (e.response) {
123
127
  const {
@@ -129,35 +133,35 @@ n.interceptors.response.use(async (e) => {
129
133
  } else e.request ? (console.error("Error Request:", e.request), u.error("网络错误,请检查网络连接")) : (console.error("Error Message:", e.message), u.error(e.message || "服务错误"));
130
134
  return Promise.reject(e);
131
135
  });
132
- function U(e) {
136
+ function E(e) {
133
137
  return n({
134
- url: `${a.authPrefixUrl}/restfulApi/auth/signIn`,
138
+ url: `${s.authPrefixUrl}/restfulApi/auth/signIn`,
135
139
  method: "post",
136
140
  data: e
137
141
  });
138
142
  }
139
- function B(e) {
143
+ function R(e) {
140
144
  return n({
141
- url: `${a.authPrefixUrl}/restfulApi/auth/resetPassword`,
145
+ url: `${s.authPrefixUrl}/restfulApi/auth/resetPassword`,
142
146
  method: "post",
143
147
  data: e
144
148
  });
145
149
  }
146
- function E(e) {
150
+ function $(e) {
147
151
  return n({
148
- url: `${a.authPrefixUrl}/restfulApi/auth/signUp`,
152
+ url: `${s.authPrefixUrl}/restfulApi/auth/signUp`,
149
153
  method: "post",
150
154
  data: e
151
155
  });
152
156
  }
153
- function R(e) {
157
+ function q(e) {
154
158
  return n({
155
- url: `${a.authPrefixUrl}/restfulApi/oauth2/authorize`,
159
+ url: `${s.authPrefixUrl}/restfulApi/oauth2/authorize`,
156
160
  method: "post",
157
161
  data: e
158
162
  });
159
163
  }
160
- function P(e) {
164
+ function j(e) {
161
165
  return n({
162
166
  url: "/restfulApi/auth/refresh",
163
167
  method: "post",
@@ -167,14 +171,15 @@ function P(e) {
167
171
  });
168
172
  }
169
173
  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
174
+ T as a,
175
+ U as b,
176
+ n as c,
177
+ R as d,
178
+ $ as e,
179
+ E as f,
180
+ s as g,
181
+ S as h,
182
+ q as o,
183
+ B as s,
184
+ P as u
180
185
  };
package/dist/authkit.js CHANGED
@@ -1,8 +1,8 @@
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";
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-P9GI9wIQ.js";
2
+ import { A as y, a as E } from "./AuthkitAuthorize-Bv2MspFC.js";
3
+ import { u as C } from "./useAuthkitAppsAuthPageInfo-Ct-ElH04.js";
4
+ import { u as V, a as b } from "./useAuthkitUsersProfile-B1y2nleU.js";
5
+ import { u as B } from "./auth-B864DrVx.js";
6
6
  import { u as j } from "./useAuthkitCreateAndUpdate-BpTxxKc0.js";
7
7
  export {
8
8
  a as AuthkitAppSetting,
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-CeJ1eykf.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-BACUO8zY.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";
@@ -92,12 +92,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
92
92
  default: () => string;
93
93
  };
94
94
  }>> & Readonly<{}>, {
95
+ responseType: string;
95
96
  logo: string;
96
97
  title: string;
97
98
  state: string;
98
99
  redirectUri: string;
99
100
  clientId: string;
100
- responseType: string;
101
101
  scope: string;
102
102
  userInfo: UserResponseType;
103
103
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
@@ -1,12 +1,12 @@
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";
1
+ import { u as a, a as o } from "./useAuthkitUsersProfile-B1y2nleU.js";
2
+ import { g as u, a as r, s as i, b as f, u as n } from "./auth-B864DrVx.js";
3
+ import { u as p } from "./useAuthkitAppsAuthPageInfo-Ct-ElH04.js";
4
4
  import { u as m } from "./useAuthkitCreateAndUpdate-BpTxxKc0.js";
5
- import { u as d } from "./useMessageNotifications-DZBBxw31.js";
5
+ import { u as d } from "./useMessageNotifications-BUJtc-Us.js";
6
6
  import { u as x, a as C } from "./useDownloads-BpQUd6AV.js";
7
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";
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-CFQMgnVq.js";
9
+ import { u as G } from "./useUploadCos-Ca4Mo5FD.js";
10
10
  export {
11
11
  w as findMenuPath,
12
12
  u as globalConfig,
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-Cf9lDRpp.js";
1
+ import { _ as b, a as s, F as d, b as F, c, d as o, R as t } from "./FeedbackModal-OsCK3NqC.js";
2
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";
3
+ import { F as m, a as n, c as f, b as i, d as p } from "./FeedbackItem-DLJhHHDM.js";
4
4
  export {
5
5
  r as Clipboard,
6
6
  b as FeedbackBubbleEnd,