@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.
- package/dist/{AuthkitAuthModal-BRKkQ2Px.js → AuthkitAuthModal-EtAHk3jC.js} +483 -518
- package/dist/{AuthkitAuthorize-DuQ4CKWT.js → AuthkitAuthorize-iudRkudt.js} +3 -3
- package/dist/{Clipboard-Bful1lNJ.js → Clipboard-CIWjWQOZ.js} +2 -3
- package/dist/{Contact-TYzxCmbB.js → Contact-Dy9U5zuU.js} +2 -2
- package/dist/{CustomTable-B8i1SbFB.js → CustomTable-BGm0KdAy.js} +2 -3
- package/dist/{FeedbackItem-DJDUUJbB.js → FeedbackItem-4WHDAqT0.js} +12 -11
- package/dist/{FeedbackModal-Df1Wiclk.js → FeedbackModal-Cf9lDRpp.js} +19 -21
- package/dist/LandingPageSectionTabs-BL4lLDsT.js +19776 -0
- package/dist/{MessageHandle-De7eLBi_.js → MessageHandle-CVsfCWky.js} +16 -16
- package/dist/{PaySubscriptions-CnPLduJz.js → PaySubscriptions-CMSBkkoi.js} +12 -11
- package/dist/{ReferrerReferees-B3Ek3gAn.js → ReferrerReferees-BFF_mWBd.js} +8 -8
- 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
- package/dist/{UserAccountMenu-BNCGS_KR.js → UserAccountMenu-8Vqgdtq1.js} +62 -65
- package/dist/{WidthContainer-DFWspiGt.js → WidthContainer-CeJ1eykf.js} +27 -30
- package/dist/auth-DafjnKRu.js +180 -0
- package/dist/authkit.js +6 -6
- package/dist/common.js +2 -2
- package/dist/components/LandingPage/LandingPageSections.vue.d.ts +17 -20
- package/dist/composables.js +30 -31
- package/dist/feedback.js +3 -3
- package/dist/index.js +615 -699
- package/dist/landingPage.js +1 -1
- package/dist/message.js +2 -2
- package/dist/pay.js +1 -1
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-BifS1KOG.js → useAuthkitAppsAuthPageInfo-C7KEv8pi.js} +6 -6
- package/dist/useAuthkitCreateAndUpdate-BpTxxKc0.js +24 -0
- package/dist/useAuthkitUsersProfile-eWz3ShS9.js +198 -0
- package/dist/{useDownloads-DnMYa52H.js → useDownloads-BpQUd6AV.js} +4 -5
- package/dist/{useMessageNotifications-DSRanuRe.js → useMessageNotifications-DZBBxw31.js} +8 -8
- package/dist/{useSEO-BLlxOmk2.js → useSEO-sQmoCl0K.js} +2 -2
- package/dist/{useTableHandle-DKUIdSSh.js → useTableHandle-DujKY4Bl.js} +14 -15
- package/dist/{useUploadCos-D5k1YLb7.js → useUploadCos-CNKDNSrg.js} +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/LandingPageSectionTabs-DGH4BPiN.js +0 -1223
- package/dist/globalConfig-C1YOJcxa.js +0 -22
- package/dist/useAuthkitAuthModal-BpOmabWi.js +0 -10
- package/dist/useAuthkitCreateAndUpdate-BpPW409v.js +0 -25
- 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-
|
|
2
|
-
import { A as y, a as E } from "./AuthkitAuthorize-
|
|
3
|
-
import { u as C } from "./useAuthkitAppsAuthPageInfo-
|
|
4
|
-
import { u as V, a as b } from "./useAuthkitUsersProfile-
|
|
5
|
-
import { u as B } from "./
|
|
6
|
-
import { u as j } from "./useAuthkitCreateAndUpdate-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
2
|
-
interface ShowcaseItem {
|
|
3
|
-
image: string;
|
|
4
|
-
alt: string;
|
|
1
|
+
interface Feature {
|
|
5
2
|
title: string;
|
|
6
3
|
description: string;
|
|
7
|
-
|
|
4
|
+
color: "green" | "blue" | "purple";
|
|
5
|
+
iconPath: string;
|
|
8
6
|
}
|
|
9
7
|
interface Props {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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;
|
package/dist/composables.js
CHANGED
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { u } from "./
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as c } from "./
|
|
9
|
-
import {
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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-
|
|
2
|
-
import { C as r } from "./Clipboard-
|
|
3
|
-
import { F as m, a as n, c as f, b as i, d as p } from "./FeedbackItem-
|
|
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,
|