@huyooo/ui 0.5.21 → 0.5.23

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 (43) hide show
  1. package/dist/{AuthkitAuthModal-BRKkQ2Px.js → AuthkitAuthModal-EtAHk3jC.js} +483 -518
  2. package/dist/{AuthkitAuthorize-DuQ4CKWT.js → AuthkitAuthorize-iudRkudt.js} +3 -3
  3. package/dist/{Clipboard-Bful1lNJ.js → Clipboard-CIWjWQOZ.js} +2 -3
  4. package/dist/{Contact-TYzxCmbB.js → Contact-Dy9U5zuU.js} +2 -2
  5. package/dist/{CustomTable-B8i1SbFB.js → CustomTable-BGm0KdAy.js} +2 -3
  6. package/dist/{FeedbackItem-DJDUUJbB.js → FeedbackItem-4WHDAqT0.js} +12 -11
  7. package/dist/{FeedbackModal-Df1Wiclk.js → FeedbackModal-Cf9lDRpp.js} +19 -21
  8. package/dist/LandingPageSectionTabs-BL4lLDsT.js +19776 -0
  9. package/dist/{MessageHandle-De7eLBi_.js → MessageHandle-CVsfCWky.js} +16 -16
  10. package/dist/{PaySubscriptions-CnPLduJz.js → PaySubscriptions-CMSBkkoi.js} +12 -11
  11. package/dist/{ReferrerReferees-B3Ek3gAn.js → ReferrerReferees-BFF_mWBd.js} +8 -8
  12. 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
  13. package/dist/{UserAccountMenu-BNCGS_KR.js → UserAccountMenu-8Vqgdtq1.js} +62 -65
  14. package/dist/{WidthContainer-DFWspiGt.js → WidthContainer-CeJ1eykf.js} +27 -30
  15. package/dist/auth-DafjnKRu.js +180 -0
  16. package/dist/authkit.js +6 -6
  17. package/dist/common.js +2 -2
  18. package/dist/components/LandingPage/LandingPageSections.vue.d.ts +17 -20
  19. package/dist/composables.js +30 -31
  20. package/dist/feedback.js +3 -3
  21. package/dist/index.js +615 -699
  22. package/dist/landingPage.js +1 -1
  23. package/dist/message.js +2 -2
  24. package/dist/pay.js +1 -1
  25. package/dist/privateCom.js +1 -1
  26. package/dist/referrer.js +1 -1
  27. package/dist/style.css +1 -1
  28. package/dist/upload.js +2 -2
  29. package/dist/{useAuthkitAppsAuthPageInfo-BifS1KOG.js → useAuthkitAppsAuthPageInfo-C7KEv8pi.js} +6 -6
  30. package/dist/useAuthkitCreateAndUpdate-BpTxxKc0.js +24 -0
  31. package/dist/useAuthkitUsersProfile-eWz3ShS9.js +198 -0
  32. package/dist/{useDownloads-DnMYa52H.js → useDownloads-BpQUd6AV.js} +4 -5
  33. package/dist/{useMessageNotifications-DSRanuRe.js → useMessageNotifications-DZBBxw31.js} +8 -8
  34. package/dist/{useSEO-BLlxOmk2.js → useSEO-sQmoCl0K.js} +2 -2
  35. package/dist/{useTableHandle-DKUIdSSh.js → useTableHandle-DujKY4Bl.js} +14 -15
  36. package/dist/{useUploadCos-D5k1YLb7.js → useUploadCos-CNKDNSrg.js} +1 -1
  37. package/dist/user.js +1 -1
  38. package/package.json +1 -1
  39. package/dist/LandingPageSectionTabs-DGH4BPiN.js +0 -1223
  40. package/dist/globalConfig-C1YOJcxa.js +0 -22
  41. package/dist/useAuthkitAuthModal-BpOmabWi.js +0 -10
  42. package/dist/useAuthkitCreateAndUpdate-BpPW409v.js +0 -25
  43. package/dist/useAuthkitUsersProfile-zbKT0W_h.js +0 -237
@@ -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-BRKkQ2Px.js";
2
- import { A as y, a as E } from "./AuthkitAuthorize-DuQ4CKWT.js";
3
- import { u as C } from "./useAuthkitAppsAuthPageInfo-BifS1KOG.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,6 +1,6 @@
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-DFWspiGt.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
- import { C as x, E as H } from "./CustomTable-B8i1SbFB.js";
3
+ import { C as x, E as H } from "./CustomTable-BGm0KdAy.js";
4
4
  import { M, a as g } from "./Menu-ejsosUdV.js";
5
5
  export {
6
6
  s as AppLayout,
@@ -1,26 +1,23 @@
1
- import { CSSProperties } from 'vue';
2
- interface ShowcaseItem {
3
- image: string;
4
- alt: string;
1
+ interface Feature {
5
2
  title: string;
6
3
  description: string;
7
- [key: string]: any;
4
+ color: "green" | "blue" | "purple";
5
+ iconPath: string;
8
6
  }
9
7
  interface Props {
10
- items: ShowcaseItem[];
11
- showControls?: boolean;
12
- columns?: number;
13
- cardHeight?: number;
14
- objectFit?: CSSProperties['objectFit'];
8
+ title?: string;
9
+ subTitle?: string;
10
+ imageUrl?: string;
11
+ imageAlt?: string;
12
+ features?: Feature[];
13
+ reverse?: boolean;
15
14
  }
16
- declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
- cardClick: (item: ShowcaseItem) => any;
18
- }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
19
- onCardClick?: ((item: ShowcaseItem) => any) | undefined;
20
- }>, {
21
- columns: number;
22
- objectFit: import("csstype").Property.ObjectFit;
23
- showControls: boolean;
24
- cardHeight: number;
25
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
15
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
16
+ reverse: boolean;
17
+ title: string;
18
+ imageAlt: string;
19
+ features: Feature[];
20
+ subTitle: string;
21
+ imageUrl: string;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
26
23
  export default _default;
@@ -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-BifS1KOG.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-BLlxOmk2.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-Df1Wiclk.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-DJDUUJbB.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,