@huyooo/ui 0.5.58 → 0.5.59
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-BVXtE_sP.js → AuthkitAuthModal-BSvtvlyj.js} +789 -748
- package/dist/AuthkitOAuthCallback-DQ1RAKyR.js +330 -0
- package/dist/{Clipboard-CXQgZeZq.js → Clipboard-BAn3vQlX.js} +1 -1
- package/dist/{Contact-ZkK_OxmG.js → Contact-CDelrtDR.js} +2 -2
- package/dist/{FeedbackItem-BZ3zskgs.js → FeedbackItem-B9lo9J0G.js} +3 -3
- package/dist/{FeedbackModal-CLRw0hmp.js → FeedbackModal-DWJmFtvY.js} +3 -3
- package/dist/{MessageHandle-cK3Z3tfe.js → MessageHandle-BlsLRmdj.js} +3 -3
- package/dist/{PaySubscriptions-DlV3SHOV.js → PaySubscriptions-Vj0KnZGv.js} +3 -3
- package/dist/{ReferrerReferees-DBOVVD_R.js → ReferrerReferees-D8hYkkAy.js} +4 -4
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-bvoyktaa.js → Upload.vue_vue_type_script_setup_true_lang-BYlxlhfb.js} +2 -2
- package/dist/{UserAccountMenu-BbHFa60w.js → UserAccountMenu-BWx4hX66.js} +7 -7
- package/dist/{WidthContainer-VdifT6ZJ.js → WidthContainer-DiEkVFtH.js} +6 -6
- package/dist/api/Authkit/OAuth.d.ts +7 -4
- package/dist/{auth-CDARHcht.js → auth-bwwc2iT8.js} +60 -59
- package/dist/authkit.d.ts +2 -0
- package/dist/authkit.js +23 -21
- package/dist/common/globalConfig.d.ts +4 -0
- package/dist/common.js +1 -1
- package/dist/components/Authkit/Auth/AuthkitOAuthCallback.vue.d.ts +22 -0
- package/dist/components/Authkit/Auth/AuthkitOAuthList.vue.d.ts +1 -1
- package/dist/components/InfiniteLoading.vue.d.ts +1 -1
- package/dist/composables/Authkit/useAuthkitAuth.d.ts +2 -0
- package/dist/composables/Authkit/useAuthkitOAuth.d.ts +13 -3
- package/dist/composables.js +9 -9
- package/dist/feedback.js +3 -3
- package/dist/index.js +179 -177
- 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-h9CL-MmH.js → useAuthkitAppsAuthPageInfo-CzZmhPMm.js} +1 -1
- package/dist/{useAuthkitCreateAndUpdate-Bsl_uyGQ.js → useAuthkitCreateAndUpdate-Co5wMbv7.js} +1 -1
- package/dist/{useAuthkitUsersProfile-B_uMdnat.js → useAuthkitUsersProfile-hZ9L3rYe.js} +93 -71
- package/dist/{useDownloads-05u8toS3.js → useDownloads-C0V_Sjr9.js} +1 -1
- package/dist/{useMessageNotifications-CAiVf4PX.js → useMessageNotifications-BT84SOgI.js} +1 -1
- package/dist/{useSEO-D5sci2ek.js → useSEO-DT8VkGVt.js} +2 -2
- package/dist/{useTableHandle-aJOWPWFL.js → useTableHandle-DaKaAKAH.js} +1 -1
- package/dist/{useUploadCos-DKh-eczm.js → useUploadCos-_xwV40NS.js} +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/AuthkitAuthorize-Cu6_4HoY.js +0 -248
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import { Message as
|
|
2
|
+
import { Message as l } from "@arco-design/web-vue";
|
|
3
3
|
import k from "axios";
|
|
4
4
|
import { ref as m } from "vue";
|
|
5
|
-
function
|
|
6
|
-
const
|
|
7
|
-
if (
|
|
8
|
-
const
|
|
9
|
-
return
|
|
5
|
+
function A(e, r = 3) {
|
|
6
|
+
const o = e.indexOf("@");
|
|
7
|
+
if (o > 1) {
|
|
8
|
+
const a = e.slice(0, r), u = e.slice(o);
|
|
9
|
+
return a + "***" + u;
|
|
10
10
|
}
|
|
11
11
|
return e;
|
|
12
12
|
}
|
|
@@ -17,38 +17,39 @@ function p() {
|
|
|
17
17
|
console.warn("Failed to clear localStorage:", e);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function b() {
|
|
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
|
|
27
|
+
function g(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
|
|
34
|
+
let t = {
|
|
35
35
|
appId: "",
|
|
36
36
|
prefixUrl: "",
|
|
37
37
|
authPrefixUrl: "",
|
|
38
|
+
oauthCallbackUrl: "",
|
|
38
39
|
avatarBucketId: "68350c206888f565dc7d09e9",
|
|
39
40
|
feedbackBucketId: "6826e4db6888f565dc775dce",
|
|
40
41
|
bucket: "ones-1358549778",
|
|
41
42
|
region: "ap-beijing",
|
|
42
43
|
web3formsAccessKey: "72604aac-d55e-4df0-9bcf-31b2206b3753"
|
|
43
44
|
}, T = {};
|
|
44
|
-
function
|
|
45
|
+
function S(e) {
|
|
45
46
|
Object.assign(T, e);
|
|
46
47
|
}
|
|
47
48
|
function B(e) {
|
|
48
|
-
|
|
49
|
+
t.appId = e.appId, t.prefixUrl = e.prefixUrl, t.authPrefixUrl = e.authPrefixUrl, e.oauthCallbackUrl !== void 0 ? t.oauthCallbackUrl = e.oauthCallbackUrl : typeof window < "u" && (t.oauthCallbackUrl = `${window.location.origin}/auth/callback`), e.avatarBucketId !== void 0 && (t.avatarBucketId = e.avatarBucketId), e.feedbackBucketId !== void 0 && (t.feedbackBucketId = e.feedbackBucketId), e.bucket !== void 0 && (t.bucket = e.bucket), e.region !== void 0 && (t.region = e.region), e.web3formsAccessKey !== void 0 && (t.web3formsAccessKey = e.web3formsAccessKey);
|
|
49
50
|
}
|
|
50
51
|
const I = m(!1);
|
|
51
|
-
function
|
|
52
|
+
function w() {
|
|
52
53
|
return {
|
|
53
54
|
show: I
|
|
54
55
|
};
|
|
@@ -63,106 +64,106 @@ const n = k.create({
|
|
|
63
64
|
let f = !1, d = [];
|
|
64
65
|
function h(e, r = null) {
|
|
65
66
|
d.forEach(({
|
|
66
|
-
resolve:
|
|
67
|
-
reject:
|
|
67
|
+
resolve: o,
|
|
68
|
+
reject: a
|
|
68
69
|
}) => {
|
|
69
|
-
e ?
|
|
70
|
+
e ? a(e) : o(r);
|
|
70
71
|
}), d = [];
|
|
71
72
|
}
|
|
72
|
-
async function
|
|
73
|
+
async function P() {
|
|
73
74
|
var r;
|
|
74
|
-
const e =
|
|
75
|
+
const e = b();
|
|
75
76
|
if (!e)
|
|
76
77
|
throw new Error("No refresh token available");
|
|
77
78
|
try {
|
|
78
|
-
const
|
|
79
|
-
data:
|
|
80
|
-
} =
|
|
81
|
-
if (
|
|
82
|
-
return
|
|
83
|
-
throw new Error(
|
|
84
|
-
} catch (
|
|
85
|
-
throw console.error("Token refresh failed:",
|
|
79
|
+
const o = await U(e), {
|
|
80
|
+
data: a
|
|
81
|
+
} = o;
|
|
82
|
+
if (a.success && ((r = a.data) != null && r.jwtToken))
|
|
83
|
+
return g(a.data.jwtToken), a.data.refreshToken && localStorage.setItem("refreshToken", a.data.refreshToken), a.data.jwtToken;
|
|
84
|
+
throw new Error(a.message || "Token refresh failed");
|
|
85
|
+
} catch (o) {
|
|
86
|
+
throw console.error("Token refresh failed:", o), p(), o;
|
|
86
87
|
}
|
|
87
88
|
}
|
|
88
89
|
n.interceptors.request.use((e) => {
|
|
89
90
|
console.log(e, "configconfig");
|
|
90
91
|
const r = localStorage.getItem("jwtToken");
|
|
91
|
-
return r && e.headers && (e.headers.authorization = `Bearer ${r}`), e.headers && !("app-id" in e.headers) && (e.headers["app-id"] =
|
|
92
|
+
return r && e.headers && (e.headers.authorization = `Bearer ${r}`), e.headers && !("app-id" in e.headers) && (e.headers["app-id"] = t.appId), e;
|
|
92
93
|
}, (e) => Promise.reject(e));
|
|
93
94
|
n.interceptors.response.use(async (e) => {
|
|
94
95
|
const r = (e == null ? void 0 : e.data) || {}, {
|
|
95
|
-
message:
|
|
96
|
-
success:
|
|
97
|
-
code:
|
|
96
|
+
message: o,
|
|
97
|
+
success: a,
|
|
98
|
+
code: u
|
|
98
99
|
} = r;
|
|
99
|
-
if (console.log(r, "dsdsds"),
|
|
100
|
+
if (console.log(r, "dsdsds"), a)
|
|
100
101
|
return r;
|
|
101
|
-
if (
|
|
102
|
+
if (u === 40101) {
|
|
102
103
|
console.log(e, "response");
|
|
103
104
|
const c = e.config;
|
|
104
105
|
if (f)
|
|
105
|
-
return new Promise((
|
|
106
|
+
return new Promise((s, i) => {
|
|
106
107
|
d.push({
|
|
107
|
-
resolve:
|
|
108
|
-
reject:
|
|
108
|
+
resolve: s,
|
|
109
|
+
reject: i
|
|
109
110
|
});
|
|
110
|
-
}).then((
|
|
111
|
+
}).then((s) => (c.headers && (c.headers.authorization = `Bearer ${s}`), n(c))).catch((s) => Promise.reject(s));
|
|
111
112
|
c._retry = !0, f = !0;
|
|
112
113
|
try {
|
|
113
|
-
const
|
|
114
|
-
return h(null,
|
|
115
|
-
} catch (
|
|
116
|
-
h(
|
|
114
|
+
const s = await P();
|
|
115
|
+
return h(null, s), c.headers && (c.headers.authorization = `Bearer ${s}`), n(c);
|
|
116
|
+
} catch (s) {
|
|
117
|
+
h(s, null), p();
|
|
117
118
|
const {
|
|
118
|
-
show:
|
|
119
|
-
} =
|
|
120
|
-
return
|
|
119
|
+
show: i
|
|
120
|
+
} = w();
|
|
121
|
+
return i.value = !0, Promise.reject(s);
|
|
121
122
|
} finally {
|
|
122
123
|
f = !1;
|
|
123
124
|
}
|
|
124
125
|
} else
|
|
125
|
-
return
|
|
126
|
+
return l.error(o || "请求失败"), Promise.reject(r);
|
|
126
127
|
}, (e) => {
|
|
127
128
|
if (e.response) {
|
|
128
129
|
const {
|
|
129
130
|
data: r
|
|
130
131
|
} = e.response, {
|
|
131
|
-
message:
|
|
132
|
+
message: o
|
|
132
133
|
} = r || {};
|
|
133
|
-
console.log(e.response, "error.response"), console.error("Error Response:", e.response),
|
|
134
|
-
} else e.request ? (console.error("Error Request:", e.request),
|
|
134
|
+
console.log(e.response, "error.response"), console.error("Error Response:", e.response), l.error(o || "服务错误");
|
|
135
|
+
} else e.request ? (console.error("Error Request:", e.request), l.error("网络错误,请检查网络连接")) : (console.error("Error Message:", e.message), l.error(e.message || "服务错误"));
|
|
135
136
|
return Promise.reject(e);
|
|
136
137
|
});
|
|
137
138
|
function E(e) {
|
|
138
139
|
return n({
|
|
139
|
-
url: `${
|
|
140
|
+
url: `${t.authPrefixUrl}/restfulApi/auth/signIn`,
|
|
140
141
|
method: "post",
|
|
141
142
|
data: e
|
|
142
143
|
});
|
|
143
144
|
}
|
|
144
|
-
function
|
|
145
|
+
function $(e) {
|
|
145
146
|
return n({
|
|
146
|
-
url: `${
|
|
147
|
+
url: `${t.authPrefixUrl}/restfulApi/auth/resetPassword`,
|
|
147
148
|
method: "post",
|
|
148
149
|
data: e
|
|
149
150
|
});
|
|
150
151
|
}
|
|
151
|
-
function
|
|
152
|
+
function R(e) {
|
|
152
153
|
return n({
|
|
153
|
-
url: `${
|
|
154
|
+
url: `${t.authPrefixUrl}/restfulApi/auth/signUp`,
|
|
154
155
|
method: "post",
|
|
155
156
|
data: e
|
|
156
157
|
});
|
|
157
158
|
}
|
|
158
159
|
function q(e) {
|
|
159
160
|
return n({
|
|
160
|
-
url: `${
|
|
161
|
+
url: `${t.authPrefixUrl}/restfulApi/oauth2/authorize`,
|
|
161
162
|
method: "post",
|
|
162
163
|
data: e
|
|
163
164
|
});
|
|
164
165
|
}
|
|
165
|
-
function
|
|
166
|
+
function U(e) {
|
|
166
167
|
return n({
|
|
167
168
|
url: "/restfulApi/auth/refresh",
|
|
168
169
|
method: "post",
|
|
@@ -173,14 +174,14 @@ function j(e) {
|
|
|
173
174
|
}
|
|
174
175
|
export {
|
|
175
176
|
T as a,
|
|
176
|
-
|
|
177
|
+
S as b,
|
|
177
178
|
n as c,
|
|
178
|
-
|
|
179
|
-
|
|
179
|
+
$ as d,
|
|
180
|
+
R as e,
|
|
180
181
|
E as f,
|
|
181
|
-
|
|
182
|
-
|
|
182
|
+
t as g,
|
|
183
|
+
A as h,
|
|
183
184
|
q as o,
|
|
184
185
|
B as s,
|
|
185
|
-
|
|
186
|
+
w as u
|
|
186
187
|
};
|
package/dist/authkit.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export { default as AuthkitSignUp } from './components/Authkit/Auth/AuthkitSignU
|
|
|
9
9
|
export { default as AuthkitAuthorize } from './components/Authkit/Auth/AuthkitAuthorize.vue';
|
|
10
10
|
export { default as AuthkitOAuthItem } from './components/Authkit/Auth/AuthkitOAuthItem.vue';
|
|
11
11
|
export { default as AuthkitOAuthList } from './components/Authkit/Auth/AuthkitOAuthList.vue';
|
|
12
|
+
export { default as AuthkitOAuthCallback } from './components/Authkit/Auth/AuthkitOAuthCallback.vue';
|
|
12
13
|
export { default as AuthkitPasswordUpdateAndVerify } from './components/Authkit/Auth/AuthkitPasswordUpdateAndVerify.vue';
|
|
13
14
|
export { default as AuthkitResetPassword } from './components/Authkit/Auth/AuthkitResetPassword.vue';
|
|
14
15
|
export { default as AuthkitPasswordAuth } from './components/Authkit/Auth/AuthkitPasswordAuth.vue';
|
|
@@ -27,5 +28,6 @@ export { useAuthkitAuth } from './composables/Authkit/useAuthkitAuth';
|
|
|
27
28
|
export { useAuthkitAuthModal } from './composables/Authkit/useAuthkitAuthModal';
|
|
28
29
|
export { useAuthkitUsersProfile } from './composables/Authkit/useAuthkitUsersProfile';
|
|
29
30
|
export { useAuthkitCreateAndUpdate } from './composables/Authkit/useAuthkitCreateAndUpdate';
|
|
31
|
+
export { useAuthkitOAuth } from './composables/Authkit/useAuthkitOAuth';
|
|
30
32
|
export type * from './types/auth';
|
|
31
33
|
export type { AppsData, PublicRoute } from './types/app';
|
package/dist/authkit.js
CHANGED
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
import { A as a, a as s, c as u, b as A, n as h, E as e, k
|
|
2
|
-
import { A as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
1
|
+
import { A as a, a as s, c as u, b as A, n as h, E as e, k, l as r, _ as o, O as n, f as d, o as p, P as f, j as m, R as P, S as l, i as S, m as g, d as w, e as c, g as U, h as x, u as O } from "./AuthkitAuthModal-BSvtvlyj.js";
|
|
2
|
+
import { A as b, a as y, b as C } from "./AuthkitOAuthCallback-DQ1RAKyR.js";
|
|
3
|
+
import { u as R } from "./useAuthkitAppsAuthPageInfo-CzZmhPMm.js";
|
|
4
|
+
import { u as v, a as B } from "./useAuthkitUsersProfile-hZ9L3rYe.js";
|
|
5
|
+
import { u as j } from "./auth-bwwc2iT8.js";
|
|
6
|
+
import { u as G } from "./useAuthkitCreateAndUpdate-Co5wMbv7.js";
|
|
7
7
|
export {
|
|
8
8
|
a as AuthkitAppSetting,
|
|
9
9
|
s as AuthkitAuth,
|
|
10
|
-
|
|
10
|
+
b as AuthkitAuthContainer,
|
|
11
11
|
u as AuthkitAuthModal,
|
|
12
12
|
A as AuthkitAuthTitle,
|
|
13
|
-
|
|
13
|
+
y as AuthkitAuthorize,
|
|
14
14
|
h as AuthkitEmailBinding,
|
|
15
15
|
e as AuthkitEmailUpdate,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
k as AuthkitEmailVerify,
|
|
17
|
+
r as AuthkitGithubBinding,
|
|
18
|
+
C as AuthkitOAuthCallback,
|
|
19
|
+
o as AuthkitOAuthItem,
|
|
19
20
|
n as AuthkitOAuthList,
|
|
20
21
|
d as AuthkitPasswordAuth,
|
|
21
22
|
p as AuthkitPasswordUpdate,
|
|
22
23
|
f as AuthkitPasswordUpdateAndVerify,
|
|
23
24
|
m as AuthkitPersonalInformation,
|
|
24
25
|
P as AuthkitResetPassword,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
l as AuthkitSendVerifyCode,
|
|
27
|
+
S as AuthkitServiceAgreementAndPrivacyProtection,
|
|
28
|
+
g as AuthkitSetPassword,
|
|
28
29
|
w as AuthkitSignIn,
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
c as AuthkitSignUp,
|
|
31
|
+
U as AuthkitSwitchSignIn,
|
|
31
32
|
x as AuthkitSwitchSignUpOrResetPassword,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
R as useAuthkitAppsAuthPageInfo,
|
|
34
|
+
v as useAuthkitAuth,
|
|
35
|
+
j as useAuthkitAuthModal,
|
|
36
|
+
G as useAuthkitCreateAndUpdate,
|
|
37
|
+
O as useAuthkitOAuth,
|
|
38
|
+
B as useAuthkitUsersProfile
|
|
37
39
|
};
|
|
@@ -13,6 +13,8 @@ export interface HuyoooUIConfig {
|
|
|
13
13
|
prefixUrl: string;
|
|
14
14
|
/** 认证 API前缀 */
|
|
15
15
|
authPrefixUrl: string;
|
|
16
|
+
/** OAuth 回调地址(可选,默认当前域名 + /auth/callback) */
|
|
17
|
+
oauthCallbackUrl: string;
|
|
16
18
|
avatarBucketId: string;
|
|
17
19
|
feedbackBucketId: string;
|
|
18
20
|
/** 默认存储桶名称 */
|
|
@@ -34,6 +36,8 @@ export declare function setGlobalConfig(newConfig: {
|
|
|
34
36
|
prefixUrl: string;
|
|
35
37
|
/** 认证 API前缀 */
|
|
36
38
|
authPrefixUrl: string;
|
|
39
|
+
/** OAuth 回调地址(可选,默认当前域名 + /auth/callback) */
|
|
40
|
+
oauthCallbackUrl?: string;
|
|
37
41
|
avatarBucketId?: string;
|
|
38
42
|
feedbackBucketId?: string;
|
|
39
43
|
/** 默认存储桶名称 */
|
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-
|
|
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-DiEkVFtH.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-B8i1SbFB.js";
|
|
4
4
|
import { M, a as g } from "./Menu-BjWB9hre.js";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 登录成功后的默认跳转路径 */
|
|
3
|
+
defaultRedirect?: string;
|
|
4
|
+
/** 加载时显示的文本 */
|
|
5
|
+
loadingText?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
|
+
success: (data: {
|
|
9
|
+
token: string;
|
|
10
|
+
userId: string;
|
|
11
|
+
appId: string;
|
|
12
|
+
}) => any;
|
|
13
|
+
error: (message: string) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onSuccess?: ((data: {
|
|
16
|
+
token: string;
|
|
17
|
+
userId: string;
|
|
18
|
+
appId: string;
|
|
19
|
+
}) => any) | undefined;
|
|
20
|
+
onError?: ((message: string) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
22
|
+
export default _default;
|
|
@@ -19,7 +19,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
19
19
|
default: () => string;
|
|
20
20
|
};
|
|
21
21
|
}>> & Readonly<{}>, {
|
|
22
|
-
size: FormSizeType;
|
|
23
22
|
appId: string;
|
|
23
|
+
size: FormSizeType;
|
|
24
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
25
25
|
export default _default;
|
|
@@ -54,8 +54,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
54
54
|
onInfinite?: ((...args: any[]) => any) | undefined;
|
|
55
55
|
}>, {
|
|
56
56
|
loading: boolean;
|
|
57
|
-
finished: boolean;
|
|
58
57
|
loadingText: string;
|
|
58
|
+
finished: boolean;
|
|
59
59
|
finishedText: string;
|
|
60
60
|
showFinishedText: boolean;
|
|
61
61
|
threshold: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
declare function handleOAuthCallback(): boolean;
|
|
1
2
|
declare function initializeAuth(): boolean;
|
|
2
3
|
declare function getToken(): string | null;
|
|
3
4
|
declare function setToken(token: string): void;
|
|
@@ -38,5 +39,6 @@ export declare function useAuthkitAuth(): {
|
|
|
38
39
|
setToken: typeof setToken;
|
|
39
40
|
initializeAuth: typeof initializeAuth;
|
|
40
41
|
clearAuth: typeof clearAuth;
|
|
42
|
+
handleOAuthCallback: typeof handleOAuthCallback;
|
|
41
43
|
};
|
|
42
44
|
export {};
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** 获取当前 OAuth 回调地址 */
|
|
2
|
+
declare function getOAuthCallbackUrl(): string;
|
|
3
|
+
/** 发起 OAuth 登录(通用方法) */
|
|
4
|
+
declare function startOAuth(provider: 'github' | 'google' | 'microsoft', options?: {
|
|
5
|
+
referrerId?: string;
|
|
6
|
+
}): Promise<void>;
|
|
7
|
+
/** GitHub OAuth 登录 */
|
|
2
8
|
declare function githubAuth(referrerId?: string): void;
|
|
3
|
-
|
|
4
|
-
declare function
|
|
9
|
+
/** Google OAuth 登录 */
|
|
10
|
+
declare function googleAuth(referrerId?: string): void;
|
|
11
|
+
/** Microsoft OAuth 登录 */
|
|
12
|
+
declare function microsoftAuth(referrerId?: string): void;
|
|
5
13
|
export declare function useAuthkitOAuth(): {
|
|
6
14
|
githubAuth: typeof githubAuth;
|
|
7
15
|
googleAuth: typeof googleAuth;
|
|
8
16
|
microsoftAuth: typeof microsoftAuth;
|
|
17
|
+
startOAuth: typeof startOAuth;
|
|
18
|
+
getOAuthCallbackUrl: typeof getOAuthCallbackUrl;
|
|
9
19
|
};
|
|
10
20
|
export {};
|
package/dist/composables.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { u as a, a as o } from "./useAuthkitUsersProfile-
|
|
2
|
-
import { g as u, a as r, s as i, b as n, u as f } from "./auth-
|
|
3
|
-
import { u as p } from "./useAuthkitAppsAuthPageInfo-
|
|
4
|
-
import { u as h } from "./useAuthkitCreateAndUpdate-
|
|
5
|
-
import { u as d } from "./useMessageNotifications-
|
|
6
|
-
import { u as x, a as C } from "./useDownloads-
|
|
7
|
-
import { u as P } from "./useTableHandle-
|
|
8
|
-
import { b as k, f as M, g as O, u as w, a as E, c as S, e as U, d as v, w as D } from "./useSEO-
|
|
9
|
-
import { u as R } from "./useUploadCos-
|
|
1
|
+
import { u as a, a as o } from "./useAuthkitUsersProfile-hZ9L3rYe.js";
|
|
2
|
+
import { g as u, a as r, s as i, b as n, u as f } from "./auth-bwwc2iT8.js";
|
|
3
|
+
import { u as p } from "./useAuthkitAppsAuthPageInfo-CzZmhPMm.js";
|
|
4
|
+
import { u as h } from "./useAuthkitCreateAndUpdate-Co5wMbv7.js";
|
|
5
|
+
import { u as d } from "./useMessageNotifications-BT84SOgI.js";
|
|
6
|
+
import { u as x, a as C } from "./useDownloads-C0V_Sjr9.js";
|
|
7
|
+
import { u as P } from "./useTableHandle-DaKaAKAH.js";
|
|
8
|
+
import { b as k, f as M, g as O, u as w, a as E, c as S, e as U, d as v, w as D } from "./useSEO-DT8VkGVt.js";
|
|
9
|
+
import { u as R } from "./useUploadCos-_xwV40NS.js";
|
|
10
10
|
export {
|
|
11
11
|
k as findActiveMenuPath,
|
|
12
12
|
M as findMenuPath,
|
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-DWJmFtvY.js";
|
|
2
|
+
import { C as r } from "./Clipboard-BAn3vQlX.js";
|
|
3
|
+
import { F as m, a as n, c as f, b as i, d as p } from "./FeedbackItem-B9lo9J0G.js";
|
|
4
4
|
export {
|
|
5
5
|
r as Clipboard,
|
|
6
6
|
b as FeedbackBubbleEnd,
|