@huyooo/ui 2.0.0 → 2.0.1
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-rtYZcSAR.js → AuthkitAppSetting-DCQH9IpU.js} +151 -150
- package/dist/{Contact-CcWf3UEZ.js → Contact-C7ROEqe-.js} +3 -3
- package/dist/{CustomTable-HDwqEcmB.js → CustomTable-GgvDEidl.js} +1 -1
- package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-C1hPqnNT.js +1531 -0
- package/dist/{LegalDocViewer-C0tsIbz9.js → LegalDocViewer-D_QUh0uf.js} +10 -10
- package/dist/{MessageHandle-BUufez4S.js → MessageHandle-DKoySsCG.js} +3 -3
- package/dist/{MessageList-rttvPmxV.js → MessageList-HSiKkUoD.js} +1 -1
- package/dist/{PaySubscriptions-p75aBnHm.js → PaySubscriptions-NcATVJGm.js} +6 -6
- package/dist/{PricingPlans-CQ0qk9Hb.js → PricingPlans-CZn6eJby.js} +4 -4
- package/dist/{ReferrerReferees-BU9IEQgz.js → ReferrerReferees-BoOQIssE.js} +4 -4
- package/dist/Upload.vue_vue_type_script_setup_true_lang-CkS2S9Xc.js +83 -0
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-DG4AuHiO.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BrNx6JWe.js} +9 -9
- package/dist/{WidthContainer-DSE4QbW0.js → WidthContainer-BJLdZfzF.js} +10 -10
- package/dist/{apiClients-Ctcq8NZs.js → apiClients-CR-hEwog.js} +5 -5
- package/dist/authkit.js +10 -10
- package/dist/common.js +2 -2
- package/dist/components/Feedback/FeedbackDetails.vue.d.ts +11 -0
- package/dist/components/Upload/Upload.vue.d.ts +3 -2
- package/dist/composables/uploadFeedbackAttachment.d.ts +7 -1
- package/dist/composables.js +13 -13
- package/dist/feedback.js +2 -2
- package/dist/{fetchAuthPageAboutUs-DiCqMUX3.js → fetchAuthPageAboutUs-BnKWq_TL.js} +2 -2
- package/dist/{index-Cn6LcfZO.js → index-BhVwozr0.js} +1 -1
- package/dist/main.js +30 -30
- package/dist/message.js +5 -5
- package/dist/pay.js +4 -4
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/{runtime-BzCSCUNv.js → runtime-DMCyhVcI.js} +1344 -1327
- package/dist/runtime.d.ts +6 -2
- package/dist/style.css +1 -1
- package/dist/upload/browserCosTransport.d.ts +2 -5
- package/dist/upload/browserUploadService.d.ts +5 -4
- package/dist/upload.d.ts +2 -2
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js → useAuthkitAppsAuthPageInfo-Byu0yvrx.js} +1 -1
- package/dist/{useAuthkitAuth-BPTZUSkM.js → useAuthkitAuth-M2vTpEcb.js} +2 -2
- package/dist/{useAuthkitCreateAndUpdate-Bbv7vZZn.js → useAuthkitCreateAndUpdate-D2_Bdazi.js} +1 -1
- package/dist/{useAuthkitUsersProfile-CW_exa7E.js → useAuthkitUsersProfile-DdUAENic.js} +2 -2
- package/dist/{useBillingStatusOptions-Br-iL77Z.js → useBillingStatusOptions-Jq6Wqfxb.js} +1 -1
- package/dist/{useEnsureAuthenticated-CncOvj2H.js → useEnsureAuthenticated-Hel8hWLJ.js} +2 -2
- package/dist/{useLegalDocs-D44qU_q0.js → useLegalDocs-BOjqYRyQ.js} +2 -2
- package/dist/{useMessageNotifications-D9uikt21.js → useMessageNotifications-AznFeFMD.js} +1 -1
- package/dist/{useRoutePermission-BrQX7NTq.js → useRoutePermission-BmUXTwQc.js} +2 -2
- package/dist/{useSEO-_TNouXE_.js → useSEO-Chz4Zxuu.js} +2 -2
- package/dist/{useSubscriptionCheckout-BDDCRxSs.js → useSubscriptionCheckout-3ivcOcgC.js} +3 -3
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-DpOmbAg-.js +0 -1491
- package/dist/Upload.vue_vue_type_script_setup_true_lang-bh0NFq9E.js +0 -78
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { U as Ne } from "./userMenuModal-D-nDaYqM.js";
|
|
4
|
-
import { defineComponent as Y, ref as z, computed as $, openBlock as h, createElementBlock as
|
|
5
|
-
import { Avatar as Pe, Input as Q, Textarea as Me, Button as T, Message as G, Form as le, FormItem as
|
|
4
|
+
import { defineComponent as Y, ref as z, computed as $, openBlock as h, createElementBlock as M, createElementVNode as A, createVNode as p, unref as t, withCtx as o, createTextVNode as k, createCommentVNode as C, toDisplayString as U, createBlock as I, onUnmounted as ke, withDirectives as De, vShow as Be, onMounted as ue, Fragment as ie, createSlots as qe, normalizeClass as ze, renderList as Le, watch as Ae } from "vue";
|
|
5
|
+
import { Avatar as Pe, Input as Q, Textarea as Me, Button as T, Message as G, Form as le, FormItem as L, Alert as J, Space as pe, Popconfirm as Ke, Link as Ie, InputPassword as Fe, Result as He, Modal as We } from "@arco-design/web-vue";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { f as Ge, g as x, b as Je, h as Ce } from "./apiClients-
|
|
8
|
-
import { C as Ye } from "./index-
|
|
7
|
+
import { f as Ge, g as x, b as Je, h as Ce } from "./apiClients-CR-hEwog.js";
|
|
8
|
+
import { C as Ye } from "./index-BhVwozr0.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import { u as ae } from "./useAuthkitUsersProfile-
|
|
11
|
-
import { u as Ee, g as Re } from "./runtime-
|
|
10
|
+
import { u as ae } from "./useAuthkitUsersProfile-DdUAENic.js";
|
|
11
|
+
import { u as Ee, g as Re } from "./runtime-DMCyhVcI.js";
|
|
12
12
|
import { _ as X } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
/* empty css */
|
|
14
14
|
/* empty css */
|
|
15
|
-
import { C as je } from "./CustomTable-
|
|
16
|
-
import { u as Se } from "./useAuthkitAppsAuthPageInfo-
|
|
15
|
+
import { C as je } from "./CustomTable-GgvDEidl.js";
|
|
16
|
+
import { u as Se } from "./useAuthkitAppsAuthPageInfo-Byu0yvrx.js";
|
|
17
17
|
import { Icon as Qe } from "@iconify/vue";
|
|
18
18
|
import { i as Xe, M as Ze } from "./Menu-uCexrsKP.js";
|
|
19
|
-
import { u as et } from "./useAuthkitAuth-
|
|
20
|
-
import { u as tt } from "./useAuthkitCreateAndUpdate-
|
|
19
|
+
import { u as et } from "./useAuthkitAuth-M2vTpEcb.js";
|
|
20
|
+
import { u as tt } from "./useAuthkitCreateAndUpdate-D2_Bdazi.js";
|
|
21
21
|
const it = {
|
|
22
22
|
class: "personal-information"
|
|
23
23
|
}, at = {
|
|
@@ -101,10 +101,10 @@ const it = {
|
|
|
101
101
|
return;
|
|
102
102
|
S(V);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function B() {
|
|
105
105
|
e.value.nickname = y.value.nickname, e.value.description = y.value.description;
|
|
106
106
|
}
|
|
107
|
-
async function
|
|
107
|
+
async function K() {
|
|
108
108
|
if (!e.value.id)
|
|
109
109
|
return;
|
|
110
110
|
v.value = !0;
|
|
@@ -115,40 +115,41 @@ const it = {
|
|
|
115
115
|
avatar: e.value.avatar
|
|
116
116
|
}, {
|
|
117
117
|
data: w,
|
|
118
|
-
error:
|
|
118
|
+
error: q
|
|
119
119
|
} = await x().auth.users.update.baseInfo.post(V);
|
|
120
|
-
v.value = !1, !
|
|
120
|
+
v.value = !1, !q && w && (G.success("更新成功"), e.value.avatarUrl = w.avatarUrl || e.value.avatarUrl, m(), await l(), n("submit"));
|
|
121
121
|
}
|
|
122
122
|
function j() {
|
|
123
123
|
const V = document.createElement("input");
|
|
124
124
|
V.type = "file", V.accept = "image/*", V.style.display = "none", document.body.append(V), V.addEventListener("change", async (w) => {
|
|
125
|
-
var
|
|
126
|
-
const _ = (
|
|
125
|
+
var D;
|
|
126
|
+
const _ = (D = w.target.files) == null ? void 0 : D[0];
|
|
127
127
|
if (!_ || !e.value.id) {
|
|
128
128
|
V.remove();
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
|
-
f.value = !0
|
|
131
|
+
f.value = !0;
|
|
132
|
+
const {
|
|
133
|
+
data: P,
|
|
134
|
+
error: N
|
|
135
|
+
} = await d.upload({
|
|
132
136
|
bucketId: s.avatarBucketId,
|
|
133
137
|
file: _
|
|
134
|
-
})
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
})
|
|
145
|
-
|
|
146
|
-
}).finally(() => {
|
|
147
|
-
f.value = !1;
|
|
148
|
-
}), V.remove();
|
|
138
|
+
});
|
|
139
|
+
if (N || !P) {
|
|
140
|
+
f.value = !1, G.error((N == null ? void 0 : N.message) || "头像上传失败"), V.remove();
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
const F = await x().auth.users.update.baseInfo.post({
|
|
144
|
+
id: e.value.id,
|
|
145
|
+
nickname: e.value.nickname,
|
|
146
|
+
description: e.value.description,
|
|
147
|
+
avatar: P.key
|
|
148
|
+
});
|
|
149
|
+
f.value = !1, F.error || (G.success("头像已更新"), await R(), await l(), n("submit")), V.remove();
|
|
149
150
|
}), V.click();
|
|
150
151
|
}
|
|
151
|
-
return R(), (V, w) => (h(),
|
|
152
|
+
return R(), (V, w) => (h(), M("div", it, [A("section", at, [w[6] || (w[6] = A("h3", {
|
|
152
153
|
class: "profile-card__title"
|
|
153
154
|
}, "个人资料", -1)), A("div", nt, [w[2] || (w[2] = A("label", {
|
|
154
155
|
class: "profile-field__label"
|
|
@@ -164,7 +165,7 @@ const it = {
|
|
|
164
165
|
"object-fit": "cover"
|
|
165
166
|
}, null, 8, ["image-url"])], 8, st), p(t(Q), {
|
|
166
167
|
modelValue: e.value.nickname,
|
|
167
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
168
|
+
"onUpdate:modelValue": w[0] || (w[0] = (q) => e.value.nickname = q),
|
|
168
169
|
class: "nickname-field__input",
|
|
169
170
|
size: u.size,
|
|
170
171
|
placeholder: "例如:小明"
|
|
@@ -172,7 +173,7 @@ const it = {
|
|
|
172
173
|
class: "profile-field__label"
|
|
173
174
|
}, "个人简介", -1)), p(t(Me), {
|
|
174
175
|
modelValue: e.value.description,
|
|
175
|
-
"onUpdate:modelValue": w[1] || (w[1] = (
|
|
176
|
+
"onUpdate:modelValue": w[1] || (w[1] = (q) => e.value.description = q),
|
|
176
177
|
size: u.size,
|
|
177
178
|
placeholder: "介绍一下你自己",
|
|
178
179
|
"max-length": vt,
|
|
@@ -181,9 +182,9 @@ const it = {
|
|
|
181
182
|
minRows: 4,
|
|
182
183
|
maxRows: 8
|
|
183
184
|
}
|
|
184
|
-
}, null, 8, ["modelValue", "size"])]), r.value ? (h(),
|
|
185
|
+
}, null, 8, ["modelValue", "size"])]), r.value ? (h(), M("div", rt, [p(t(T), {
|
|
185
186
|
size: u.size,
|
|
186
|
-
onClick:
|
|
187
|
+
onClick: B
|
|
187
188
|
}, {
|
|
188
189
|
default: o(() => [...w[4] || (w[4] = [k("取消", -1)])]),
|
|
189
190
|
_: 1
|
|
@@ -191,7 +192,7 @@ const it = {
|
|
|
191
192
|
type: "primary",
|
|
192
193
|
size: u.size,
|
|
193
194
|
loading: v.value,
|
|
194
|
-
onClick:
|
|
195
|
+
onClick: K
|
|
195
196
|
}, {
|
|
196
197
|
default: o(() => [...w[5] || (w[5] = [k(" 保存修改 ", -1)])]),
|
|
197
198
|
_: 1
|
|
@@ -203,7 +204,7 @@ const it = {
|
|
|
203
204
|
message: "用户 ID 已复制"
|
|
204
205
|
}, null, 8, ["value"])) : C("", !0)])]), A("div", ft, [w[8] || (w[8] = A("dt", null, "注册时间", -1)), A("dd", null, U(g.value.createAt || "-"), 1)]), A("div", pt, [w[9] || (w[9] = A("dt", null, "账号状态", -1)), A("dd", null, U(t(Ge)(g.value.status)), 1)]), A("div", mt, [w[10] || (w[10] = A("dt", null, "登录标识", -1)), A("dd", null, U(g.value.loginIdentity), 1)])])])]));
|
|
205
206
|
}
|
|
206
|
-
}), yt = /* @__PURE__ */ X(ht, [["__scopeId", "data-v-
|
|
207
|
+
}), yt = /* @__PURE__ */ X(ht, [["__scopeId", "data-v-e03e688b"]]), gt = /* @__PURE__ */ Y({
|
|
207
208
|
__name: "AuthkitSendVerifyCode",
|
|
208
209
|
props: {
|
|
209
210
|
size: {
|
|
@@ -333,7 +334,7 @@ const bt = {
|
|
|
333
334
|
"auto-label-width": "",
|
|
334
335
|
size: l.size
|
|
335
336
|
}, {
|
|
336
|
-
default: o(() => [p(t(
|
|
337
|
+
default: o(() => [p(t(L), {
|
|
337
338
|
field: "email",
|
|
338
339
|
label: "邮箱",
|
|
339
340
|
rules: [{
|
|
@@ -346,7 +347,7 @@ const bt = {
|
|
|
346
347
|
}, {
|
|
347
348
|
default: o(() => [k(U(s.value), 1)]),
|
|
348
349
|
_: 1
|
|
349
|
-
}), p(t(
|
|
350
|
+
}), p(t(L), {
|
|
350
351
|
field: "userToken",
|
|
351
352
|
label: "验证码",
|
|
352
353
|
"hide-label": "",
|
|
@@ -370,7 +371,7 @@ const bt = {
|
|
|
370
371
|
onSend: f
|
|
371
372
|
}, null, 8, ["size", "loading"])])]),
|
|
372
373
|
_: 1
|
|
373
|
-
}), p(t(
|
|
374
|
+
}), p(t(L), {
|
|
374
375
|
field: "",
|
|
375
376
|
label: "",
|
|
376
377
|
rules: []
|
|
@@ -446,13 +447,13 @@ const bt = {
|
|
|
446
447
|
"auto-label-width": "",
|
|
447
448
|
size: l.size
|
|
448
449
|
}, {
|
|
449
|
-
default: o(() => [p(t(
|
|
450
|
+
default: o(() => [p(t(L), {
|
|
450
451
|
field: "phone",
|
|
451
452
|
label: "手机号"
|
|
452
453
|
}, {
|
|
453
454
|
default: o(() => [k(U(g.value), 1)]),
|
|
454
455
|
_: 1
|
|
455
|
-
}), p(t(
|
|
456
|
+
}), p(t(L), {
|
|
456
457
|
field: "code",
|
|
457
458
|
label: "验证码",
|
|
458
459
|
"hide-label": "",
|
|
@@ -476,7 +477,7 @@ const bt = {
|
|
|
476
477
|
onSend: f
|
|
477
478
|
}, null, 8, ["size", "loading"])])]),
|
|
478
479
|
_: 1
|
|
479
|
-
}), p(t(
|
|
480
|
+
}), p(t(L), {
|
|
480
481
|
field: "",
|
|
481
482
|
label: "",
|
|
482
483
|
rules: []
|
|
@@ -548,7 +549,7 @@ const bt = {
|
|
|
548
549
|
"auto-label-width": "",
|
|
549
550
|
size: d.size
|
|
550
551
|
}, {
|
|
551
|
-
default: o(() => [d.requireOldPassword ? (h(), I(t(
|
|
552
|
+
default: o(() => [d.requireOldPassword ? (h(), I(t(L), {
|
|
552
553
|
key: 0,
|
|
553
554
|
field: "oldPassword",
|
|
554
555
|
label: "当前密码",
|
|
@@ -565,7 +566,7 @@ const bt = {
|
|
|
565
566
|
type: "password"
|
|
566
567
|
}, null, 8, ["modelValue"])]),
|
|
567
568
|
_: 1
|
|
568
|
-
})) : C("", !0), p(t(
|
|
569
|
+
})) : C("", !0), p(t(L), {
|
|
569
570
|
field: "password",
|
|
570
571
|
label: d.requireOldPassword ? "新密码" : "登录密码",
|
|
571
572
|
"hide-label": "",
|
|
@@ -584,7 +585,7 @@ const bt = {
|
|
|
584
585
|
type: "password"
|
|
585
586
|
}, null, 8, ["modelValue", "placeholder"])]),
|
|
586
587
|
_: 1
|
|
587
|
-
}, 8, ["label", "rules"]), p(t(
|
|
588
|
+
}, 8, ["label", "rules"]), p(t(L), {
|
|
588
589
|
field: "confirmPassword",
|
|
589
590
|
label: "确认密码",
|
|
590
591
|
"hide-label": "",
|
|
@@ -597,7 +598,7 @@ const bt = {
|
|
|
597
598
|
type: "password"
|
|
598
599
|
}, null, 8, ["modelValue"])]),
|
|
599
600
|
_: 1
|
|
600
|
-
}), p(t(
|
|
601
|
+
}), p(t(L), {
|
|
601
602
|
field: "",
|
|
602
603
|
label: "",
|
|
603
604
|
rules: []
|
|
@@ -642,8 +643,8 @@ const bt = {
|
|
|
642
643
|
return ue(() => {
|
|
643
644
|
l.value && !i.value && n();
|
|
644
645
|
}), (g, f) => {
|
|
645
|
-
var v, r, m, S, R,
|
|
646
|
-
return h(),
|
|
646
|
+
var v, r, m, S, R, B, K, j, V;
|
|
647
|
+
return h(), M(ie, null, [!((v = t(i)) != null && v.email) && !((r = t(i)) != null && r.phone) ? (h(), I(t(J), {
|
|
647
648
|
key: 0,
|
|
648
649
|
type: "info",
|
|
649
650
|
title: "先绑定账号"
|
|
@@ -673,9 +674,9 @@ const bt = {
|
|
|
673
674
|
}, 8, ["title"])) : C("", !0), s.value === "update" ? (h(), I(Et, {
|
|
674
675
|
key: 2,
|
|
675
676
|
size: d.size,
|
|
676
|
-
"require-old-password": !!((
|
|
677
|
+
"require-old-password": !!((B = t(i)) != null && B.hasPassword),
|
|
677
678
|
onSubmit: e
|
|
678
|
-
}, null, 8, ["size", "require-old-password"])) : C("", !0), s.value === "verify" && ((
|
|
679
|
+
}, null, 8, ["size", "require-old-password"])) : C("", !0), s.value === "verify" && ((K = t(i)) != null && K.email) ? (h(), I(ye, {
|
|
679
680
|
key: 3,
|
|
680
681
|
size: d.size,
|
|
681
682
|
email: t(i).email,
|
|
@@ -1178,7 +1179,7 @@ const Mt = {
|
|
|
1178
1179
|
}
|
|
1179
1180
|
d.value = _.list;
|
|
1180
1181
|
}
|
|
1181
|
-
async function
|
|
1182
|
+
async function B() {
|
|
1182
1183
|
s.value = !0;
|
|
1183
1184
|
try {
|
|
1184
1185
|
if (!await e())
|
|
@@ -1190,28 +1191,28 @@ const Mt = {
|
|
|
1190
1191
|
s.value = !1;
|
|
1191
1192
|
}
|
|
1192
1193
|
}
|
|
1193
|
-
function
|
|
1194
|
-
var P,
|
|
1194
|
+
function K(_) {
|
|
1195
|
+
var P, N, F;
|
|
1195
1196
|
if (g.value = _, f.value = !1, !r.value) {
|
|
1196
|
-
|
|
1197
|
+
q();
|
|
1197
1198
|
return;
|
|
1198
1199
|
}
|
|
1199
|
-
if ((P = n.value) != null && P.email && ((
|
|
1200
|
+
if ((P = n.value) != null && P.email && ((N = n.value) != null && N.phone)) {
|
|
1200
1201
|
v.value = void 0;
|
|
1201
1202
|
return;
|
|
1202
1203
|
}
|
|
1203
|
-
v.value = (
|
|
1204
|
+
v.value = (F = n.value) != null && F.email ? "email" : "phone";
|
|
1204
1205
|
}
|
|
1205
1206
|
function j(_) {
|
|
1206
1207
|
v.value = _;
|
|
1207
1208
|
}
|
|
1208
1209
|
function V() {
|
|
1209
|
-
f.value = !0,
|
|
1210
|
+
f.value = !0, q();
|
|
1210
1211
|
}
|
|
1211
1212
|
function w() {
|
|
1212
1213
|
g.value = "", f.value = !1, v.value = void 0;
|
|
1213
1214
|
}
|
|
1214
|
-
async function
|
|
1215
|
+
async function q() {
|
|
1215
1216
|
if (!g.value)
|
|
1216
1217
|
return;
|
|
1217
1218
|
const {
|
|
@@ -1224,8 +1225,8 @@ const Mt = {
|
|
|
1224
1225
|
return ue(() => {
|
|
1225
1226
|
R();
|
|
1226
1227
|
}), (_, P) => {
|
|
1227
|
-
var
|
|
1228
|
-
return h(),
|
|
1228
|
+
var N, F;
|
|
1229
|
+
return h(), M("div", Mt, [p(t(J), {
|
|
1229
1230
|
type: "info",
|
|
1230
1231
|
style: {
|
|
1231
1232
|
"margin-bottom": "16px"
|
|
@@ -1233,7 +1234,7 @@ const Mt = {
|
|
|
1233
1234
|
}, {
|
|
1234
1235
|
default: o(() => [...P[2] || (P[2] = [k(" Passkey 使用设备生物识别(指纹 / 面容)登录,绑定后可在登录页一键验证身份。 ", -1)])]),
|
|
1235
1236
|
_: 1
|
|
1236
|
-
}), t(u) ? (h(),
|
|
1237
|
+
}), t(u) ? (h(), M("div", Kt, U(t(u)), 1)) : C("", !0), g.value && !f.value ? (h(), I(t(J), {
|
|
1237
1238
|
key: 1,
|
|
1238
1239
|
type: "warning",
|
|
1239
1240
|
title: "移除前验证身份"
|
|
@@ -1244,8 +1245,8 @@ const Mt = {
|
|
|
1244
1245
|
name: "action",
|
|
1245
1246
|
fn: o(() => [p(t(pe), null, {
|
|
1246
1247
|
default: o(() => {
|
|
1247
|
-
var
|
|
1248
|
-
return [(
|
|
1248
|
+
var D, Z;
|
|
1249
|
+
return [(D = t(n)) != null && D.email ? (h(), I(t(T), {
|
|
1249
1250
|
key: 0,
|
|
1250
1251
|
size: i.size,
|
|
1251
1252
|
type: "primary",
|
|
@@ -1272,22 +1273,22 @@ const Mt = {
|
|
|
1272
1273
|
_: 1
|
|
1273
1274
|
})]),
|
|
1274
1275
|
key: "0"
|
|
1275
|
-
} : void 0]), 1024)) : C("", !0), g.value && v.value === "email" && ((
|
|
1276
|
+
} : void 0]), 1024)) : C("", !0), g.value && v.value === "email" && ((N = t(n)) != null && N.email) ? (h(), I(ye, {
|
|
1276
1277
|
key: 2,
|
|
1277
1278
|
size: i.size,
|
|
1278
1279
|
email: t(n).email,
|
|
1279
1280
|
onNext: V
|
|
1280
|
-
}, null, 8, ["size", "email"])) : C("", !0), g.value && v.value === "phone" && ((
|
|
1281
|
+
}, null, 8, ["size", "email"])) : C("", !0), g.value && v.value === "phone" && ((F = t(n)) != null && F.phone) ? (h(), I(ge, {
|
|
1281
1282
|
key: 3,
|
|
1282
1283
|
size: i.size,
|
|
1283
1284
|
phone: t(n).phone,
|
|
1284
1285
|
onNext: V
|
|
1285
|
-
}, null, 8, ["size", "phone"])) : C("", !0), g.value ? C("", !0) : (h(),
|
|
1286
|
+
}, null, 8, ["size", "phone"])) : C("", !0), g.value ? C("", !0) : (h(), M("div", Ft, [p(t(T), {
|
|
1286
1287
|
type: "primary",
|
|
1287
1288
|
size: i.size,
|
|
1288
1289
|
loading: s.value,
|
|
1289
1290
|
disabled: !!t(u),
|
|
1290
|
-
onClick:
|
|
1291
|
+
onClick: B
|
|
1291
1292
|
}, {
|
|
1292
1293
|
default: o(() => [...P[7] || (P[7] = [k(" 添加 Passkey ", -1)])]),
|
|
1293
1294
|
_: 1
|
|
@@ -1301,16 +1302,16 @@ const Mt = {
|
|
|
1301
1302
|
"row-key": "credentialId"
|
|
1302
1303
|
}, {
|
|
1303
1304
|
lastUsedAt: o(({
|
|
1304
|
-
record:
|
|
1305
|
-
}) => [k(U(
|
|
1305
|
+
record: D
|
|
1306
|
+
}) => [k(U(D.lastUsedAt || "尚未使用"), 1)]),
|
|
1306
1307
|
createdAt: o(({
|
|
1307
|
-
record:
|
|
1308
|
-
}) => [k(U(
|
|
1308
|
+
record: D
|
|
1309
|
+
}) => [k(U(D.createdAt || "-"), 1)]),
|
|
1309
1310
|
actions: o(({
|
|
1310
|
-
record:
|
|
1311
|
+
record: D
|
|
1311
1312
|
}) => [p(t(Ke), {
|
|
1312
1313
|
content: "确定移除此 Passkey?移除后将无法使用该设备登录",
|
|
1313
|
-
onOk: (Z) =>
|
|
1314
|
+
onOk: (Z) => K(D.credentialId)
|
|
1314
1315
|
}, {
|
|
1315
1316
|
default: o(() => [p(t(T), {
|
|
1316
1317
|
type: "text",
|
|
@@ -1398,7 +1399,7 @@ const Mt = {
|
|
|
1398
1399
|
function f() {
|
|
1399
1400
|
n("skip");
|
|
1400
1401
|
}
|
|
1401
|
-
return (v, r) => (h(),
|
|
1402
|
+
return (v, r) => (h(), M("div", Gt, [p(t(J), {
|
|
1402
1403
|
type: "info",
|
|
1403
1404
|
title: l.title
|
|
1404
1405
|
}, {
|
|
@@ -1411,7 +1412,7 @@ const Mt = {
|
|
|
1411
1412
|
size: l.size,
|
|
1412
1413
|
"auto-label-width": ""
|
|
1413
1414
|
}, {
|
|
1414
|
-
default: o(() => [p(t(
|
|
1415
|
+
default: o(() => [p(t(L), {
|
|
1415
1416
|
field: "email",
|
|
1416
1417
|
label: "邮箱",
|
|
1417
1418
|
"hide-label": "",
|
|
@@ -1431,7 +1432,7 @@ const Mt = {
|
|
|
1431
1432
|
type: "email"
|
|
1432
1433
|
}, null, 8, ["modelValue"])]),
|
|
1433
1434
|
_: 1
|
|
1434
|
-
}), p(t(
|
|
1435
|
+
}), p(t(L), {
|
|
1435
1436
|
field: "userToken",
|
|
1436
1437
|
label: "验证码",
|
|
1437
1438
|
"hide-label": "",
|
|
@@ -1467,7 +1468,7 @@ const Mt = {
|
|
|
1467
1468
|
_: 1
|
|
1468
1469
|
}, 8, ["loading", "size"])])]),
|
|
1469
1470
|
_: 1
|
|
1470
|
-
}, 8, ["model", "size"])]), l.showSkip ? (h(),
|
|
1471
|
+
}, 8, ["model", "size"])]), l.showSkip ? (h(), M("div", Qt, [p(t(Ie), {
|
|
1471
1472
|
onClick: f
|
|
1472
1473
|
}, {
|
|
1473
1474
|
default: o(() => [...r[2] || (r[2] = [k("稍后绑定", -1)])]),
|
|
@@ -1516,14 +1517,14 @@ const Mt = {
|
|
|
1516
1517
|
i.value || l();
|
|
1517
1518
|
}), (v, r) => {
|
|
1518
1519
|
var m, S, R;
|
|
1519
|
-
return h(),
|
|
1520
|
+
return h(), M(ie, null, [(m = t(i)) != null && m.email && s.value === "hidden" ? (h(), I(t(J), {
|
|
1520
1521
|
key: 0,
|
|
1521
1522
|
title: "更改邮箱"
|
|
1522
1523
|
}, {
|
|
1523
1524
|
action: o(() => [p(t(T), {
|
|
1524
1525
|
size: u.size,
|
|
1525
1526
|
type: "primary",
|
|
1526
|
-
onClick: r[0] || (r[0] = (
|
|
1527
|
+
onClick: r[0] || (r[0] = (B) => y("verify"))
|
|
1527
1528
|
}, {
|
|
1528
1529
|
default: o(() => [...r[1] || (r[1] = [k("更改邮箱", -1)])]),
|
|
1529
1530
|
_: 1
|
|
@@ -1621,14 +1622,14 @@ const Mt = {
|
|
|
1621
1622
|
function f() {
|
|
1622
1623
|
n("skip");
|
|
1623
1624
|
}
|
|
1624
|
-
return (v, r) => (h(),
|
|
1625
|
+
return (v, r) => (h(), M("div", ti, [A("div", ii, [A("h3", ai, U(l.title), 1), A("p", ni, U(l.subtitle), 1)]), A("div", oi, [p(t(le), {
|
|
1625
1626
|
ref_key: "formRef",
|
|
1626
1627
|
ref: u,
|
|
1627
1628
|
model: e.value,
|
|
1628
1629
|
size: l.size,
|
|
1629
1630
|
"auto-label-width": ""
|
|
1630
1631
|
}, {
|
|
1631
|
-
default: o(() => [p(t(
|
|
1632
|
+
default: o(() => [p(t(L), {
|
|
1632
1633
|
field: "phone",
|
|
1633
1634
|
label: "手机号",
|
|
1634
1635
|
"hide-label": "",
|
|
@@ -1648,7 +1649,7 @@ const Mt = {
|
|
|
1648
1649
|
type: "tel"
|
|
1649
1650
|
}, null, 8, ["modelValue"])]),
|
|
1650
1651
|
_: 1
|
|
1651
|
-
}), p(t(
|
|
1652
|
+
}), p(t(L), {
|
|
1652
1653
|
field: "code",
|
|
1653
1654
|
label: "验证码",
|
|
1654
1655
|
"hide-label": "",
|
|
@@ -1684,7 +1685,7 @@ const Mt = {
|
|
|
1684
1685
|
_: 1
|
|
1685
1686
|
}, 8, ["loading", "size"])])]),
|
|
1686
1687
|
_: 1
|
|
1687
|
-
}, 8, ["model", "size"])]), l.showSkip ? (h(),
|
|
1688
|
+
}, 8, ["model", "size"])]), l.showSkip ? (h(), M("div", ri, [p(t(Ie), {
|
|
1688
1689
|
onClick: f
|
|
1689
1690
|
}, {
|
|
1690
1691
|
default: o(() => [...r[2] || (r[2] = [k("稍后绑定", -1)])]),
|
|
@@ -1735,15 +1736,15 @@ const Mt = {
|
|
|
1735
1736
|
return ue(() => {
|
|
1736
1737
|
i.value || l();
|
|
1737
1738
|
}), (r, m) => {
|
|
1738
|
-
var S, R,
|
|
1739
|
-
return h(),
|
|
1739
|
+
var S, R, B;
|
|
1740
|
+
return h(), M(ie, null, [!((S = t(i)) != null && S.phone) && s.value === "hidden" ? (h(), I(t(J), {
|
|
1740
1741
|
key: 0,
|
|
1741
1742
|
title: "绑定手机号"
|
|
1742
1743
|
}, {
|
|
1743
1744
|
action: o(() => [p(t(T), {
|
|
1744
1745
|
size: u.size,
|
|
1745
1746
|
type: "primary",
|
|
1746
|
-
onClick: m[0] || (m[0] = (
|
|
1747
|
+
onClick: m[0] || (m[0] = (K) => g("update"))
|
|
1747
1748
|
}, {
|
|
1748
1749
|
default: o(() => [...m[2] || (m[2] = [k("绑定手机号", -1)])]),
|
|
1749
1750
|
_: 1
|
|
@@ -1757,7 +1758,7 @@ const Mt = {
|
|
|
1757
1758
|
action: o(() => [p(t(T), {
|
|
1758
1759
|
size: u.size,
|
|
1759
1760
|
type: "primary",
|
|
1760
|
-
onClick: m[1] || (m[1] = (
|
|
1761
|
+
onClick: m[1] || (m[1] = (K) => g("verify"))
|
|
1761
1762
|
}, {
|
|
1762
1763
|
default: o(() => [...m[4] || (m[4] = [k("更改手机号", -1)])]),
|
|
1763
1764
|
_: 1
|
|
@@ -1775,7 +1776,7 @@ const Mt = {
|
|
|
1775
1776
|
}, null, 8, ["loading", "size", "title", "subtitle", "submit-text"])) : C("", !0), s.value === "verify" ? (h(), I(ge, {
|
|
1776
1777
|
key: 3,
|
|
1777
1778
|
size: u.size,
|
|
1778
|
-
phone: ((
|
|
1779
|
+
phone: ((B = t(i)) == null ? void 0 : B.phone) || "",
|
|
1779
1780
|
onNext: v
|
|
1780
1781
|
}, null, 8, ["size", "phone"])) : C("", !0)], 64);
|
|
1781
1782
|
};
|
|
@@ -1869,7 +1870,7 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
1869
1870
|
width: i.size,
|
|
1870
1871
|
height: i.size,
|
|
1871
1872
|
class: ze(i.class)
|
|
1872
|
-
}, null, 8, ["icon", "width", "height", "class"])) : i.icon ? (h(),
|
|
1873
|
+
}, null, 8, ["icon", "width", "height", "class"])) : i.icon ? (h(), M("img", {
|
|
1873
1874
|
key: 1,
|
|
1874
1875
|
src: i.icon,
|
|
1875
1876
|
alt: i.alt,
|
|
@@ -1941,26 +1942,26 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
1941
1942
|
}), S = $(() => re[n.provider]), R = $(() => {
|
|
1942
1943
|
const c = d.value.authMethods;
|
|
1943
1944
|
return c.signUp.email || c.login.emailPassword || c.login.emailCode;
|
|
1944
|
-
}),
|
|
1945
|
+
}), B = $(() => {
|
|
1945
1946
|
const c = d.value.authMethods;
|
|
1946
1947
|
return c.signUp.phone || c.login.phonePassword || c.login.phoneCode;
|
|
1947
|
-
}),
|
|
1948
|
+
}), K = $(() => {
|
|
1948
1949
|
var c;
|
|
1949
1950
|
return R.value && !!((c = l.value) != null && c.email);
|
|
1950
1951
|
}), j = $(() => {
|
|
1951
1952
|
var c;
|
|
1952
|
-
return
|
|
1953
|
+
return B.value && !!((c = l.value) != null && c.phone);
|
|
1953
1954
|
}), V = $(() => {
|
|
1954
1955
|
const c = [];
|
|
1955
|
-
return
|
|
1956
|
-
}), w = $(() => R.value ||
|
|
1956
|
+
return K.value && c.push("email"), j.value && c.push("phone"), c;
|
|
1957
|
+
}), w = $(() => R.value || B.value), q = $(() => e.value !== "hidden" && V.value.length > 1 && !y.value), _ = $(() => {
|
|
1957
1958
|
var c;
|
|
1958
1959
|
return e.value !== "hidden" && y.value === "email" && !!((c = l.value) != null && c.email);
|
|
1959
1960
|
}), P = $(() => {
|
|
1960
1961
|
var c;
|
|
1961
1962
|
return e.value !== "hidden" && y.value === "phone" && !!((c = l.value) != null && c.phone);
|
|
1962
|
-
}),
|
|
1963
|
-
function
|
|
1963
|
+
}), N = $(() => e.value === "unbind" ? "解绑" : "绑定");
|
|
1964
|
+
function F(c) {
|
|
1964
1965
|
if (c === "hidden") {
|
|
1965
1966
|
e.value = c, y.value = void 0;
|
|
1966
1967
|
return;
|
|
@@ -1976,7 +1977,7 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
1976
1977
|
}
|
|
1977
1978
|
e.value = c, y.value = E.length === 1 ? E[0] : void 0;
|
|
1978
1979
|
}
|
|
1979
|
-
function
|
|
1980
|
+
function D(c) {
|
|
1980
1981
|
y.value = c;
|
|
1981
1982
|
}
|
|
1982
1983
|
async function Z() {
|
|
@@ -2032,14 +2033,14 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2032
2033
|
f && clearInterval(f);
|
|
2033
2034
|
}), (c, E) => {
|
|
2034
2035
|
var H, oe;
|
|
2035
|
-
return h(),
|
|
2036
|
+
return h(), M(ie, null, [!v.value && e.value === "hidden" ? (h(), I(t(J), {
|
|
2036
2037
|
key: 0,
|
|
2037
2038
|
title: `绑定${n.label}`
|
|
2038
2039
|
}, {
|
|
2039
2040
|
action: o(() => [p(t(T), {
|
|
2040
2041
|
size: n.size,
|
|
2041
2042
|
type: "primary",
|
|
2042
|
-
onClick: E[0] || (E[0] = (te) =>
|
|
2043
|
+
onClick: E[0] || (E[0] = (te) => F("bind"))
|
|
2043
2044
|
}, {
|
|
2044
2045
|
default: o(() => [k(" 绑定" + U(n.label), 1)]),
|
|
2045
2046
|
_: 1
|
|
@@ -2053,7 +2054,7 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2053
2054
|
action: o(() => [p(t(T), {
|
|
2054
2055
|
size: n.size,
|
|
2055
2056
|
type: "primary",
|
|
2056
|
-
onClick: E[1] || (E[1] = (te) =>
|
|
2057
|
+
onClick: E[1] || (E[1] = (te) => F("unbind"))
|
|
2057
2058
|
}, {
|
|
2058
2059
|
default: o(() => [k(" 解绑" + U(n.label), 1)]),
|
|
2059
2060
|
_: 1
|
|
@@ -2063,21 +2064,21 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2063
2064
|
class: "oauth-binding-account__avatar",
|
|
2064
2065
|
"image-url": m.value,
|
|
2065
2066
|
size: 42
|
|
2066
|
-
}, null, 8, ["image-url"])) : (h(),
|
|
2067
|
+
}, null, 8, ["image-url"])) : (h(), M("div", Ci, [p(_i, {
|
|
2067
2068
|
icon: S.value,
|
|
2068
2069
|
size: t(Pi),
|
|
2069
2070
|
alt: n.label
|
|
2070
2071
|
}, null, 8, ["icon", "size", "alt"])])), A("div", Ei, [A("div", Ri, U(n.label), 1), A("div", Si, U(r.value), 1)])])]),
|
|
2071
2072
|
_: 1
|
|
2072
|
-
}, 8, ["title"])) : C("", !0),
|
|
2073
|
+
}, 8, ["title"])) : C("", !0), q.value ? (h(), I(t(J), {
|
|
2073
2074
|
key: 2,
|
|
2074
|
-
title: `${
|
|
2075
|
+
title: `${N.value}前验证身份`
|
|
2075
2076
|
}, {
|
|
2076
|
-
action: o(() => [A("div", Vi, [
|
|
2077
|
+
action: o(() => [A("div", Vi, [K.value ? (h(), I(t(T), {
|
|
2077
2078
|
key: 0,
|
|
2078
2079
|
size: n.size,
|
|
2079
2080
|
type: "primary",
|
|
2080
|
-
onClick: E[2] || (E[2] = (te) =>
|
|
2081
|
+
onClick: E[2] || (E[2] = (te) => D("email"))
|
|
2081
2082
|
}, {
|
|
2082
2083
|
default: o(() => [...E[4] || (E[4] = [k(" 邮箱验证 ", -1)])]),
|
|
2083
2084
|
_: 1
|
|
@@ -2085,7 +2086,7 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2085
2086
|
key: 1,
|
|
2086
2087
|
size: n.size,
|
|
2087
2088
|
type: "primary",
|
|
2088
|
-
onClick: E[3] || (E[3] = (te) =>
|
|
2089
|
+
onClick: E[3] || (E[3] = (te) => D("phone"))
|
|
2089
2090
|
}, {
|
|
2090
2091
|
default: o(() => [...E[5] || (E[5] = [k(" 手机验证 ", -1)])]),
|
|
2091
2092
|
_: 1
|
|
@@ -2142,16 +2143,16 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2142
2143
|
if (!O) return "";
|
|
2143
2144
|
const [b, c] = O.split("@");
|
|
2144
2145
|
return b.length <= 2 ? O : `${b.slice(0, 2)}***@${c}`;
|
|
2145
|
-
}),
|
|
2146
|
+
}), B = $(() => {
|
|
2146
2147
|
var b;
|
|
2147
2148
|
const O = ((b = s.value) == null ? void 0 : b.phone) || "";
|
|
2148
2149
|
return O.length < 7 ? O : `${O.slice(0, 3)}****${O.slice(-4)}`;
|
|
2149
|
-
}),
|
|
2150
|
+
}), K = $(() => S.value === "email" ? `为确保账号安全,我们将向您的邮箱 ${R.value} 发送验证码` : `为确保账号安全,我们将向您的手机号 ${B.value} 发送验证码`), j = $(() => S.value === "email" ? `验证码已发送至 ${R.value},注销后该账号将无法继续登录,请谨慎操作` : `验证码已发送至 ${B.value},注销后该账号将无法继续登录,请谨慎操作`), V = z(), w = z({
|
|
2150
2151
|
userToken: "",
|
|
2151
2152
|
code: "",
|
|
2152
2153
|
password: "",
|
|
2153
2154
|
confirmText: ""
|
|
2154
|
-
}),
|
|
2155
|
+
}), q = z(!1);
|
|
2155
2156
|
function _(O, b) {
|
|
2156
2157
|
O !== "注销" ? b('请输入"注销"以确认操作') : b();
|
|
2157
2158
|
}
|
|
@@ -2167,10 +2168,10 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2167
2168
|
}
|
|
2168
2169
|
S.value = s.value.email ? "email" : "phone", e.value = "sendCode";
|
|
2169
2170
|
}
|
|
2170
|
-
function
|
|
2171
|
+
function N(O) {
|
|
2171
2172
|
S.value = O, e.value = "sendCode";
|
|
2172
2173
|
}
|
|
2173
|
-
async function
|
|
2174
|
+
async function F() {
|
|
2174
2175
|
var c, E;
|
|
2175
2176
|
if (S.value === "email") {
|
|
2176
2177
|
if (!((c = s.value) != null && c.email)) {
|
|
@@ -2184,7 +2185,7 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2184
2185
|
});
|
|
2185
2186
|
f.value = !1;
|
|
2186
2187
|
const oe = _e(H);
|
|
2187
|
-
H.data && (v.value = H.data.emailVerifyId, G.success("验证码已发送"), e.value = "confirm"),
|
|
2188
|
+
H.data && (v.value = H.data.emailVerifyId, G.success("验证码已发送"), e.value = "confirm"), D(oe);
|
|
2188
2189
|
return;
|
|
2189
2190
|
}
|
|
2190
2191
|
if (!((E = s.value) != null && E.phone)) {
|
|
@@ -2198,9 +2199,9 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2198
2199
|
});
|
|
2199
2200
|
f.value = !1;
|
|
2200
2201
|
const b = _e(O);
|
|
2201
|
-
O.error || (G.success("验证码已发送"), e.value = "confirm"),
|
|
2202
|
+
O.error || (G.success("验证码已发送"), e.value = "confirm"), D(b);
|
|
2202
2203
|
}
|
|
2203
|
-
function
|
|
2204
|
+
function D(O) {
|
|
2204
2205
|
!O || O <= 0 || (r.value = Math.ceil(O), m && clearInterval(m), m = setInterval(() => {
|
|
2205
2206
|
r.value--, r.value <= 0 && m && (clearInterval(m), m = null);
|
|
2206
2207
|
}, 1e3));
|
|
@@ -2211,7 +2212,7 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2211
2212
|
async function Z() {
|
|
2212
2213
|
var E, H;
|
|
2213
2214
|
if (await ((E = V.value) == null ? void 0 : E.validate())) return;
|
|
2214
|
-
|
|
2215
|
+
q.value = !0;
|
|
2215
2216
|
const b = S.value === "email" ? {
|
|
2216
2217
|
method: "email",
|
|
2217
2218
|
userToken: w.value.userToken,
|
|
@@ -2227,7 +2228,7 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2227
2228
|
}, {
|
|
2228
2229
|
error: c
|
|
2229
2230
|
} = await x().auth.users.deleteAccount.post(b);
|
|
2230
|
-
|
|
2231
|
+
q.value = !1, c || (e.value = "success", d(), u(), l("deleted"));
|
|
2231
2232
|
}
|
|
2232
2233
|
function ne() {
|
|
2233
2234
|
window.location.href = "/";
|
|
@@ -2249,7 +2250,7 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2249
2250
|
}, 8, ["size", "loading"])]),
|
|
2250
2251
|
default: o(() => [b[10] || (b[10] = k(" 注销账号后,登录凭据、第三方绑定和当前登录态会被清除;历史订单、用量、审计等业务记录会保留用于对账和安全追溯。 ", -1))]),
|
|
2251
2252
|
_: 1
|
|
2252
|
-
})) : e.value === "dependencies" ? (h(),
|
|
2253
|
+
})) : e.value === "dependencies" ? (h(), M(ie, {
|
|
2253
2254
|
key: 1
|
|
2254
2255
|
}, [p(t(J), {
|
|
2255
2256
|
type: "error",
|
|
@@ -2257,7 +2258,7 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2257
2258
|
}, {
|
|
2258
2259
|
default: o(() => [...b[11] || (b[11] = [k(" 您的账号下还有以下资源,请先处理后再注销: ", -1)])]),
|
|
2259
2260
|
_: 1
|
|
2260
|
-
}), A("div", Ui, [(h(!0),
|
|
2261
|
+
}), A("div", Ui, [(h(!0), M(ie, null, Le(g.value, (c) => (h(), M("div", {
|
|
2261
2262
|
key: c.type,
|
|
2262
2263
|
class: "dependency-item"
|
|
2263
2264
|
}, [A("span", xi, U(c.label), 1), A("span", Oi, U(c.count) + " 个", 1)]))), 128))]), A("div", Ni, [p(t(T), {
|
|
@@ -2284,7 +2285,7 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2284
2285
|
key: 0,
|
|
2285
2286
|
size: n.size,
|
|
2286
2287
|
type: "primary",
|
|
2287
|
-
onClick: b[2] || (b[2] = (H) =>
|
|
2288
|
+
onClick: b[2] || (b[2] = (H) => N("email"))
|
|
2288
2289
|
}, {
|
|
2289
2290
|
default: o(() => [...b[14] || (b[14] = [k(" 邮箱验证 ", -1)])]),
|
|
2290
2291
|
_: 1
|
|
@@ -2292,7 +2293,7 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2292
2293
|
key: 1,
|
|
2293
2294
|
size: n.size,
|
|
2294
2295
|
type: "primary",
|
|
2295
|
-
onClick: b[3] || (b[3] = (H) =>
|
|
2296
|
+
onClick: b[3] || (b[3] = (H) => N("phone"))
|
|
2296
2297
|
}, {
|
|
2297
2298
|
default: o(() => [...b[15] || (b[15] = [k(" 手机验证 ", -1)])]),
|
|
2298
2299
|
_: 1
|
|
@@ -2318,16 +2319,16 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2318
2319
|
size: n.size,
|
|
2319
2320
|
type: "primary",
|
|
2320
2321
|
loading: f.value,
|
|
2321
|
-
onClick:
|
|
2322
|
+
onClick: F
|
|
2322
2323
|
}, {
|
|
2323
2324
|
default: o(() => [k(U(f.value ? "发送中..." : "发送验证码"), 1)]),
|
|
2324
2325
|
_: 1
|
|
2325
2326
|
}, 8, ["size", "loading"])]),
|
|
2326
2327
|
_: 1
|
|
2327
2328
|
})]),
|
|
2328
|
-
default: o(() => [k(U(
|
|
2329
|
+
default: o(() => [k(U(K.value) + " ", 1)]),
|
|
2329
2330
|
_: 1
|
|
2330
|
-
})) : e.value === "confirm" ? (h(),
|
|
2331
|
+
})) : e.value === "confirm" ? (h(), M(ie, {
|
|
2331
2332
|
key: 4
|
|
2332
2333
|
}, [p(t(J), {
|
|
2333
2334
|
type: "warning",
|
|
@@ -2345,7 +2346,7 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2345
2346
|
}, {
|
|
2346
2347
|
default: o(() => {
|
|
2347
2348
|
var c;
|
|
2348
|
-
return [S.value === "email" ? (h(), I(t(
|
|
2349
|
+
return [S.value === "email" ? (h(), I(t(L), {
|
|
2349
2350
|
key: 0,
|
|
2350
2351
|
field: "userToken",
|
|
2351
2352
|
label: "邮箱验证码",
|
|
@@ -2363,13 +2364,13 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2363
2364
|
}, null, 8, ["modelValue"]), p(t(T), {
|
|
2364
2365
|
disabled: r.value > 0,
|
|
2365
2366
|
loading: f.value,
|
|
2366
|
-
onClick:
|
|
2367
|
+
onClick: F
|
|
2367
2368
|
}, {
|
|
2368
2369
|
default: o(() => [k(U(r.value > 0 ? `${r.value}s 后重发` : "重新发送"), 1)]),
|
|
2369
2370
|
_: 1
|
|
2370
2371
|
}, 8, ["disabled", "loading"])])]),
|
|
2371
2372
|
_: 1
|
|
2372
|
-
})) : (h(), I(t(
|
|
2373
|
+
})) : (h(), I(t(L), {
|
|
2373
2374
|
key: 1,
|
|
2374
2375
|
field: "code",
|
|
2375
2376
|
label: "短信验证码",
|
|
@@ -2386,13 +2387,13 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2386
2387
|
}, null, 8, ["modelValue"]), p(t(T), {
|
|
2387
2388
|
disabled: r.value > 0,
|
|
2388
2389
|
loading: f.value,
|
|
2389
|
-
onClick:
|
|
2390
|
+
onClick: F
|
|
2390
2391
|
}, {
|
|
2391
2392
|
default: o(() => [k(U(r.value > 0 ? `${r.value}s 后重发` : "重新发送"), 1)]),
|
|
2392
2393
|
_: 1
|
|
2393
2394
|
}, 8, ["disabled", "loading"])])]),
|
|
2394
2395
|
_: 1
|
|
2395
|
-
})), (c = t(s)) != null && c.hasPassword ? (h(), I(t(
|
|
2396
|
+
})), (c = t(s)) != null && c.hasPassword ? (h(), I(t(L), {
|
|
2396
2397
|
key: 2,
|
|
2397
2398
|
field: "password",
|
|
2398
2399
|
label: "登录密码",
|
|
@@ -2408,7 +2409,7 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2408
2409
|
"allow-clear": ""
|
|
2409
2410
|
}, null, 8, ["modelValue"])]),
|
|
2410
2411
|
_: 1
|
|
2411
|
-
})) : C("", !0), p(t(
|
|
2412
|
+
})) : C("", !0), p(t(L), {
|
|
2412
2413
|
field: "confirmText",
|
|
2413
2414
|
label: "请输入「注销」以确认",
|
|
2414
2415
|
rules: [{
|
|
@@ -2425,7 +2426,7 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2425
2426
|
"allow-clear": ""
|
|
2426
2427
|
}, null, 8, ["modelValue"])]),
|
|
2427
2428
|
_: 1
|
|
2428
|
-
}, 8, ["rules"]), p(t(
|
|
2429
|
+
}, 8, ["rules"]), p(t(L), null, {
|
|
2429
2430
|
default: o(() => [p(t(pe), null, {
|
|
2430
2431
|
default: o(() => [p(t(T), {
|
|
2431
2432
|
onClick: b[9] || (b[9] = (E) => e.value = "check")
|
|
@@ -2435,10 +2436,10 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2435
2436
|
}), p(t(T), {
|
|
2436
2437
|
type: "primary",
|
|
2437
2438
|
status: "danger",
|
|
2438
|
-
loading:
|
|
2439
|
+
loading: q.value,
|
|
2439
2440
|
onClick: Z
|
|
2440
2441
|
}, {
|
|
2441
|
-
default: o(() => [k(U(
|
|
2442
|
+
default: o(() => [k(U(q.value ? "注销中..." : "确认注销"), 1)]),
|
|
2442
2443
|
_: 1
|
|
2443
2444
|
}, 8, ["loading"])]),
|
|
2444
2445
|
_: 1
|
|
@@ -2519,12 +2520,12 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2519
2520
|
const _ = g.value.authMethods;
|
|
2520
2521
|
return _.login.emailPassword || _.login.phonePassword;
|
|
2521
2522
|
}), m = $(() => r.value || f.value || v.value), S = $(() => g.value.authMethods.login.passkey), R = $(() => y.filter((_) => {
|
|
2522
|
-
var P,
|
|
2523
|
-
return (
|
|
2523
|
+
var P, N;
|
|
2524
|
+
return (N = (P = g.value.oauth) == null ? void 0 : P[_.provider]) == null ? void 0 : N.enabled;
|
|
2524
2525
|
}).map((_) => ({
|
|
2525
2526
|
..._,
|
|
2526
2527
|
path: `OAuthBinding:${_.provider}`
|
|
2527
|
-
}))),
|
|
2528
|
+
}))), B = $(() => {
|
|
2528
2529
|
const _ = [];
|
|
2529
2530
|
f.value && _.push({
|
|
2530
2531
|
name: "邮箱",
|
|
@@ -2580,7 +2581,7 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2580
2581
|
},
|
|
2581
2582
|
children: R.value
|
|
2582
2583
|
}), P;
|
|
2583
|
-
}),
|
|
2584
|
+
}), K = $(() => R.value.find((_) => _.path === e.value[0]));
|
|
2584
2585
|
function j(_) {
|
|
2585
2586
|
const P = _.path;
|
|
2586
2587
|
e.value = [P];
|
|
@@ -2591,18 +2592,18 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2591
2592
|
} = tt(l);
|
|
2592
2593
|
Ae(R, (_) => {
|
|
2593
2594
|
e.value[0].startsWith("OAuthBinding:") && !_.some((P) => P.path === e.value[0]) && (e.value = ["PersonalInformation"]);
|
|
2594
|
-
}), Ae(
|
|
2595
|
+
}), Ae(B, (_) => {
|
|
2595
2596
|
const P = e.value[0];
|
|
2596
|
-
_.some((
|
|
2597
|
-
var
|
|
2598
|
-
return
|
|
2597
|
+
_.some((F) => {
|
|
2598
|
+
var D;
|
|
2599
|
+
return F.path === P || ((D = F.children) == null ? void 0 : D.some((Z) => Z.path === P));
|
|
2599
2600
|
}) || (e.value = ["PersonalInformation"]);
|
|
2600
2601
|
});
|
|
2601
|
-
function
|
|
2602
|
+
function q(_, P) {
|
|
2602
2603
|
w.value = P, V.value = "编辑";
|
|
2603
2604
|
}
|
|
2604
2605
|
return i({
|
|
2605
|
-
setData:
|
|
2606
|
+
setData: q
|
|
2606
2607
|
}), (_, P) => t(w) ? (h(), I(t(We), {
|
|
2607
2608
|
key: 0,
|
|
2608
2609
|
visible: !0,
|
|
@@ -2615,8 +2616,8 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2615
2616
|
title: o(() => [...P[1] || (P[1] = [k(" 用户信息 ", -1)])]),
|
|
2616
2617
|
default: o(() => [A("div", Mi, [A("div", Ki, [p(Ze, {
|
|
2617
2618
|
"selected-keys": e.value,
|
|
2618
|
-
"onUpdate:selectedKeys": P[0] || (P[0] = (
|
|
2619
|
-
menus:
|
|
2619
|
+
"onUpdate:selectedKeys": P[0] || (P[0] = (N) => e.value = N),
|
|
2620
|
+
menus: B.value,
|
|
2620
2621
|
onChange: j
|
|
2621
2622
|
}, null, 8, ["selected-keys", "menus"])]), A("div", Fi, [e.value[0] === "PersonalInformation" ? (h(), I(yt, {
|
|
2622
2623
|
key: 0,
|
|
@@ -2633,10 +2634,10 @@ const wi = ["src", "alt", "width", "height"], bi = /* @__PURE__ */ Y({
|
|
|
2633
2634
|
}, null, 8, ["size"])) : C("", !0), e.value[0] === "PasskeyBinding" ? (h(), I(Wt, {
|
|
2634
2635
|
key: 4,
|
|
2635
2636
|
size: u.value
|
|
2636
|
-
}, null, 8, ["size"])) : C("", !0),
|
|
2637
|
+
}, null, 8, ["size"])) : C("", !0), K.value ? (h(), I(Ti, {
|
|
2637
2638
|
key: 5,
|
|
2638
|
-
provider:
|
|
2639
|
-
label:
|
|
2639
|
+
provider: K.value.provider,
|
|
2640
|
+
label: K.value.name,
|
|
2640
2641
|
size: u.value
|
|
2641
2642
|
}, null, 8, ["provider", "label", "size"])) : C("", !0), e.value[0] === "AccountDelete" ? (h(), I(Li, {
|
|
2642
2643
|
key: 6,
|