@huyooo/ui 0.5.23 → 0.5.24
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-EtAHk3jC.js → AuthkitAuthModal-BdVB7Kz7.js} +517 -482
- package/dist/{AuthkitAuthorize-iudRkudt.js → AuthkitAuthorize-bzCh_YJp.js} +2 -2
- package/dist/{Clipboard-CIWjWQOZ.js → Clipboard-Bful1lNJ.js} +3 -2
- package/dist/{Contact-Dy9U5zuU.js → Contact-DNiynQXl.js} +2 -2
- package/dist/{FeedbackItem-4WHDAqT0.js → FeedbackItem-DFCuTCaI.js} +3 -3
- package/dist/{FeedbackModal-Cf9lDRpp.js → FeedbackModal-BGXr3jPm.js} +6 -5
- package/dist/LandingPageSectionTabs-BrAxO3Ad.js +29013 -0
- package/dist/{MessageHandle-CVsfCWky.js → MessageHandle-De7eLBi_.js} +16 -16
- package/dist/{PaySubscriptions-CMSBkkoi.js → PaySubscriptions-77rXNTOt.js} +8 -8
- package/dist/{ReferrerReferees-BFF_mWBd.js → ReferrerReferees-DCALYxND.js} +7 -7
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-DA9w3O2R.js → Upload.vue_vue_type_script_setup_true_lang-9HB-tLZd.js} +2 -2
- package/dist/{UserAccountMenu-8Vqgdtq1.js → UserAccountMenu-ul2FbWYe.js} +12 -11
- package/dist/{WidthContainer-CeJ1eykf.js → WidthContainer-DmwEcM3F.js} +27 -24
- package/dist/authkit.js +6 -6
- package/dist/common.js +1 -1
- package/dist/composables.js +31 -30
- package/dist/feedback.js +3 -3
- package/dist/globalConfig-C1YOJcxa.js +22 -0
- package/dist/index.js +699 -615
- 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-C7KEv8pi.js → useAuthkitAppsAuthPageInfo-Dyjhw7qb.js} +1 -1
- package/dist/useAuthkitAuthModal-BpOmabWi.js +10 -0
- package/dist/useAuthkitCreateAndUpdate-BpPW409v.js +25 -0
- package/dist/useAuthkitUsersProfile-zbKT0W_h.js +237 -0
- package/dist/{useDownloads-BpQUd6AV.js → useDownloads-DnMYa52H.js} +5 -4
- package/dist/{useMessageNotifications-DZBBxw31.js → useMessageNotifications-DSRanuRe.js} +8 -8
- package/dist/{useSEO-sQmoCl0K.js → useSEO-BKJkX1nG.js} +2 -2
- package/dist/{useTableHandle-DujKY4Bl.js → useTableHandle-DKUIdSSh.js} +15 -14
- package/dist/{useUploadCos-CNKDNSrg.js → useUploadCos-D5k1YLb7.js} +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/LandingPageSectionTabs-BL4lLDsT.js +0 -19776
- package/dist/auth-DafjnKRu.js +0 -180
- package/dist/useAuthkitCreateAndUpdate-BpTxxKc0.js +0 -24
- package/dist/useAuthkitUsersProfile-eWz3ShS9.js +0 -198
package/dist/upload.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as p } from "./Upload.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { u as s } from "./useUploadCos-
|
|
1
|
+
import { _ as p } from "./Upload.vue_vue_type_script_setup_true_lang-9HB-tLZd.js";
|
|
2
|
+
import { u as s } from "./useUploadCos-D5k1YLb7.js";
|
|
3
3
|
export {
|
|
4
4
|
p as Upload,
|
|
5
5
|
s as useUploadCos
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { Message as u } from "@arco-design/web-vue";
|
|
4
|
+
import { ref as e } from "vue";
|
|
5
|
+
function h(s) {
|
|
6
|
+
const n = e(!1), a = e(), o = e(!1), c = e(""), t = e("");
|
|
7
|
+
function l(r) {
|
|
8
|
+
u.success(r), o.value = !1, n.value = !1, s("confirm");
|
|
9
|
+
}
|
|
10
|
+
function f() {
|
|
11
|
+
o.value = !1, console.log("handleClose"), s("cancel");
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
loading: n,
|
|
15
|
+
formRef: a,
|
|
16
|
+
submitSuccess: l,
|
|
17
|
+
modelType: c,
|
|
18
|
+
changeType: t,
|
|
19
|
+
show: o,
|
|
20
|
+
handleCancel: f
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
h as u
|
|
25
|
+
};
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { ref as u, readonly as A, computed as T } from "vue";
|
|
2
|
+
import { api as a } from "@huyooo/api";
|
|
3
|
+
import { g as o } from "./globalConfig-C1YOJcxa.js";
|
|
4
|
+
function b(e) {
|
|
5
|
+
return a({
|
|
6
|
+
url: `${o.authPrefixUrl}/restfulApi/auth/signIn`,
|
|
7
|
+
method: "post",
|
|
8
|
+
data: e
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
function x(e) {
|
|
12
|
+
return a({
|
|
13
|
+
url: `${o.authPrefixUrl}/restfulApi/auth/resetPassword`,
|
|
14
|
+
method: "post",
|
|
15
|
+
data: e
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function y(e) {
|
|
19
|
+
return a({
|
|
20
|
+
url: `${o.authPrefixUrl}/restfulApi/auth/signUp`,
|
|
21
|
+
method: "post",
|
|
22
|
+
data: e
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function H(e) {
|
|
26
|
+
return a({
|
|
27
|
+
url: `${o.authPrefixUrl}/restfulApi/oauth2/authorize`,
|
|
28
|
+
method: "post",
|
|
29
|
+
data: e
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function J(e) {
|
|
33
|
+
return a({
|
|
34
|
+
url: "/restfulApi/auth/refresh",
|
|
35
|
+
method: "post",
|
|
36
|
+
data: {
|
|
37
|
+
refreshToken: e
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
const c = u("signIn"), m = [], v = [], w = [], i = u(null);
|
|
42
|
+
function $() {
|
|
43
|
+
try {
|
|
44
|
+
const e = localStorage.getItem("jwtToken");
|
|
45
|
+
if (e)
|
|
46
|
+
return i.value = e, !0;
|
|
47
|
+
} catch (e) {
|
|
48
|
+
console.warn("Failed to access localStorage:", e);
|
|
49
|
+
}
|
|
50
|
+
return !1;
|
|
51
|
+
}
|
|
52
|
+
function C() {
|
|
53
|
+
if (i.value)
|
|
54
|
+
return i.value;
|
|
55
|
+
try {
|
|
56
|
+
const e = localStorage.getItem("jwtToken");
|
|
57
|
+
return e && (i.value = e), e;
|
|
58
|
+
} catch (e) {
|
|
59
|
+
return console.warn("Failed to access localStorage:", e), null;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function g(e) {
|
|
63
|
+
i.value = e;
|
|
64
|
+
try {
|
|
65
|
+
localStorage.setItem("jwtToken", e);
|
|
66
|
+
} catch (s) {
|
|
67
|
+
console.warn("Failed to save token to localStorage:", s);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
function j() {
|
|
71
|
+
i.value = null;
|
|
72
|
+
try {
|
|
73
|
+
localStorage.removeItem("jwtToken");
|
|
74
|
+
} catch (e) {
|
|
75
|
+
console.warn("Failed to clear localStorage:", e);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
function E(e) {
|
|
79
|
+
m.push(e);
|
|
80
|
+
}
|
|
81
|
+
function V(e) {
|
|
82
|
+
v.push(e);
|
|
83
|
+
}
|
|
84
|
+
function F(e) {
|
|
85
|
+
w.push(e);
|
|
86
|
+
}
|
|
87
|
+
function L() {
|
|
88
|
+
const e = u(!1), s = u(!1), f = u(!1);
|
|
89
|
+
function d(r) {
|
|
90
|
+
e.value = !0, b({
|
|
91
|
+
email: r.email,
|
|
92
|
+
password: r.password
|
|
93
|
+
}).then(({
|
|
94
|
+
data: t
|
|
95
|
+
}) => {
|
|
96
|
+
e.value = !1, g(t.jwtToken), m.forEach((S) => S(t));
|
|
97
|
+
}).catch((t) => {
|
|
98
|
+
e.value = !1, console.error("登录失败:", t);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
function n(r) {
|
|
102
|
+
s.value = !0, y({
|
|
103
|
+
email: r.email,
|
|
104
|
+
userToken: r.userToken,
|
|
105
|
+
emailVerifyId: r.emailVerifyId,
|
|
106
|
+
password: r.password,
|
|
107
|
+
referrerId: r.referrerId
|
|
108
|
+
}).then(() => {
|
|
109
|
+
s.value = !1, c.value = "signIn", v.forEach((t) => t());
|
|
110
|
+
}).catch((t) => {
|
|
111
|
+
s.value = !1, console.error("注册失败:", t);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
function k(r) {
|
|
115
|
+
f.value = !0, x({
|
|
116
|
+
email: r.email,
|
|
117
|
+
userToken: r.userToken,
|
|
118
|
+
emailVerifyId: r.emailVerifyId,
|
|
119
|
+
password: r.password
|
|
120
|
+
}).then(() => {
|
|
121
|
+
f.value = !1, c.value = "signIn", w.forEach((t) => t());
|
|
122
|
+
}).catch((t) => {
|
|
123
|
+
f.value = !1, console.error("重置密码失败:", t);
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
function P() {
|
|
127
|
+
c.value = "signUp";
|
|
128
|
+
}
|
|
129
|
+
function U() {
|
|
130
|
+
c.value = "resetPassword";
|
|
131
|
+
}
|
|
132
|
+
function I() {
|
|
133
|
+
c.value = "signIn";
|
|
134
|
+
}
|
|
135
|
+
return {
|
|
136
|
+
signInSubmit: d,
|
|
137
|
+
signUpSubmit: n,
|
|
138
|
+
resetPasswordSubmit: k,
|
|
139
|
+
currentView: c,
|
|
140
|
+
authSignInLoading: e,
|
|
141
|
+
authSignUpLoading: s,
|
|
142
|
+
resetPasswordLoading: f,
|
|
143
|
+
switchSignUp: P,
|
|
144
|
+
switchResetPassword: U,
|
|
145
|
+
switchSignIn: I,
|
|
146
|
+
addSignInCallback: E,
|
|
147
|
+
addSignUpCallback: V,
|
|
148
|
+
addResetPasswordCallback: F,
|
|
149
|
+
// 简化的token管理
|
|
150
|
+
jwtToken: A(i),
|
|
151
|
+
getToken: C,
|
|
152
|
+
setToken: g,
|
|
153
|
+
initializeAuth: $,
|
|
154
|
+
clearAuth: j
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
function z(e) {
|
|
158
|
+
return console.log(o.authPrefixUrl, "globalConfig.authPrefixUrl"), a({
|
|
159
|
+
url: `${o.authPrefixUrl}/restfulApi/users/profile`,
|
|
160
|
+
method: "post",
|
|
161
|
+
data: e
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
function K(e) {
|
|
165
|
+
return a({
|
|
166
|
+
url: `${o.authPrefixUrl}/restfulApi/users/update/baseInfo`,
|
|
167
|
+
method: "post",
|
|
168
|
+
data: e
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
function M(e) {
|
|
172
|
+
return a({
|
|
173
|
+
url: `${o.authPrefixUrl}/restfulApi/users/update/email`,
|
|
174
|
+
method: "post",
|
|
175
|
+
data: e
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
function O(e) {
|
|
179
|
+
return a({
|
|
180
|
+
url: `${o.authPrefixUrl}/restfulApi/users/update/password`,
|
|
181
|
+
method: "post",
|
|
182
|
+
data: e
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
function Q() {
|
|
186
|
+
return a({
|
|
187
|
+
url: `${o.authPrefixUrl}/restfulApi/users//unbind/email`,
|
|
188
|
+
method: "post"
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
const l = u(null), p = u(!1), h = u(!1), R = T(() => !!l.value);
|
|
192
|
+
async function B() {
|
|
193
|
+
var d;
|
|
194
|
+
const {
|
|
195
|
+
getToken: e,
|
|
196
|
+
clearAuth: s
|
|
197
|
+
} = L();
|
|
198
|
+
if (!e()) {
|
|
199
|
+
console.warn("No authentication token found"), l.value = null;
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
p.value = !0, h.value = !1;
|
|
203
|
+
try {
|
|
204
|
+
const {
|
|
205
|
+
data: n
|
|
206
|
+
} = await z();
|
|
207
|
+
p.value = !1, n ? (l.value = n, h.value = !0) : (console.warn("获取用户资料返回空数据"), l.value = null, h.value = !1);
|
|
208
|
+
} catch (n) {
|
|
209
|
+
p.value = !1, h.value = !1, console.error("获取用户资料失败:", n), ((d = n == null ? void 0 : n.response) == null ? void 0 : d.status) === 401 && (console.warn("认证已过期,清除认证状态"), s()), l.value = null;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
function N() {
|
|
213
|
+
l.value = null;
|
|
214
|
+
}
|
|
215
|
+
function W() {
|
|
216
|
+
return {
|
|
217
|
+
userProfile: l,
|
|
218
|
+
loading: p,
|
|
219
|
+
usersProfileSuccess: h,
|
|
220
|
+
isLoggedIn: R,
|
|
221
|
+
// 新增:基于userProfile的登录状态
|
|
222
|
+
fetchUserProfile: B,
|
|
223
|
+
clearUserProfile: N
|
|
224
|
+
// 新增:清除用户信息的方法
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
export {
|
|
228
|
+
W as a,
|
|
229
|
+
z as b,
|
|
230
|
+
K as c,
|
|
231
|
+
O as d,
|
|
232
|
+
M as e,
|
|
233
|
+
Q as f,
|
|
234
|
+
H as o,
|
|
235
|
+
J as r,
|
|
236
|
+
L as u
|
|
237
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
+
/* empty css */
|
|
2
3
|
import { Message as v } from "@arco-design/web-vue";
|
|
3
4
|
import { ref as n } from "vue";
|
|
4
|
-
function
|
|
5
|
+
function g(l) {
|
|
5
6
|
const s = n(!1), r = n(), a = n(!1), d = n(""), f = n("");
|
|
6
7
|
function e(o) {
|
|
7
8
|
v.success(o), a.value = !1, s.value = !1, l("confirm");
|
|
@@ -20,7 +21,7 @@ function m(l) {
|
|
|
20
21
|
};
|
|
21
22
|
}
|
|
22
23
|
let u = null, i = "", t = null;
|
|
23
|
-
function
|
|
24
|
+
function D() {
|
|
24
25
|
const l = n([]), s = n(!1), r = n(""), a = n("");
|
|
25
26
|
async function d({
|
|
26
27
|
versionApi: f
|
|
@@ -67,6 +68,6 @@ function g() {
|
|
|
67
68
|
};
|
|
68
69
|
}
|
|
69
70
|
export {
|
|
70
|
-
|
|
71
|
-
|
|
71
|
+
D as a,
|
|
72
|
+
g as u
|
|
72
73
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { ref as a, computed as x } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { api as c } from "@huyooo/api";
|
|
3
|
+
import { g } from "./globalConfig-C1YOJcxa.js";
|
|
4
4
|
function z(t) {
|
|
5
|
-
return
|
|
6
|
-
url: `${
|
|
5
|
+
return c({
|
|
6
|
+
url: `${g.prefixUrl}/restfulApi/messageCenter/messageNotifications/find`,
|
|
7
7
|
method: "post",
|
|
8
8
|
data: t
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
function R(t) {
|
|
12
|
-
return
|
|
13
|
-
url: `${
|
|
12
|
+
return c({
|
|
13
|
+
url: `${g.prefixUrl}/restfulApi/messageCenter/messageNotifications/read`,
|
|
14
14
|
method: "post",
|
|
15
15
|
data: t
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
function S(t) {
|
|
19
|
-
return
|
|
20
|
-
url: `${
|
|
19
|
+
return c({
|
|
20
|
+
url: `${g.prefixUrl}/restfulApi/messageCenter/messageNotifications/readAll`,
|
|
21
21
|
method: "post",
|
|
22
22
|
data: t
|
|
23
23
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as M, computed as h, watch as V, toValue as z, isRef as N, hasInjectionContext as G, inject as W, watchEffect as B, getCurrentInstance as F, onBeforeUnmount as J, onDeactivated as Q, onActivated as Z } from "vue";
|
|
2
2
|
import { useRouter as _, useRoute as x } from "vue-router";
|
|
3
|
-
import { u as R } from "./useAuthkitAppsAuthPageInfo-
|
|
4
|
-
import { a as U } from "./useAuthkitUsersProfile-
|
|
3
|
+
import { u as R } from "./useAuthkitAppsAuthPageInfo-Dyjhw7qb.js";
|
|
4
|
+
import { a as U } from "./useAuthkitUsersProfile-zbKT0W_h.js";
|
|
5
5
|
const $ = M({
|
|
6
6
|
key: "",
|
|
7
7
|
name: ""
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
+
/* empty css */
|
|
2
3
|
import { Message as O } from "@arco-design/web-vue";
|
|
3
4
|
import { ref as t } from "vue";
|
|
4
|
-
function
|
|
5
|
+
function A(r) {
|
|
5
6
|
const f = t(r), p = t(!1), u = t(!1), a = t({
|
|
6
7
|
total: 0,
|
|
7
8
|
current: 1,
|
|
8
9
|
pageSize: 10,
|
|
9
10
|
showTotal: !0,
|
|
10
11
|
showPageSize: !0
|
|
11
|
-
}),
|
|
12
|
-
function
|
|
12
|
+
}), m = t([]), o = t(), i = t(Symbol("key")), l = t(), s = t(Symbol("key")), n = t(), c = t(Symbol("key"));
|
|
13
|
+
function v(e) {
|
|
13
14
|
o.value.setData(e, !0, "edit");
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
+
function y(e) {
|
|
16
17
|
n.value.setData(e, !0, "view");
|
|
17
18
|
}
|
|
18
19
|
function g() {
|
|
@@ -22,13 +23,13 @@ function h(r) {
|
|
|
22
23
|
a.value.current = e, a.value.pageSize = C;
|
|
23
24
|
};
|
|
24
25
|
function S() {
|
|
25
|
-
|
|
26
|
+
i.value = Symbol("key");
|
|
26
27
|
}
|
|
27
28
|
function D() {
|
|
28
|
-
|
|
29
|
+
s.value = Symbol("key");
|
|
29
30
|
}
|
|
30
31
|
function b(e) {
|
|
31
|
-
|
|
32
|
+
l.value.setData(e, !0);
|
|
32
33
|
}
|
|
33
34
|
function k() {
|
|
34
35
|
c.value = Symbol("key");
|
|
@@ -41,17 +42,17 @@ function h(r) {
|
|
|
41
42
|
}
|
|
42
43
|
return {
|
|
43
44
|
CreateAndUpdateRef: o,
|
|
44
|
-
CreateAndUpdateKey:
|
|
45
|
-
OperationLogRef:
|
|
46
|
-
OperationLogKey:
|
|
45
|
+
CreateAndUpdateKey: i,
|
|
46
|
+
OperationLogRef: l,
|
|
47
|
+
OperationLogKey: s,
|
|
47
48
|
DetailsRef: n,
|
|
48
49
|
DetailsKey: c,
|
|
49
50
|
pagination: a,
|
|
50
51
|
title: f,
|
|
51
|
-
edit:
|
|
52
|
+
edit: v,
|
|
52
53
|
create: g,
|
|
53
|
-
view:
|
|
54
|
-
dataSource:
|
|
54
|
+
view: y,
|
|
55
|
+
dataSource: m,
|
|
55
56
|
setPage: d,
|
|
56
57
|
cancel: S,
|
|
57
58
|
OperationLogCancel: D,
|
|
@@ -64,5 +65,5 @@ function h(r) {
|
|
|
64
65
|
};
|
|
65
66
|
}
|
|
66
67
|
export {
|
|
67
|
-
|
|
68
|
+
A as u
|
|
68
69
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as _t, g as Ht } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
2
|
-
import { g as it } from "./auth-DafjnKRu.js";
|
|
3
2
|
import { api as bt } from "@huyooo/api";
|
|
3
|
+
import { g as it } from "./globalConfig-C1YOJcxa.js";
|
|
4
4
|
var Nt = { exports: {} };
|
|
5
5
|
(function(_, fe) {
|
|
6
6
|
(function(Y, A) {
|
package/dist/user.js
CHANGED