@huyooo/ui 0.5.10 → 0.5.12
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-DEVS8XfG.js → AuthkitAuthModal-C2KKx46o.js} +324 -300
- package/dist/{AuthkitAuthorize-cnC-Hl0X.js → AuthkitAuthorize-CrmwggKL.js} +1 -1
- package/dist/{ReferrerReferees-D3qUZ62t.js → ReferrerReferees-Bn3bKc0N.js} +1 -1
- package/dist/{UserAccountMenu-50CxuyL3.js → UserAccountMenu-CjajHECj.js} +1 -1
- package/dist/{UserPanel-DHXkFUTF.js → UserPanel-DzSB8_xh.js} +3 -3
- package/dist/{WidthContainer-D_dX_G8P.js → WidthContainer-2eHirXXk.js} +3 -3
- package/dist/api/Authkit/auth.d.ts +1 -0
- package/dist/authkit.js +3 -3
- package/dist/common.js +1 -1
- package/dist/composables.js +2 -2
- package/dist/index.js +689 -765
- package/dist/main.d.ts +2 -1
- package/dist/referrer.js +1 -1
- package/dist/{useAuthkitUsersProfile-Bi_zM2qG.js → useAuthkitUsersProfile-C0ZRUQ3T.js} +54 -44
- package/dist/{useSEO-CREH71xC.js → useSEO-ByLbRe2G.js} +76 -102
- package/dist/user.js +2 -2
- package/dist/utils/authkit.d.ts +7 -0
- package/dist/utils/request.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { Form as O, FormItem as
|
|
4
|
+
import { defineComponent as z, computed as T, createElementBlock as P, openBlock as g, normalizeStyle as D, normalizeClass as ce, createElementVNode as w, ref as h, createBlock as _, unref as e, withCtx as m, createVNode as a, createTextVNode as S, onMounted as G, onUnmounted as te, withDirectives as fe, toDisplayString as B, vShow as pe, Fragment as W, createCommentVNode as k, isRef as ie, useSlots as ve, renderSlot as se } from "vue";
|
|
5
|
+
import { Form as O, FormItem as I, Avatar as ne, Input as V, Textarea as ge, Button as U, Message as E, Alert as L, Modal as le, Divider as ye, Link as F } from "@arco-design/web-vue";
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import { u as he } from "./useUploadCos-D5k1YLb7.js";
|
|
9
|
-
import { b as _e, c as ee, d as
|
|
10
|
-
import { g as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { u as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { M as
|
|
9
|
+
import { b as _e, c as ee, d as we, a as K, e as be, f as Se, u as Z } from "./useAuthkitUsersProfile-C0ZRUQ3T.js";
|
|
10
|
+
import { g as N } from "./globalConfig-C1YOJcxa.js";
|
|
11
|
+
import { _ as ke, g as ze, i as Ie } from "./plugin-vue_export-helper-LjDO2Zua.js";
|
|
12
|
+
import { u as Ae } from "./AuthkitAuthModal.vue_vue_type_style_index_1_lang-BpOmabWi.js";
|
|
13
|
+
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
import { M as Pe } from "./Menu-BKBnsDJ8.js";
|
|
15
15
|
import { u as Ve } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
|
|
16
16
|
import { u as J } from "./useAuthkitAppsAuthPageInfo-Dfj4byB5.js";
|
|
17
17
|
/* empty css */
|
|
18
18
|
import { api as H } from "@huyooo/api";
|
|
19
19
|
import { Icon as Ue } from "@iconify/vue";
|
|
20
|
-
const $e =
|
|
20
|
+
const $e = z({
|
|
21
21
|
name: "IconCamera",
|
|
22
22
|
props: {
|
|
23
23
|
size: {
|
|
@@ -44,49 +44,49 @@ const $e = k({
|
|
|
44
44
|
click: (i) => !0
|
|
45
45
|
},
|
|
46
46
|
setup(i, {
|
|
47
|
-
emit:
|
|
47
|
+
emit: s
|
|
48
48
|
}) {
|
|
49
|
-
const u =
|
|
49
|
+
const u = ze("icon"), n = T(() => [u, `${u}-camera`, {
|
|
50
50
|
[`${u}-spin`]: i.spin
|
|
51
51
|
}]), o = T(() => {
|
|
52
52
|
const t = {};
|
|
53
|
-
return i.size && (t.fontSize =
|
|
53
|
+
return i.size && (t.fontSize = Ie(i.size) ? `${i.size}px` : i.size), i.rotate && (t.transform = `rotate(${i.rotate}deg)`), t;
|
|
54
54
|
});
|
|
55
55
|
return {
|
|
56
|
-
cls:
|
|
56
|
+
cls: n,
|
|
57
57
|
innerStyle: o,
|
|
58
58
|
onClick: (t) => {
|
|
59
|
-
|
|
59
|
+
s("click", t);
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
}), Ce = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
64
|
-
function xe(i,
|
|
65
|
-
return g(),
|
|
64
|
+
function xe(i, s, u, n, o, l) {
|
|
65
|
+
return g(), P("svg", {
|
|
66
66
|
viewBox: "0 0 48 48",
|
|
67
67
|
fill: "none",
|
|
68
68
|
xmlns: "http://www.w3.org/2000/svg",
|
|
69
69
|
stroke: "currentColor",
|
|
70
70
|
class: ce(i.cls),
|
|
71
|
-
style:
|
|
71
|
+
style: D(i.innerStyle),
|
|
72
72
|
"stroke-width": i.strokeWidth,
|
|
73
73
|
"stroke-linecap": i.strokeLinecap,
|
|
74
74
|
"stroke-linejoin": i.strokeLinejoin,
|
|
75
|
-
onClick:
|
|
76
|
-
},
|
|
75
|
+
onClick: s[0] || (s[0] = (...t) => i.onClick && i.onClick(...t))
|
|
76
|
+
}, s[1] || (s[1] = [w("path", {
|
|
77
77
|
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"
|
|
78
78
|
}, null, -1)]), 14, Ce);
|
|
79
79
|
}
|
|
80
|
-
var M = /* @__PURE__ */
|
|
80
|
+
var M = /* @__PURE__ */ ke($e, [["render", xe]]);
|
|
81
81
|
const qe = Object.assign(M, {
|
|
82
|
-
install: (i,
|
|
82
|
+
install: (i, s) => {
|
|
83
83
|
var u;
|
|
84
|
-
const
|
|
85
|
-
i.component(
|
|
84
|
+
const n = (u = s == null ? void 0 : s.iconPrefix) != null ? u : "";
|
|
85
|
+
i.component(n + M.name, M);
|
|
86
86
|
}
|
|
87
87
|
}), Re = {
|
|
88
88
|
class: "handle"
|
|
89
|
-
}, Te = /* @__PURE__ */
|
|
89
|
+
}, Te = /* @__PURE__ */ z({
|
|
90
90
|
__name: "AuthkitPersonalInformation",
|
|
91
91
|
props: {
|
|
92
92
|
size: {
|
|
@@ -96,9 +96,9 @@ const qe = Object.assign(M, {
|
|
|
96
96
|
},
|
|
97
97
|
emits: ["submit"],
|
|
98
98
|
setup(i, {
|
|
99
|
-
emit:
|
|
99
|
+
emit: s
|
|
100
100
|
}) {
|
|
101
|
-
const u =
|
|
101
|
+
const u = s, n = i, o = h({
|
|
102
102
|
id: void 0,
|
|
103
103
|
nickname: "",
|
|
104
104
|
description: "",
|
|
@@ -146,7 +146,7 @@ const qe = Object.assign(M, {
|
|
|
146
146
|
l.value = !0;
|
|
147
147
|
try {
|
|
148
148
|
d({
|
|
149
|
-
bucketId:
|
|
149
|
+
bucketId: N.avatarBucketId,
|
|
150
150
|
file: $,
|
|
151
151
|
onFileFinish(R, C, x) {
|
|
152
152
|
l.value = !0;
|
|
@@ -178,9 +178,9 @@ const qe = Object.assign(M, {
|
|
|
178
178
|
ref: t,
|
|
179
179
|
model: o.value,
|
|
180
180
|
"auto-label-width": "",
|
|
181
|
-
size:
|
|
181
|
+
size: n.size
|
|
182
182
|
}, {
|
|
183
|
-
default: m(() => [a(e(
|
|
183
|
+
default: m(() => [a(e(I), {
|
|
184
184
|
field: "avatar",
|
|
185
185
|
label: "头像",
|
|
186
186
|
rules: [{
|
|
@@ -200,7 +200,7 @@ const qe = Object.assign(M, {
|
|
|
200
200
|
_: 1
|
|
201
201
|
}, 8, ["image-url"])]),
|
|
202
202
|
_: 1
|
|
203
|
-
}), a(e(
|
|
203
|
+
}), a(e(I), {
|
|
204
204
|
field: "nickname",
|
|
205
205
|
label: "昵称",
|
|
206
206
|
rules: [{
|
|
@@ -214,7 +214,7 @@ const qe = Object.assign(M, {
|
|
|
214
214
|
placeholder: "请输入昵称"
|
|
215
215
|
}, null, 8, ["modelValue"])]),
|
|
216
216
|
_: 1
|
|
217
|
-
}), a(e(
|
|
217
|
+
}), a(e(I), {
|
|
218
218
|
field: "description",
|
|
219
219
|
label: "简介",
|
|
220
220
|
rules: [{
|
|
@@ -232,17 +232,17 @@ const qe = Object.assign(M, {
|
|
|
232
232
|
}
|
|
233
233
|
}, null, 8, ["modelValue"])]),
|
|
234
234
|
_: 1
|
|
235
|
-
}), a(e(
|
|
235
|
+
}), a(e(I), {
|
|
236
236
|
field: "",
|
|
237
237
|
label: "",
|
|
238
238
|
rules: []
|
|
239
239
|
}, {
|
|
240
|
-
default: m(() => [
|
|
240
|
+
default: m(() => [w("div", Re, [a(e(U), {
|
|
241
241
|
type: "primary",
|
|
242
242
|
loading: r.value,
|
|
243
243
|
onClick: c
|
|
244
244
|
}, {
|
|
245
|
-
default: m(() => [...f[2] || (f[2] = [
|
|
245
|
+
default: m(() => [...f[2] || (f[2] = [S(" 提交 ", -1)])]),
|
|
246
246
|
_: 1
|
|
247
247
|
}, 8, ["loading"])])]),
|
|
248
248
|
_: 1
|
|
@@ -250,29 +250,29 @@ const qe = Object.assign(M, {
|
|
|
250
250
|
_: 1
|
|
251
251
|
}, 8, ["model", "size"]));
|
|
252
252
|
}
|
|
253
|
-
}), Le = /* @__PURE__ */
|
|
253
|
+
}), Le = /* @__PURE__ */ A(Te, [["__scopeId", "data-v-9f97445b"]]);
|
|
254
254
|
function Be(i) {
|
|
255
255
|
return H({
|
|
256
|
-
url: `${
|
|
256
|
+
url: `${N.authPrefixUrl}/restfulApi/verify/email`,
|
|
257
257
|
method: "post",
|
|
258
258
|
data: i
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
261
|
function Q(i) {
|
|
262
262
|
return H({
|
|
263
|
-
url: `${
|
|
263
|
+
url: `${N.authPrefixUrl}/restfulApi/verify/email/retry`,
|
|
264
264
|
method: "post",
|
|
265
265
|
data: i
|
|
266
266
|
});
|
|
267
267
|
}
|
|
268
268
|
function Oe(i) {
|
|
269
269
|
return H({
|
|
270
|
-
url: `${
|
|
270
|
+
url: `${N.authPrefixUrl}/restfulApi/verify/password`,
|
|
271
271
|
method: "post",
|
|
272
272
|
data: i
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
|
-
const Ee = /* @__PURE__ */
|
|
275
|
+
const Ee = /* @__PURE__ */ z({
|
|
276
276
|
__name: "AuthkitSendVerifyCode",
|
|
277
277
|
props: {
|
|
278
278
|
size: {
|
|
@@ -287,26 +287,26 @@ const Ee = /* @__PURE__ */ k({
|
|
|
287
287
|
},
|
|
288
288
|
emits: ["send"],
|
|
289
289
|
setup(i, {
|
|
290
|
-
expose:
|
|
290
|
+
expose: s,
|
|
291
291
|
emit: u
|
|
292
292
|
}) {
|
|
293
|
-
const
|
|
293
|
+
const n = u, o = i, l = h(!1);
|
|
294
294
|
let t;
|
|
295
295
|
const r = h(0), y = T(() => r.value.toString().padStart(2, "0")), c = T(() => r.value > 0), p = () => {
|
|
296
296
|
l.value && (r.value <= 0 ? (clearInterval(t), l.value = !1) : r.value--);
|
|
297
297
|
};
|
|
298
298
|
function d() {
|
|
299
|
-
|
|
299
|
+
n("send");
|
|
300
300
|
}
|
|
301
301
|
function f() {
|
|
302
302
|
r.value = 60, l.value = !0, t && clearInterval(t), t = setInterval(p, 1e3);
|
|
303
303
|
}
|
|
304
304
|
return G(() => {
|
|
305
|
-
}),
|
|
305
|
+
}), s({
|
|
306
306
|
startCountFn: f
|
|
307
307
|
}), te(() => {
|
|
308
308
|
t && clearInterval(t);
|
|
309
|
-
}), (v,
|
|
309
|
+
}), (v, b) => (g(), _(e(U), {
|
|
310
310
|
class: "OAuthItem",
|
|
311
311
|
type: "primary",
|
|
312
312
|
size: o.size,
|
|
@@ -314,26 +314,47 @@ const Ee = /* @__PURE__ */ k({
|
|
|
314
314
|
loading: o.loading,
|
|
315
315
|
onClick: d
|
|
316
316
|
}, {
|
|
317
|
-
default: m(() => [
|
|
317
|
+
default: m(() => [b[0] || (b[0] = w("span", null, " 发送验证码", -1)), fe(w("span", {
|
|
318
318
|
class: "verify-code-timer"
|
|
319
319
|
}, B(`(${y.value})`), 513), [[pe, c.value]])]),
|
|
320
320
|
_: 1
|
|
321
321
|
}, 8, ["size", "disabled", "loading"]));
|
|
322
322
|
}
|
|
323
|
-
}), X = /* @__PURE__ */
|
|
324
|
-
function ae(i,
|
|
323
|
+
}), X = /* @__PURE__ */ A(Ee, [["__scopeId", "data-v-2883dc6d"]]);
|
|
324
|
+
function ae(i, s = 3) {
|
|
325
325
|
const u = i.indexOf("@");
|
|
326
326
|
if (u > 1) {
|
|
327
|
-
const
|
|
328
|
-
return
|
|
327
|
+
const n = i.slice(0, s), o = i.slice(u);
|
|
328
|
+
return n + "***" + o;
|
|
329
329
|
}
|
|
330
330
|
return i;
|
|
331
331
|
}
|
|
332
|
-
|
|
332
|
+
function di() {
|
|
333
|
+
try {
|
|
334
|
+
localStorage.removeItem("jwtToken"), localStorage.removeItem("refreshToken");
|
|
335
|
+
} catch (i) {
|
|
336
|
+
console.warn("Failed to clear localStorage:", i);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
function mi() {
|
|
340
|
+
try {
|
|
341
|
+
return localStorage.getItem("refreshToken");
|
|
342
|
+
} catch (i) {
|
|
343
|
+
return console.warn("Failed to get refreshToken from localStorage:", i), null;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
function ci(i) {
|
|
347
|
+
try {
|
|
348
|
+
localStorage.setItem("jwtToken", i);
|
|
349
|
+
} catch (s) {
|
|
350
|
+
console.warn("Failed to update jwtToken in localStorage:", s);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
const Fe = {
|
|
333
354
|
class: "sendVerifyCodeItem"
|
|
334
|
-
},
|
|
355
|
+
}, Ne = {
|
|
335
356
|
class: "handle"
|
|
336
|
-
}, Ge = /* @__PURE__ */
|
|
357
|
+
}, Ge = /* @__PURE__ */ z({
|
|
337
358
|
__name: "AuthkitEmailVerify",
|
|
338
359
|
props: {
|
|
339
360
|
email: {
|
|
@@ -348,15 +369,15 @@ const Ne = {
|
|
|
348
369
|
},
|
|
349
370
|
emits: ["next"],
|
|
350
371
|
setup(i, {
|
|
351
|
-
emit:
|
|
372
|
+
emit: s
|
|
352
373
|
}) {
|
|
353
|
-
const u =
|
|
374
|
+
const u = s, n = i, o = T(() => ae(n.email)), l = h(), t = h(!1), r = h(!1), y = h(), c = h({
|
|
354
375
|
userToken: void 0,
|
|
355
376
|
emailVerifyId: void 0
|
|
356
377
|
});
|
|
357
378
|
async function p() {
|
|
358
379
|
t.value = !0, Q({
|
|
359
|
-
email:
|
|
380
|
+
email: n.email
|
|
360
381
|
}).then(({
|
|
361
382
|
data: f
|
|
362
383
|
}) => {
|
|
@@ -370,7 +391,7 @@ const Ne = {
|
|
|
370
391
|
if (!f) {
|
|
371
392
|
r.value = !0;
|
|
372
393
|
const v = {
|
|
373
|
-
email:
|
|
394
|
+
email: n.email,
|
|
374
395
|
userToken: c.value.userToken,
|
|
375
396
|
emailVerifyId: c.value.emailVerifyId
|
|
376
397
|
};
|
|
@@ -387,9 +408,9 @@ const Ne = {
|
|
|
387
408
|
ref: y,
|
|
388
409
|
model: c.value,
|
|
389
410
|
"auto-label-width": "",
|
|
390
|
-
size:
|
|
411
|
+
size: n.size
|
|
391
412
|
}, {
|
|
392
|
-
default: m(() => [a(e(
|
|
413
|
+
default: m(() => [a(e(I), {
|
|
393
414
|
field: "email",
|
|
394
415
|
label: "邮箱",
|
|
395
416
|
rules: [{
|
|
@@ -400,9 +421,9 @@ const Ne = {
|
|
|
400
421
|
message: "请输入有效的邮箱"
|
|
401
422
|
}]
|
|
402
423
|
}, {
|
|
403
|
-
default: m(() => [
|
|
424
|
+
default: m(() => [S(B(o.value), 1)]),
|
|
404
425
|
_: 1
|
|
405
|
-
}), a(e(
|
|
426
|
+
}), a(e(I), {
|
|
406
427
|
field: "userToken",
|
|
407
428
|
label: "验证码",
|
|
408
429
|
"hide-label": "",
|
|
@@ -411,14 +432,14 @@ const Ne = {
|
|
|
411
432
|
message: "请输入验证码"
|
|
412
433
|
}]
|
|
413
434
|
}, {
|
|
414
|
-
default: m(() => [
|
|
435
|
+
default: m(() => [w("div", Fe, [a(e(V), {
|
|
415
436
|
modelValue: c.value.userToken,
|
|
416
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
437
|
+
"onUpdate:modelValue": v[0] || (v[0] = (b) => c.value.userToken = b),
|
|
417
438
|
placeholder: "请输入验证码"
|
|
418
439
|
}, null, 8, ["modelValue"]), a(X, {
|
|
419
440
|
ref_key: "SendVerifyCodeRef",
|
|
420
441
|
ref: l,
|
|
421
|
-
size:
|
|
442
|
+
size: n.size,
|
|
422
443
|
loading: t.value,
|
|
423
444
|
style: {
|
|
424
445
|
"margin-left": "10px"
|
|
@@ -426,17 +447,17 @@ const Ne = {
|
|
|
426
447
|
onSend: p
|
|
427
448
|
}, null, 8, ["size", "loading"])])]),
|
|
428
449
|
_: 1
|
|
429
|
-
}), a(e(
|
|
450
|
+
}), a(e(I), {
|
|
430
451
|
field: "",
|
|
431
452
|
label: "",
|
|
432
453
|
rules: []
|
|
433
454
|
}, {
|
|
434
|
-
default: m(() => [
|
|
455
|
+
default: m(() => [w("div", Ne, [a(e(U), {
|
|
435
456
|
loading: r.value,
|
|
436
457
|
type: "primary",
|
|
437
458
|
onClick: d
|
|
438
459
|
}, {
|
|
439
|
-
default: m(() => [...v[1] || (v[1] = [
|
|
460
|
+
default: m(() => [...v[1] || (v[1] = [S(" 提交 ", -1)])]),
|
|
440
461
|
_: 1
|
|
441
462
|
}, 8, ["loading"])])]),
|
|
442
463
|
_: 1
|
|
@@ -444,9 +465,9 @@ const Ne = {
|
|
|
444
465
|
_: 1
|
|
445
466
|
}, 8, ["model", "size"]));
|
|
446
467
|
}
|
|
447
|
-
}), Y = /* @__PURE__ */
|
|
468
|
+
}), Y = /* @__PURE__ */ A(Ge, [["__scopeId", "data-v-89ebb370"]]), He = {
|
|
448
469
|
class: "handle"
|
|
449
|
-
}, Me = /* @__PURE__ */
|
|
470
|
+
}, Me = /* @__PURE__ */ z({
|
|
450
471
|
__name: "AuthkitPasswordUpdate",
|
|
451
472
|
props: {
|
|
452
473
|
size: {
|
|
@@ -456,9 +477,9 @@ const Ne = {
|
|
|
456
477
|
},
|
|
457
478
|
emits: ["submit"],
|
|
458
479
|
setup(i, {
|
|
459
|
-
emit:
|
|
480
|
+
emit: s
|
|
460
481
|
}) {
|
|
461
|
-
const u =
|
|
482
|
+
const u = s, n = h(!1), o = h(), l = i, t = h({
|
|
462
483
|
oldPassword: "",
|
|
463
484
|
password: "",
|
|
464
485
|
confirmPassword: ""
|
|
@@ -469,10 +490,10 @@ const Ne = {
|
|
|
469
490
|
const c = {
|
|
470
491
|
password: t.value.password
|
|
471
492
|
};
|
|
472
|
-
|
|
473
|
-
|
|
493
|
+
we(c).then(() => {
|
|
494
|
+
n.value = !1, u("submit", c);
|
|
474
495
|
}).catch(() => {
|
|
475
|
-
|
|
496
|
+
n.value = !1;
|
|
476
497
|
});
|
|
477
498
|
}
|
|
478
499
|
});
|
|
@@ -484,7 +505,7 @@ const Ne = {
|
|
|
484
505
|
"auto-label-width": "",
|
|
485
506
|
size: l.size
|
|
486
507
|
}, {
|
|
487
|
-
default: m(() => [a(e(
|
|
508
|
+
default: m(() => [a(e(I), {
|
|
488
509
|
field: "oldPassword",
|
|
489
510
|
label: "当前密码",
|
|
490
511
|
"hide-label": "",
|
|
@@ -500,7 +521,7 @@ const Ne = {
|
|
|
500
521
|
type: "password"
|
|
501
522
|
}, null, 8, ["modelValue"])]),
|
|
502
523
|
_: 1
|
|
503
|
-
}), a(e(
|
|
524
|
+
}), a(e(I), {
|
|
504
525
|
field: "password",
|
|
505
526
|
label: "新密码",
|
|
506
527
|
"hide-label": "",
|
|
@@ -519,7 +540,7 @@ const Ne = {
|
|
|
519
540
|
type: "password"
|
|
520
541
|
}, null, 8, ["modelValue"])]),
|
|
521
542
|
_: 1
|
|
522
|
-
}), a(e(
|
|
543
|
+
}), a(e(I), {
|
|
523
544
|
field: "confirmPassword",
|
|
524
545
|
label: "确认密码",
|
|
525
546
|
"hide-label": "",
|
|
@@ -542,17 +563,17 @@ const Ne = {
|
|
|
542
563
|
type: "password"
|
|
543
564
|
}, null, 8, ["modelValue"])]),
|
|
544
565
|
_: 1
|
|
545
|
-
}, 8, ["rules"]), a(e(
|
|
566
|
+
}, 8, ["rules"]), a(e(I), {
|
|
546
567
|
field: "",
|
|
547
568
|
label: "",
|
|
548
569
|
rules: []
|
|
549
570
|
}, {
|
|
550
|
-
default: m(() => [
|
|
571
|
+
default: m(() => [w("div", He, [a(e(U), {
|
|
551
572
|
type: "primary",
|
|
552
|
-
loading:
|
|
573
|
+
loading: n.value,
|
|
553
574
|
onClick: r
|
|
554
575
|
}, {
|
|
555
|
-
default: m(() => [...c[3] || (c[3] = [
|
|
576
|
+
default: m(() => [...c[3] || (c[3] = [S(" 提交 ", -1)])]),
|
|
556
577
|
_: 1
|
|
557
578
|
}, 8, ["loading"])])]),
|
|
558
579
|
_: 1
|
|
@@ -560,7 +581,7 @@ const Ne = {
|
|
|
560
581
|
_: 1
|
|
561
582
|
}, 8, ["model", "size"]));
|
|
562
583
|
}
|
|
563
|
-
}),
|
|
584
|
+
}), je = /* @__PURE__ */ A(Me, [["__scopeId", "data-v-a9e25b03"]]), De = /* @__PURE__ */ z({
|
|
564
585
|
__name: "AuthkitSetPassword",
|
|
565
586
|
props: {
|
|
566
587
|
size: {
|
|
@@ -570,25 +591,25 @@ const Ne = {
|
|
|
570
591
|
},
|
|
571
592
|
setup(i) {
|
|
572
593
|
const {
|
|
573
|
-
userProfile:
|
|
594
|
+
userProfile: s,
|
|
574
595
|
loading: u,
|
|
575
|
-
fetchUserProfile:
|
|
596
|
+
fetchUserProfile: n,
|
|
576
597
|
isLoggedIn: o
|
|
577
598
|
} = K(), l = h("hidden"), t = i;
|
|
578
599
|
function r(p) {
|
|
579
600
|
l.value = p;
|
|
580
601
|
}
|
|
581
602
|
function y(p) {
|
|
582
|
-
E.success("密码修改成功"), l.value = "hidden",
|
|
603
|
+
E.success("密码修改成功"), l.value = "hidden", n();
|
|
583
604
|
}
|
|
584
605
|
function c() {
|
|
585
606
|
l.value = "update";
|
|
586
607
|
}
|
|
587
608
|
return G(() => {
|
|
588
|
-
o.value && !
|
|
609
|
+
o.value && !s.value && n();
|
|
589
610
|
}), (p, d) => {
|
|
590
|
-
var f, v,
|
|
591
|
-
return g(),
|
|
611
|
+
var f, v, b, $;
|
|
612
|
+
return g(), P(W, null, [!((f = e(s)) != null && f.email) && !((v = e(s)) != null && v.phone) ? (g(), _(e(L), {
|
|
592
613
|
key: 0,
|
|
593
614
|
title: "去绑定邮箱"
|
|
594
615
|
}, {
|
|
@@ -597,12 +618,12 @@ const Ne = {
|
|
|
597
618
|
type: "primary",
|
|
598
619
|
onClick: d[0] || (d[0] = (q) => r("update"))
|
|
599
620
|
}, {
|
|
600
|
-
default: m(() => [...d[2] || (d[2] = [
|
|
621
|
+
default: m(() => [...d[2] || (d[2] = [S(" 去绑定邮箱 ", -1)])]),
|
|
601
622
|
_: 1
|
|
602
623
|
}, 8, ["size"])]),
|
|
603
|
-
default: m(() => [d[3] || (d[3] =
|
|
624
|
+
default: m(() => [d[3] || (d[3] = S(" 请先去绑定邮箱或者手机号码,才能设置密码 ", -1))]),
|
|
604
625
|
_: 1
|
|
605
|
-
})) :
|
|
626
|
+
})) : k("", !0), (b = e(s)) != null && b.email && l.value === "hidden" ? (g(), _(e(L), {
|
|
606
627
|
key: 1,
|
|
607
628
|
title: "更改密码"
|
|
608
629
|
}, {
|
|
@@ -611,22 +632,22 @@ const Ne = {
|
|
|
611
632
|
type: "primary",
|
|
612
633
|
onClick: d[1] || (d[1] = (q) => r("verify"))
|
|
613
634
|
}, {
|
|
614
|
-
default: m(() => [...d[4] || (d[4] = [
|
|
635
|
+
default: m(() => [...d[4] || (d[4] = [S("更改密码", -1)])]),
|
|
615
636
|
_: 1
|
|
616
637
|
}, 8, ["size"])]),
|
|
617
|
-
default: m(() => [d[5] || (d[5] =
|
|
638
|
+
default: m(() => [d[5] || (d[5] = S(" 为了账户安全修改密码前会先验证身份 ", -1))]),
|
|
618
639
|
_: 1
|
|
619
|
-
})) :
|
|
640
|
+
})) : k("", !0), l.value === "update" ? (g(), _(je, {
|
|
620
641
|
key: 2,
|
|
621
642
|
size: t.size,
|
|
622
643
|
loading: e(u),
|
|
623
644
|
onSubmit: y
|
|
624
|
-
}, null, 8, ["size", "loading"])) :
|
|
645
|
+
}, null, 8, ["size", "loading"])) : k("", !0), l.value === "verify" ? (g(), _(Y, {
|
|
625
646
|
key: 3,
|
|
626
647
|
size: t.size,
|
|
627
|
-
email: ($ = e(
|
|
648
|
+
email: ($ = e(s)) == null ? void 0 : $.email,
|
|
628
649
|
onNext: c
|
|
629
|
-
}, null, 8, ["size", "email"])) :
|
|
650
|
+
}, null, 8, ["size", "email"])) : k("", !0)], 64);
|
|
630
651
|
};
|
|
631
652
|
}
|
|
632
653
|
}), We = {
|
|
@@ -635,7 +656,7 @@ const Ne = {
|
|
|
635
656
|
class: "sendVerifyCodeItem"
|
|
636
657
|
}, Ze = {
|
|
637
658
|
class: "handle"
|
|
638
|
-
}, Je = /* @__PURE__ */
|
|
659
|
+
}, Je = /* @__PURE__ */ z({
|
|
639
660
|
__name: "AuthkitEmailUpdate",
|
|
640
661
|
props: {
|
|
641
662
|
size: {
|
|
@@ -650,9 +671,9 @@ const Ne = {
|
|
|
650
671
|
},
|
|
651
672
|
emits: ["submit"],
|
|
652
673
|
setup(i, {
|
|
653
|
-
emit:
|
|
674
|
+
emit: s
|
|
654
675
|
}) {
|
|
655
|
-
const u =
|
|
676
|
+
const u = s, n = i, o = h(), l = h(!1), t = h(), r = h({
|
|
656
677
|
email: void 0,
|
|
657
678
|
userToken: void 0,
|
|
658
679
|
emailVerifyId: void 0,
|
|
@@ -678,14 +699,14 @@ const Ne = {
|
|
|
678
699
|
p || u("submit", r.value);
|
|
679
700
|
});
|
|
680
701
|
}
|
|
681
|
-
return (p, d) => (g(),
|
|
702
|
+
return (p, d) => (g(), P("div", We, [a(e(O), {
|
|
682
703
|
ref_key: "formRef",
|
|
683
704
|
ref: t,
|
|
684
705
|
model: r.value,
|
|
685
|
-
size:
|
|
706
|
+
size: n.size,
|
|
686
707
|
"auto-label-width": ""
|
|
687
708
|
}, {
|
|
688
|
-
default: m(() => [a(e(
|
|
709
|
+
default: m(() => [a(e(I), {
|
|
689
710
|
field: "email",
|
|
690
711
|
label: "邮箱",
|
|
691
712
|
"hide-label": "",
|
|
@@ -705,7 +726,7 @@ const Ne = {
|
|
|
705
726
|
type: "email"
|
|
706
727
|
}, null, 8, ["modelValue"])]),
|
|
707
728
|
_: 1
|
|
708
|
-
}), a(e(
|
|
729
|
+
}), a(e(I), {
|
|
709
730
|
field: "userToken",
|
|
710
731
|
label: "验证码",
|
|
711
732
|
"hide-label": "",
|
|
@@ -714,7 +735,7 @@ const Ne = {
|
|
|
714
735
|
message: "请输入验证码"
|
|
715
736
|
}]
|
|
716
737
|
}, {
|
|
717
|
-
default: m(() => [
|
|
738
|
+
default: m(() => [w("div", Ke, [a(e(V), {
|
|
718
739
|
modelValue: r.value.userToken,
|
|
719
740
|
"onUpdate:modelValue": d[1] || (d[1] = (f) => r.value.userToken = f),
|
|
720
741
|
placeholder: "请输入验证码",
|
|
@@ -722,7 +743,7 @@ const Ne = {
|
|
|
722
743
|
}, null, 8, ["modelValue"]), a(X, {
|
|
723
744
|
ref_key: "SendVerifyCodeRef",
|
|
724
745
|
ref: o,
|
|
725
|
-
size:
|
|
746
|
+
size: n.size,
|
|
726
747
|
loading: l.value,
|
|
727
748
|
style: {
|
|
728
749
|
"margin-left": "10px"
|
|
@@ -730,7 +751,7 @@ const Ne = {
|
|
|
730
751
|
onSend: y
|
|
731
752
|
}, null, 8, ["size", "loading"])])]),
|
|
732
753
|
_: 1
|
|
733
|
-
}), a(e(
|
|
754
|
+
}), a(e(I), {
|
|
734
755
|
field: "password",
|
|
735
756
|
label: "密码",
|
|
736
757
|
"hide-label": "",
|
|
@@ -750,7 +771,7 @@ const Ne = {
|
|
|
750
771
|
autocomplete: "new-password"
|
|
751
772
|
}, null, 8, ["modelValue"])]),
|
|
752
773
|
_: 1
|
|
753
|
-
}), a(e(
|
|
774
|
+
}), a(e(I), {
|
|
754
775
|
field: "confirmPassword",
|
|
755
776
|
label: "确认密码",
|
|
756
777
|
"hide-label": "",
|
|
@@ -774,7 +795,7 @@ const Ne = {
|
|
|
774
795
|
autocomplete: "new-password"
|
|
775
796
|
}, null, 8, ["modelValue"])]),
|
|
776
797
|
_: 1
|
|
777
|
-
}, 8, ["rules"]), a(e(
|
|
798
|
+
}, 8, ["rules"]), a(e(I), {
|
|
778
799
|
field: "referrerId",
|
|
779
800
|
label: "邀请人",
|
|
780
801
|
"hide-label": "",
|
|
@@ -790,20 +811,20 @@ const Ne = {
|
|
|
790
811
|
autocomplete: "off"
|
|
791
812
|
}, null, 8, ["modelValue"])]),
|
|
792
813
|
_: 1
|
|
793
|
-
}),
|
|
814
|
+
}), w("div", Ze, [a(e(U), {
|
|
794
815
|
type: "primary",
|
|
795
|
-
loading:
|
|
816
|
+
loading: n.loading,
|
|
796
817
|
long: "",
|
|
797
|
-
size:
|
|
818
|
+
size: n.size,
|
|
798
819
|
onClick: c
|
|
799
820
|
}, {
|
|
800
|
-
default: m(() => [...d[5] || (d[5] = [
|
|
821
|
+
default: m(() => [...d[5] || (d[5] = [S(" 提交 ", -1)])]),
|
|
801
822
|
_: 1
|
|
802
823
|
}, 8, ["loading", "size"])])]),
|
|
803
824
|
_: 1
|
|
804
825
|
}, 8, ["model", "size"])]));
|
|
805
826
|
}
|
|
806
|
-
}), oe = /* @__PURE__ */
|
|
827
|
+
}), oe = /* @__PURE__ */ A(Je, [["__scopeId", "data-v-5b701953"]]), Qe = /* @__PURE__ */ z({
|
|
807
828
|
__name: "AuthkitEmailBinding",
|
|
808
829
|
props: {
|
|
809
830
|
size: {
|
|
@@ -813,9 +834,9 @@ const Ne = {
|
|
|
813
834
|
},
|
|
814
835
|
setup(i) {
|
|
815
836
|
const {
|
|
816
|
-
userProfile:
|
|
837
|
+
userProfile: s,
|
|
817
838
|
loading: u,
|
|
818
|
-
fetchUserProfile:
|
|
839
|
+
fetchUserProfile: n
|
|
819
840
|
} = K(), o = h("hidden"), l = i;
|
|
820
841
|
function t(c) {
|
|
821
842
|
o.value = c;
|
|
@@ -827,8 +848,8 @@ const Ne = {
|
|
|
827
848
|
userToken: c.userToken,
|
|
828
849
|
emailVerifyId: c.emailVerifyId
|
|
829
850
|
};
|
|
830
|
-
|
|
831
|
-
u.value = !1, E.success("绑定成功"), o.value = "hidden",
|
|
851
|
+
be(p).then(() => {
|
|
852
|
+
u.value = !1, E.success("绑定成功"), o.value = "hidden", n();
|
|
832
853
|
}).catch(() => {
|
|
833
854
|
u.value = !1;
|
|
834
855
|
});
|
|
@@ -837,61 +858,61 @@ const Ne = {
|
|
|
837
858
|
o.value = "update";
|
|
838
859
|
}
|
|
839
860
|
return G(() => {
|
|
840
|
-
|
|
861
|
+
s.value || n();
|
|
841
862
|
}), (c, p) => {
|
|
842
863
|
var d, f, v;
|
|
843
|
-
return g(),
|
|
864
|
+
return g(), P(W, null, [!((d = e(s)) != null && d.email) && o.value === "hidden" ? (g(), _(e(L), {
|
|
844
865
|
key: 0,
|
|
845
866
|
title: "绑定邮箱"
|
|
846
867
|
}, {
|
|
847
868
|
action: m(() => [a(e(U), {
|
|
848
869
|
size: l.size,
|
|
849
870
|
type: "primary",
|
|
850
|
-
onClick: p[0] || (p[0] = (
|
|
871
|
+
onClick: p[0] || (p[0] = (b) => t("update"))
|
|
851
872
|
}, {
|
|
852
|
-
default: m(() => [...p[2] || (p[2] = [
|
|
873
|
+
default: m(() => [...p[2] || (p[2] = [S(" 绑定邮箱 ", -1)])]),
|
|
853
874
|
_: 1
|
|
854
875
|
}, 8, ["size"])]),
|
|
855
|
-
default: m(() => [p[3] || (p[3] =
|
|
876
|
+
default: m(() => [p[3] || (p[3] = S(" 您还未绑定邮箱,请点击绑定邮箱 ", -1))]),
|
|
856
877
|
_: 1
|
|
857
|
-
})) :
|
|
878
|
+
})) : k("", !0), (f = e(s)) != null && f.email && o.value === "hidden" ? (g(), _(e(L), {
|
|
858
879
|
key: 1,
|
|
859
880
|
title: "更改邮箱"
|
|
860
881
|
}, {
|
|
861
882
|
action: m(() => [a(e(U), {
|
|
862
883
|
size: l.size,
|
|
863
884
|
type: "primary",
|
|
864
|
-
onClick: p[1] || (p[1] = (
|
|
885
|
+
onClick: p[1] || (p[1] = (b) => t("verify"))
|
|
865
886
|
}, {
|
|
866
|
-
default: m(() => [...p[4] || (p[4] = [
|
|
887
|
+
default: m(() => [...p[4] || (p[4] = [S(" 更改邮箱 ", -1)])]),
|
|
867
888
|
_: 1
|
|
868
889
|
}, 8, ["size"])]),
|
|
869
890
|
default: m(() => {
|
|
870
|
-
var
|
|
871
|
-
return [
|
|
891
|
+
var b;
|
|
892
|
+
return [S(B(`您绑定的邮箱为${e(ae)((b = e(s)) == null ? void 0 : b.email)}`) + " ", 1)];
|
|
872
893
|
}),
|
|
873
894
|
_: 1
|
|
874
|
-
})) :
|
|
895
|
+
})) : k("", !0), o.value === "update" ? (g(), _(oe, {
|
|
875
896
|
key: 2,
|
|
876
897
|
loading: e(u),
|
|
877
898
|
size: l.size,
|
|
878
899
|
onSubmit: r
|
|
879
|
-
}, null, 8, ["loading", "size"])) :
|
|
900
|
+
}, null, 8, ["loading", "size"])) : k("", !0), o.value === "verify" ? (g(), _(Y, {
|
|
880
901
|
key: 3,
|
|
881
902
|
size: l.size,
|
|
882
|
-
email: (v = e(
|
|
903
|
+
email: (v = e(s)) == null ? void 0 : v.email,
|
|
883
904
|
onNext: y
|
|
884
|
-
}, null, 8, ["size", "email"])) :
|
|
905
|
+
}, null, 8, ["size", "email"])) : k("", !0)], 64);
|
|
885
906
|
};
|
|
886
907
|
}
|
|
887
|
-
}), Xe = /* @__PURE__ */
|
|
908
|
+
}), Xe = /* @__PURE__ */ A(Qe, [["__scopeId", "data-v-b2663ea1"]]);
|
|
888
909
|
function re() {
|
|
889
910
|
return H({
|
|
890
|
-
url: `${
|
|
911
|
+
url: `${N.authPrefixUrl}/restfulApi/OAuth/github/login`,
|
|
891
912
|
method: "get"
|
|
892
913
|
});
|
|
893
914
|
}
|
|
894
|
-
const Ye = /* @__PURE__ */
|
|
915
|
+
const Ye = /* @__PURE__ */ z({
|
|
895
916
|
__name: "AuthkitGithubBinding",
|
|
896
917
|
props: {
|
|
897
918
|
size: {
|
|
@@ -901,13 +922,13 @@ const Ye = /* @__PURE__ */ k({
|
|
|
901
922
|
},
|
|
902
923
|
setup(i) {
|
|
903
924
|
const {
|
|
904
|
-
userProfile:
|
|
925
|
+
userProfile: s,
|
|
905
926
|
fetchUserProfile: u
|
|
906
|
-
} = K(),
|
|
927
|
+
} = K(), n = h("hidden"), o = h(!1);
|
|
907
928
|
let l;
|
|
908
929
|
const t = i;
|
|
909
930
|
function r(f) {
|
|
910
|
-
|
|
931
|
+
n.value = f;
|
|
911
932
|
}
|
|
912
933
|
function y() {
|
|
913
934
|
re().then(({
|
|
@@ -920,23 +941,23 @@ const Ye = /* @__PURE__ */ k({
|
|
|
920
941
|
});
|
|
921
942
|
}
|
|
922
943
|
function c() {
|
|
923
|
-
|
|
924
|
-
E.success("解绑成功"),
|
|
944
|
+
Se().then(() => {
|
|
945
|
+
E.success("解绑成功"), n.value = "hidden", u();
|
|
925
946
|
});
|
|
926
947
|
}
|
|
927
948
|
function p() {
|
|
928
|
-
|
|
949
|
+
n.value === "bind" && (n.value = "hidden", y()), n.value === "unbind" && c();
|
|
929
950
|
}
|
|
930
951
|
function d() {
|
|
931
952
|
o.value && u();
|
|
932
953
|
}
|
|
933
954
|
return G(() => {
|
|
934
|
-
|
|
955
|
+
s.value || u(), l = setInterval(d, 1e3);
|
|
935
956
|
}), te(() => {
|
|
936
957
|
l && clearInterval(l);
|
|
937
958
|
}), (f, v) => {
|
|
938
|
-
var
|
|
939
|
-
return g(),
|
|
959
|
+
var b, $, q;
|
|
960
|
+
return g(), P(W, null, [!((b = e(s)) != null && b.github) && n.value === "hidden" ? (g(), _(e(L), {
|
|
940
961
|
key: 0,
|
|
941
962
|
title: "绑定GitHUb"
|
|
942
963
|
}, {
|
|
@@ -945,12 +966,12 @@ const Ye = /* @__PURE__ */ k({
|
|
|
945
966
|
type: "primary",
|
|
946
967
|
onClick: v[0] || (v[0] = (R) => r("bind"))
|
|
947
968
|
}, {
|
|
948
|
-
default: m(() => [...v[2] || (v[2] = [
|
|
969
|
+
default: m(() => [...v[2] || (v[2] = [S(" 绑定GitHUb ", -1)])]),
|
|
949
970
|
_: 1
|
|
950
971
|
}, 8, ["size"])]),
|
|
951
|
-
default: m(() => [v[3] || (v[3] =
|
|
972
|
+
default: m(() => [v[3] || (v[3] = S(" 请尚未绑定GitHub,请点击绑定GitHUb ", -1))]),
|
|
952
973
|
_: 1
|
|
953
|
-
})) :
|
|
974
|
+
})) : k("", !0), ($ = e(s)) != null && $.github && n.value === "hidden" ? (g(), _(e(L), {
|
|
954
975
|
key: 1,
|
|
955
976
|
title: "解绑GitHub"
|
|
956
977
|
}, {
|
|
@@ -959,23 +980,23 @@ const Ye = /* @__PURE__ */ k({
|
|
|
959
980
|
type: "primary",
|
|
960
981
|
onClick: v[1] || (v[1] = (R) => r("unbind"))
|
|
961
982
|
}, {
|
|
962
|
-
default: m(() => [...v[4] || (v[4] = [
|
|
983
|
+
default: m(() => [...v[4] || (v[4] = [S(" 解绑GitHUb ", -1)])]),
|
|
963
984
|
_: 1
|
|
964
985
|
}, 8, ["size"])]),
|
|
965
986
|
default: m(() => {
|
|
966
987
|
var R, C, x;
|
|
967
|
-
return [
|
|
968
|
-
"image-url": (x = e(
|
|
988
|
+
return [w("span", null, B(`您绑定的账号为 ${(C = (R = e(s)) == null ? void 0 : R.github) == null ? void 0 : C.login}`), 1), a(e(ne), {
|
|
989
|
+
"image-url": (x = e(s)) == null ? void 0 : x.avatar,
|
|
969
990
|
size: 42
|
|
970
991
|
}, null, 8, ["image-url"])];
|
|
971
992
|
}),
|
|
972
993
|
_: 1
|
|
973
|
-
})) :
|
|
994
|
+
})) : k("", !0), n.value === "bind" || n.value === "unbind" ? (g(), _(Y, {
|
|
974
995
|
key: 2,
|
|
975
996
|
size: t.size,
|
|
976
|
-
email: (q = e(
|
|
997
|
+
email: (q = e(s)) == null ? void 0 : q.email,
|
|
977
998
|
onNext: p
|
|
978
|
-
}, null, 8, ["size", "email"])) :
|
|
999
|
+
}, null, 8, ["size", "email"])) : k("", !0)], 64);
|
|
979
1000
|
};
|
|
980
1001
|
}
|
|
981
1002
|
}), et = {
|
|
@@ -984,16 +1005,16 @@ const Ye = /* @__PURE__ */ k({
|
|
|
984
1005
|
class: "left"
|
|
985
1006
|
}, it = {
|
|
986
1007
|
class: "right"
|
|
987
|
-
}, st = /* @__PURE__ */
|
|
1008
|
+
}, st = /* @__PURE__ */ z({
|
|
988
1009
|
__name: "AuthkitAppSetting",
|
|
989
1010
|
emits: ["confirm", "cancel"],
|
|
990
1011
|
setup(i, {
|
|
991
|
-
expose:
|
|
1012
|
+
expose: s,
|
|
992
1013
|
emit: u
|
|
993
1014
|
}) {
|
|
994
|
-
const
|
|
1015
|
+
const n = u;
|
|
995
1016
|
function o() {
|
|
996
|
-
|
|
1017
|
+
n("cancel");
|
|
997
1018
|
}
|
|
998
1019
|
const l = h("large"), t = h(["PersonalInformation"]), r = h([{
|
|
999
1020
|
name: "个人信息",
|
|
@@ -1041,21 +1062,21 @@ const Ye = /* @__PURE__ */ k({
|
|
|
1041
1062
|
]
|
|
1042
1063
|
}]);
|
|
1043
1064
|
function y(f, v) {
|
|
1044
|
-
const
|
|
1045
|
-
console.log(
|
|
1065
|
+
const b = f.path;
|
|
1066
|
+
console.log(b, v, "lokokoko"), t.value = [b];
|
|
1046
1067
|
}
|
|
1047
1068
|
const {
|
|
1048
1069
|
changeType: c,
|
|
1049
1070
|
show: p
|
|
1050
|
-
} = Ve(
|
|
1071
|
+
} = Ve(n);
|
|
1051
1072
|
function d(f, v) {
|
|
1052
1073
|
console.log(f), p.value = v, c.value = "编辑";
|
|
1053
1074
|
}
|
|
1054
|
-
return
|
|
1075
|
+
return s({
|
|
1055
1076
|
setData: d
|
|
1056
1077
|
}), (f, v) => (g(), _(e(le), {
|
|
1057
1078
|
visible: e(p),
|
|
1058
|
-
"onUpdate:visible": v[1] || (v[1] = (
|
|
1079
|
+
"onUpdate:visible": v[1] || (v[1] = (b) => ie(p) ? p.value = b : null),
|
|
1059
1080
|
"unmount-on-close": "",
|
|
1060
1081
|
"body-class": "AppSettingbodyClass",
|
|
1061
1082
|
"mask-closable": !1,
|
|
@@ -1063,37 +1084,37 @@ const Ye = /* @__PURE__ */ k({
|
|
|
1063
1084
|
width: "700px",
|
|
1064
1085
|
onCancel: o
|
|
1065
1086
|
}, {
|
|
1066
|
-
title: m(() => [...v[2] || (v[2] = [
|
|
1067
|
-
default: m(() => [
|
|
1087
|
+
title: m(() => [...v[2] || (v[2] = [S(" 系统设置 ", -1)])]),
|
|
1088
|
+
default: m(() => [w("div", et, [w("div", tt, [a(Pe, {
|
|
1068
1089
|
"selected-keys": t.value,
|
|
1069
|
-
"onUpdate:selectedKeys": v[0] || (v[0] = (
|
|
1090
|
+
"onUpdate:selectedKeys": v[0] || (v[0] = (b) => t.value = b),
|
|
1070
1091
|
menus: r.value,
|
|
1071
1092
|
onChange: y
|
|
1072
|
-
}, null, 8, ["selected-keys", "menus"])]),
|
|
1093
|
+
}, null, 8, ["selected-keys", "menus"])]), w("div", it, [t.value[0] === "PersonalInformation" ? (g(), _(Le, {
|
|
1073
1094
|
key: 0,
|
|
1074
1095
|
size: l.value
|
|
1075
|
-
}, null, 8, ["size"])) :
|
|
1096
|
+
}, null, 8, ["size"])) : k("", !0), t.value[0] === "EmailBinding" ? (g(), _(Xe, {
|
|
1076
1097
|
key: 1,
|
|
1077
1098
|
size: l.value
|
|
1078
|
-
}, null, 8, ["size"])) :
|
|
1099
|
+
}, null, 8, ["size"])) : k("", !0), t.value[0] === "SetPassword" ? (g(), _(De, {
|
|
1079
1100
|
key: 2,
|
|
1080
1101
|
size: l.value
|
|
1081
|
-
}, null, 8, ["size"])) :
|
|
1102
|
+
}, null, 8, ["size"])) : k("", !0), t.value[0] === "GithubBinding" ? (g(), _(Ye, {
|
|
1082
1103
|
key: 3,
|
|
1083
1104
|
size: l.value
|
|
1084
|
-
}, null, 8, ["size"])) :
|
|
1105
|
+
}, null, 8, ["size"])) : k("", !0)])])]),
|
|
1085
1106
|
_: 1
|
|
1086
1107
|
}, 8, ["visible"]));
|
|
1087
1108
|
}
|
|
1088
|
-
}),
|
|
1109
|
+
}), fi = /* @__PURE__ */ A(st, [["__scopeId", "data-v-cd51dcec"]]);
|
|
1089
1110
|
function nt() {
|
|
1090
1111
|
re().then(({
|
|
1091
1112
|
data: i
|
|
1092
1113
|
}) => {
|
|
1093
1114
|
const {
|
|
1094
|
-
redirectUri:
|
|
1115
|
+
redirectUri: s
|
|
1095
1116
|
} = i;
|
|
1096
|
-
|
|
1117
|
+
s ? window.location.href = s : console.error("GitHub OAuth 重定向URL为空");
|
|
1097
1118
|
}).catch((i) => {
|
|
1098
1119
|
console.error("GitHub OAuth 授权失败:", i);
|
|
1099
1120
|
});
|
|
@@ -1109,7 +1130,7 @@ function ot() {
|
|
|
1109
1130
|
microsoftAuth: at
|
|
1110
1131
|
};
|
|
1111
1132
|
}
|
|
1112
|
-
const
|
|
1133
|
+
const j = /* @__PURE__ */ z({
|
|
1113
1134
|
__name: "AuthkitOAuthItem",
|
|
1114
1135
|
props: {
|
|
1115
1136
|
size: {
|
|
@@ -1129,10 +1150,10 @@ const D = /* @__PURE__ */ k({
|
|
|
1129
1150
|
},
|
|
1130
1151
|
emits: [],
|
|
1131
1152
|
setup(i, {
|
|
1132
|
-
emit:
|
|
1153
|
+
emit: s
|
|
1133
1154
|
}) {
|
|
1134
1155
|
const u = i;
|
|
1135
|
-
return (
|
|
1156
|
+
return (n, o) => (g(), _(e(U), {
|
|
1136
1157
|
class: "OAuthItem",
|
|
1137
1158
|
type: "primary",
|
|
1138
1159
|
size: u.size
|
|
@@ -1140,7 +1161,7 @@ const D = /* @__PURE__ */ k({
|
|
|
1140
1161
|
icon: m(() => [a(e(Ue), {
|
|
1141
1162
|
icon: u.icon
|
|
1142
1163
|
}, null, 8, ["icon"])]),
|
|
1143
|
-
default: m(() => [
|
|
1164
|
+
default: m(() => [w("span", null, B(u.label), 1)]),
|
|
1144
1165
|
_: 1
|
|
1145
1166
|
}, 8, ["size"]));
|
|
1146
1167
|
}
|
|
@@ -1148,7 +1169,7 @@ const D = /* @__PURE__ */ k({
|
|
|
1148
1169
|
class: "OAuthList"
|
|
1149
1170
|
}, ut = {
|
|
1150
1171
|
class: "OAuthList"
|
|
1151
|
-
}, dt = /* @__PURE__ */
|
|
1172
|
+
}, dt = /* @__PURE__ */ z({
|
|
1152
1173
|
__name: "AuthkitOAuthList",
|
|
1153
1174
|
props: {
|
|
1154
1175
|
size: {
|
|
@@ -1162,45 +1183,45 @@ const D = /* @__PURE__ */ k({
|
|
|
1162
1183
|
},
|
|
1163
1184
|
setup(i) {
|
|
1164
1185
|
const {
|
|
1165
|
-
appsData:
|
|
1186
|
+
appsData: s
|
|
1166
1187
|
} = J(), u = i, {
|
|
1167
|
-
githubAuth:
|
|
1188
|
+
githubAuth: n,
|
|
1168
1189
|
googleAuth: o,
|
|
1169
1190
|
microsoftAuth: l
|
|
1170
|
-
} = ot(), t = T(() => !(!
|
|
1171
|
-
return (r, y) => (g(),
|
|
1191
|
+
} = ot(), t = T(() => !(!s.value.oauth.google.enabled && !s.value.oauth.microsoft.enabled && !s.value.oauth.github.enabled && !s.value.oauth.wechat.enabled));
|
|
1192
|
+
return (r, y) => (g(), P("div", rt, [t.value ? (g(), _(e(ye), {
|
|
1172
1193
|
key: 0,
|
|
1173
1194
|
orientation: "center"
|
|
1174
1195
|
}, {
|
|
1175
|
-
default: m(() => [...y[0] || (y[0] = [
|
|
1196
|
+
default: m(() => [...y[0] || (y[0] = [S("OAuth登陆", -1)])]),
|
|
1176
1197
|
_: 1
|
|
1177
|
-
})) :
|
|
1198
|
+
})) : k("", !0), w("div", ut, [e(s).oauth.github.enabled ? (g(), _(j, {
|
|
1178
1199
|
key: 0,
|
|
1179
1200
|
icon: "mdi:github",
|
|
1180
1201
|
label: "Github",
|
|
1181
1202
|
size: u.size,
|
|
1182
|
-
onClick: e(
|
|
1183
|
-
}, null, 8, ["size", "onClick"])) :
|
|
1203
|
+
onClick: e(n)
|
|
1204
|
+
}, null, 8, ["size", "onClick"])) : k("", !0), e(s).oauth.google.enabled ? (g(), _(j, {
|
|
1184
1205
|
key: 1,
|
|
1185
1206
|
icon: "mdi:google",
|
|
1186
1207
|
label: "Google",
|
|
1187
1208
|
size: u.size,
|
|
1188
1209
|
onClick: e(o)
|
|
1189
|
-
}, null, 8, ["size", "onClick"])) :
|
|
1210
|
+
}, null, 8, ["size", "onClick"])) : k("", !0), e(s).oauth.microsoft.enabled ? (g(), _(j, {
|
|
1190
1211
|
key: 2,
|
|
1191
1212
|
icon: "mdi:microsoft",
|
|
1192
1213
|
label: "Microsoft",
|
|
1193
1214
|
size: u.size,
|
|
1194
1215
|
onClick: e(l)
|
|
1195
|
-
}, null, 8, ["size", "onClick"])) :
|
|
1216
|
+
}, null, 8, ["size", "onClick"])) : k("", !0)])]));
|
|
1196
1217
|
}
|
|
1197
|
-
}), mt = /* @__PURE__ */
|
|
1218
|
+
}), mt = /* @__PURE__ */ A(dt, [["__scopeId", "data-v-49ca3bca"]]), ct = {
|
|
1198
1219
|
class: "content"
|
|
1199
1220
|
}, ft = {
|
|
1200
1221
|
class: "sendVerifyCodeItem"
|
|
1201
1222
|
}, pt = {
|
|
1202
1223
|
class: "handle"
|
|
1203
|
-
}, vt = /* @__PURE__ */
|
|
1224
|
+
}, vt = /* @__PURE__ */ z({
|
|
1204
1225
|
__name: "AuthkitPasswordUpdateAndVerify",
|
|
1205
1226
|
props: {
|
|
1206
1227
|
size: {
|
|
@@ -1215,9 +1236,9 @@ const D = /* @__PURE__ */ k({
|
|
|
1215
1236
|
},
|
|
1216
1237
|
emits: ["signIn", "submit"],
|
|
1217
1238
|
setup(i, {
|
|
1218
|
-
emit:
|
|
1239
|
+
emit: s
|
|
1219
1240
|
}) {
|
|
1220
|
-
const u =
|
|
1241
|
+
const u = s, n = i, o = h(), l = h(!1), t = h(), r = h({
|
|
1221
1242
|
email: void 0,
|
|
1222
1243
|
userToken: void 0,
|
|
1223
1244
|
emailVerifyId: void 0,
|
|
@@ -1242,14 +1263,14 @@ const D = /* @__PURE__ */ k({
|
|
|
1242
1263
|
p || u("submit", r.value);
|
|
1243
1264
|
});
|
|
1244
1265
|
}
|
|
1245
|
-
return (p, d) => (g(),
|
|
1266
|
+
return (p, d) => (g(), P("div", ct, [a(e(O), {
|
|
1246
1267
|
ref_key: "formRef",
|
|
1247
1268
|
ref: t,
|
|
1248
1269
|
model: r.value,
|
|
1249
|
-
size:
|
|
1270
|
+
size: n.size,
|
|
1250
1271
|
"auto-label-width": ""
|
|
1251
1272
|
}, {
|
|
1252
|
-
default: m(() => [a(e(
|
|
1273
|
+
default: m(() => [a(e(I), {
|
|
1253
1274
|
field: "email",
|
|
1254
1275
|
label: "邮箱",
|
|
1255
1276
|
"hide-label": "",
|
|
@@ -1267,7 +1288,7 @@ const D = /* @__PURE__ */ k({
|
|
|
1267
1288
|
placeholder: "请输入邮箱"
|
|
1268
1289
|
}, null, 8, ["modelValue"])]),
|
|
1269
1290
|
_: 1
|
|
1270
|
-
}), a(e(
|
|
1291
|
+
}), a(e(I), {
|
|
1271
1292
|
field: "userToken",
|
|
1272
1293
|
label: "验证码",
|
|
1273
1294
|
"hide-label": "",
|
|
@@ -1276,14 +1297,14 @@ const D = /* @__PURE__ */ k({
|
|
|
1276
1297
|
message: "请输入验证码"
|
|
1277
1298
|
}]
|
|
1278
1299
|
}, {
|
|
1279
|
-
default: m(() => [
|
|
1300
|
+
default: m(() => [w("div", ft, [a(e(V), {
|
|
1280
1301
|
modelValue: r.value.userToken,
|
|
1281
1302
|
"onUpdate:modelValue": d[1] || (d[1] = (f) => r.value.userToken = f),
|
|
1282
1303
|
placeholder: "请输入验证码"
|
|
1283
1304
|
}, null, 8, ["modelValue"]), a(X, {
|
|
1284
1305
|
ref_key: "SendVerifyCodeRef",
|
|
1285
1306
|
ref: o,
|
|
1286
|
-
size:
|
|
1307
|
+
size: n.size,
|
|
1287
1308
|
loading: l.value,
|
|
1288
1309
|
style: {
|
|
1289
1310
|
"margin-left": "10px"
|
|
@@ -1291,7 +1312,7 @@ const D = /* @__PURE__ */ k({
|
|
|
1291
1312
|
onSend: y
|
|
1292
1313
|
}, null, 8, ["size", "loading"])])]),
|
|
1293
1314
|
_: 1
|
|
1294
|
-
}), a(e(
|
|
1315
|
+
}), a(e(I), {
|
|
1295
1316
|
field: "password",
|
|
1296
1317
|
label: "密码",
|
|
1297
1318
|
"hide-label": "",
|
|
@@ -1311,7 +1332,7 @@ const D = /* @__PURE__ */ k({
|
|
|
1311
1332
|
autocomplete: ""
|
|
1312
1333
|
}, null, 8, ["modelValue"])]),
|
|
1313
1334
|
_: 1
|
|
1314
|
-
}), a(e(
|
|
1335
|
+
}), a(e(I), {
|
|
1315
1336
|
field: "confirmPassword",
|
|
1316
1337
|
label: "确认密码",
|
|
1317
1338
|
"hide-label": "",
|
|
@@ -1335,44 +1356,44 @@ const D = /* @__PURE__ */ k({
|
|
|
1335
1356
|
autocomplete: ""
|
|
1336
1357
|
}, null, 8, ["modelValue"])]),
|
|
1337
1358
|
_: 1
|
|
1338
|
-
}, 8, ["rules"]),
|
|
1359
|
+
}, 8, ["rules"]), w("div", pt, [a(e(U), {
|
|
1339
1360
|
type: "primary",
|
|
1340
|
-
loading:
|
|
1361
|
+
loading: n.loading,
|
|
1341
1362
|
long: "",
|
|
1342
|
-
size:
|
|
1363
|
+
size: n.size,
|
|
1343
1364
|
onClick: c
|
|
1344
1365
|
}, {
|
|
1345
|
-
default: m(() => [...d[4] || (d[4] = [
|
|
1366
|
+
default: m(() => [...d[4] || (d[4] = [S(" 提交 ", -1)])]),
|
|
1346
1367
|
_: 1
|
|
1347
1368
|
}, 8, ["loading", "size"])])]),
|
|
1348
1369
|
_: 1
|
|
1349
1370
|
}, 8, ["model", "size"])]));
|
|
1350
1371
|
}
|
|
1351
|
-
}), gt = /* @__PURE__ */
|
|
1372
|
+
}), gt = /* @__PURE__ */ A(vt, [["__scopeId", "data-v-1c83f44a"]]), yt = {
|
|
1352
1373
|
class: "SwitchSignIn"
|
|
1353
|
-
}, ht = /* @__PURE__ */
|
|
1374
|
+
}, ht = /* @__PURE__ */ z({
|
|
1354
1375
|
__name: "AuthkitSwitchSignIn",
|
|
1355
1376
|
emits: ["switchSignIn"],
|
|
1356
1377
|
setup(i, {
|
|
1357
|
-
emit:
|
|
1378
|
+
emit: s
|
|
1358
1379
|
}) {
|
|
1359
|
-
const u =
|
|
1360
|
-
function
|
|
1380
|
+
const u = s;
|
|
1381
|
+
function n() {
|
|
1361
1382
|
u("switchSignIn");
|
|
1362
1383
|
}
|
|
1363
|
-
return (o, l) => (g(),
|
|
1384
|
+
return (o, l) => (g(), P("div", yt, [w("span", null, [l[1] || (l[1] = w("span", null, "已经有账号?", -1)), a(e(F), {
|
|
1364
1385
|
style: {
|
|
1365
1386
|
padding: "0px"
|
|
1366
1387
|
},
|
|
1367
|
-
onClick:
|
|
1388
|
+
onClick: n
|
|
1368
1389
|
}, {
|
|
1369
|
-
default: m(() => [...l[0] || (l[0] = [
|
|
1390
|
+
default: m(() => [...l[0] || (l[0] = [S("去登陆", -1)])]),
|
|
1370
1391
|
_: 1
|
|
1371
1392
|
})])]));
|
|
1372
1393
|
}
|
|
1373
|
-
}), ue = /* @__PURE__ */
|
|
1394
|
+
}), ue = /* @__PURE__ */ A(ht, [["__scopeId", "data-v-fc1d3903"]]), _t = {
|
|
1374
1395
|
class: "ResetPassword"
|
|
1375
|
-
},
|
|
1396
|
+
}, wt = /* @__PURE__ */ z({
|
|
1376
1397
|
__name: "AuthkitResetPassword",
|
|
1377
1398
|
props: {
|
|
1378
1399
|
size: {
|
|
@@ -1388,55 +1409,55 @@ const D = /* @__PURE__ */ k({
|
|
|
1388
1409
|
},
|
|
1389
1410
|
emits: ["switchSignIn", "submit"],
|
|
1390
1411
|
setup(i, {
|
|
1391
|
-
emit:
|
|
1412
|
+
emit: s
|
|
1392
1413
|
}) {
|
|
1393
|
-
const u =
|
|
1414
|
+
const u = s, n = i;
|
|
1394
1415
|
function o() {
|
|
1395
1416
|
u("switchSignIn");
|
|
1396
1417
|
}
|
|
1397
1418
|
async function l(t) {
|
|
1398
1419
|
u("submit", t);
|
|
1399
1420
|
}
|
|
1400
|
-
return (t, r) => (g(),
|
|
1421
|
+
return (t, r) => (g(), P("div", _t, [a(gt, {
|
|
1401
1422
|
loading: i.loading,
|
|
1402
|
-
size:
|
|
1423
|
+
size: n.size,
|
|
1403
1424
|
onSubmit: l
|
|
1404
1425
|
}, null, 8, ["loading", "size"]), a(ue, {
|
|
1405
1426
|
onSwitchSignIn: o
|
|
1406
1427
|
})]));
|
|
1407
1428
|
}
|
|
1408
|
-
}),
|
|
1429
|
+
}), bt = /* @__PURE__ */ A(wt, [["__scopeId", "data-v-0622cbe3"]]), St = {
|
|
1409
1430
|
class: "ServiceAgreementAndPrivacyProtection"
|
|
1410
|
-
},
|
|
1431
|
+
}, kt = /* @__PURE__ */ z({
|
|
1411
1432
|
__name: "AuthkitServiceAgreementAndPrivacyProtection",
|
|
1412
1433
|
emits: ["toUserServiceAgreement", "toPrivacyPolicy"],
|
|
1413
1434
|
setup(i, {
|
|
1414
|
-
emit:
|
|
1435
|
+
emit: s
|
|
1415
1436
|
}) {
|
|
1416
|
-
const u =
|
|
1417
|
-
function
|
|
1437
|
+
const u = s;
|
|
1438
|
+
function n() {
|
|
1418
1439
|
u("toUserServiceAgreement");
|
|
1419
1440
|
}
|
|
1420
1441
|
function o() {
|
|
1421
1442
|
u("toPrivacyPolicy");
|
|
1422
1443
|
}
|
|
1423
|
-
return (l, t) => (g(),
|
|
1424
|
-
onClick:
|
|
1444
|
+
return (l, t) => (g(), P("div", St, [t[2] || (t[2] = w("span", null, " 注册登陆即表示同意", -1)), a(e(F), {
|
|
1445
|
+
onClick: n
|
|
1425
1446
|
}, {
|
|
1426
|
-
default: m(() => [...t[0] || (t[0] = [
|
|
1447
|
+
default: m(() => [...t[0] || (t[0] = [S("用户服务协议", -1)])]),
|
|
1427
1448
|
_: 1
|
|
1428
|
-
}), t[3] || (t[3] =
|
|
1449
|
+
}), t[3] || (t[3] = w("span", null, " 和 ", -1)), a(e(F), {
|
|
1429
1450
|
onClick: o
|
|
1430
1451
|
}, {
|
|
1431
|
-
default: m(() => [...t[1] || (t[1] = [
|
|
1452
|
+
default: m(() => [...t[1] || (t[1] = [S("隐私协议", -1)])]),
|
|
1432
1453
|
_: 1
|
|
1433
1454
|
})]));
|
|
1434
1455
|
}
|
|
1435
|
-
}),
|
|
1456
|
+
}), zt = /* @__PURE__ */ A(kt, [["__scopeId", "data-v-18e831ec"]]), It = {
|
|
1436
1457
|
class: "content"
|
|
1437
|
-
},
|
|
1458
|
+
}, At = {
|
|
1438
1459
|
class: "handle"
|
|
1439
|
-
},
|
|
1460
|
+
}, Pt = /* @__PURE__ */ z({
|
|
1440
1461
|
__name: "AuthkitPasswordAuth",
|
|
1441
1462
|
props: {
|
|
1442
1463
|
size: {
|
|
@@ -1451,9 +1472,9 @@ const D = /* @__PURE__ */ k({
|
|
|
1451
1472
|
},
|
|
1452
1473
|
emits: ["submit"],
|
|
1453
1474
|
setup(i, {
|
|
1454
|
-
emit:
|
|
1475
|
+
emit: s
|
|
1455
1476
|
}) {
|
|
1456
|
-
const u =
|
|
1477
|
+
const u = s, n = i;
|
|
1457
1478
|
async function o(y, c) {
|
|
1458
1479
|
const p = await Oe({
|
|
1459
1480
|
password: y
|
|
@@ -1474,14 +1495,14 @@ const D = /* @__PURE__ */ k({
|
|
|
1474
1495
|
y || u("submit", t.value);
|
|
1475
1496
|
});
|
|
1476
1497
|
}
|
|
1477
|
-
return (y, c) => (g(),
|
|
1498
|
+
return (y, c) => (g(), P("div", It, [a(e(O), {
|
|
1478
1499
|
ref_key: "formRef",
|
|
1479
1500
|
ref: l,
|
|
1480
1501
|
model: t.value,
|
|
1481
|
-
size:
|
|
1502
|
+
size: n.size,
|
|
1482
1503
|
"auto-label-width": ""
|
|
1483
1504
|
}, {
|
|
1484
|
-
default: m(() => [a(e(
|
|
1505
|
+
default: m(() => [a(e(I), {
|
|
1485
1506
|
field: "email",
|
|
1486
1507
|
label: "邮箱",
|
|
1487
1508
|
"hide-label": "",
|
|
@@ -1501,7 +1522,7 @@ const D = /* @__PURE__ */ k({
|
|
|
1501
1522
|
type: "email"
|
|
1502
1523
|
}, null, 8, ["modelValue"])]),
|
|
1503
1524
|
_: 1
|
|
1504
|
-
}), a(e(
|
|
1525
|
+
}), a(e(I), {
|
|
1505
1526
|
field: "password",
|
|
1506
1527
|
label: "密码",
|
|
1507
1528
|
"hide-label": "",
|
|
@@ -1520,55 +1541,55 @@ const D = /* @__PURE__ */ k({
|
|
|
1520
1541
|
autocomplete: "current-password"
|
|
1521
1542
|
}, null, 8, ["modelValue"])]),
|
|
1522
1543
|
_: 1
|
|
1523
|
-
}, 8, ["rules"]),
|
|
1544
|
+
}, 8, ["rules"]), w("div", At, [a(e(U), {
|
|
1524
1545
|
type: "primary",
|
|
1525
|
-
loading:
|
|
1546
|
+
loading: n.loading,
|
|
1526
1547
|
long: "",
|
|
1527
|
-
size:
|
|
1548
|
+
size: n.size,
|
|
1528
1549
|
onClick: r
|
|
1529
1550
|
}, {
|
|
1530
|
-
default: m(() => [...c[2] || (c[2] = [
|
|
1551
|
+
default: m(() => [...c[2] || (c[2] = [S(" 登陆 ", -1)])]),
|
|
1531
1552
|
_: 1
|
|
1532
1553
|
}, 8, ["loading", "size"])])]),
|
|
1533
1554
|
_: 1
|
|
1534
1555
|
}, 8, ["model", "size"])]));
|
|
1535
1556
|
}
|
|
1536
|
-
}), Vt = /* @__PURE__ */
|
|
1557
|
+
}), Vt = /* @__PURE__ */ A(Pt, [["__scopeId", "data-v-76d6bc26"]]), Ut = {
|
|
1537
1558
|
class: "SwitchSignUpOrResetPassword"
|
|
1538
|
-
}, $t = /* @__PURE__ */
|
|
1559
|
+
}, $t = /* @__PURE__ */ z({
|
|
1539
1560
|
__name: "AuthkitSwitchSignUpOrResetPassword",
|
|
1540
1561
|
emits: ["switchSignUp", "switchResetPassword"],
|
|
1541
1562
|
setup(i, {
|
|
1542
|
-
emit:
|
|
1563
|
+
emit: s
|
|
1543
1564
|
}) {
|
|
1544
|
-
const u =
|
|
1545
|
-
function
|
|
1565
|
+
const u = s;
|
|
1566
|
+
function n() {
|
|
1546
1567
|
u("switchSignUp");
|
|
1547
1568
|
}
|
|
1548
1569
|
function o() {
|
|
1549
1570
|
u("switchResetPassword");
|
|
1550
1571
|
}
|
|
1551
|
-
return (l, t) => (g(),
|
|
1572
|
+
return (l, t) => (g(), P("div", Ut, [w("span", null, [t[1] || (t[1] = w("span", null, " 还没有账户?", -1)), a(e(F), {
|
|
1552
1573
|
style: {
|
|
1553
1574
|
padding: "0px"
|
|
1554
1575
|
},
|
|
1555
|
-
onClick:
|
|
1576
|
+
onClick: n
|
|
1556
1577
|
}, {
|
|
1557
|
-
default: m(() => [...t[0] || (t[0] = [
|
|
1578
|
+
default: m(() => [...t[0] || (t[0] = [S("去注册?", -1)])]),
|
|
1558
1579
|
_: 1
|
|
1559
|
-
})]), a(e(
|
|
1580
|
+
})]), a(e(F), {
|
|
1560
1581
|
style: {
|
|
1561
1582
|
padding: "0px"
|
|
1562
1583
|
},
|
|
1563
1584
|
onClick: o
|
|
1564
1585
|
}, {
|
|
1565
|
-
default: m(() => [...t[2] || (t[2] = [
|
|
1586
|
+
default: m(() => [...t[2] || (t[2] = [S(" 忘记密码?", -1)])]),
|
|
1566
1587
|
_: 1
|
|
1567
1588
|
})]));
|
|
1568
1589
|
}
|
|
1569
|
-
}), Ct = /* @__PURE__ */
|
|
1590
|
+
}), Ct = /* @__PURE__ */ A($t, [["__scopeId", "data-v-14e3aab2"]]), xt = {
|
|
1570
1591
|
class: "SignIn"
|
|
1571
|
-
}, qt = /* @__PURE__ */
|
|
1592
|
+
}, qt = /* @__PURE__ */ z({
|
|
1572
1593
|
__name: "AuthkitSignIn",
|
|
1573
1594
|
props: {
|
|
1574
1595
|
size: {
|
|
@@ -1583,9 +1604,9 @@ const D = /* @__PURE__ */ k({
|
|
|
1583
1604
|
},
|
|
1584
1605
|
emits: ["submit", "switchSignUp", "switchResetPassword"],
|
|
1585
1606
|
setup(i, {
|
|
1586
|
-
emit:
|
|
1607
|
+
emit: s
|
|
1587
1608
|
}) {
|
|
1588
|
-
const u =
|
|
1609
|
+
const u = s, n = i, o = ve(), l = T(() => !!o.OAuth);
|
|
1589
1610
|
function t() {
|
|
1590
1611
|
u("switchSignUp");
|
|
1591
1612
|
}
|
|
@@ -1595,20 +1616,20 @@ const D = /* @__PURE__ */ k({
|
|
|
1595
1616
|
async function y(c) {
|
|
1596
1617
|
u("submit", c);
|
|
1597
1618
|
}
|
|
1598
|
-
return (c, p) => (g(),
|
|
1599
|
-
loading:
|
|
1600
|
-
size:
|
|
1619
|
+
return (c, p) => (g(), P("div", xt, [k("", !0), a(Vt, {
|
|
1620
|
+
loading: n.loading,
|
|
1621
|
+
size: n.size,
|
|
1601
1622
|
onSubmit: y
|
|
1602
1623
|
}, null, 8, ["loading", "size"]), l.value ? se(c.$slots, "OAuth", {
|
|
1603
1624
|
key: 1
|
|
1604
|
-
}, void 0, !0) :
|
|
1625
|
+
}, void 0, !0) : k("", !0), a(Ct, {
|
|
1605
1626
|
onSwitchSignUp: t,
|
|
1606
1627
|
onSwitchResetPassword: r
|
|
1607
1628
|
})]));
|
|
1608
1629
|
}
|
|
1609
|
-
}), Rt = /* @__PURE__ */
|
|
1630
|
+
}), Rt = /* @__PURE__ */ A(qt, [["__scopeId", "data-v-f52ce3b3"]]), Tt = {
|
|
1610
1631
|
class: "SignUp"
|
|
1611
|
-
}, Lt = /* @__PURE__ */
|
|
1632
|
+
}, Lt = /* @__PURE__ */ z({
|
|
1612
1633
|
__name: "AuthkitSignUp",
|
|
1613
1634
|
props: {
|
|
1614
1635
|
size: {
|
|
@@ -1623,24 +1644,24 @@ const D = /* @__PURE__ */ k({
|
|
|
1623
1644
|
},
|
|
1624
1645
|
emits: ["switchSignIn", "submit"],
|
|
1625
1646
|
setup(i, {
|
|
1626
|
-
emit:
|
|
1647
|
+
emit: s
|
|
1627
1648
|
}) {
|
|
1628
|
-
const u =
|
|
1649
|
+
const u = s, n = i;
|
|
1629
1650
|
function o() {
|
|
1630
1651
|
u("switchSignIn");
|
|
1631
1652
|
}
|
|
1632
1653
|
async function l(t) {
|
|
1633
1654
|
u("submit", t);
|
|
1634
1655
|
}
|
|
1635
|
-
return (t, r) => (g(),
|
|
1636
|
-
size:
|
|
1656
|
+
return (t, r) => (g(), P("div", Tt, [a(oe, {
|
|
1657
|
+
size: n.size,
|
|
1637
1658
|
loading: i.loading,
|
|
1638
1659
|
onSubmit: l
|
|
1639
1660
|
}, null, 8, ["size", "loading"]), a(ue, {
|
|
1640
1661
|
onSwitchSignIn: o
|
|
1641
1662
|
})]));
|
|
1642
1663
|
}
|
|
1643
|
-
}), Bt = /* @__PURE__ */
|
|
1664
|
+
}), Bt = /* @__PURE__ */ A(Lt, [["__scopeId", "data-v-058bbbef"]]), Ot = ["src"], Et = /* @__PURE__ */ z({
|
|
1644
1665
|
__name: "AuthkitAuthTitle",
|
|
1645
1666
|
props: {
|
|
1646
1667
|
size: {
|
|
@@ -1660,31 +1681,31 @@ const D = /* @__PURE__ */ k({
|
|
|
1660
1681
|
}
|
|
1661
1682
|
},
|
|
1662
1683
|
setup(i) {
|
|
1663
|
-
const
|
|
1684
|
+
const s = i, u = `${s.size}px`, n = `${s.fontSize}px`, o = `${s.lineHeight}px`, {
|
|
1664
1685
|
currentView: l
|
|
1665
1686
|
} = Z(), {
|
|
1666
1687
|
appsData: t
|
|
1667
1688
|
} = J(), r = T(() => l.value === "signIn" ? `${t.value.name}登录` : l.value === "signUp" ? `${t.value.name}账号注册` : l.value === "resetPassword" ? `${t.value.name}密码重置` : "");
|
|
1668
|
-
return (y, c) => (g(),
|
|
1689
|
+
return (y, c) => (g(), P("div", {
|
|
1669
1690
|
class: "Title",
|
|
1670
|
-
style:
|
|
1671
|
-
fontSize:
|
|
1691
|
+
style: D({
|
|
1692
|
+
fontSize: n,
|
|
1672
1693
|
lineHeight: o
|
|
1673
1694
|
})
|
|
1674
|
-
}, [e(t).applicationLogoUrl ? (g(),
|
|
1695
|
+
}, [e(t).applicationLogoUrl ? (g(), P("img", {
|
|
1675
1696
|
key: 0,
|
|
1676
1697
|
src: e(t).applicationLogoUrl,
|
|
1677
1698
|
srcset: "",
|
|
1678
|
-
style:
|
|
1699
|
+
style: D({
|
|
1679
1700
|
width: u
|
|
1680
1701
|
})
|
|
1681
|
-
}, null, 12, Ot)) :
|
|
1702
|
+
}, null, 12, Ot)) : k("", !0), w("span", null, B(r.value), 1), se(y.$slots, "default", {}, void 0, !0)], 4));
|
|
1682
1703
|
}
|
|
1683
|
-
}), de = /* @__PURE__ */
|
|
1704
|
+
}), de = /* @__PURE__ */ A(Et, [["__scopeId", "data-v-5576db64"]]), Ft = {
|
|
1684
1705
|
class: "Auth"
|
|
1685
|
-
},
|
|
1706
|
+
}, Nt = {
|
|
1686
1707
|
class: "body"
|
|
1687
|
-
}, Gt = /* @__PURE__ */
|
|
1708
|
+
}, Gt = /* @__PURE__ */ z({
|
|
1688
1709
|
__name: "AuthkitAuth",
|
|
1689
1710
|
props: {
|
|
1690
1711
|
size: {
|
|
@@ -1698,9 +1719,9 @@ const D = /* @__PURE__ */ k({
|
|
|
1698
1719
|
},
|
|
1699
1720
|
emits: ["toPrivacyPolicy", "toUserServiceAgreement"],
|
|
1700
1721
|
setup(i, {
|
|
1701
|
-
emit:
|
|
1722
|
+
emit: s
|
|
1702
1723
|
}) {
|
|
1703
|
-
const u = i,
|
|
1724
|
+
const u = i, n = s, {
|
|
1704
1725
|
signInSubmit: o,
|
|
1705
1726
|
signUpSubmit: l,
|
|
1706
1727
|
resetPasswordSubmit: t,
|
|
@@ -1712,19 +1733,19 @@ const D = /* @__PURE__ */ k({
|
|
|
1712
1733
|
switchResetPassword: f,
|
|
1713
1734
|
switchSignIn: v
|
|
1714
1735
|
} = Z(), {
|
|
1715
|
-
appsAuthPageInfoApi:
|
|
1736
|
+
appsAuthPageInfoApi: b
|
|
1716
1737
|
} = J();
|
|
1717
1738
|
function $() {
|
|
1718
|
-
|
|
1739
|
+
n("toPrivacyPolicy");
|
|
1719
1740
|
}
|
|
1720
1741
|
function q() {
|
|
1721
|
-
|
|
1742
|
+
n("toUserServiceAgreement");
|
|
1722
1743
|
}
|
|
1723
|
-
return
|
|
1744
|
+
return b(), (R, C) => (g(), P("div", Ft, [i.showTitle ? (g(), _(de, {
|
|
1724
1745
|
key: 0,
|
|
1725
1746
|
size: 32,
|
|
1726
1747
|
"font-size": 20
|
|
1727
|
-
})) :
|
|
1748
|
+
})) : k("", !0), w("div", Nt, [e(r) === "signIn" ? (g(), _(Rt, {
|
|
1728
1749
|
key: 0,
|
|
1729
1750
|
size: u.size,
|
|
1730
1751
|
loading: e(y),
|
|
@@ -1742,18 +1763,18 @@ const D = /* @__PURE__ */ k({
|
|
|
1742
1763
|
loading: e(c),
|
|
1743
1764
|
onSwitchSignIn: e(v),
|
|
1744
1765
|
onSubmit: C[1] || (C[1] = (x) => e(l)(x))
|
|
1745
|
-
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(r) === "resetPassword" ? (g(), _(
|
|
1766
|
+
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(r) === "resetPassword" ? (g(), _(bt, {
|
|
1746
1767
|
key: 2,
|
|
1747
1768
|
size: u.size,
|
|
1748
1769
|
loading: e(p),
|
|
1749
1770
|
onSwitchSignIn: e(v),
|
|
1750
1771
|
onSubmit: C[2] || (C[2] = (x) => e(t)(x))
|
|
1751
|
-
}, null, 8, ["size", "loading", "onSwitchSignIn"])) :
|
|
1772
|
+
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : k("", !0), a(zt, {
|
|
1752
1773
|
onToPrivacyPolicy: $,
|
|
1753
1774
|
onToUserServiceAgreement: q
|
|
1754
1775
|
})])]));
|
|
1755
1776
|
}
|
|
1756
|
-
}), Ht = /* @__PURE__ */
|
|
1777
|
+
}), Ht = /* @__PURE__ */ A(Gt, [["__scopeId", "data-v-186d2441"]]), Mt = /* @__PURE__ */ z({
|
|
1757
1778
|
__name: "AuthkitAuthModal",
|
|
1758
1779
|
props: {
|
|
1759
1780
|
size: {
|
|
@@ -1767,24 +1788,24 @@ const D = /* @__PURE__ */ k({
|
|
|
1767
1788
|
},
|
|
1768
1789
|
emits: ["confirm", "close", "toPrivacyPolicy", "toUserServiceAgreement"],
|
|
1769
1790
|
setup(i, {
|
|
1770
|
-
emit:
|
|
1791
|
+
emit: s
|
|
1771
1792
|
}) {
|
|
1772
1793
|
const {
|
|
1773
1794
|
addSignInCallback: u
|
|
1774
1795
|
} = Z(), {
|
|
1775
|
-
show:
|
|
1776
|
-
} =
|
|
1796
|
+
show: n
|
|
1797
|
+
} = Ae(), o = i, l = s;
|
|
1777
1798
|
function t(y) {
|
|
1778
1799
|
y(!0);
|
|
1779
1800
|
}
|
|
1780
1801
|
function r() {
|
|
1781
|
-
|
|
1802
|
+
n.value = !1, l("close");
|
|
1782
1803
|
}
|
|
1783
1804
|
return u(() => {
|
|
1784
|
-
|
|
1805
|
+
n.value = !1;
|
|
1785
1806
|
}), (y, c) => (g(), _(e(le), {
|
|
1786
|
-
visible: e(
|
|
1787
|
-
"onUpdate:visible": c[2] || (c[2] = (p) => ie(
|
|
1807
|
+
visible: e(n),
|
|
1808
|
+
"onUpdate:visible": c[2] || (c[2] = (p) => ie(n) ? n.value = p : null),
|
|
1788
1809
|
footer: !1,
|
|
1789
1810
|
"mask-closable": !1,
|
|
1790
1811
|
"title-align": "center",
|
|
@@ -1804,28 +1825,31 @@ const D = /* @__PURE__ */ k({
|
|
|
1804
1825
|
_: 1
|
|
1805
1826
|
}, 8, ["visible"]));
|
|
1806
1827
|
}
|
|
1807
|
-
}),
|
|
1828
|
+
}), pi = /* @__PURE__ */ A(Mt, [["__scopeId", "data-v-6fbefff8"]]);
|
|
1808
1829
|
export {
|
|
1809
|
-
|
|
1830
|
+
fi as A,
|
|
1810
1831
|
oe as E,
|
|
1811
1832
|
mt as O,
|
|
1812
1833
|
gt as P,
|
|
1813
|
-
|
|
1834
|
+
bt as R,
|
|
1814
1835
|
X as S,
|
|
1815
|
-
|
|
1836
|
+
j as _,
|
|
1816
1837
|
Ht as a,
|
|
1817
1838
|
de as b,
|
|
1818
|
-
|
|
1839
|
+
pi as c,
|
|
1819
1840
|
Rt as d,
|
|
1820
1841
|
Bt as e,
|
|
1821
1842
|
Vt as f,
|
|
1822
1843
|
ue as g,
|
|
1823
1844
|
Ct as h,
|
|
1824
|
-
|
|
1845
|
+
zt as i,
|
|
1825
1846
|
Le as j,
|
|
1826
1847
|
Y as k,
|
|
1827
1848
|
Ye as l,
|
|
1828
|
-
|
|
1849
|
+
De as m,
|
|
1829
1850
|
Xe as n,
|
|
1830
|
-
|
|
1851
|
+
je as o,
|
|
1852
|
+
di as p,
|
|
1853
|
+
mi as q,
|
|
1854
|
+
ci as u
|
|
1831
1855
|
};
|