@huyooo/ui 0.7.18 → 0.7.20
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-DWwEkkA3.js → AuthkitAuthModal-DxxZlUbh.js} +336 -336
- package/dist/{AuthkitSignInPhone-DO2qlakf.js → AuthkitSignInPhone-BfqNvheZ.js} +4 -4
- package/dist/{Clipboard-BAn3vQlX.js → Clipboard-C_4QFg2W.js} +1 -1
- package/dist/{Contact-CDelrtDR.js → Contact-DJtDuS50.js} +2 -2
- package/dist/{FeedbackItem-DWWElTgd.js → FeedbackItem-CI-w_fOt.js} +12 -11
- package/dist/{FeedbackModal-OEAnzZZ6.js → FeedbackModal-3k-cMuoY.js} +37 -36
- package/dist/{MessageHandle-yS9s7JVm.js → MessageHandle-Pxxvhs-7.js} +74 -74
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-ByxQy7EP.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BVvzvLUA.js} +1 -1
- package/dist/MessageNotifications-FkiOW4qU.js +35 -0
- package/dist/PaySubscriptions-BHTKDYFN.js +474 -0
- package/dist/{ReferrerReferees-CnYkGC5r.js → ReferrerReferees-9wk0_tGC.js} +16 -16
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-BkqyMwbd.js → Upload.vue_vue_type_script_setup_true_lang-RZzfS9p1.js} +4 -3
- package/dist/{UserAccountMenu-CSl4L-KH.js → UserAccountMenu-CKGTR8GB.js} +7 -7
- package/dist/{WidthContainer-l5YOtNew.js → WidthContainer-BC30d-AV.js} +7 -7
- package/dist/api/Invoices.d.ts +32 -0
- package/dist/api/Products.d.ts +20 -0
- package/dist/api/Quotas.d.ts +21 -0
- package/dist/api/Subscriptions.d.ts +35 -0
- package/dist/{auth-bwwc2iT8.js → auth-CfexrvhT.js} +53 -52
- package/dist/authkit.js +6 -6
- package/dist/common/globalConfig.d.ts +10 -6
- package/dist/common.js +1 -1
- package/dist/components/Pay/PaySubscriptions.vue.d.ts +1 -1
- package/dist/components/User/UserPanel.vue.d.ts +2 -2
- package/dist/composables.js +9 -9
- package/dist/feedback.js +3 -3
- package/dist/index.js +24 -24
- package/dist/message.js +3 -3
- 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-CzZmhPMm.js → useAuthkitAppsAuthPageInfo-AFq46sfo.js} +3 -3
- package/dist/{useAuthkitCreateAndUpdate-Co5wMbv7.js → useAuthkitCreateAndUpdate-BZXteclG.js} +1 -1
- package/dist/{useAuthkitUsersProfile-hZ9L3rYe.js → useAuthkitUsersProfile-B26kPQrp.js} +75 -75
- package/dist/{useDownloads-C0V_Sjr9.js → useDownloads-2DzDw0ic.js} +1 -1
- package/dist/{useMessageNotifications-CnWbDToT.js → useMessageNotifications-DiF1CPlT.js} +1 -1
- package/dist/{useSEO-DT8VkGVt.js → useSEO-BmD-Tu3B.js} +2 -2
- package/dist/{useTableHandle-DaKaAKAH.js → useTableHandle-SmqaOxbN.js} +1 -1
- package/dist/{useUploadCos-EWMNJjRf.js → useUploadCos-8imaHXLO.js} +7 -7
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/MessageNotifications-CJtKlzc3.js +0 -35
- package/dist/PaySubscriptions-C9LA8ZeX.js +0 -278
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { Form as H, FormItem as I, Avatar as me, Input as x, Textarea as
|
|
4
|
+
import { defineComponent as P, computed as F, createElementBlock as A, openBlock as g, normalizeStyle as le, normalizeClass as ze, createElementVNode as z, ref as w, createBlock as k, unref as e, withCtx as n, createVNode as i, createTextVNode as _, onMounted as Z, onUnmounted as re, withDirectives as Se, toDisplayString as T, vShow as Ie, Fragment as G, createCommentVNode as S, renderList as Pe, isRef as ue, useSlots as Ve, renderSlot as de } from "vue";
|
|
5
|
+
import { Form as H, FormItem as I, Avatar as me, Input as x, Textarea as Ae, Button as V, Message as N, Alert as D, Space as ee, InputPassword as Ue, Result as $e, Modal as ce, Divider as Ce, Link as j } from "@arco-design/web-vue";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { g as E, c as M, h as fe, u as xe } from "./auth-
|
|
7
|
+
import { g as E, c as M, h as fe, u as xe } from "./auth-CfexrvhT.js";
|
|
8
8
|
/* empty css */
|
|
9
|
-
import { u as qe } from "./useUploadCos-
|
|
10
|
-
import { b as Re, c as oe, d as Te, a as J, e as Le, f as Be, u as Q, g as Oe, h as Ee } from "./useAuthkitUsersProfile-
|
|
9
|
+
import { u as qe } from "./useUploadCos-8imaHXLO.js";
|
|
10
|
+
import { b as Re, c as oe, d as Te, a as J, e as Le, f as Be, u as Q, g as Oe, h as Ee } from "./useAuthkitUsersProfile-B26kPQrp.js";
|
|
11
11
|
import { _ as De, g as Ne, i as Fe } from "./plugin-vue_export-helper-LjDO2Zua.js";
|
|
12
12
|
import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
import { M as He } from "./Menu-H-LxepvQ.js";
|
|
14
|
-
import { u as Me } from "./useAuthkitCreateAndUpdate-
|
|
15
|
-
import { u as
|
|
14
|
+
import { u as Me } from "./useAuthkitCreateAndUpdate-BZXteclG.js";
|
|
15
|
+
import { u as ae } from "./useAuthkitAppsAuthPageInfo-AFq46sfo.js";
|
|
16
16
|
import { Icon as Ge } from "@iconify/vue";
|
|
17
|
-
const je =
|
|
17
|
+
const je = P({
|
|
18
18
|
name: "IconCamera",
|
|
19
19
|
props: {
|
|
20
20
|
size: {
|
|
@@ -43,14 +43,14 @@ const je = A({
|
|
|
43
43
|
setup(l, {
|
|
44
44
|
emit: r
|
|
45
45
|
}) {
|
|
46
|
-
const u = Ne("icon"),
|
|
46
|
+
const u = Ne("icon"), s = F(() => [u, `${u}-camera`, {
|
|
47
47
|
[`${u}-spin`]: l.spin
|
|
48
48
|
}]), o = F(() => {
|
|
49
49
|
const t = {};
|
|
50
50
|
return l.size && (t.fontSize = Fe(l.size) ? `${l.size}px` : l.size), l.rotate && (t.transform = `rotate(${l.rotate}deg)`), t;
|
|
51
51
|
});
|
|
52
52
|
return {
|
|
53
|
-
cls:
|
|
53
|
+
cls: s,
|
|
54
54
|
innerStyle: o,
|
|
55
55
|
onClick: (t) => {
|
|
56
56
|
r("click", t);
|
|
@@ -58,8 +58,8 @@ const je = A({
|
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
}), We = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
61
|
-
function Ke(l, r, u,
|
|
62
|
-
return g(),
|
|
61
|
+
function Ke(l, r, u, s, o, d) {
|
|
62
|
+
return g(), A("svg", {
|
|
63
63
|
viewBox: "0 0 48 48",
|
|
64
64
|
fill: "none",
|
|
65
65
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -78,12 +78,12 @@ var te = /* @__PURE__ */ De(je, [["render", Ke]]);
|
|
|
78
78
|
const Ze = Object.assign(te, {
|
|
79
79
|
install: (l, r) => {
|
|
80
80
|
var u;
|
|
81
|
-
const
|
|
82
|
-
l.component(
|
|
81
|
+
const s = (u = r == null ? void 0 : r.iconPrefix) != null ? u : "";
|
|
82
|
+
l.component(s + te.name, te);
|
|
83
83
|
}
|
|
84
84
|
}), Je = {
|
|
85
85
|
class: "handle"
|
|
86
|
-
}, Qe = /* @__PURE__ */
|
|
86
|
+
}, Qe = /* @__PURE__ */ P({
|
|
87
87
|
__name: "AuthkitPersonalInformation",
|
|
88
88
|
props: {
|
|
89
89
|
size: {
|
|
@@ -95,26 +95,26 @@ const Ze = Object.assign(te, {
|
|
|
95
95
|
setup(l, {
|
|
96
96
|
emit: r
|
|
97
97
|
}) {
|
|
98
|
-
const u = r,
|
|
98
|
+
const u = r, s = l, o = w({
|
|
99
99
|
id: void 0,
|
|
100
100
|
nickname: "",
|
|
101
101
|
description: "",
|
|
102
102
|
avatar: "",
|
|
103
103
|
avatarUrl: ""
|
|
104
|
-
}), d = w(!1), t = w(),
|
|
104
|
+
}), d = w(!1), t = w(), a = w(!1);
|
|
105
105
|
function y() {
|
|
106
|
-
|
|
106
|
+
a.value = !0, Re().then(({
|
|
107
107
|
data: m
|
|
108
108
|
}) => {
|
|
109
|
-
|
|
109
|
+
a.value = !1, o.value.id = m.id, o.value.nickname = m.nickname, o.value.description = m.description, o.value.avatar = m.avatar, o.value.avatarUrl = m.avatarUrl;
|
|
110
110
|
}).catch(() => {
|
|
111
|
-
|
|
111
|
+
a.value = !1;
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
function c() {
|
|
115
115
|
t.value.validate().then((m) => {
|
|
116
116
|
if (!m) {
|
|
117
|
-
|
|
117
|
+
a.value = !0;
|
|
118
118
|
const f = {
|
|
119
119
|
id: o.value.id,
|
|
120
120
|
nickname: o.value.nickname,
|
|
@@ -124,9 +124,9 @@ const Ze = Object.assign(te, {
|
|
|
124
124
|
oe(f).then(({
|
|
125
125
|
data: v
|
|
126
126
|
}) => {
|
|
127
|
-
|
|
127
|
+
a.value = !1, N.success("更新成功"), o.value.avatarUrl = v.avatarUrl, u("submit");
|
|
128
128
|
}).catch(() => {
|
|
129
|
-
|
|
129
|
+
a.value = !1;
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
});
|
|
@@ -175,9 +175,9 @@ const Ze = Object.assign(te, {
|
|
|
175
175
|
ref: t,
|
|
176
176
|
model: o.value,
|
|
177
177
|
"auto-label-width": "",
|
|
178
|
-
size:
|
|
178
|
+
size: s.size
|
|
179
179
|
}, {
|
|
180
|
-
default:
|
|
180
|
+
default: n(() => [i(e(I), {
|
|
181
181
|
field: "avatar",
|
|
182
182
|
label: "头像",
|
|
183
183
|
rules: [{
|
|
@@ -185,7 +185,7 @@ const Ze = Object.assign(te, {
|
|
|
185
185
|
message: "请上传头像"
|
|
186
186
|
}]
|
|
187
187
|
}, {
|
|
188
|
-
default:
|
|
188
|
+
default: n(() => [i(e(me), {
|
|
189
189
|
"image-url": o.value.avatarUrl,
|
|
190
190
|
size: 42,
|
|
191
191
|
"object-fit": "cover",
|
|
@@ -194,7 +194,7 @@ const Ze = Object.assign(te, {
|
|
|
194
194
|
},
|
|
195
195
|
onClick: p
|
|
196
196
|
}, {
|
|
197
|
-
"trigger-icon":
|
|
197
|
+
"trigger-icon": n(() => [i(e(Ze))]),
|
|
198
198
|
_: 1
|
|
199
199
|
}, 8, ["image-url"])]),
|
|
200
200
|
_: 1
|
|
@@ -206,7 +206,7 @@ const Ze = Object.assign(te, {
|
|
|
206
206
|
message: "请输入昵称"
|
|
207
207
|
}]
|
|
208
208
|
}, {
|
|
209
|
-
default:
|
|
209
|
+
default: n(() => [i(e(x), {
|
|
210
210
|
modelValue: o.value.nickname,
|
|
211
211
|
"onUpdate:modelValue": f[0] || (f[0] = (v) => o.value.nickname = v),
|
|
212
212
|
placeholder: "请输入昵称"
|
|
@@ -220,7 +220,7 @@ const Ze = Object.assign(te, {
|
|
|
220
220
|
message: "请输入描述"
|
|
221
221
|
}]
|
|
222
222
|
}, {
|
|
223
|
-
default:
|
|
223
|
+
default: n(() => [i(e(Ae), {
|
|
224
224
|
modelValue: o.value.description,
|
|
225
225
|
"onUpdate:modelValue": f[1] || (f[1] = (v) => o.value.description = v),
|
|
226
226
|
placeholder: "请输入描述",
|
|
@@ -235,12 +235,12 @@ const Ze = Object.assign(te, {
|
|
|
235
235
|
label: "",
|
|
236
236
|
rules: []
|
|
237
237
|
}, {
|
|
238
|
-
default:
|
|
238
|
+
default: n(() => [z("div", Je, [i(e(V), {
|
|
239
239
|
type: "primary",
|
|
240
|
-
loading:
|
|
240
|
+
loading: a.value,
|
|
241
241
|
onClick: c
|
|
242
242
|
}, {
|
|
243
|
-
default:
|
|
243
|
+
default: n(() => [...f[2] || (f[2] = [_(" 提交 ", -1)])]),
|
|
244
244
|
_: 1
|
|
245
245
|
}, 8, ["loading"])])]),
|
|
246
246
|
_: 1
|
|
@@ -251,33 +251,33 @@ const Ze = Object.assign(te, {
|
|
|
251
251
|
}), Xe = /* @__PURE__ */ $(Qe, [["__scopeId", "data-v-c241b7f8"]]);
|
|
252
252
|
function Ye(l) {
|
|
253
253
|
return M({
|
|
254
|
-
url: `${E.authPrefixUrl}/
|
|
254
|
+
url: `${E.authPrefixUrl}/verify/email`,
|
|
255
255
|
method: "post",
|
|
256
256
|
data: l
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
259
|
function X(l) {
|
|
260
260
|
return M({
|
|
261
|
-
url: `${E.authPrefixUrl}/
|
|
261
|
+
url: `${E.authPrefixUrl}/verify/email/retry`,
|
|
262
262
|
method: "post",
|
|
263
263
|
data: l
|
|
264
264
|
});
|
|
265
265
|
}
|
|
266
266
|
function et(l) {
|
|
267
267
|
return M({
|
|
268
|
-
url: `${E.authPrefixUrl}/
|
|
268
|
+
url: `${E.authPrefixUrl}/verify/password`,
|
|
269
269
|
method: "post",
|
|
270
270
|
data: l
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
273
|
function Ci(l) {
|
|
274
274
|
return M({
|
|
275
|
-
url: `${E.authPrefixUrl}/
|
|
275
|
+
url: `${E.authPrefixUrl}/verify/sms/send`,
|
|
276
276
|
method: "post",
|
|
277
277
|
data: l
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
|
-
const tt = /* @__PURE__ */
|
|
280
|
+
const tt = /* @__PURE__ */ P({
|
|
281
281
|
__name: "AuthkitSendVerifyCode",
|
|
282
282
|
props: {
|
|
283
283
|
size: {
|
|
@@ -295,23 +295,23 @@ const tt = /* @__PURE__ */ A({
|
|
|
295
295
|
expose: r,
|
|
296
296
|
emit: u
|
|
297
297
|
}) {
|
|
298
|
-
const
|
|
298
|
+
const s = u, o = l, d = w(!1);
|
|
299
299
|
let t;
|
|
300
|
-
const
|
|
301
|
-
d.value && (
|
|
300
|
+
const a = w(0), y = F(() => a.value.toString().padStart(2, "0")), c = F(() => a.value > 0), p = () => {
|
|
301
|
+
d.value && (a.value <= 0 ? (clearInterval(t), d.value = !1) : a.value--);
|
|
302
302
|
};
|
|
303
303
|
function m() {
|
|
304
|
-
|
|
304
|
+
s("send");
|
|
305
305
|
}
|
|
306
306
|
function f() {
|
|
307
|
-
|
|
307
|
+
a.value = 60, d.value = !0, t && clearInterval(t), t = setInterval(p, 1e3);
|
|
308
308
|
}
|
|
309
309
|
return Z(() => {
|
|
310
310
|
}), r({
|
|
311
311
|
startCountFn: f
|
|
312
312
|
}), re(() => {
|
|
313
313
|
t && clearInterval(t);
|
|
314
|
-
}), (v, b) => (g(), k(e(
|
|
314
|
+
}), (v, b) => (g(), k(e(V), {
|
|
315
315
|
class: "OAuthItem",
|
|
316
316
|
type: "primary",
|
|
317
317
|
size: o.size,
|
|
@@ -319,17 +319,17 @@ const tt = /* @__PURE__ */ A({
|
|
|
319
319
|
loading: o.loading,
|
|
320
320
|
onClick: m
|
|
321
321
|
}, {
|
|
322
|
-
default:
|
|
322
|
+
default: n(() => [b[0] || (b[0] = z("span", null, " 发送验证码", -1)), Se(z("span", {
|
|
323
323
|
class: "verify-code-timer"
|
|
324
324
|
}, T(`(${y.value})`), 513), [[Ie, c.value]])]),
|
|
325
325
|
_: 1
|
|
326
326
|
}, 8, ["size", "disabled", "loading"]));
|
|
327
327
|
}
|
|
328
|
-
}),
|
|
328
|
+
}), ne = /* @__PURE__ */ $(tt, [["__scopeId", "data-v-2883dc6d"]]), it = {
|
|
329
329
|
class: "sendVerifyCodeItem"
|
|
330
330
|
}, lt = {
|
|
331
331
|
class: "handle"
|
|
332
|
-
},
|
|
332
|
+
}, at = /* @__PURE__ */ P({
|
|
333
333
|
__name: "AuthkitEmailVerify",
|
|
334
334
|
props: {
|
|
335
335
|
email: {
|
|
@@ -346,13 +346,13 @@ const tt = /* @__PURE__ */ A({
|
|
|
346
346
|
setup(l, {
|
|
347
347
|
emit: r
|
|
348
348
|
}) {
|
|
349
|
-
const u = r,
|
|
349
|
+
const u = r, s = l, o = F(() => fe(s.email)), d = w(), t = w(!1), a = w(!1), y = w(), c = w({
|
|
350
350
|
userToken: void 0,
|
|
351
351
|
emailVerifyId: void 0
|
|
352
352
|
});
|
|
353
353
|
async function p() {
|
|
354
354
|
t.value = !0, X({
|
|
355
|
-
email:
|
|
355
|
+
email: s.email
|
|
356
356
|
}).then(({
|
|
357
357
|
data: f
|
|
358
358
|
}) => {
|
|
@@ -364,16 +364,16 @@ const tt = /* @__PURE__ */ A({
|
|
|
364
364
|
async function m() {
|
|
365
365
|
y.value.validate(["userToken"]).then((f) => {
|
|
366
366
|
if (!f) {
|
|
367
|
-
|
|
367
|
+
a.value = !0;
|
|
368
368
|
const v = {
|
|
369
|
-
email:
|
|
369
|
+
email: s.email,
|
|
370
370
|
userToken: c.value.userToken,
|
|
371
371
|
emailVerifyId: c.value.emailVerifyId
|
|
372
372
|
};
|
|
373
373
|
Ye(v).then(() => {
|
|
374
|
-
|
|
374
|
+
a.value = !1, u("next");
|
|
375
375
|
}).catch(() => {
|
|
376
|
-
|
|
376
|
+
a.value = !1;
|
|
377
377
|
});
|
|
378
378
|
}
|
|
379
379
|
});
|
|
@@ -383,9 +383,9 @@ const tt = /* @__PURE__ */ A({
|
|
|
383
383
|
ref: y,
|
|
384
384
|
model: c.value,
|
|
385
385
|
"auto-label-width": "",
|
|
386
|
-
size:
|
|
386
|
+
size: s.size
|
|
387
387
|
}, {
|
|
388
|
-
default:
|
|
388
|
+
default: n(() => [i(e(I), {
|
|
389
389
|
field: "email",
|
|
390
390
|
label: "邮箱",
|
|
391
391
|
rules: [{
|
|
@@ -396,7 +396,7 @@ const tt = /* @__PURE__ */ A({
|
|
|
396
396
|
message: "请输入有效的邮箱"
|
|
397
397
|
}]
|
|
398
398
|
}, {
|
|
399
|
-
default:
|
|
399
|
+
default: n(() => [_(T(o.value), 1)]),
|
|
400
400
|
_: 1
|
|
401
401
|
}), i(e(I), {
|
|
402
402
|
field: "userToken",
|
|
@@ -407,14 +407,14 @@ const tt = /* @__PURE__ */ A({
|
|
|
407
407
|
message: "请输入验证码"
|
|
408
408
|
}]
|
|
409
409
|
}, {
|
|
410
|
-
default:
|
|
410
|
+
default: n(() => [z("div", it, [i(e(x), {
|
|
411
411
|
modelValue: c.value.userToken,
|
|
412
412
|
"onUpdate:modelValue": v[0] || (v[0] = (b) => c.value.userToken = b),
|
|
413
413
|
placeholder: "请输入验证码"
|
|
414
|
-
}, null, 8, ["modelValue"]), i(
|
|
414
|
+
}, null, 8, ["modelValue"]), i(ne, {
|
|
415
415
|
ref_key: "SendVerifyCodeRef",
|
|
416
416
|
ref: d,
|
|
417
|
-
size:
|
|
417
|
+
size: s.size,
|
|
418
418
|
loading: t.value,
|
|
419
419
|
style: {
|
|
420
420
|
"margin-left": "10px"
|
|
@@ -427,12 +427,12 @@ const tt = /* @__PURE__ */ A({
|
|
|
427
427
|
label: "",
|
|
428
428
|
rules: []
|
|
429
429
|
}, {
|
|
430
|
-
default:
|
|
431
|
-
loading:
|
|
430
|
+
default: n(() => [z("div", lt, [i(e(V), {
|
|
431
|
+
loading: a.value,
|
|
432
432
|
type: "primary",
|
|
433
433
|
onClick: m
|
|
434
434
|
}, {
|
|
435
|
-
default:
|
|
435
|
+
default: n(() => [...v[1] || (v[1] = [_(" 提交 ", -1)])]),
|
|
436
436
|
_: 1
|
|
437
437
|
}, 8, ["loading"])])]),
|
|
438
438
|
_: 1
|
|
@@ -440,9 +440,9 @@ const tt = /* @__PURE__ */ A({
|
|
|
440
440
|
_: 1
|
|
441
441
|
}, 8, ["model", "size"]));
|
|
442
442
|
}
|
|
443
|
-
}),
|
|
443
|
+
}), se = /* @__PURE__ */ $(at, [["__scopeId", "data-v-89ebb370"]]), nt = {
|
|
444
444
|
class: "handle"
|
|
445
|
-
},
|
|
445
|
+
}, st = /* @__PURE__ */ P({
|
|
446
446
|
__name: "AuthkitPasswordUpdate",
|
|
447
447
|
props: {
|
|
448
448
|
size: {
|
|
@@ -454,21 +454,21 @@ const tt = /* @__PURE__ */ A({
|
|
|
454
454
|
setup(l, {
|
|
455
455
|
emit: r
|
|
456
456
|
}) {
|
|
457
|
-
const u = r,
|
|
457
|
+
const u = r, s = w(!1), o = w(), d = l, t = w({
|
|
458
458
|
oldPassword: "",
|
|
459
459
|
password: "",
|
|
460
460
|
confirmPassword: ""
|
|
461
461
|
});
|
|
462
|
-
async function
|
|
462
|
+
async function a() {
|
|
463
463
|
o.value.validate().then((y) => {
|
|
464
464
|
if (!y) {
|
|
465
465
|
const c = {
|
|
466
466
|
password: t.value.password
|
|
467
467
|
};
|
|
468
468
|
Te(c).then(() => {
|
|
469
|
-
|
|
469
|
+
s.value = !1, u("submit", c);
|
|
470
470
|
}).catch(() => {
|
|
471
|
-
|
|
471
|
+
s.value = !1;
|
|
472
472
|
});
|
|
473
473
|
}
|
|
474
474
|
});
|
|
@@ -480,7 +480,7 @@ const tt = /* @__PURE__ */ A({
|
|
|
480
480
|
"auto-label-width": "",
|
|
481
481
|
size: d.size
|
|
482
482
|
}, {
|
|
483
|
-
default:
|
|
483
|
+
default: n(() => [i(e(I), {
|
|
484
484
|
field: "oldPassword",
|
|
485
485
|
label: "当前密码",
|
|
486
486
|
"hide-label": "",
|
|
@@ -489,7 +489,7 @@ const tt = /* @__PURE__ */ A({
|
|
|
489
489
|
message: "请输入当前密码"
|
|
490
490
|
}]
|
|
491
491
|
}, {
|
|
492
|
-
default:
|
|
492
|
+
default: n(() => [i(e(x), {
|
|
493
493
|
modelValue: t.value.oldPassword,
|
|
494
494
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => t.value.oldPassword = p),
|
|
495
495
|
placeholder: "请输入当前密码",
|
|
@@ -508,7 +508,7 @@ const tt = /* @__PURE__ */ A({
|
|
|
508
508
|
message: "新密码不能少于10字符"
|
|
509
509
|
}]
|
|
510
510
|
}, {
|
|
511
|
-
default:
|
|
511
|
+
default: n(() => [i(e(x), {
|
|
512
512
|
modelValue: t.value.password,
|
|
513
513
|
"onUpdate:modelValue": c[1] || (c[1] = (p) => t.value.password = p),
|
|
514
514
|
placeholder: "请输入新密码",
|
|
@@ -531,7 +531,7 @@ const tt = /* @__PURE__ */ A({
|
|
|
531
531
|
}
|
|
532
532
|
}]
|
|
533
533
|
}, {
|
|
534
|
-
default:
|
|
534
|
+
default: n(() => [i(e(x), {
|
|
535
535
|
modelValue: t.value.confirmPassword,
|
|
536
536
|
"onUpdate:modelValue": c[2] || (c[2] = (p) => t.value.confirmPassword = p),
|
|
537
537
|
placeholder: "请输入确认密码密码",
|
|
@@ -543,12 +543,12 @@ const tt = /* @__PURE__ */ A({
|
|
|
543
543
|
label: "",
|
|
544
544
|
rules: []
|
|
545
545
|
}, {
|
|
546
|
-
default:
|
|
546
|
+
default: n(() => [z("div", nt, [i(e(V), {
|
|
547
547
|
type: "primary",
|
|
548
|
-
loading:
|
|
549
|
-
onClick:
|
|
548
|
+
loading: s.value,
|
|
549
|
+
onClick: a
|
|
550
550
|
}, {
|
|
551
|
-
default:
|
|
551
|
+
default: n(() => [...c[3] || (c[3] = [_(" 提交 ", -1)])]),
|
|
552
552
|
_: 1
|
|
553
553
|
}, 8, ["loading"])])]),
|
|
554
554
|
_: 1
|
|
@@ -556,7 +556,7 @@ const tt = /* @__PURE__ */ A({
|
|
|
556
556
|
_: 1
|
|
557
557
|
}, 8, ["model", "size"]));
|
|
558
558
|
}
|
|
559
|
-
}), ot = /* @__PURE__ */ $(
|
|
559
|
+
}), ot = /* @__PURE__ */ $(st, [["__scopeId", "data-v-a9e25b03"]]), rt = /* @__PURE__ */ P({
|
|
560
560
|
__name: "AuthkitSetPassword",
|
|
561
561
|
props: {
|
|
562
562
|
size: {
|
|
@@ -568,56 +568,56 @@ const tt = /* @__PURE__ */ A({
|
|
|
568
568
|
const {
|
|
569
569
|
userProfile: r,
|
|
570
570
|
loading: u,
|
|
571
|
-
fetchUserProfile:
|
|
571
|
+
fetchUserProfile: s,
|
|
572
572
|
isLoggedIn: o
|
|
573
573
|
} = J(), d = w("hidden"), t = l;
|
|
574
|
-
function
|
|
574
|
+
function a(p) {
|
|
575
575
|
d.value = p;
|
|
576
576
|
}
|
|
577
577
|
function y(p) {
|
|
578
|
-
N.success("密码修改成功"), d.value = "hidden",
|
|
578
|
+
N.success("密码修改成功"), d.value = "hidden", s();
|
|
579
579
|
}
|
|
580
580
|
function c() {
|
|
581
581
|
d.value = "update";
|
|
582
582
|
}
|
|
583
583
|
return Z(() => {
|
|
584
|
-
o.value && !r.value &&
|
|
584
|
+
o.value && !r.value && s();
|
|
585
585
|
}), (p, m) => {
|
|
586
586
|
var f, v, b, q;
|
|
587
|
-
return g(),
|
|
587
|
+
return g(), A(G, null, [!((f = e(r)) != null && f.email) && !((v = e(r)) != null && v.phone) ? (g(), k(e(D), {
|
|
588
588
|
key: 0,
|
|
589
589
|
title: "去绑定邮箱"
|
|
590
590
|
}, {
|
|
591
|
-
action:
|
|
591
|
+
action: n(() => [i(e(V), {
|
|
592
592
|
size: t.size,
|
|
593
593
|
type: "primary",
|
|
594
|
-
onClick: m[0] || (m[0] = (U) =>
|
|
594
|
+
onClick: m[0] || (m[0] = (U) => a("update"))
|
|
595
595
|
}, {
|
|
596
|
-
default:
|
|
596
|
+
default: n(() => [...m[2] || (m[2] = [_(" 去绑定邮箱 ", -1)])]),
|
|
597
597
|
_: 1
|
|
598
598
|
}, 8, ["size"])]),
|
|
599
|
-
default:
|
|
599
|
+
default: n(() => [m[3] || (m[3] = _(" 请先去绑定邮箱或者手机号码,才能设置密码 ", -1))]),
|
|
600
600
|
_: 1
|
|
601
601
|
})) : S("", !0), (b = e(r)) != null && b.email && d.value === "hidden" ? (g(), k(e(D), {
|
|
602
602
|
key: 1,
|
|
603
603
|
title: "更改密码"
|
|
604
604
|
}, {
|
|
605
|
-
action:
|
|
605
|
+
action: n(() => [i(e(V), {
|
|
606
606
|
size: t.size,
|
|
607
607
|
type: "primary",
|
|
608
|
-
onClick: m[1] || (m[1] = (U) =>
|
|
608
|
+
onClick: m[1] || (m[1] = (U) => a("verify"))
|
|
609
609
|
}, {
|
|
610
|
-
default:
|
|
610
|
+
default: n(() => [...m[4] || (m[4] = [_("更改密码", -1)])]),
|
|
611
611
|
_: 1
|
|
612
612
|
}, 8, ["size"])]),
|
|
613
|
-
default:
|
|
613
|
+
default: n(() => [m[5] || (m[5] = _(" 为了账户安全修改密码前会先验证身份 ", -1))]),
|
|
614
614
|
_: 1
|
|
615
615
|
})) : S("", !0), d.value === "update" ? (g(), k(ot, {
|
|
616
616
|
key: 2,
|
|
617
617
|
size: t.size,
|
|
618
618
|
loading: e(u),
|
|
619
619
|
onSubmit: y
|
|
620
|
-
}, null, 8, ["size", "loading"])) : S("", !0), d.value === "verify" ? (g(), k(
|
|
620
|
+
}, null, 8, ["size", "loading"])) : S("", !0), d.value === "verify" ? (g(), k(se, {
|
|
621
621
|
key: 3,
|
|
622
622
|
size: t.size,
|
|
623
623
|
email: (q = e(r)) == null ? void 0 : q.email,
|
|
@@ -631,7 +631,7 @@ const tt = /* @__PURE__ */ A({
|
|
|
631
631
|
class: "sendVerifyCodeItem"
|
|
632
632
|
}, mt = {
|
|
633
633
|
class: "handle"
|
|
634
|
-
}, ct = /* @__PURE__ */
|
|
634
|
+
}, ct = /* @__PURE__ */ P({
|
|
635
635
|
__name: "AuthkitEmailUpdate",
|
|
636
636
|
props: {
|
|
637
637
|
size: {
|
|
@@ -648,7 +648,7 @@ const tt = /* @__PURE__ */ A({
|
|
|
648
648
|
setup(l, {
|
|
649
649
|
emit: r
|
|
650
650
|
}) {
|
|
651
|
-
const u = r,
|
|
651
|
+
const u = r, s = l, o = w(), d = w(!1), t = w(), a = w({
|
|
652
652
|
email: void 0,
|
|
653
653
|
userToken: void 0,
|
|
654
654
|
emailVerifyId: void 0,
|
|
@@ -659,11 +659,11 @@ const tt = /* @__PURE__ */ A({
|
|
|
659
659
|
async function y() {
|
|
660
660
|
t.value.validateField(["email"]).then((p) => {
|
|
661
661
|
p || (d.value = !0, X({
|
|
662
|
-
email:
|
|
662
|
+
email: a.value.email
|
|
663
663
|
}).then(({
|
|
664
664
|
data: m
|
|
665
665
|
}) => {
|
|
666
|
-
|
|
666
|
+
a.value.emailVerifyId = m.emailVerifyId, d.value = !1, o.value.startCountFn();
|
|
667
667
|
}).catch(() => {
|
|
668
668
|
d.value = !1;
|
|
669
669
|
}));
|
|
@@ -671,17 +671,17 @@ const tt = /* @__PURE__ */ A({
|
|
|
671
671
|
}
|
|
672
672
|
async function c() {
|
|
673
673
|
t.value.validate().then((p) => {
|
|
674
|
-
p || u("submit",
|
|
674
|
+
p || u("submit", a.value);
|
|
675
675
|
});
|
|
676
676
|
}
|
|
677
|
-
return (p, m) => (g(),
|
|
677
|
+
return (p, m) => (g(), A("div", ut, [i(e(H), {
|
|
678
678
|
ref_key: "formRef",
|
|
679
679
|
ref: t,
|
|
680
|
-
model:
|
|
681
|
-
size:
|
|
680
|
+
model: a.value,
|
|
681
|
+
size: s.size,
|
|
682
682
|
"auto-label-width": ""
|
|
683
683
|
}, {
|
|
684
|
-
default:
|
|
684
|
+
default: n(() => [i(e(I), {
|
|
685
685
|
field: "email",
|
|
686
686
|
label: "邮箱",
|
|
687
687
|
"hide-label": "",
|
|
@@ -693,9 +693,9 @@ const tt = /* @__PURE__ */ A({
|
|
|
693
693
|
message: "请输入有效的邮箱"
|
|
694
694
|
}]
|
|
695
695
|
}, {
|
|
696
|
-
default:
|
|
697
|
-
modelValue:
|
|
698
|
-
"onUpdate:modelValue": m[0] || (m[0] = (f) =>
|
|
696
|
+
default: n(() => [i(e(x), {
|
|
697
|
+
modelValue: a.value.email,
|
|
698
|
+
"onUpdate:modelValue": m[0] || (m[0] = (f) => a.value.email = f),
|
|
699
699
|
placeholder: "请输入邮箱",
|
|
700
700
|
autocomplete: "email username",
|
|
701
701
|
type: "email"
|
|
@@ -710,15 +710,15 @@ const tt = /* @__PURE__ */ A({
|
|
|
710
710
|
message: "请输入验证码"
|
|
711
711
|
}]
|
|
712
712
|
}, {
|
|
713
|
-
default:
|
|
714
|
-
modelValue:
|
|
715
|
-
"onUpdate:modelValue": m[1] || (m[1] = (f) =>
|
|
713
|
+
default: n(() => [z("div", dt, [i(e(x), {
|
|
714
|
+
modelValue: a.value.userToken,
|
|
715
|
+
"onUpdate:modelValue": m[1] || (m[1] = (f) => a.value.userToken = f),
|
|
716
716
|
placeholder: "请输入验证码",
|
|
717
717
|
autocomplete: "one-time-code"
|
|
718
|
-
}, null, 8, ["modelValue"]), i(
|
|
718
|
+
}, null, 8, ["modelValue"]), i(ne, {
|
|
719
719
|
ref_key: "SendVerifyCodeRef",
|
|
720
720
|
ref: o,
|
|
721
|
-
size:
|
|
721
|
+
size: s.size,
|
|
722
722
|
loading: d.value,
|
|
723
723
|
style: {
|
|
724
724
|
"margin-left": "10px"
|
|
@@ -738,9 +738,9 @@ const tt = /* @__PURE__ */ A({
|
|
|
738
738
|
message: "密码不能少于10字符"
|
|
739
739
|
}]
|
|
740
740
|
}, {
|
|
741
|
-
default:
|
|
742
|
-
modelValue:
|
|
743
|
-
"onUpdate:modelValue": m[2] || (m[2] = (f) =>
|
|
741
|
+
default: n(() => [i(e(x), {
|
|
742
|
+
modelValue: a.value.password,
|
|
743
|
+
"onUpdate:modelValue": m[2] || (m[2] = (f) => a.value.password = f),
|
|
744
744
|
placeholder: "请输入密码",
|
|
745
745
|
type: "password",
|
|
746
746
|
autocomplete: "new-password"
|
|
@@ -758,13 +758,13 @@ const tt = /* @__PURE__ */ A({
|
|
|
758
758
|
message: "确认密码不能少于10字符"
|
|
759
759
|
}, {
|
|
760
760
|
validator: (f, v) => {
|
|
761
|
-
f !==
|
|
761
|
+
f !== a.value.password ? v("两次密码输入不一致,请重新输入") : v();
|
|
762
762
|
}
|
|
763
763
|
}]
|
|
764
764
|
}, {
|
|
765
|
-
default:
|
|
766
|
-
modelValue:
|
|
767
|
-
"onUpdate:modelValue": m[3] || (m[3] = (f) =>
|
|
765
|
+
default: n(() => [i(e(x), {
|
|
766
|
+
modelValue: a.value.confirmPassword,
|
|
767
|
+
"onUpdate:modelValue": m[3] || (m[3] = (f) => a.value.confirmPassword = f),
|
|
768
768
|
placeholder: "请输入确认密码密码",
|
|
769
769
|
type: "password",
|
|
770
770
|
autocomplete: "new-password"
|
|
@@ -779,27 +779,27 @@ const tt = /* @__PURE__ */ A({
|
|
|
779
779
|
message: "请输入邀请人ID"
|
|
780
780
|
}]
|
|
781
781
|
}, {
|
|
782
|
-
default:
|
|
783
|
-
modelValue:
|
|
784
|
-
"onUpdate:modelValue": m[4] || (m[4] = (f) =>
|
|
782
|
+
default: n(() => [i(e(x), {
|
|
783
|
+
modelValue: a.value.referrerId,
|
|
784
|
+
"onUpdate:modelValue": m[4] || (m[4] = (f) => a.value.referrerId = f),
|
|
785
785
|
placeholder: "邀请人ID(可选)",
|
|
786
786
|
autocomplete: "off"
|
|
787
787
|
}, null, 8, ["modelValue"])]),
|
|
788
788
|
_: 1
|
|
789
|
-
}), z("div", mt, [i(e(
|
|
789
|
+
}), z("div", mt, [i(e(V), {
|
|
790
790
|
type: "primary",
|
|
791
|
-
loading:
|
|
791
|
+
loading: s.loading,
|
|
792
792
|
long: "",
|
|
793
|
-
size:
|
|
793
|
+
size: s.size,
|
|
794
794
|
onClick: c
|
|
795
795
|
}, {
|
|
796
|
-
default:
|
|
796
|
+
default: n(() => [...m[5] || (m[5] = [_(" 提交 ", -1)])]),
|
|
797
797
|
_: 1
|
|
798
798
|
}, 8, ["loading", "size"])])]),
|
|
799
799
|
_: 1
|
|
800
800
|
}, 8, ["model", "size"])]));
|
|
801
801
|
}
|
|
802
|
-
}), pe = /* @__PURE__ */ $(ct, [["__scopeId", "data-v-5b701953"]]), ft = /* @__PURE__ */
|
|
802
|
+
}), pe = /* @__PURE__ */ $(ct, [["__scopeId", "data-v-5b701953"]]), ft = /* @__PURE__ */ P({
|
|
803
803
|
__name: "AuthkitEmailBinding",
|
|
804
804
|
props: {
|
|
805
805
|
size: {
|
|
@@ -811,12 +811,12 @@ const tt = /* @__PURE__ */ A({
|
|
|
811
811
|
const {
|
|
812
812
|
userProfile: r,
|
|
813
813
|
loading: u,
|
|
814
|
-
fetchUserProfile:
|
|
814
|
+
fetchUserProfile: s
|
|
815
815
|
} = J(), o = w("hidden"), d = l;
|
|
816
816
|
function t(c) {
|
|
817
817
|
o.value = c;
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function a(c) {
|
|
820
820
|
u.value = !0;
|
|
821
821
|
const p = {
|
|
822
822
|
email: c.email,
|
|
@@ -824,7 +824,7 @@ const tt = /* @__PURE__ */ A({
|
|
|
824
824
|
emailVerifyId: c.emailVerifyId
|
|
825
825
|
};
|
|
826
826
|
Le(p).then(() => {
|
|
827
|
-
u.value = !1, N.success("绑定成功"), o.value = "hidden",
|
|
827
|
+
u.value = !1, N.success("绑定成功"), o.value = "hidden", s();
|
|
828
828
|
}).catch(() => {
|
|
829
829
|
u.value = !1;
|
|
830
830
|
});
|
|
@@ -833,36 +833,36 @@ const tt = /* @__PURE__ */ A({
|
|
|
833
833
|
o.value = "update";
|
|
834
834
|
}
|
|
835
835
|
return Z(() => {
|
|
836
|
-
r.value ||
|
|
836
|
+
r.value || s();
|
|
837
837
|
}), (c, p) => {
|
|
838
838
|
var m, f, v;
|
|
839
|
-
return g(),
|
|
839
|
+
return g(), A(G, null, [!((m = e(r)) != null && m.email) && o.value === "hidden" ? (g(), k(e(D), {
|
|
840
840
|
key: 0,
|
|
841
841
|
title: "绑定邮箱"
|
|
842
842
|
}, {
|
|
843
|
-
action:
|
|
843
|
+
action: n(() => [i(e(V), {
|
|
844
844
|
size: d.size,
|
|
845
845
|
type: "primary",
|
|
846
846
|
onClick: p[0] || (p[0] = (b) => t("update"))
|
|
847
847
|
}, {
|
|
848
|
-
default:
|
|
848
|
+
default: n(() => [...p[2] || (p[2] = [_(" 绑定邮箱 ", -1)])]),
|
|
849
849
|
_: 1
|
|
850
850
|
}, 8, ["size"])]),
|
|
851
|
-
default:
|
|
851
|
+
default: n(() => [p[3] || (p[3] = _(" 您还未绑定邮箱,请点击绑定邮箱 ", -1))]),
|
|
852
852
|
_: 1
|
|
853
853
|
})) : S("", !0), (f = e(r)) != null && f.email && o.value === "hidden" ? (g(), k(e(D), {
|
|
854
854
|
key: 1,
|
|
855
855
|
title: "更改邮箱"
|
|
856
856
|
}, {
|
|
857
|
-
action:
|
|
857
|
+
action: n(() => [i(e(V), {
|
|
858
858
|
size: d.size,
|
|
859
859
|
type: "primary",
|
|
860
860
|
onClick: p[1] || (p[1] = (b) => t("verify"))
|
|
861
861
|
}, {
|
|
862
|
-
default:
|
|
862
|
+
default: n(() => [...p[4] || (p[4] = [_(" 更改邮箱 ", -1)])]),
|
|
863
863
|
_: 1
|
|
864
864
|
}, 8, ["size"])]),
|
|
865
|
-
default:
|
|
865
|
+
default: n(() => {
|
|
866
866
|
var b;
|
|
867
867
|
return [_(T(`您绑定的邮箱为${e(fe)((b = e(r)) == null ? void 0 : b.email)}`) + " ", 1)];
|
|
868
868
|
}),
|
|
@@ -871,8 +871,8 @@ const tt = /* @__PURE__ */ A({
|
|
|
871
871
|
key: 2,
|
|
872
872
|
loading: e(u),
|
|
873
873
|
size: d.size,
|
|
874
|
-
onSubmit:
|
|
875
|
-
}, null, 8, ["loading", "size"])) : S("", !0), o.value === "verify" ? (g(), k(
|
|
874
|
+
onSubmit: a
|
|
875
|
+
}, null, 8, ["loading", "size"])) : S("", !0), o.value === "verify" ? (g(), k(se, {
|
|
876
876
|
key: 3,
|
|
877
877
|
size: d.size,
|
|
878
878
|
email: (v = e(r)) == null ? void 0 : v.email,
|
|
@@ -883,26 +883,26 @@ const tt = /* @__PURE__ */ A({
|
|
|
883
883
|
}), pt = /* @__PURE__ */ $(ft, [["__scopeId", "data-v-b2663ea1"]]);
|
|
884
884
|
function ve(l) {
|
|
885
885
|
return M({
|
|
886
|
-
url: `${E.authPrefixUrl}/
|
|
886
|
+
url: `${E.authPrefixUrl}/oauth/github/login`,
|
|
887
887
|
method: "get",
|
|
888
888
|
params: l
|
|
889
889
|
});
|
|
890
890
|
}
|
|
891
891
|
function vt(l) {
|
|
892
892
|
return M({
|
|
893
|
-
url: `${E.authPrefixUrl}/
|
|
893
|
+
url: `${E.authPrefixUrl}/oauth/google/login`,
|
|
894
894
|
method: "get",
|
|
895
895
|
params: l
|
|
896
896
|
});
|
|
897
897
|
}
|
|
898
898
|
function gt(l) {
|
|
899
899
|
return M({
|
|
900
|
-
url: `${E.authPrefixUrl}/
|
|
900
|
+
url: `${E.authPrefixUrl}/oauth/microsoft/login`,
|
|
901
901
|
method: "get",
|
|
902
902
|
params: l
|
|
903
903
|
});
|
|
904
904
|
}
|
|
905
|
-
const yt = /* @__PURE__ */
|
|
905
|
+
const yt = /* @__PURE__ */ P({
|
|
906
906
|
__name: "AuthkitGithubBinding",
|
|
907
907
|
props: {
|
|
908
908
|
size: {
|
|
@@ -914,11 +914,11 @@ const yt = /* @__PURE__ */ A({
|
|
|
914
914
|
const {
|
|
915
915
|
userProfile: r,
|
|
916
916
|
fetchUserProfile: u
|
|
917
|
-
} = J(),
|
|
917
|
+
} = J(), s = w("hidden"), o = w(!1);
|
|
918
918
|
let d;
|
|
919
919
|
const t = l;
|
|
920
|
-
function
|
|
921
|
-
|
|
920
|
+
function a(f) {
|
|
921
|
+
s.value = f;
|
|
922
922
|
}
|
|
923
923
|
function y() {
|
|
924
924
|
const f = E.appId;
|
|
@@ -939,11 +939,11 @@ const yt = /* @__PURE__ */ A({
|
|
|
939
939
|
}
|
|
940
940
|
function c() {
|
|
941
941
|
Be().then(() => {
|
|
942
|
-
N.success("解绑成功"),
|
|
942
|
+
N.success("解绑成功"), s.value = "hidden", u();
|
|
943
943
|
});
|
|
944
944
|
}
|
|
945
945
|
function p() {
|
|
946
|
-
|
|
946
|
+
s.value === "bind" && (s.value = "hidden", y()), s.value === "unbind" && c();
|
|
947
947
|
}
|
|
948
948
|
function m() {
|
|
949
949
|
o.value && u();
|
|
@@ -954,33 +954,33 @@ const yt = /* @__PURE__ */ A({
|
|
|
954
954
|
d && clearInterval(d);
|
|
955
955
|
}), (f, v) => {
|
|
956
956
|
var b, q, U;
|
|
957
|
-
return g(),
|
|
957
|
+
return g(), A(G, null, [!((b = e(r)) != null && b.github) && s.value === "hidden" ? (g(), k(e(D), {
|
|
958
958
|
key: 0,
|
|
959
959
|
title: "绑定GitHUb"
|
|
960
960
|
}, {
|
|
961
|
-
action:
|
|
961
|
+
action: n(() => [i(e(V), {
|
|
962
962
|
size: t.size,
|
|
963
963
|
type: "primary",
|
|
964
|
-
onClick: v[0] || (v[0] = (R) =>
|
|
964
|
+
onClick: v[0] || (v[0] = (R) => a("bind"))
|
|
965
965
|
}, {
|
|
966
|
-
default:
|
|
966
|
+
default: n(() => [...v[2] || (v[2] = [_(" 绑定GitHUb ", -1)])]),
|
|
967
967
|
_: 1
|
|
968
968
|
}, 8, ["size"])]),
|
|
969
|
-
default:
|
|
969
|
+
default: n(() => [v[3] || (v[3] = _(" 请尚未绑定GitHub,请点击绑定GitHUb ", -1))]),
|
|
970
970
|
_: 1
|
|
971
|
-
})) : S("", !0), (q = e(r)) != null && q.github &&
|
|
971
|
+
})) : S("", !0), (q = e(r)) != null && q.github && s.value === "hidden" ? (g(), k(e(D), {
|
|
972
972
|
key: 1,
|
|
973
973
|
title: "解绑GitHub"
|
|
974
974
|
}, {
|
|
975
|
-
action:
|
|
975
|
+
action: n(() => [i(e(V), {
|
|
976
976
|
size: t.size,
|
|
977
977
|
type: "primary",
|
|
978
|
-
onClick: v[1] || (v[1] = (R) =>
|
|
978
|
+
onClick: v[1] || (v[1] = (R) => a("unbind"))
|
|
979
979
|
}, {
|
|
980
|
-
default:
|
|
980
|
+
default: n(() => [...v[4] || (v[4] = [_(" 解绑GitHUb ", -1)])]),
|
|
981
981
|
_: 1
|
|
982
982
|
}, 8, ["size"])]),
|
|
983
|
-
default:
|
|
983
|
+
default: n(() => {
|
|
984
984
|
var R, B, O;
|
|
985
985
|
return [z("span", null, T(`您绑定的账号为 ${(B = (R = e(r)) == null ? void 0 : R.github) == null ? void 0 : B.login}`), 1), i(e(me), {
|
|
986
986
|
"image-url": (O = e(r)) == null ? void 0 : O.avatar,
|
|
@@ -988,7 +988,7 @@ const yt = /* @__PURE__ */ A({
|
|
|
988
988
|
}, null, 8, ["image-url"])];
|
|
989
989
|
}),
|
|
990
990
|
_: 1
|
|
991
|
-
})) : S("", !0),
|
|
991
|
+
})) : S("", !0), s.value === "bind" || s.value === "unbind" ? (g(), k(se, {
|
|
992
992
|
key: 2,
|
|
993
993
|
size: t.size,
|
|
994
994
|
email: (U = e(r)) == null ? void 0 : U.email,
|
|
@@ -1004,7 +1004,7 @@ const yt = /* @__PURE__ */ A({
|
|
|
1004
1004
|
class: "count"
|
|
1005
1005
|
}, bt = {
|
|
1006
1006
|
class: "action-bar"
|
|
1007
|
-
}, kt = /* @__PURE__ */
|
|
1007
|
+
}, kt = /* @__PURE__ */ P({
|
|
1008
1008
|
__name: "AuthkitAccountDelete",
|
|
1009
1009
|
props: {
|
|
1010
1010
|
size: {
|
|
@@ -1016,12 +1016,12 @@ const yt = /* @__PURE__ */ A({
|
|
|
1016
1016
|
setup(l, {
|
|
1017
1017
|
emit: r
|
|
1018
1018
|
}) {
|
|
1019
|
-
const u = l,
|
|
1019
|
+
const u = l, s = r, {
|
|
1020
1020
|
userProfile: o,
|
|
1021
1021
|
clearUserProfile: d
|
|
1022
1022
|
} = J(), {
|
|
1023
1023
|
clearAuth: t
|
|
1024
|
-
} = Q(),
|
|
1024
|
+
} = Q(), a = w("check"), y = w(!1), c = w([]), p = w(!1), m = w(""), f = w(0);
|
|
1025
1025
|
let v = null;
|
|
1026
1026
|
const b = F(() => {
|
|
1027
1027
|
var K;
|
|
@@ -1046,13 +1046,13 @@ const yt = /* @__PURE__ */ A({
|
|
|
1046
1046
|
dependencies: K
|
|
1047
1047
|
} = h.data;
|
|
1048
1048
|
if (C)
|
|
1049
|
-
c.value = K,
|
|
1049
|
+
c.value = K, a.value = "dependencies";
|
|
1050
1050
|
else {
|
|
1051
1051
|
if (!((L = o.value) != null && L.email)) {
|
|
1052
1052
|
N.error("账号未绑定邮箱,无法进行注销验证。请先绑定邮箱");
|
|
1053
1053
|
return;
|
|
1054
1054
|
}
|
|
1055
|
-
|
|
1055
|
+
a.value = "sendCode";
|
|
1056
1056
|
}
|
|
1057
1057
|
} catch (h) {
|
|
1058
1058
|
console.error("检查依赖失败:", h), N.error("检查失败,请稍后重试");
|
|
@@ -1071,7 +1071,7 @@ const yt = /* @__PURE__ */ A({
|
|
|
1071
1071
|
const h = await X({
|
|
1072
1072
|
email: o.value.email
|
|
1073
1073
|
});
|
|
1074
|
-
m.value = h.data.emailVerifyId, N.success("验证码已发送"),
|
|
1074
|
+
m.value = h.data.emailVerifyId, N.success("验证码已发送"), a.value = "confirm", _e();
|
|
1075
1075
|
} catch (h) {
|
|
1076
1076
|
console.error("发送验证码失败:", h);
|
|
1077
1077
|
} finally {
|
|
@@ -1093,7 +1093,7 @@ const yt = /* @__PURE__ */ A({
|
|
|
1093
1093
|
userToken: U.value.userToken,
|
|
1094
1094
|
emailVerifyId: m.value,
|
|
1095
1095
|
confirmText: U.value.confirmText
|
|
1096
|
-
}),
|
|
1096
|
+
}), a.value = "success", d(), t(), s("deleted");
|
|
1097
1097
|
} catch (C) {
|
|
1098
1098
|
console.error("注销失败:", C);
|
|
1099
1099
|
} finally {
|
|
@@ -1104,72 +1104,72 @@ const yt = /* @__PURE__ */ A({
|
|
|
1104
1104
|
function ke() {
|
|
1105
1105
|
window.location.href = "/";
|
|
1106
1106
|
}
|
|
1107
|
-
return (L, h) =>
|
|
1107
|
+
return (L, h) => a.value === "check" ? (g(), k(e(D), {
|
|
1108
1108
|
key: 0,
|
|
1109
1109
|
type: "warning",
|
|
1110
1110
|
title: "注销账号"
|
|
1111
1111
|
}, {
|
|
1112
|
-
action:
|
|
1112
|
+
action: n(() => [i(e(V), {
|
|
1113
1113
|
size: u.size,
|
|
1114
1114
|
type: "primary",
|
|
1115
1115
|
status: "danger",
|
|
1116
1116
|
loading: y.value,
|
|
1117
1117
|
onClick: O
|
|
1118
1118
|
}, {
|
|
1119
|
-
default:
|
|
1119
|
+
default: n(() => [_(T(y.value ? "检查中..." : "开始注销"), 1)]),
|
|
1120
1120
|
_: 1
|
|
1121
1121
|
}, 8, ["size", "loading"])]),
|
|
1122
|
-
default:
|
|
1122
|
+
default: n(() => [h[6] || (h[6] = _(" 注销账号后,您的所有数据将被永久删除,无法恢复。请确认您已备份重要数据。 ", -1))]),
|
|
1123
1123
|
_: 1
|
|
1124
|
-
})) :
|
|
1124
|
+
})) : a.value === "dependencies" ? (g(), A(G, {
|
|
1125
1125
|
key: 1
|
|
1126
1126
|
}, [i(e(D), {
|
|
1127
1127
|
type: "error",
|
|
1128
1128
|
title: "无法注销账号"
|
|
1129
1129
|
}, {
|
|
1130
|
-
default:
|
|
1130
|
+
default: n(() => [...h[7] || (h[7] = [_(" 您的账号下还有以下资源,请先处理后再注销: ", -1)])]),
|
|
1131
1131
|
_: 1
|
|
1132
|
-
}), z("div", ht, [(g(!0),
|
|
1132
|
+
}), z("div", ht, [(g(!0), A(G, null, Pe(c.value, (C) => (g(), A("div", {
|
|
1133
1133
|
key: C.type,
|
|
1134
1134
|
class: "dependency-item"
|
|
1135
|
-
}, [z("span", wt, T(C.label), 1), z("span", _t, T(C.count) + " 个", 1)]))), 128))]), z("div", bt, [i(e(
|
|
1135
|
+
}, [z("span", wt, T(C.label), 1), z("span", _t, T(C.count) + " 个", 1)]))), 128))]), z("div", bt, [i(e(V), {
|
|
1136
1136
|
size: u.size,
|
|
1137
|
-
onClick: h[0] || (h[0] = (C) =>
|
|
1137
|
+
onClick: h[0] || (h[0] = (C) => a.value = "check")
|
|
1138
1138
|
}, {
|
|
1139
|
-
default:
|
|
1139
|
+
default: n(() => [...h[8] || (h[8] = [_("返回", -1)])]),
|
|
1140
1140
|
_: 1
|
|
1141
|
-
}, 8, ["size"])])], 64)) :
|
|
1141
|
+
}, 8, ["size"])])], 64)) : a.value === "sendCode" ? (g(), k(e(D), {
|
|
1142
1142
|
key: 2,
|
|
1143
1143
|
type: "normal",
|
|
1144
1144
|
title: "身份验证"
|
|
1145
1145
|
}, {
|
|
1146
|
-
action:
|
|
1147
|
-
default:
|
|
1146
|
+
action: n(() => [i(e(ee), null, {
|
|
1147
|
+
default: n(() => [i(e(V), {
|
|
1148
1148
|
size: u.size,
|
|
1149
|
-
onClick: h[1] || (h[1] = (C) =>
|
|
1149
|
+
onClick: h[1] || (h[1] = (C) => a.value = "check")
|
|
1150
1150
|
}, {
|
|
1151
|
-
default:
|
|
1151
|
+
default: n(() => [...h[9] || (h[9] = [_("取消", -1)])]),
|
|
1152
1152
|
_: 1
|
|
1153
|
-
}, 8, ["size"]), i(e(
|
|
1153
|
+
}, 8, ["size"]), i(e(V), {
|
|
1154
1154
|
size: u.size,
|
|
1155
1155
|
type: "primary",
|
|
1156
1156
|
loading: p.value,
|
|
1157
1157
|
onClick: W
|
|
1158
1158
|
}, {
|
|
1159
|
-
default:
|
|
1159
|
+
default: n(() => [_(T(p.value ? "发送中..." : "发送验证码"), 1)]),
|
|
1160
1160
|
_: 1
|
|
1161
1161
|
}, 8, ["size", "loading"])]),
|
|
1162
1162
|
_: 1
|
|
1163
1163
|
})]),
|
|
1164
|
-
default:
|
|
1164
|
+
default: n(() => [_(" 为确保账号安全,我们将向您的邮箱 " + T(b.value) + " 发送验证码 ", 1)]),
|
|
1165
1165
|
_: 1
|
|
1166
|
-
})) :
|
|
1166
|
+
})) : a.value === "confirm" ? (g(), A(G, {
|
|
1167
1167
|
key: 3
|
|
1168
1168
|
}, [i(e(D), {
|
|
1169
1169
|
type: "warning",
|
|
1170
1170
|
title: "确认注销"
|
|
1171
1171
|
}, {
|
|
1172
|
-
default:
|
|
1172
|
+
default: n(() => [_(" 验证码已发送至 " + T(b.value) + ",此操作不可逆,请谨慎操作 ", 1)]),
|
|
1173
1173
|
_: 1
|
|
1174
1174
|
}), i(e(H), {
|
|
1175
1175
|
ref_key: "formRef",
|
|
@@ -1179,7 +1179,7 @@ const yt = /* @__PURE__ */ A({
|
|
|
1179
1179
|
class: "confirm-form",
|
|
1180
1180
|
layout: "vertical"
|
|
1181
1181
|
}, {
|
|
1182
|
-
default:
|
|
1182
|
+
default: n(() => [i(e(I), {
|
|
1183
1183
|
field: "userToken",
|
|
1184
1184
|
label: "邮箱验证码",
|
|
1185
1185
|
rules: [{
|
|
@@ -1187,8 +1187,8 @@ const yt = /* @__PURE__ */ A({
|
|
|
1187
1187
|
message: "请输入验证码"
|
|
1188
1188
|
}]
|
|
1189
1189
|
}, {
|
|
1190
|
-
default:
|
|
1191
|
-
default:
|
|
1190
|
+
default: n(() => [i(e(ee), null, {
|
|
1191
|
+
default: n(() => [i(e(x), {
|
|
1192
1192
|
modelValue: U.value.userToken,
|
|
1193
1193
|
"onUpdate:modelValue": h[2] || (h[2] = (C) => U.value.userToken = C),
|
|
1194
1194
|
placeholder: "请输入6位验证码",
|
|
@@ -1197,12 +1197,12 @@ const yt = /* @__PURE__ */ A({
|
|
|
1197
1197
|
style: {
|
|
1198
1198
|
width: "180px"
|
|
1199
1199
|
}
|
|
1200
|
-
}, null, 8, ["modelValue"]), i(e(
|
|
1200
|
+
}, null, 8, ["modelValue"]), i(e(V), {
|
|
1201
1201
|
disabled: f.value > 0,
|
|
1202
1202
|
loading: p.value,
|
|
1203
1203
|
onClick: W
|
|
1204
1204
|
}, {
|
|
1205
|
-
default:
|
|
1205
|
+
default: n(() => [_(T(f.value > 0 ? `${f.value}s 后重发` : "重新发送"), 1)]),
|
|
1206
1206
|
_: 1
|
|
1207
1207
|
}, 8, ["disabled", "loading"])]),
|
|
1208
1208
|
_: 1
|
|
@@ -1216,7 +1216,7 @@ const yt = /* @__PURE__ */ A({
|
|
|
1216
1216
|
message: "请输入密码"
|
|
1217
1217
|
}]
|
|
1218
1218
|
}, {
|
|
1219
|
-
default:
|
|
1219
|
+
default: n(() => [i(e(Ue), {
|
|
1220
1220
|
modelValue: U.value.password,
|
|
1221
1221
|
"onUpdate:modelValue": h[3] || (h[3] = (C) => U.value.password = C),
|
|
1222
1222
|
placeholder: "请输入您的登录密码",
|
|
@@ -1233,7 +1233,7 @@ const yt = /* @__PURE__ */ A({
|
|
|
1233
1233
|
validator: B
|
|
1234
1234
|
}]
|
|
1235
1235
|
}, {
|
|
1236
|
-
default:
|
|
1236
|
+
default: n(() => [i(e(x), {
|
|
1237
1237
|
modelValue: U.value.confirmText,
|
|
1238
1238
|
"onUpdate:modelValue": h[4] || (h[4] = (C) => U.value.confirmText = C),
|
|
1239
1239
|
placeholder: "注销",
|
|
@@ -1241,19 +1241,19 @@ const yt = /* @__PURE__ */ A({
|
|
|
1241
1241
|
}, null, 8, ["modelValue"])]),
|
|
1242
1242
|
_: 1
|
|
1243
1243
|
}, 8, ["rules"]), i(e(I), null, {
|
|
1244
|
-
default:
|
|
1245
|
-
default:
|
|
1246
|
-
onClick: h[5] || (h[5] = (C) =>
|
|
1244
|
+
default: n(() => [i(e(ee), null, {
|
|
1245
|
+
default: n(() => [i(e(V), {
|
|
1246
|
+
onClick: h[5] || (h[5] = (C) => a.value = "check")
|
|
1247
1247
|
}, {
|
|
1248
|
-
default:
|
|
1248
|
+
default: n(() => [...h[10] || (h[10] = [_("取消", -1)])]),
|
|
1249
1249
|
_: 1
|
|
1250
|
-
}), i(e(
|
|
1250
|
+
}), i(e(V), {
|
|
1251
1251
|
type: "primary",
|
|
1252
1252
|
status: "danger",
|
|
1253
1253
|
loading: R.value,
|
|
1254
1254
|
onClick: be
|
|
1255
1255
|
}, {
|
|
1256
|
-
default:
|
|
1256
|
+
default: n(() => [_(T(R.value ? "注销中..." : "确认注销"), 1)]),
|
|
1257
1257
|
_: 1
|
|
1258
1258
|
}, 8, ["loading"])]),
|
|
1259
1259
|
_: 1
|
|
@@ -1261,17 +1261,17 @@ const yt = /* @__PURE__ */ A({
|
|
|
1261
1261
|
_: 1
|
|
1262
1262
|
})]),
|
|
1263
1263
|
_: 1
|
|
1264
|
-
}, 8, ["model", "size"])], 64)) :
|
|
1264
|
+
}, 8, ["model", "size"])], 64)) : a.value === "success" ? (g(), k(e($e), {
|
|
1265
1265
|
key: 4,
|
|
1266
1266
|
status: "success",
|
|
1267
1267
|
title: "账号已注销"
|
|
1268
1268
|
}, {
|
|
1269
|
-
subtitle:
|
|
1270
|
-
extra:
|
|
1269
|
+
subtitle: n(() => [...h[11] || (h[11] = [_(" 您的账号已成功注销,感谢您的使用 ", -1)])]),
|
|
1270
|
+
extra: n(() => [i(e(V), {
|
|
1271
1271
|
type: "primary",
|
|
1272
1272
|
onClick: ke
|
|
1273
1273
|
}, {
|
|
1274
|
-
default:
|
|
1274
|
+
default: n(() => [...h[12] || (h[12] = [_("返回首页", -1)])]),
|
|
1275
1275
|
_: 1
|
|
1276
1276
|
})]),
|
|
1277
1277
|
_: 1
|
|
@@ -1281,23 +1281,23 @@ const yt = /* @__PURE__ */ A({
|
|
|
1281
1281
|
class: "content"
|
|
1282
1282
|
}, It = {
|
|
1283
1283
|
class: "left"
|
|
1284
|
-
},
|
|
1284
|
+
}, Pt = {
|
|
1285
1285
|
class: "right"
|
|
1286
|
-
},
|
|
1286
|
+
}, Vt = /* @__PURE__ */ P({
|
|
1287
1287
|
__name: "AuthkitAppSetting",
|
|
1288
1288
|
emits: ["confirm", "cancel"],
|
|
1289
1289
|
setup(l, {
|
|
1290
1290
|
expose: r,
|
|
1291
1291
|
emit: u
|
|
1292
1292
|
}) {
|
|
1293
|
-
const
|
|
1293
|
+
const s = u;
|
|
1294
1294
|
function o() {
|
|
1295
|
-
|
|
1295
|
+
s("cancel");
|
|
1296
1296
|
}
|
|
1297
1297
|
function d() {
|
|
1298
|
-
m.value = !1,
|
|
1298
|
+
m.value = !1, s("cancel");
|
|
1299
1299
|
}
|
|
1300
|
-
const t = w("large"),
|
|
1300
|
+
const t = w("large"), a = w(["PersonalInformation"]), y = w([{
|
|
1301
1301
|
name: "个人信息",
|
|
1302
1302
|
path: "PersonalInformation",
|
|
1303
1303
|
meta: {
|
|
@@ -1352,12 +1352,12 @@ const yt = /* @__PURE__ */ A({
|
|
|
1352
1352
|
}]);
|
|
1353
1353
|
function c(v) {
|
|
1354
1354
|
const b = v.path;
|
|
1355
|
-
|
|
1355
|
+
a.value = [b];
|
|
1356
1356
|
}
|
|
1357
1357
|
const {
|
|
1358
1358
|
changeType: p,
|
|
1359
1359
|
show: m
|
|
1360
|
-
} = Me(
|
|
1360
|
+
} = Me(s);
|
|
1361
1361
|
function f(v, b) {
|
|
1362
1362
|
console.log(v), m.value = b, p.value = "编辑";
|
|
1363
1363
|
}
|
|
@@ -1373,25 +1373,25 @@ const yt = /* @__PURE__ */ A({
|
|
|
1373
1373
|
width: "700px",
|
|
1374
1374
|
onCancel: o
|
|
1375
1375
|
}, {
|
|
1376
|
-
title:
|
|
1377
|
-
default:
|
|
1378
|
-
"selected-keys":
|
|
1379
|
-
"onUpdate:selectedKeys": b[0] || (b[0] = (q) =>
|
|
1376
|
+
title: n(() => [...b[2] || (b[2] = [_(" 系统设置 ", -1)])]),
|
|
1377
|
+
default: n(() => [z("div", St, [z("div", It, [i(He, {
|
|
1378
|
+
"selected-keys": a.value,
|
|
1379
|
+
"onUpdate:selectedKeys": b[0] || (b[0] = (q) => a.value = q),
|
|
1380
1380
|
menus: y.value,
|
|
1381
1381
|
onChange: c
|
|
1382
|
-
}, null, 8, ["selected-keys", "menus"])]), z("div",
|
|
1382
|
+
}, null, 8, ["selected-keys", "menus"])]), z("div", Pt, [a.value[0] === "PersonalInformation" ? (g(), k(Xe, {
|
|
1383
1383
|
key: 0,
|
|
1384
1384
|
size: t.value
|
|
1385
|
-
}, null, 8, ["size"])) : S("", !0),
|
|
1385
|
+
}, null, 8, ["size"])) : S("", !0), a.value[0] === "EmailBinding" ? (g(), k(pt, {
|
|
1386
1386
|
key: 1,
|
|
1387
1387
|
size: t.value
|
|
1388
|
-
}, null, 8, ["size"])) : S("", !0),
|
|
1388
|
+
}, null, 8, ["size"])) : S("", !0), a.value[0] === "SetPassword" ? (g(), k(rt, {
|
|
1389
1389
|
key: 2,
|
|
1390
1390
|
size: t.value
|
|
1391
|
-
}, null, 8, ["size"])) : S("", !0),
|
|
1391
|
+
}, null, 8, ["size"])) : S("", !0), a.value[0] === "GithubBinding" ? (g(), k(yt, {
|
|
1392
1392
|
key: 3,
|
|
1393
1393
|
size: t.value
|
|
1394
|
-
}, null, 8, ["size"])) : S("", !0),
|
|
1394
|
+
}, null, 8, ["size"])) : S("", !0), a.value[0] === "AccountDelete" ? (g(), k(zt, {
|
|
1395
1395
|
key: 4,
|
|
1396
1396
|
size: t.value,
|
|
1397
1397
|
onDeleted: d
|
|
@@ -1399,11 +1399,11 @@ const yt = /* @__PURE__ */ A({
|
|
|
1399
1399
|
_: 1
|
|
1400
1400
|
}, 8, ["visible"]));
|
|
1401
1401
|
}
|
|
1402
|
-
}), xi = /* @__PURE__ */ $(
|
|
1402
|
+
}), xi = /* @__PURE__ */ $(Vt, [["__scopeId", "data-v-55a8599d"]]);
|
|
1403
1403
|
function ge() {
|
|
1404
1404
|
return E.oauthCallbackUrl ? E.oauthCallbackUrl : `${window.location.origin}/auth/callback`;
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1406
|
+
function At() {
|
|
1407
1407
|
const l = window.location.pathname + window.location.search;
|
|
1408
1408
|
l.includes("/auth/callback") || sessionStorage.setItem("auth_redirect", l);
|
|
1409
1409
|
}
|
|
@@ -1413,12 +1413,12 @@ async function Y(l, r) {
|
|
|
1413
1413
|
console.error(`${l} OAuth 失败: appId 未配置`);
|
|
1414
1414
|
return;
|
|
1415
1415
|
}
|
|
1416
|
-
const
|
|
1416
|
+
const s = ge(), o = {
|
|
1417
1417
|
appId: u,
|
|
1418
1418
|
referrerId: r == null ? void 0 : r.referrerId,
|
|
1419
|
-
redirectUri:
|
|
1419
|
+
redirectUri: s
|
|
1420
1420
|
};
|
|
1421
|
-
|
|
1421
|
+
At();
|
|
1422
1422
|
const d = {
|
|
1423
1423
|
github: ve,
|
|
1424
1424
|
google: vt,
|
|
@@ -1457,7 +1457,7 @@ function ye() {
|
|
|
1457
1457
|
getOauthCallbackUrl: ge
|
|
1458
1458
|
};
|
|
1459
1459
|
}
|
|
1460
|
-
const qi = ye, ie = /* @__PURE__ */
|
|
1460
|
+
const qi = ye, ie = /* @__PURE__ */ P({
|
|
1461
1461
|
__name: "AuthkitOauthItem",
|
|
1462
1462
|
props: {
|
|
1463
1463
|
size: {
|
|
@@ -1480,15 +1480,15 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1480
1480
|
emit: r
|
|
1481
1481
|
}) {
|
|
1482
1482
|
const u = l;
|
|
1483
|
-
return (
|
|
1483
|
+
return (s, o) => (g(), k(e(V), {
|
|
1484
1484
|
class: "OAuthItem",
|
|
1485
1485
|
type: "primary",
|
|
1486
1486
|
size: u.size
|
|
1487
1487
|
}, {
|
|
1488
|
-
icon:
|
|
1488
|
+
icon: n(() => [i(e(Ge), {
|
|
1489
1489
|
icon: u.icon
|
|
1490
1490
|
}, null, 8, ["icon"])]),
|
|
1491
|
-
default:
|
|
1491
|
+
default: n(() => [z("span", null, T(u.label), 1)]),
|
|
1492
1492
|
_: 1
|
|
1493
1493
|
}, 8, ["size"]));
|
|
1494
1494
|
}
|
|
@@ -1496,7 +1496,7 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1496
1496
|
class: "OAuthList"
|
|
1497
1497
|
}, qt = {
|
|
1498
1498
|
class: "OAuthList"
|
|
1499
|
-
}, Rt = /* @__PURE__ */
|
|
1499
|
+
}, Rt = /* @__PURE__ */ P({
|
|
1500
1500
|
__name: "AuthkitOauthList",
|
|
1501
1501
|
props: {
|
|
1502
1502
|
size: {
|
|
@@ -1511,23 +1511,23 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1511
1511
|
setup(l) {
|
|
1512
1512
|
const {
|
|
1513
1513
|
appsData: r
|
|
1514
|
-
} =
|
|
1515
|
-
githubAuth:
|
|
1514
|
+
} = ae(), u = l, {
|
|
1515
|
+
githubAuth: s,
|
|
1516
1516
|
googleAuth: o,
|
|
1517
1517
|
microsoftAuth: d
|
|
1518
1518
|
} = ye(), t = F(() => !(!r.value.oauth.google.enabled && !r.value.oauth.microsoft.enabled && !r.value.oauth.github.enabled && !r.value.oauth.wechat.enabled));
|
|
1519
|
-
return (
|
|
1519
|
+
return (a, y) => (g(), A("div", xt, [t.value ? (g(), k(e(Ce), {
|
|
1520
1520
|
key: 0,
|
|
1521
1521
|
orientation: "center"
|
|
1522
1522
|
}, {
|
|
1523
|
-
default:
|
|
1523
|
+
default: n(() => [...y[3] || (y[3] = [_("OAuth登陆", -1)])]),
|
|
1524
1524
|
_: 1
|
|
1525
1525
|
})) : S("", !0), z("div", qt, [e(r).oauth.github.enabled ? (g(), k(ie, {
|
|
1526
1526
|
key: 0,
|
|
1527
1527
|
icon: "mdi:github",
|
|
1528
1528
|
label: "Github",
|
|
1529
1529
|
size: u.size,
|
|
1530
|
-
onClick: y[0] || (y[0] = (c) => e(
|
|
1530
|
+
onClick: y[0] || (y[0] = (c) => e(s)())
|
|
1531
1531
|
}, null, 8, ["size"])) : S("", !0), e(r).oauth.google.enabled ? (g(), k(ie, {
|
|
1532
1532
|
key: 1,
|
|
1533
1533
|
icon: "mdi:google",
|
|
@@ -1548,7 +1548,7 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1548
1548
|
class: "sendVerifyCodeItem"
|
|
1549
1549
|
}, Ot = {
|
|
1550
1550
|
class: "handle"
|
|
1551
|
-
}, Et = /* @__PURE__ */
|
|
1551
|
+
}, Et = /* @__PURE__ */ P({
|
|
1552
1552
|
__name: "AuthkitPasswordUpdateAndVerify",
|
|
1553
1553
|
props: {
|
|
1554
1554
|
size: {
|
|
@@ -1565,7 +1565,7 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1565
1565
|
setup(l, {
|
|
1566
1566
|
emit: r
|
|
1567
1567
|
}) {
|
|
1568
|
-
const u = r,
|
|
1568
|
+
const u = r, s = l, o = w(), d = w(!1), t = w(), a = w({
|
|
1569
1569
|
email: void 0,
|
|
1570
1570
|
userToken: void 0,
|
|
1571
1571
|
emailVerifyId: void 0,
|
|
@@ -1575,11 +1575,11 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1575
1575
|
async function y() {
|
|
1576
1576
|
t.value.validateField(["email"]).then((p) => {
|
|
1577
1577
|
p || (d.value = !0, X({
|
|
1578
|
-
email:
|
|
1578
|
+
email: a.value.email
|
|
1579
1579
|
}).then(({
|
|
1580
1580
|
data: m
|
|
1581
1581
|
}) => {
|
|
1582
|
-
d.value = !1,
|
|
1582
|
+
d.value = !1, a.value.emailVerifyId = m.emailVerifyId, o.value.startCountFn();
|
|
1583
1583
|
}).catch(() => {
|
|
1584
1584
|
d.value = !1;
|
|
1585
1585
|
}));
|
|
@@ -1587,17 +1587,17 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1587
1587
|
}
|
|
1588
1588
|
async function c() {
|
|
1589
1589
|
t.value.validate().then((p) => {
|
|
1590
|
-
p || u("submit",
|
|
1590
|
+
p || u("submit", a.value);
|
|
1591
1591
|
});
|
|
1592
1592
|
}
|
|
1593
|
-
return (p, m) => (g(),
|
|
1593
|
+
return (p, m) => (g(), A("div", Lt, [i(e(H), {
|
|
1594
1594
|
ref_key: "formRef",
|
|
1595
1595
|
ref: t,
|
|
1596
|
-
model:
|
|
1597
|
-
size:
|
|
1596
|
+
model: a.value,
|
|
1597
|
+
size: s.size,
|
|
1598
1598
|
"auto-label-width": ""
|
|
1599
1599
|
}, {
|
|
1600
|
-
default:
|
|
1600
|
+
default: n(() => [i(e(I), {
|
|
1601
1601
|
field: "email",
|
|
1602
1602
|
label: "邮箱",
|
|
1603
1603
|
"hide-label": "",
|
|
@@ -1609,9 +1609,9 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1609
1609
|
message: "请输入有效的邮箱"
|
|
1610
1610
|
}]
|
|
1611
1611
|
}, {
|
|
1612
|
-
default:
|
|
1613
|
-
modelValue:
|
|
1614
|
-
"onUpdate:modelValue": m[0] || (m[0] = (f) =>
|
|
1612
|
+
default: n(() => [i(e(x), {
|
|
1613
|
+
modelValue: a.value.email,
|
|
1614
|
+
"onUpdate:modelValue": m[0] || (m[0] = (f) => a.value.email = f),
|
|
1615
1615
|
placeholder: "请输入邮箱"
|
|
1616
1616
|
}, null, 8, ["modelValue"])]),
|
|
1617
1617
|
_: 1
|
|
@@ -1624,14 +1624,14 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1624
1624
|
message: "请输入验证码"
|
|
1625
1625
|
}]
|
|
1626
1626
|
}, {
|
|
1627
|
-
default:
|
|
1628
|
-
modelValue:
|
|
1629
|
-
"onUpdate:modelValue": m[1] || (m[1] = (f) =>
|
|
1627
|
+
default: n(() => [z("div", Bt, [i(e(x), {
|
|
1628
|
+
modelValue: a.value.userToken,
|
|
1629
|
+
"onUpdate:modelValue": m[1] || (m[1] = (f) => a.value.userToken = f),
|
|
1630
1630
|
placeholder: "请输入验证码"
|
|
1631
|
-
}, null, 8, ["modelValue"]), i(
|
|
1631
|
+
}, null, 8, ["modelValue"]), i(ne, {
|
|
1632
1632
|
ref_key: "SendVerifyCodeRef",
|
|
1633
1633
|
ref: o,
|
|
1634
|
-
size:
|
|
1634
|
+
size: s.size,
|
|
1635
1635
|
loading: d.value,
|
|
1636
1636
|
style: {
|
|
1637
1637
|
"margin-left": "10px"
|
|
@@ -1651,9 +1651,9 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1651
1651
|
message: "密码不能少于10字符"
|
|
1652
1652
|
}]
|
|
1653
1653
|
}, {
|
|
1654
|
-
default:
|
|
1655
|
-
modelValue:
|
|
1656
|
-
"onUpdate:modelValue": m[2] || (m[2] = (f) =>
|
|
1654
|
+
default: n(() => [i(e(x), {
|
|
1655
|
+
modelValue: a.value.password,
|
|
1656
|
+
"onUpdate:modelValue": m[2] || (m[2] = (f) => a.value.password = f),
|
|
1657
1657
|
placeholder: "请输入密码",
|
|
1658
1658
|
type: "password",
|
|
1659
1659
|
autocomplete: ""
|
|
@@ -1671,26 +1671,26 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1671
1671
|
message: "确认密码不能少于10字符"
|
|
1672
1672
|
}, {
|
|
1673
1673
|
validator: (f, v) => {
|
|
1674
|
-
f !==
|
|
1674
|
+
f !== a.value.password ? v("两次密码输入不一致,请重新输入") : v();
|
|
1675
1675
|
}
|
|
1676
1676
|
}]
|
|
1677
1677
|
}, {
|
|
1678
|
-
default:
|
|
1679
|
-
modelValue:
|
|
1680
|
-
"onUpdate:modelValue": m[3] || (m[3] = (f) =>
|
|
1678
|
+
default: n(() => [i(e(x), {
|
|
1679
|
+
modelValue: a.value.confirmPassword,
|
|
1680
|
+
"onUpdate:modelValue": m[3] || (m[3] = (f) => a.value.confirmPassword = f),
|
|
1681
1681
|
placeholder: "请输入确认密码密码",
|
|
1682
1682
|
type: "password",
|
|
1683
1683
|
autocomplete: ""
|
|
1684
1684
|
}, null, 8, ["modelValue"])]),
|
|
1685
1685
|
_: 1
|
|
1686
|
-
}, 8, ["rules"]), z("div", Ot, [i(e(
|
|
1686
|
+
}, 8, ["rules"]), z("div", Ot, [i(e(V), {
|
|
1687
1687
|
type: "primary",
|
|
1688
|
-
loading:
|
|
1688
|
+
loading: s.loading,
|
|
1689
1689
|
long: "",
|
|
1690
|
-
size:
|
|
1690
|
+
size: s.size,
|
|
1691
1691
|
onClick: c
|
|
1692
1692
|
}, {
|
|
1693
|
-
default:
|
|
1693
|
+
default: n(() => [...m[4] || (m[4] = [_(" 提交 ", -1)])]),
|
|
1694
1694
|
_: 1
|
|
1695
1695
|
}, 8, ["loading", "size"])])]),
|
|
1696
1696
|
_: 1
|
|
@@ -1698,29 +1698,29 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1698
1698
|
}
|
|
1699
1699
|
}), Dt = /* @__PURE__ */ $(Et, [["__scopeId", "data-v-1c83f44a"]]), Nt = {
|
|
1700
1700
|
class: "SwitchSignIn"
|
|
1701
|
-
}, Ft = /* @__PURE__ */
|
|
1701
|
+
}, Ft = /* @__PURE__ */ P({
|
|
1702
1702
|
__name: "AuthkitSwitchSignIn",
|
|
1703
1703
|
emits: ["switchSignIn"],
|
|
1704
1704
|
setup(l, {
|
|
1705
1705
|
emit: r
|
|
1706
1706
|
}) {
|
|
1707
1707
|
const u = r;
|
|
1708
|
-
function
|
|
1708
|
+
function s() {
|
|
1709
1709
|
u("switchSignIn");
|
|
1710
1710
|
}
|
|
1711
|
-
return (o, d) => (g(),
|
|
1711
|
+
return (o, d) => (g(), A("div", Nt, [z("span", null, [d[1] || (d[1] = z("span", null, "已经有账号?", -1)), i(e(j), {
|
|
1712
1712
|
style: {
|
|
1713
1713
|
padding: "0px"
|
|
1714
1714
|
},
|
|
1715
|
-
onClick:
|
|
1715
|
+
onClick: s
|
|
1716
1716
|
}, {
|
|
1717
|
-
default:
|
|
1717
|
+
default: n(() => [...d[0] || (d[0] = [_("去登陆", -1)])]),
|
|
1718
1718
|
_: 1
|
|
1719
1719
|
})])]));
|
|
1720
1720
|
}
|
|
1721
1721
|
}), he = /* @__PURE__ */ $(Ft, [["__scopeId", "data-v-fc1d3903"]]), Ht = {
|
|
1722
1722
|
class: "ResetPassword"
|
|
1723
|
-
}, Mt = /* @__PURE__ */
|
|
1723
|
+
}, Mt = /* @__PURE__ */ P({
|
|
1724
1724
|
__name: "AuthkitResetPassword",
|
|
1725
1725
|
props: {
|
|
1726
1726
|
size: {
|
|
@@ -1738,16 +1738,16 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1738
1738
|
setup(l, {
|
|
1739
1739
|
emit: r
|
|
1740
1740
|
}) {
|
|
1741
|
-
const u = r,
|
|
1741
|
+
const u = r, s = l;
|
|
1742
1742
|
function o() {
|
|
1743
1743
|
u("switchSignIn");
|
|
1744
1744
|
}
|
|
1745
1745
|
async function d(t) {
|
|
1746
1746
|
u("submit", t);
|
|
1747
1747
|
}
|
|
1748
|
-
return (t,
|
|
1748
|
+
return (t, a) => (g(), A("div", Ht, [i(Dt, {
|
|
1749
1749
|
loading: l.loading,
|
|
1750
|
-
size:
|
|
1750
|
+
size: s.size,
|
|
1751
1751
|
onSubmit: d
|
|
1752
1752
|
}, null, 8, ["loading", "size"]), i(he, {
|
|
1753
1753
|
onSwitchSignIn: o
|
|
@@ -1755,28 +1755,28 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1755
1755
|
}
|
|
1756
1756
|
}), Gt = /* @__PURE__ */ $(Mt, [["__scopeId", "data-v-0622cbe3"]]), jt = {
|
|
1757
1757
|
class: "ServiceAgreementAndPrivacyProtection"
|
|
1758
|
-
}, Wt = /* @__PURE__ */
|
|
1758
|
+
}, Wt = /* @__PURE__ */ P({
|
|
1759
1759
|
__name: "AuthkitServiceAgreementAndPrivacyProtection",
|
|
1760
1760
|
emits: ["toUserServiceAgreement", "toPrivacyPolicy"],
|
|
1761
1761
|
setup(l, {
|
|
1762
1762
|
emit: r
|
|
1763
1763
|
}) {
|
|
1764
1764
|
const u = r;
|
|
1765
|
-
function
|
|
1765
|
+
function s() {
|
|
1766
1766
|
u("toUserServiceAgreement");
|
|
1767
1767
|
}
|
|
1768
1768
|
function o() {
|
|
1769
1769
|
u("toPrivacyPolicy");
|
|
1770
1770
|
}
|
|
1771
|
-
return (d, t) => (g(),
|
|
1772
|
-
onClick:
|
|
1771
|
+
return (d, t) => (g(), A("div", jt, [t[2] || (t[2] = z("span", null, " 注册登陆即表示同意", -1)), i(e(j), {
|
|
1772
|
+
onClick: s
|
|
1773
1773
|
}, {
|
|
1774
|
-
default:
|
|
1774
|
+
default: n(() => [...t[0] || (t[0] = [_("用户服务协议", -1)])]),
|
|
1775
1775
|
_: 1
|
|
1776
1776
|
}), t[3] || (t[3] = z("span", null, " 和 ", -1)), i(e(j), {
|
|
1777
1777
|
onClick: o
|
|
1778
1778
|
}, {
|
|
1779
|
-
default:
|
|
1779
|
+
default: n(() => [...t[1] || (t[1] = [_("隐私协议", -1)])]),
|
|
1780
1780
|
_: 1
|
|
1781
1781
|
})]));
|
|
1782
1782
|
}
|
|
@@ -1784,7 +1784,7 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1784
1784
|
class: "content"
|
|
1785
1785
|
}, Jt = {
|
|
1786
1786
|
class: "handle"
|
|
1787
|
-
}, Qt = /* @__PURE__ */
|
|
1787
|
+
}, Qt = /* @__PURE__ */ P({
|
|
1788
1788
|
__name: "AuthkitPasswordAuth",
|
|
1789
1789
|
props: {
|
|
1790
1790
|
size: {
|
|
@@ -1801,7 +1801,7 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1801
1801
|
setup(l, {
|
|
1802
1802
|
emit: r
|
|
1803
1803
|
}) {
|
|
1804
|
-
const u = r,
|
|
1804
|
+
const u = r, s = l;
|
|
1805
1805
|
async function o(y, c) {
|
|
1806
1806
|
const p = await et({
|
|
1807
1807
|
password: y
|
|
@@ -1817,19 +1817,19 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1817
1817
|
email: void 0,
|
|
1818
1818
|
password: void 0
|
|
1819
1819
|
});
|
|
1820
|
-
async function
|
|
1820
|
+
async function a() {
|
|
1821
1821
|
d.value.validate().then((y) => {
|
|
1822
1822
|
y || u("submit", t.value);
|
|
1823
1823
|
});
|
|
1824
1824
|
}
|
|
1825
|
-
return (y, c) => (g(),
|
|
1825
|
+
return (y, c) => (g(), A("div", Zt, [i(e(H), {
|
|
1826
1826
|
ref_key: "formRef",
|
|
1827
1827
|
ref: d,
|
|
1828
1828
|
model: t.value,
|
|
1829
|
-
size:
|
|
1829
|
+
size: s.size,
|
|
1830
1830
|
"auto-label-width": ""
|
|
1831
1831
|
}, {
|
|
1832
|
-
default:
|
|
1832
|
+
default: n(() => [i(e(I), {
|
|
1833
1833
|
field: "email",
|
|
1834
1834
|
label: "邮箱",
|
|
1835
1835
|
"hide-label": "",
|
|
@@ -1841,7 +1841,7 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1841
1841
|
message: "请输入有效的邮箱"
|
|
1842
1842
|
}]
|
|
1843
1843
|
}, {
|
|
1844
|
-
default:
|
|
1844
|
+
default: n(() => [i(e(x), {
|
|
1845
1845
|
modelValue: t.value.email,
|
|
1846
1846
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => t.value.email = p),
|
|
1847
1847
|
placeholder: "请输入邮箱",
|
|
@@ -1860,7 +1860,7 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1860
1860
|
validator: o
|
|
1861
1861
|
}]
|
|
1862
1862
|
}, {
|
|
1863
|
-
default:
|
|
1863
|
+
default: n(() => [i(e(x), {
|
|
1864
1864
|
modelValue: t.value.password,
|
|
1865
1865
|
"onUpdate:modelValue": c[1] || (c[1] = (p) => t.value.password = p),
|
|
1866
1866
|
placeholder: "请输入密码",
|
|
@@ -1868,14 +1868,14 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1868
1868
|
autocomplete: "current-password"
|
|
1869
1869
|
}, null, 8, ["modelValue"])]),
|
|
1870
1870
|
_: 1
|
|
1871
|
-
}, 8, ["rules"]), z("div", Jt, [i(e(
|
|
1871
|
+
}, 8, ["rules"]), z("div", Jt, [i(e(V), {
|
|
1872
1872
|
type: "primary",
|
|
1873
|
-
loading:
|
|
1873
|
+
loading: s.loading,
|
|
1874
1874
|
long: "",
|
|
1875
|
-
size:
|
|
1876
|
-
onClick:
|
|
1875
|
+
size: s.size,
|
|
1876
|
+
onClick: a
|
|
1877
1877
|
}, {
|
|
1878
|
-
default:
|
|
1878
|
+
default: n(() => [...c[2] || (c[2] = [_(" 登陆 ", -1)])]),
|
|
1879
1879
|
_: 1
|
|
1880
1880
|
}, 8, ["loading", "size"])])]),
|
|
1881
1881
|
_: 1
|
|
@@ -1883,26 +1883,26 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1883
1883
|
}
|
|
1884
1884
|
}), Xt = /* @__PURE__ */ $(Qt, [["__scopeId", "data-v-76d6bc26"]]), Yt = {
|
|
1885
1885
|
class: "SwitchSignUpOrResetPassword"
|
|
1886
|
-
}, ei = /* @__PURE__ */
|
|
1886
|
+
}, ei = /* @__PURE__ */ P({
|
|
1887
1887
|
__name: "AuthkitSwitchSignUpOrResetPassword",
|
|
1888
1888
|
emits: ["switchSignUp", "switchResetPassword"],
|
|
1889
1889
|
setup(l, {
|
|
1890
1890
|
emit: r
|
|
1891
1891
|
}) {
|
|
1892
1892
|
const u = r;
|
|
1893
|
-
function
|
|
1893
|
+
function s() {
|
|
1894
1894
|
u("switchSignUp");
|
|
1895
1895
|
}
|
|
1896
1896
|
function o() {
|
|
1897
1897
|
u("switchResetPassword");
|
|
1898
1898
|
}
|
|
1899
|
-
return (d, t) => (g(),
|
|
1899
|
+
return (d, t) => (g(), A("div", Yt, [z("span", null, [t[1] || (t[1] = z("span", null, " 还没有账户?", -1)), i(e(j), {
|
|
1900
1900
|
style: {
|
|
1901
1901
|
padding: "0px"
|
|
1902
1902
|
},
|
|
1903
|
-
onClick:
|
|
1903
|
+
onClick: s
|
|
1904
1904
|
}, {
|
|
1905
|
-
default:
|
|
1905
|
+
default: n(() => [...t[0] || (t[0] = [_("去注册?", -1)])]),
|
|
1906
1906
|
_: 1
|
|
1907
1907
|
})]), i(e(j), {
|
|
1908
1908
|
style: {
|
|
@@ -1910,13 +1910,13 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1910
1910
|
},
|
|
1911
1911
|
onClick: o
|
|
1912
1912
|
}, {
|
|
1913
|
-
default:
|
|
1913
|
+
default: n(() => [...t[2] || (t[2] = [_(" 忘记密码?", -1)])]),
|
|
1914
1914
|
_: 1
|
|
1915
1915
|
})]));
|
|
1916
1916
|
}
|
|
1917
1917
|
}), ti = /* @__PURE__ */ $(ei, [["__scopeId", "data-v-14e3aab2"]]), ii = {
|
|
1918
1918
|
class: "SignIn"
|
|
1919
|
-
}, li = /* @__PURE__ */
|
|
1919
|
+
}, li = /* @__PURE__ */ P({
|
|
1920
1920
|
__name: "AuthkitSignIn",
|
|
1921
1921
|
props: {
|
|
1922
1922
|
size: {
|
|
@@ -1933,30 +1933,30 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1933
1933
|
setup(l, {
|
|
1934
1934
|
emit: r
|
|
1935
1935
|
}) {
|
|
1936
|
-
const u = r,
|
|
1936
|
+
const u = r, s = l, o = Ve(), d = F(() => !!o.OAuth);
|
|
1937
1937
|
function t() {
|
|
1938
1938
|
u("switchSignUp");
|
|
1939
1939
|
}
|
|
1940
|
-
function
|
|
1940
|
+
function a() {
|
|
1941
1941
|
u("switchResetPassword");
|
|
1942
1942
|
}
|
|
1943
1943
|
async function y(c) {
|
|
1944
1944
|
u("submit", c);
|
|
1945
1945
|
}
|
|
1946
|
-
return (c, p) => (g(),
|
|
1947
|
-
loading:
|
|
1948
|
-
size:
|
|
1946
|
+
return (c, p) => (g(), A("div", ii, [S("", !0), i(Xt, {
|
|
1947
|
+
loading: s.loading,
|
|
1948
|
+
size: s.size,
|
|
1949
1949
|
onSubmit: y
|
|
1950
1950
|
}, null, 8, ["loading", "size"]), d.value ? de(c.$slots, "OAuth", {
|
|
1951
1951
|
key: 1
|
|
1952
1952
|
}, void 0, !0) : S("", !0), i(ti, {
|
|
1953
1953
|
onSwitchSignUp: t,
|
|
1954
|
-
onSwitchResetPassword:
|
|
1954
|
+
onSwitchResetPassword: a
|
|
1955
1955
|
})]));
|
|
1956
1956
|
}
|
|
1957
|
-
}),
|
|
1957
|
+
}), ai = /* @__PURE__ */ $(li, [["__scopeId", "data-v-f52ce3b3"]]), ni = {
|
|
1958
1958
|
class: "SignUp"
|
|
1959
|
-
},
|
|
1959
|
+
}, si = /* @__PURE__ */ P({
|
|
1960
1960
|
__name: "AuthkitSignUp",
|
|
1961
1961
|
props: {
|
|
1962
1962
|
size: {
|
|
@@ -1973,22 +1973,22 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
1973
1973
|
setup(l, {
|
|
1974
1974
|
emit: r
|
|
1975
1975
|
}) {
|
|
1976
|
-
const u = r,
|
|
1976
|
+
const u = r, s = l;
|
|
1977
1977
|
function o() {
|
|
1978
1978
|
u("switchSignIn");
|
|
1979
1979
|
}
|
|
1980
1980
|
async function d(t) {
|
|
1981
1981
|
u("submit", t);
|
|
1982
1982
|
}
|
|
1983
|
-
return (t,
|
|
1984
|
-
size:
|
|
1983
|
+
return (t, a) => (g(), A("div", ni, [i(pe, {
|
|
1984
|
+
size: s.size,
|
|
1985
1985
|
loading: l.loading,
|
|
1986
1986
|
onSubmit: d
|
|
1987
1987
|
}, null, 8, ["size", "loading"]), i(he, {
|
|
1988
1988
|
onSwitchSignIn: o
|
|
1989
1989
|
})]));
|
|
1990
1990
|
}
|
|
1991
|
-
}), oi = /* @__PURE__ */ $(
|
|
1991
|
+
}), oi = /* @__PURE__ */ $(si, [["__scopeId", "data-v-058bbbef"]]), ri = ["src"], ui = /* @__PURE__ */ P({
|
|
1992
1992
|
__name: "AuthkitAuthTitle",
|
|
1993
1993
|
props: {
|
|
1994
1994
|
size: {
|
|
@@ -2008,31 +2008,31 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
2008
2008
|
}
|
|
2009
2009
|
},
|
|
2010
2010
|
setup(l) {
|
|
2011
|
-
const r = l, u = `${r.size}px`,
|
|
2011
|
+
const r = l, u = `${r.size}px`, s = `${r.fontSize}px`, o = `${r.lineHeight}px`, {
|
|
2012
2012
|
currentView: d
|
|
2013
2013
|
} = Q(), {
|
|
2014
2014
|
appsData: t
|
|
2015
|
-
} =
|
|
2016
|
-
return (y, c) => (g(),
|
|
2015
|
+
} = ae(), a = F(() => d.value === "signIn" ? `${t.value.name}登录` : d.value === "signUp" ? `${t.value.name}账号注册` : d.value === "resetPassword" ? `${t.value.name}密码重置` : "");
|
|
2016
|
+
return (y, c) => (g(), A("div", {
|
|
2017
2017
|
class: "Title",
|
|
2018
2018
|
style: le({
|
|
2019
|
-
fontSize:
|
|
2019
|
+
fontSize: s,
|
|
2020
2020
|
lineHeight: o
|
|
2021
2021
|
})
|
|
2022
|
-
}, [e(t).applicationLogoUrl ? (g(),
|
|
2022
|
+
}, [e(t).applicationLogoUrl ? (g(), A("img", {
|
|
2023
2023
|
key: 0,
|
|
2024
2024
|
src: e(t).applicationLogoUrl,
|
|
2025
2025
|
srcset: "",
|
|
2026
2026
|
style: le({
|
|
2027
2027
|
width: u
|
|
2028
2028
|
})
|
|
2029
|
-
}, null, 12, ri)) : S("", !0), z("span", null, T(
|
|
2029
|
+
}, null, 12, ri)) : S("", !0), z("span", null, T(a.value), 1), de(y.$slots, "default", {}, void 0, !0)], 4));
|
|
2030
2030
|
}
|
|
2031
2031
|
}), we = /* @__PURE__ */ $(ui, [["__scopeId", "data-v-5576db64"]]), di = {
|
|
2032
2032
|
class: "Auth"
|
|
2033
2033
|
}, mi = {
|
|
2034
2034
|
class: "body"
|
|
2035
|
-
}, ci = /* @__PURE__ */
|
|
2035
|
+
}, ci = /* @__PURE__ */ P({
|
|
2036
2036
|
__name: "AuthkitAuth",
|
|
2037
2037
|
props: {
|
|
2038
2038
|
size: {
|
|
@@ -2048,11 +2048,11 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
2048
2048
|
setup(l, {
|
|
2049
2049
|
emit: r
|
|
2050
2050
|
}) {
|
|
2051
|
-
const u = l,
|
|
2051
|
+
const u = l, s = r, {
|
|
2052
2052
|
signInSubmit: o,
|
|
2053
2053
|
signUpSubmit: d,
|
|
2054
2054
|
resetPasswordSubmit: t,
|
|
2055
|
-
currentView:
|
|
2055
|
+
currentView: a,
|
|
2056
2056
|
authSignInLoading: y,
|
|
2057
2057
|
authSignUpLoading: c,
|
|
2058
2058
|
resetPasswordLoading: p,
|
|
@@ -2061,18 +2061,18 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
2061
2061
|
switchSignIn: v
|
|
2062
2062
|
} = Q(), {
|
|
2063
2063
|
appsAuthPageInfoApi: b
|
|
2064
|
-
} =
|
|
2064
|
+
} = ae();
|
|
2065
2065
|
function q() {
|
|
2066
|
-
|
|
2066
|
+
s("toPrivacyPolicy");
|
|
2067
2067
|
}
|
|
2068
2068
|
function U() {
|
|
2069
|
-
|
|
2069
|
+
s("toUserServiceAgreement");
|
|
2070
2070
|
}
|
|
2071
|
-
return b(), (R, B) => (g(),
|
|
2071
|
+
return b(), (R, B) => (g(), A("div", di, [l.showTitle ? (g(), k(we, {
|
|
2072
2072
|
key: 0,
|
|
2073
2073
|
size: 32,
|
|
2074
2074
|
"font-size": 20
|
|
2075
|
-
})) : S("", !0), z("div", mi, [e(
|
|
2075
|
+
})) : S("", !0), z("div", mi, [e(a) === "signIn" ? (g(), k(ai, {
|
|
2076
2076
|
key: 0,
|
|
2077
2077
|
size: u.size,
|
|
2078
2078
|
loading: e(y),
|
|
@@ -2080,17 +2080,17 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
2080
2080
|
onSwitchResetPassword: e(f),
|
|
2081
2081
|
onSubmit: B[0] || (B[0] = (O) => e(o)(O))
|
|
2082
2082
|
}, {
|
|
2083
|
-
OAuth:
|
|
2083
|
+
OAuth: n(() => [i(Tt, {
|
|
2084
2084
|
size: u.size
|
|
2085
2085
|
}, null, 8, ["size"])]),
|
|
2086
2086
|
_: 1
|
|
2087
|
-
}, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : e(
|
|
2087
|
+
}, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : e(a) === "signUp" ? (g(), k(oi, {
|
|
2088
2088
|
key: 1,
|
|
2089
2089
|
size: u.size,
|
|
2090
2090
|
loading: e(c),
|
|
2091
2091
|
onSwitchSignIn: e(v),
|
|
2092
2092
|
onSubmit: B[1] || (B[1] = (O) => e(d)(O))
|
|
2093
|
-
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(
|
|
2093
|
+
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(a) === "resetPassword" ? (g(), k(Gt, {
|
|
2094
2094
|
key: 2,
|
|
2095
2095
|
size: u.size,
|
|
2096
2096
|
loading: e(p),
|
|
@@ -2101,7 +2101,7 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
2101
2101
|
onToUserServiceAgreement: U
|
|
2102
2102
|
})])]));
|
|
2103
2103
|
}
|
|
2104
|
-
}), fi = /* @__PURE__ */ $(ci, [["__scopeId", "data-v-bc3a1eb8"]]), pi = /* @__PURE__ */
|
|
2104
|
+
}), fi = /* @__PURE__ */ $(ci, [["__scopeId", "data-v-bc3a1eb8"]]), pi = /* @__PURE__ */ P({
|
|
2105
2105
|
__name: "AuthkitAuthModal",
|
|
2106
2106
|
props: {
|
|
2107
2107
|
size: {
|
|
@@ -2120,19 +2120,19 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
2120
2120
|
const {
|
|
2121
2121
|
addSignInCallback: u
|
|
2122
2122
|
} = Q(), {
|
|
2123
|
-
show:
|
|
2123
|
+
show: s
|
|
2124
2124
|
} = xe(), o = l, d = r;
|
|
2125
2125
|
function t(y) {
|
|
2126
2126
|
y(!0);
|
|
2127
2127
|
}
|
|
2128
|
-
function
|
|
2129
|
-
|
|
2128
|
+
function a() {
|
|
2129
|
+
s.value = !1, d("close");
|
|
2130
2130
|
}
|
|
2131
2131
|
return u(() => {
|
|
2132
|
-
|
|
2132
|
+
s.value = !1;
|
|
2133
2133
|
}), (y, c) => (g(), k(e(ce), {
|
|
2134
|
-
visible: e(
|
|
2135
|
-
"onUpdate:visible": c[2] || (c[2] = (p) => ue(
|
|
2134
|
+
visible: e(s),
|
|
2135
|
+
"onUpdate:visible": c[2] || (c[2] = (p) => ue(s) ? s.value = p : null),
|
|
2136
2136
|
footer: !1,
|
|
2137
2137
|
"mask-closable": !1,
|
|
2138
2138
|
"title-align": "center",
|
|
@@ -2140,10 +2140,10 @@ const qi = ye, ie = /* @__PURE__ */ A({
|
|
|
2140
2140
|
width: "auto",
|
|
2141
2141
|
"modal-class": "SignInModalClass",
|
|
2142
2142
|
onBeforeOk: t,
|
|
2143
|
-
onClose:
|
|
2143
|
+
onClose: a
|
|
2144
2144
|
}, {
|
|
2145
|
-
title:
|
|
2146
|
-
default:
|
|
2145
|
+
title: n(() => [i(we)]),
|
|
2146
|
+
default: n(() => [i(fi, {
|
|
2147
2147
|
"show-title": !1,
|
|
2148
2148
|
size: o.size,
|
|
2149
2149
|
onToPrivacyPolicy: c[0] || (c[0] = (p) => d("toPrivacyPolicy")),
|
|
@@ -2159,19 +2159,19 @@ export {
|
|
|
2159
2159
|
Tt as O,
|
|
2160
2160
|
Dt as P,
|
|
2161
2161
|
Gt as R,
|
|
2162
|
-
|
|
2162
|
+
ne as S,
|
|
2163
2163
|
ie as _,
|
|
2164
2164
|
fi as a,
|
|
2165
2165
|
we as b,
|
|
2166
2166
|
Ri as c,
|
|
2167
|
-
|
|
2167
|
+
ai as d,
|
|
2168
2168
|
oi as e,
|
|
2169
2169
|
Xt as f,
|
|
2170
2170
|
he as g,
|
|
2171
2171
|
ti as h,
|
|
2172
2172
|
Kt as i,
|
|
2173
2173
|
Xe as j,
|
|
2174
|
-
|
|
2174
|
+
se as k,
|
|
2175
2175
|
yt as l,
|
|
2176
2176
|
rt as m,
|
|
2177
2177
|
pt as n,
|