@huyooo/ui 0.10.3 → 0.10.7
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/AuthkitSignInPhone-BWPCpUie.js +3034 -0
- package/dist/{Clipboard-CMm8I4Rb.js → Clipboard-CK_nROjb.js} +1 -1
- package/dist/CollapseItem-DUzZA6tx.js +124 -0
- package/dist/{Contact-Dgn8_it4.js → Contact-CpHU1bJ7.js} +2 -2
- package/dist/{CustomTable-CVZ4mFzi.js → CustomTable-1W5byjgJ.js} +3 -2
- package/dist/FeedbackModal-qAJLL3V3.js +1535 -0
- package/dist/{LandingPageSectionTabs-Dv_xOLqR.js → LandingPageSectionTabs-B6ZVxR47.js} +1 -1
- package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-D109kT8_.js +1282 -0
- package/dist/{PaySubscriptions-W6GJ28uE.js → PaySubscriptions-C4Een__-.js} +17 -16
- package/dist/{ReferrerReferees-C5Sjn7aD.js → ReferrerReferees-DIassvGO.js} +8 -8
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-C4-In_x4.js → Upload.vue_vue_type_script_setup_true_lang-DA8VZBrl.js} +1 -1
- package/dist/UserAccountMenu-BIRTtjLb.js +266 -0
- package/dist/UserSubscriptionBaseInformation-BUs3qiHd.js +60 -0
- package/dist/WidthContainer-TXsvW1ut.js +673 -0
- package/dist/{apiClients-DJchWBAG.js → apiClients-ANEApCyY.js} +84 -75
- package/dist/authkit.d.ts +5 -6
- package/dist/authkit.js +43 -43
- package/dist/common.js +3 -3
- package/dist/components/Authkit/Auth/AuthkitServiceAgreementAndPrivacyProtection.vue.d.ts +5 -5
- package/dist/components/Authkit/AuthkitAuthModal.vue.d.ts +13 -31
- package/dist/components/Feedback/FeedbackBubbleEnd.vue.d.ts +1 -1
- package/dist/components/Feedback/FeedbackBubbleStart.vue.d.ts +1 -1
- package/dist/components/User/UserButton.vue.d.ts +1 -36
- package/dist/components/User/UserPanel.vue.d.ts +26 -201
- package/dist/components/User/UserPanelItem.vue.d.ts +38 -0
- package/dist/composables/Authkit/useAuthkitAuth.d.ts +34 -10
- package/dist/composables/Authkit/useAuthkitAuthModal.d.ts +22 -3
- package/dist/composables/Authkit/useLegalLinks.d.ts +34 -0
- package/dist/composables/Authkit/useOauth.d.ts +0 -1
- package/dist/composables.d.ts +3 -2
- package/dist/composables.js +27 -25
- package/dist/{useUploadCos-BO3W_uqs.js → cos-js-sdk-v5-BJ5AlBRu.js} +2232 -2469
- package/dist/feedback.js +15 -16
- package/dist/landingPage.js +1 -1
- package/dist/main.js +177 -177
- package/dist/message.js +9 -10
- 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-C3EHOtlk.js → useAuthkitAppsAuthPageInfo-Da2yJTT-.js} +1 -1
- package/dist/{useAuthkitCreateAndUpdate-CPkogY7K.js → useAuthkitCreateAndUpdate-BLs5vQOu.js} +1 -1
- package/dist/useAuthkitUsersProfile-Cx8NXjlt.js +186 -0
- package/dist/{useDownloads-COXmopbe.js → useDownloads-DT5W2af6.js} +1 -1
- package/dist/useLegalLinks-BIF45kUt.js +60 -0
- package/dist/{useMessageNotifications-SIM85vdb.js → useMessageNotifications-CavBmgO7.js} +1 -1
- package/dist/{useSEO-DeAU9YEc.js → useSEO-MPXQf0dn.js} +2 -2
- package/dist/{useTableHandle-CWu0LbeI.js → useTableHandle--NSbZ-57.js} +1 -1
- package/dist/useUploadCos-D6y0INvP.js +242 -0
- package/dist/user.d.ts +1 -0
- package/dist/user.js +9 -7
- package/dist/utils/legalLinks.d.ts +22 -0
- package/package.json +1 -1
- package/dist/AuthkitAuthModal-De0eEWOC.js +0 -2112
- package/dist/AuthkitSignInPhone-DEUVn3Rq.js +0 -920
- package/dist/CollapseItem-BAuejDBZ.js +0 -57
- package/dist/FeedbackItem-CRiLkWMh.js +0 -495
- package/dist/FeedbackModal-B8WLPCy_.js +0 -1053
- package/dist/MessageHandle-DpIUeQ7U.js +0 -1147
- package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BbtfWRUD.js +0 -142
- package/dist/UserAccountMenu-OdwonGFa.js +0 -633
- package/dist/WidthContainer-Cpdc67hQ.js +0 -652
- package/dist/index-CUfrjRxu.js +0 -73
- package/dist/useAuthkitUsersProfile-BqW74gfs.js +0 -172
package/dist/index-CUfrjRxu.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, computed as l, openBlock as u, createElementBlock as m, normalizeStyle as d, normalizeClass as k, createElementVNode as f } from "vue";
|
|
2
|
-
import { _ as p, g, i as v } from "./plugin-vue_export-helper-LjDO2Zua.js";
|
|
3
|
-
const C = c({
|
|
4
|
-
name: "IconRight",
|
|
5
|
-
props: {
|
|
6
|
-
size: {
|
|
7
|
-
type: [Number, String]
|
|
8
|
-
},
|
|
9
|
-
strokeWidth: {
|
|
10
|
-
type: Number,
|
|
11
|
-
default: 4
|
|
12
|
-
},
|
|
13
|
-
strokeLinecap: {
|
|
14
|
-
type: String,
|
|
15
|
-
default: "butt",
|
|
16
|
-
validator: (e) => ["butt", "round", "square"].includes(e)
|
|
17
|
-
},
|
|
18
|
-
strokeLinejoin: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: "miter",
|
|
21
|
-
validator: (e) => ["arcs", "bevel", "miter", "miter-clip", "round"].includes(e)
|
|
22
|
-
},
|
|
23
|
-
rotate: Number,
|
|
24
|
-
spin: Boolean
|
|
25
|
-
},
|
|
26
|
-
emits: {
|
|
27
|
-
click: (e) => !0
|
|
28
|
-
},
|
|
29
|
-
setup(e, {
|
|
30
|
-
emit: t
|
|
31
|
-
}) {
|
|
32
|
-
const n = g("icon"), o = l(() => [n, `${n}-right`, {
|
|
33
|
-
[`${n}-spin`]: e.spin
|
|
34
|
-
}]), s = l(() => {
|
|
35
|
-
const i = {};
|
|
36
|
-
return e.size && (i.fontSize = v(e.size) ? `${e.size}px` : e.size), e.rotate && (i.transform = `rotate(${e.rotate}deg)`), i;
|
|
37
|
-
});
|
|
38
|
-
return {
|
|
39
|
-
cls: o,
|
|
40
|
-
innerStyle: s,
|
|
41
|
-
onClick: (i) => {
|
|
42
|
-
t("click", i);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
}), y = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
47
|
-
function b(e, t, n, o, s, a) {
|
|
48
|
-
return u(), m("svg", {
|
|
49
|
-
viewBox: "0 0 48 48",
|
|
50
|
-
fill: "none",
|
|
51
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
52
|
-
stroke: "currentColor",
|
|
53
|
-
class: k(e.cls),
|
|
54
|
-
style: d(e.innerStyle),
|
|
55
|
-
"stroke-width": e.strokeWidth,
|
|
56
|
-
"stroke-linecap": e.strokeLinecap,
|
|
57
|
-
"stroke-linejoin": e.strokeLinejoin,
|
|
58
|
-
onClick: t[0] || (t[0] = (...i) => e.onClick && e.onClick(...i))
|
|
59
|
-
}, t[1] || (t[1] = [f("path", {
|
|
60
|
-
d: "m16 39.513 15.556-15.557L16 8.4"
|
|
61
|
-
}, null, -1)]), 14, y);
|
|
62
|
-
}
|
|
63
|
-
var r = /* @__PURE__ */ p(C, [["render", b]]);
|
|
64
|
-
const $ = Object.assign(r, {
|
|
65
|
-
install: (e, t) => {
|
|
66
|
-
var n;
|
|
67
|
-
const o = (n = t == null ? void 0 : t.iconPrefix) != null ? n : "";
|
|
68
|
-
e.component(o + r.name, r);
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
export {
|
|
72
|
-
$ as I
|
|
73
|
-
};
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { ref as t, readonly as P, computed as U } from "vue";
|
|
2
|
-
import { e as d } from "./apiClients-DJchWBAG.js";
|
|
3
|
-
const u = t("signIn"), p = [], v = [], m = [], s = t(null);
|
|
4
|
-
function I() {
|
|
5
|
-
try {
|
|
6
|
-
const e = new URLSearchParams(window.location.search), n = e.get("token");
|
|
7
|
-
if (n) {
|
|
8
|
-
h(n);
|
|
9
|
-
const l = window.location.pathname;
|
|
10
|
-
window.history.replaceState({}, "", l);
|
|
11
|
-
const c = e.get("userId"), o = e.get("appId");
|
|
12
|
-
return p.forEach((g) => g({
|
|
13
|
-
jwtToken: n,
|
|
14
|
-
userId: c,
|
|
15
|
-
appId: o
|
|
16
|
-
})), !0;
|
|
17
|
-
}
|
|
18
|
-
} catch (e) {
|
|
19
|
-
console.warn("Failed to handle OAuth callback:", e);
|
|
20
|
-
}
|
|
21
|
-
return !1;
|
|
22
|
-
}
|
|
23
|
-
function b() {
|
|
24
|
-
if (I())
|
|
25
|
-
return !0;
|
|
26
|
-
try {
|
|
27
|
-
const e = localStorage.getItem("jwtToken");
|
|
28
|
-
if (e)
|
|
29
|
-
return s.value = e, !0;
|
|
30
|
-
} catch (e) {
|
|
31
|
-
console.warn("Failed to access localStorage:", e);
|
|
32
|
-
}
|
|
33
|
-
return !1;
|
|
34
|
-
}
|
|
35
|
-
function j() {
|
|
36
|
-
if (s.value)
|
|
37
|
-
return s.value;
|
|
38
|
-
try {
|
|
39
|
-
const e = localStorage.getItem("jwtToken");
|
|
40
|
-
return e && (s.value = e), e;
|
|
41
|
-
} catch (e) {
|
|
42
|
-
return console.warn("Failed to access localStorage:", e), null;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function h(e) {
|
|
46
|
-
s.value = e;
|
|
47
|
-
try {
|
|
48
|
-
localStorage.setItem("jwtToken", e);
|
|
49
|
-
} catch (n) {
|
|
50
|
-
console.warn("Failed to save token to localStorage:", n);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
function A() {
|
|
54
|
-
s.value = null;
|
|
55
|
-
try {
|
|
56
|
-
localStorage.removeItem("jwtToken");
|
|
57
|
-
} catch (e) {
|
|
58
|
-
console.warn("Failed to clear localStorage:", e);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
function C(e) {
|
|
62
|
-
p.push(e);
|
|
63
|
-
}
|
|
64
|
-
function F(e) {
|
|
65
|
-
v.push(e);
|
|
66
|
-
}
|
|
67
|
-
function L(e) {
|
|
68
|
-
m.push(e);
|
|
69
|
-
}
|
|
70
|
-
function V() {
|
|
71
|
-
const e = t(!1), n = t(!1), l = t(!1);
|
|
72
|
-
async function c(a) {
|
|
73
|
-
e.value = !0;
|
|
74
|
-
const {
|
|
75
|
-
data: r
|
|
76
|
-
} = await d.auth.signIn.post({
|
|
77
|
-
email: a.email,
|
|
78
|
-
password: a.password
|
|
79
|
-
});
|
|
80
|
-
e.value = !1, r && (h(r.jwtToken), p.forEach((f) => f(r)));
|
|
81
|
-
}
|
|
82
|
-
async function o(a) {
|
|
83
|
-
n.value = !0;
|
|
84
|
-
const {
|
|
85
|
-
error: r
|
|
86
|
-
} = await d.auth.signUp.post({
|
|
87
|
-
email: a.email,
|
|
88
|
-
userToken: a.userToken,
|
|
89
|
-
emailVerifyId: a.emailVerifyId,
|
|
90
|
-
password: a.password,
|
|
91
|
-
referrerId: a.referrerId
|
|
92
|
-
});
|
|
93
|
-
n.value = !1, r || (u.value = "signIn", v.forEach((f) => f()));
|
|
94
|
-
}
|
|
95
|
-
async function g(a) {
|
|
96
|
-
l.value = !0;
|
|
97
|
-
const {
|
|
98
|
-
error: r
|
|
99
|
-
} = await d.auth.resetPassword.post({
|
|
100
|
-
email: a.email,
|
|
101
|
-
userToken: a.userToken,
|
|
102
|
-
emailVerifyId: a.emailVerifyId,
|
|
103
|
-
password: a.password
|
|
104
|
-
});
|
|
105
|
-
l.value = !1, r || (u.value = "signIn", m.forEach((f) => f()));
|
|
106
|
-
}
|
|
107
|
-
function S() {
|
|
108
|
-
u.value = "signUp";
|
|
109
|
-
}
|
|
110
|
-
function y() {
|
|
111
|
-
u.value = "resetPassword";
|
|
112
|
-
}
|
|
113
|
-
function T() {
|
|
114
|
-
u.value = "signIn";
|
|
115
|
-
}
|
|
116
|
-
return {
|
|
117
|
-
signInSubmit: c,
|
|
118
|
-
signUpSubmit: o,
|
|
119
|
-
resetPasswordSubmit: g,
|
|
120
|
-
currentView: u,
|
|
121
|
-
authSignInLoading: e,
|
|
122
|
-
authSignUpLoading: n,
|
|
123
|
-
resetPasswordLoading: l,
|
|
124
|
-
switchSignUp: S,
|
|
125
|
-
switchResetPassword: y,
|
|
126
|
-
switchSignIn: T,
|
|
127
|
-
addSignInCallback: C,
|
|
128
|
-
addSignUpCallback: F,
|
|
129
|
-
addResetPasswordCallback: L,
|
|
130
|
-
// 简化的token管理
|
|
131
|
-
jwtToken: P(s),
|
|
132
|
-
getToken: j,
|
|
133
|
-
setToken: h,
|
|
134
|
-
initializeAuth: b,
|
|
135
|
-
clearAuth: A,
|
|
136
|
-
handleOAuthCallback: I
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
const i = t(null), k = t(!1), w = t(!1), E = U(() => !!i.value);
|
|
140
|
-
async function R() {
|
|
141
|
-
const {
|
|
142
|
-
getToken: e,
|
|
143
|
-
clearAuth: n
|
|
144
|
-
} = V();
|
|
145
|
-
if (!e()) {
|
|
146
|
-
console.warn("No authentication token found"), i.value = null;
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
k.value = !0, w.value = !1;
|
|
150
|
-
const {
|
|
151
|
-
data: c,
|
|
152
|
-
error: o
|
|
153
|
-
} = await d.users.profile.post({});
|
|
154
|
-
k.value = !1, c ? (i.value = c, w.value = !0) : (i.value = null, w.value = !1, ((o == null ? void 0 : o.code) === 401 || (o == null ? void 0 : o.code) === 40101) && (console.warn("认证已过期,清除认证状态"), n()));
|
|
155
|
-
}
|
|
156
|
-
function O() {
|
|
157
|
-
i.value = null;
|
|
158
|
-
}
|
|
159
|
-
function N() {
|
|
160
|
-
return {
|
|
161
|
-
userProfile: i,
|
|
162
|
-
loading: k,
|
|
163
|
-
usersProfileSuccess: w,
|
|
164
|
-
isLoggedIn: E,
|
|
165
|
-
fetchUserProfile: R,
|
|
166
|
-
clearUserProfile: O
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
export {
|
|
170
|
-
N as a,
|
|
171
|
-
V as u
|
|
172
|
-
};
|