@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.
Files changed (43) hide show
  1. package/dist/{AuthkitAuthModal-BVXtE_sP.js → AuthkitAuthModal-BSvtvlyj.js} +789 -748
  2. package/dist/AuthkitOAuthCallback-DQ1RAKyR.js +330 -0
  3. package/dist/{Clipboard-CXQgZeZq.js → Clipboard-BAn3vQlX.js} +1 -1
  4. package/dist/{Contact-ZkK_OxmG.js → Contact-CDelrtDR.js} +2 -2
  5. package/dist/{FeedbackItem-BZ3zskgs.js → FeedbackItem-B9lo9J0G.js} +3 -3
  6. package/dist/{FeedbackModal-CLRw0hmp.js → FeedbackModal-DWJmFtvY.js} +3 -3
  7. package/dist/{MessageHandle-cK3Z3tfe.js → MessageHandle-BlsLRmdj.js} +3 -3
  8. package/dist/{PaySubscriptions-DlV3SHOV.js → PaySubscriptions-Vj0KnZGv.js} +3 -3
  9. package/dist/{ReferrerReferees-DBOVVD_R.js → ReferrerReferees-D8hYkkAy.js} +4 -4
  10. package/dist/{Upload.vue_vue_type_script_setup_true_lang-bvoyktaa.js → Upload.vue_vue_type_script_setup_true_lang-BYlxlhfb.js} +2 -2
  11. package/dist/{UserAccountMenu-BbHFa60w.js → UserAccountMenu-BWx4hX66.js} +7 -7
  12. package/dist/{WidthContainer-VdifT6ZJ.js → WidthContainer-DiEkVFtH.js} +6 -6
  13. package/dist/api/Authkit/OAuth.d.ts +7 -4
  14. package/dist/{auth-CDARHcht.js → auth-bwwc2iT8.js} +60 -59
  15. package/dist/authkit.d.ts +2 -0
  16. package/dist/authkit.js +23 -21
  17. package/dist/common/globalConfig.d.ts +4 -0
  18. package/dist/common.js +1 -1
  19. package/dist/components/Authkit/Auth/AuthkitOAuthCallback.vue.d.ts +22 -0
  20. package/dist/components/Authkit/Auth/AuthkitOAuthList.vue.d.ts +1 -1
  21. package/dist/components/InfiniteLoading.vue.d.ts +1 -1
  22. package/dist/composables/Authkit/useAuthkitAuth.d.ts +2 -0
  23. package/dist/composables/Authkit/useAuthkitOAuth.d.ts +13 -3
  24. package/dist/composables.js +9 -9
  25. package/dist/feedback.js +3 -3
  26. package/dist/index.js +179 -177
  27. package/dist/message.js +2 -2
  28. package/dist/pay.js +1 -1
  29. package/dist/privateCom.js +1 -1
  30. package/dist/referrer.js +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/upload.js +2 -2
  33. package/dist/{useAuthkitAppsAuthPageInfo-h9CL-MmH.js → useAuthkitAppsAuthPageInfo-CzZmhPMm.js} +1 -1
  34. package/dist/{useAuthkitCreateAndUpdate-Bsl_uyGQ.js → useAuthkitCreateAndUpdate-Co5wMbv7.js} +1 -1
  35. package/dist/{useAuthkitUsersProfile-B_uMdnat.js → useAuthkitUsersProfile-hZ9L3rYe.js} +93 -71
  36. package/dist/{useDownloads-05u8toS3.js → useDownloads-C0V_Sjr9.js} +1 -1
  37. package/dist/{useMessageNotifications-CAiVf4PX.js → useMessageNotifications-BT84SOgI.js} +1 -1
  38. package/dist/{useSEO-D5sci2ek.js → useSEO-DT8VkGVt.js} +2 -2
  39. package/dist/{useTableHandle-aJOWPWFL.js → useTableHandle-DaKaAKAH.js} +1 -1
  40. package/dist/{useUploadCos-DKh-eczm.js → useUploadCos-_xwV40NS.js} +1 -1
  41. package/dist/user.js +1 -1
  42. package/package.json +1 -1
  43. package/dist/AuthkitAuthorize-Cu6_4HoY.js +0 -248
@@ -0,0 +1,330 @@
1
+ import { defineComponent as A, computed as P, createElementBlock as f, openBlock as m, normalizeStyle as C, createElementVNode as e, createCommentVNode as T, renderSlot as O, ref as _, toDisplayString as y, createVNode as i, unref as s, withCtx as d, createTextVNode as L, onMounted as B } from "vue";
2
+ import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ /* empty css */
4
+ /* empty css */
5
+ /* empty css */
6
+ /* empty css */
7
+ /* empty css */
8
+ /* empty css */
9
+ /* empty css */
10
+ import { List as N, ListItem as w, ListItemMeta as S, Avatar as I, Button as V } from "@arco-design/web-vue";
11
+ import { a as M } from "./useAuthkitAppsAuthPageInfo-CzZmhPMm.js";
12
+ import { o as D } from "./auth-bwwc2iT8.js";
13
+ import { u as E, a as F } from "./useAuthkitUsersProfile-hZ9L3rYe.js";
14
+ const H = {
15
+ class: "header"
16
+ }, j = ["href"], K = {
17
+ class: "container"
18
+ }, G = /* @__PURE__ */ A({
19
+ __name: "AuthkitAuthContainer",
20
+ props: {
21
+ applicationLogoUrl: {
22
+ type: String,
23
+ required: !0,
24
+ default: () => ""
25
+ },
26
+ name: {
27
+ type: String,
28
+ required: !0,
29
+ default: () => ""
30
+ },
31
+ description: {
32
+ type: String,
33
+ required: !0,
34
+ default: () => ""
35
+ },
36
+ appHomePage: {
37
+ type: String,
38
+ required: !0,
39
+ default: () => ""
40
+ },
41
+ backgroundImage: {
42
+ type: String,
43
+ required: !0,
44
+ default: () => ""
45
+ },
46
+ backgroundColor: {
47
+ type: String,
48
+ required: !0,
49
+ default: () => ""
50
+ },
51
+ linkColor: {
52
+ type: String,
53
+ default: "rgb(22, 93, 255)"
54
+ },
55
+ backgroundType: {
56
+ type: String,
57
+ default: "color"
58
+ }
59
+ },
60
+ setup(g) {
61
+ const r = g, t = P(() => r.backgroundType === "color" ? {
62
+ backgroundColor: r.backgroundColor
63
+ } : {
64
+ backgroundImage: `url(${r.backgroundImage})`
65
+ });
66
+ return (a, p) => (m(), f("div", {
67
+ class: "auth",
68
+ style: C(t.value)
69
+ }, [e("div", H, [r.name ? (m(), f("a", {
70
+ key: 0,
71
+ href: r.appHomePage,
72
+ target: "_self",
73
+ class: "link",
74
+ style: C({
75
+ color: r.linkColor
76
+ })
77
+ }, " 返回主页 ", 12, j)) : T("", !0)]), e("div", K, [O(a.$slots, "default", {}, void 0, !0)])], 4));
78
+ }
79
+ }), _e = /* @__PURE__ */ q(G, [["__scopeId", "data-v-203946ff"]]), J = {
80
+ class: "box"
81
+ }, Q = {
82
+ class: "title"
83
+ }, W = {
84
+ class: "content"
85
+ }, X = {
86
+ class: "redirect"
87
+ }, Y = {
88
+ style: {
89
+ "font-weight": "bold",
90
+ "font-size": "12px"
91
+ }
92
+ }, Z = /* @__PURE__ */ A({
93
+ __name: "AuthkitAuthorize",
94
+ props: {
95
+ size: {
96
+ type: String,
97
+ required: !0
98
+ },
99
+ title: {
100
+ type: String,
101
+ required: !0,
102
+ default: () => "授权登录"
103
+ },
104
+ logo: {
105
+ type: String,
106
+ required: !0,
107
+ default: () => ""
108
+ },
109
+ clientId: {
110
+ type: String,
111
+ required: !0,
112
+ default: () => ""
113
+ },
114
+ responseType: {
115
+ type: String,
116
+ required: !0,
117
+ default: () => ""
118
+ },
119
+ scope: {
120
+ type: String,
121
+ required: !0,
122
+ default: () => ""
123
+ },
124
+ state: {
125
+ type: String,
126
+ required: !0,
127
+ default: () => ""
128
+ },
129
+ redirectUri: {
130
+ type: String,
131
+ required: !0,
132
+ default: () => ""
133
+ },
134
+ userInfo: {
135
+ type: Object,
136
+ required: !0,
137
+ default: () => ""
138
+ }
139
+ },
140
+ setup(g) {
141
+ const r = _(!1), t = g, a = _({
142
+ appKey: "",
143
+ name: "",
144
+ homePageUrl: "",
145
+ createAt: "",
146
+ authorizationCallback: ""
147
+ });
148
+ function p() {
149
+ M({
150
+ id: t.clientId
151
+ }).then(({
152
+ data: l
153
+ }) => {
154
+ a.value = l;
155
+ }).catch((l) => {
156
+ console.error("获取应用信息失败:", l);
157
+ });
158
+ }
159
+ p();
160
+ function n() {
161
+ r.value = !0, D({
162
+ client_id: t.clientId,
163
+ response_type: t.responseType,
164
+ scope: t.scope,
165
+ state: t.state,
166
+ redirect_uri: t.redirectUri
167
+ }).then(({
168
+ data: l
169
+ }) => {
170
+ r.value = !1, window.location = l.authorizeUrl;
171
+ }).catch((l) => {
172
+ r.value = !1, console.error("授权失败:", l);
173
+ });
174
+ }
175
+ return (l, u) => (m(), f("div", J, [e("div", Q, y(`授权 ${a.value.name}`), 1), e("div", W, [i(s(N), null, {
176
+ default: d(() => [i(s(w), null, {
177
+ default: d(() => {
178
+ var h;
179
+ return [i(s(S), {
180
+ title: a.value.name,
181
+ description: `想要使用您的${(h = t.userInfo) == null ? void 0 : h.nickname}账户`
182
+ }, {
183
+ avatar: d(() => {
184
+ var v;
185
+ return [i(s(I), {
186
+ shape: "square",
187
+ "image-url": (v = t.userInfo) == null ? void 0 : v.avatar
188
+ }, null, 8, ["image-url"])];
189
+ }),
190
+ _: 1
191
+ }, 8, ["title", "description"])];
192
+ }),
193
+ _: 1
194
+ }), i(s(w), null, {
195
+ default: d(() => [i(s(S), {
196
+ title: "公开信息",
197
+ description: "头像、昵称"
198
+ }, {
199
+ avatar: d(() => [i(s(I), {
200
+ shape: "square"
201
+ }, {
202
+ default: d(() => [...u[0] || (u[0] = [e("img", {
203
+ alt: "avatar",
204
+ src: "https://p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/3ee5f13fb09879ecb5185e440cef6eb9.png~tplv-uwbnlip3yd-webp.webp"
205
+ }, null, -1)])]),
206
+ _: 1
207
+ })]),
208
+ _: 1
209
+ })]),
210
+ _: 1
211
+ }), i(s(w), null, {
212
+ default: d(() => [i(s(S), {
213
+ title: "个人用户数据",
214
+ description: "电子邮件地址"
215
+ }, {
216
+ avatar: d(() => [i(s(I), {
217
+ shape: "square"
218
+ }, {
219
+ default: d(() => [...u[1] || (u[1] = [e("img", {
220
+ alt: "avatar",
221
+ src: "https://p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/3ee5f13fb09879ecb5185e440cef6eb9.png~tplv-uwbnlip3yd-webp.webp"
222
+ }, null, -1)])]),
223
+ _: 1
224
+ })]),
225
+ _: 1
226
+ })]),
227
+ _: 1
228
+ })]),
229
+ _: 1
230
+ }), i(s(V), {
231
+ type: "primary",
232
+ size: t.size,
233
+ loading: r.value,
234
+ onClick: n
235
+ }, {
236
+ default: d(() => [...u[2] || (u[2] = [L(" 授权 ", -1)])]),
237
+ _: 1
238
+ }, 8, ["size", "loading"]), e("div", X, [u[3] || (u[3] = e("div", {
239
+ style: {
240
+ color: "#888",
241
+ "font-size": "12px"
242
+ }
243
+ }, "授权后将跳转至", -1)), e("div", Y, y(a.value.authorizationCallback), 1)])])]));
244
+ }
245
+ }), ye = /* @__PURE__ */ q(Z, [["__scopeId", "data-v-cc821ddc"]]), ee = {
246
+ class: "oauth-callback"
247
+ }, te = {
248
+ key: 0,
249
+ class: "callback-loading"
250
+ }, re = {
251
+ key: 1,
252
+ class: "callback-error"
253
+ }, oe = {
254
+ key: 2,
255
+ class: "callback-success"
256
+ }, ae = /* @__PURE__ */ A({
257
+ __name: "AuthkitOAuthCallback",
258
+ props: {
259
+ defaultRedirect: {},
260
+ loadingText: {}
261
+ },
262
+ emits: ["success", "error"],
263
+ setup(g, {
264
+ emit: r
265
+ }) {
266
+ const t = g, a = r, p = _(!0), n = _(""), {
267
+ setToken: l,
268
+ initializeAuth: u
269
+ } = E(), {
270
+ fetchUserProfile: h
271
+ } = F();
272
+ async function v() {
273
+ const c = new URLSearchParams(window.location.search), o = c.get("error");
274
+ if (o) {
275
+ n.value = decodeURIComponent(o), p.value = !1, a("error", n.value);
276
+ return;
277
+ }
278
+ const k = c.get("token"), $ = c.get("userId"), x = c.get("appId");
279
+ if (!k) {
280
+ n.value = "登录失败:未收到认证令牌", p.value = !1, a("error", n.value);
281
+ return;
282
+ }
283
+ try {
284
+ l(k), await h();
285
+ const b = window.location.pathname;
286
+ window.history.replaceState({}, "", b), a("success", {
287
+ token: k,
288
+ userId: $ || "",
289
+ appId: x || ""
290
+ });
291
+ const R = sessionStorage.getItem("auth_redirect");
292
+ sessionStorage.removeItem("auth_redirect");
293
+ const U = R || t.defaultRedirect || "/";
294
+ p.value = !1, setTimeout(() => {
295
+ window.location.href = U;
296
+ }, 500);
297
+ } catch (b) {
298
+ console.error("OAuth 回调处理失败:", b), n.value = "登录处理失败,请重试", p.value = !1, a("error", n.value);
299
+ }
300
+ }
301
+ function z() {
302
+ const c = sessionStorage.getItem("auth_redirect");
303
+ sessionStorage.removeItem("auth_redirect"), window.location.href = c || t.defaultRedirect || "/";
304
+ }
305
+ return B(() => {
306
+ const c = new URLSearchParams(window.location.search);
307
+ if (c.has("token") || c.has("error"))
308
+ v();
309
+ else if (u()) {
310
+ const o = sessionStorage.getItem("auth_redirect");
311
+ sessionStorage.removeItem("auth_redirect"), window.location.href = o || t.defaultRedirect || "/";
312
+ } else
313
+ n.value = "无效的访问", p.value = !1;
314
+ }), (c, o) => (m(), f("div", ee, [p.value ? (m(), f("div", te, [o[0] || (o[0] = e("div", {
315
+ class: "spinner"
316
+ }, null, -1)), e("p", null, y(g.loadingText), 1)])) : n.value ? (m(), f("div", re, [o[1] || (o[1] = e("div", {
317
+ class: "error-icon"
318
+ }, "✕", -1)), o[2] || (o[2] = e("h2", null, "登录失败", -1)), e("p", null, y(n.value), 1), e("button", {
319
+ class: "retry-btn",
320
+ onClick: z
321
+ }, "返回重试")])) : (m(), f("div", oe, [...o[3] || (o[3] = [e("div", {
322
+ class: "success-icon"
323
+ }, "✓", -1), e("p", null, "登录成功,正在跳转...", -1)])]))]));
324
+ }
325
+ }), ke = /* @__PURE__ */ q(ae, [["__scopeId", "data-v-930630e1"]]);
326
+ export {
327
+ _e as A,
328
+ ye as a,
329
+ ke as b
330
+ };
@@ -1,5 +1,5 @@
1
1
  /* empty css */
2
- import "./auth-CDARHcht.js";
2
+ import "./auth-bwwc2iT8.js";
3
3
  import { defineComponent as V, ref as X, createBlock as J, openBlock as K, unref as Q } from "vue";
4
4
  import { Message as W } from "@arco-design/web-vue";
5
5
  import { Icon as Z } from "@iconify/vue";
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as P, ref as q, createElementBlock as t, openBlock as Q, createVNode as A, withCtx as B, Fragment as H, renderList as e, createBlock as W, createTextVNode as p, toDisplayString as i, unref as V, createElementVNode as F } from "vue";
2
2
  import { f as n, e as y, h as G, g as R, L as Z, c as h, l as Y, m as b, n as J, k as S, a as O, b as d } from "./LandingPageSectionHeader-BU7Qtxaj.js";
3
3
  import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import { u as M } from "./useAuthkitAppsAuthPageInfo-h9CL-MmH.js";
5
- import { g as L } from "./auth-CDARHcht.js";
4
+ import { u as M } from "./useAuthkitAppsAuthPageInfo-CzZmhPMm.js";
5
+ import { g as L } from "./auth-bwwc2iT8.js";
6
6
  import { c as x } from "./index-Bb-d5pBq.js";
7
7
  const j = {
8
8
  class: "Footer"
@@ -7,9 +7,9 @@ import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  /* empty css */
10
- import { u as Z } from "./useUploadCos-DKh-eczm.js";
11
- import { g as A } from "./auth-CDARHcht.js";
12
- import "./FeedbackModal-CLRw0hmp.js";
10
+ import { u as Z } from "./useUploadCos-_xwV40NS.js";
11
+ import { g as A } from "./auth-bwwc2iT8.js";
12
+ import "./FeedbackModal-DWJmFtvY.js";
13
13
  import { Icon as Y } from "@iconify/vue";
14
14
  const H = f({
15
15
  name: "IconDown",
@@ -8,16 +8,16 @@ import { M as De } from "./Menu-BjWB9hre.js";
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
- import { c as N, g as q } from "./auth-CDARHcht.js";
11
+ import { c as N, g as q } from "./auth-bwwc2iT8.js";
12
12
  /* empty css */
13
13
  /* empty css */
14
- import { r as Ne, a as Ae, u as Oe } from "./useUploadCos-DKh-eczm.js";
14
+ import { r as Ne, a as Ae, u as Oe } from "./useUploadCos-_xwV40NS.js";
15
15
  import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
16
  /* empty css */
17
17
  import { f as j } from "./index-Bb-d5pBq.js";
18
18
  import { C as Ve } from "./CustomTable-B8i1SbFB.js";
19
19
  import { Bubble as fe, Prompts as Pe, Sender as Ee } from "ant-design-x-vue";
20
- import { C as pe } from "./Clipboard-CXQgZeZq.js";
20
+ import { C as pe } from "./Clipboard-BAn3vQlX.js";
21
21
  import { Icon as je } from "@iconify/vue";
22
22
  import { _ as me, g as ve, i as ye } from "./plugin-vue_export-helper-LjDO2Zua.js";
23
23
  const Me = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), te = {
@@ -4,14 +4,14 @@ import { defineComponent as b, ref as r, createBlock as p, openBlock as l, unref
4
4
  /* empty css */
5
5
  /* empty css */
6
6
  import { Spin as V, Empty as K, Button as G, Divider as J, Breadcrumb as O, BreadcrumbItem as x, Modal as P } from "@arco-design/web-vue";
7
- import { c as S, g as D } from "./auth-CDARHcht.js";
7
+ import { c as S, g as D } from "./auth-bwwc2iT8.js";
8
8
  import { TiptapEditor as Q, TiptapTitle as W } from "@huyooo/vue-tiptap";
9
9
  import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  /* empty css */
11
11
  import { useIntersectionObserver as X } from "@vueuse/core";
12
- import { u as Y } from "./useMessageNotifications-CAiVf4PX.js";
12
+ import { u as Y } from "./useMessageNotifications-BT84SOgI.js";
13
13
  import { Icon as Z } from "@iconify/vue";
14
- import { u as ee } from "./useAuthkitCreateAndUpdate-Bsl_uyGQ.js";
14
+ import { u as ee } from "./useAuthkitCreateAndUpdate-Co5wMbv7.js";
15
15
  import { M as te } from "./Menu-BjWB9hre.js";
16
16
  function ne(a) {
17
17
  return S({
@@ -5,9 +5,9 @@
5
5
  /* empty css */
6
6
  import { defineComponent as D, ref as U, createBlock as B, openBlock as L, unref as a, isRef as M, withCtx as o, createElementVNode as d, createVNode as r, createTextVNode as u, toDisplayString as n } from "vue";
7
7
  import { Modal as V, Popconfirm as $, Button as E, Tag as g } from "@arco-design/web-vue";
8
- import { c as _, g as x } from "./auth-CDARHcht.js";
9
- import { u as H } from "./useAuthkitCreateAndUpdate-Bsl_uyGQ.js";
10
- import { u as j } from "./useTableHandle-aJOWPWFL.js";
8
+ import { c as _, g as x } from "./auth-bwwc2iT8.js";
9
+ import { u as H } from "./useAuthkitCreateAndUpdate-Co5wMbv7.js";
10
+ import { u as j } from "./useTableHandle-DaKaAKAH.js";
11
11
  import { f as y } from "./index-Bb-d5pBq.js";
12
12
  import { C as q } from "./CustomTable-B8i1SbFB.js";
13
13
  import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -3,11 +3,11 @@
3
3
  /* empty css */
4
4
  import { defineComponent as z, ref as d, createBlock as v, openBlock as g, unref as a, withCtx as _, createElementVNode as n, createVNode as A, createCommentVNode as V, toDisplayString as C, createTextVNode as w } from "vue";
5
5
  import { Modal as T } from "@arco-design/web-vue";
6
- import { c as U, g as y } from "./auth-CDARHcht.js";
7
- import { u as B } from "./useTableHandle-aJOWPWFL.js";
6
+ import { c as U, g as y } from "./auth-bwwc2iT8.js";
7
+ import { u as B } from "./useTableHandle-DaKaAKAH.js";
8
8
  import { C as D } from "./CustomTable-B8i1SbFB.js";
9
- import { C as E } from "./Clipboard-CXQgZeZq.js";
10
- import { a as H } from "./useAuthkitUsersProfile-B_uMdnat.js";
9
+ import { C as E } from "./Clipboard-BAn3vQlX.js";
10
+ import { a as H } from "./useAuthkitUsersProfile-hZ9L3rYe.js";
11
11
  import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  function $(c) {
13
13
  return U({
@@ -5,8 +5,8 @@
5
5
  /* empty css */
6
6
  import { defineComponent as q, createBlock as y, openBlock as F, unref as S, mergeProps as h, createSlots as C, withCtx as u, renderSlot as p } from "vue";
7
7
  import { Upload as I } from "@arco-design/web-vue";
8
- import { u as _ } from "./useUploadCos-DKh-eczm.js";
9
- import { g as l } from "./auth-CDARHcht.js";
8
+ import { u as _ } from "./useUploadCos-_xwV40NS.js";
9
+ import { g as l } from "./auth-bwwc2iT8.js";
10
10
  const O = /* @__PURE__ */ q({
11
11
  __name: "Upload",
12
12
  props: {
@@ -4,13 +4,13 @@
4
4
  /* empty css */
5
5
  import { defineComponent as C, createElementBlock as g, openBlock as s, normalizeStyle as ie, normalizeClass as se, createElementVNode as p, computed as P, createBlock as d, createCommentVNode as m, createVNode as c, unref as o, withCtx as l, createTextVNode as y, toDisplayString as S, mergeModels as D, useModel as re, renderSlot as ae, ref as f, Fragment as De } from "vue";
6
6
  import { Tag as Ve, Button as le, Avatar as ue, Dropdown as Re, Divider as ce, Doption as h } from "@arco-design/web-vue";
7
- import { S as ze } from "./PaySubscriptions-DlV3SHOV.js";
8
- import { R as Ne } from "./ReferrerReferees-DBOVVD_R.js";
9
- import { a as N, u as Le } from "./useAuthkitUsersProfile-B_uMdnat.js";
10
- import { u as je, g as oe } from "./auth-CDARHcht.js";
11
- import { c as He, A as Fe } from "./AuthkitAuthModal-BVXtE_sP.js";
12
- import { d as qe } from "./FeedbackModal-CLRw0hmp.js";
13
- import { M as Ee } from "./MessageHandle-cK3Z3tfe.js";
7
+ import { S as ze } from "./PaySubscriptions-Vj0KnZGv.js";
8
+ import { R as Ne } from "./ReferrerReferees-D8hYkkAy.js";
9
+ import { a as N, u as Le } from "./useAuthkitUsersProfile-hZ9L3rYe.js";
10
+ import { u as je, g as oe } from "./auth-bwwc2iT8.js";
11
+ import { c as He, A as Fe } from "./AuthkitAuthModal-BSvtvlyj.js";
12
+ import { d as qe } from "./FeedbackModal-DWJmFtvY.js";
13
+ import { M as Ee } from "./MessageHandle-BlsLRmdj.js";
14
14
  /* empty css */
15
15
  /* empty css */
16
16
  import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -2,15 +2,15 @@
2
2
  /* empty css */
3
3
  import { defineComponent as w, ref as x, watch as O, createElementBlock as n, openBlock as e, createElementVNode as o, createVNode as f, unref as u, withCtx as ee, renderSlot as K, createCommentVNode as k, toDisplayString as S, onMounted as te, onUnmounted as ne, Fragment as T, renderList as L, normalizeClass as I, createTextVNode as oe, normalizeStyle as A, createBlock as se, computed as U } from "vue";
4
4
  import { Spin as V } from "@arco-design/web-vue";
5
- import "./useAuthkitUsersProfile-B_uMdnat.js";
6
- import { a as ae } from "./auth-CDARHcht.js";
7
- import { u as W } from "./useAuthkitAppsAuthPageInfo-h9CL-MmH.js";
8
- import { a as D, b as R, w as H, f as G, c as N, e as F, d as ie } from "./useSEO-D5sci2ek.js";
9
- import "./useUploadCos-DKh-eczm.js";
5
+ import "./useAuthkitUsersProfile-hZ9L3rYe.js";
6
+ import { a as ae } from "./auth-bwwc2iT8.js";
7
+ import { u as W } from "./useAuthkitAppsAuthPageInfo-CzZmhPMm.js";
8
+ import { a as D, b as R, w as H, f as G, c as N, e as F, d as ie } from "./useSEO-DT8VkGVt.js";
9
+ import "./useUploadCos-_xwV40NS.js";
10
10
  import { useRouter as j, useRoute as J } from "vue-router";
11
11
  /* empty css */
12
12
  /* empty css */
13
- import { d as re, c as Q } from "./UserAccountMenu-BbHFa60w.js";
13
+ import { d as re, c as Q } from "./UserAccountMenu-BWx4hX66.js";
14
14
  /* empty css */
15
15
  /* empty css */
16
16
  /* empty css */
@@ -1,9 +1,12 @@
1
- interface GithubLoginParams {
1
+ interface OAuthLoginParams {
2
2
  appId: string;
3
3
  referrerId?: string;
4
+ redirectUri?: string;
4
5
  }
5
6
  /** 获取 GitHub OAuth 登录地址(多租户支持) */
6
- export declare function oAuthGithubLogin(params: GithubLoginParams): Promise<import('axios').AxiosResponse<any, any>>;
7
- export declare function oAuthGithubCallback(data: any): Promise<import('axios').AxiosResponse<any, any>>;
8
- export declare function oAuthAlipayCallback(data: any): Promise<import('axios').AxiosResponse<any, any>>;
7
+ export declare function oAuthGithubLogin(params: OAuthLoginParams): Promise<import('axios').AxiosResponse<any, any>>;
8
+ /** 获取 Google OAuth 登录地址(多租户支持) */
9
+ export declare function oAuthGoogleLogin(params: OAuthLoginParams): Promise<import('axios').AxiosResponse<any, any>>;
10
+ /** 获取 Microsoft OAuth 登录地址(多租户支持) */
11
+ export declare function oAuthMicrosoftLogin(params: OAuthLoginParams): Promise<import('axios').AxiosResponse<any, any>>;
9
12
  export {};