@huyooo/ui 0.5.59 → 0.5.60
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-BSvtvlyj.js → AuthkitAuthModal-DOJxOU01.js} +335 -334
- package/dist/{AuthkitOAuthCallback-DQ1RAKyR.js → AuthkitOauthCallback-BnHgrReE.js} +24 -24
- package/dist/{UserAccountMenu-BWx4hX66.js → UserAccountMenu-DgvdmbWH.js} +1 -1
- package/dist/{WidthContainer-DiEkVFtH.js → WidthContainer-BoQWHreP.js} +1 -1
- package/dist/api/Authkit/oauth.d.ts +12 -0
- package/dist/authkit.d.ts +7 -4
- package/dist/authkit.js +34 -30
- package/dist/common.js +1 -1
- package/dist/composables/Authkit/{useAuthkitOAuth.d.ts → useOauth.d.ts} +6 -5
- package/dist/index.js +143 -139
- package/dist/style.css +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/api/Authkit/OAuth.d.ts +0 -12
- /package/dist/components/Authkit/Auth/{AuthkitOAuthCallback.vue.d.ts → AuthkitOauthCallback.vue.d.ts} +0 -0
- /package/dist/components/Authkit/Auth/{AuthkitOAuthItem.vue.d.ts → AuthkitOauthItem.vue.d.ts} +0 -0
- /package/dist/components/Authkit/Auth/{AuthkitOAuthList.vue.d.ts → AuthkitOauthList.vue.d.ts} +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { Form as
|
|
4
|
+
import { defineComponent as A, computed as F, createElementBlock as V, openBlock as g, normalizeStyle as le, normalizeClass as ze, createElementVNode as z, ref as w, createBlock as k, unref as e, withCtx as a, createVNode as i, createTextVNode as _, onMounted as Z, onUnmounted as re, withDirectives as Se, toDisplayString as R, vShow as Ie, Fragment as M, createCommentVNode as S, renderList as Ae, isRef as ue, useSlots as Pe, renderSlot as de } from "vue";
|
|
5
|
+
import { Form as H, FormItem as I, Avatar as ce, Input as q, Textarea as Ve, Button as P, Message as N, Alert as D, Space as ee, InputPassword as Ue, Result as $e, Modal as me, Divider as Ce, Link as j } from "@arco-design/web-vue";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { g as E, c as
|
|
7
|
+
import { g as E, c as G, h as fe, u as xe } from "./auth-bwwc2iT8.js";
|
|
8
8
|
/* empty css */
|
|
9
|
-
import { u as
|
|
10
|
-
import { b as
|
|
11
|
-
import { _ as
|
|
9
|
+
import { u as qe } from "./useUploadCos-_xwV40NS.js";
|
|
10
|
+
import { b as Te, c as oe, d as Re, a as J, e as Le, f as Be, u as Q, g as Oe, h as Ee } from "./useAuthkitUsersProfile-hZ9L3rYe.js";
|
|
11
|
+
import { _ as De, g as Ne, i as Fe } from "./plugin-vue_export-helper-LjDO2Zua.js";
|
|
12
12
|
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
import { M as
|
|
14
|
-
import { u as
|
|
13
|
+
import { M as He } from "./Menu-BjWB9hre.js";
|
|
14
|
+
import { u as Me } from "./useAuthkitCreateAndUpdate-Co5wMbv7.js";
|
|
15
15
|
import { u as se } from "./useAuthkitAppsAuthPageInfo-CzZmhPMm.js";
|
|
16
16
|
/* empty css */
|
|
17
|
-
import { Icon as
|
|
18
|
-
const
|
|
17
|
+
import { Icon as Ge } from "@iconify/vue";
|
|
18
|
+
const je = A({
|
|
19
19
|
name: "IconCamera",
|
|
20
20
|
props: {
|
|
21
21
|
size: {
|
|
@@ -44,28 +44,28 @@ const He = I({
|
|
|
44
44
|
setup(s, {
|
|
45
45
|
emit: r
|
|
46
46
|
}) {
|
|
47
|
-
const u =
|
|
47
|
+
const u = Ne("icon"), n = F(() => [u, `${u}-camera`, {
|
|
48
48
|
[`${u}-spin`]: s.spin
|
|
49
49
|
}]), o = F(() => {
|
|
50
50
|
const t = {};
|
|
51
|
-
return s.size && (t.fontSize =
|
|
51
|
+
return s.size && (t.fontSize = Fe(s.size) ? `${s.size}px` : s.size), s.rotate && (t.transform = `rotate(${s.rotate}deg)`), t;
|
|
52
52
|
});
|
|
53
53
|
return {
|
|
54
|
-
cls:
|
|
54
|
+
cls: n,
|
|
55
55
|
innerStyle: o,
|
|
56
56
|
onClick: (t) => {
|
|
57
57
|
r("click", t);
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
}),
|
|
62
|
-
function
|
|
61
|
+
}), We = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
62
|
+
function Ke(s, r, u, n, o, d) {
|
|
63
63
|
return g(), V("svg", {
|
|
64
64
|
viewBox: "0 0 48 48",
|
|
65
65
|
fill: "none",
|
|
66
66
|
xmlns: "http://www.w3.org/2000/svg",
|
|
67
67
|
stroke: "currentColor",
|
|
68
|
-
class:
|
|
68
|
+
class: ze(s.cls),
|
|
69
69
|
style: le(s.innerStyle),
|
|
70
70
|
"stroke-width": s.strokeWidth,
|
|
71
71
|
"stroke-linecap": s.strokeLinecap,
|
|
@@ -73,18 +73,18 @@ function We(s, r, u, a, o, d) {
|
|
|
73
73
|
onClick: r[0] || (r[0] = (...t) => s.onClick && s.onClick(...t))
|
|
74
74
|
}, r[1] || (r[1] = [z("path", {
|
|
75
75
|
d: "m33 12-1.862-3.724A.5.5 0 0 0 30.691 8H17.309a.5.5 0 0 0-.447.276L15 12m16 14a7 7 0 1 1-14 0 7 7 0 0 1 14 0ZM7 40h34a1 1 0 0 0 1-1V13a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v26a1 1 0 0 0 1 1Z"
|
|
76
|
-
}, null, -1)]), 14,
|
|
76
|
+
}, null, -1)]), 14, We);
|
|
77
77
|
}
|
|
78
|
-
var te = /* @__PURE__ */
|
|
79
|
-
const
|
|
78
|
+
var te = /* @__PURE__ */ De(je, [["render", Ke]]);
|
|
79
|
+
const Ze = Object.assign(te, {
|
|
80
80
|
install: (s, r) => {
|
|
81
81
|
var u;
|
|
82
|
-
const
|
|
83
|
-
s.component(
|
|
82
|
+
const n = (u = r == null ? void 0 : r.iconPrefix) != null ? u : "";
|
|
83
|
+
s.component(n + te.name, te);
|
|
84
84
|
}
|
|
85
|
-
}),
|
|
85
|
+
}), Je = {
|
|
86
86
|
class: "handle"
|
|
87
|
-
},
|
|
87
|
+
}, Qe = /* @__PURE__ */ A({
|
|
88
88
|
__name: "AuthkitPersonalInformation",
|
|
89
89
|
props: {
|
|
90
90
|
size: {
|
|
@@ -96,7 +96,7 @@ const Ke = Object.assign(te, {
|
|
|
96
96
|
setup(s, {
|
|
97
97
|
emit: r
|
|
98
98
|
}) {
|
|
99
|
-
const u = r,
|
|
99
|
+
const u = r, n = s, o = w({
|
|
100
100
|
id: void 0,
|
|
101
101
|
nickname: "",
|
|
102
102
|
description: "",
|
|
@@ -104,7 +104,7 @@ const Ke = Object.assign(te, {
|
|
|
104
104
|
avatarUrl: ""
|
|
105
105
|
}), d = w(!1), t = w(), l = w(!1);
|
|
106
106
|
function y() {
|
|
107
|
-
l.value = !0,
|
|
107
|
+
l.value = !0, Te().then(({
|
|
108
108
|
data: c
|
|
109
109
|
}) => {
|
|
110
110
|
l.value = !1, o.value.id = c.id, o.value.nickname = c.nickname, o.value.description = c.description, o.value.avatar = c.avatar, o.value.avatarUrl = c.avatarUrl;
|
|
@@ -136,7 +136,7 @@ const Ke = Object.assign(te, {
|
|
|
136
136
|
const p = () => {
|
|
137
137
|
const {
|
|
138
138
|
uploadFile: c
|
|
139
|
-
} =
|
|
139
|
+
} = qe(), f = document.createElement("input");
|
|
140
140
|
f.type = "file", f.accept = "image/*", f.style.display = "none", document.body.append(f), f.addEventListener("change", async (v) => {
|
|
141
141
|
var $;
|
|
142
142
|
const U = ($ = v.target.files) == null ? void 0 : $[0];
|
|
@@ -171,14 +171,14 @@ const Ke = Object.assign(te, {
|
|
|
171
171
|
f.remove();
|
|
172
172
|
}), f.click();
|
|
173
173
|
};
|
|
174
|
-
return (c, f) => (g(), k(e(
|
|
174
|
+
return (c, f) => (g(), k(e(H), {
|
|
175
175
|
ref_key: "formRef",
|
|
176
176
|
ref: t,
|
|
177
177
|
model: o.value,
|
|
178
178
|
"auto-label-width": "",
|
|
179
|
-
size:
|
|
179
|
+
size: n.size
|
|
180
180
|
}, {
|
|
181
|
-
default:
|
|
181
|
+
default: a(() => [i(e(I), {
|
|
182
182
|
field: "avatar",
|
|
183
183
|
label: "头像",
|
|
184
184
|
rules: [{
|
|
@@ -186,7 +186,7 @@ const Ke = Object.assign(te, {
|
|
|
186
186
|
message: "请上传头像"
|
|
187
187
|
}]
|
|
188
188
|
}, {
|
|
189
|
-
default:
|
|
189
|
+
default: a(() => [i(e(ce), {
|
|
190
190
|
"image-url": o.value.avatarUrl,
|
|
191
191
|
size: 42,
|
|
192
192
|
"object-fit": "cover",
|
|
@@ -195,11 +195,11 @@ const Ke = Object.assign(te, {
|
|
|
195
195
|
},
|
|
196
196
|
onClick: p
|
|
197
197
|
}, {
|
|
198
|
-
"trigger-icon":
|
|
198
|
+
"trigger-icon": a(() => [i(e(Ze))]),
|
|
199
199
|
_: 1
|
|
200
200
|
}, 8, ["image-url"])]),
|
|
201
201
|
_: 1
|
|
202
|
-
}), i(e(
|
|
202
|
+
}), i(e(I), {
|
|
203
203
|
field: "nickname",
|
|
204
204
|
label: "昵称",
|
|
205
205
|
rules: [{
|
|
@@ -207,13 +207,13 @@ const Ke = Object.assign(te, {
|
|
|
207
207
|
message: "请输入昵称"
|
|
208
208
|
}]
|
|
209
209
|
}, {
|
|
210
|
-
default:
|
|
210
|
+
default: a(() => [i(e(q), {
|
|
211
211
|
modelValue: o.value.nickname,
|
|
212
212
|
"onUpdate:modelValue": f[0] || (f[0] = (v) => o.value.nickname = v),
|
|
213
213
|
placeholder: "请输入昵称"
|
|
214
214
|
}, null, 8, ["modelValue"])]),
|
|
215
215
|
_: 1
|
|
216
|
-
}), i(e(
|
|
216
|
+
}), i(e(I), {
|
|
217
217
|
field: "description",
|
|
218
218
|
label: "简介",
|
|
219
219
|
rules: [{
|
|
@@ -221,7 +221,7 @@ const Ke = Object.assign(te, {
|
|
|
221
221
|
message: "请输入描述"
|
|
222
222
|
}]
|
|
223
223
|
}, {
|
|
224
|
-
default:
|
|
224
|
+
default: a(() => [i(e(Ve), {
|
|
225
225
|
modelValue: o.value.description,
|
|
226
226
|
"onUpdate:modelValue": f[1] || (f[1] = (v) => o.value.description = v),
|
|
227
227
|
placeholder: "请输入描述",
|
|
@@ -231,17 +231,17 @@ const Ke = Object.assign(te, {
|
|
|
231
231
|
}
|
|
232
232
|
}, null, 8, ["modelValue"])]),
|
|
233
233
|
_: 1
|
|
234
|
-
}), i(e(
|
|
234
|
+
}), i(e(I), {
|
|
235
235
|
field: "",
|
|
236
236
|
label: "",
|
|
237
237
|
rules: []
|
|
238
238
|
}, {
|
|
239
|
-
default:
|
|
239
|
+
default: a(() => [z("div", Je, [i(e(P), {
|
|
240
240
|
type: "primary",
|
|
241
241
|
loading: l.value,
|
|
242
242
|
onClick: m
|
|
243
243
|
}, {
|
|
244
|
-
default:
|
|
244
|
+
default: a(() => [...f[2] || (f[2] = [_(" 提交 ", -1)])]),
|
|
245
245
|
_: 1
|
|
246
246
|
}, 8, ["loading"])])]),
|
|
247
247
|
_: 1
|
|
@@ -249,29 +249,29 @@ const Ke = Object.assign(te, {
|
|
|
249
249
|
_: 1
|
|
250
250
|
}, 8, ["model", "size"]));
|
|
251
251
|
}
|
|
252
|
-
}),
|
|
253
|
-
function
|
|
254
|
-
return
|
|
252
|
+
}), Xe = /* @__PURE__ */ C(Qe, [["__scopeId", "data-v-c241b7f8"]]);
|
|
253
|
+
function Ye(s) {
|
|
254
|
+
return G({
|
|
255
255
|
url: `${E.authPrefixUrl}/restfulApi/verify/email`,
|
|
256
256
|
method: "post",
|
|
257
257
|
data: s
|
|
258
258
|
});
|
|
259
259
|
}
|
|
260
260
|
function X(s) {
|
|
261
|
-
return
|
|
261
|
+
return G({
|
|
262
262
|
url: `${E.authPrefixUrl}/restfulApi/verify/email/retry`,
|
|
263
263
|
method: "post",
|
|
264
264
|
data: s
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
return
|
|
267
|
+
function et(s) {
|
|
268
|
+
return G({
|
|
269
269
|
url: `${E.authPrefixUrl}/restfulApi/verify/password`,
|
|
270
270
|
method: "post",
|
|
271
271
|
data: s
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
|
-
const
|
|
274
|
+
const tt = /* @__PURE__ */ A({
|
|
275
275
|
__name: "AuthkitSendVerifyCode",
|
|
276
276
|
props: {
|
|
277
277
|
size: {
|
|
@@ -289,13 +289,13 @@ const et = /* @__PURE__ */ I({
|
|
|
289
289
|
expose: r,
|
|
290
290
|
emit: u
|
|
291
291
|
}) {
|
|
292
|
-
const
|
|
292
|
+
const n = u, o = s, d = w(!1);
|
|
293
293
|
let t;
|
|
294
294
|
const l = w(0), y = F(() => l.value.toString().padStart(2, "0")), m = F(() => l.value > 0), p = () => {
|
|
295
295
|
d.value && (l.value <= 0 ? (clearInterval(t), d.value = !1) : l.value--);
|
|
296
296
|
};
|
|
297
297
|
function c() {
|
|
298
|
-
|
|
298
|
+
n("send");
|
|
299
299
|
}
|
|
300
300
|
function f() {
|
|
301
301
|
l.value = 60, d.value = !0, t && clearInterval(t), t = setInterval(p, 1e3);
|
|
@@ -313,17 +313,17 @@ const et = /* @__PURE__ */ I({
|
|
|
313
313
|
loading: o.loading,
|
|
314
314
|
onClick: c
|
|
315
315
|
}, {
|
|
316
|
-
default:
|
|
316
|
+
default: a(() => [b[0] || (b[0] = z("span", null, " 发送验证码", -1)), Se(z("span", {
|
|
317
317
|
class: "verify-code-timer"
|
|
318
|
-
}, R(`(${y.value})`), 513), [[
|
|
318
|
+
}, R(`(${y.value})`), 513), [[Ie, m.value]])]),
|
|
319
319
|
_: 1
|
|
320
320
|
}, 8, ["size", "disabled", "loading"]));
|
|
321
321
|
}
|
|
322
|
-
}),
|
|
322
|
+
}), ae = /* @__PURE__ */ C(tt, [["__scopeId", "data-v-2883dc6d"]]), it = {
|
|
323
323
|
class: "sendVerifyCodeItem"
|
|
324
|
-
},
|
|
324
|
+
}, lt = {
|
|
325
325
|
class: "handle"
|
|
326
|
-
},
|
|
326
|
+
}, st = /* @__PURE__ */ A({
|
|
327
327
|
__name: "AuthkitEmailVerify",
|
|
328
328
|
props: {
|
|
329
329
|
email: {
|
|
@@ -340,13 +340,13 @@ const et = /* @__PURE__ */ I({
|
|
|
340
340
|
setup(s, {
|
|
341
341
|
emit: r
|
|
342
342
|
}) {
|
|
343
|
-
const u = r,
|
|
343
|
+
const u = r, n = s, o = F(() => fe(n.email)), d = w(), t = w(!1), l = w(!1), y = w(), m = w({
|
|
344
344
|
userToken: void 0,
|
|
345
345
|
emailVerifyId: void 0
|
|
346
346
|
});
|
|
347
347
|
async function p() {
|
|
348
348
|
t.value = !0, X({
|
|
349
|
-
email:
|
|
349
|
+
email: n.email
|
|
350
350
|
}).then(({
|
|
351
351
|
data: f
|
|
352
352
|
}) => {
|
|
@@ -360,11 +360,11 @@ const et = /* @__PURE__ */ I({
|
|
|
360
360
|
if (!f) {
|
|
361
361
|
l.value = !0;
|
|
362
362
|
const v = {
|
|
363
|
-
email:
|
|
363
|
+
email: n.email,
|
|
364
364
|
userToken: m.value.userToken,
|
|
365
365
|
emailVerifyId: m.value.emailVerifyId
|
|
366
366
|
};
|
|
367
|
-
|
|
367
|
+
Ye(v).then(() => {
|
|
368
368
|
l.value = !1, u("next");
|
|
369
369
|
}).catch(() => {
|
|
370
370
|
l.value = !1;
|
|
@@ -372,14 +372,14 @@ const et = /* @__PURE__ */ I({
|
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
|
-
return (f, v) => (g(), k(e(
|
|
375
|
+
return (f, v) => (g(), k(e(H), {
|
|
376
376
|
ref_key: "formRef",
|
|
377
377
|
ref: y,
|
|
378
378
|
model: m.value,
|
|
379
379
|
"auto-label-width": "",
|
|
380
|
-
size:
|
|
380
|
+
size: n.size
|
|
381
381
|
}, {
|
|
382
|
-
default:
|
|
382
|
+
default: a(() => [i(e(I), {
|
|
383
383
|
field: "email",
|
|
384
384
|
label: "邮箱",
|
|
385
385
|
rules: [{
|
|
@@ -390,9 +390,9 @@ const et = /* @__PURE__ */ I({
|
|
|
390
390
|
message: "请输入有效的邮箱"
|
|
391
391
|
}]
|
|
392
392
|
}, {
|
|
393
|
-
default:
|
|
393
|
+
default: a(() => [_(R(o.value), 1)]),
|
|
394
394
|
_: 1
|
|
395
|
-
}), i(e(
|
|
395
|
+
}), i(e(I), {
|
|
396
396
|
field: "userToken",
|
|
397
397
|
label: "验证码",
|
|
398
398
|
"hide-label": "",
|
|
@@ -401,14 +401,14 @@ const et = /* @__PURE__ */ I({
|
|
|
401
401
|
message: "请输入验证码"
|
|
402
402
|
}]
|
|
403
403
|
}, {
|
|
404
|
-
default:
|
|
404
|
+
default: a(() => [z("div", it, [i(e(q), {
|
|
405
405
|
modelValue: m.value.userToken,
|
|
406
406
|
"onUpdate:modelValue": v[0] || (v[0] = (b) => m.value.userToken = b),
|
|
407
407
|
placeholder: "请输入验证码"
|
|
408
|
-
}, null, 8, ["modelValue"]), i(
|
|
408
|
+
}, null, 8, ["modelValue"]), i(ae, {
|
|
409
409
|
ref_key: "SendVerifyCodeRef",
|
|
410
410
|
ref: d,
|
|
411
|
-
size:
|
|
411
|
+
size: n.size,
|
|
412
412
|
loading: t.value,
|
|
413
413
|
style: {
|
|
414
414
|
"margin-left": "10px"
|
|
@@ -416,17 +416,17 @@ const et = /* @__PURE__ */ I({
|
|
|
416
416
|
onSend: p
|
|
417
417
|
}, null, 8, ["size", "loading"])])]),
|
|
418
418
|
_: 1
|
|
419
|
-
}), i(e(
|
|
419
|
+
}), i(e(I), {
|
|
420
420
|
field: "",
|
|
421
421
|
label: "",
|
|
422
422
|
rules: []
|
|
423
423
|
}, {
|
|
424
|
-
default:
|
|
424
|
+
default: a(() => [z("div", lt, [i(e(P), {
|
|
425
425
|
loading: l.value,
|
|
426
426
|
type: "primary",
|
|
427
427
|
onClick: c
|
|
428
428
|
}, {
|
|
429
|
-
default:
|
|
429
|
+
default: a(() => [...v[1] || (v[1] = [_(" 提交 ", -1)])]),
|
|
430
430
|
_: 1
|
|
431
431
|
}, 8, ["loading"])])]),
|
|
432
432
|
_: 1
|
|
@@ -434,9 +434,9 @@ const et = /* @__PURE__ */ I({
|
|
|
434
434
|
_: 1
|
|
435
435
|
}, 8, ["model", "size"]));
|
|
436
436
|
}
|
|
437
|
-
}),
|
|
437
|
+
}), ne = /* @__PURE__ */ C(st, [["__scopeId", "data-v-89ebb370"]]), at = {
|
|
438
438
|
class: "handle"
|
|
439
|
-
}, nt = /* @__PURE__ */
|
|
439
|
+
}, nt = /* @__PURE__ */ A({
|
|
440
440
|
__name: "AuthkitPasswordUpdate",
|
|
441
441
|
props: {
|
|
442
442
|
size: {
|
|
@@ -448,7 +448,7 @@ const et = /* @__PURE__ */ I({
|
|
|
448
448
|
setup(s, {
|
|
449
449
|
emit: r
|
|
450
450
|
}) {
|
|
451
|
-
const u = r,
|
|
451
|
+
const u = r, n = w(!1), o = w(), d = s, t = w({
|
|
452
452
|
oldPassword: "",
|
|
453
453
|
password: "",
|
|
454
454
|
confirmPassword: ""
|
|
@@ -459,22 +459,22 @@ const et = /* @__PURE__ */ I({
|
|
|
459
459
|
const m = {
|
|
460
460
|
password: t.value.password
|
|
461
461
|
};
|
|
462
|
-
|
|
463
|
-
|
|
462
|
+
Re(m).then(() => {
|
|
463
|
+
n.value = !1, u("submit", m);
|
|
464
464
|
}).catch(() => {
|
|
465
|
-
|
|
465
|
+
n.value = !1;
|
|
466
466
|
});
|
|
467
467
|
}
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
|
-
return (y, m) => (g(), k(e(
|
|
470
|
+
return (y, m) => (g(), k(e(H), {
|
|
471
471
|
ref_key: "formRef",
|
|
472
472
|
ref: o,
|
|
473
473
|
model: t.value,
|
|
474
474
|
"auto-label-width": "",
|
|
475
475
|
size: d.size
|
|
476
476
|
}, {
|
|
477
|
-
default:
|
|
477
|
+
default: a(() => [i(e(I), {
|
|
478
478
|
field: "oldPassword",
|
|
479
479
|
label: "当前密码",
|
|
480
480
|
"hide-label": "",
|
|
@@ -483,14 +483,14 @@ const et = /* @__PURE__ */ I({
|
|
|
483
483
|
message: "请输入当前密码"
|
|
484
484
|
}]
|
|
485
485
|
}, {
|
|
486
|
-
default:
|
|
486
|
+
default: a(() => [i(e(q), {
|
|
487
487
|
modelValue: t.value.oldPassword,
|
|
488
488
|
"onUpdate:modelValue": m[0] || (m[0] = (p) => t.value.oldPassword = p),
|
|
489
489
|
placeholder: "请输入当前密码",
|
|
490
490
|
type: "password"
|
|
491
491
|
}, null, 8, ["modelValue"])]),
|
|
492
492
|
_: 1
|
|
493
|
-
}), i(e(
|
|
493
|
+
}), i(e(I), {
|
|
494
494
|
field: "password",
|
|
495
495
|
label: "新密码",
|
|
496
496
|
"hide-label": "",
|
|
@@ -502,14 +502,14 @@ const et = /* @__PURE__ */ I({
|
|
|
502
502
|
message: "新密码不能少于10字符"
|
|
503
503
|
}]
|
|
504
504
|
}, {
|
|
505
|
-
default:
|
|
505
|
+
default: a(() => [i(e(q), {
|
|
506
506
|
modelValue: t.value.password,
|
|
507
507
|
"onUpdate:modelValue": m[1] || (m[1] = (p) => t.value.password = p),
|
|
508
508
|
placeholder: "请输入新密码",
|
|
509
509
|
type: "password"
|
|
510
510
|
}, null, 8, ["modelValue"])]),
|
|
511
511
|
_: 1
|
|
512
|
-
}), i(e(
|
|
512
|
+
}), i(e(I), {
|
|
513
513
|
field: "confirmPassword",
|
|
514
514
|
label: "确认密码",
|
|
515
515
|
"hide-label": "",
|
|
@@ -525,24 +525,24 @@ const et = /* @__PURE__ */ I({
|
|
|
525
525
|
}
|
|
526
526
|
}]
|
|
527
527
|
}, {
|
|
528
|
-
default:
|
|
528
|
+
default: a(() => [i(e(q), {
|
|
529
529
|
modelValue: t.value.confirmPassword,
|
|
530
530
|
"onUpdate:modelValue": m[2] || (m[2] = (p) => t.value.confirmPassword = p),
|
|
531
531
|
placeholder: "请输入确认密码密码",
|
|
532
532
|
type: "password"
|
|
533
533
|
}, null, 8, ["modelValue"])]),
|
|
534
534
|
_: 1
|
|
535
|
-
}, 8, ["rules"]), i(e(
|
|
535
|
+
}, 8, ["rules"]), i(e(I), {
|
|
536
536
|
field: "",
|
|
537
537
|
label: "",
|
|
538
538
|
rules: []
|
|
539
539
|
}, {
|
|
540
|
-
default:
|
|
540
|
+
default: a(() => [z("div", at, [i(e(P), {
|
|
541
541
|
type: "primary",
|
|
542
|
-
loading:
|
|
542
|
+
loading: n.value,
|
|
543
543
|
onClick: l
|
|
544
544
|
}, {
|
|
545
|
-
default:
|
|
545
|
+
default: a(() => [...m[3] || (m[3] = [_(" 提交 ", -1)])]),
|
|
546
546
|
_: 1
|
|
547
547
|
}, 8, ["loading"])])]),
|
|
548
548
|
_: 1
|
|
@@ -550,7 +550,7 @@ const et = /* @__PURE__ */ I({
|
|
|
550
550
|
_: 1
|
|
551
551
|
}, 8, ["model", "size"]));
|
|
552
552
|
}
|
|
553
|
-
}),
|
|
553
|
+
}), ot = /* @__PURE__ */ C(nt, [["__scopeId", "data-v-a9e25b03"]]), rt = /* @__PURE__ */ A({
|
|
554
554
|
__name: "AuthkitSetPassword",
|
|
555
555
|
props: {
|
|
556
556
|
size: {
|
|
@@ -562,56 +562,56 @@ const et = /* @__PURE__ */ I({
|
|
|
562
562
|
const {
|
|
563
563
|
userProfile: r,
|
|
564
564
|
loading: u,
|
|
565
|
-
fetchUserProfile:
|
|
565
|
+
fetchUserProfile: n,
|
|
566
566
|
isLoggedIn: o
|
|
567
567
|
} = J(), d = w("hidden"), t = s;
|
|
568
568
|
function l(p) {
|
|
569
569
|
d.value = p;
|
|
570
570
|
}
|
|
571
571
|
function y(p) {
|
|
572
|
-
N.success("密码修改成功"), d.value = "hidden",
|
|
572
|
+
N.success("密码修改成功"), d.value = "hidden", n();
|
|
573
573
|
}
|
|
574
574
|
function m() {
|
|
575
575
|
d.value = "update";
|
|
576
576
|
}
|
|
577
577
|
return Z(() => {
|
|
578
|
-
o.value && !r.value &&
|
|
578
|
+
o.value && !r.value && n();
|
|
579
579
|
}), (p, c) => {
|
|
580
580
|
var f, v, b, U;
|
|
581
581
|
return g(), V(M, null, [!((f = e(r)) != null && f.email) && !((v = e(r)) != null && v.phone) ? (g(), k(e(D), {
|
|
582
582
|
key: 0,
|
|
583
583
|
title: "去绑定邮箱"
|
|
584
584
|
}, {
|
|
585
|
-
action:
|
|
585
|
+
action: a(() => [i(e(P), {
|
|
586
586
|
size: t.size,
|
|
587
587
|
type: "primary",
|
|
588
588
|
onClick: c[0] || (c[0] = ($) => l("update"))
|
|
589
589
|
}, {
|
|
590
|
-
default:
|
|
590
|
+
default: a(() => [...c[2] || (c[2] = [_(" 去绑定邮箱 ", -1)])]),
|
|
591
591
|
_: 1
|
|
592
592
|
}, 8, ["size"])]),
|
|
593
|
-
default:
|
|
593
|
+
default: a(() => [c[3] || (c[3] = _(" 请先去绑定邮箱或者手机号码,才能设置密码 ", -1))]),
|
|
594
594
|
_: 1
|
|
595
595
|
})) : S("", !0), (b = e(r)) != null && b.email && d.value === "hidden" ? (g(), k(e(D), {
|
|
596
596
|
key: 1,
|
|
597
597
|
title: "更改密码"
|
|
598
598
|
}, {
|
|
599
|
-
action:
|
|
599
|
+
action: a(() => [i(e(P), {
|
|
600
600
|
size: t.size,
|
|
601
601
|
type: "primary",
|
|
602
602
|
onClick: c[1] || (c[1] = ($) => l("verify"))
|
|
603
603
|
}, {
|
|
604
|
-
default:
|
|
604
|
+
default: a(() => [...c[4] || (c[4] = [_("更改密码", -1)])]),
|
|
605
605
|
_: 1
|
|
606
606
|
}, 8, ["size"])]),
|
|
607
|
-
default:
|
|
607
|
+
default: a(() => [c[5] || (c[5] = _(" 为了账户安全修改密码前会先验证身份 ", -1))]),
|
|
608
608
|
_: 1
|
|
609
|
-
})) : S("", !0), d.value === "update" ? (g(), k(
|
|
609
|
+
})) : S("", !0), d.value === "update" ? (g(), k(ot, {
|
|
610
610
|
key: 2,
|
|
611
611
|
size: t.size,
|
|
612
612
|
loading: e(u),
|
|
613
613
|
onSubmit: y
|
|
614
|
-
}, null, 8, ["size", "loading"])) : S("", !0), d.value === "verify" ? (g(), k(
|
|
614
|
+
}, null, 8, ["size", "loading"])) : S("", !0), d.value === "verify" ? (g(), k(ne, {
|
|
615
615
|
key: 3,
|
|
616
616
|
size: t.size,
|
|
617
617
|
email: (U = e(r)) == null ? void 0 : U.email,
|
|
@@ -619,13 +619,13 @@ const et = /* @__PURE__ */ I({
|
|
|
619
619
|
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
|
-
}),
|
|
622
|
+
}), ut = {
|
|
623
623
|
class: "content"
|
|
624
|
-
}, ut = {
|
|
625
|
-
class: "sendVerifyCodeItem"
|
|
626
624
|
}, dt = {
|
|
625
|
+
class: "sendVerifyCodeItem"
|
|
626
|
+
}, ct = {
|
|
627
627
|
class: "handle"
|
|
628
|
-
},
|
|
628
|
+
}, mt = /* @__PURE__ */ A({
|
|
629
629
|
__name: "AuthkitEmailUpdate",
|
|
630
630
|
props: {
|
|
631
631
|
size: {
|
|
@@ -642,7 +642,7 @@ const et = /* @__PURE__ */ I({
|
|
|
642
642
|
setup(s, {
|
|
643
643
|
emit: r
|
|
644
644
|
}) {
|
|
645
|
-
const u = r,
|
|
645
|
+
const u = r, n = s, o = w(), d = w(!1), t = w(), l = w({
|
|
646
646
|
email: void 0,
|
|
647
647
|
userToken: void 0,
|
|
648
648
|
emailVerifyId: void 0,
|
|
@@ -668,14 +668,14 @@ const et = /* @__PURE__ */ I({
|
|
|
668
668
|
p || u("submit", l.value);
|
|
669
669
|
});
|
|
670
670
|
}
|
|
671
|
-
return (p, c) => (g(), V("div",
|
|
671
|
+
return (p, c) => (g(), V("div", ut, [i(e(H), {
|
|
672
672
|
ref_key: "formRef",
|
|
673
673
|
ref: t,
|
|
674
674
|
model: l.value,
|
|
675
|
-
size:
|
|
675
|
+
size: n.size,
|
|
676
676
|
"auto-label-width": ""
|
|
677
677
|
}, {
|
|
678
|
-
default:
|
|
678
|
+
default: a(() => [i(e(I), {
|
|
679
679
|
field: "email",
|
|
680
680
|
label: "邮箱",
|
|
681
681
|
"hide-label": "",
|
|
@@ -687,7 +687,7 @@ const et = /* @__PURE__ */ I({
|
|
|
687
687
|
message: "请输入有效的邮箱"
|
|
688
688
|
}]
|
|
689
689
|
}, {
|
|
690
|
-
default:
|
|
690
|
+
default: a(() => [i(e(q), {
|
|
691
691
|
modelValue: l.value.email,
|
|
692
692
|
"onUpdate:modelValue": c[0] || (c[0] = (f) => l.value.email = f),
|
|
693
693
|
placeholder: "请输入邮箱",
|
|
@@ -695,7 +695,7 @@ const et = /* @__PURE__ */ I({
|
|
|
695
695
|
type: "email"
|
|
696
696
|
}, null, 8, ["modelValue"])]),
|
|
697
697
|
_: 1
|
|
698
|
-
}), i(e(
|
|
698
|
+
}), i(e(I), {
|
|
699
699
|
field: "userToken",
|
|
700
700
|
label: "验证码",
|
|
701
701
|
"hide-label": "",
|
|
@@ -704,15 +704,15 @@ const et = /* @__PURE__ */ I({
|
|
|
704
704
|
message: "请输入验证码"
|
|
705
705
|
}]
|
|
706
706
|
}, {
|
|
707
|
-
default:
|
|
707
|
+
default: a(() => [z("div", dt, [i(e(q), {
|
|
708
708
|
modelValue: l.value.userToken,
|
|
709
709
|
"onUpdate:modelValue": c[1] || (c[1] = (f) => l.value.userToken = f),
|
|
710
710
|
placeholder: "请输入验证码",
|
|
711
711
|
autocomplete: "one-time-code"
|
|
712
|
-
}, null, 8, ["modelValue"]), i(
|
|
712
|
+
}, null, 8, ["modelValue"]), i(ae, {
|
|
713
713
|
ref_key: "SendVerifyCodeRef",
|
|
714
714
|
ref: o,
|
|
715
|
-
size:
|
|
715
|
+
size: n.size,
|
|
716
716
|
loading: d.value,
|
|
717
717
|
style: {
|
|
718
718
|
"margin-left": "10px"
|
|
@@ -720,7 +720,7 @@ const et = /* @__PURE__ */ I({
|
|
|
720
720
|
onSend: y
|
|
721
721
|
}, null, 8, ["size", "loading"])])]),
|
|
722
722
|
_: 1
|
|
723
|
-
}), i(e(
|
|
723
|
+
}), i(e(I), {
|
|
724
724
|
field: "password",
|
|
725
725
|
label: "密码",
|
|
726
726
|
"hide-label": "",
|
|
@@ -732,7 +732,7 @@ const et = /* @__PURE__ */ I({
|
|
|
732
732
|
message: "密码不能少于10字符"
|
|
733
733
|
}]
|
|
734
734
|
}, {
|
|
735
|
-
default:
|
|
735
|
+
default: a(() => [i(e(q), {
|
|
736
736
|
modelValue: l.value.password,
|
|
737
737
|
"onUpdate:modelValue": c[2] || (c[2] = (f) => l.value.password = f),
|
|
738
738
|
placeholder: "请输入密码",
|
|
@@ -740,7 +740,7 @@ const et = /* @__PURE__ */ I({
|
|
|
740
740
|
autocomplete: "new-password"
|
|
741
741
|
}, null, 8, ["modelValue"])]),
|
|
742
742
|
_: 1
|
|
743
|
-
}), i(e(
|
|
743
|
+
}), i(e(I), {
|
|
744
744
|
field: "confirmPassword",
|
|
745
745
|
label: "确认密码",
|
|
746
746
|
"hide-label": "",
|
|
@@ -756,7 +756,7 @@ const et = /* @__PURE__ */ I({
|
|
|
756
756
|
}
|
|
757
757
|
}]
|
|
758
758
|
}, {
|
|
759
|
-
default:
|
|
759
|
+
default: a(() => [i(e(q), {
|
|
760
760
|
modelValue: l.value.confirmPassword,
|
|
761
761
|
"onUpdate:modelValue": c[3] || (c[3] = (f) => l.value.confirmPassword = f),
|
|
762
762
|
placeholder: "请输入确认密码密码",
|
|
@@ -764,7 +764,7 @@ const et = /* @__PURE__ */ I({
|
|
|
764
764
|
autocomplete: "new-password"
|
|
765
765
|
}, null, 8, ["modelValue"])]),
|
|
766
766
|
_: 1
|
|
767
|
-
}, 8, ["rules"]), i(e(
|
|
767
|
+
}, 8, ["rules"]), i(e(I), {
|
|
768
768
|
field: "referrerId",
|
|
769
769
|
label: "邀请人",
|
|
770
770
|
"hide-label": "",
|
|
@@ -773,27 +773,27 @@ const et = /* @__PURE__ */ I({
|
|
|
773
773
|
message: "请输入邀请人ID"
|
|
774
774
|
}]
|
|
775
775
|
}, {
|
|
776
|
-
default:
|
|
776
|
+
default: a(() => [i(e(q), {
|
|
777
777
|
modelValue: l.value.referrerId,
|
|
778
778
|
"onUpdate:modelValue": c[4] || (c[4] = (f) => l.value.referrerId = f),
|
|
779
779
|
placeholder: "邀请人ID(可选)",
|
|
780
780
|
autocomplete: "off"
|
|
781
781
|
}, null, 8, ["modelValue"])]),
|
|
782
782
|
_: 1
|
|
783
|
-
}), z("div",
|
|
783
|
+
}), z("div", ct, [i(e(P), {
|
|
784
784
|
type: "primary",
|
|
785
|
-
loading:
|
|
785
|
+
loading: n.loading,
|
|
786
786
|
long: "",
|
|
787
|
-
size:
|
|
787
|
+
size: n.size,
|
|
788
788
|
onClick: m
|
|
789
789
|
}, {
|
|
790
|
-
default:
|
|
790
|
+
default: a(() => [...c[5] || (c[5] = [_(" 提交 ", -1)])]),
|
|
791
791
|
_: 1
|
|
792
792
|
}, 8, ["loading", "size"])])]),
|
|
793
793
|
_: 1
|
|
794
794
|
}, 8, ["model", "size"])]));
|
|
795
795
|
}
|
|
796
|
-
}), pe = /* @__PURE__ */ C(
|
|
796
|
+
}), pe = /* @__PURE__ */ C(mt, [["__scopeId", "data-v-5b701953"]]), ft = /* @__PURE__ */ A({
|
|
797
797
|
__name: "AuthkitEmailBinding",
|
|
798
798
|
props: {
|
|
799
799
|
size: {
|
|
@@ -805,7 +805,7 @@ const et = /* @__PURE__ */ I({
|
|
|
805
805
|
const {
|
|
806
806
|
userProfile: r,
|
|
807
807
|
loading: u,
|
|
808
|
-
fetchUserProfile:
|
|
808
|
+
fetchUserProfile: n
|
|
809
809
|
} = J(), o = w("hidden"), d = s;
|
|
810
810
|
function t(m) {
|
|
811
811
|
o.value = m;
|
|
@@ -817,8 +817,8 @@ const et = /* @__PURE__ */ I({
|
|
|
817
817
|
userToken: m.userToken,
|
|
818
818
|
emailVerifyId: m.emailVerifyId
|
|
819
819
|
};
|
|
820
|
-
|
|
821
|
-
u.value = !1, N.success("绑定成功"), o.value = "hidden",
|
|
820
|
+
Le(p).then(() => {
|
|
821
|
+
u.value = !1, N.success("绑定成功"), o.value = "hidden", n();
|
|
822
822
|
}).catch(() => {
|
|
823
823
|
u.value = !1;
|
|
824
824
|
});
|
|
@@ -827,36 +827,36 @@ const et = /* @__PURE__ */ I({
|
|
|
827
827
|
o.value = "update";
|
|
828
828
|
}
|
|
829
829
|
return Z(() => {
|
|
830
|
-
r.value ||
|
|
830
|
+
r.value || n();
|
|
831
831
|
}), (m, p) => {
|
|
832
832
|
var c, f, v;
|
|
833
833
|
return g(), V(M, null, [!((c = e(r)) != null && c.email) && o.value === "hidden" ? (g(), k(e(D), {
|
|
834
834
|
key: 0,
|
|
835
835
|
title: "绑定邮箱"
|
|
836
836
|
}, {
|
|
837
|
-
action:
|
|
837
|
+
action: a(() => [i(e(P), {
|
|
838
838
|
size: d.size,
|
|
839
839
|
type: "primary",
|
|
840
840
|
onClick: p[0] || (p[0] = (b) => t("update"))
|
|
841
841
|
}, {
|
|
842
|
-
default:
|
|
842
|
+
default: a(() => [...p[2] || (p[2] = [_(" 绑定邮箱 ", -1)])]),
|
|
843
843
|
_: 1
|
|
844
844
|
}, 8, ["size"])]),
|
|
845
|
-
default:
|
|
845
|
+
default: a(() => [p[3] || (p[3] = _(" 您还未绑定邮箱,请点击绑定邮箱 ", -1))]),
|
|
846
846
|
_: 1
|
|
847
847
|
})) : S("", !0), (f = e(r)) != null && f.email && o.value === "hidden" ? (g(), k(e(D), {
|
|
848
848
|
key: 1,
|
|
849
849
|
title: "更改邮箱"
|
|
850
850
|
}, {
|
|
851
|
-
action:
|
|
851
|
+
action: a(() => [i(e(P), {
|
|
852
852
|
size: d.size,
|
|
853
853
|
type: "primary",
|
|
854
854
|
onClick: p[1] || (p[1] = (b) => t("verify"))
|
|
855
855
|
}, {
|
|
856
|
-
default:
|
|
856
|
+
default: a(() => [...p[4] || (p[4] = [_(" 更改邮箱 ", -1)])]),
|
|
857
857
|
_: 1
|
|
858
858
|
}, 8, ["size"])]),
|
|
859
|
-
default:
|
|
859
|
+
default: a(() => {
|
|
860
860
|
var b;
|
|
861
861
|
return [_(R(`您绑定的邮箱为${e(fe)((b = e(r)) == null ? void 0 : b.email)}`) + " ", 1)];
|
|
862
862
|
}),
|
|
@@ -866,7 +866,7 @@ const et = /* @__PURE__ */ I({
|
|
|
866
866
|
loading: e(u),
|
|
867
867
|
size: d.size,
|
|
868
868
|
onSubmit: l
|
|
869
|
-
}, null, 8, ["loading", "size"])) : S("", !0), o.value === "verify" ? (g(), k(
|
|
869
|
+
}, null, 8, ["loading", "size"])) : S("", !0), o.value === "verify" ? (g(), k(ne, {
|
|
870
870
|
key: 3,
|
|
871
871
|
size: d.size,
|
|
872
872
|
email: (v = e(r)) == null ? void 0 : v.email,
|
|
@@ -874,29 +874,29 @@ const et = /* @__PURE__ */ I({
|
|
|
874
874
|
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
875
875
|
};
|
|
876
876
|
}
|
|
877
|
-
}),
|
|
877
|
+
}), pt = /* @__PURE__ */ C(ft, [["__scopeId", "data-v-b2663ea1"]]);
|
|
878
878
|
function ve(s) {
|
|
879
|
-
return
|
|
879
|
+
return G({
|
|
880
880
|
url: `${E.authPrefixUrl}/restfulApi/oauth/github/login`,
|
|
881
881
|
method: "get",
|
|
882
882
|
params: s
|
|
883
883
|
});
|
|
884
884
|
}
|
|
885
|
-
function
|
|
886
|
-
return
|
|
885
|
+
function vt(s) {
|
|
886
|
+
return G({
|
|
887
887
|
url: `${E.authPrefixUrl}/restfulApi/oauth/google/login`,
|
|
888
888
|
method: "get",
|
|
889
889
|
params: s
|
|
890
890
|
});
|
|
891
891
|
}
|
|
892
|
-
function
|
|
893
|
-
return
|
|
892
|
+
function gt(s) {
|
|
893
|
+
return G({
|
|
894
894
|
url: `${E.authPrefixUrl}/restfulApi/oauth/microsoft/login`,
|
|
895
895
|
method: "get",
|
|
896
896
|
params: s
|
|
897
897
|
});
|
|
898
898
|
}
|
|
899
|
-
const
|
|
899
|
+
const yt = /* @__PURE__ */ A({
|
|
900
900
|
__name: "AuthkitGithubBinding",
|
|
901
901
|
props: {
|
|
902
902
|
size: {
|
|
@@ -908,11 +908,11 @@ const gt = /* @__PURE__ */ I({
|
|
|
908
908
|
const {
|
|
909
909
|
userProfile: r,
|
|
910
910
|
fetchUserProfile: u
|
|
911
|
-
} = J(),
|
|
911
|
+
} = J(), n = w("hidden"), o = w(!1);
|
|
912
912
|
let d;
|
|
913
913
|
const t = s;
|
|
914
914
|
function l(f) {
|
|
915
|
-
|
|
915
|
+
n.value = f;
|
|
916
916
|
}
|
|
917
917
|
function y() {
|
|
918
918
|
const f = E.appId;
|
|
@@ -932,12 +932,12 @@ const gt = /* @__PURE__ */ I({
|
|
|
932
932
|
});
|
|
933
933
|
}
|
|
934
934
|
function m() {
|
|
935
|
-
|
|
936
|
-
N.success("解绑成功"),
|
|
935
|
+
Be().then(() => {
|
|
936
|
+
N.success("解绑成功"), n.value = "hidden", u();
|
|
937
937
|
});
|
|
938
938
|
}
|
|
939
939
|
function p() {
|
|
940
|
-
|
|
940
|
+
n.value === "bind" && (n.value = "hidden", y()), n.value === "unbind" && m();
|
|
941
941
|
}
|
|
942
942
|
function c() {
|
|
943
943
|
o.value && u();
|
|
@@ -948,33 +948,33 @@ const gt = /* @__PURE__ */ I({
|
|
|
948
948
|
d && clearInterval(d);
|
|
949
949
|
}), (f, v) => {
|
|
950
950
|
var b, U, $;
|
|
951
|
-
return g(), V(M, null, [!((b = e(r)) != null && b.github) &&
|
|
951
|
+
return g(), V(M, null, [!((b = e(r)) != null && b.github) && n.value === "hidden" ? (g(), k(e(D), {
|
|
952
952
|
key: 0,
|
|
953
953
|
title: "绑定GitHUb"
|
|
954
954
|
}, {
|
|
955
|
-
action:
|
|
955
|
+
action: a(() => [i(e(P), {
|
|
956
956
|
size: t.size,
|
|
957
957
|
type: "primary",
|
|
958
958
|
onClick: v[0] || (v[0] = (T) => l("bind"))
|
|
959
959
|
}, {
|
|
960
|
-
default:
|
|
960
|
+
default: a(() => [...v[2] || (v[2] = [_(" 绑定GitHUb ", -1)])]),
|
|
961
961
|
_: 1
|
|
962
962
|
}, 8, ["size"])]),
|
|
963
|
-
default:
|
|
963
|
+
default: a(() => [v[3] || (v[3] = _(" 请尚未绑定GitHub,请点击绑定GitHUb ", -1))]),
|
|
964
964
|
_: 1
|
|
965
|
-
})) : S("", !0), (U = e(r)) != null && U.github &&
|
|
965
|
+
})) : S("", !0), (U = e(r)) != null && U.github && n.value === "hidden" ? (g(), k(e(D), {
|
|
966
966
|
key: 1,
|
|
967
967
|
title: "解绑GitHub"
|
|
968
968
|
}, {
|
|
969
|
-
action:
|
|
969
|
+
action: a(() => [i(e(P), {
|
|
970
970
|
size: t.size,
|
|
971
971
|
type: "primary",
|
|
972
972
|
onClick: v[1] || (v[1] = (T) => l("unbind"))
|
|
973
973
|
}, {
|
|
974
|
-
default:
|
|
974
|
+
default: a(() => [...v[4] || (v[4] = [_(" 解绑GitHUb ", -1)])]),
|
|
975
975
|
_: 1
|
|
976
976
|
}, 8, ["size"])]),
|
|
977
|
-
default:
|
|
977
|
+
default: a(() => {
|
|
978
978
|
var T, B, O;
|
|
979
979
|
return [z("span", null, R(`您绑定的账号为 ${(B = (T = e(r)) == null ? void 0 : T.github) == null ? void 0 : B.login}`), 1), i(e(ce), {
|
|
980
980
|
"image-url": (O = e(r)) == null ? void 0 : O.avatar,
|
|
@@ -982,7 +982,7 @@ const gt = /* @__PURE__ */ I({
|
|
|
982
982
|
}, null, 8, ["image-url"])];
|
|
983
983
|
}),
|
|
984
984
|
_: 1
|
|
985
|
-
})) : S("", !0),
|
|
985
|
+
})) : S("", !0), n.value === "bind" || n.value === "unbind" ? (g(), k(ne, {
|
|
986
986
|
key: 2,
|
|
987
987
|
size: t.size,
|
|
988
988
|
email: ($ = e(r)) == null ? void 0 : $.email,
|
|
@@ -990,15 +990,15 @@ const gt = /* @__PURE__ */ I({
|
|
|
990
990
|
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
991
991
|
};
|
|
992
992
|
}
|
|
993
|
-
}),
|
|
993
|
+
}), ht = {
|
|
994
994
|
class: "dependency-list"
|
|
995
|
-
}, ht = {
|
|
996
|
-
class: "label"
|
|
997
995
|
}, wt = {
|
|
998
|
-
class: "
|
|
996
|
+
class: "label"
|
|
999
997
|
}, _t = {
|
|
998
|
+
class: "count"
|
|
999
|
+
}, bt = {
|
|
1000
1000
|
class: "action-bar"
|
|
1001
|
-
},
|
|
1001
|
+
}, kt = /* @__PURE__ */ A({
|
|
1002
1002
|
__name: "AuthkitAccountDelete",
|
|
1003
1003
|
props: {
|
|
1004
1004
|
size: {
|
|
@@ -1010,7 +1010,7 @@ const gt = /* @__PURE__ */ I({
|
|
|
1010
1010
|
setup(s, {
|
|
1011
1011
|
emit: r
|
|
1012
1012
|
}) {
|
|
1013
|
-
const u = s,
|
|
1013
|
+
const u = s, n = r, {
|
|
1014
1014
|
userProfile: o,
|
|
1015
1015
|
clearUserProfile: d
|
|
1016
1016
|
} = J(), {
|
|
@@ -1035,7 +1035,7 @@ const gt = /* @__PURE__ */ I({
|
|
|
1035
1035
|
var L;
|
|
1036
1036
|
y.value = !0;
|
|
1037
1037
|
try {
|
|
1038
|
-
const h = await
|
|
1038
|
+
const h = await Oe(), {
|
|
1039
1039
|
hasDependencies: x,
|
|
1040
1040
|
dependencies: K
|
|
1041
1041
|
} = h.data;
|
|
@@ -1065,29 +1065,29 @@ const gt = /* @__PURE__ */ I({
|
|
|
1065
1065
|
const h = await X({
|
|
1066
1066
|
email: o.value.email
|
|
1067
1067
|
});
|
|
1068
|
-
c.value = h.data.emailVerifyId, N.success("验证码已发送"), l.value = "confirm",
|
|
1068
|
+
c.value = h.data.emailVerifyId, N.success("验证码已发送"), l.value = "confirm", _e();
|
|
1069
1069
|
} catch (h) {
|
|
1070
1070
|
console.error("发送验证码失败:", h);
|
|
1071
1071
|
} finally {
|
|
1072
1072
|
p.value = !1;
|
|
1073
1073
|
}
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1075
|
+
function _e() {
|
|
1076
1076
|
f.value = 60, v && clearInterval(v), v = setInterval(() => {
|
|
1077
1077
|
f.value--, f.value <= 0 && v && (clearInterval(v), v = null);
|
|
1078
1078
|
}, 1e3);
|
|
1079
1079
|
}
|
|
1080
|
-
async function
|
|
1080
|
+
async function be() {
|
|
1081
1081
|
var h;
|
|
1082
1082
|
if (!await ((h = U.value) == null ? void 0 : h.validate())) {
|
|
1083
1083
|
T.value = !0;
|
|
1084
1084
|
try {
|
|
1085
|
-
await
|
|
1085
|
+
await Ee({
|
|
1086
1086
|
password: $.value.password,
|
|
1087
1087
|
userToken: $.value.userToken,
|
|
1088
1088
|
emailVerifyId: c.value,
|
|
1089
1089
|
confirmText: $.value.confirmText
|
|
1090
|
-
}), l.value = "success", d(), t(),
|
|
1090
|
+
}), l.value = "success", d(), t(), n("deleted");
|
|
1091
1091
|
} catch (x) {
|
|
1092
1092
|
console.error("注销失败:", x);
|
|
1093
1093
|
} finally {
|
|
@@ -1095,7 +1095,7 @@ const gt = /* @__PURE__ */ I({
|
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function ke() {
|
|
1099
1099
|
window.location.href = "/";
|
|
1100
1100
|
}
|
|
1101
1101
|
return (L, h) => l.value === "check" ? (g(), k(e(D), {
|
|
@@ -1103,17 +1103,17 @@ const gt = /* @__PURE__ */ I({
|
|
|
1103
1103
|
type: "warning",
|
|
1104
1104
|
title: "注销账号"
|
|
1105
1105
|
}, {
|
|
1106
|
-
action:
|
|
1106
|
+
action: a(() => [i(e(P), {
|
|
1107
1107
|
size: u.size,
|
|
1108
1108
|
type: "primary",
|
|
1109
1109
|
status: "danger",
|
|
1110
1110
|
loading: y.value,
|
|
1111
1111
|
onClick: O
|
|
1112
1112
|
}, {
|
|
1113
|
-
default:
|
|
1113
|
+
default: a(() => [_(R(y.value ? "检查中..." : "开始注销"), 1)]),
|
|
1114
1114
|
_: 1
|
|
1115
1115
|
}, 8, ["size", "loading"])]),
|
|
1116
|
-
default:
|
|
1116
|
+
default: a(() => [h[6] || (h[6] = _(" 注销账号后,您的所有数据将被永久删除,无法恢复。请确认您已备份重要数据。 ", -1))]),
|
|
1117
1117
|
_: 1
|
|
1118
1118
|
})) : l.value === "dependencies" ? (g(), V(M, {
|
|
1119
1119
|
key: 1
|
|
@@ -1121,28 +1121,28 @@ const gt = /* @__PURE__ */ I({
|
|
|
1121
1121
|
type: "error",
|
|
1122
1122
|
title: "无法注销账号"
|
|
1123
1123
|
}, {
|
|
1124
|
-
default:
|
|
1124
|
+
default: a(() => [...h[7] || (h[7] = [_(" 您的账号下还有以下资源,请先处理后再注销: ", -1)])]),
|
|
1125
1125
|
_: 1
|
|
1126
|
-
}), z("div",
|
|
1126
|
+
}), z("div", ht, [(g(!0), V(M, null, Ae(m.value, (x) => (g(), V("div", {
|
|
1127
1127
|
key: x.type,
|
|
1128
1128
|
class: "dependency-item"
|
|
1129
|
-
}, [z("span",
|
|
1129
|
+
}, [z("span", wt, R(x.label), 1), z("span", _t, R(x.count) + " 个", 1)]))), 128))]), z("div", bt, [i(e(P), {
|
|
1130
1130
|
size: u.size,
|
|
1131
1131
|
onClick: h[0] || (h[0] = (x) => l.value = "check")
|
|
1132
1132
|
}, {
|
|
1133
|
-
default:
|
|
1133
|
+
default: a(() => [...h[8] || (h[8] = [_("返回", -1)])]),
|
|
1134
1134
|
_: 1
|
|
1135
1135
|
}, 8, ["size"])])], 64)) : l.value === "sendCode" ? (g(), k(e(D), {
|
|
1136
1136
|
key: 2,
|
|
1137
1137
|
type: "normal",
|
|
1138
1138
|
title: "身份验证"
|
|
1139
1139
|
}, {
|
|
1140
|
-
action:
|
|
1141
|
-
default:
|
|
1140
|
+
action: a(() => [i(e(ee), null, {
|
|
1141
|
+
default: a(() => [i(e(P), {
|
|
1142
1142
|
size: u.size,
|
|
1143
1143
|
onClick: h[1] || (h[1] = (x) => l.value = "check")
|
|
1144
1144
|
}, {
|
|
1145
|
-
default:
|
|
1145
|
+
default: a(() => [...h[9] || (h[9] = [_("取消", -1)])]),
|
|
1146
1146
|
_: 1
|
|
1147
1147
|
}, 8, ["size"]), i(e(P), {
|
|
1148
1148
|
size: u.size,
|
|
@@ -1150,12 +1150,12 @@ const gt = /* @__PURE__ */ I({
|
|
|
1150
1150
|
loading: p.value,
|
|
1151
1151
|
onClick: W
|
|
1152
1152
|
}, {
|
|
1153
|
-
default:
|
|
1153
|
+
default: a(() => [_(R(p.value ? "发送中..." : "发送验证码"), 1)]),
|
|
1154
1154
|
_: 1
|
|
1155
1155
|
}, 8, ["size", "loading"])]),
|
|
1156
1156
|
_: 1
|
|
1157
1157
|
})]),
|
|
1158
|
-
default:
|
|
1158
|
+
default: a(() => [_(" 为确保账号安全,我们将向您的邮箱 " + R(b.value) + " 发送验证码 ", 1)]),
|
|
1159
1159
|
_: 1
|
|
1160
1160
|
})) : l.value === "confirm" ? (g(), V(M, {
|
|
1161
1161
|
key: 3
|
|
@@ -1163,9 +1163,9 @@ const gt = /* @__PURE__ */ I({
|
|
|
1163
1163
|
type: "warning",
|
|
1164
1164
|
title: "确认注销"
|
|
1165
1165
|
}, {
|
|
1166
|
-
default:
|
|
1166
|
+
default: a(() => [_(" 验证码已发送至 " + R(b.value) + ",此操作不可逆,请谨慎操作 ", 1)]),
|
|
1167
1167
|
_: 1
|
|
1168
|
-
}), i(e(
|
|
1168
|
+
}), i(e(H), {
|
|
1169
1169
|
ref_key: "formRef",
|
|
1170
1170
|
ref: U,
|
|
1171
1171
|
model: $.value,
|
|
@@ -1173,7 +1173,7 @@ const gt = /* @__PURE__ */ I({
|
|
|
1173
1173
|
class: "confirm-form",
|
|
1174
1174
|
layout: "vertical"
|
|
1175
1175
|
}, {
|
|
1176
|
-
default:
|
|
1176
|
+
default: a(() => [i(e(I), {
|
|
1177
1177
|
field: "userToken",
|
|
1178
1178
|
label: "邮箱验证码",
|
|
1179
1179
|
rules: [{
|
|
@@ -1181,8 +1181,8 @@ const gt = /* @__PURE__ */ I({
|
|
|
1181
1181
|
message: "请输入验证码"
|
|
1182
1182
|
}]
|
|
1183
1183
|
}, {
|
|
1184
|
-
default:
|
|
1185
|
-
default:
|
|
1184
|
+
default: a(() => [i(e(ee), null, {
|
|
1185
|
+
default: a(() => [i(e(q), {
|
|
1186
1186
|
modelValue: $.value.userToken,
|
|
1187
1187
|
"onUpdate:modelValue": h[2] || (h[2] = (x) => $.value.userToken = x),
|
|
1188
1188
|
placeholder: "请输入6位验证码",
|
|
@@ -1196,13 +1196,13 @@ const gt = /* @__PURE__ */ I({
|
|
|
1196
1196
|
loading: p.value,
|
|
1197
1197
|
onClick: W
|
|
1198
1198
|
}, {
|
|
1199
|
-
default:
|
|
1199
|
+
default: a(() => [_(R(f.value > 0 ? `${f.value}s 后重发` : "重新发送"), 1)]),
|
|
1200
1200
|
_: 1
|
|
1201
1201
|
}, 8, ["disabled", "loading"])]),
|
|
1202
1202
|
_: 1
|
|
1203
1203
|
})]),
|
|
1204
1204
|
_: 1
|
|
1205
|
-
}), i(e(
|
|
1205
|
+
}), i(e(I), {
|
|
1206
1206
|
field: "password",
|
|
1207
1207
|
label: "登录密码",
|
|
1208
1208
|
rules: [{
|
|
@@ -1210,14 +1210,14 @@ const gt = /* @__PURE__ */ I({
|
|
|
1210
1210
|
message: "请输入密码"
|
|
1211
1211
|
}]
|
|
1212
1212
|
}, {
|
|
1213
|
-
default:
|
|
1213
|
+
default: a(() => [i(e(Ue), {
|
|
1214
1214
|
modelValue: $.value.password,
|
|
1215
1215
|
"onUpdate:modelValue": h[3] || (h[3] = (x) => $.value.password = x),
|
|
1216
1216
|
placeholder: "请输入您的登录密码",
|
|
1217
1217
|
"allow-clear": ""
|
|
1218
1218
|
}, null, 8, ["modelValue"])]),
|
|
1219
1219
|
_: 1
|
|
1220
|
-
}), i(e(
|
|
1220
|
+
}), i(e(I), {
|
|
1221
1221
|
field: "confirmText",
|
|
1222
1222
|
label: "请输入「注销」以确认",
|
|
1223
1223
|
rules: [{
|
|
@@ -1227,27 +1227,27 @@ const gt = /* @__PURE__ */ I({
|
|
|
1227
1227
|
validator: B
|
|
1228
1228
|
}]
|
|
1229
1229
|
}, {
|
|
1230
|
-
default:
|
|
1230
|
+
default: a(() => [i(e(q), {
|
|
1231
1231
|
modelValue: $.value.confirmText,
|
|
1232
1232
|
"onUpdate:modelValue": h[4] || (h[4] = (x) => $.value.confirmText = x),
|
|
1233
1233
|
placeholder: "注销",
|
|
1234
1234
|
"allow-clear": ""
|
|
1235
1235
|
}, null, 8, ["modelValue"])]),
|
|
1236
1236
|
_: 1
|
|
1237
|
-
}, 8, ["rules"]), i(e(
|
|
1238
|
-
default:
|
|
1239
|
-
default:
|
|
1237
|
+
}, 8, ["rules"]), i(e(I), null, {
|
|
1238
|
+
default: a(() => [i(e(ee), null, {
|
|
1239
|
+
default: a(() => [i(e(P), {
|
|
1240
1240
|
onClick: h[5] || (h[5] = (x) => l.value = "check")
|
|
1241
1241
|
}, {
|
|
1242
|
-
default:
|
|
1242
|
+
default: a(() => [...h[10] || (h[10] = [_("取消", -1)])]),
|
|
1243
1243
|
_: 1
|
|
1244
1244
|
}), i(e(P), {
|
|
1245
1245
|
type: "primary",
|
|
1246
1246
|
status: "danger",
|
|
1247
1247
|
loading: T.value,
|
|
1248
|
-
onClick:
|
|
1248
|
+
onClick: be
|
|
1249
1249
|
}, {
|
|
1250
|
-
default:
|
|
1250
|
+
default: a(() => [_(R(T.value ? "注销中..." : "确认注销"), 1)]),
|
|
1251
1251
|
_: 1
|
|
1252
1252
|
}, 8, ["loading"])]),
|
|
1253
1253
|
_: 1
|
|
@@ -1255,41 +1255,41 @@ const gt = /* @__PURE__ */ I({
|
|
|
1255
1255
|
_: 1
|
|
1256
1256
|
})]),
|
|
1257
1257
|
_: 1
|
|
1258
|
-
}, 8, ["model", "size"])], 64)) : l.value === "success" ? (g(), k(e(
|
|
1258
|
+
}, 8, ["model", "size"])], 64)) : l.value === "success" ? (g(), k(e($e), {
|
|
1259
1259
|
key: 4,
|
|
1260
1260
|
status: "success",
|
|
1261
1261
|
title: "账号已注销"
|
|
1262
1262
|
}, {
|
|
1263
|
-
subtitle:
|
|
1264
|
-
extra:
|
|
1263
|
+
subtitle: a(() => [...h[11] || (h[11] = [_(" 您的账号已成功注销,感谢您的使用 ", -1)])]),
|
|
1264
|
+
extra: a(() => [i(e(P), {
|
|
1265
1265
|
type: "primary",
|
|
1266
|
-
onClick:
|
|
1266
|
+
onClick: ke
|
|
1267
1267
|
}, {
|
|
1268
|
-
default:
|
|
1268
|
+
default: a(() => [...h[12] || (h[12] = [_("返回首页", -1)])]),
|
|
1269
1269
|
_: 1
|
|
1270
1270
|
})]),
|
|
1271
1271
|
_: 1
|
|
1272
1272
|
})) : S("", !0);
|
|
1273
1273
|
}
|
|
1274
|
-
}),
|
|
1274
|
+
}), zt = /* @__PURE__ */ C(kt, [["__scopeId", "data-v-15e302c7"]]), St = {
|
|
1275
1275
|
class: "content"
|
|
1276
|
-
},
|
|
1276
|
+
}, It = {
|
|
1277
1277
|
class: "left"
|
|
1278
1278
|
}, At = {
|
|
1279
1279
|
class: "right"
|
|
1280
|
-
},
|
|
1280
|
+
}, Pt = /* @__PURE__ */ A({
|
|
1281
1281
|
__name: "AuthkitAppSetting",
|
|
1282
1282
|
emits: ["confirm", "cancel"],
|
|
1283
1283
|
setup(s, {
|
|
1284
1284
|
expose: r,
|
|
1285
1285
|
emit: u
|
|
1286
1286
|
}) {
|
|
1287
|
-
const
|
|
1287
|
+
const n = u;
|
|
1288
1288
|
function o() {
|
|
1289
|
-
|
|
1289
|
+
n("cancel");
|
|
1290
1290
|
}
|
|
1291
1291
|
function d() {
|
|
1292
|
-
c.value = !1,
|
|
1292
|
+
c.value = !1, n("cancel");
|
|
1293
1293
|
}
|
|
1294
1294
|
const t = w("large"), l = w(["PersonalInformation"]), y = w([{
|
|
1295
1295
|
name: "个人信息",
|
|
@@ -1351,7 +1351,7 @@ const gt = /* @__PURE__ */ I({
|
|
|
1351
1351
|
const {
|
|
1352
1352
|
changeType: p,
|
|
1353
1353
|
show: c
|
|
1354
|
-
} =
|
|
1354
|
+
} = Me(n);
|
|
1355
1355
|
function f(v, b) {
|
|
1356
1356
|
console.log(v), c.value = b, p.value = "编辑";
|
|
1357
1357
|
}
|
|
@@ -1367,25 +1367,25 @@ const gt = /* @__PURE__ */ I({
|
|
|
1367
1367
|
width: "700px",
|
|
1368
1368
|
onCancel: o
|
|
1369
1369
|
}, {
|
|
1370
|
-
title:
|
|
1371
|
-
default:
|
|
1370
|
+
title: a(() => [...b[2] || (b[2] = [_(" 系统设置 ", -1)])]),
|
|
1371
|
+
default: a(() => [z("div", St, [z("div", It, [i(He, {
|
|
1372
1372
|
"selected-keys": l.value,
|
|
1373
1373
|
"onUpdate:selectedKeys": b[0] || (b[0] = (U) => l.value = U),
|
|
1374
1374
|
menus: y.value,
|
|
1375
1375
|
onChange: m
|
|
1376
|
-
}, null, 8, ["selected-keys", "menus"])]), z("div", At, [l.value[0] === "PersonalInformation" ? (g(), k(
|
|
1376
|
+
}, null, 8, ["selected-keys", "menus"])]), z("div", At, [l.value[0] === "PersonalInformation" ? (g(), k(Xe, {
|
|
1377
1377
|
key: 0,
|
|
1378
1378
|
size: t.value
|
|
1379
|
-
}, null, 8, ["size"])) : S("", !0), l.value[0] === "EmailBinding" ? (g(), k(
|
|
1379
|
+
}, null, 8, ["size"])) : S("", !0), l.value[0] === "EmailBinding" ? (g(), k(pt, {
|
|
1380
1380
|
key: 1,
|
|
1381
1381
|
size: t.value
|
|
1382
|
-
}, null, 8, ["size"])) : S("", !0), l.value[0] === "SetPassword" ? (g(), k(
|
|
1382
|
+
}, null, 8, ["size"])) : S("", !0), l.value[0] === "SetPassword" ? (g(), k(rt, {
|
|
1383
1383
|
key: 2,
|
|
1384
1384
|
size: t.value
|
|
1385
|
-
}, null, 8, ["size"])) : S("", !0), l.value[0] === "GithubBinding" ? (g(), k(
|
|
1385
|
+
}, null, 8, ["size"])) : S("", !0), l.value[0] === "GithubBinding" ? (g(), k(yt, {
|
|
1386
1386
|
key: 3,
|
|
1387
1387
|
size: t.value
|
|
1388
|
-
}, null, 8, ["size"])) : S("", !0), l.value[0] === "AccountDelete" ? (g(), k(
|
|
1388
|
+
}, null, 8, ["size"])) : S("", !0), l.value[0] === "AccountDelete" ? (g(), k(zt, {
|
|
1389
1389
|
key: 4,
|
|
1390
1390
|
size: t.value,
|
|
1391
1391
|
onDeleted: d
|
|
@@ -1393,11 +1393,11 @@ const gt = /* @__PURE__ */ I({
|
|
|
1393
1393
|
_: 1
|
|
1394
1394
|
}, 8, ["visible"]));
|
|
1395
1395
|
}
|
|
1396
|
-
}), xi = /* @__PURE__ */ C(
|
|
1396
|
+
}), xi = /* @__PURE__ */ C(Pt, [["__scopeId", "data-v-9f056370"]]);
|
|
1397
1397
|
function ge() {
|
|
1398
1398
|
return E.oauthCallbackUrl ? E.oauthCallbackUrl : `${window.location.origin}/auth/callback`;
|
|
1399
1399
|
}
|
|
1400
|
-
function
|
|
1400
|
+
function Vt() {
|
|
1401
1401
|
const s = window.location.pathname + window.location.search;
|
|
1402
1402
|
s.includes("/auth/callback") || sessionStorage.setItem("auth_redirect", s);
|
|
1403
1403
|
}
|
|
@@ -1407,16 +1407,16 @@ async function Y(s, r) {
|
|
|
1407
1407
|
console.error(`${s} OAuth 失败: appId 未配置`);
|
|
1408
1408
|
return;
|
|
1409
1409
|
}
|
|
1410
|
-
const
|
|
1410
|
+
const n = ge(), o = {
|
|
1411
1411
|
appId: u,
|
|
1412
1412
|
referrerId: r == null ? void 0 : r.referrerId,
|
|
1413
|
-
redirectUri:
|
|
1413
|
+
redirectUri: n
|
|
1414
1414
|
};
|
|
1415
|
-
|
|
1415
|
+
Vt();
|
|
1416
1416
|
const d = {
|
|
1417
1417
|
github: ve,
|
|
1418
|
-
google:
|
|
1419
|
-
microsoft:
|
|
1418
|
+
google: vt,
|
|
1419
|
+
microsoft: gt
|
|
1420
1420
|
};
|
|
1421
1421
|
try {
|
|
1422
1422
|
const {
|
|
@@ -1427,32 +1427,32 @@ async function Y(s, r) {
|
|
|
1427
1427
|
console.error(`${s} OAuth 授权失败:`, t);
|
|
1428
1428
|
}
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1430
|
+
function Ut(s) {
|
|
1431
1431
|
Y("github", {
|
|
1432
1432
|
referrerId: s
|
|
1433
1433
|
});
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function $t(s) {
|
|
1436
1436
|
Y("google", {
|
|
1437
1437
|
referrerId: s
|
|
1438
1438
|
});
|
|
1439
1439
|
}
|
|
1440
|
-
function
|
|
1440
|
+
function Ct(s) {
|
|
1441
1441
|
Y("microsoft", {
|
|
1442
1442
|
referrerId: s
|
|
1443
1443
|
});
|
|
1444
1444
|
}
|
|
1445
|
-
function
|
|
1445
|
+
function ye() {
|
|
1446
1446
|
return {
|
|
1447
|
-
githubAuth:
|
|
1448
|
-
googleAuth:
|
|
1449
|
-
microsoftAuth:
|
|
1450
|
-
|
|
1451
|
-
|
|
1447
|
+
githubAuth: Ut,
|
|
1448
|
+
googleAuth: $t,
|
|
1449
|
+
microsoftAuth: Ct,
|
|
1450
|
+
startOauth: Y,
|
|
1451
|
+
getOauthCallbackUrl: ge
|
|
1452
1452
|
};
|
|
1453
1453
|
}
|
|
1454
|
-
const ie = /* @__PURE__ */
|
|
1455
|
-
__name: "
|
|
1454
|
+
const qi = ye, ie = /* @__PURE__ */ A({
|
|
1455
|
+
__name: "AuthkitOauthItem",
|
|
1456
1456
|
props: {
|
|
1457
1457
|
size: {
|
|
1458
1458
|
type: String,
|
|
@@ -1474,15 +1474,15 @@ const ie = /* @__PURE__ */ I({
|
|
|
1474
1474
|
emit: r
|
|
1475
1475
|
}) {
|
|
1476
1476
|
const u = s;
|
|
1477
|
-
return (
|
|
1477
|
+
return (n, o) => (g(), k(e(P), {
|
|
1478
1478
|
class: "OAuthItem",
|
|
1479
1479
|
type: "primary",
|
|
1480
1480
|
size: u.size
|
|
1481
1481
|
}, {
|
|
1482
|
-
icon:
|
|
1482
|
+
icon: a(() => [i(e(Ge), {
|
|
1483
1483
|
icon: u.icon
|
|
1484
1484
|
}, null, 8, ["icon"])]),
|
|
1485
|
-
default:
|
|
1485
|
+
default: a(() => [z("span", null, R(u.label), 1)]),
|
|
1486
1486
|
_: 1
|
|
1487
1487
|
}, 8, ["size"]));
|
|
1488
1488
|
}
|
|
@@ -1490,8 +1490,8 @@ const ie = /* @__PURE__ */ I({
|
|
|
1490
1490
|
class: "OAuthList"
|
|
1491
1491
|
}, qt = {
|
|
1492
1492
|
class: "OAuthList"
|
|
1493
|
-
}, Tt = /* @__PURE__ */
|
|
1494
|
-
__name: "
|
|
1493
|
+
}, Tt = /* @__PURE__ */ A({
|
|
1494
|
+
__name: "AuthkitOauthList",
|
|
1495
1495
|
props: {
|
|
1496
1496
|
size: {
|
|
1497
1497
|
type: String,
|
|
@@ -1506,22 +1506,22 @@ const ie = /* @__PURE__ */ I({
|
|
|
1506
1506
|
const {
|
|
1507
1507
|
appsData: r
|
|
1508
1508
|
} = se(), u = s, {
|
|
1509
|
-
githubAuth:
|
|
1509
|
+
githubAuth: n,
|
|
1510
1510
|
googleAuth: o,
|
|
1511
1511
|
microsoftAuth: d
|
|
1512
|
-
} =
|
|
1513
|
-
return (l, y) => (g(), V("div", xt, [t.value ? (g(), k(e(
|
|
1512
|
+
} = ye(), t = F(() => !(!r.value.oauth.google.enabled && !r.value.oauth.microsoft.enabled && !r.value.oauth.github.enabled && !r.value.oauth.wechat.enabled));
|
|
1513
|
+
return (l, y) => (g(), V("div", xt, [t.value ? (g(), k(e(Ce), {
|
|
1514
1514
|
key: 0,
|
|
1515
1515
|
orientation: "center"
|
|
1516
1516
|
}, {
|
|
1517
|
-
default:
|
|
1517
|
+
default: a(() => [...y[3] || (y[3] = [_("OAuth登陆", -1)])]),
|
|
1518
1518
|
_: 1
|
|
1519
1519
|
})) : S("", !0), z("div", qt, [e(r).oauth.github.enabled ? (g(), k(ie, {
|
|
1520
1520
|
key: 0,
|
|
1521
1521
|
icon: "mdi:github",
|
|
1522
1522
|
label: "Github",
|
|
1523
1523
|
size: u.size,
|
|
1524
|
-
onClick: y[0] || (y[0] = (m) => e(
|
|
1524
|
+
onClick: y[0] || (y[0] = (m) => e(n)())
|
|
1525
1525
|
}, null, 8, ["size"])) : S("", !0), e(r).oauth.google.enabled ? (g(), k(ie, {
|
|
1526
1526
|
key: 1,
|
|
1527
1527
|
icon: "mdi:google",
|
|
@@ -1536,13 +1536,13 @@ const ie = /* @__PURE__ */ I({
|
|
|
1536
1536
|
onClick: y[2] || (y[2] = (m) => e(d)())
|
|
1537
1537
|
}, null, 8, ["size"])) : S("", !0)])]));
|
|
1538
1538
|
}
|
|
1539
|
-
}), Rt = /* @__PURE__ */ C(Tt, [["__scopeId", "data-v-
|
|
1539
|
+
}), Rt = /* @__PURE__ */ C(Tt, [["__scopeId", "data-v-886fd902"]]), Lt = {
|
|
1540
1540
|
class: "content"
|
|
1541
1541
|
}, Bt = {
|
|
1542
1542
|
class: "sendVerifyCodeItem"
|
|
1543
1543
|
}, Ot = {
|
|
1544
1544
|
class: "handle"
|
|
1545
|
-
}, Et = /* @__PURE__ */
|
|
1545
|
+
}, Et = /* @__PURE__ */ A({
|
|
1546
1546
|
__name: "AuthkitPasswordUpdateAndVerify",
|
|
1547
1547
|
props: {
|
|
1548
1548
|
size: {
|
|
@@ -1559,7 +1559,7 @@ const ie = /* @__PURE__ */ I({
|
|
|
1559
1559
|
setup(s, {
|
|
1560
1560
|
emit: r
|
|
1561
1561
|
}) {
|
|
1562
|
-
const u = r,
|
|
1562
|
+
const u = r, n = s, o = w(), d = w(!1), t = w(), l = w({
|
|
1563
1563
|
email: void 0,
|
|
1564
1564
|
userToken: void 0,
|
|
1565
1565
|
emailVerifyId: void 0,
|
|
@@ -1584,14 +1584,14 @@ const ie = /* @__PURE__ */ I({
|
|
|
1584
1584
|
p || u("submit", l.value);
|
|
1585
1585
|
});
|
|
1586
1586
|
}
|
|
1587
|
-
return (p, c) => (g(), V("div", Lt, [i(e(
|
|
1587
|
+
return (p, c) => (g(), V("div", Lt, [i(e(H), {
|
|
1588
1588
|
ref_key: "formRef",
|
|
1589
1589
|
ref: t,
|
|
1590
1590
|
model: l.value,
|
|
1591
|
-
size:
|
|
1591
|
+
size: n.size,
|
|
1592
1592
|
"auto-label-width": ""
|
|
1593
1593
|
}, {
|
|
1594
|
-
default:
|
|
1594
|
+
default: a(() => [i(e(I), {
|
|
1595
1595
|
field: "email",
|
|
1596
1596
|
label: "邮箱",
|
|
1597
1597
|
"hide-label": "",
|
|
@@ -1603,13 +1603,13 @@ const ie = /* @__PURE__ */ I({
|
|
|
1603
1603
|
message: "请输入有效的邮箱"
|
|
1604
1604
|
}]
|
|
1605
1605
|
}, {
|
|
1606
|
-
default:
|
|
1606
|
+
default: a(() => [i(e(q), {
|
|
1607
1607
|
modelValue: l.value.email,
|
|
1608
1608
|
"onUpdate:modelValue": c[0] || (c[0] = (f) => l.value.email = f),
|
|
1609
1609
|
placeholder: "请输入邮箱"
|
|
1610
1610
|
}, null, 8, ["modelValue"])]),
|
|
1611
1611
|
_: 1
|
|
1612
|
-
}), i(e(
|
|
1612
|
+
}), i(e(I), {
|
|
1613
1613
|
field: "userToken",
|
|
1614
1614
|
label: "验证码",
|
|
1615
1615
|
"hide-label": "",
|
|
@@ -1618,14 +1618,14 @@ const ie = /* @__PURE__ */ I({
|
|
|
1618
1618
|
message: "请输入验证码"
|
|
1619
1619
|
}]
|
|
1620
1620
|
}, {
|
|
1621
|
-
default:
|
|
1621
|
+
default: a(() => [z("div", Bt, [i(e(q), {
|
|
1622
1622
|
modelValue: l.value.userToken,
|
|
1623
1623
|
"onUpdate:modelValue": c[1] || (c[1] = (f) => l.value.userToken = f),
|
|
1624
1624
|
placeholder: "请输入验证码"
|
|
1625
|
-
}, null, 8, ["modelValue"]), i(
|
|
1625
|
+
}, null, 8, ["modelValue"]), i(ae, {
|
|
1626
1626
|
ref_key: "SendVerifyCodeRef",
|
|
1627
1627
|
ref: o,
|
|
1628
|
-
size:
|
|
1628
|
+
size: n.size,
|
|
1629
1629
|
loading: d.value,
|
|
1630
1630
|
style: {
|
|
1631
1631
|
"margin-left": "10px"
|
|
@@ -1633,7 +1633,7 @@ const ie = /* @__PURE__ */ I({
|
|
|
1633
1633
|
onSend: y
|
|
1634
1634
|
}, null, 8, ["size", "loading"])])]),
|
|
1635
1635
|
_: 1
|
|
1636
|
-
}), i(e(
|
|
1636
|
+
}), i(e(I), {
|
|
1637
1637
|
field: "password",
|
|
1638
1638
|
label: "密码",
|
|
1639
1639
|
"hide-label": "",
|
|
@@ -1645,7 +1645,7 @@ const ie = /* @__PURE__ */ I({
|
|
|
1645
1645
|
message: "密码不能少于10字符"
|
|
1646
1646
|
}]
|
|
1647
1647
|
}, {
|
|
1648
|
-
default:
|
|
1648
|
+
default: a(() => [i(e(q), {
|
|
1649
1649
|
modelValue: l.value.password,
|
|
1650
1650
|
"onUpdate:modelValue": c[2] || (c[2] = (f) => l.value.password = f),
|
|
1651
1651
|
placeholder: "请输入密码",
|
|
@@ -1653,7 +1653,7 @@ const ie = /* @__PURE__ */ I({
|
|
|
1653
1653
|
autocomplete: ""
|
|
1654
1654
|
}, null, 8, ["modelValue"])]),
|
|
1655
1655
|
_: 1
|
|
1656
|
-
}), i(e(
|
|
1656
|
+
}), i(e(I), {
|
|
1657
1657
|
field: "confirmPassword",
|
|
1658
1658
|
label: "确认密码",
|
|
1659
1659
|
"hide-label": "",
|
|
@@ -1669,7 +1669,7 @@ const ie = /* @__PURE__ */ I({
|
|
|
1669
1669
|
}
|
|
1670
1670
|
}]
|
|
1671
1671
|
}, {
|
|
1672
|
-
default:
|
|
1672
|
+
default: a(() => [i(e(q), {
|
|
1673
1673
|
modelValue: l.value.confirmPassword,
|
|
1674
1674
|
"onUpdate:modelValue": c[3] || (c[3] = (f) => l.value.confirmPassword = f),
|
|
1675
1675
|
placeholder: "请输入确认密码密码",
|
|
@@ -1679,12 +1679,12 @@ const ie = /* @__PURE__ */ I({
|
|
|
1679
1679
|
_: 1
|
|
1680
1680
|
}, 8, ["rules"]), z("div", Ot, [i(e(P), {
|
|
1681
1681
|
type: "primary",
|
|
1682
|
-
loading:
|
|
1682
|
+
loading: n.loading,
|
|
1683
1683
|
long: "",
|
|
1684
|
-
size:
|
|
1684
|
+
size: n.size,
|
|
1685
1685
|
onClick: m
|
|
1686
1686
|
}, {
|
|
1687
|
-
default:
|
|
1687
|
+
default: a(() => [...c[4] || (c[4] = [_(" 提交 ", -1)])]),
|
|
1688
1688
|
_: 1
|
|
1689
1689
|
}, 8, ["loading", "size"])])]),
|
|
1690
1690
|
_: 1
|
|
@@ -1692,29 +1692,29 @@ const ie = /* @__PURE__ */ I({
|
|
|
1692
1692
|
}
|
|
1693
1693
|
}), Dt = /* @__PURE__ */ C(Et, [["__scopeId", "data-v-1c83f44a"]]), Nt = {
|
|
1694
1694
|
class: "SwitchSignIn"
|
|
1695
|
-
}, Ft = /* @__PURE__ */
|
|
1695
|
+
}, Ft = /* @__PURE__ */ A({
|
|
1696
1696
|
__name: "AuthkitSwitchSignIn",
|
|
1697
1697
|
emits: ["switchSignIn"],
|
|
1698
1698
|
setup(s, {
|
|
1699
1699
|
emit: r
|
|
1700
1700
|
}) {
|
|
1701
1701
|
const u = r;
|
|
1702
|
-
function
|
|
1702
|
+
function n() {
|
|
1703
1703
|
u("switchSignIn");
|
|
1704
1704
|
}
|
|
1705
1705
|
return (o, d) => (g(), V("div", Nt, [z("span", null, [d[1] || (d[1] = z("span", null, "已经有账号?", -1)), i(e(j), {
|
|
1706
1706
|
style: {
|
|
1707
1707
|
padding: "0px"
|
|
1708
1708
|
},
|
|
1709
|
-
onClick:
|
|
1709
|
+
onClick: n
|
|
1710
1710
|
}, {
|
|
1711
|
-
default:
|
|
1711
|
+
default: a(() => [...d[0] || (d[0] = [_("去登陆", -1)])]),
|
|
1712
1712
|
_: 1
|
|
1713
1713
|
})])]));
|
|
1714
1714
|
}
|
|
1715
|
-
}),
|
|
1715
|
+
}), he = /* @__PURE__ */ C(Ft, [["__scopeId", "data-v-fc1d3903"]]), Ht = {
|
|
1716
1716
|
class: "ResetPassword"
|
|
1717
|
-
}, Mt = /* @__PURE__ */
|
|
1717
|
+
}, Mt = /* @__PURE__ */ A({
|
|
1718
1718
|
__name: "AuthkitResetPassword",
|
|
1719
1719
|
props: {
|
|
1720
1720
|
size: {
|
|
@@ -1732,45 +1732,45 @@ const ie = /* @__PURE__ */ I({
|
|
|
1732
1732
|
setup(s, {
|
|
1733
1733
|
emit: r
|
|
1734
1734
|
}) {
|
|
1735
|
-
const u = r,
|
|
1735
|
+
const u = r, n = s;
|
|
1736
1736
|
function o() {
|
|
1737
1737
|
u("switchSignIn");
|
|
1738
1738
|
}
|
|
1739
1739
|
async function d(t) {
|
|
1740
1740
|
u("submit", t);
|
|
1741
1741
|
}
|
|
1742
|
-
return (t, l) => (g(), V("div",
|
|
1742
|
+
return (t, l) => (g(), V("div", Ht, [i(Dt, {
|
|
1743
1743
|
loading: s.loading,
|
|
1744
|
-
size:
|
|
1744
|
+
size: n.size,
|
|
1745
1745
|
onSubmit: d
|
|
1746
|
-
}, null, 8, ["loading", "size"]), i(
|
|
1746
|
+
}, null, 8, ["loading", "size"]), i(he, {
|
|
1747
1747
|
onSwitchSignIn: o
|
|
1748
1748
|
})]));
|
|
1749
1749
|
}
|
|
1750
|
-
}),
|
|
1750
|
+
}), Gt = /* @__PURE__ */ C(Mt, [["__scopeId", "data-v-0622cbe3"]]), jt = {
|
|
1751
1751
|
class: "ServiceAgreementAndPrivacyProtection"
|
|
1752
|
-
}, Wt = /* @__PURE__ */
|
|
1752
|
+
}, Wt = /* @__PURE__ */ A({
|
|
1753
1753
|
__name: "AuthkitServiceAgreementAndPrivacyProtection",
|
|
1754
1754
|
emits: ["toUserServiceAgreement", "toPrivacyPolicy"],
|
|
1755
1755
|
setup(s, {
|
|
1756
1756
|
emit: r
|
|
1757
1757
|
}) {
|
|
1758
1758
|
const u = r;
|
|
1759
|
-
function
|
|
1759
|
+
function n() {
|
|
1760
1760
|
u("toUserServiceAgreement");
|
|
1761
1761
|
}
|
|
1762
1762
|
function o() {
|
|
1763
1763
|
u("toPrivacyPolicy");
|
|
1764
1764
|
}
|
|
1765
1765
|
return (d, t) => (g(), V("div", jt, [t[2] || (t[2] = z("span", null, " 注册登陆即表示同意", -1)), i(e(j), {
|
|
1766
|
-
onClick:
|
|
1766
|
+
onClick: n
|
|
1767
1767
|
}, {
|
|
1768
|
-
default:
|
|
1768
|
+
default: a(() => [...t[0] || (t[0] = [_("用户服务协议", -1)])]),
|
|
1769
1769
|
_: 1
|
|
1770
1770
|
}), t[3] || (t[3] = z("span", null, " 和 ", -1)), i(e(j), {
|
|
1771
1771
|
onClick: o
|
|
1772
1772
|
}, {
|
|
1773
|
-
default:
|
|
1773
|
+
default: a(() => [...t[1] || (t[1] = [_("隐私协议", -1)])]),
|
|
1774
1774
|
_: 1
|
|
1775
1775
|
})]));
|
|
1776
1776
|
}
|
|
@@ -1778,7 +1778,7 @@ const ie = /* @__PURE__ */ I({
|
|
|
1778
1778
|
class: "content"
|
|
1779
1779
|
}, Jt = {
|
|
1780
1780
|
class: "handle"
|
|
1781
|
-
}, Qt = /* @__PURE__ */
|
|
1781
|
+
}, Qt = /* @__PURE__ */ A({
|
|
1782
1782
|
__name: "AuthkitPasswordAuth",
|
|
1783
1783
|
props: {
|
|
1784
1784
|
size: {
|
|
@@ -1795,9 +1795,9 @@ const ie = /* @__PURE__ */ I({
|
|
|
1795
1795
|
setup(s, {
|
|
1796
1796
|
emit: r
|
|
1797
1797
|
}) {
|
|
1798
|
-
const u = r,
|
|
1798
|
+
const u = r, n = s;
|
|
1799
1799
|
async function o(y, m) {
|
|
1800
|
-
const p = await
|
|
1800
|
+
const p = await et({
|
|
1801
1801
|
password: y
|
|
1802
1802
|
});
|
|
1803
1803
|
p || m("密码验证请求出错!");
|
|
@@ -1816,14 +1816,14 @@ const ie = /* @__PURE__ */ I({
|
|
|
1816
1816
|
y || u("submit", t.value);
|
|
1817
1817
|
});
|
|
1818
1818
|
}
|
|
1819
|
-
return (y, m) => (g(), V("div", Zt, [i(e(
|
|
1819
|
+
return (y, m) => (g(), V("div", Zt, [i(e(H), {
|
|
1820
1820
|
ref_key: "formRef",
|
|
1821
1821
|
ref: d,
|
|
1822
1822
|
model: t.value,
|
|
1823
|
-
size:
|
|
1823
|
+
size: n.size,
|
|
1824
1824
|
"auto-label-width": ""
|
|
1825
1825
|
}, {
|
|
1826
|
-
default:
|
|
1826
|
+
default: a(() => [i(e(I), {
|
|
1827
1827
|
field: "email",
|
|
1828
1828
|
label: "邮箱",
|
|
1829
1829
|
"hide-label": "",
|
|
@@ -1835,7 +1835,7 @@ const ie = /* @__PURE__ */ I({
|
|
|
1835
1835
|
message: "请输入有效的邮箱"
|
|
1836
1836
|
}]
|
|
1837
1837
|
}, {
|
|
1838
|
-
default:
|
|
1838
|
+
default: a(() => [i(e(q), {
|
|
1839
1839
|
modelValue: t.value.email,
|
|
1840
1840
|
"onUpdate:modelValue": m[0] || (m[0] = (p) => t.value.email = p),
|
|
1841
1841
|
placeholder: "请输入邮箱",
|
|
@@ -1843,7 +1843,7 @@ const ie = /* @__PURE__ */ I({
|
|
|
1843
1843
|
type: "email"
|
|
1844
1844
|
}, null, 8, ["modelValue"])]),
|
|
1845
1845
|
_: 1
|
|
1846
|
-
}), i(e(
|
|
1846
|
+
}), i(e(I), {
|
|
1847
1847
|
field: "password",
|
|
1848
1848
|
label: "密码",
|
|
1849
1849
|
"hide-label": "",
|
|
@@ -1854,7 +1854,7 @@ const ie = /* @__PURE__ */ I({
|
|
|
1854
1854
|
validator: o
|
|
1855
1855
|
}]
|
|
1856
1856
|
}, {
|
|
1857
|
-
default:
|
|
1857
|
+
default: a(() => [i(e(q), {
|
|
1858
1858
|
modelValue: t.value.password,
|
|
1859
1859
|
"onUpdate:modelValue": m[1] || (m[1] = (p) => t.value.password = p),
|
|
1860
1860
|
placeholder: "请输入密码",
|
|
@@ -1864,12 +1864,12 @@ const ie = /* @__PURE__ */ I({
|
|
|
1864
1864
|
_: 1
|
|
1865
1865
|
}, 8, ["rules"]), z("div", Jt, [i(e(P), {
|
|
1866
1866
|
type: "primary",
|
|
1867
|
-
loading:
|
|
1867
|
+
loading: n.loading,
|
|
1868
1868
|
long: "",
|
|
1869
|
-
size:
|
|
1869
|
+
size: n.size,
|
|
1870
1870
|
onClick: l
|
|
1871
1871
|
}, {
|
|
1872
|
-
default:
|
|
1872
|
+
default: a(() => [...m[2] || (m[2] = [_(" 登陆 ", -1)])]),
|
|
1873
1873
|
_: 1
|
|
1874
1874
|
}, 8, ["loading", "size"])])]),
|
|
1875
1875
|
_: 1
|
|
@@ -1877,14 +1877,14 @@ const ie = /* @__PURE__ */ I({
|
|
|
1877
1877
|
}
|
|
1878
1878
|
}), Xt = /* @__PURE__ */ C(Qt, [["__scopeId", "data-v-76d6bc26"]]), Yt = {
|
|
1879
1879
|
class: "SwitchSignUpOrResetPassword"
|
|
1880
|
-
}, ei = /* @__PURE__ */
|
|
1880
|
+
}, ei = /* @__PURE__ */ A({
|
|
1881
1881
|
__name: "AuthkitSwitchSignUpOrResetPassword",
|
|
1882
1882
|
emits: ["switchSignUp", "switchResetPassword"],
|
|
1883
1883
|
setup(s, {
|
|
1884
1884
|
emit: r
|
|
1885
1885
|
}) {
|
|
1886
1886
|
const u = r;
|
|
1887
|
-
function
|
|
1887
|
+
function n() {
|
|
1888
1888
|
u("switchSignUp");
|
|
1889
1889
|
}
|
|
1890
1890
|
function o() {
|
|
@@ -1894,9 +1894,9 @@ const ie = /* @__PURE__ */ I({
|
|
|
1894
1894
|
style: {
|
|
1895
1895
|
padding: "0px"
|
|
1896
1896
|
},
|
|
1897
|
-
onClick:
|
|
1897
|
+
onClick: n
|
|
1898
1898
|
}, {
|
|
1899
|
-
default:
|
|
1899
|
+
default: a(() => [...t[0] || (t[0] = [_("去注册?", -1)])]),
|
|
1900
1900
|
_: 1
|
|
1901
1901
|
})]), i(e(j), {
|
|
1902
1902
|
style: {
|
|
@@ -1904,13 +1904,13 @@ const ie = /* @__PURE__ */ I({
|
|
|
1904
1904
|
},
|
|
1905
1905
|
onClick: o
|
|
1906
1906
|
}, {
|
|
1907
|
-
default:
|
|
1907
|
+
default: a(() => [...t[2] || (t[2] = [_(" 忘记密码?", -1)])]),
|
|
1908
1908
|
_: 1
|
|
1909
1909
|
})]));
|
|
1910
1910
|
}
|
|
1911
1911
|
}), ti = /* @__PURE__ */ C(ei, [["__scopeId", "data-v-14e3aab2"]]), ii = {
|
|
1912
1912
|
class: "SignIn"
|
|
1913
|
-
}, li = /* @__PURE__ */
|
|
1913
|
+
}, li = /* @__PURE__ */ A({
|
|
1914
1914
|
__name: "AuthkitSignIn",
|
|
1915
1915
|
props: {
|
|
1916
1916
|
size: {
|
|
@@ -1927,7 +1927,7 @@ const ie = /* @__PURE__ */ I({
|
|
|
1927
1927
|
setup(s, {
|
|
1928
1928
|
emit: r
|
|
1929
1929
|
}) {
|
|
1930
|
-
const u = r,
|
|
1930
|
+
const u = r, n = s, o = Pe(), d = F(() => !!o.OAuth);
|
|
1931
1931
|
function t() {
|
|
1932
1932
|
u("switchSignUp");
|
|
1933
1933
|
}
|
|
@@ -1938,8 +1938,8 @@ const ie = /* @__PURE__ */ I({
|
|
|
1938
1938
|
u("submit", m);
|
|
1939
1939
|
}
|
|
1940
1940
|
return (m, p) => (g(), V("div", ii, [S("", !0), i(Xt, {
|
|
1941
|
-
loading:
|
|
1942
|
-
size:
|
|
1941
|
+
loading: n.loading,
|
|
1942
|
+
size: n.size,
|
|
1943
1943
|
onSubmit: y
|
|
1944
1944
|
}, null, 8, ["loading", "size"]), d.value ? de(m.$slots, "OAuth", {
|
|
1945
1945
|
key: 1
|
|
@@ -1948,9 +1948,9 @@ const ie = /* @__PURE__ */ I({
|
|
|
1948
1948
|
onSwitchResetPassword: l
|
|
1949
1949
|
})]));
|
|
1950
1950
|
}
|
|
1951
|
-
}), si = /* @__PURE__ */ C(li, [["__scopeId", "data-v-f52ce3b3"]]),
|
|
1951
|
+
}), si = /* @__PURE__ */ C(li, [["__scopeId", "data-v-f52ce3b3"]]), ai = {
|
|
1952
1952
|
class: "SignUp"
|
|
1953
|
-
},
|
|
1953
|
+
}, ni = /* @__PURE__ */ A({
|
|
1954
1954
|
__name: "AuthkitSignUp",
|
|
1955
1955
|
props: {
|
|
1956
1956
|
size: {
|
|
@@ -1967,22 +1967,22 @@ const ie = /* @__PURE__ */ I({
|
|
|
1967
1967
|
setup(s, {
|
|
1968
1968
|
emit: r
|
|
1969
1969
|
}) {
|
|
1970
|
-
const u = r,
|
|
1970
|
+
const u = r, n = s;
|
|
1971
1971
|
function o() {
|
|
1972
1972
|
u("switchSignIn");
|
|
1973
1973
|
}
|
|
1974
1974
|
async function d(t) {
|
|
1975
1975
|
u("submit", t);
|
|
1976
1976
|
}
|
|
1977
|
-
return (t, l) => (g(), V("div",
|
|
1978
|
-
size:
|
|
1977
|
+
return (t, l) => (g(), V("div", ai, [i(pe, {
|
|
1978
|
+
size: n.size,
|
|
1979
1979
|
loading: s.loading,
|
|
1980
1980
|
onSubmit: d
|
|
1981
|
-
}, null, 8, ["size", "loading"]), i(
|
|
1981
|
+
}, null, 8, ["size", "loading"]), i(he, {
|
|
1982
1982
|
onSwitchSignIn: o
|
|
1983
1983
|
})]));
|
|
1984
1984
|
}
|
|
1985
|
-
}), oi = /* @__PURE__ */ C(
|
|
1985
|
+
}), oi = /* @__PURE__ */ C(ni, [["__scopeId", "data-v-058bbbef"]]), ri = ["src"], ui = /* @__PURE__ */ A({
|
|
1986
1986
|
__name: "AuthkitAuthTitle",
|
|
1987
1987
|
props: {
|
|
1988
1988
|
size: {
|
|
@@ -2002,7 +2002,7 @@ const ie = /* @__PURE__ */ I({
|
|
|
2002
2002
|
}
|
|
2003
2003
|
},
|
|
2004
2004
|
setup(s) {
|
|
2005
|
-
const r = s, u = `${r.size}px`,
|
|
2005
|
+
const r = s, u = `${r.size}px`, n = `${r.fontSize}px`, o = `${r.lineHeight}px`, {
|
|
2006
2006
|
currentView: d
|
|
2007
2007
|
} = Q(), {
|
|
2008
2008
|
appsData: t
|
|
@@ -2010,7 +2010,7 @@ const ie = /* @__PURE__ */ I({
|
|
|
2010
2010
|
return (y, m) => (g(), V("div", {
|
|
2011
2011
|
class: "Title",
|
|
2012
2012
|
style: le({
|
|
2013
|
-
fontSize:
|
|
2013
|
+
fontSize: n,
|
|
2014
2014
|
lineHeight: o
|
|
2015
2015
|
})
|
|
2016
2016
|
}, [e(t).applicationLogoUrl ? (g(), V("img", {
|
|
@@ -2022,11 +2022,11 @@ const ie = /* @__PURE__ */ I({
|
|
|
2022
2022
|
})
|
|
2023
2023
|
}, null, 12, ri)) : S("", !0), z("span", null, R(l.value), 1), de(y.$slots, "default", {}, void 0, !0)], 4));
|
|
2024
2024
|
}
|
|
2025
|
-
}),
|
|
2025
|
+
}), we = /* @__PURE__ */ C(ui, [["__scopeId", "data-v-5576db64"]]), di = {
|
|
2026
2026
|
class: "Auth"
|
|
2027
2027
|
}, ci = {
|
|
2028
2028
|
class: "body"
|
|
2029
|
-
}, mi = /* @__PURE__ */
|
|
2029
|
+
}, mi = /* @__PURE__ */ A({
|
|
2030
2030
|
__name: "AuthkitAuth",
|
|
2031
2031
|
props: {
|
|
2032
2032
|
size: {
|
|
@@ -2042,7 +2042,7 @@ const ie = /* @__PURE__ */ I({
|
|
|
2042
2042
|
setup(s, {
|
|
2043
2043
|
emit: r
|
|
2044
2044
|
}) {
|
|
2045
|
-
const u = s,
|
|
2045
|
+
const u = s, n = r, {
|
|
2046
2046
|
signInSubmit: o,
|
|
2047
2047
|
signUpSubmit: d,
|
|
2048
2048
|
resetPasswordSubmit: t,
|
|
@@ -2057,12 +2057,12 @@ const ie = /* @__PURE__ */ I({
|
|
|
2057
2057
|
appsAuthPageInfoApi: b
|
|
2058
2058
|
} = se();
|
|
2059
2059
|
function U() {
|
|
2060
|
-
|
|
2060
|
+
n("toPrivacyPolicy");
|
|
2061
2061
|
}
|
|
2062
2062
|
function $() {
|
|
2063
|
-
|
|
2063
|
+
n("toUserServiceAgreement");
|
|
2064
2064
|
}
|
|
2065
|
-
return b(), (T, B) => (g(), V("div", di, [s.showTitle ? (g(), k(
|
|
2065
|
+
return b(), (T, B) => (g(), V("div", di, [s.showTitle ? (g(), k(we, {
|
|
2066
2066
|
key: 0,
|
|
2067
2067
|
size: 32,
|
|
2068
2068
|
"font-size": 20
|
|
@@ -2074,7 +2074,7 @@ const ie = /* @__PURE__ */ I({
|
|
|
2074
2074
|
onSwitchResetPassword: e(f),
|
|
2075
2075
|
onSubmit: B[0] || (B[0] = (O) => e(o)(O))
|
|
2076
2076
|
}, {
|
|
2077
|
-
OAuth:
|
|
2077
|
+
OAuth: a(() => [i(Rt, {
|
|
2078
2078
|
size: u.size
|
|
2079
2079
|
}, null, 8, ["size"])]),
|
|
2080
2080
|
_: 1
|
|
@@ -2084,7 +2084,7 @@ const ie = /* @__PURE__ */ I({
|
|
|
2084
2084
|
loading: e(m),
|
|
2085
2085
|
onSwitchSignIn: e(v),
|
|
2086
2086
|
onSubmit: B[1] || (B[1] = (O) => e(d)(O))
|
|
2087
|
-
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(l) === "resetPassword" ? (g(), k(
|
|
2087
|
+
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(l) === "resetPassword" ? (g(), k(Gt, {
|
|
2088
2088
|
key: 2,
|
|
2089
2089
|
size: u.size,
|
|
2090
2090
|
loading: e(p),
|
|
@@ -2095,7 +2095,7 @@ const ie = /* @__PURE__ */ I({
|
|
|
2095
2095
|
onToUserServiceAgreement: $
|
|
2096
2096
|
})])]));
|
|
2097
2097
|
}
|
|
2098
|
-
}), fi = /* @__PURE__ */ C(mi, [["__scopeId", "data-v-
|
|
2098
|
+
}), fi = /* @__PURE__ */ C(mi, [["__scopeId", "data-v-bc3a1eb8"]]), pi = /* @__PURE__ */ A({
|
|
2099
2099
|
__name: "AuthkitAuthModal",
|
|
2100
2100
|
props: {
|
|
2101
2101
|
size: {
|
|
@@ -2114,19 +2114,19 @@ const ie = /* @__PURE__ */ I({
|
|
|
2114
2114
|
const {
|
|
2115
2115
|
addSignInCallback: u
|
|
2116
2116
|
} = Q(), {
|
|
2117
|
-
show:
|
|
2118
|
-
} =
|
|
2117
|
+
show: n
|
|
2118
|
+
} = xe(), o = s, d = r;
|
|
2119
2119
|
function t(y) {
|
|
2120
2120
|
y(!0);
|
|
2121
2121
|
}
|
|
2122
2122
|
function l() {
|
|
2123
|
-
|
|
2123
|
+
n.value = !1, d("close");
|
|
2124
2124
|
}
|
|
2125
2125
|
return u(() => {
|
|
2126
|
-
|
|
2126
|
+
n.value = !1;
|
|
2127
2127
|
}), (y, m) => (g(), k(e(me), {
|
|
2128
|
-
visible: e(
|
|
2129
|
-
"onUpdate:visible": m[2] || (m[2] = (p) => ue(
|
|
2128
|
+
visible: e(n),
|
|
2129
|
+
"onUpdate:visible": m[2] || (m[2] = (p) => ue(n) ? n.value = p : null),
|
|
2130
2130
|
footer: !1,
|
|
2131
2131
|
"mask-closable": !1,
|
|
2132
2132
|
"title-align": "center",
|
|
@@ -2136,8 +2136,8 @@ const ie = /* @__PURE__ */ I({
|
|
|
2136
2136
|
onBeforeOk: t,
|
|
2137
2137
|
onClose: l
|
|
2138
2138
|
}, {
|
|
2139
|
-
title:
|
|
2140
|
-
default:
|
|
2139
|
+
title: a(() => [i(we)]),
|
|
2140
|
+
default: a(() => [i(fi, {
|
|
2141
2141
|
"show-title": !1,
|
|
2142
2142
|
size: o.size,
|
|
2143
2143
|
onToPrivacyPolicy: m[0] || (m[0] = (p) => d("toPrivacyPolicy")),
|
|
@@ -2146,29 +2146,30 @@ const ie = /* @__PURE__ */ I({
|
|
|
2146
2146
|
_: 1
|
|
2147
2147
|
}, 8, ["visible"]));
|
|
2148
2148
|
}
|
|
2149
|
-
}),
|
|
2149
|
+
}), Ti = /* @__PURE__ */ C(pi, [["__scopeId", "data-v-6fbefff8"]]);
|
|
2150
2150
|
export {
|
|
2151
2151
|
xi as A,
|
|
2152
2152
|
pe as E,
|
|
2153
2153
|
Rt as O,
|
|
2154
2154
|
Dt as P,
|
|
2155
|
-
|
|
2156
|
-
|
|
2155
|
+
Gt as R,
|
|
2156
|
+
ae as S,
|
|
2157
2157
|
ie as _,
|
|
2158
2158
|
fi as a,
|
|
2159
|
-
|
|
2160
|
-
|
|
2159
|
+
we as b,
|
|
2160
|
+
Ti as c,
|
|
2161
2161
|
si as d,
|
|
2162
2162
|
oi as e,
|
|
2163
2163
|
Xt as f,
|
|
2164
|
-
|
|
2164
|
+
he as g,
|
|
2165
2165
|
ti as h,
|
|
2166
2166
|
Kt as i,
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2167
|
+
Xe as j,
|
|
2168
|
+
ne as k,
|
|
2169
|
+
yt as l,
|
|
2170
|
+
rt as m,
|
|
2171
|
+
pt as n,
|
|
2172
|
+
ot as o,
|
|
2173
|
+
qi as p,
|
|
2174
|
+
ye as u
|
|
2174
2175
|
};
|