@huyooo/ui 0.4.14 → 0.4.17
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/{AuthkitAppSetting-iL2SVGkm.js → AuthkitAppSetting-MYrqMZAf.js} +391 -390
- package/dist/{AuthkitAuthorize-CLG8uEWI.js → AuthkitAuthorize-CCSa1q9E.js} +1 -1
- package/dist/CustomTable-C6Xcn_J7.js +1355 -0
- package/dist/{FeedbackItem-oNJcZir4.js → FeedbackItem-B1qKrzqe.js} +1 -1
- package/dist/{FeedbackModal-QpDXtZBf.js → FeedbackModal-DzAVNXIR.js} +542 -562
- package/dist/MessageHandle-BLiqnTvy.js +885 -0
- package/dist/{PaySubscriptions-MYoi8Ob_.js → PaySubscriptions-BS6gjndk.js} +1 -1
- package/dist/{ReferrerReferees-CFwb0s28.js → ReferrerReferees-E5Sq9dVw.js} +1 -1
- package/dist/{UserPanel-pfGX77rG.js → UserPanel-OyGW7SGI.js} +201 -177
- package/dist/authkit.js +3 -3
- package/dist/common.js +5 -5
- package/dist/components/Feedback/FeedbackBubbleEnd.vue.d.ts +1 -1
- package/dist/components/Feedback/FeedbackBubbleStart.vue.d.ts +1 -1
- package/dist/components/Feedback/FeedbackDetails.vue.d.ts +1 -0
- package/dist/composables/Authkit/useAuthkitAuth.d.ts +9 -0
- package/dist/composables/Authkit/useAuthkitUsersProfile.d.ts +3 -0
- package/dist/composables.js +1 -1
- package/dist/feedback.js +2 -2
- package/dist/index.js +119 -120
- package/dist/message.js +16 -17
- package/dist/pay.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/useAuthkitProps-BM6B7mZP.js +384 -0
- package/dist/user.js +1 -1
- package/dist/utils/authGuard.d.ts +12 -0
- package/package.json +1 -1
- package/dist/CustomTable-DbiCOvmO.js +0 -1341
- package/dist/InfiniteLoading-BOurBPUR.js +0 -66
- package/dist/MessageHandle-cZ2FXsJ5.js +0 -827
- package/dist/useAuthkitProps-DB04dGw9.js +0 -326
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { defineComponent as S, createBlock as y, openBlock as g, unref as e, withCtx as
|
|
4
|
+
import { defineComponent as S, createBlock as y, openBlock as g, unref as e, withCtx as d, createElementVNode as w, toDisplayString as L, createVNode as l, computed as R, createElementBlock as U, createCommentVNode as k, createTextVNode as z, ref as h, onMounted as N, onUnmounted as se, withDirectives as ve, vShow as ge, useSlots as _e, renderSlot as ne, normalizeStyle as D, isRef as ae, normalizeClass as he, Fragment as W } from "vue";
|
|
5
5
|
import { Button as $, Divider as ye, Form as B, FormItem as I, Input as C, Link as O, Modal as le, Avatar as oe, Textarea as be, Message as E, Alert as T } from "@arco-design/web-vue";
|
|
6
|
-
import { U as K, u as Z, b as we, c as ze, e as ke, f as ie, g as Se, a as J, h as Ae, i as Ie } from "./useAuthkitProps-
|
|
6
|
+
import { U as K, u as Z, b as we, c as ze, e as ke, f as ie, g as Se, a as J, h as Ae, i as Ie } from "./useAuthkitProps-BM6B7mZP.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
import { Icon as Pe } from "@iconify/vue";
|
|
9
9
|
import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -66,16 +66,16 @@ const M = /* @__PURE__ */ S({
|
|
|
66
66
|
setup(i, {
|
|
67
67
|
emit: a
|
|
68
68
|
}) {
|
|
69
|
-
const
|
|
70
|
-
return (s,
|
|
69
|
+
const o = i;
|
|
70
|
+
return (s, f) => (g(), y(e($), {
|
|
71
71
|
class: "OAuthItem",
|
|
72
72
|
type: "primary",
|
|
73
|
-
size:
|
|
73
|
+
size: o.size
|
|
74
74
|
}, {
|
|
75
|
-
icon:
|
|
76
|
-
icon:
|
|
75
|
+
icon: d(() => [l(e(Pe), {
|
|
76
|
+
icon: o.icon
|
|
77
77
|
}, null, 8, ["icon"])]),
|
|
78
|
-
default:
|
|
78
|
+
default: d(() => [w("span", null, L(o.label), 1)]),
|
|
79
79
|
_: 1
|
|
80
80
|
}, 8, ["size"]));
|
|
81
81
|
}
|
|
@@ -98,36 +98,36 @@ const M = /* @__PURE__ */ S({
|
|
|
98
98
|
setup(i) {
|
|
99
99
|
const {
|
|
100
100
|
appsData: a
|
|
101
|
-
} = K(),
|
|
101
|
+
} = K(), o = i, {
|
|
102
102
|
githubAuth: s,
|
|
103
|
-
googleAuth:
|
|
104
|
-
microsoftAuth:
|
|
103
|
+
googleAuth: f,
|
|
104
|
+
microsoftAuth: r
|
|
105
105
|
} = Be(), t = R(() => !(!a.value.oauth.google.enabled && !a.value.oauth.microsoft.enabled && !a.value.oauth.github.enabled && !a.value.oauth.wechat.enabled));
|
|
106
|
-
return (
|
|
106
|
+
return (u, _) => (g(), U("div", Oe, [t.value ? (g(), y(e(ye), {
|
|
107
107
|
key: 0,
|
|
108
108
|
orientation: "center"
|
|
109
109
|
}, {
|
|
110
|
-
default:
|
|
110
|
+
default: d(() => _[0] || (_[0] = [z("OAuth登陆")])),
|
|
111
111
|
_: 1,
|
|
112
112
|
__: [0]
|
|
113
113
|
})) : k("", !0), w("div", Ee, [e(a).oauth.github.enabled ? (g(), y(M, {
|
|
114
114
|
key: 0,
|
|
115
115
|
icon: "mdi:github",
|
|
116
116
|
label: "Github",
|
|
117
|
-
size:
|
|
117
|
+
size: o.size,
|
|
118
118
|
onClick: e(s)
|
|
119
119
|
}, null, 8, ["size", "onClick"])) : k("", !0), e(a).oauth.google.enabled ? (g(), y(M, {
|
|
120
120
|
key: 1,
|
|
121
121
|
icon: "mdi:google",
|
|
122
122
|
label: "Google",
|
|
123
|
-
size:
|
|
124
|
-
onClick: e(
|
|
123
|
+
size: o.size,
|
|
124
|
+
onClick: e(f)
|
|
125
125
|
}, null, 8, ["size", "onClick"])) : k("", !0), e(a).oauth.microsoft.enabled ? (g(), y(M, {
|
|
126
126
|
key: 2,
|
|
127
127
|
icon: "mdi:microsoft",
|
|
128
128
|
label: "Microsoft",
|
|
129
|
-
size:
|
|
130
|
-
onClick: e(
|
|
129
|
+
size: o.size,
|
|
130
|
+
onClick: e(r)
|
|
131
131
|
}, null, 8, ["size", "onClick"])) : k("", !0)])]));
|
|
132
132
|
}
|
|
133
133
|
}), Fe = /* @__PURE__ */ P(Ne, [["__scopeId", "data-v-7c6620c0"]]);
|
|
@@ -168,33 +168,33 @@ const Me = /* @__PURE__ */ S({
|
|
|
168
168
|
emits: ["send"],
|
|
169
169
|
setup(i, {
|
|
170
170
|
expose: a,
|
|
171
|
-
emit:
|
|
171
|
+
emit: o
|
|
172
172
|
}) {
|
|
173
|
-
const s =
|
|
173
|
+
const s = o, f = i, r = h(!1);
|
|
174
174
|
let t;
|
|
175
|
-
const
|
|
176
|
-
|
|
175
|
+
const u = h(0), _ = R(() => u.value.toString().padStart(2, "0")), n = R(() => u.value > 0), m = () => {
|
|
176
|
+
r.value && (u.value <= 0 ? (clearInterval(t), r.value = !1) : u.value--);
|
|
177
177
|
};
|
|
178
|
-
function
|
|
178
|
+
function c() {
|
|
179
179
|
s("send");
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
|
|
181
|
+
function p() {
|
|
182
|
+
u.value = 60, r.value = !0, t && clearInterval(t), t = setInterval(m, 1e3);
|
|
183
183
|
}
|
|
184
184
|
return N(() => {
|
|
185
185
|
}), a({
|
|
186
|
-
startCountFn:
|
|
186
|
+
startCountFn: p
|
|
187
187
|
}), se(() => {
|
|
188
188
|
t && clearInterval(t);
|
|
189
189
|
}), (v, b) => (g(), y(e($), {
|
|
190
190
|
class: "OAuthItem",
|
|
191
191
|
type: "primary",
|
|
192
|
-
size:
|
|
192
|
+
size: f.size,
|
|
193
193
|
disabled: n.value,
|
|
194
|
-
loading:
|
|
195
|
-
onClick:
|
|
194
|
+
loading: f.loading,
|
|
195
|
+
onClick: c
|
|
196
196
|
}, {
|
|
197
|
-
default:
|
|
197
|
+
default: d(() => [b[0] || (b[0] = w("span", null, " 发送验证码", -1)), ve(w("span", {
|
|
198
198
|
class: "verify-code-timer"
|
|
199
199
|
}, L(`(${_.value})`), 513), [[ge, n.value]])]),
|
|
200
200
|
_: 1,
|
|
@@ -224,7 +224,7 @@ const Me = /* @__PURE__ */ S({
|
|
|
224
224
|
setup(i, {
|
|
225
225
|
emit: a
|
|
226
226
|
}) {
|
|
227
|
-
const
|
|
227
|
+
const o = a, s = i, f = h(), r = h(!1), t = h(), u = h({
|
|
228
228
|
email: void 0,
|
|
229
229
|
userToken: void 0,
|
|
230
230
|
emailVerifyId: void 0,
|
|
@@ -232,31 +232,31 @@ const Me = /* @__PURE__ */ S({
|
|
|
232
232
|
confirmPassword: void 0
|
|
233
233
|
});
|
|
234
234
|
async function _() {
|
|
235
|
-
t.value.validateField(["email"]).then((
|
|
236
|
-
|
|
237
|
-
email:
|
|
235
|
+
t.value.validateField(["email"]).then((m) => {
|
|
236
|
+
m || (r.value = !0, Q({
|
|
237
|
+
email: u.value.email
|
|
238
238
|
}).then(({
|
|
239
|
-
data:
|
|
239
|
+
data: c
|
|
240
240
|
}) => {
|
|
241
|
-
|
|
241
|
+
r.value = !1, u.value.emailVerifyId = c.emailVerifyId, f.value.startCountFn();
|
|
242
242
|
}).catch(() => {
|
|
243
|
-
|
|
243
|
+
r.value = !1;
|
|
244
244
|
}));
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
247
|
async function n() {
|
|
248
|
-
t.value.validate().then((
|
|
249
|
-
|
|
248
|
+
t.value.validate().then((m) => {
|
|
249
|
+
m || o("submit", u.value);
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
|
-
return (
|
|
252
|
+
return (m, c) => (g(), U("div", je, [l(e(B), {
|
|
253
253
|
ref_key: "formRef",
|
|
254
254
|
ref: t,
|
|
255
|
-
model:
|
|
255
|
+
model: u.value,
|
|
256
256
|
size: s.size,
|
|
257
257
|
"auto-label-width": ""
|
|
258
258
|
}, {
|
|
259
|
-
default:
|
|
259
|
+
default: d(() => [l(e(I), {
|
|
260
260
|
field: "email",
|
|
261
261
|
label: "邮箱",
|
|
262
262
|
"hide-label": "",
|
|
@@ -268,9 +268,9 @@ const Me = /* @__PURE__ */ S({
|
|
|
268
268
|
message: "请输入有效的邮箱"
|
|
269
269
|
}]
|
|
270
270
|
}, {
|
|
271
|
-
default:
|
|
272
|
-
modelValue:
|
|
273
|
-
"onUpdate:modelValue":
|
|
271
|
+
default: d(() => [l(e(C), {
|
|
272
|
+
modelValue: u.value.email,
|
|
273
|
+
"onUpdate:modelValue": c[0] || (c[0] = (p) => u.value.email = p),
|
|
274
274
|
placeholder: "请输入邮箱"
|
|
275
275
|
}, null, 8, ["modelValue"])]),
|
|
276
276
|
_: 1
|
|
@@ -283,15 +283,15 @@ const Me = /* @__PURE__ */ S({
|
|
|
283
283
|
message: "请输入验证码"
|
|
284
284
|
}]
|
|
285
285
|
}, {
|
|
286
|
-
default:
|
|
287
|
-
modelValue:
|
|
288
|
-
"onUpdate:modelValue":
|
|
286
|
+
default: d(() => [w("div", De, [l(e(C), {
|
|
287
|
+
modelValue: u.value.userToken,
|
|
288
|
+
"onUpdate:modelValue": c[1] || (c[1] = (p) => u.value.userToken = p),
|
|
289
289
|
placeholder: "请输入验证码"
|
|
290
290
|
}, null, 8, ["modelValue"]), l(X, {
|
|
291
291
|
ref_key: "SendVerifyCodeRef",
|
|
292
|
-
ref:
|
|
292
|
+
ref: f,
|
|
293
293
|
size: s.size,
|
|
294
|
-
loading:
|
|
294
|
+
loading: r.value,
|
|
295
295
|
style: {
|
|
296
296
|
"margin-left": "10px"
|
|
297
297
|
},
|
|
@@ -310,9 +310,9 @@ const Me = /* @__PURE__ */ S({
|
|
|
310
310
|
message: "密码不能少于10字符"
|
|
311
311
|
}]
|
|
312
312
|
}, {
|
|
313
|
-
default:
|
|
314
|
-
modelValue:
|
|
315
|
-
"onUpdate:modelValue":
|
|
313
|
+
default: d(() => [l(e(C), {
|
|
314
|
+
modelValue: u.value.password,
|
|
315
|
+
"onUpdate:modelValue": c[2] || (c[2] = (p) => u.value.password = p),
|
|
316
316
|
placeholder: "请输入密码",
|
|
317
317
|
type: "password",
|
|
318
318
|
autocomplete: ""
|
|
@@ -329,14 +329,14 @@ const Me = /* @__PURE__ */ S({
|
|
|
329
329
|
minLength: 10,
|
|
330
330
|
message: "确认密码不能少于10字符"
|
|
331
331
|
}, {
|
|
332
|
-
validator: (
|
|
333
|
-
|
|
332
|
+
validator: (p, v) => {
|
|
333
|
+
p !== u.value.password ? v("两次密码输入不一致,请重新输入") : v();
|
|
334
334
|
}
|
|
335
335
|
}]
|
|
336
336
|
}, {
|
|
337
|
-
default:
|
|
338
|
-
modelValue:
|
|
339
|
-
"onUpdate:modelValue":
|
|
337
|
+
default: d(() => [l(e(C), {
|
|
338
|
+
modelValue: u.value.confirmPassword,
|
|
339
|
+
"onUpdate:modelValue": c[3] || (c[3] = (p) => u.value.confirmPassword = p),
|
|
340
340
|
placeholder: "请输入确认密码密码",
|
|
341
341
|
type: "password",
|
|
342
342
|
autocomplete: ""
|
|
@@ -349,7 +349,7 @@ const Me = /* @__PURE__ */ S({
|
|
|
349
349
|
size: s.size,
|
|
350
350
|
onClick: n
|
|
351
351
|
}, {
|
|
352
|
-
default:
|
|
352
|
+
default: d(() => c[4] || (c[4] = [z(" 提交 ")])),
|
|
353
353
|
_: 1,
|
|
354
354
|
__: [4]
|
|
355
355
|
}, 8, ["loading", "size"])])]),
|
|
@@ -364,17 +364,17 @@ const Me = /* @__PURE__ */ S({
|
|
|
364
364
|
setup(i, {
|
|
365
365
|
emit: a
|
|
366
366
|
}) {
|
|
367
|
-
const
|
|
367
|
+
const o = a;
|
|
368
368
|
function s() {
|
|
369
|
-
|
|
369
|
+
o("switchSignIn");
|
|
370
370
|
}
|
|
371
|
-
return (
|
|
371
|
+
return (f, r) => (g(), U("div", Je, [w("span", null, [r[1] || (r[1] = w("span", null, "已经有账号?", -1)), l(e(O), {
|
|
372
372
|
style: {
|
|
373
373
|
padding: "0px"
|
|
374
374
|
},
|
|
375
375
|
onClick: s
|
|
376
376
|
}, {
|
|
377
|
-
default:
|
|
377
|
+
default: d(() => r[0] || (r[0] = [z("去登陆")])),
|
|
378
378
|
_: 1,
|
|
379
379
|
__: [0]
|
|
380
380
|
})])]));
|
|
@@ -399,19 +399,19 @@ const Me = /* @__PURE__ */ S({
|
|
|
399
399
|
setup(i, {
|
|
400
400
|
emit: a
|
|
401
401
|
}) {
|
|
402
|
-
const
|
|
403
|
-
function
|
|
404
|
-
|
|
402
|
+
const o = a, s = i;
|
|
403
|
+
function f() {
|
|
404
|
+
o("switchSignIn");
|
|
405
405
|
}
|
|
406
|
-
async function
|
|
407
|
-
|
|
406
|
+
async function r() {
|
|
407
|
+
o("submit");
|
|
408
408
|
}
|
|
409
|
-
return (t,
|
|
409
|
+
return (t, u) => (g(), U("div", Xe, [l(Ze, {
|
|
410
410
|
loading: i.loading,
|
|
411
411
|
size: s.size,
|
|
412
|
-
onSubmit:
|
|
412
|
+
onSubmit: r
|
|
413
413
|
}, null, 8, ["loading", "size"]), l(ue, {
|
|
414
|
-
onSwitchSignIn:
|
|
414
|
+
onSwitchSignIn: f
|
|
415
415
|
})]));
|
|
416
416
|
}
|
|
417
417
|
}), et = /* @__PURE__ */ P(Ye, [["__scopeId", "data-v-d9f5cafa"]]), tt = {
|
|
@@ -422,23 +422,23 @@ const Me = /* @__PURE__ */ S({
|
|
|
422
422
|
setup(i, {
|
|
423
423
|
emit: a
|
|
424
424
|
}) {
|
|
425
|
-
const
|
|
425
|
+
const o = a;
|
|
426
426
|
function s() {
|
|
427
|
-
|
|
427
|
+
o("toUserServiceAgreement");
|
|
428
428
|
}
|
|
429
|
-
function
|
|
430
|
-
|
|
429
|
+
function f() {
|
|
430
|
+
o("toPrivacyPolicy");
|
|
431
431
|
}
|
|
432
|
-
return (
|
|
432
|
+
return (r, t) => (g(), U("div", tt, [t[2] || (t[2] = w("span", null, " 注册登陆即表示同意", -1)), l(e(O), {
|
|
433
433
|
onClick: s
|
|
434
434
|
}, {
|
|
435
|
-
default:
|
|
435
|
+
default: d(() => t[0] || (t[0] = [z("用户服务协议")])),
|
|
436
436
|
_: 1,
|
|
437
437
|
__: [0]
|
|
438
438
|
}), t[3] || (t[3] = w("span", null, " 和 ", -1)), l(e(O), {
|
|
439
|
-
onClick:
|
|
439
|
+
onClick: f
|
|
440
440
|
}, {
|
|
441
|
-
default:
|
|
441
|
+
default: d(() => t[1] || (t[1] = [z("隐私协议")])),
|
|
442
442
|
_: 1,
|
|
443
443
|
__: [1]
|
|
444
444
|
})]));
|
|
@@ -464,35 +464,35 @@ const Me = /* @__PURE__ */ S({
|
|
|
464
464
|
setup(i, {
|
|
465
465
|
emit: a
|
|
466
466
|
}) {
|
|
467
|
-
const
|
|
468
|
-
async function
|
|
469
|
-
const
|
|
467
|
+
const o = a, s = i;
|
|
468
|
+
async function f(_, n) {
|
|
469
|
+
const m = await He({
|
|
470
470
|
password: _
|
|
471
471
|
});
|
|
472
|
-
|
|
472
|
+
m || n("密码验证请求出错!");
|
|
473
473
|
const {
|
|
474
|
-
isValidate:
|
|
475
|
-
message:
|
|
476
|
-
} =
|
|
477
|
-
|
|
474
|
+
isValidate: c,
|
|
475
|
+
message: p
|
|
476
|
+
} = m.data;
|
|
477
|
+
c || n(p), n();
|
|
478
478
|
}
|
|
479
|
-
const
|
|
479
|
+
const r = h(), t = h({
|
|
480
480
|
email: void 0,
|
|
481
481
|
password: void 0
|
|
482
482
|
});
|
|
483
|
-
async function
|
|
484
|
-
|
|
485
|
-
_ ||
|
|
483
|
+
async function u() {
|
|
484
|
+
r.value.validate().then((_) => {
|
|
485
|
+
_ || o("submit", t.value);
|
|
486
486
|
});
|
|
487
487
|
}
|
|
488
|
-
return (_, n) => (g(),
|
|
488
|
+
return (_, n) => (g(), U("div", nt, [l(e(B), {
|
|
489
489
|
ref_key: "formRef",
|
|
490
|
-
ref:
|
|
490
|
+
ref: r,
|
|
491
491
|
model: t.value,
|
|
492
492
|
size: s.size,
|
|
493
493
|
"auto-label-width": ""
|
|
494
494
|
}, {
|
|
495
|
-
default:
|
|
495
|
+
default: d(() => [l(e(I), {
|
|
496
496
|
field: "email",
|
|
497
497
|
label: "邮箱",
|
|
498
498
|
"hide-label": "",
|
|
@@ -504,9 +504,9 @@ const Me = /* @__PURE__ */ S({
|
|
|
504
504
|
message: "请输入有效的邮箱"
|
|
505
505
|
}]
|
|
506
506
|
}, {
|
|
507
|
-
default:
|
|
507
|
+
default: d(() => [l(e(C), {
|
|
508
508
|
modelValue: t.value.email,
|
|
509
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
509
|
+
"onUpdate:modelValue": n[0] || (n[0] = (m) => t.value.email = m),
|
|
510
510
|
placeholder: "请输入邮箱"
|
|
511
511
|
}, null, 8, ["modelValue"])]),
|
|
512
512
|
_: 1
|
|
@@ -518,12 +518,12 @@ const Me = /* @__PURE__ */ S({
|
|
|
518
518
|
required: !0,
|
|
519
519
|
message: "请输入密码"
|
|
520
520
|
}, {
|
|
521
|
-
validator:
|
|
521
|
+
validator: f
|
|
522
522
|
}]
|
|
523
523
|
}, {
|
|
524
|
-
default:
|
|
524
|
+
default: d(() => [l(e(C), {
|
|
525
525
|
modelValue: t.value.password,
|
|
526
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
526
|
+
"onUpdate:modelValue": n[1] || (n[1] = (m) => t.value.password = m),
|
|
527
527
|
placeholder: "请输入密码",
|
|
528
528
|
type: "password"
|
|
529
529
|
}, null, 8, ["modelValue"])]),
|
|
@@ -533,9 +533,9 @@ const Me = /* @__PURE__ */ S({
|
|
|
533
533
|
loading: s.loading,
|
|
534
534
|
long: "",
|
|
535
535
|
size: s.size,
|
|
536
|
-
onClick:
|
|
536
|
+
onClick: u
|
|
537
537
|
}, {
|
|
538
|
-
default:
|
|
538
|
+
default: d(() => n[2] || (n[2] = [z(" 登陆 ")])),
|
|
539
539
|
_: 1,
|
|
540
540
|
__: [2]
|
|
541
541
|
}, 8, ["loading", "size"])])]),
|
|
@@ -550,29 +550,29 @@ const Me = /* @__PURE__ */ S({
|
|
|
550
550
|
setup(i, {
|
|
551
551
|
emit: a
|
|
552
552
|
}) {
|
|
553
|
-
const
|
|
553
|
+
const o = a;
|
|
554
554
|
function s() {
|
|
555
|
-
|
|
555
|
+
o("switchSignUp");
|
|
556
556
|
}
|
|
557
|
-
function
|
|
558
|
-
|
|
557
|
+
function f() {
|
|
558
|
+
o("switchResetPassword");
|
|
559
559
|
}
|
|
560
|
-
return (
|
|
560
|
+
return (r, t) => (g(), U("div", rt, [w("span", null, [t[1] || (t[1] = w("span", null, " 还没有账户?", -1)), l(e(O), {
|
|
561
561
|
style: {
|
|
562
562
|
padding: "0px"
|
|
563
563
|
},
|
|
564
564
|
onClick: s
|
|
565
565
|
}, {
|
|
566
|
-
default:
|
|
566
|
+
default: d(() => t[0] || (t[0] = [z("去注册?")])),
|
|
567
567
|
_: 1,
|
|
568
568
|
__: [0]
|
|
569
569
|
})]), l(e(O), {
|
|
570
570
|
style: {
|
|
571
571
|
padding: "0px"
|
|
572
572
|
},
|
|
573
|
-
onClick:
|
|
573
|
+
onClick: f
|
|
574
574
|
}, {
|
|
575
|
-
default:
|
|
575
|
+
default: d(() => t[2] || (t[2] = [z(" 忘记密码?")])),
|
|
576
576
|
_: 1,
|
|
577
577
|
__: [2]
|
|
578
578
|
})]));
|
|
@@ -596,25 +596,25 @@ const Me = /* @__PURE__ */ S({
|
|
|
596
596
|
setup(i, {
|
|
597
597
|
emit: a
|
|
598
598
|
}) {
|
|
599
|
-
const
|
|
599
|
+
const o = a, s = i, f = _e(), r = R(() => !!f.OAuth);
|
|
600
600
|
function t() {
|
|
601
|
-
|
|
601
|
+
o("switchSignUp");
|
|
602
602
|
}
|
|
603
|
-
function
|
|
604
|
-
|
|
603
|
+
function u() {
|
|
604
|
+
o("switchResetPassword");
|
|
605
605
|
}
|
|
606
606
|
async function _(n) {
|
|
607
|
-
|
|
607
|
+
o("submit", n);
|
|
608
608
|
}
|
|
609
|
-
return (n,
|
|
609
|
+
return (n, m) => (g(), U("div", mt, [k("", !0), l(ot, {
|
|
610
610
|
loading: s.loading,
|
|
611
611
|
size: s.size,
|
|
612
612
|
onSubmit: _
|
|
613
|
-
}, null, 8, ["loading", "size"]),
|
|
613
|
+
}, null, 8, ["loading", "size"]), r.value ? ne(n.$slots, "OAuth", {
|
|
614
614
|
key: 1
|
|
615
615
|
}, void 0, !0) : k("", !0), l(dt, {
|
|
616
616
|
onSwitchSignUp: t,
|
|
617
|
-
onSwitchResetPassword:
|
|
617
|
+
onSwitchResetPassword: u
|
|
618
618
|
})]));
|
|
619
619
|
}
|
|
620
620
|
}), ft = /* @__PURE__ */ P(ct, [["__scopeId", "data-v-07112823"]]), pt = {
|
|
@@ -640,7 +640,7 @@ const Me = /* @__PURE__ */ S({
|
|
|
640
640
|
setup(i, {
|
|
641
641
|
emit: a
|
|
642
642
|
}) {
|
|
643
|
-
const
|
|
643
|
+
const o = a, s = i, f = h(), r = h(!1), t = h(), u = h({
|
|
644
644
|
email: void 0,
|
|
645
645
|
userToken: void 0,
|
|
646
646
|
emailVerifyId: void 0,
|
|
@@ -648,31 +648,31 @@ const Me = /* @__PURE__ */ S({
|
|
|
648
648
|
confirmPassword: void 0
|
|
649
649
|
});
|
|
650
650
|
async function _() {
|
|
651
|
-
t.value.validateField(["email"]).then((
|
|
652
|
-
|
|
653
|
-
email:
|
|
651
|
+
t.value.validateField(["email"]).then((m) => {
|
|
652
|
+
m || (r.value = !0, Q({
|
|
653
|
+
email: u.value.email
|
|
654
654
|
}).then(({
|
|
655
|
-
data:
|
|
655
|
+
data: c
|
|
656
656
|
}) => {
|
|
657
|
-
|
|
657
|
+
u.value.emailVerifyId = c.emailVerifyId, r.value = !1, f.value.startCountFn();
|
|
658
658
|
}).catch(() => {
|
|
659
|
-
|
|
659
|
+
r.value = !1;
|
|
660
660
|
}));
|
|
661
661
|
});
|
|
662
662
|
}
|
|
663
663
|
async function n() {
|
|
664
|
-
t.value.validate().then((
|
|
665
|
-
|
|
664
|
+
t.value.validate().then((m) => {
|
|
665
|
+
m || o("submit", u.value);
|
|
666
666
|
});
|
|
667
667
|
}
|
|
668
|
-
return (
|
|
668
|
+
return (m, c) => (g(), U("div", pt, [l(e(B), {
|
|
669
669
|
ref_key: "formRef",
|
|
670
670
|
ref: t,
|
|
671
|
-
model:
|
|
671
|
+
model: u.value,
|
|
672
672
|
size: s.size,
|
|
673
673
|
"auto-label-width": ""
|
|
674
674
|
}, {
|
|
675
|
-
default:
|
|
675
|
+
default: d(() => [l(e(I), {
|
|
676
676
|
field: "email",
|
|
677
677
|
label: "邮箱",
|
|
678
678
|
"hide-label": "",
|
|
@@ -684,9 +684,9 @@ const Me = /* @__PURE__ */ S({
|
|
|
684
684
|
message: "请输入有效的邮箱"
|
|
685
685
|
}]
|
|
686
686
|
}, {
|
|
687
|
-
default:
|
|
688
|
-
modelValue:
|
|
689
|
-
"onUpdate:modelValue":
|
|
687
|
+
default: d(() => [l(e(C), {
|
|
688
|
+
modelValue: u.value.email,
|
|
689
|
+
"onUpdate:modelValue": c[0] || (c[0] = (p) => u.value.email = p),
|
|
690
690
|
placeholder: "请输入邮箱"
|
|
691
691
|
}, null, 8, ["modelValue"])]),
|
|
692
692
|
_: 1
|
|
@@ -699,15 +699,15 @@ const Me = /* @__PURE__ */ S({
|
|
|
699
699
|
message: "请输入验证码"
|
|
700
700
|
}]
|
|
701
701
|
}, {
|
|
702
|
-
default:
|
|
703
|
-
modelValue:
|
|
704
|
-
"onUpdate:modelValue":
|
|
702
|
+
default: d(() => [w("div", vt, [l(e(C), {
|
|
703
|
+
modelValue: u.value.userToken,
|
|
704
|
+
"onUpdate:modelValue": c[1] || (c[1] = (p) => u.value.userToken = p),
|
|
705
705
|
placeholder: "请输入验证码"
|
|
706
706
|
}, null, 8, ["modelValue"]), l(X, {
|
|
707
707
|
ref_key: "SendVerifyCodeRef",
|
|
708
|
-
ref:
|
|
708
|
+
ref: f,
|
|
709
709
|
size: s.size,
|
|
710
|
-
loading:
|
|
710
|
+
loading: r.value,
|
|
711
711
|
style: {
|
|
712
712
|
"margin-left": "10px"
|
|
713
713
|
},
|
|
@@ -726,9 +726,9 @@ const Me = /* @__PURE__ */ S({
|
|
|
726
726
|
message: "密码不能少于10字符"
|
|
727
727
|
}]
|
|
728
728
|
}, {
|
|
729
|
-
default:
|
|
730
|
-
modelValue:
|
|
731
|
-
"onUpdate:modelValue":
|
|
729
|
+
default: d(() => [l(e(C), {
|
|
730
|
+
modelValue: u.value.password,
|
|
731
|
+
"onUpdate:modelValue": c[2] || (c[2] = (p) => u.value.password = p),
|
|
732
732
|
placeholder: "请输入密码",
|
|
733
733
|
type: "password"
|
|
734
734
|
}, null, 8, ["modelValue"])]),
|
|
@@ -744,14 +744,14 @@ const Me = /* @__PURE__ */ S({
|
|
|
744
744
|
minLength: 10,
|
|
745
745
|
message: "确认密码不能少于10字符"
|
|
746
746
|
}, {
|
|
747
|
-
validator: (
|
|
748
|
-
|
|
747
|
+
validator: (p, v) => {
|
|
748
|
+
p !== u.value.password ? v("两次密码输入不一致,请重新输入") : v();
|
|
749
749
|
}
|
|
750
750
|
}]
|
|
751
751
|
}, {
|
|
752
|
-
default:
|
|
753
|
-
modelValue:
|
|
754
|
-
"onUpdate:modelValue":
|
|
752
|
+
default: d(() => [l(e(C), {
|
|
753
|
+
modelValue: u.value.confirmPassword,
|
|
754
|
+
"onUpdate:modelValue": c[3] || (c[3] = (p) => u.value.confirmPassword = p),
|
|
755
755
|
placeholder: "请输入确认密码密码",
|
|
756
756
|
type: "password"
|
|
757
757
|
}, null, 8, ["modelValue"])]),
|
|
@@ -763,7 +763,7 @@ const Me = /* @__PURE__ */ S({
|
|
|
763
763
|
size: s.size,
|
|
764
764
|
onClick: n
|
|
765
765
|
}, {
|
|
766
|
-
default:
|
|
766
|
+
default: d(() => c[4] || (c[4] = [z(" 提交 ")])),
|
|
767
767
|
_: 1,
|
|
768
768
|
__: [4]
|
|
769
769
|
}, 8, ["loading", "size"])])]),
|
|
@@ -789,19 +789,19 @@ const Me = /* @__PURE__ */ S({
|
|
|
789
789
|
setup(i, {
|
|
790
790
|
emit: a
|
|
791
791
|
}) {
|
|
792
|
-
const
|
|
793
|
-
function
|
|
794
|
-
|
|
792
|
+
const o = a, s = i;
|
|
793
|
+
function f() {
|
|
794
|
+
o("switchSignIn");
|
|
795
795
|
}
|
|
796
|
-
async function
|
|
797
|
-
|
|
796
|
+
async function r(t) {
|
|
797
|
+
o("submit", t);
|
|
798
798
|
}
|
|
799
|
-
return (t,
|
|
799
|
+
return (t, u) => (g(), U("div", ht, [l(de, {
|
|
800
800
|
size: s.size,
|
|
801
801
|
loading: i.loading,
|
|
802
|
-
onSubmit:
|
|
802
|
+
onSubmit: r
|
|
803
803
|
}, null, 8, ["size", "loading"]), l(ue, {
|
|
804
|
-
onSwitchSignIn:
|
|
804
|
+
onSwitchSignIn: f
|
|
805
805
|
})]));
|
|
806
806
|
}
|
|
807
807
|
}), bt = /* @__PURE__ */ P(yt, [["__scopeId", "data-v-bb136d90"]]), wt = ["src"], zt = /* @__PURE__ */ S({
|
|
@@ -824,25 +824,25 @@ const Me = /* @__PURE__ */ S({
|
|
|
824
824
|
}
|
|
825
825
|
},
|
|
826
826
|
setup(i) {
|
|
827
|
-
const a = i,
|
|
828
|
-
currentView:
|
|
827
|
+
const a = i, o = `${a.size}px`, s = `${a.fontSize}px`, f = `${a.lineHeight}px`, {
|
|
828
|
+
currentView: r
|
|
829
829
|
} = Z(), {
|
|
830
830
|
appsData: t
|
|
831
|
-
} = K(),
|
|
832
|
-
return (_, n) => (g(),
|
|
831
|
+
} = K(), u = R(() => r.value === "signIn" ? `${t.value.name}登录` : r.value === "signUp" ? `${t.value.name}账号注册` : r.value === "resetPassword" ? `${t.value.name}密码重置` : "");
|
|
832
|
+
return (_, n) => (g(), U("div", {
|
|
833
833
|
class: "Title",
|
|
834
834
|
style: D({
|
|
835
835
|
fontSize: s,
|
|
836
|
-
lineHeight:
|
|
836
|
+
lineHeight: f
|
|
837
837
|
})
|
|
838
|
-
}, [e(t).applicationLogoUrl ? (g(),
|
|
838
|
+
}, [e(t).applicationLogoUrl ? (g(), U("img", {
|
|
839
839
|
key: 0,
|
|
840
840
|
src: e(t).applicationLogoUrl,
|
|
841
841
|
srcset: "",
|
|
842
842
|
style: D({
|
|
843
|
-
width:
|
|
843
|
+
width: o
|
|
844
844
|
})
|
|
845
|
-
}, null, 12, wt)) : k("", !0), w("span", null, L(
|
|
845
|
+
}, null, 12, wt)) : k("", !0), w("span", null, L(u.value), 1), ne(_.$slots, "default", {}, void 0, !0)], 4));
|
|
846
846
|
}
|
|
847
847
|
}), me = /* @__PURE__ */ P(zt, [["__scopeId", "data-v-8255764a"]]), kt = {
|
|
848
848
|
class: "Auth"
|
|
@@ -864,16 +864,16 @@ const Me = /* @__PURE__ */ S({
|
|
|
864
864
|
setup(i, {
|
|
865
865
|
emit: a
|
|
866
866
|
}) {
|
|
867
|
-
const
|
|
868
|
-
signInSubmit:
|
|
869
|
-
signUpSubmit:
|
|
867
|
+
const o = i, s = a, {
|
|
868
|
+
signInSubmit: f,
|
|
869
|
+
signUpSubmit: r,
|
|
870
870
|
resetPasswordSubmit: t,
|
|
871
|
-
currentView:
|
|
871
|
+
currentView: u,
|
|
872
872
|
authSignInLoading: _,
|
|
873
873
|
authSignUpLoading: n,
|
|
874
|
-
resetPasswordLoading:
|
|
875
|
-
switchSignUp:
|
|
876
|
-
switchResetPassword:
|
|
874
|
+
resetPasswordLoading: m,
|
|
875
|
+
switchSignUp: c,
|
|
876
|
+
switchResetPassword: p,
|
|
877
877
|
switchSignIn: v
|
|
878
878
|
} = Z(), {
|
|
879
879
|
appsAuthPageInfoApi: b
|
|
@@ -881,40 +881,40 @@ const Me = /* @__PURE__ */ S({
|
|
|
881
881
|
function q() {
|
|
882
882
|
s("toPrivacyPolicy");
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function V() {
|
|
885
885
|
s("toUserServiceAgreement");
|
|
886
886
|
}
|
|
887
|
-
return b(), (A, x) => (g(),
|
|
887
|
+
return b(), (A, x) => (g(), U("div", kt, [i.showTitle ? (g(), y(me, {
|
|
888
888
|
key: 0,
|
|
889
889
|
size: 32,
|
|
890
890
|
"font-size": 20
|
|
891
|
-
})) : k("", !0), w("div", St, [e(
|
|
891
|
+
})) : k("", !0), w("div", St, [e(u) === "signIn" ? (g(), y(ft, {
|
|
892
892
|
key: 0,
|
|
893
|
-
size:
|
|
893
|
+
size: o.size,
|
|
894
894
|
loading: e(_),
|
|
895
|
-
onSwitchSignUp: e(
|
|
896
|
-
onSwitchResetPassword: e(
|
|
897
|
-
onSubmit: e(
|
|
895
|
+
onSwitchSignUp: e(c),
|
|
896
|
+
onSwitchResetPassword: e(p),
|
|
897
|
+
onSubmit: e(f)
|
|
898
898
|
}, {
|
|
899
|
-
OAuth:
|
|
900
|
-
size:
|
|
899
|
+
OAuth: d(() => [l(Fe, {
|
|
900
|
+
size: o.size
|
|
901
901
|
}, null, 8, ["size"])]),
|
|
902
902
|
_: 1
|
|
903
|
-
}, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword", "onSubmit"])) : e(
|
|
903
|
+
}, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword", "onSubmit"])) : e(u) === "signUp" ? (g(), y(bt, {
|
|
904
904
|
key: 1,
|
|
905
|
-
size:
|
|
905
|
+
size: o.size,
|
|
906
906
|
loading: e(n),
|
|
907
907
|
onSwitchSignIn: e(v),
|
|
908
|
-
onSubmit: e(
|
|
909
|
-
}, null, 8, ["size", "loading", "onSwitchSignIn", "onSubmit"])) : e(
|
|
908
|
+
onSubmit: e(r)
|
|
909
|
+
}, null, 8, ["size", "loading", "onSwitchSignIn", "onSubmit"])) : e(u) === "resetPassword" ? (g(), y(et, {
|
|
910
910
|
key: 2,
|
|
911
|
-
size:
|
|
912
|
-
loading: e(
|
|
911
|
+
size: o.size,
|
|
912
|
+
loading: e(m),
|
|
913
913
|
onSwitchSignIn: e(v),
|
|
914
914
|
onSubmit: e(t)
|
|
915
915
|
}, null, 8, ["size", "loading", "onSwitchSignIn", "onSubmit"])) : k("", !0), l(st, {
|
|
916
916
|
onToPrivacyPolicy: q,
|
|
917
|
-
onToUserServiceAgreement:
|
|
917
|
+
onToUserServiceAgreement: V
|
|
918
918
|
})])]));
|
|
919
919
|
}
|
|
920
920
|
}), It = /* @__PURE__ */ P(At, [["__scopeId", "data-v-865d3320"]]), Pt = /* @__PURE__ */ S({
|
|
@@ -934,21 +934,21 @@ const Me = /* @__PURE__ */ S({
|
|
|
934
934
|
emit: a
|
|
935
935
|
}) {
|
|
936
936
|
const {
|
|
937
|
-
addSignInCallback:
|
|
937
|
+
addSignInCallback: o
|
|
938
938
|
} = Z(), {
|
|
939
939
|
show: s
|
|
940
|
-
} = we(),
|
|
940
|
+
} = we(), f = i, r = a;
|
|
941
941
|
function t(_) {
|
|
942
942
|
_(!0);
|
|
943
943
|
}
|
|
944
|
-
function
|
|
945
|
-
s.value = !1,
|
|
944
|
+
function u() {
|
|
945
|
+
s.value = !1, r("close");
|
|
946
946
|
}
|
|
947
|
-
return
|
|
947
|
+
return o(() => {
|
|
948
948
|
s.value = !1;
|
|
949
949
|
}), (_, n) => (g(), y(e(le), {
|
|
950
950
|
visible: e(s),
|
|
951
|
-
"onUpdate:visible": n[0] || (n[0] = (
|
|
951
|
+
"onUpdate:visible": n[0] || (n[0] = (m) => ae(s) ? s.value = m : null),
|
|
952
952
|
footer: !1,
|
|
953
953
|
"mask-closable": !1,
|
|
954
954
|
"title-align": "center",
|
|
@@ -956,12 +956,12 @@ const Me = /* @__PURE__ */ S({
|
|
|
956
956
|
width: "auto",
|
|
957
957
|
"modal-class": "SignInModalClass",
|
|
958
958
|
onBeforeOk: t,
|
|
959
|
-
onClose:
|
|
959
|
+
onClose: u
|
|
960
960
|
}, {
|
|
961
|
-
title:
|
|
962
|
-
default:
|
|
961
|
+
title: d(() => [l(me)]),
|
|
962
|
+
default: d(() => [l(It, {
|
|
963
963
|
"show-title": !1,
|
|
964
|
-
size:
|
|
964
|
+
size: f.size
|
|
965
965
|
}, null, 8, ["size"])]),
|
|
966
966
|
_: 1
|
|
967
967
|
}, 8, ["visible"]));
|
|
@@ -995,23 +995,23 @@ const Me = /* @__PURE__ */ S({
|
|
|
995
995
|
setup(i, {
|
|
996
996
|
emit: a
|
|
997
997
|
}) {
|
|
998
|
-
const
|
|
999
|
-
[`${
|
|
1000
|
-
}]),
|
|
998
|
+
const o = Ce("icon"), s = R(() => [o, `${o}-camera`, {
|
|
999
|
+
[`${o}-spin`]: i.spin
|
|
1000
|
+
}]), f = R(() => {
|
|
1001
1001
|
const t = {};
|
|
1002
1002
|
return i.size && (t.fontSize = $e(i.size) ? `${i.size}px` : i.size), i.rotate && (t.transform = `rotate(${i.rotate}deg)`), t;
|
|
1003
1003
|
});
|
|
1004
1004
|
return {
|
|
1005
1005
|
cls: s,
|
|
1006
|
-
innerStyle:
|
|
1006
|
+
innerStyle: f,
|
|
1007
1007
|
onClick: (t) => {
|
|
1008
1008
|
a("click", t);
|
|
1009
1009
|
}
|
|
1010
1010
|
};
|
|
1011
1011
|
}
|
|
1012
1012
|
}), Ut = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1013
|
-
function Ct(i, a,
|
|
1014
|
-
return g(),
|
|
1013
|
+
function Ct(i, a, o, s, f, r) {
|
|
1014
|
+
return g(), U("svg", {
|
|
1015
1015
|
viewBox: "0 0 48 48",
|
|
1016
1016
|
fill: "none",
|
|
1017
1017
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1029,8 +1029,8 @@ function Ct(i, a, r, s, c, u) {
|
|
|
1029
1029
|
var j = /* @__PURE__ */ Ue(Vt, [["render", Ct]]);
|
|
1030
1030
|
const $t = Object.assign(j, {
|
|
1031
1031
|
install: (i, a) => {
|
|
1032
|
-
var
|
|
1033
|
-
const s = (
|
|
1032
|
+
var o;
|
|
1033
|
+
const s = (o = a == null ? void 0 : a.iconPrefix) != null ? o : "";
|
|
1034
1034
|
i.component(s + j.name, j);
|
|
1035
1035
|
}
|
|
1036
1036
|
}), xt = {
|
|
@@ -1048,31 +1048,31 @@ const $t = Object.assign(j, {
|
|
|
1048
1048
|
emit: a
|
|
1049
1049
|
}) {
|
|
1050
1050
|
const {
|
|
1051
|
-
appId:
|
|
1051
|
+
appId: o,
|
|
1052
1052
|
bucketId: s,
|
|
1053
|
-
prefixUrl:
|
|
1054
|
-
bucket:
|
|
1053
|
+
prefixUrl: f,
|
|
1054
|
+
bucket: r,
|
|
1055
1055
|
region: t
|
|
1056
|
-
} = ze(),
|
|
1056
|
+
} = ze(), u = a, _ = i, n = h({
|
|
1057
1057
|
id: void 0,
|
|
1058
1058
|
nickname: "",
|
|
1059
1059
|
description: "",
|
|
1060
1060
|
avatar: "",
|
|
1061
1061
|
avatarUrl: ""
|
|
1062
|
-
}),
|
|
1062
|
+
}), m = h(!1), c = h(), p = h(!1);
|
|
1063
1063
|
function v() {
|
|
1064
|
-
|
|
1065
|
-
data:
|
|
1064
|
+
p.value = !0, ke().then(({
|
|
1065
|
+
data: V
|
|
1066
1066
|
}) => {
|
|
1067
|
-
|
|
1067
|
+
p.value = !1, n.value.id = V.id, n.value.nickname = V.nickname, n.value.description = V.description, n.value.avatar = V.avatar, n.value.avatarUrl = V.avatarUrl;
|
|
1068
1068
|
}).catch(() => {
|
|
1069
|
-
|
|
1069
|
+
p.value = !1;
|
|
1070
1070
|
});
|
|
1071
1071
|
}
|
|
1072
1072
|
function b() {
|
|
1073
|
-
|
|
1074
|
-
if (!
|
|
1075
|
-
|
|
1073
|
+
c.value.validate().then((V) => {
|
|
1074
|
+
if (!V) {
|
|
1075
|
+
p.value = !0;
|
|
1076
1076
|
const A = {
|
|
1077
1077
|
id: n.value.id,
|
|
1078
1078
|
nickname: n.value.nickname,
|
|
@@ -1082,9 +1082,9 @@ const $t = Object.assign(j, {
|
|
|
1082
1082
|
ie(A).then(({
|
|
1083
1083
|
data: x
|
|
1084
1084
|
}) => {
|
|
1085
|
-
|
|
1085
|
+
p.value = !1, E.success("更新成功"), n.value.avatarUrl = x.avatarUrl, u("submit");
|
|
1086
1086
|
}).catch(() => {
|
|
1087
|
-
|
|
1087
|
+
p.value = !1;
|
|
1088
1088
|
});
|
|
1089
1089
|
}
|
|
1090
1090
|
});
|
|
@@ -1092,24 +1092,24 @@ const $t = Object.assign(j, {
|
|
|
1092
1092
|
v();
|
|
1093
1093
|
const q = () => {
|
|
1094
1094
|
const {
|
|
1095
|
-
uploadFile:
|
|
1095
|
+
uploadFile: V
|
|
1096
1096
|
} = Ve({
|
|
1097
|
-
appId:
|
|
1097
|
+
appId: o.value,
|
|
1098
1098
|
bucketId: s.value,
|
|
1099
|
-
baseURL:
|
|
1100
|
-
bucket:
|
|
1099
|
+
baseURL: f.value,
|
|
1100
|
+
bucket: r.value,
|
|
1101
1101
|
region: t.value
|
|
1102
1102
|
}), A = document.createElement("input");
|
|
1103
1103
|
A.type = "file", A.accept = "image/*", A.style.display = "none", document.body.append(A), A.addEventListener("change", async (x) => {
|
|
1104
1104
|
var te;
|
|
1105
1105
|
const ee = (te = x.target.files) == null ? void 0 : te[0];
|
|
1106
1106
|
if (ee) {
|
|
1107
|
-
|
|
1107
|
+
m.value = !0;
|
|
1108
1108
|
try {
|
|
1109
|
-
|
|
1109
|
+
V({
|
|
1110
1110
|
file: ee,
|
|
1111
1111
|
onFileFinish(H, Zt, fe) {
|
|
1112
|
-
|
|
1112
|
+
m.value = !0;
|
|
1113
1113
|
const pe = {
|
|
1114
1114
|
id: n.value.id,
|
|
1115
1115
|
nickname: n.value.nickname,
|
|
@@ -1117,30 +1117,30 @@ const $t = Object.assign(j, {
|
|
|
1117
1117
|
avatar: fe.Key
|
|
1118
1118
|
};
|
|
1119
1119
|
ie(pe).then(() => {
|
|
1120
|
-
|
|
1120
|
+
m.value = !1, E.success("更新成功"), v(), u("submit");
|
|
1121
1121
|
}).catch(() => {
|
|
1122
|
-
|
|
1122
|
+
m.value = !1;
|
|
1123
1123
|
});
|
|
1124
1124
|
},
|
|
1125
1125
|
onError(H) {
|
|
1126
|
-
console.error("上传图片失败"),
|
|
1126
|
+
console.error("上传图片失败"), m.value = !1;
|
|
1127
1127
|
}
|
|
1128
1128
|
});
|
|
1129
1129
|
} catch (H) {
|
|
1130
|
-
console.error("上传图片失败", H),
|
|
1130
|
+
console.error("上传图片失败", H), m.value = !1;
|
|
1131
1131
|
}
|
|
1132
1132
|
}
|
|
1133
1133
|
A.remove();
|
|
1134
1134
|
}), A.click();
|
|
1135
1135
|
};
|
|
1136
|
-
return (
|
|
1136
|
+
return (V, A) => (g(), y(e(B), {
|
|
1137
1137
|
ref_key: "formRef",
|
|
1138
|
-
ref:
|
|
1138
|
+
ref: c,
|
|
1139
1139
|
model: n.value,
|
|
1140
1140
|
"auto-label-width": "",
|
|
1141
1141
|
size: _.size
|
|
1142
1142
|
}, {
|
|
1143
|
-
default:
|
|
1143
|
+
default: d(() => [l(e(I), {
|
|
1144
1144
|
field: "avatar",
|
|
1145
1145
|
label: "头像",
|
|
1146
1146
|
rules: [{
|
|
@@ -1148,7 +1148,7 @@ const $t = Object.assign(j, {
|
|
|
1148
1148
|
message: "请上传头像"
|
|
1149
1149
|
}]
|
|
1150
1150
|
}, {
|
|
1151
|
-
default:
|
|
1151
|
+
default: d(() => [l(e(oe), {
|
|
1152
1152
|
"image-url": n.value.avatarUrl,
|
|
1153
1153
|
size: 42,
|
|
1154
1154
|
"trigger-icon-style": {
|
|
@@ -1156,7 +1156,7 @@ const $t = Object.assign(j, {
|
|
|
1156
1156
|
},
|
|
1157
1157
|
onClick: q
|
|
1158
1158
|
}, {
|
|
1159
|
-
"trigger-icon":
|
|
1159
|
+
"trigger-icon": d(() => [l(e($t))]),
|
|
1160
1160
|
_: 1
|
|
1161
1161
|
}, 8, ["image-url"])]),
|
|
1162
1162
|
_: 1
|
|
@@ -1168,7 +1168,7 @@ const $t = Object.assign(j, {
|
|
|
1168
1168
|
message: "请输入昵称"
|
|
1169
1169
|
}]
|
|
1170
1170
|
}, {
|
|
1171
|
-
default:
|
|
1171
|
+
default: d(() => [l(e(C), {
|
|
1172
1172
|
modelValue: n.value.nickname,
|
|
1173
1173
|
"onUpdate:modelValue": A[0] || (A[0] = (x) => n.value.nickname = x),
|
|
1174
1174
|
placeholder: "请输入昵称"
|
|
@@ -1182,7 +1182,7 @@ const $t = Object.assign(j, {
|
|
|
1182
1182
|
message: "请输入描述"
|
|
1183
1183
|
}]
|
|
1184
1184
|
}, {
|
|
1185
|
-
default:
|
|
1185
|
+
default: d(() => [l(e(be), {
|
|
1186
1186
|
modelValue: n.value.description,
|
|
1187
1187
|
"onUpdate:modelValue": A[1] || (A[1] = (x) => n.value.description = x),
|
|
1188
1188
|
placeholder: "请输入描述",
|
|
@@ -1197,12 +1197,12 @@ const $t = Object.assign(j, {
|
|
|
1197
1197
|
label: "",
|
|
1198
1198
|
rules: []
|
|
1199
1199
|
}, {
|
|
1200
|
-
default:
|
|
1200
|
+
default: d(() => [w("div", xt, [l(e($), {
|
|
1201
1201
|
type: "primary",
|
|
1202
|
-
loading:
|
|
1202
|
+
loading: p.value,
|
|
1203
1203
|
onClick: b
|
|
1204
1204
|
}, {
|
|
1205
|
-
default:
|
|
1205
|
+
default: d(() => A[2] || (A[2] = [z(" 提交 ")])),
|
|
1206
1206
|
_: 1,
|
|
1207
1207
|
__: [2]
|
|
1208
1208
|
}, 8, ["loading"])])]),
|
|
@@ -1213,10 +1213,10 @@ const $t = Object.assign(j, {
|
|
|
1213
1213
|
}
|
|
1214
1214
|
}), Rt = /* @__PURE__ */ P(qt, [["__scopeId", "data-v-5a1cf51b"]]);
|
|
1215
1215
|
function ce(i, a = 3) {
|
|
1216
|
-
const
|
|
1217
|
-
if (
|
|
1218
|
-
const s = i.slice(0, a),
|
|
1219
|
-
return s + "***" +
|
|
1216
|
+
const o = i.indexOf("@");
|
|
1217
|
+
if (o > 1) {
|
|
1218
|
+
const s = i.slice(0, a), f = i.slice(o);
|
|
1219
|
+
return s + "***" + f;
|
|
1220
1220
|
}
|
|
1221
1221
|
return i;
|
|
1222
1222
|
}
|
|
@@ -1241,46 +1241,46 @@ const Tt = {
|
|
|
1241
1241
|
setup(i, {
|
|
1242
1242
|
emit: a
|
|
1243
1243
|
}) {
|
|
1244
|
-
const
|
|
1244
|
+
const o = a, s = i, f = R(() => ce(s.email)), r = h(), t = h(!1), u = h(!1), _ = h(), n = h({
|
|
1245
1245
|
userToken: void 0,
|
|
1246
1246
|
emailVerifyId: void 0
|
|
1247
1247
|
});
|
|
1248
|
-
async function
|
|
1248
|
+
async function m() {
|
|
1249
1249
|
t.value = !0, Q({
|
|
1250
1250
|
email: s.email
|
|
1251
1251
|
}).then(({
|
|
1252
|
-
data:
|
|
1252
|
+
data: p
|
|
1253
1253
|
}) => {
|
|
1254
|
-
n.value.emailVerifyId =
|
|
1254
|
+
n.value.emailVerifyId = p.emailVerifyId, t.value = !1, r.value.startCountFn();
|
|
1255
1255
|
}).catch(() => {
|
|
1256
1256
|
t.value = !1;
|
|
1257
1257
|
});
|
|
1258
1258
|
}
|
|
1259
|
-
async function
|
|
1260
|
-
_.value.validate(["userToken"]).then((
|
|
1261
|
-
if (!
|
|
1262
|
-
|
|
1259
|
+
async function c() {
|
|
1260
|
+
_.value.validate(["userToken"]).then((p) => {
|
|
1261
|
+
if (!p) {
|
|
1262
|
+
u.value = !0;
|
|
1263
1263
|
const v = {
|
|
1264
1264
|
email: s.email,
|
|
1265
1265
|
userToken: n.value.userToken,
|
|
1266
1266
|
emailVerifyId: n.value.emailVerifyId
|
|
1267
1267
|
};
|
|
1268
1268
|
Ge(v).then(() => {
|
|
1269
|
-
|
|
1269
|
+
u.value = !1, o("next");
|
|
1270
1270
|
}).catch(() => {
|
|
1271
|
-
|
|
1271
|
+
u.value = !1;
|
|
1272
1272
|
});
|
|
1273
1273
|
}
|
|
1274
1274
|
});
|
|
1275
1275
|
}
|
|
1276
|
-
return (
|
|
1276
|
+
return (p, v) => (g(), y(e(B), {
|
|
1277
1277
|
ref_key: "formRef",
|
|
1278
1278
|
ref: _,
|
|
1279
1279
|
model: n.value,
|
|
1280
1280
|
"auto-label-width": "",
|
|
1281
1281
|
size: s.size
|
|
1282
1282
|
}, {
|
|
1283
|
-
default:
|
|
1283
|
+
default: d(() => [l(e(I), {
|
|
1284
1284
|
field: "email",
|
|
1285
1285
|
label: "邮箱",
|
|
1286
1286
|
rules: [{
|
|
@@ -1291,7 +1291,7 @@ const Tt = {
|
|
|
1291
1291
|
message: "请输入有效的邮箱"
|
|
1292
1292
|
}]
|
|
1293
1293
|
}, {
|
|
1294
|
-
default:
|
|
1294
|
+
default: d(() => [z(L(f.value), 1)]),
|
|
1295
1295
|
_: 1
|
|
1296
1296
|
}), l(e(I), {
|
|
1297
1297
|
field: "userToken",
|
|
@@ -1302,19 +1302,19 @@ const Tt = {
|
|
|
1302
1302
|
message: "请输入验证码"
|
|
1303
1303
|
}]
|
|
1304
1304
|
}, {
|
|
1305
|
-
default:
|
|
1305
|
+
default: d(() => [w("div", Tt, [l(e(C), {
|
|
1306
1306
|
modelValue: n.value.userToken,
|
|
1307
1307
|
"onUpdate:modelValue": v[0] || (v[0] = (b) => n.value.userToken = b),
|
|
1308
1308
|
placeholder: "请输入验证码"
|
|
1309
1309
|
}, null, 8, ["modelValue"]), l(X, {
|
|
1310
1310
|
ref_key: "SendVerifyCodeRef",
|
|
1311
|
-
ref:
|
|
1311
|
+
ref: r,
|
|
1312
1312
|
size: s.size,
|
|
1313
1313
|
loading: t.value,
|
|
1314
1314
|
style: {
|
|
1315
1315
|
"margin-left": "10px"
|
|
1316
1316
|
},
|
|
1317
|
-
onSend:
|
|
1317
|
+
onSend: m
|
|
1318
1318
|
}, null, 8, ["size", "loading"])])]),
|
|
1319
1319
|
_: 1
|
|
1320
1320
|
}), l(e(I), {
|
|
@@ -1322,12 +1322,12 @@ const Tt = {
|
|
|
1322
1322
|
label: "",
|
|
1323
1323
|
rules: []
|
|
1324
1324
|
}, {
|
|
1325
|
-
default:
|
|
1326
|
-
loading:
|
|
1325
|
+
default: d(() => [w("div", Lt, [l(e($), {
|
|
1326
|
+
loading: u.value,
|
|
1327
1327
|
type: "primary",
|
|
1328
|
-
onClick:
|
|
1328
|
+
onClick: c
|
|
1329
1329
|
}, {
|
|
1330
|
-
default:
|
|
1330
|
+
default: d(() => v[1] || (v[1] = [z(" 提交 ")])),
|
|
1331
1331
|
_: 1,
|
|
1332
1332
|
__: [1]
|
|
1333
1333
|
}, 8, ["loading"])])]),
|
|
@@ -1350,19 +1350,19 @@ const Tt = {
|
|
|
1350
1350
|
setup(i, {
|
|
1351
1351
|
emit: a
|
|
1352
1352
|
}) {
|
|
1353
|
-
const
|
|
1353
|
+
const o = a, s = h(!1), f = h(), r = i, t = h({
|
|
1354
1354
|
oldPassword: "",
|
|
1355
1355
|
password: "",
|
|
1356
1356
|
confirmPassword: ""
|
|
1357
1357
|
});
|
|
1358
|
-
async function
|
|
1359
|
-
|
|
1358
|
+
async function u() {
|
|
1359
|
+
f.value.validate().then((_) => {
|
|
1360
1360
|
if (!_) {
|
|
1361
1361
|
const n = {
|
|
1362
1362
|
password: t.value.password
|
|
1363
1363
|
};
|
|
1364
1364
|
Se(n).then(() => {
|
|
1365
|
-
s.value = !1,
|
|
1365
|
+
s.value = !1, o("submit");
|
|
1366
1366
|
}).catch(() => {
|
|
1367
1367
|
s.value = !1;
|
|
1368
1368
|
});
|
|
@@ -1371,12 +1371,12 @@ const Tt = {
|
|
|
1371
1371
|
}
|
|
1372
1372
|
return (_, n) => (g(), y(e(B), {
|
|
1373
1373
|
ref_key: "formRef",
|
|
1374
|
-
ref:
|
|
1374
|
+
ref: f,
|
|
1375
1375
|
model: t.value,
|
|
1376
1376
|
"auto-label-width": "",
|
|
1377
|
-
size:
|
|
1377
|
+
size: r.size
|
|
1378
1378
|
}, {
|
|
1379
|
-
default:
|
|
1379
|
+
default: d(() => [l(e(I), {
|
|
1380
1380
|
field: "oldPassword",
|
|
1381
1381
|
label: "当前密码",
|
|
1382
1382
|
"hide-label": "",
|
|
@@ -1385,9 +1385,9 @@ const Tt = {
|
|
|
1385
1385
|
message: "请输入当前密码"
|
|
1386
1386
|
}]
|
|
1387
1387
|
}, {
|
|
1388
|
-
default:
|
|
1388
|
+
default: d(() => [l(e(C), {
|
|
1389
1389
|
modelValue: t.value.oldPassword,
|
|
1390
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
1390
|
+
"onUpdate:modelValue": n[0] || (n[0] = (m) => t.value.oldPassword = m),
|
|
1391
1391
|
placeholder: "请输入当前密码",
|
|
1392
1392
|
type: "password"
|
|
1393
1393
|
}, null, 8, ["modelValue"])]),
|
|
@@ -1404,9 +1404,9 @@ const Tt = {
|
|
|
1404
1404
|
message: "新密码不能少于10字符"
|
|
1405
1405
|
}]
|
|
1406
1406
|
}, {
|
|
1407
|
-
default:
|
|
1407
|
+
default: d(() => [l(e(C), {
|
|
1408
1408
|
modelValue: t.value.password,
|
|
1409
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
1409
|
+
"onUpdate:modelValue": n[1] || (n[1] = (m) => t.value.password = m),
|
|
1410
1410
|
placeholder: "请输入新密码",
|
|
1411
1411
|
type: "password"
|
|
1412
1412
|
}, null, 8, ["modelValue"])]),
|
|
@@ -1422,14 +1422,14 @@ const Tt = {
|
|
|
1422
1422
|
minLength: 10,
|
|
1423
1423
|
message: "确认密码不能少于10字符"
|
|
1424
1424
|
}, {
|
|
1425
|
-
validator: (
|
|
1426
|
-
|
|
1425
|
+
validator: (m, c) => {
|
|
1426
|
+
m !== t.value.password ? c("两次密码输入不一致,请重新输入") : c();
|
|
1427
1427
|
}
|
|
1428
1428
|
}]
|
|
1429
1429
|
}, {
|
|
1430
|
-
default:
|
|
1430
|
+
default: d(() => [l(e(C), {
|
|
1431
1431
|
modelValue: t.value.confirmPassword,
|
|
1432
|
-
"onUpdate:modelValue": n[2] || (n[2] = (
|
|
1432
|
+
"onUpdate:modelValue": n[2] || (n[2] = (m) => t.value.confirmPassword = m),
|
|
1433
1433
|
placeholder: "请输入确认密码密码",
|
|
1434
1434
|
type: "password"
|
|
1435
1435
|
}, null, 8, ["modelValue"])]),
|
|
@@ -1439,12 +1439,12 @@ const Tt = {
|
|
|
1439
1439
|
label: "",
|
|
1440
1440
|
rules: []
|
|
1441
1441
|
}, {
|
|
1442
|
-
default:
|
|
1442
|
+
default: d(() => [w("div", Ot, [l(e($), {
|
|
1443
1443
|
type: "primary",
|
|
1444
1444
|
loading: s.value,
|
|
1445
|
-
onClick:
|
|
1445
|
+
onClick: u
|
|
1446
1446
|
}, {
|
|
1447
|
-
default:
|
|
1447
|
+
default: d(() => n[3] || (n[3] = [z(" 提交 ")])),
|
|
1448
1448
|
_: 1,
|
|
1449
1449
|
__: [3]
|
|
1450
1450
|
}, 8, ["loading"])])]),
|
|
@@ -1464,64 +1464,65 @@ const Tt = {
|
|
|
1464
1464
|
setup(i) {
|
|
1465
1465
|
const {
|
|
1466
1466
|
userProfile: a,
|
|
1467
|
-
loading:
|
|
1468
|
-
fetchUserProfile: s
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
function d() {
|
|
1474
|
-
E.success("密码修改成功"), c.value = "hidden", s();
|
|
1467
|
+
loading: o,
|
|
1468
|
+
fetchUserProfile: s,
|
|
1469
|
+
isLoggedIn: f
|
|
1470
|
+
} = J(), r = h("hidden"), t = i;
|
|
1471
|
+
function u(m) {
|
|
1472
|
+
r.value = m;
|
|
1475
1473
|
}
|
|
1476
1474
|
function _() {
|
|
1477
|
-
|
|
1475
|
+
E.success("密码修改成功"), r.value = "hidden", s();
|
|
1476
|
+
}
|
|
1477
|
+
function n() {
|
|
1478
|
+
r.value = "update";
|
|
1478
1479
|
}
|
|
1479
1480
|
return N(() => {
|
|
1480
|
-
a.value
|
|
1481
|
-
}), (
|
|
1482
|
-
var p,
|
|
1483
|
-
return g(),
|
|
1481
|
+
f.value && !a.value && s();
|
|
1482
|
+
}), (m, c) => {
|
|
1483
|
+
var p, v, b, q;
|
|
1484
|
+
return g(), U(W, null, [!((p = e(a)) != null && p.email) && !((v = e(a)) != null && v.phone) ? (g(), y(e(T), {
|
|
1484
1485
|
key: 0,
|
|
1485
1486
|
title: "去绑定邮箱"
|
|
1486
1487
|
}, {
|
|
1487
|
-
action:
|
|
1488
|
-
size:
|
|
1488
|
+
action: d(() => [l(e($), {
|
|
1489
|
+
size: t.size,
|
|
1489
1490
|
type: "primary",
|
|
1490
|
-
onClick:
|
|
1491
|
+
onClick: c[0] || (c[0] = (V) => u("update"))
|
|
1491
1492
|
}, {
|
|
1492
|
-
default:
|
|
1493
|
+
default: d(() => c[2] || (c[2] = [z(" 去绑定邮箱 ")])),
|
|
1493
1494
|
_: 1,
|
|
1494
1495
|
__: [2]
|
|
1495
1496
|
}, 8, ["size"])]),
|
|
1496
|
-
default:
|
|
1497
|
+
default: d(() => [c[3] || (c[3] = z(" 请先去绑定邮箱或者手机号码,才能设置密码 "))]),
|
|
1497
1498
|
_: 1,
|
|
1498
1499
|
__: [3]
|
|
1499
|
-
})) : k("", !0), (
|
|
1500
|
+
})) : k("", !0), (b = e(a)) != null && b.email && r.value === "hidden" ? (g(), y(e(T), {
|
|
1500
1501
|
key: 1,
|
|
1501
1502
|
title: "更改密码"
|
|
1502
1503
|
}, {
|
|
1503
|
-
action:
|
|
1504
|
-
size:
|
|
1504
|
+
action: d(() => [l(e($), {
|
|
1505
|
+
size: t.size,
|
|
1505
1506
|
type: "primary",
|
|
1506
|
-
onClick:
|
|
1507
|
+
onClick: c[1] || (c[1] = (V) => u("verify"))
|
|
1507
1508
|
}, {
|
|
1508
|
-
default:
|
|
1509
|
+
default: d(() => c[4] || (c[4] = [z("更改密码")])),
|
|
1509
1510
|
_: 1,
|
|
1510
1511
|
__: [4]
|
|
1511
1512
|
}, 8, ["size"])]),
|
|
1512
|
-
default:
|
|
1513
|
+
default: d(() => [c[5] || (c[5] = z(" 为了账户安全修改密码前会先验证身份 "))]),
|
|
1513
1514
|
_: 1,
|
|
1514
1515
|
__: [5]
|
|
1515
|
-
})) : k("", !0),
|
|
1516
|
+
})) : k("", !0), r.value === "update" ? (g(), y(Nt, {
|
|
1516
1517
|
key: 2,
|
|
1517
|
-
size:
|
|
1518
|
-
loading: e(
|
|
1519
|
-
onSubmit:
|
|
1520
|
-
}, null, 8, ["size", "loading"])) : k("", !0),
|
|
1518
|
+
size: t.size,
|
|
1519
|
+
loading: e(o),
|
|
1520
|
+
onSubmit: _
|
|
1521
|
+
}, null, 8, ["size", "loading"])) : k("", !0), r.value === "verify" ? (g(), y(Y, {
|
|
1521
1522
|
key: 3,
|
|
1522
|
-
size:
|
|
1523
|
-
email: (
|
|
1524
|
-
onNext:
|
|
1523
|
+
size: t.size,
|
|
1524
|
+
email: (q = e(a)) == null ? void 0 : q.email,
|
|
1525
|
+
onNext: n
|
|
1525
1526
|
}, null, 8, ["size", "email"])) : k("", !0)], 64);
|
|
1526
1527
|
};
|
|
1527
1528
|
}
|
|
@@ -1536,75 +1537,75 @@ const Tt = {
|
|
|
1536
1537
|
setup(i) {
|
|
1537
1538
|
const {
|
|
1538
1539
|
userProfile: a,
|
|
1539
|
-
loading:
|
|
1540
|
+
loading: o,
|
|
1540
1541
|
fetchUserProfile: s
|
|
1541
|
-
} = J(),
|
|
1542
|
+
} = J(), f = h("hidden"), r = i;
|
|
1542
1543
|
function t(n) {
|
|
1543
|
-
|
|
1544
|
+
f.value = n;
|
|
1544
1545
|
}
|
|
1545
|
-
function
|
|
1546
|
-
|
|
1547
|
-
const
|
|
1546
|
+
function u(n) {
|
|
1547
|
+
o.value = !0;
|
|
1548
|
+
const m = {
|
|
1548
1549
|
email: n.email,
|
|
1549
1550
|
userToken: n.userToken,
|
|
1550
1551
|
emailVerifyId: n.emailVerifyId,
|
|
1551
1552
|
password: n.password
|
|
1552
1553
|
};
|
|
1553
|
-
Ae(
|
|
1554
|
-
|
|
1554
|
+
Ae(m).then(() => {
|
|
1555
|
+
o.value = !1, E.success("绑定成功"), f.value = "hidden", s();
|
|
1555
1556
|
}).catch(() => {
|
|
1556
|
-
|
|
1557
|
+
o.value = !1;
|
|
1557
1558
|
});
|
|
1558
1559
|
}
|
|
1559
1560
|
function _() {
|
|
1560
|
-
|
|
1561
|
+
f.value = "update";
|
|
1561
1562
|
}
|
|
1562
1563
|
return N(() => {
|
|
1563
1564
|
a.value || s();
|
|
1564
|
-
}), (n,
|
|
1565
|
-
var
|
|
1566
|
-
return g(),
|
|
1565
|
+
}), (n, m) => {
|
|
1566
|
+
var c, p, v;
|
|
1567
|
+
return g(), U(W, null, [!((c = e(a)) != null && c.email) && f.value === "hidden" ? (g(), y(e(T), {
|
|
1567
1568
|
key: 0,
|
|
1568
1569
|
title: "绑定邮箱"
|
|
1569
1570
|
}, {
|
|
1570
|
-
action:
|
|
1571
|
-
size:
|
|
1571
|
+
action: d(() => [l(e($), {
|
|
1572
|
+
size: r.size,
|
|
1572
1573
|
type: "primary",
|
|
1573
|
-
onClick:
|
|
1574
|
+
onClick: m[0] || (m[0] = (b) => t("update"))
|
|
1574
1575
|
}, {
|
|
1575
|
-
default:
|
|
1576
|
+
default: d(() => m[2] || (m[2] = [z(" 绑定邮箱 ")])),
|
|
1576
1577
|
_: 1,
|
|
1577
1578
|
__: [2]
|
|
1578
1579
|
}, 8, ["size"])]),
|
|
1579
|
-
default:
|
|
1580
|
+
default: d(() => [m[3] || (m[3] = z(" 您还未绑定邮箱,请点击绑定邮箱 "))]),
|
|
1580
1581
|
_: 1,
|
|
1581
1582
|
__: [3]
|
|
1582
|
-
})) : k("", !0), (
|
|
1583
|
+
})) : k("", !0), (p = e(a)) != null && p.email && f.value === "hidden" ? (g(), y(e(T), {
|
|
1583
1584
|
key: 1,
|
|
1584
1585
|
title: "更改邮箱"
|
|
1585
1586
|
}, {
|
|
1586
|
-
action:
|
|
1587
|
-
size:
|
|
1587
|
+
action: d(() => [l(e($), {
|
|
1588
|
+
size: r.size,
|
|
1588
1589
|
type: "primary",
|
|
1589
|
-
onClick:
|
|
1590
|
+
onClick: m[1] || (m[1] = (b) => t("verify"))
|
|
1590
1591
|
}, {
|
|
1591
|
-
default:
|
|
1592
|
+
default: d(() => m[4] || (m[4] = [z(" 更改邮箱 ")])),
|
|
1592
1593
|
_: 1,
|
|
1593
1594
|
__: [4]
|
|
1594
1595
|
}, 8, ["size"])]),
|
|
1595
|
-
default:
|
|
1596
|
+
default: d(() => {
|
|
1596
1597
|
var b;
|
|
1597
1598
|
return [z(L(`您绑定的邮箱为${e(ce)((b = e(a)) == null ? void 0 : b.email)}`) + " ", 1)];
|
|
1598
1599
|
}),
|
|
1599
1600
|
_: 1
|
|
1600
|
-
})) : k("", !0),
|
|
1601
|
+
})) : k("", !0), f.value === "update" ? (g(), y(de, {
|
|
1601
1602
|
key: 2,
|
|
1602
|
-
loading: e(
|
|
1603
|
-
size:
|
|
1604
|
-
onSubmit:
|
|
1605
|
-
}, null, 8, ["loading", "size"])) : k("", !0),
|
|
1603
|
+
loading: e(o),
|
|
1604
|
+
size: r.size,
|
|
1605
|
+
onSubmit: u
|
|
1606
|
+
}, null, 8, ["loading", "size"])) : k("", !0), f.value === "verify" ? (g(), y(Y, {
|
|
1606
1607
|
key: 3,
|
|
1607
|
-
size:
|
|
1608
|
+
size: r.size,
|
|
1608
1609
|
email: (v = e(a)) == null ? void 0 : v.email,
|
|
1609
1610
|
onNext: _
|
|
1610
1611
|
}, null, 8, ["size", "email"])) : k("", !0)], 64);
|
|
@@ -1621,70 +1622,70 @@ const Tt = {
|
|
|
1621
1622
|
setup(i) {
|
|
1622
1623
|
const {
|
|
1623
1624
|
userProfile: a,
|
|
1624
|
-
fetchUserProfile:
|
|
1625
|
-
} = J(), s = h("hidden"),
|
|
1626
|
-
let
|
|
1625
|
+
fetchUserProfile: o
|
|
1626
|
+
} = J(), s = h("hidden"), f = h(!1);
|
|
1627
|
+
let r;
|
|
1627
1628
|
const t = i;
|
|
1628
|
-
function
|
|
1629
|
-
s.value =
|
|
1629
|
+
function u(p) {
|
|
1630
|
+
s.value = p;
|
|
1630
1631
|
}
|
|
1631
1632
|
function _() {
|
|
1632
1633
|
re().then(({
|
|
1633
|
-
data:
|
|
1634
|
+
data: p
|
|
1634
1635
|
}) => {
|
|
1635
1636
|
const {
|
|
1636
1637
|
redirectUri: v
|
|
1637
|
-
} =
|
|
1638
|
-
|
|
1638
|
+
} = p;
|
|
1639
|
+
f.value = !0, window.open(v, "_blank");
|
|
1639
1640
|
});
|
|
1640
1641
|
}
|
|
1641
1642
|
function n() {
|
|
1642
1643
|
Ie().then(() => {
|
|
1643
|
-
E.success("解绑成功"), s.value = "hidden",
|
|
1644
|
+
E.success("解绑成功"), s.value = "hidden", o();
|
|
1644
1645
|
});
|
|
1645
1646
|
}
|
|
1646
|
-
function
|
|
1647
|
+
function m() {
|
|
1647
1648
|
s.value === "bind" && (s.value = "hidden", _()), s.value === "unbind" && n();
|
|
1648
1649
|
}
|
|
1649
|
-
function
|
|
1650
|
-
|
|
1650
|
+
function c() {
|
|
1651
|
+
f.value && o();
|
|
1651
1652
|
}
|
|
1652
1653
|
return N(() => {
|
|
1653
|
-
a.value ||
|
|
1654
|
+
a.value || o(), r = setInterval(c, 1e3);
|
|
1654
1655
|
}), se(() => {
|
|
1655
|
-
|
|
1656
|
-
}), (
|
|
1657
|
-
var b, q,
|
|
1658
|
-
return g(),
|
|
1656
|
+
r && clearInterval(r);
|
|
1657
|
+
}), (p, v) => {
|
|
1658
|
+
var b, q, V;
|
|
1659
|
+
return g(), U(W, null, [!((b = e(a)) != null && b.github) && s.value === "hidden" ? (g(), y(e(T), {
|
|
1659
1660
|
key: 0,
|
|
1660
1661
|
title: "绑定GitHUb"
|
|
1661
1662
|
}, {
|
|
1662
|
-
action:
|
|
1663
|
+
action: d(() => [l(e($), {
|
|
1663
1664
|
size: t.size,
|
|
1664
1665
|
type: "primary",
|
|
1665
|
-
onClick: v[0] || (v[0] = (A) =>
|
|
1666
|
+
onClick: v[0] || (v[0] = (A) => u("bind"))
|
|
1666
1667
|
}, {
|
|
1667
|
-
default:
|
|
1668
|
+
default: d(() => v[2] || (v[2] = [z(" 绑定GitHUb ")])),
|
|
1668
1669
|
_: 1,
|
|
1669
1670
|
__: [2]
|
|
1670
1671
|
}, 8, ["size"])]),
|
|
1671
|
-
default:
|
|
1672
|
+
default: d(() => [v[3] || (v[3] = z(" 请尚未绑定GitHub,请点击绑定GitHUb "))]),
|
|
1672
1673
|
_: 1,
|
|
1673
1674
|
__: [3]
|
|
1674
1675
|
})) : k("", !0), (q = e(a)) != null && q.github && s.value === "hidden" ? (g(), y(e(T), {
|
|
1675
1676
|
key: 1,
|
|
1676
1677
|
title: "解绑GitHub"
|
|
1677
1678
|
}, {
|
|
1678
|
-
action:
|
|
1679
|
+
action: d(() => [l(e($), {
|
|
1679
1680
|
size: t.size,
|
|
1680
1681
|
type: "primary",
|
|
1681
|
-
onClick: v[1] || (v[1] = (A) =>
|
|
1682
|
+
onClick: v[1] || (v[1] = (A) => u("unbind"))
|
|
1682
1683
|
}, {
|
|
1683
|
-
default:
|
|
1684
|
+
default: d(() => v[4] || (v[4] = [z(" 解绑GitHUb ")])),
|
|
1684
1685
|
_: 1,
|
|
1685
1686
|
__: [4]
|
|
1686
1687
|
}, 8, ["size"])]),
|
|
1687
|
-
default:
|
|
1688
|
+
default: d(() => {
|
|
1688
1689
|
var A, x, G;
|
|
1689
1690
|
return [w("span", null, L(`您绑定的账号为 ${(x = (A = e(a)) == null ? void 0 : A.github) == null ? void 0 : x.login}`), 1), l(e(oe), {
|
|
1690
1691
|
"image-url": (G = e(a)) == null ? void 0 : G.avatar,
|
|
@@ -1695,8 +1696,8 @@ const Tt = {
|
|
|
1695
1696
|
})) : k("", !0), s.value === "bind" || s.value === "unbind" ? (g(), y(Y, {
|
|
1696
1697
|
key: 2,
|
|
1697
1698
|
size: t.size,
|
|
1698
|
-
email: (
|
|
1699
|
-
onNext:
|
|
1699
|
+
email: (V = e(a)) == null ? void 0 : V.email,
|
|
1700
|
+
onNext: m
|
|
1700
1701
|
}, null, 8, ["size", "email"])) : k("", !0)], 64);
|
|
1701
1702
|
};
|
|
1702
1703
|
}
|
|
@@ -1711,13 +1712,13 @@ const Tt = {
|
|
|
1711
1712
|
emits: ["confirm", "cancel"],
|
|
1712
1713
|
setup(i, {
|
|
1713
1714
|
expose: a,
|
|
1714
|
-
emit:
|
|
1715
|
+
emit: o
|
|
1715
1716
|
}) {
|
|
1716
|
-
const s =
|
|
1717
|
-
function
|
|
1717
|
+
const s = o;
|
|
1718
|
+
function f() {
|
|
1718
1719
|
s("cancel");
|
|
1719
1720
|
}
|
|
1720
|
-
const
|
|
1721
|
+
const r = h("large"), t = h(["PersonalInformation"]), u = h([{
|
|
1721
1722
|
name: "个人信息",
|
|
1722
1723
|
path: "PersonalInformation",
|
|
1723
1724
|
meta: {
|
|
@@ -1762,47 +1763,47 @@ const Tt = {
|
|
|
1762
1763
|
// },
|
|
1763
1764
|
]
|
|
1764
1765
|
}]);
|
|
1765
|
-
function _(
|
|
1766
|
-
const b =
|
|
1766
|
+
function _(p, v) {
|
|
1767
|
+
const b = p.path;
|
|
1767
1768
|
console.log(b, v, "lokokoko"), t.value = [b];
|
|
1768
1769
|
}
|
|
1769
1770
|
const {
|
|
1770
1771
|
changeType: n,
|
|
1771
|
-
show:
|
|
1772
|
+
show: m
|
|
1772
1773
|
} = qe(s);
|
|
1773
|
-
function p
|
|
1774
|
-
console.log(
|
|
1774
|
+
function c(p, v) {
|
|
1775
|
+
console.log(p), m.value = v, n.value = "编辑";
|
|
1775
1776
|
}
|
|
1776
1777
|
return a({
|
|
1777
|
-
setData:
|
|
1778
|
-
}), (
|
|
1779
|
-
visible: e(
|
|
1780
|
-
"onUpdate:visible": v[1] || (v[1] = (b) => ae(
|
|
1778
|
+
setData: c
|
|
1779
|
+
}), (p, v) => (g(), y(e(le), {
|
|
1780
|
+
visible: e(m),
|
|
1781
|
+
"onUpdate:visible": v[1] || (v[1] = (b) => ae(m) ? m.value = b : null),
|
|
1781
1782
|
"unmount-on-close": "",
|
|
1782
1783
|
"body-class": "AppSettingbodyClass",
|
|
1783
1784
|
"mask-closable": !1,
|
|
1784
1785
|
footer: !1,
|
|
1785
1786
|
width: "700px",
|
|
1786
|
-
onCancel:
|
|
1787
|
+
onCancel: f
|
|
1787
1788
|
}, {
|
|
1788
|
-
title:
|
|
1789
|
-
default:
|
|
1789
|
+
title: d(() => v[2] || (v[2] = [z(" 系统设置 ")])),
|
|
1790
|
+
default: d(() => [w("div", jt, [w("div", Dt, [l(xe, {
|
|
1790
1791
|
"selected-keys": t.value,
|
|
1791
1792
|
"onUpdate:selectedKeys": v[0] || (v[0] = (b) => t.value = b),
|
|
1792
|
-
menus:
|
|
1793
|
+
menus: u.value,
|
|
1793
1794
|
onChange: _
|
|
1794
1795
|
}, null, 8, ["selected-keys", "menus"])]), w("div", Wt, [t.value[0] === "PersonalInformation" ? (g(), y(Rt, {
|
|
1795
1796
|
key: 0,
|
|
1796
|
-
size:
|
|
1797
|
+
size: r.value
|
|
1797
1798
|
}, null, 8, ["size"])) : k("", !0), t.value[0] === "EmailBinding" ? (g(), y(Ht, {
|
|
1798
1799
|
key: 1,
|
|
1799
|
-
size:
|
|
1800
|
+
size: r.value
|
|
1800
1801
|
}, null, 8, ["size"])) : k("", !0), t.value[0] === "SetPassword" ? (g(), y(Ft, {
|
|
1801
1802
|
key: 2,
|
|
1802
|
-
size:
|
|
1803
|
+
size: r.value
|
|
1803
1804
|
}, null, 8, ["size"])) : k("", !0), t.value[0] === "GithubBinding" ? (g(), y(Mt, {
|
|
1804
1805
|
key: 3,
|
|
1805
|
-
size:
|
|
1806
|
+
size: r.value
|
|
1806
1807
|
}, null, 8, ["size"])) : k("", !0)])])]),
|
|
1807
1808
|
_: 1
|
|
1808
1809
|
}, 8, ["visible"]));
|