@huyooo/ui 0.5.58 → 0.5.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AuthkitAuthModal-BVXtE_sP.js → AuthkitAuthModal-BSvtvlyj.js} +789 -748
- package/dist/AuthkitOAuthCallback-DQ1RAKyR.js +330 -0
- package/dist/{Clipboard-CXQgZeZq.js → Clipboard-BAn3vQlX.js} +1 -1
- package/dist/{Contact-ZkK_OxmG.js → Contact-CDelrtDR.js} +2 -2
- package/dist/{FeedbackItem-BZ3zskgs.js → FeedbackItem-B9lo9J0G.js} +3 -3
- package/dist/{FeedbackModal-CLRw0hmp.js → FeedbackModal-DWJmFtvY.js} +3 -3
- package/dist/{MessageHandle-cK3Z3tfe.js → MessageHandle-BlsLRmdj.js} +3 -3
- package/dist/{PaySubscriptions-DlV3SHOV.js → PaySubscriptions-Vj0KnZGv.js} +3 -3
- package/dist/{ReferrerReferees-DBOVVD_R.js → ReferrerReferees-D8hYkkAy.js} +4 -4
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-bvoyktaa.js → Upload.vue_vue_type_script_setup_true_lang-BYlxlhfb.js} +2 -2
- package/dist/{UserAccountMenu-BbHFa60w.js → UserAccountMenu-BWx4hX66.js} +7 -7
- package/dist/{WidthContainer-VdifT6ZJ.js → WidthContainer-DiEkVFtH.js} +6 -6
- package/dist/api/Authkit/OAuth.d.ts +7 -4
- package/dist/{auth-CDARHcht.js → auth-bwwc2iT8.js} +60 -59
- package/dist/authkit.d.ts +2 -0
- package/dist/authkit.js +23 -21
- package/dist/common/globalConfig.d.ts +4 -0
- package/dist/common.js +1 -1
- package/dist/components/Authkit/Auth/AuthkitOAuthCallback.vue.d.ts +22 -0
- package/dist/components/Authkit/Auth/AuthkitOAuthList.vue.d.ts +1 -1
- package/dist/components/InfiniteLoading.vue.d.ts +1 -1
- package/dist/composables/Authkit/useAuthkitAuth.d.ts +2 -0
- package/dist/composables/Authkit/useAuthkitOAuth.d.ts +13 -3
- package/dist/composables.js +9 -9
- package/dist/feedback.js +3 -3
- package/dist/index.js +179 -177
- package/dist/message.js +2 -2
- package/dist/pay.js +1 -1
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-h9CL-MmH.js → useAuthkitAppsAuthPageInfo-CzZmhPMm.js} +1 -1
- package/dist/{useAuthkitCreateAndUpdate-Bsl_uyGQ.js → useAuthkitCreateAndUpdate-Co5wMbv7.js} +1 -1
- package/dist/{useAuthkitUsersProfile-B_uMdnat.js → useAuthkitUsersProfile-hZ9L3rYe.js} +93 -71
- package/dist/{useDownloads-05u8toS3.js → useDownloads-C0V_Sjr9.js} +1 -1
- package/dist/{useMessageNotifications-CAiVf4PX.js → useMessageNotifications-BT84SOgI.js} +1 -1
- package/dist/{useSEO-D5sci2ek.js → useSEO-DT8VkGVt.js} +2 -2
- package/dist/{useTableHandle-aJOWPWFL.js → useTableHandle-DaKaAKAH.js} +1 -1
- package/dist/{useUploadCos-DKh-eczm.js → useUploadCos-_xwV40NS.js} +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/AuthkitAuthorize-Cu6_4HoY.js +0 -248
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { defineComponent as I, computed as
|
|
5
|
-
import { Form as
|
|
4
|
+
import { defineComponent as I, computed as F, createElementBlock as V, openBlock as g, normalizeStyle as le, normalizeClass as ke, createElementVNode as z, ref as w, createBlock as k, unref as e, withCtx as n, createVNode as i, createTextVNode as _, onMounted as Z, onUnmounted as re, withDirectives as ze, toDisplayString as R, vShow as Se, Fragment as M, createCommentVNode as S, renderList as Ae, isRef as ue, useSlots as Ie, renderSlot as de } from "vue";
|
|
5
|
+
import { Form as G, FormItem as A, Avatar as ce, Input as q, Textarea as Pe, Button as P, Message as N, Alert as D, Space as ee, InputPassword as Ve, Result as Ue, Modal as me, Divider as $e, Link as j } from "@arco-design/web-vue";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { g as
|
|
7
|
+
import { g as E, c as H, h as fe, u as Ce } from "./auth-bwwc2iT8.js";
|
|
8
8
|
/* empty css */
|
|
9
|
-
import { u as
|
|
10
|
-
import { b as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { M as
|
|
14
|
-
import { u as Ge } from "./useAuthkitCreateAndUpdate-
|
|
15
|
-
import { u as
|
|
9
|
+
import { u as xe } from "./useUploadCos-_xwV40NS.js";
|
|
10
|
+
import { b as qe, c as oe, d as Te, a as J, e as Re, f as Le, u as Q, g as Be, h as Oe } from "./useAuthkitUsersProfile-hZ9L3rYe.js";
|
|
11
|
+
import { _ as Ee, g as De, i as Ne } from "./plugin-vue_export-helper-LjDO2Zua.js";
|
|
12
|
+
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
import { M as Fe } from "./Menu-BjWB9hre.js";
|
|
14
|
+
import { u as Ge } from "./useAuthkitCreateAndUpdate-Co5wMbv7.js";
|
|
15
|
+
import { u as se } from "./useAuthkitAppsAuthPageInfo-CzZmhPMm.js";
|
|
16
16
|
/* empty css */
|
|
17
|
-
import { Icon as
|
|
18
|
-
const
|
|
17
|
+
import { Icon as Me } from "@iconify/vue";
|
|
18
|
+
const He = I({
|
|
19
19
|
name: "IconCamera",
|
|
20
20
|
props: {
|
|
21
21
|
size: {
|
|
@@ -28,63 +28,63 @@ const Ne = I({
|
|
|
28
28
|
strokeLinecap: {
|
|
29
29
|
type: String,
|
|
30
30
|
default: "butt",
|
|
31
|
-
validator: (
|
|
31
|
+
validator: (s) => ["butt", "round", "square"].includes(s)
|
|
32
32
|
},
|
|
33
33
|
strokeLinejoin: {
|
|
34
34
|
type: String,
|
|
35
35
|
default: "miter",
|
|
36
|
-
validator: (
|
|
36
|
+
validator: (s) => ["arcs", "bevel", "miter", "miter-clip", "round"].includes(s)
|
|
37
37
|
},
|
|
38
38
|
rotate: Number,
|
|
39
39
|
spin: Boolean
|
|
40
40
|
},
|
|
41
41
|
emits: {
|
|
42
|
-
click: (
|
|
42
|
+
click: (s) => !0
|
|
43
43
|
},
|
|
44
|
-
setup(
|
|
45
|
-
emit:
|
|
44
|
+
setup(s, {
|
|
45
|
+
emit: r
|
|
46
46
|
}) {
|
|
47
|
-
const
|
|
48
|
-
[`${
|
|
49
|
-
}]),
|
|
47
|
+
const u = De("icon"), a = F(() => [u, `${u}-camera`, {
|
|
48
|
+
[`${u}-spin`]: s.spin
|
|
49
|
+
}]), o = F(() => {
|
|
50
50
|
const t = {};
|
|
51
|
-
return
|
|
51
|
+
return s.size && (t.fontSize = Ne(s.size) ? `${s.size}px` : s.size), s.rotate && (t.transform = `rotate(${s.rotate}deg)`), t;
|
|
52
52
|
});
|
|
53
53
|
return {
|
|
54
|
-
cls:
|
|
55
|
-
innerStyle:
|
|
54
|
+
cls: a,
|
|
55
|
+
innerStyle: o,
|
|
56
56
|
onClick: (t) => {
|
|
57
|
-
|
|
57
|
+
r("click", t);
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
}),
|
|
62
|
-
function
|
|
63
|
-
return g(),
|
|
61
|
+
}), je = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
62
|
+
function We(s, r, u, a, o, d) {
|
|
63
|
+
return g(), V("svg", {
|
|
64
64
|
viewBox: "0 0 48 48",
|
|
65
65
|
fill: "none",
|
|
66
66
|
xmlns: "http://www.w3.org/2000/svg",
|
|
67
67
|
stroke: "currentColor",
|
|
68
|
-
class:
|
|
69
|
-
style:
|
|
70
|
-
"stroke-width":
|
|
71
|
-
"stroke-linecap":
|
|
72
|
-
"stroke-linejoin":
|
|
73
|
-
onClick:
|
|
74
|
-
},
|
|
68
|
+
class: ke(s.cls),
|
|
69
|
+
style: le(s.innerStyle),
|
|
70
|
+
"stroke-width": s.strokeWidth,
|
|
71
|
+
"stroke-linecap": s.strokeLinecap,
|
|
72
|
+
"stroke-linejoin": s.strokeLinejoin,
|
|
73
|
+
onClick: r[0] || (r[0] = (...t) => s.onClick && s.onClick(...t))
|
|
74
|
+
}, r[1] || (r[1] = [z("path", {
|
|
75
75
|
d: "m33 12-1.862-3.724A.5.5 0 0 0 30.691 8H17.309a.5.5 0 0 0-.447.276L15 12m16 14a7 7 0 1 1-14 0 7 7 0 0 1 14 0ZM7 40h34a1 1 0 0 0 1-1V13a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v26a1 1 0 0 0 1 1Z"
|
|
76
|
-
}, null, -1)]), 14,
|
|
76
|
+
}, null, -1)]), 14, je);
|
|
77
77
|
}
|
|
78
|
-
var
|
|
79
|
-
const
|
|
80
|
-
install: (
|
|
81
|
-
var
|
|
82
|
-
const
|
|
83
|
-
|
|
78
|
+
var te = /* @__PURE__ */ Ee(He, [["render", We]]);
|
|
79
|
+
const Ke = Object.assign(te, {
|
|
80
|
+
install: (s, r) => {
|
|
81
|
+
var u;
|
|
82
|
+
const a = (u = r == null ? void 0 : r.iconPrefix) != null ? u : "";
|
|
83
|
+
s.component(a + te.name, te);
|
|
84
84
|
}
|
|
85
|
-
}),
|
|
85
|
+
}), Ze = {
|
|
86
86
|
class: "handle"
|
|
87
|
-
},
|
|
87
|
+
}, Je = /* @__PURE__ */ I({
|
|
88
88
|
__name: "AuthkitPersonalInformation",
|
|
89
89
|
props: {
|
|
90
90
|
size: {
|
|
@@ -93,39 +93,39 @@ const je = Object.assign(ee, {
|
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
emits: ["submit"],
|
|
96
|
-
setup(
|
|
97
|
-
emit:
|
|
96
|
+
setup(s, {
|
|
97
|
+
emit: r
|
|
98
98
|
}) {
|
|
99
|
-
const
|
|
99
|
+
const u = r, a = s, o = w({
|
|
100
100
|
id: void 0,
|
|
101
101
|
nickname: "",
|
|
102
102
|
description: "",
|
|
103
103
|
avatar: "",
|
|
104
104
|
avatarUrl: ""
|
|
105
|
-
}),
|
|
105
|
+
}), d = w(!1), t = w(), l = w(!1);
|
|
106
106
|
function y() {
|
|
107
|
-
l.value = !0,
|
|
108
|
-
data:
|
|
107
|
+
l.value = !0, qe().then(({
|
|
108
|
+
data: c
|
|
109
109
|
}) => {
|
|
110
|
-
l.value = !1,
|
|
110
|
+
l.value = !1, o.value.id = c.id, o.value.nickname = c.nickname, o.value.description = c.description, o.value.avatar = c.avatar, o.value.avatarUrl = c.avatarUrl;
|
|
111
111
|
}).catch(() => {
|
|
112
112
|
l.value = !1;
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
t.value.validate().then((
|
|
117
|
-
if (!
|
|
115
|
+
function m() {
|
|
116
|
+
t.value.validate().then((c) => {
|
|
117
|
+
if (!c) {
|
|
118
118
|
l.value = !0;
|
|
119
|
-
const
|
|
120
|
-
id:
|
|
121
|
-
nickname:
|
|
122
|
-
description:
|
|
123
|
-
avatar:
|
|
119
|
+
const f = {
|
|
120
|
+
id: o.value.id,
|
|
121
|
+
nickname: o.value.nickname,
|
|
122
|
+
description: o.value.description,
|
|
123
|
+
avatar: o.value.avatar
|
|
124
124
|
};
|
|
125
|
-
|
|
125
|
+
oe(f).then(({
|
|
126
126
|
data: v
|
|
127
127
|
}) => {
|
|
128
|
-
l.value = !1,
|
|
128
|
+
l.value = !1, N.success("更新成功"), o.value.avatarUrl = v.avatarUrl, u("submit");
|
|
129
129
|
}).catch(() => {
|
|
130
130
|
l.value = !1;
|
|
131
131
|
});
|
|
@@ -135,50 +135,50 @@ const je = Object.assign(ee, {
|
|
|
135
135
|
y();
|
|
136
136
|
const p = () => {
|
|
137
137
|
const {
|
|
138
|
-
uploadFile:
|
|
139
|
-
} =
|
|
140
|
-
|
|
141
|
-
var
|
|
142
|
-
const U = (
|
|
138
|
+
uploadFile: c
|
|
139
|
+
} = xe(), f = document.createElement("input");
|
|
140
|
+
f.type = "file", f.accept = "image/*", f.style.display = "none", document.body.append(f), f.addEventListener("change", async (v) => {
|
|
141
|
+
var $;
|
|
142
|
+
const U = ($ = v.target.files) == null ? void 0 : $[0];
|
|
143
143
|
if (U) {
|
|
144
|
-
|
|
144
|
+
d.value = !0;
|
|
145
145
|
try {
|
|
146
|
-
|
|
147
|
-
bucketId:
|
|
146
|
+
c({
|
|
147
|
+
bucketId: E.avatarBucketId,
|
|
148
148
|
file: U,
|
|
149
149
|
onFileFinish(T, B, O) {
|
|
150
|
-
|
|
151
|
-
const
|
|
152
|
-
id:
|
|
153
|
-
nickname:
|
|
154
|
-
description:
|
|
150
|
+
d.value = !0;
|
|
151
|
+
const W = {
|
|
152
|
+
id: o.value.id,
|
|
153
|
+
nickname: o.value.nickname,
|
|
154
|
+
description: o.value.description,
|
|
155
155
|
avatar: O.Key
|
|
156
156
|
};
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
oe(W).then(() => {
|
|
158
|
+
d.value = !1, N.success("更新成功"), y(), u("submit");
|
|
159
159
|
}).catch(() => {
|
|
160
|
-
|
|
160
|
+
d.value = !1;
|
|
161
161
|
});
|
|
162
162
|
},
|
|
163
163
|
onError(T) {
|
|
164
|
-
console.error("上传图片失败"),
|
|
164
|
+
console.error("上传图片失败"), d.value = !1;
|
|
165
165
|
}
|
|
166
166
|
});
|
|
167
167
|
} catch (T) {
|
|
168
|
-
console.error("上传图片失败", T),
|
|
168
|
+
console.error("上传图片失败", T), d.value = !1;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
|
|
172
|
-
}),
|
|
171
|
+
f.remove();
|
|
172
|
+
}), f.click();
|
|
173
173
|
};
|
|
174
|
-
return (
|
|
174
|
+
return (c, f) => (g(), k(e(G), {
|
|
175
175
|
ref_key: "formRef",
|
|
176
176
|
ref: t,
|
|
177
|
-
model:
|
|
177
|
+
model: o.value,
|
|
178
178
|
"auto-label-width": "",
|
|
179
|
-
size:
|
|
179
|
+
size: a.size
|
|
180
180
|
}, {
|
|
181
|
-
default:
|
|
181
|
+
default: n(() => [i(e(A), {
|
|
182
182
|
field: "avatar",
|
|
183
183
|
label: "头像",
|
|
184
184
|
rules: [{
|
|
@@ -186,8 +186,8 @@ const je = Object.assign(ee, {
|
|
|
186
186
|
message: "请上传头像"
|
|
187
187
|
}]
|
|
188
188
|
}, {
|
|
189
|
-
default:
|
|
190
|
-
"image-url":
|
|
189
|
+
default: n(() => [i(e(ce), {
|
|
190
|
+
"image-url": o.value.avatarUrl,
|
|
191
191
|
size: 42,
|
|
192
192
|
"object-fit": "cover",
|
|
193
193
|
"trigger-icon-style": {
|
|
@@ -195,7 +195,7 @@ const je = Object.assign(ee, {
|
|
|
195
195
|
},
|
|
196
196
|
onClick: p
|
|
197
197
|
}, {
|
|
198
|
-
"trigger-icon":
|
|
198
|
+
"trigger-icon": n(() => [i(e(Ke))]),
|
|
199
199
|
_: 1
|
|
200
200
|
}, 8, ["image-url"])]),
|
|
201
201
|
_: 1
|
|
@@ -207,9 +207,9 @@ const je = Object.assign(ee, {
|
|
|
207
207
|
message: "请输入昵称"
|
|
208
208
|
}]
|
|
209
209
|
}, {
|
|
210
|
-
default:
|
|
211
|
-
modelValue:
|
|
212
|
-
"onUpdate:modelValue":
|
|
210
|
+
default: n(() => [i(e(q), {
|
|
211
|
+
modelValue: o.value.nickname,
|
|
212
|
+
"onUpdate:modelValue": f[0] || (f[0] = (v) => o.value.nickname = v),
|
|
213
213
|
placeholder: "请输入昵称"
|
|
214
214
|
}, null, 8, ["modelValue"])]),
|
|
215
215
|
_: 1
|
|
@@ -221,9 +221,9 @@ const je = Object.assign(ee, {
|
|
|
221
221
|
message: "请输入描述"
|
|
222
222
|
}]
|
|
223
223
|
}, {
|
|
224
|
-
default:
|
|
225
|
-
modelValue:
|
|
226
|
-
"onUpdate:modelValue":
|
|
224
|
+
default: n(() => [i(e(Pe), {
|
|
225
|
+
modelValue: o.value.description,
|
|
226
|
+
"onUpdate:modelValue": f[1] || (f[1] = (v) => o.value.description = v),
|
|
227
227
|
placeholder: "请输入描述",
|
|
228
228
|
"allow-clear": "",
|
|
229
229
|
"auto-size": {
|
|
@@ -236,12 +236,12 @@ const je = Object.assign(ee, {
|
|
|
236
236
|
label: "",
|
|
237
237
|
rules: []
|
|
238
238
|
}, {
|
|
239
|
-
default:
|
|
239
|
+
default: n(() => [z("div", Ze, [i(e(P), {
|
|
240
240
|
type: "primary",
|
|
241
241
|
loading: l.value,
|
|
242
|
-
onClick:
|
|
242
|
+
onClick: m
|
|
243
243
|
}, {
|
|
244
|
-
default:
|
|
244
|
+
default: n(() => [...f[2] || (f[2] = [_(" 提交 ", -1)])]),
|
|
245
245
|
_: 1
|
|
246
246
|
}, 8, ["loading"])])]),
|
|
247
247
|
_: 1
|
|
@@ -249,29 +249,29 @@ const je = Object.assign(ee, {
|
|
|
249
249
|
_: 1
|
|
250
250
|
}, 8, ["model", "size"]));
|
|
251
251
|
}
|
|
252
|
-
}),
|
|
253
|
-
function
|
|
254
|
-
return
|
|
255
|
-
url: `${
|
|
252
|
+
}), Qe = /* @__PURE__ */ C(Je, [["__scopeId", "data-v-c241b7f8"]]);
|
|
253
|
+
function Xe(s) {
|
|
254
|
+
return H({
|
|
255
|
+
url: `${E.authPrefixUrl}/restfulApi/verify/email`,
|
|
256
256
|
method: "post",
|
|
257
|
-
data:
|
|
257
|
+
data: s
|
|
258
258
|
});
|
|
259
259
|
}
|
|
260
|
-
function X(
|
|
261
|
-
return
|
|
262
|
-
url: `${
|
|
260
|
+
function X(s) {
|
|
261
|
+
return H({
|
|
262
|
+
url: `${E.authPrefixUrl}/restfulApi/verify/email/retry`,
|
|
263
263
|
method: "post",
|
|
264
|
-
data:
|
|
264
|
+
data: s
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
return
|
|
269
|
-
url: `${
|
|
267
|
+
function Ye(s) {
|
|
268
|
+
return H({
|
|
269
|
+
url: `${E.authPrefixUrl}/restfulApi/verify/password`,
|
|
270
270
|
method: "post",
|
|
271
|
-
data:
|
|
271
|
+
data: s
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
|
-
const
|
|
274
|
+
const et = /* @__PURE__ */ I({
|
|
275
275
|
__name: "AuthkitSendVerifyCode",
|
|
276
276
|
props: {
|
|
277
277
|
size: {
|
|
@@ -285,45 +285,45 @@ const Xe = /* @__PURE__ */ I({
|
|
|
285
285
|
}
|
|
286
286
|
},
|
|
287
287
|
emits: ["send"],
|
|
288
|
-
setup(
|
|
289
|
-
expose:
|
|
290
|
-
emit:
|
|
288
|
+
setup(s, {
|
|
289
|
+
expose: r,
|
|
290
|
+
emit: u
|
|
291
291
|
}) {
|
|
292
|
-
const
|
|
292
|
+
const a = u, o = s, d = w(!1);
|
|
293
293
|
let t;
|
|
294
|
-
const l =
|
|
295
|
-
|
|
294
|
+
const l = w(0), y = F(() => l.value.toString().padStart(2, "0")), m = F(() => l.value > 0), p = () => {
|
|
295
|
+
d.value && (l.value <= 0 ? (clearInterval(t), d.value = !1) : l.value--);
|
|
296
296
|
};
|
|
297
|
-
function d() {
|
|
298
|
-
n("send");
|
|
299
|
-
}
|
|
300
297
|
function c() {
|
|
301
|
-
|
|
298
|
+
a("send");
|
|
299
|
+
}
|
|
300
|
+
function f() {
|
|
301
|
+
l.value = 60, d.value = !0, t && clearInterval(t), t = setInterval(p, 1e3);
|
|
302
302
|
}
|
|
303
|
-
return
|
|
304
|
-
}),
|
|
305
|
-
startCountFn:
|
|
306
|
-
}),
|
|
303
|
+
return Z(() => {
|
|
304
|
+
}), r({
|
|
305
|
+
startCountFn: f
|
|
306
|
+
}), re(() => {
|
|
307
307
|
t && clearInterval(t);
|
|
308
|
-
}), (v, b) => (g(), k(e(
|
|
308
|
+
}), (v, b) => (g(), k(e(P), {
|
|
309
309
|
class: "OAuthItem",
|
|
310
310
|
type: "primary",
|
|
311
|
-
size:
|
|
312
|
-
disabled:
|
|
313
|
-
loading:
|
|
314
|
-
onClick:
|
|
311
|
+
size: o.size,
|
|
312
|
+
disabled: m.value,
|
|
313
|
+
loading: o.loading,
|
|
314
|
+
onClick: c
|
|
315
315
|
}, {
|
|
316
|
-
default:
|
|
316
|
+
default: n(() => [b[0] || (b[0] = z("span", null, " 发送验证码", -1)), ze(z("span", {
|
|
317
317
|
class: "verify-code-timer"
|
|
318
|
-
}, R(`(${y.value})`), 513), [[
|
|
318
|
+
}, R(`(${y.value})`), 513), [[Se, m.value]])]),
|
|
319
319
|
_: 1
|
|
320
320
|
}, 8, ["size", "disabled", "loading"]));
|
|
321
321
|
}
|
|
322
|
-
}),
|
|
322
|
+
}), ne = /* @__PURE__ */ C(et, [["__scopeId", "data-v-2883dc6d"]]), tt = {
|
|
323
323
|
class: "sendVerifyCodeItem"
|
|
324
|
-
},
|
|
324
|
+
}, it = {
|
|
325
325
|
class: "handle"
|
|
326
|
-
},
|
|
326
|
+
}, lt = /* @__PURE__ */ I({
|
|
327
327
|
__name: "AuthkitEmailVerify",
|
|
328
328
|
props: {
|
|
329
329
|
email: {
|
|
@@ -337,49 +337,49 @@ const Xe = /* @__PURE__ */ I({
|
|
|
337
337
|
}
|
|
338
338
|
},
|
|
339
339
|
emits: ["next"],
|
|
340
|
-
setup(
|
|
341
|
-
emit:
|
|
340
|
+
setup(s, {
|
|
341
|
+
emit: r
|
|
342
342
|
}) {
|
|
343
|
-
const
|
|
343
|
+
const u = r, a = s, o = F(() => fe(a.email)), d = w(), t = w(!1), l = w(!1), y = w(), m = w({
|
|
344
344
|
userToken: void 0,
|
|
345
345
|
emailVerifyId: void 0
|
|
346
346
|
});
|
|
347
347
|
async function p() {
|
|
348
348
|
t.value = !0, X({
|
|
349
|
-
email:
|
|
349
|
+
email: a.email
|
|
350
350
|
}).then(({
|
|
351
|
-
data:
|
|
351
|
+
data: f
|
|
352
352
|
}) => {
|
|
353
|
-
|
|
353
|
+
m.value.emailVerifyId = f.emailVerifyId, t.value = !1, d.value.startCountFn();
|
|
354
354
|
}).catch(() => {
|
|
355
355
|
t.value = !1;
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
|
-
async function
|
|
359
|
-
y.value.validate(["userToken"]).then((
|
|
360
|
-
if (!
|
|
358
|
+
async function c() {
|
|
359
|
+
y.value.validate(["userToken"]).then((f) => {
|
|
360
|
+
if (!f) {
|
|
361
361
|
l.value = !0;
|
|
362
362
|
const v = {
|
|
363
|
-
email:
|
|
364
|
-
userToken:
|
|
365
|
-
emailVerifyId:
|
|
363
|
+
email: a.email,
|
|
364
|
+
userToken: m.value.userToken,
|
|
365
|
+
emailVerifyId: m.value.emailVerifyId
|
|
366
366
|
};
|
|
367
|
-
|
|
368
|
-
l.value = !1,
|
|
367
|
+
Xe(v).then(() => {
|
|
368
|
+
l.value = !1, u("next");
|
|
369
369
|
}).catch(() => {
|
|
370
370
|
l.value = !1;
|
|
371
371
|
});
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
|
-
return (
|
|
375
|
+
return (f, v) => (g(), k(e(G), {
|
|
376
376
|
ref_key: "formRef",
|
|
377
377
|
ref: y,
|
|
378
|
-
model:
|
|
378
|
+
model: m.value,
|
|
379
379
|
"auto-label-width": "",
|
|
380
|
-
size:
|
|
380
|
+
size: a.size
|
|
381
381
|
}, {
|
|
382
|
-
default:
|
|
382
|
+
default: n(() => [i(e(A), {
|
|
383
383
|
field: "email",
|
|
384
384
|
label: "邮箱",
|
|
385
385
|
rules: [{
|
|
@@ -390,7 +390,7 @@ const Xe = /* @__PURE__ */ I({
|
|
|
390
390
|
message: "请输入有效的邮箱"
|
|
391
391
|
}]
|
|
392
392
|
}, {
|
|
393
|
-
default:
|
|
393
|
+
default: n(() => [_(R(o.value), 1)]),
|
|
394
394
|
_: 1
|
|
395
395
|
}), i(e(A), {
|
|
396
396
|
field: "userToken",
|
|
@@ -401,14 +401,14 @@ const Xe = /* @__PURE__ */ I({
|
|
|
401
401
|
message: "请输入验证码"
|
|
402
402
|
}]
|
|
403
403
|
}, {
|
|
404
|
-
default:
|
|
405
|
-
modelValue:
|
|
406
|
-
"onUpdate:modelValue": v[0] || (v[0] = (b) =>
|
|
404
|
+
default: n(() => [z("div", tt, [i(e(q), {
|
|
405
|
+
modelValue: m.value.userToken,
|
|
406
|
+
"onUpdate:modelValue": v[0] || (v[0] = (b) => m.value.userToken = b),
|
|
407
407
|
placeholder: "请输入验证码"
|
|
408
|
-
}, null, 8, ["modelValue"]), i(
|
|
408
|
+
}, null, 8, ["modelValue"]), i(ne, {
|
|
409
409
|
ref_key: "SendVerifyCodeRef",
|
|
410
|
-
ref:
|
|
411
|
-
size:
|
|
410
|
+
ref: d,
|
|
411
|
+
size: a.size,
|
|
412
412
|
loading: t.value,
|
|
413
413
|
style: {
|
|
414
414
|
"margin-left": "10px"
|
|
@@ -421,12 +421,12 @@ const Xe = /* @__PURE__ */ I({
|
|
|
421
421
|
label: "",
|
|
422
422
|
rules: []
|
|
423
423
|
}, {
|
|
424
|
-
default:
|
|
424
|
+
default: n(() => [z("div", it, [i(e(P), {
|
|
425
425
|
loading: l.value,
|
|
426
426
|
type: "primary",
|
|
427
|
-
onClick:
|
|
427
|
+
onClick: c
|
|
428
428
|
}, {
|
|
429
|
-
default:
|
|
429
|
+
default: n(() => [...v[1] || (v[1] = [_(" 提交 ", -1)])]),
|
|
430
430
|
_: 1
|
|
431
431
|
}, 8, ["loading"])])]),
|
|
432
432
|
_: 1
|
|
@@ -434,9 +434,9 @@ const Xe = /* @__PURE__ */ I({
|
|
|
434
434
|
_: 1
|
|
435
435
|
}, 8, ["model", "size"]));
|
|
436
436
|
}
|
|
437
|
-
}),
|
|
437
|
+
}), ae = /* @__PURE__ */ C(lt, [["__scopeId", "data-v-89ebb370"]]), st = {
|
|
438
438
|
class: "handle"
|
|
439
|
-
},
|
|
439
|
+
}, nt = /* @__PURE__ */ I({
|
|
440
440
|
__name: "AuthkitPasswordUpdate",
|
|
441
441
|
props: {
|
|
442
442
|
size: {
|
|
@@ -445,36 +445,36 @@ const Xe = /* @__PURE__ */ I({
|
|
|
445
445
|
}
|
|
446
446
|
},
|
|
447
447
|
emits: ["submit"],
|
|
448
|
-
setup(
|
|
449
|
-
emit:
|
|
448
|
+
setup(s, {
|
|
449
|
+
emit: r
|
|
450
450
|
}) {
|
|
451
|
-
const
|
|
451
|
+
const u = r, a = w(!1), o = w(), d = s, t = w({
|
|
452
452
|
oldPassword: "",
|
|
453
453
|
password: "",
|
|
454
454
|
confirmPassword: ""
|
|
455
455
|
});
|
|
456
456
|
async function l() {
|
|
457
|
-
|
|
457
|
+
o.value.validate().then((y) => {
|
|
458
458
|
if (!y) {
|
|
459
|
-
const
|
|
459
|
+
const m = {
|
|
460
460
|
password: t.value.password
|
|
461
461
|
};
|
|
462
|
-
|
|
463
|
-
|
|
462
|
+
Te(m).then(() => {
|
|
463
|
+
a.value = !1, u("submit", m);
|
|
464
464
|
}).catch(() => {
|
|
465
|
-
|
|
465
|
+
a.value = !1;
|
|
466
466
|
});
|
|
467
467
|
}
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
|
-
return (y,
|
|
470
|
+
return (y, m) => (g(), k(e(G), {
|
|
471
471
|
ref_key: "formRef",
|
|
472
|
-
ref:
|
|
472
|
+
ref: o,
|
|
473
473
|
model: t.value,
|
|
474
474
|
"auto-label-width": "",
|
|
475
|
-
size:
|
|
475
|
+
size: d.size
|
|
476
476
|
}, {
|
|
477
|
-
default:
|
|
477
|
+
default: n(() => [i(e(A), {
|
|
478
478
|
field: "oldPassword",
|
|
479
479
|
label: "当前密码",
|
|
480
480
|
"hide-label": "",
|
|
@@ -483,9 +483,9 @@ const Xe = /* @__PURE__ */ I({
|
|
|
483
483
|
message: "请输入当前密码"
|
|
484
484
|
}]
|
|
485
485
|
}, {
|
|
486
|
-
default:
|
|
486
|
+
default: n(() => [i(e(q), {
|
|
487
487
|
modelValue: t.value.oldPassword,
|
|
488
|
-
"onUpdate:modelValue":
|
|
488
|
+
"onUpdate:modelValue": m[0] || (m[0] = (p) => t.value.oldPassword = p),
|
|
489
489
|
placeholder: "请输入当前密码",
|
|
490
490
|
type: "password"
|
|
491
491
|
}, null, 8, ["modelValue"])]),
|
|
@@ -502,9 +502,9 @@ const Xe = /* @__PURE__ */ I({
|
|
|
502
502
|
message: "新密码不能少于10字符"
|
|
503
503
|
}]
|
|
504
504
|
}, {
|
|
505
|
-
default:
|
|
505
|
+
default: n(() => [i(e(q), {
|
|
506
506
|
modelValue: t.value.password,
|
|
507
|
-
"onUpdate:modelValue":
|
|
507
|
+
"onUpdate:modelValue": m[1] || (m[1] = (p) => t.value.password = p),
|
|
508
508
|
placeholder: "请输入新密码",
|
|
509
509
|
type: "password"
|
|
510
510
|
}, null, 8, ["modelValue"])]),
|
|
@@ -520,14 +520,14 @@ const Xe = /* @__PURE__ */ I({
|
|
|
520
520
|
minLength: 10,
|
|
521
521
|
message: "确认密码不能少于10字符"
|
|
522
522
|
}, {
|
|
523
|
-
validator: (p,
|
|
524
|
-
p !== t.value.password ?
|
|
523
|
+
validator: (p, c) => {
|
|
524
|
+
p !== t.value.password ? c("两次密码输入不一致,请重新输入") : c();
|
|
525
525
|
}
|
|
526
526
|
}]
|
|
527
527
|
}, {
|
|
528
|
-
default:
|
|
528
|
+
default: n(() => [i(e(q), {
|
|
529
529
|
modelValue: t.value.confirmPassword,
|
|
530
|
-
"onUpdate:modelValue":
|
|
530
|
+
"onUpdate:modelValue": m[2] || (m[2] = (p) => t.value.confirmPassword = p),
|
|
531
531
|
placeholder: "请输入确认密码密码",
|
|
532
532
|
type: "password"
|
|
533
533
|
}, null, 8, ["modelValue"])]),
|
|
@@ -537,12 +537,12 @@ const Xe = /* @__PURE__ */ I({
|
|
|
537
537
|
label: "",
|
|
538
538
|
rules: []
|
|
539
539
|
}, {
|
|
540
|
-
default:
|
|
540
|
+
default: n(() => [z("div", st, [i(e(P), {
|
|
541
541
|
type: "primary",
|
|
542
|
-
loading:
|
|
542
|
+
loading: a.value,
|
|
543
543
|
onClick: l
|
|
544
544
|
}, {
|
|
545
|
-
default:
|
|
545
|
+
default: n(() => [...m[3] || (m[3] = [_(" 提交 ", -1)])]),
|
|
546
546
|
_: 1
|
|
547
547
|
}, 8, ["loading"])])]),
|
|
548
548
|
_: 1
|
|
@@ -550,7 +550,7 @@ const Xe = /* @__PURE__ */ I({
|
|
|
550
550
|
_: 1
|
|
551
551
|
}, 8, ["model", "size"]));
|
|
552
552
|
}
|
|
553
|
-
}),
|
|
553
|
+
}), at = /* @__PURE__ */ C(nt, [["__scopeId", "data-v-a9e25b03"]]), ot = /* @__PURE__ */ I({
|
|
554
554
|
__name: "AuthkitSetPassword",
|
|
555
555
|
props: {
|
|
556
556
|
size: {
|
|
@@ -558,74 +558,74 @@ const Xe = /* @__PURE__ */ I({
|
|
|
558
558
|
required: !0
|
|
559
559
|
}
|
|
560
560
|
},
|
|
561
|
-
setup(
|
|
561
|
+
setup(s) {
|
|
562
562
|
const {
|
|
563
|
-
userProfile:
|
|
564
|
-
loading:
|
|
565
|
-
fetchUserProfile:
|
|
566
|
-
isLoggedIn:
|
|
567
|
-
} = J(),
|
|
563
|
+
userProfile: r,
|
|
564
|
+
loading: u,
|
|
565
|
+
fetchUserProfile: a,
|
|
566
|
+
isLoggedIn: o
|
|
567
|
+
} = J(), d = w("hidden"), t = s;
|
|
568
568
|
function l(p) {
|
|
569
|
-
|
|
569
|
+
d.value = p;
|
|
570
570
|
}
|
|
571
571
|
function y(p) {
|
|
572
|
-
|
|
572
|
+
N.success("密码修改成功"), d.value = "hidden", a();
|
|
573
573
|
}
|
|
574
|
-
function
|
|
575
|
-
|
|
574
|
+
function m() {
|
|
575
|
+
d.value = "update";
|
|
576
576
|
}
|
|
577
|
-
return
|
|
578
|
-
|
|
579
|
-
}), (p,
|
|
580
|
-
var
|
|
581
|
-
return g(),
|
|
577
|
+
return Z(() => {
|
|
578
|
+
o.value && !r.value && a();
|
|
579
|
+
}), (p, c) => {
|
|
580
|
+
var f, v, b, U;
|
|
581
|
+
return g(), V(M, null, [!((f = e(r)) != null && f.email) && !((v = e(r)) != null && v.phone) ? (g(), k(e(D), {
|
|
582
582
|
key: 0,
|
|
583
583
|
title: "去绑定邮箱"
|
|
584
584
|
}, {
|
|
585
|
-
action:
|
|
585
|
+
action: n(() => [i(e(P), {
|
|
586
586
|
size: t.size,
|
|
587
587
|
type: "primary",
|
|
588
|
-
onClick:
|
|
588
|
+
onClick: c[0] || (c[0] = ($) => l("update"))
|
|
589
589
|
}, {
|
|
590
|
-
default:
|
|
590
|
+
default: n(() => [...c[2] || (c[2] = [_(" 去绑定邮箱 ", -1)])]),
|
|
591
591
|
_: 1
|
|
592
592
|
}, 8, ["size"])]),
|
|
593
|
-
default:
|
|
593
|
+
default: n(() => [c[3] || (c[3] = _(" 请先去绑定邮箱或者手机号码,才能设置密码 ", -1))]),
|
|
594
594
|
_: 1
|
|
595
|
-
})) : S("", !0), (b = e(
|
|
595
|
+
})) : S("", !0), (b = e(r)) != null && b.email && d.value === "hidden" ? (g(), k(e(D), {
|
|
596
596
|
key: 1,
|
|
597
597
|
title: "更改密码"
|
|
598
598
|
}, {
|
|
599
|
-
action:
|
|
599
|
+
action: n(() => [i(e(P), {
|
|
600
600
|
size: t.size,
|
|
601
601
|
type: "primary",
|
|
602
|
-
onClick:
|
|
602
|
+
onClick: c[1] || (c[1] = ($) => l("verify"))
|
|
603
603
|
}, {
|
|
604
|
-
default:
|
|
604
|
+
default: n(() => [...c[4] || (c[4] = [_("更改密码", -1)])]),
|
|
605
605
|
_: 1
|
|
606
606
|
}, 8, ["size"])]),
|
|
607
|
-
default:
|
|
607
|
+
default: n(() => [c[5] || (c[5] = _(" 为了账户安全修改密码前会先验证身份 ", -1))]),
|
|
608
608
|
_: 1
|
|
609
|
-
})) : S("", !0),
|
|
609
|
+
})) : S("", !0), d.value === "update" ? (g(), k(at, {
|
|
610
610
|
key: 2,
|
|
611
611
|
size: t.size,
|
|
612
|
-
loading: e(
|
|
612
|
+
loading: e(u),
|
|
613
613
|
onSubmit: y
|
|
614
|
-
}, null, 8, ["size", "loading"])) : S("", !0),
|
|
614
|
+
}, null, 8, ["size", "loading"])) : S("", !0), d.value === "verify" ? (g(), k(ae, {
|
|
615
615
|
key: 3,
|
|
616
616
|
size: t.size,
|
|
617
|
-
email: (U = e(
|
|
618
|
-
onNext:
|
|
617
|
+
email: (U = e(r)) == null ? void 0 : U.email,
|
|
618
|
+
onNext: m
|
|
619
619
|
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
|
-
}),
|
|
622
|
+
}), rt = {
|
|
623
623
|
class: "content"
|
|
624
|
-
},
|
|
624
|
+
}, ut = {
|
|
625
625
|
class: "sendVerifyCodeItem"
|
|
626
|
-
},
|
|
626
|
+
}, dt = {
|
|
627
627
|
class: "handle"
|
|
628
|
-
},
|
|
628
|
+
}, ct = /* @__PURE__ */ I({
|
|
629
629
|
__name: "AuthkitEmailUpdate",
|
|
630
630
|
props: {
|
|
631
631
|
size: {
|
|
@@ -639,10 +639,10 @@ const Xe = /* @__PURE__ */ I({
|
|
|
639
639
|
}
|
|
640
640
|
},
|
|
641
641
|
emits: ["submit"],
|
|
642
|
-
setup(
|
|
643
|
-
emit:
|
|
642
|
+
setup(s, {
|
|
643
|
+
emit: r
|
|
644
644
|
}) {
|
|
645
|
-
const
|
|
645
|
+
const u = r, a = s, o = w(), d = w(!1), t = w(), l = w({
|
|
646
646
|
email: void 0,
|
|
647
647
|
userToken: void 0,
|
|
648
648
|
emailVerifyId: void 0,
|
|
@@ -652,30 +652,30 @@ const Xe = /* @__PURE__ */ I({
|
|
|
652
652
|
});
|
|
653
653
|
async function y() {
|
|
654
654
|
t.value.validateField(["email"]).then((p) => {
|
|
655
|
-
p || (
|
|
655
|
+
p || (d.value = !0, X({
|
|
656
656
|
email: l.value.email
|
|
657
657
|
}).then(({
|
|
658
|
-
data:
|
|
658
|
+
data: c
|
|
659
659
|
}) => {
|
|
660
|
-
l.value.emailVerifyId =
|
|
660
|
+
l.value.emailVerifyId = c.emailVerifyId, d.value = !1, o.value.startCountFn();
|
|
661
661
|
}).catch(() => {
|
|
662
|
-
|
|
662
|
+
d.value = !1;
|
|
663
663
|
}));
|
|
664
664
|
});
|
|
665
665
|
}
|
|
666
|
-
async function
|
|
666
|
+
async function m() {
|
|
667
667
|
t.value.validate().then((p) => {
|
|
668
|
-
p ||
|
|
668
|
+
p || u("submit", l.value);
|
|
669
669
|
});
|
|
670
670
|
}
|
|
671
|
-
return (p,
|
|
671
|
+
return (p, c) => (g(), V("div", rt, [i(e(G), {
|
|
672
672
|
ref_key: "formRef",
|
|
673
673
|
ref: t,
|
|
674
674
|
model: l.value,
|
|
675
|
-
size:
|
|
675
|
+
size: a.size,
|
|
676
676
|
"auto-label-width": ""
|
|
677
677
|
}, {
|
|
678
|
-
default:
|
|
678
|
+
default: n(() => [i(e(A), {
|
|
679
679
|
field: "email",
|
|
680
680
|
label: "邮箱",
|
|
681
681
|
"hide-label": "",
|
|
@@ -687,9 +687,9 @@ const Xe = /* @__PURE__ */ I({
|
|
|
687
687
|
message: "请输入有效的邮箱"
|
|
688
688
|
}]
|
|
689
689
|
}, {
|
|
690
|
-
default:
|
|
690
|
+
default: n(() => [i(e(q), {
|
|
691
691
|
modelValue: l.value.email,
|
|
692
|
-
"onUpdate:modelValue":
|
|
692
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => l.value.email = f),
|
|
693
693
|
placeholder: "请输入邮箱",
|
|
694
694
|
autocomplete: "email username",
|
|
695
695
|
type: "email"
|
|
@@ -704,16 +704,16 @@ const Xe = /* @__PURE__ */ I({
|
|
|
704
704
|
message: "请输入验证码"
|
|
705
705
|
}]
|
|
706
706
|
}, {
|
|
707
|
-
default:
|
|
707
|
+
default: n(() => [z("div", ut, [i(e(q), {
|
|
708
708
|
modelValue: l.value.userToken,
|
|
709
|
-
"onUpdate:modelValue":
|
|
709
|
+
"onUpdate:modelValue": c[1] || (c[1] = (f) => l.value.userToken = f),
|
|
710
710
|
placeholder: "请输入验证码",
|
|
711
711
|
autocomplete: "one-time-code"
|
|
712
|
-
}, null, 8, ["modelValue"]), i(
|
|
712
|
+
}, null, 8, ["modelValue"]), i(ne, {
|
|
713
713
|
ref_key: "SendVerifyCodeRef",
|
|
714
|
-
ref:
|
|
715
|
-
size:
|
|
716
|
-
loading:
|
|
714
|
+
ref: o,
|
|
715
|
+
size: a.size,
|
|
716
|
+
loading: d.value,
|
|
717
717
|
style: {
|
|
718
718
|
"margin-left": "10px"
|
|
719
719
|
},
|
|
@@ -732,9 +732,9 @@ const Xe = /* @__PURE__ */ I({
|
|
|
732
732
|
message: "密码不能少于10字符"
|
|
733
733
|
}]
|
|
734
734
|
}, {
|
|
735
|
-
default:
|
|
735
|
+
default: n(() => [i(e(q), {
|
|
736
736
|
modelValue: l.value.password,
|
|
737
|
-
"onUpdate:modelValue":
|
|
737
|
+
"onUpdate:modelValue": c[2] || (c[2] = (f) => l.value.password = f),
|
|
738
738
|
placeholder: "请输入密码",
|
|
739
739
|
type: "password",
|
|
740
740
|
autocomplete: "new-password"
|
|
@@ -751,14 +751,14 @@ const Xe = /* @__PURE__ */ I({
|
|
|
751
751
|
minLength: 10,
|
|
752
752
|
message: "确认密码不能少于10字符"
|
|
753
753
|
}, {
|
|
754
|
-
validator: (
|
|
755
|
-
|
|
754
|
+
validator: (f, v) => {
|
|
755
|
+
f !== l.value.password ? v("两次密码输入不一致,请重新输入") : v();
|
|
756
756
|
}
|
|
757
757
|
}]
|
|
758
758
|
}, {
|
|
759
|
-
default:
|
|
759
|
+
default: n(() => [i(e(q), {
|
|
760
760
|
modelValue: l.value.confirmPassword,
|
|
761
|
-
"onUpdate:modelValue":
|
|
761
|
+
"onUpdate:modelValue": c[3] || (c[3] = (f) => l.value.confirmPassword = f),
|
|
762
762
|
placeholder: "请输入确认密码密码",
|
|
763
763
|
type: "password",
|
|
764
764
|
autocomplete: "new-password"
|
|
@@ -773,27 +773,27 @@ const Xe = /* @__PURE__ */ I({
|
|
|
773
773
|
message: "请输入邀请人ID"
|
|
774
774
|
}]
|
|
775
775
|
}, {
|
|
776
|
-
default:
|
|
776
|
+
default: n(() => [i(e(q), {
|
|
777
777
|
modelValue: l.value.referrerId,
|
|
778
|
-
"onUpdate:modelValue":
|
|
778
|
+
"onUpdate:modelValue": c[4] || (c[4] = (f) => l.value.referrerId = f),
|
|
779
779
|
placeholder: "邀请人ID(可选)",
|
|
780
780
|
autocomplete: "off"
|
|
781
781
|
}, null, 8, ["modelValue"])]),
|
|
782
782
|
_: 1
|
|
783
|
-
}), z("div",
|
|
783
|
+
}), z("div", dt, [i(e(P), {
|
|
784
784
|
type: "primary",
|
|
785
|
-
loading:
|
|
785
|
+
loading: a.loading,
|
|
786
786
|
long: "",
|
|
787
|
-
size:
|
|
788
|
-
onClick:
|
|
787
|
+
size: a.size,
|
|
788
|
+
onClick: m
|
|
789
789
|
}, {
|
|
790
|
-
default:
|
|
790
|
+
default: n(() => [...c[5] || (c[5] = [_(" 提交 ", -1)])]),
|
|
791
791
|
_: 1
|
|
792
792
|
}, 8, ["loading", "size"])])]),
|
|
793
793
|
_: 1
|
|
794
794
|
}, 8, ["model", "size"])]));
|
|
795
795
|
}
|
|
796
|
-
}),
|
|
796
|
+
}), pe = /* @__PURE__ */ C(ct, [["__scopeId", "data-v-5b701953"]]), mt = /* @__PURE__ */ I({
|
|
797
797
|
__name: "AuthkitEmailBinding",
|
|
798
798
|
props: {
|
|
799
799
|
size: {
|
|
@@ -801,88 +801,102 @@ const Xe = /* @__PURE__ */ I({
|
|
|
801
801
|
required: !0
|
|
802
802
|
}
|
|
803
803
|
},
|
|
804
|
-
setup(
|
|
804
|
+
setup(s) {
|
|
805
805
|
const {
|
|
806
|
-
userProfile:
|
|
807
|
-
loading:
|
|
808
|
-
fetchUserProfile:
|
|
809
|
-
} = J(),
|
|
810
|
-
function t(
|
|
811
|
-
|
|
806
|
+
userProfile: r,
|
|
807
|
+
loading: u,
|
|
808
|
+
fetchUserProfile: a
|
|
809
|
+
} = J(), o = w("hidden"), d = s;
|
|
810
|
+
function t(m) {
|
|
811
|
+
o.value = m;
|
|
812
812
|
}
|
|
813
|
-
function l(
|
|
814
|
-
|
|
813
|
+
function l(m) {
|
|
814
|
+
u.value = !0;
|
|
815
815
|
const p = {
|
|
816
|
-
email:
|
|
817
|
-
userToken:
|
|
818
|
-
emailVerifyId:
|
|
816
|
+
email: m.email,
|
|
817
|
+
userToken: m.userToken,
|
|
818
|
+
emailVerifyId: m.emailVerifyId
|
|
819
819
|
};
|
|
820
|
-
|
|
821
|
-
|
|
820
|
+
Re(p).then(() => {
|
|
821
|
+
u.value = !1, N.success("绑定成功"), o.value = "hidden", a();
|
|
822
822
|
}).catch(() => {
|
|
823
|
-
|
|
823
|
+
u.value = !1;
|
|
824
824
|
});
|
|
825
825
|
}
|
|
826
826
|
function y() {
|
|
827
|
-
|
|
827
|
+
o.value = "update";
|
|
828
828
|
}
|
|
829
|
-
return
|
|
830
|
-
|
|
831
|
-
}), (
|
|
832
|
-
var
|
|
833
|
-
return g(),
|
|
829
|
+
return Z(() => {
|
|
830
|
+
r.value || a();
|
|
831
|
+
}), (m, p) => {
|
|
832
|
+
var c, f, v;
|
|
833
|
+
return g(), V(M, null, [!((c = e(r)) != null && c.email) && o.value === "hidden" ? (g(), k(e(D), {
|
|
834
834
|
key: 0,
|
|
835
835
|
title: "绑定邮箱"
|
|
836
836
|
}, {
|
|
837
|
-
action:
|
|
838
|
-
size:
|
|
837
|
+
action: n(() => [i(e(P), {
|
|
838
|
+
size: d.size,
|
|
839
839
|
type: "primary",
|
|
840
840
|
onClick: p[0] || (p[0] = (b) => t("update"))
|
|
841
841
|
}, {
|
|
842
|
-
default:
|
|
842
|
+
default: n(() => [...p[2] || (p[2] = [_(" 绑定邮箱 ", -1)])]),
|
|
843
843
|
_: 1
|
|
844
844
|
}, 8, ["size"])]),
|
|
845
|
-
default:
|
|
845
|
+
default: n(() => [p[3] || (p[3] = _(" 您还未绑定邮箱,请点击绑定邮箱 ", -1))]),
|
|
846
846
|
_: 1
|
|
847
|
-
})) : S("", !0), (
|
|
847
|
+
})) : S("", !0), (f = e(r)) != null && f.email && o.value === "hidden" ? (g(), k(e(D), {
|
|
848
848
|
key: 1,
|
|
849
849
|
title: "更改邮箱"
|
|
850
850
|
}, {
|
|
851
|
-
action:
|
|
852
|
-
size:
|
|
851
|
+
action: n(() => [i(e(P), {
|
|
852
|
+
size: d.size,
|
|
853
853
|
type: "primary",
|
|
854
854
|
onClick: p[1] || (p[1] = (b) => t("verify"))
|
|
855
855
|
}, {
|
|
856
|
-
default:
|
|
856
|
+
default: n(() => [...p[4] || (p[4] = [_(" 更改邮箱 ", -1)])]),
|
|
857
857
|
_: 1
|
|
858
858
|
}, 8, ["size"])]),
|
|
859
|
-
default:
|
|
859
|
+
default: n(() => {
|
|
860
860
|
var b;
|
|
861
|
-
return [
|
|
861
|
+
return [_(R(`您绑定的邮箱为${e(fe)((b = e(r)) == null ? void 0 : b.email)}`) + " ", 1)];
|
|
862
862
|
}),
|
|
863
863
|
_: 1
|
|
864
|
-
})) : S("", !0),
|
|
864
|
+
})) : S("", !0), o.value === "update" ? (g(), k(pe, {
|
|
865
865
|
key: 2,
|
|
866
|
-
loading: e(
|
|
867
|
-
size:
|
|
866
|
+
loading: e(u),
|
|
867
|
+
size: d.size,
|
|
868
868
|
onSubmit: l
|
|
869
|
-
}, null, 8, ["loading", "size"])) : S("", !0),
|
|
869
|
+
}, null, 8, ["loading", "size"])) : S("", !0), o.value === "verify" ? (g(), k(ae, {
|
|
870
870
|
key: 3,
|
|
871
|
-
size:
|
|
872
|
-
email: (v = e(
|
|
871
|
+
size: d.size,
|
|
872
|
+
email: (v = e(r)) == null ? void 0 : v.email,
|
|
873
873
|
onNext: y
|
|
874
874
|
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
875
875
|
};
|
|
876
876
|
}
|
|
877
|
-
}),
|
|
878
|
-
function
|
|
879
|
-
return
|
|
880
|
-
url: `${
|
|
877
|
+
}), ft = /* @__PURE__ */ C(mt, [["__scopeId", "data-v-b2663ea1"]]);
|
|
878
|
+
function ve(s) {
|
|
879
|
+
return H({
|
|
880
|
+
url: `${E.authPrefixUrl}/restfulApi/oauth/github/login`,
|
|
881
|
+
method: "get",
|
|
882
|
+
params: s
|
|
883
|
+
});
|
|
884
|
+
}
|
|
885
|
+
function pt(s) {
|
|
886
|
+
return H({
|
|
887
|
+
url: `${E.authPrefixUrl}/restfulApi/oauth/google/login`,
|
|
888
|
+
method: "get",
|
|
889
|
+
params: s
|
|
890
|
+
});
|
|
891
|
+
}
|
|
892
|
+
function vt(s) {
|
|
893
|
+
return H({
|
|
894
|
+
url: `${E.authPrefixUrl}/restfulApi/oauth/microsoft/login`,
|
|
881
895
|
method: "get",
|
|
882
|
-
params:
|
|
896
|
+
params: s
|
|
883
897
|
});
|
|
884
898
|
}
|
|
885
|
-
const
|
|
899
|
+
const gt = /* @__PURE__ */ I({
|
|
886
900
|
__name: "AuthkitGithubBinding",
|
|
887
901
|
props: {
|
|
888
902
|
size: {
|
|
@@ -890,101 +904,101 @@ const ct = /* @__PURE__ */ I({
|
|
|
890
904
|
required: !0
|
|
891
905
|
}
|
|
892
906
|
},
|
|
893
|
-
setup(
|
|
907
|
+
setup(s) {
|
|
894
908
|
const {
|
|
895
|
-
userProfile:
|
|
896
|
-
fetchUserProfile:
|
|
897
|
-
} = J(),
|
|
898
|
-
let
|
|
899
|
-
const t =
|
|
900
|
-
function l(
|
|
901
|
-
|
|
909
|
+
userProfile: r,
|
|
910
|
+
fetchUserProfile: u
|
|
911
|
+
} = J(), a = w("hidden"), o = w(!1);
|
|
912
|
+
let d;
|
|
913
|
+
const t = s;
|
|
914
|
+
function l(f) {
|
|
915
|
+
a.value = f;
|
|
902
916
|
}
|
|
903
917
|
function y() {
|
|
904
|
-
const
|
|
905
|
-
if (!
|
|
918
|
+
const f = E.appId;
|
|
919
|
+
if (!f) {
|
|
906
920
|
console.error("GitHub OAuth 失败: appId 未配置");
|
|
907
921
|
return;
|
|
908
922
|
}
|
|
909
|
-
|
|
910
|
-
appId:
|
|
923
|
+
ve({
|
|
924
|
+
appId: f
|
|
911
925
|
}).then(({
|
|
912
926
|
data: v
|
|
913
927
|
}) => {
|
|
914
928
|
const {
|
|
915
929
|
redirectUri: b
|
|
916
930
|
} = v;
|
|
917
|
-
|
|
931
|
+
o.value = !0, window.open(b, "_blank");
|
|
918
932
|
});
|
|
919
933
|
}
|
|
920
|
-
function
|
|
921
|
-
|
|
922
|
-
|
|
934
|
+
function m() {
|
|
935
|
+
Le().then(() => {
|
|
936
|
+
N.success("解绑成功"), a.value = "hidden", u();
|
|
923
937
|
});
|
|
924
938
|
}
|
|
925
939
|
function p() {
|
|
926
|
-
|
|
940
|
+
a.value === "bind" && (a.value = "hidden", y()), a.value === "unbind" && m();
|
|
927
941
|
}
|
|
928
|
-
function
|
|
929
|
-
|
|
930
|
-
}
|
|
931
|
-
return
|
|
932
|
-
|
|
933
|
-
}),
|
|
934
|
-
|
|
935
|
-
}), (
|
|
936
|
-
var b, U,
|
|
937
|
-
return g(),
|
|
942
|
+
function c() {
|
|
943
|
+
o.value && u();
|
|
944
|
+
}
|
|
945
|
+
return Z(() => {
|
|
946
|
+
r.value || u(), d = setInterval(c, 1e3);
|
|
947
|
+
}), re(() => {
|
|
948
|
+
d && clearInterval(d);
|
|
949
|
+
}), (f, v) => {
|
|
950
|
+
var b, U, $;
|
|
951
|
+
return g(), V(M, null, [!((b = e(r)) != null && b.github) && a.value === "hidden" ? (g(), k(e(D), {
|
|
938
952
|
key: 0,
|
|
939
953
|
title: "绑定GitHUb"
|
|
940
954
|
}, {
|
|
941
|
-
action:
|
|
955
|
+
action: n(() => [i(e(P), {
|
|
942
956
|
size: t.size,
|
|
943
957
|
type: "primary",
|
|
944
958
|
onClick: v[0] || (v[0] = (T) => l("bind"))
|
|
945
959
|
}, {
|
|
946
|
-
default:
|
|
960
|
+
default: n(() => [...v[2] || (v[2] = [_(" 绑定GitHUb ", -1)])]),
|
|
947
961
|
_: 1
|
|
948
962
|
}, 8, ["size"])]),
|
|
949
|
-
default:
|
|
963
|
+
default: n(() => [v[3] || (v[3] = _(" 请尚未绑定GitHub,请点击绑定GitHUb ", -1))]),
|
|
950
964
|
_: 1
|
|
951
|
-
})) : S("", !0), (U = e(
|
|
965
|
+
})) : S("", !0), (U = e(r)) != null && U.github && a.value === "hidden" ? (g(), k(e(D), {
|
|
952
966
|
key: 1,
|
|
953
967
|
title: "解绑GitHub"
|
|
954
968
|
}, {
|
|
955
|
-
action:
|
|
969
|
+
action: n(() => [i(e(P), {
|
|
956
970
|
size: t.size,
|
|
957
971
|
type: "primary",
|
|
958
972
|
onClick: v[1] || (v[1] = (T) => l("unbind"))
|
|
959
973
|
}, {
|
|
960
|
-
default:
|
|
974
|
+
default: n(() => [...v[4] || (v[4] = [_(" 解绑GitHUb ", -1)])]),
|
|
961
975
|
_: 1
|
|
962
976
|
}, 8, ["size"])]),
|
|
963
|
-
default:
|
|
977
|
+
default: n(() => {
|
|
964
978
|
var T, B, O;
|
|
965
|
-
return [z("span", null, R(`您绑定的账号为 ${(B = (T = e(
|
|
966
|
-
"image-url": (O = e(
|
|
979
|
+
return [z("span", null, R(`您绑定的账号为 ${(B = (T = e(r)) == null ? void 0 : T.github) == null ? void 0 : B.login}`), 1), i(e(ce), {
|
|
980
|
+
"image-url": (O = e(r)) == null ? void 0 : O.avatar,
|
|
967
981
|
size: 42
|
|
968
982
|
}, null, 8, ["image-url"])];
|
|
969
983
|
}),
|
|
970
984
|
_: 1
|
|
971
|
-
})) : S("", !0),
|
|
985
|
+
})) : S("", !0), a.value === "bind" || a.value === "unbind" ? (g(), k(ae, {
|
|
972
986
|
key: 2,
|
|
973
987
|
size: t.size,
|
|
974
|
-
email: (
|
|
988
|
+
email: ($ = e(r)) == null ? void 0 : $.email,
|
|
975
989
|
onNext: p
|
|
976
990
|
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
977
991
|
};
|
|
978
992
|
}
|
|
979
|
-
}),
|
|
993
|
+
}), yt = {
|
|
980
994
|
class: "dependency-list"
|
|
981
|
-
},
|
|
995
|
+
}, ht = {
|
|
982
996
|
class: "label"
|
|
983
|
-
},
|
|
997
|
+
}, wt = {
|
|
984
998
|
class: "count"
|
|
985
|
-
},
|
|
999
|
+
}, _t = {
|
|
986
1000
|
class: "action-bar"
|
|
987
|
-
},
|
|
1001
|
+
}, bt = /* @__PURE__ */ I({
|
|
988
1002
|
__name: "AuthkitAccountDelete",
|
|
989
1003
|
props: {
|
|
990
1004
|
size: {
|
|
@@ -993,27 +1007,27 @@ const ct = /* @__PURE__ */ I({
|
|
|
993
1007
|
}
|
|
994
1008
|
},
|
|
995
1009
|
emits: ["deleted"],
|
|
996
|
-
setup(
|
|
997
|
-
emit:
|
|
1010
|
+
setup(s, {
|
|
1011
|
+
emit: r
|
|
998
1012
|
}) {
|
|
999
|
-
const
|
|
1000
|
-
userProfile:
|
|
1001
|
-
clearUserProfile:
|
|
1013
|
+
const u = s, a = r, {
|
|
1014
|
+
userProfile: o,
|
|
1015
|
+
clearUserProfile: d
|
|
1002
1016
|
} = J(), {
|
|
1003
1017
|
clearAuth: t
|
|
1004
|
-
} = Q(), l =
|
|
1018
|
+
} = Q(), l = w("check"), y = w(!1), m = w([]), p = w(!1), c = w(""), f = w(0);
|
|
1005
1019
|
let v = null;
|
|
1006
|
-
const b =
|
|
1007
|
-
var
|
|
1008
|
-
const L = ((
|
|
1020
|
+
const b = F(() => {
|
|
1021
|
+
var K;
|
|
1022
|
+
const L = ((K = o.value) == null ? void 0 : K.email) || "";
|
|
1009
1023
|
if (!L) return "";
|
|
1010
1024
|
const [h, x] = L.split("@");
|
|
1011
1025
|
return h.length <= 2 ? L : `${h.slice(0, 2)}***@${x}`;
|
|
1012
|
-
}), U =
|
|
1026
|
+
}), U = w(), $ = w({
|
|
1013
1027
|
userToken: "",
|
|
1014
1028
|
password: "",
|
|
1015
1029
|
confirmText: ""
|
|
1016
|
-
}), T =
|
|
1030
|
+
}), T = w(!1);
|
|
1017
1031
|
function B(L, h) {
|
|
1018
1032
|
L !== "注销" ? h('请输入"注销"以确认操作') : h();
|
|
1019
1033
|
}
|
|
@@ -1021,59 +1035,59 @@ const ct = /* @__PURE__ */ I({
|
|
|
1021
1035
|
var L;
|
|
1022
1036
|
y.value = !0;
|
|
1023
1037
|
try {
|
|
1024
|
-
const h = await
|
|
1038
|
+
const h = await Be(), {
|
|
1025
1039
|
hasDependencies: x,
|
|
1026
|
-
dependencies:
|
|
1040
|
+
dependencies: K
|
|
1027
1041
|
} = h.data;
|
|
1028
1042
|
if (x)
|
|
1029
|
-
|
|
1043
|
+
m.value = K, l.value = "dependencies";
|
|
1030
1044
|
else {
|
|
1031
|
-
if (!((L =
|
|
1032
|
-
|
|
1045
|
+
if (!((L = o.value) != null && L.email)) {
|
|
1046
|
+
N.error("账号未绑定邮箱,无法进行注销验证。请先绑定邮箱");
|
|
1033
1047
|
return;
|
|
1034
1048
|
}
|
|
1035
1049
|
l.value = "sendCode";
|
|
1036
1050
|
}
|
|
1037
1051
|
} catch (h) {
|
|
1038
|
-
console.error("检查依赖失败:", h),
|
|
1052
|
+
console.error("检查依赖失败:", h), N.error("检查失败,请稍后重试");
|
|
1039
1053
|
} finally {
|
|
1040
1054
|
y.value = !1;
|
|
1041
1055
|
}
|
|
1042
1056
|
}
|
|
1043
|
-
async function
|
|
1057
|
+
async function W() {
|
|
1044
1058
|
var L;
|
|
1045
|
-
if (!((L =
|
|
1046
|
-
|
|
1059
|
+
if (!((L = o.value) != null && L.email)) {
|
|
1060
|
+
N.error("请先绑定邮箱");
|
|
1047
1061
|
return;
|
|
1048
1062
|
}
|
|
1049
1063
|
p.value = !0;
|
|
1050
1064
|
try {
|
|
1051
1065
|
const h = await X({
|
|
1052
|
-
email:
|
|
1066
|
+
email: o.value.email
|
|
1053
1067
|
});
|
|
1054
|
-
|
|
1068
|
+
c.value = h.data.emailVerifyId, N.success("验证码已发送"), l.value = "confirm", we();
|
|
1055
1069
|
} catch (h) {
|
|
1056
1070
|
console.error("发送验证码失败:", h);
|
|
1057
1071
|
} finally {
|
|
1058
1072
|
p.value = !1;
|
|
1059
1073
|
}
|
|
1060
1074
|
}
|
|
1061
|
-
function
|
|
1062
|
-
|
|
1063
|
-
|
|
1075
|
+
function we() {
|
|
1076
|
+
f.value = 60, v && clearInterval(v), v = setInterval(() => {
|
|
1077
|
+
f.value--, f.value <= 0 && v && (clearInterval(v), v = null);
|
|
1064
1078
|
}, 1e3);
|
|
1065
1079
|
}
|
|
1066
|
-
async function
|
|
1080
|
+
async function _e() {
|
|
1067
1081
|
var h;
|
|
1068
1082
|
if (!await ((h = U.value) == null ? void 0 : h.validate())) {
|
|
1069
1083
|
T.value = !0;
|
|
1070
1084
|
try {
|
|
1071
|
-
await
|
|
1072
|
-
password:
|
|
1073
|
-
userToken:
|
|
1074
|
-
emailVerifyId:
|
|
1075
|
-
confirmText:
|
|
1076
|
-
}), l.value = "success",
|
|
1085
|
+
await Oe({
|
|
1086
|
+
password: $.value.password,
|
|
1087
|
+
userToken: $.value.userToken,
|
|
1088
|
+
emailVerifyId: c.value,
|
|
1089
|
+
confirmText: $.value.confirmText
|
|
1090
|
+
}), l.value = "success", d(), t(), a("deleted");
|
|
1077
1091
|
} catch (x) {
|
|
1078
1092
|
console.error("注销失败:", x);
|
|
1079
1093
|
} finally {
|
|
@@ -1081,85 +1095,85 @@ const ct = /* @__PURE__ */ I({
|
|
|
1081
1095
|
}
|
|
1082
1096
|
}
|
|
1083
1097
|
}
|
|
1084
|
-
function
|
|
1098
|
+
function be() {
|
|
1085
1099
|
window.location.href = "/";
|
|
1086
1100
|
}
|
|
1087
|
-
return (L, h) => l.value === "check" ? (g(), k(e(
|
|
1101
|
+
return (L, h) => l.value === "check" ? (g(), k(e(D), {
|
|
1088
1102
|
key: 0,
|
|
1089
1103
|
type: "warning",
|
|
1090
1104
|
title: "注销账号"
|
|
1091
1105
|
}, {
|
|
1092
|
-
action:
|
|
1093
|
-
size:
|
|
1106
|
+
action: n(() => [i(e(P), {
|
|
1107
|
+
size: u.size,
|
|
1094
1108
|
type: "primary",
|
|
1095
1109
|
status: "danger",
|
|
1096
1110
|
loading: y.value,
|
|
1097
1111
|
onClick: O
|
|
1098
1112
|
}, {
|
|
1099
|
-
default:
|
|
1113
|
+
default: n(() => [_(R(y.value ? "检查中..." : "开始注销"), 1)]),
|
|
1100
1114
|
_: 1
|
|
1101
1115
|
}, 8, ["size", "loading"])]),
|
|
1102
|
-
default:
|
|
1116
|
+
default: n(() => [h[6] || (h[6] = _(" 注销账号后,您的所有数据将被永久删除,无法恢复。请确认您已备份重要数据。 ", -1))]),
|
|
1103
1117
|
_: 1
|
|
1104
|
-
})) : l.value === "dependencies" ? (g(),
|
|
1118
|
+
})) : l.value === "dependencies" ? (g(), V(M, {
|
|
1105
1119
|
key: 1
|
|
1106
|
-
}, [i(e(
|
|
1120
|
+
}, [i(e(D), {
|
|
1107
1121
|
type: "error",
|
|
1108
1122
|
title: "无法注销账号"
|
|
1109
1123
|
}, {
|
|
1110
|
-
default:
|
|
1124
|
+
default: n(() => [...h[7] || (h[7] = [_(" 您的账号下还有以下资源,请先处理后再注销: ", -1)])]),
|
|
1111
1125
|
_: 1
|
|
1112
|
-
}), z("div",
|
|
1126
|
+
}), z("div", yt, [(g(!0), V(M, null, Ae(m.value, (x) => (g(), V("div", {
|
|
1113
1127
|
key: x.type,
|
|
1114
1128
|
class: "dependency-item"
|
|
1115
|
-
}, [z("span",
|
|
1116
|
-
size:
|
|
1129
|
+
}, [z("span", ht, R(x.label), 1), z("span", wt, R(x.count) + " 个", 1)]))), 128))]), z("div", _t, [i(e(P), {
|
|
1130
|
+
size: u.size,
|
|
1117
1131
|
onClick: h[0] || (h[0] = (x) => l.value = "check")
|
|
1118
1132
|
}, {
|
|
1119
|
-
default:
|
|
1133
|
+
default: n(() => [...h[8] || (h[8] = [_("返回", -1)])]),
|
|
1120
1134
|
_: 1
|
|
1121
|
-
}, 8, ["size"])])], 64)) : l.value === "sendCode" ? (g(), k(e(
|
|
1135
|
+
}, 8, ["size"])])], 64)) : l.value === "sendCode" ? (g(), k(e(D), {
|
|
1122
1136
|
key: 2,
|
|
1123
1137
|
type: "normal",
|
|
1124
1138
|
title: "身份验证"
|
|
1125
1139
|
}, {
|
|
1126
|
-
action:
|
|
1127
|
-
default:
|
|
1128
|
-
size:
|
|
1140
|
+
action: n(() => [i(e(ee), null, {
|
|
1141
|
+
default: n(() => [i(e(P), {
|
|
1142
|
+
size: u.size,
|
|
1129
1143
|
onClick: h[1] || (h[1] = (x) => l.value = "check")
|
|
1130
1144
|
}, {
|
|
1131
|
-
default:
|
|
1145
|
+
default: n(() => [...h[9] || (h[9] = [_("取消", -1)])]),
|
|
1132
1146
|
_: 1
|
|
1133
|
-
}, 8, ["size"]), i(e(
|
|
1134
|
-
size:
|
|
1147
|
+
}, 8, ["size"]), i(e(P), {
|
|
1148
|
+
size: u.size,
|
|
1135
1149
|
type: "primary",
|
|
1136
1150
|
loading: p.value,
|
|
1137
|
-
onClick:
|
|
1151
|
+
onClick: W
|
|
1138
1152
|
}, {
|
|
1139
|
-
default:
|
|
1153
|
+
default: n(() => [_(R(p.value ? "发送中..." : "发送验证码"), 1)]),
|
|
1140
1154
|
_: 1
|
|
1141
1155
|
}, 8, ["size", "loading"])]),
|
|
1142
1156
|
_: 1
|
|
1143
1157
|
})]),
|
|
1144
|
-
default:
|
|
1158
|
+
default: n(() => [_(" 为确保账号安全,我们将向您的邮箱 " + R(b.value) + " 发送验证码 ", 1)]),
|
|
1145
1159
|
_: 1
|
|
1146
|
-
})) : l.value === "confirm" ? (g(),
|
|
1160
|
+
})) : l.value === "confirm" ? (g(), V(M, {
|
|
1147
1161
|
key: 3
|
|
1148
|
-
}, [i(e(
|
|
1162
|
+
}, [i(e(D), {
|
|
1149
1163
|
type: "warning",
|
|
1150
1164
|
title: "确认注销"
|
|
1151
1165
|
}, {
|
|
1152
|
-
default:
|
|
1166
|
+
default: n(() => [_(" 验证码已发送至 " + R(b.value) + ",此操作不可逆,请谨慎操作 ", 1)]),
|
|
1153
1167
|
_: 1
|
|
1154
|
-
}), i(e(
|
|
1168
|
+
}), i(e(G), {
|
|
1155
1169
|
ref_key: "formRef",
|
|
1156
1170
|
ref: U,
|
|
1157
|
-
model:
|
|
1158
|
-
size:
|
|
1171
|
+
model: $.value,
|
|
1172
|
+
size: u.size,
|
|
1159
1173
|
class: "confirm-form",
|
|
1160
1174
|
layout: "vertical"
|
|
1161
1175
|
}, {
|
|
1162
|
-
default:
|
|
1176
|
+
default: n(() => [i(e(A), {
|
|
1163
1177
|
field: "userToken",
|
|
1164
1178
|
label: "邮箱验证码",
|
|
1165
1179
|
rules: [{
|
|
@@ -1167,22 +1181,22 @@ const ct = /* @__PURE__ */ I({
|
|
|
1167
1181
|
message: "请输入验证码"
|
|
1168
1182
|
}]
|
|
1169
1183
|
}, {
|
|
1170
|
-
default:
|
|
1171
|
-
default:
|
|
1172
|
-
modelValue:
|
|
1173
|
-
"onUpdate:modelValue": h[2] || (h[2] = (x) =>
|
|
1184
|
+
default: n(() => [i(e(ee), null, {
|
|
1185
|
+
default: n(() => [i(e(q), {
|
|
1186
|
+
modelValue: $.value.userToken,
|
|
1187
|
+
"onUpdate:modelValue": h[2] || (h[2] = (x) => $.value.userToken = x),
|
|
1174
1188
|
placeholder: "请输入6位验证码",
|
|
1175
1189
|
"max-length": 6,
|
|
1176
1190
|
"allow-clear": "",
|
|
1177
1191
|
style: {
|
|
1178
1192
|
width: "180px"
|
|
1179
1193
|
}
|
|
1180
|
-
}, null, 8, ["modelValue"]), i(e(
|
|
1181
|
-
disabled:
|
|
1194
|
+
}, null, 8, ["modelValue"]), i(e(P), {
|
|
1195
|
+
disabled: f.value > 0,
|
|
1182
1196
|
loading: p.value,
|
|
1183
|
-
onClick:
|
|
1197
|
+
onClick: W
|
|
1184
1198
|
}, {
|
|
1185
|
-
default:
|
|
1199
|
+
default: n(() => [_(R(f.value > 0 ? `${f.value}s 后重发` : "重新发送"), 1)]),
|
|
1186
1200
|
_: 1
|
|
1187
1201
|
}, 8, ["disabled", "loading"])]),
|
|
1188
1202
|
_: 1
|
|
@@ -1196,9 +1210,9 @@ const ct = /* @__PURE__ */ I({
|
|
|
1196
1210
|
message: "请输入密码"
|
|
1197
1211
|
}]
|
|
1198
1212
|
}, {
|
|
1199
|
-
default:
|
|
1200
|
-
modelValue:
|
|
1201
|
-
"onUpdate:modelValue": h[3] || (h[3] = (x) =>
|
|
1213
|
+
default: n(() => [i(e(Ve), {
|
|
1214
|
+
modelValue: $.value.password,
|
|
1215
|
+
"onUpdate:modelValue": h[3] || (h[3] = (x) => $.value.password = x),
|
|
1202
1216
|
placeholder: "请输入您的登录密码",
|
|
1203
1217
|
"allow-clear": ""
|
|
1204
1218
|
}, null, 8, ["modelValue"])]),
|
|
@@ -1213,27 +1227,27 @@ const ct = /* @__PURE__ */ I({
|
|
|
1213
1227
|
validator: B
|
|
1214
1228
|
}]
|
|
1215
1229
|
}, {
|
|
1216
|
-
default:
|
|
1217
|
-
modelValue:
|
|
1218
|
-
"onUpdate:modelValue": h[4] || (h[4] = (x) =>
|
|
1230
|
+
default: n(() => [i(e(q), {
|
|
1231
|
+
modelValue: $.value.confirmText,
|
|
1232
|
+
"onUpdate:modelValue": h[4] || (h[4] = (x) => $.value.confirmText = x),
|
|
1219
1233
|
placeholder: "注销",
|
|
1220
1234
|
"allow-clear": ""
|
|
1221
1235
|
}, null, 8, ["modelValue"])]),
|
|
1222
1236
|
_: 1
|
|
1223
1237
|
}, 8, ["rules"]), i(e(A), null, {
|
|
1224
|
-
default:
|
|
1225
|
-
default:
|
|
1238
|
+
default: n(() => [i(e(ee), null, {
|
|
1239
|
+
default: n(() => [i(e(P), {
|
|
1226
1240
|
onClick: h[5] || (h[5] = (x) => l.value = "check")
|
|
1227
1241
|
}, {
|
|
1228
|
-
default:
|
|
1242
|
+
default: n(() => [...h[10] || (h[10] = [_("取消", -1)])]),
|
|
1229
1243
|
_: 1
|
|
1230
|
-
}), i(e(
|
|
1244
|
+
}), i(e(P), {
|
|
1231
1245
|
type: "primary",
|
|
1232
1246
|
status: "danger",
|
|
1233
1247
|
loading: T.value,
|
|
1234
|
-
onClick:
|
|
1248
|
+
onClick: _e
|
|
1235
1249
|
}, {
|
|
1236
|
-
default:
|
|
1250
|
+
default: n(() => [_(R(T.value ? "注销中..." : "确认注销"), 1)]),
|
|
1237
1251
|
_: 1
|
|
1238
1252
|
}, 8, ["loading"])]),
|
|
1239
1253
|
_: 1
|
|
@@ -1241,43 +1255,43 @@ const ct = /* @__PURE__ */ I({
|
|
|
1241
1255
|
_: 1
|
|
1242
1256
|
})]),
|
|
1243
1257
|
_: 1
|
|
1244
|
-
}, 8, ["model", "size"])], 64)) : l.value === "success" ? (g(), k(e(
|
|
1258
|
+
}, 8, ["model", "size"])], 64)) : l.value === "success" ? (g(), k(e(Ue), {
|
|
1245
1259
|
key: 4,
|
|
1246
1260
|
status: "success",
|
|
1247
1261
|
title: "账号已注销"
|
|
1248
1262
|
}, {
|
|
1249
|
-
subtitle:
|
|
1250
|
-
extra:
|
|
1263
|
+
subtitle: n(() => [...h[11] || (h[11] = [_(" 您的账号已成功注销,感谢您的使用 ", -1)])]),
|
|
1264
|
+
extra: n(() => [i(e(P), {
|
|
1251
1265
|
type: "primary",
|
|
1252
|
-
onClick:
|
|
1266
|
+
onClick: be
|
|
1253
1267
|
}, {
|
|
1254
|
-
default:
|
|
1268
|
+
default: n(() => [...h[12] || (h[12] = [_("返回首页", -1)])]),
|
|
1255
1269
|
_: 1
|
|
1256
1270
|
})]),
|
|
1257
1271
|
_: 1
|
|
1258
1272
|
})) : S("", !0);
|
|
1259
1273
|
}
|
|
1260
|
-
}),
|
|
1274
|
+
}), kt = /* @__PURE__ */ C(bt, [["__scopeId", "data-v-15e302c7"]]), zt = {
|
|
1261
1275
|
class: "content"
|
|
1262
|
-
},
|
|
1276
|
+
}, St = {
|
|
1263
1277
|
class: "left"
|
|
1264
|
-
},
|
|
1278
|
+
}, At = {
|
|
1265
1279
|
class: "right"
|
|
1266
|
-
},
|
|
1280
|
+
}, It = /* @__PURE__ */ I({
|
|
1267
1281
|
__name: "AuthkitAppSetting",
|
|
1268
1282
|
emits: ["confirm", "cancel"],
|
|
1269
|
-
setup(
|
|
1270
|
-
expose:
|
|
1271
|
-
emit:
|
|
1283
|
+
setup(s, {
|
|
1284
|
+
expose: r,
|
|
1285
|
+
emit: u
|
|
1272
1286
|
}) {
|
|
1273
|
-
const
|
|
1274
|
-
function
|
|
1275
|
-
|
|
1287
|
+
const a = u;
|
|
1288
|
+
function o() {
|
|
1289
|
+
a("cancel");
|
|
1276
1290
|
}
|
|
1277
|
-
function
|
|
1278
|
-
|
|
1291
|
+
function d() {
|
|
1292
|
+
c.value = !1, a("cancel");
|
|
1279
1293
|
}
|
|
1280
|
-
const t =
|
|
1294
|
+
const t = w("large"), l = w(["PersonalInformation"]), y = w([{
|
|
1281
1295
|
name: "个人信息",
|
|
1282
1296
|
path: "PersonalInformation",
|
|
1283
1297
|
meta: {
|
|
@@ -1330,88 +1344,114 @@ const ct = /* @__PURE__ */ I({
|
|
|
1330
1344
|
// },
|
|
1331
1345
|
]
|
|
1332
1346
|
}]);
|
|
1333
|
-
function
|
|
1347
|
+
function m(v, b) {
|
|
1334
1348
|
const U = v.path;
|
|
1335
1349
|
console.log(U, b, "lokokoko"), l.value = [U];
|
|
1336
1350
|
}
|
|
1337
1351
|
const {
|
|
1338
1352
|
changeType: p,
|
|
1339
|
-
show:
|
|
1340
|
-
} = Ge(
|
|
1341
|
-
function
|
|
1342
|
-
console.log(v),
|
|
1353
|
+
show: c
|
|
1354
|
+
} = Ge(a);
|
|
1355
|
+
function f(v, b) {
|
|
1356
|
+
console.log(v), c.value = b, p.value = "编辑";
|
|
1343
1357
|
}
|
|
1344
|
-
return
|
|
1345
|
-
setData:
|
|
1358
|
+
return r({
|
|
1359
|
+
setData: f
|
|
1346
1360
|
}), (v, b) => (g(), k(e(me), {
|
|
1347
|
-
visible: e(
|
|
1348
|
-
"onUpdate:visible": b[1] || (b[1] = (U) =>
|
|
1361
|
+
visible: e(c),
|
|
1362
|
+
"onUpdate:visible": b[1] || (b[1] = (U) => ue(c) ? c.value = U : null),
|
|
1349
1363
|
"unmount-on-close": "",
|
|
1350
1364
|
"body-class": "AppSettingbodyClass",
|
|
1351
1365
|
"mask-closable": !1,
|
|
1352
1366
|
footer: !1,
|
|
1353
1367
|
width: "700px",
|
|
1354
|
-
onCancel:
|
|
1368
|
+
onCancel: o
|
|
1355
1369
|
}, {
|
|
1356
|
-
title:
|
|
1357
|
-
default:
|
|
1370
|
+
title: n(() => [...b[2] || (b[2] = [_(" 系统设置 ", -1)])]),
|
|
1371
|
+
default: n(() => [z("div", zt, [z("div", St, [i(Fe, {
|
|
1358
1372
|
"selected-keys": l.value,
|
|
1359
1373
|
"onUpdate:selectedKeys": b[0] || (b[0] = (U) => l.value = U),
|
|
1360
1374
|
menus: y.value,
|
|
1361
|
-
onChange:
|
|
1362
|
-
}, null, 8, ["selected-keys", "menus"])]), z("div",
|
|
1375
|
+
onChange: m
|
|
1376
|
+
}, null, 8, ["selected-keys", "menus"])]), z("div", At, [l.value[0] === "PersonalInformation" ? (g(), k(Qe, {
|
|
1363
1377
|
key: 0,
|
|
1364
1378
|
size: t.value
|
|
1365
|
-
}, null, 8, ["size"])) : S("", !0), l.value[0] === "EmailBinding" ? (g(), k(
|
|
1379
|
+
}, null, 8, ["size"])) : S("", !0), l.value[0] === "EmailBinding" ? (g(), k(ft, {
|
|
1366
1380
|
key: 1,
|
|
1367
1381
|
size: t.value
|
|
1368
|
-
}, null, 8, ["size"])) : S("", !0), l.value[0] === "SetPassword" ? (g(), k(
|
|
1382
|
+
}, null, 8, ["size"])) : S("", !0), l.value[0] === "SetPassword" ? (g(), k(ot, {
|
|
1369
1383
|
key: 2,
|
|
1370
1384
|
size: t.value
|
|
1371
|
-
}, null, 8, ["size"])) : S("", !0), l.value[0] === "GithubBinding" ? (g(), k(
|
|
1385
|
+
}, null, 8, ["size"])) : S("", !0), l.value[0] === "GithubBinding" ? (g(), k(gt, {
|
|
1372
1386
|
key: 3,
|
|
1373
1387
|
size: t.value
|
|
1374
|
-
}, null, 8, ["size"])) : S("", !0), l.value[0] === "AccountDelete" ? (g(), k(
|
|
1388
|
+
}, null, 8, ["size"])) : S("", !0), l.value[0] === "AccountDelete" ? (g(), k(kt, {
|
|
1375
1389
|
key: 4,
|
|
1376
1390
|
size: t.value,
|
|
1377
|
-
onDeleted:
|
|
1391
|
+
onDeleted: d
|
|
1378
1392
|
}, null, 8, ["size"])) : S("", !0)])])]),
|
|
1379
1393
|
_: 1
|
|
1380
1394
|
}, 8, ["visible"]));
|
|
1381
1395
|
}
|
|
1382
|
-
}),
|
|
1383
|
-
function
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1396
|
+
}), xi = /* @__PURE__ */ C(It, [["__scopeId", "data-v-9f056370"]]);
|
|
1397
|
+
function ge() {
|
|
1398
|
+
return E.oauthCallbackUrl ? E.oauthCallbackUrl : `${window.location.origin}/auth/callback`;
|
|
1399
|
+
}
|
|
1400
|
+
function Pt() {
|
|
1401
|
+
const s = window.location.pathname + window.location.search;
|
|
1402
|
+
s.includes("/auth/callback") || sessionStorage.setItem("auth_redirect", s);
|
|
1403
|
+
}
|
|
1404
|
+
async function Y(s, r) {
|
|
1405
|
+
const u = E.appId;
|
|
1406
|
+
if (!u) {
|
|
1407
|
+
console.error(`${s} OAuth 失败: appId 未配置`);
|
|
1387
1408
|
return;
|
|
1388
1409
|
}
|
|
1389
|
-
|
|
1390
|
-
appId:
|
|
1391
|
-
referrerId:
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1410
|
+
const a = ge(), o = {
|
|
1411
|
+
appId: u,
|
|
1412
|
+
referrerId: r == null ? void 0 : r.referrerId,
|
|
1413
|
+
redirectUri: a
|
|
1414
|
+
};
|
|
1415
|
+
Pt();
|
|
1416
|
+
const d = {
|
|
1417
|
+
github: ve,
|
|
1418
|
+
google: pt,
|
|
1419
|
+
microsoft: vt
|
|
1420
|
+
};
|
|
1421
|
+
try {
|
|
1395
1422
|
const {
|
|
1396
|
-
|
|
1397
|
-
} =
|
|
1398
|
-
|
|
1399
|
-
}
|
|
1400
|
-
console.error(
|
|
1423
|
+
data: t
|
|
1424
|
+
} = await d[s](o);
|
|
1425
|
+
t != null && t.redirectUri ? window.location.href = t.redirectUri : console.error(`${s} OAuth 重定向URL为空`);
|
|
1426
|
+
} catch (t) {
|
|
1427
|
+
console.error(`${s} OAuth 授权失败:`, t);
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
function Vt(s) {
|
|
1431
|
+
Y("github", {
|
|
1432
|
+
referrerId: s
|
|
1401
1433
|
});
|
|
1402
1434
|
}
|
|
1403
|
-
function
|
|
1435
|
+
function Ut(s) {
|
|
1436
|
+
Y("google", {
|
|
1437
|
+
referrerId: s
|
|
1438
|
+
});
|
|
1404
1439
|
}
|
|
1405
|
-
function
|
|
1440
|
+
function $t(s) {
|
|
1441
|
+
Y("microsoft", {
|
|
1442
|
+
referrerId: s
|
|
1443
|
+
});
|
|
1406
1444
|
}
|
|
1407
|
-
function
|
|
1445
|
+
function Ct() {
|
|
1408
1446
|
return {
|
|
1409
|
-
githubAuth:
|
|
1410
|
-
googleAuth:
|
|
1411
|
-
microsoftAuth:
|
|
1447
|
+
githubAuth: Vt,
|
|
1448
|
+
googleAuth: Ut,
|
|
1449
|
+
microsoftAuth: $t,
|
|
1450
|
+
startOAuth: Y,
|
|
1451
|
+
getOAuthCallbackUrl: ge
|
|
1412
1452
|
};
|
|
1413
1453
|
}
|
|
1414
|
-
const
|
|
1454
|
+
const ie = /* @__PURE__ */ I({
|
|
1415
1455
|
__name: "AuthkitOAuthItem",
|
|
1416
1456
|
props: {
|
|
1417
1457
|
size: {
|
|
@@ -1430,27 +1470,27 @@ const te = /* @__PURE__ */ I({
|
|
|
1430
1470
|
}
|
|
1431
1471
|
},
|
|
1432
1472
|
emits: [],
|
|
1433
|
-
setup(
|
|
1434
|
-
emit:
|
|
1473
|
+
setup(s, {
|
|
1474
|
+
emit: r
|
|
1435
1475
|
}) {
|
|
1436
|
-
const
|
|
1437
|
-
return (
|
|
1476
|
+
const u = s;
|
|
1477
|
+
return (a, o) => (g(), k(e(P), {
|
|
1438
1478
|
class: "OAuthItem",
|
|
1439
1479
|
type: "primary",
|
|
1440
|
-
size:
|
|
1480
|
+
size: u.size
|
|
1441
1481
|
}, {
|
|
1442
|
-
icon:
|
|
1443
|
-
icon:
|
|
1482
|
+
icon: n(() => [i(e(Me), {
|
|
1483
|
+
icon: u.icon
|
|
1444
1484
|
}, null, 8, ["icon"])]),
|
|
1445
|
-
default:
|
|
1485
|
+
default: n(() => [z("span", null, R(u.label), 1)]),
|
|
1446
1486
|
_: 1
|
|
1447
1487
|
}, 8, ["size"]));
|
|
1448
1488
|
}
|
|
1449
|
-
}),
|
|
1489
|
+
}), xt = {
|
|
1450
1490
|
class: "OAuthList"
|
|
1451
|
-
},
|
|
1491
|
+
}, qt = {
|
|
1452
1492
|
class: "OAuthList"
|
|
1453
|
-
},
|
|
1493
|
+
}, Tt = /* @__PURE__ */ I({
|
|
1454
1494
|
__name: "AuthkitOAuthList",
|
|
1455
1495
|
props: {
|
|
1456
1496
|
size: {
|
|
@@ -1462,47 +1502,47 @@ const te = /* @__PURE__ */ I({
|
|
|
1462
1502
|
default: () => ""
|
|
1463
1503
|
}
|
|
1464
1504
|
},
|
|
1465
|
-
setup(
|
|
1505
|
+
setup(s) {
|
|
1466
1506
|
const {
|
|
1467
|
-
appsData:
|
|
1468
|
-
} =
|
|
1469
|
-
githubAuth:
|
|
1470
|
-
googleAuth:
|
|
1471
|
-
microsoftAuth:
|
|
1472
|
-
} =
|
|
1473
|
-
return (l, y) => (g(),
|
|
1507
|
+
appsData: r
|
|
1508
|
+
} = se(), u = s, {
|
|
1509
|
+
githubAuth: a,
|
|
1510
|
+
googleAuth: o,
|
|
1511
|
+
microsoftAuth: d
|
|
1512
|
+
} = Ct(), t = F(() => !(!r.value.oauth.google.enabled && !r.value.oauth.microsoft.enabled && !r.value.oauth.github.enabled && !r.value.oauth.wechat.enabled));
|
|
1513
|
+
return (l, y) => (g(), V("div", xt, [t.value ? (g(), k(e($e), {
|
|
1474
1514
|
key: 0,
|
|
1475
1515
|
orientation: "center"
|
|
1476
1516
|
}, {
|
|
1477
|
-
default:
|
|
1517
|
+
default: n(() => [...y[3] || (y[3] = [_("OAuth登陆", -1)])]),
|
|
1478
1518
|
_: 1
|
|
1479
|
-
})) : S("", !0), z("div",
|
|
1519
|
+
})) : S("", !0), z("div", qt, [e(r).oauth.github.enabled ? (g(), k(ie, {
|
|
1480
1520
|
key: 0,
|
|
1481
1521
|
icon: "mdi:github",
|
|
1482
1522
|
label: "Github",
|
|
1483
|
-
size:
|
|
1484
|
-
onClick: e(
|
|
1485
|
-
}, null, 8, ["size"
|
|
1523
|
+
size: u.size,
|
|
1524
|
+
onClick: y[0] || (y[0] = (m) => e(a)())
|
|
1525
|
+
}, null, 8, ["size"])) : S("", !0), e(r).oauth.google.enabled ? (g(), k(ie, {
|
|
1486
1526
|
key: 1,
|
|
1487
1527
|
icon: "mdi:google",
|
|
1488
1528
|
label: "Google",
|
|
1489
|
-
size:
|
|
1490
|
-
onClick: e(
|
|
1491
|
-
}, null, 8, ["size"
|
|
1529
|
+
size: u.size,
|
|
1530
|
+
onClick: y[1] || (y[1] = (m) => e(o)())
|
|
1531
|
+
}, null, 8, ["size"])) : S("", !0), e(r).oauth.microsoft.enabled ? (g(), k(ie, {
|
|
1492
1532
|
key: 2,
|
|
1493
1533
|
icon: "mdi:microsoft",
|
|
1494
1534
|
label: "Microsoft",
|
|
1495
|
-
size:
|
|
1496
|
-
onClick:
|
|
1497
|
-
}, null, 8, ["size"
|
|
1535
|
+
size: u.size,
|
|
1536
|
+
onClick: y[2] || (y[2] = (m) => e(d)())
|
|
1537
|
+
}, null, 8, ["size"])) : S("", !0)])]));
|
|
1498
1538
|
}
|
|
1499
|
-
}),
|
|
1539
|
+
}), Rt = /* @__PURE__ */ C(Tt, [["__scopeId", "data-v-2da85b1f"]]), Lt = {
|
|
1500
1540
|
class: "content"
|
|
1501
|
-
},
|
|
1541
|
+
}, Bt = {
|
|
1502
1542
|
class: "sendVerifyCodeItem"
|
|
1503
|
-
},
|
|
1543
|
+
}, Ot = {
|
|
1504
1544
|
class: "handle"
|
|
1505
|
-
},
|
|
1545
|
+
}, Et = /* @__PURE__ */ I({
|
|
1506
1546
|
__name: "AuthkitPasswordUpdateAndVerify",
|
|
1507
1547
|
props: {
|
|
1508
1548
|
size: {
|
|
@@ -1516,10 +1556,10 @@ const te = /* @__PURE__ */ I({
|
|
|
1516
1556
|
}
|
|
1517
1557
|
},
|
|
1518
1558
|
emits: ["signIn", "submit"],
|
|
1519
|
-
setup(
|
|
1520
|
-
emit:
|
|
1559
|
+
setup(s, {
|
|
1560
|
+
emit: r
|
|
1521
1561
|
}) {
|
|
1522
|
-
const
|
|
1562
|
+
const u = r, a = s, o = w(), d = w(!1), t = w(), l = w({
|
|
1523
1563
|
email: void 0,
|
|
1524
1564
|
userToken: void 0,
|
|
1525
1565
|
emailVerifyId: void 0,
|
|
@@ -1528,30 +1568,30 @@ const te = /* @__PURE__ */ I({
|
|
|
1528
1568
|
});
|
|
1529
1569
|
async function y() {
|
|
1530
1570
|
t.value.validateField(["email"]).then((p) => {
|
|
1531
|
-
p || (
|
|
1571
|
+
p || (d.value = !0, X({
|
|
1532
1572
|
email: l.value.email
|
|
1533
1573
|
}).then(({
|
|
1534
|
-
data:
|
|
1574
|
+
data: c
|
|
1535
1575
|
}) => {
|
|
1536
|
-
|
|
1576
|
+
d.value = !1, l.value.emailVerifyId = c.emailVerifyId, o.value.startCountFn();
|
|
1537
1577
|
}).catch(() => {
|
|
1538
|
-
|
|
1578
|
+
d.value = !1;
|
|
1539
1579
|
}));
|
|
1540
1580
|
});
|
|
1541
1581
|
}
|
|
1542
|
-
async function
|
|
1582
|
+
async function m() {
|
|
1543
1583
|
t.value.validate().then((p) => {
|
|
1544
|
-
p ||
|
|
1584
|
+
p || u("submit", l.value);
|
|
1545
1585
|
});
|
|
1546
1586
|
}
|
|
1547
|
-
return (p,
|
|
1587
|
+
return (p, c) => (g(), V("div", Lt, [i(e(G), {
|
|
1548
1588
|
ref_key: "formRef",
|
|
1549
1589
|
ref: t,
|
|
1550
1590
|
model: l.value,
|
|
1551
|
-
size:
|
|
1591
|
+
size: a.size,
|
|
1552
1592
|
"auto-label-width": ""
|
|
1553
1593
|
}, {
|
|
1554
|
-
default:
|
|
1594
|
+
default: n(() => [i(e(A), {
|
|
1555
1595
|
field: "email",
|
|
1556
1596
|
label: "邮箱",
|
|
1557
1597
|
"hide-label": "",
|
|
@@ -1563,9 +1603,9 @@ const te = /* @__PURE__ */ I({
|
|
|
1563
1603
|
message: "请输入有效的邮箱"
|
|
1564
1604
|
}]
|
|
1565
1605
|
}, {
|
|
1566
|
-
default:
|
|
1606
|
+
default: n(() => [i(e(q), {
|
|
1567
1607
|
modelValue: l.value.email,
|
|
1568
|
-
"onUpdate:modelValue":
|
|
1608
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => l.value.email = f),
|
|
1569
1609
|
placeholder: "请输入邮箱"
|
|
1570
1610
|
}, null, 8, ["modelValue"])]),
|
|
1571
1611
|
_: 1
|
|
@@ -1578,15 +1618,15 @@ const te = /* @__PURE__ */ I({
|
|
|
1578
1618
|
message: "请输入验证码"
|
|
1579
1619
|
}]
|
|
1580
1620
|
}, {
|
|
1581
|
-
default:
|
|
1621
|
+
default: n(() => [z("div", Bt, [i(e(q), {
|
|
1582
1622
|
modelValue: l.value.userToken,
|
|
1583
|
-
"onUpdate:modelValue":
|
|
1623
|
+
"onUpdate:modelValue": c[1] || (c[1] = (f) => l.value.userToken = f),
|
|
1584
1624
|
placeholder: "请输入验证码"
|
|
1585
|
-
}, null, 8, ["modelValue"]), i(
|
|
1625
|
+
}, null, 8, ["modelValue"]), i(ne, {
|
|
1586
1626
|
ref_key: "SendVerifyCodeRef",
|
|
1587
|
-
ref:
|
|
1588
|
-
size:
|
|
1589
|
-
loading:
|
|
1627
|
+
ref: o,
|
|
1628
|
+
size: a.size,
|
|
1629
|
+
loading: d.value,
|
|
1590
1630
|
style: {
|
|
1591
1631
|
"margin-left": "10px"
|
|
1592
1632
|
},
|
|
@@ -1605,9 +1645,9 @@ const te = /* @__PURE__ */ I({
|
|
|
1605
1645
|
message: "密码不能少于10字符"
|
|
1606
1646
|
}]
|
|
1607
1647
|
}, {
|
|
1608
|
-
default:
|
|
1648
|
+
default: n(() => [i(e(q), {
|
|
1609
1649
|
modelValue: l.value.password,
|
|
1610
|
-
"onUpdate:modelValue":
|
|
1650
|
+
"onUpdate:modelValue": c[2] || (c[2] = (f) => l.value.password = f),
|
|
1611
1651
|
placeholder: "请输入密码",
|
|
1612
1652
|
type: "password",
|
|
1613
1653
|
autocomplete: ""
|
|
@@ -1624,57 +1664,57 @@ const te = /* @__PURE__ */ I({
|
|
|
1624
1664
|
minLength: 10,
|
|
1625
1665
|
message: "确认密码不能少于10字符"
|
|
1626
1666
|
}, {
|
|
1627
|
-
validator: (
|
|
1628
|
-
|
|
1667
|
+
validator: (f, v) => {
|
|
1668
|
+
f !== l.value.password ? v("两次密码输入不一致,请重新输入") : v();
|
|
1629
1669
|
}
|
|
1630
1670
|
}]
|
|
1631
1671
|
}, {
|
|
1632
|
-
default:
|
|
1672
|
+
default: n(() => [i(e(q), {
|
|
1633
1673
|
modelValue: l.value.confirmPassword,
|
|
1634
|
-
"onUpdate:modelValue":
|
|
1674
|
+
"onUpdate:modelValue": c[3] || (c[3] = (f) => l.value.confirmPassword = f),
|
|
1635
1675
|
placeholder: "请输入确认密码密码",
|
|
1636
1676
|
type: "password",
|
|
1637
1677
|
autocomplete: ""
|
|
1638
1678
|
}, null, 8, ["modelValue"])]),
|
|
1639
1679
|
_: 1
|
|
1640
|
-
}, 8, ["rules"]), z("div",
|
|
1680
|
+
}, 8, ["rules"]), z("div", Ot, [i(e(P), {
|
|
1641
1681
|
type: "primary",
|
|
1642
|
-
loading:
|
|
1682
|
+
loading: a.loading,
|
|
1643
1683
|
long: "",
|
|
1644
|
-
size:
|
|
1645
|
-
onClick:
|
|
1684
|
+
size: a.size,
|
|
1685
|
+
onClick: m
|
|
1646
1686
|
}, {
|
|
1647
|
-
default:
|
|
1687
|
+
default: n(() => [...c[4] || (c[4] = [_(" 提交 ", -1)])]),
|
|
1648
1688
|
_: 1
|
|
1649
1689
|
}, 8, ["loading", "size"])])]),
|
|
1650
1690
|
_: 1
|
|
1651
1691
|
}, 8, ["model", "size"])]));
|
|
1652
1692
|
}
|
|
1653
|
-
}),
|
|
1693
|
+
}), Dt = /* @__PURE__ */ C(Et, [["__scopeId", "data-v-1c83f44a"]]), Nt = {
|
|
1654
1694
|
class: "SwitchSignIn"
|
|
1655
|
-
},
|
|
1695
|
+
}, Ft = /* @__PURE__ */ I({
|
|
1656
1696
|
__name: "AuthkitSwitchSignIn",
|
|
1657
1697
|
emits: ["switchSignIn"],
|
|
1658
|
-
setup(
|
|
1659
|
-
emit:
|
|
1698
|
+
setup(s, {
|
|
1699
|
+
emit: r
|
|
1660
1700
|
}) {
|
|
1661
|
-
const
|
|
1662
|
-
function
|
|
1663
|
-
|
|
1701
|
+
const u = r;
|
|
1702
|
+
function a() {
|
|
1703
|
+
u("switchSignIn");
|
|
1664
1704
|
}
|
|
1665
|
-
return (
|
|
1705
|
+
return (o, d) => (g(), V("div", Nt, [z("span", null, [d[1] || (d[1] = z("span", null, "已经有账号?", -1)), i(e(j), {
|
|
1666
1706
|
style: {
|
|
1667
1707
|
padding: "0px"
|
|
1668
1708
|
},
|
|
1669
|
-
onClick:
|
|
1709
|
+
onClick: a
|
|
1670
1710
|
}, {
|
|
1671
|
-
default:
|
|
1711
|
+
default: n(() => [...d[0] || (d[0] = [_("去登陆", -1)])]),
|
|
1672
1712
|
_: 1
|
|
1673
1713
|
})])]));
|
|
1674
1714
|
}
|
|
1675
|
-
}),
|
|
1715
|
+
}), ye = /* @__PURE__ */ C(Ft, [["__scopeId", "data-v-fc1d3903"]]), Gt = {
|
|
1676
1716
|
class: "ResetPassword"
|
|
1677
|
-
},
|
|
1717
|
+
}, Mt = /* @__PURE__ */ I({
|
|
1678
1718
|
__name: "AuthkitResetPassword",
|
|
1679
1719
|
props: {
|
|
1680
1720
|
size: {
|
|
@@ -1689,56 +1729,56 @@ const te = /* @__PURE__ */ I({
|
|
|
1689
1729
|
}
|
|
1690
1730
|
},
|
|
1691
1731
|
emits: ["switchSignIn", "submit"],
|
|
1692
|
-
setup(
|
|
1693
|
-
emit:
|
|
1732
|
+
setup(s, {
|
|
1733
|
+
emit: r
|
|
1694
1734
|
}) {
|
|
1695
|
-
const
|
|
1696
|
-
function
|
|
1697
|
-
|
|
1698
|
-
}
|
|
1699
|
-
async function
|
|
1700
|
-
|
|
1701
|
-
}
|
|
1702
|
-
return (t, l) => (g(),
|
|
1703
|
-
loading:
|
|
1704
|
-
size:
|
|
1705
|
-
onSubmit:
|
|
1706
|
-
}, null, 8, ["loading", "size"]), i(
|
|
1707
|
-
onSwitchSignIn:
|
|
1735
|
+
const u = r, a = s;
|
|
1736
|
+
function o() {
|
|
1737
|
+
u("switchSignIn");
|
|
1738
|
+
}
|
|
1739
|
+
async function d(t) {
|
|
1740
|
+
u("submit", t);
|
|
1741
|
+
}
|
|
1742
|
+
return (t, l) => (g(), V("div", Gt, [i(Dt, {
|
|
1743
|
+
loading: s.loading,
|
|
1744
|
+
size: a.size,
|
|
1745
|
+
onSubmit: d
|
|
1746
|
+
}, null, 8, ["loading", "size"]), i(ye, {
|
|
1747
|
+
onSwitchSignIn: o
|
|
1708
1748
|
})]));
|
|
1709
1749
|
}
|
|
1710
|
-
}),
|
|
1750
|
+
}), Ht = /* @__PURE__ */ C(Mt, [["__scopeId", "data-v-0622cbe3"]]), jt = {
|
|
1711
1751
|
class: "ServiceAgreementAndPrivacyProtection"
|
|
1712
|
-
},
|
|
1752
|
+
}, Wt = /* @__PURE__ */ I({
|
|
1713
1753
|
__name: "AuthkitServiceAgreementAndPrivacyProtection",
|
|
1714
1754
|
emits: ["toUserServiceAgreement", "toPrivacyPolicy"],
|
|
1715
|
-
setup(
|
|
1716
|
-
emit:
|
|
1755
|
+
setup(s, {
|
|
1756
|
+
emit: r
|
|
1717
1757
|
}) {
|
|
1718
|
-
const
|
|
1719
|
-
function
|
|
1720
|
-
|
|
1758
|
+
const u = r;
|
|
1759
|
+
function a() {
|
|
1760
|
+
u("toUserServiceAgreement");
|
|
1721
1761
|
}
|
|
1722
|
-
function
|
|
1723
|
-
|
|
1762
|
+
function o() {
|
|
1763
|
+
u("toPrivacyPolicy");
|
|
1724
1764
|
}
|
|
1725
|
-
return (
|
|
1726
|
-
onClick:
|
|
1765
|
+
return (d, t) => (g(), V("div", jt, [t[2] || (t[2] = z("span", null, " 注册登陆即表示同意", -1)), i(e(j), {
|
|
1766
|
+
onClick: a
|
|
1727
1767
|
}, {
|
|
1728
|
-
default:
|
|
1768
|
+
default: n(() => [...t[0] || (t[0] = [_("用户服务协议", -1)])]),
|
|
1729
1769
|
_: 1
|
|
1730
|
-
}), t[3] || (t[3] = z("span", null, " 和 ", -1)), i(e(
|
|
1731
|
-
onClick:
|
|
1770
|
+
}), t[3] || (t[3] = z("span", null, " 和 ", -1)), i(e(j), {
|
|
1771
|
+
onClick: o
|
|
1732
1772
|
}, {
|
|
1733
|
-
default:
|
|
1773
|
+
default: n(() => [...t[1] || (t[1] = [_("隐私协议", -1)])]),
|
|
1734
1774
|
_: 1
|
|
1735
1775
|
})]));
|
|
1736
1776
|
}
|
|
1737
|
-
}),
|
|
1777
|
+
}), Kt = /* @__PURE__ */ C(Wt, [["__scopeId", "data-v-18e831ec"]]), Zt = {
|
|
1738
1778
|
class: "content"
|
|
1739
|
-
},
|
|
1779
|
+
}, Jt = {
|
|
1740
1780
|
class: "handle"
|
|
1741
|
-
},
|
|
1781
|
+
}, Qt = /* @__PURE__ */ I({
|
|
1742
1782
|
__name: "AuthkitPasswordAuth",
|
|
1743
1783
|
props: {
|
|
1744
1784
|
size: {
|
|
@@ -1752,38 +1792,38 @@ const te = /* @__PURE__ */ I({
|
|
|
1752
1792
|
}
|
|
1753
1793
|
},
|
|
1754
1794
|
emits: ["submit"],
|
|
1755
|
-
setup(
|
|
1756
|
-
emit:
|
|
1795
|
+
setup(s, {
|
|
1796
|
+
emit: r
|
|
1757
1797
|
}) {
|
|
1758
|
-
const
|
|
1759
|
-
async function
|
|
1760
|
-
const p = await
|
|
1798
|
+
const u = r, a = s;
|
|
1799
|
+
async function o(y, m) {
|
|
1800
|
+
const p = await Ye({
|
|
1761
1801
|
password: y
|
|
1762
1802
|
});
|
|
1763
|
-
p ||
|
|
1803
|
+
p || m("密码验证请求出错!");
|
|
1764
1804
|
const {
|
|
1765
|
-
isValidate:
|
|
1766
|
-
message:
|
|
1805
|
+
isValidate: c,
|
|
1806
|
+
message: f
|
|
1767
1807
|
} = p.data;
|
|
1768
|
-
|
|
1808
|
+
c || m(f), m();
|
|
1769
1809
|
}
|
|
1770
|
-
const
|
|
1810
|
+
const d = w(), t = w({
|
|
1771
1811
|
email: void 0,
|
|
1772
1812
|
password: void 0
|
|
1773
1813
|
});
|
|
1774
1814
|
async function l() {
|
|
1775
|
-
|
|
1776
|
-
y ||
|
|
1815
|
+
d.value.validate().then((y) => {
|
|
1816
|
+
y || u("submit", t.value);
|
|
1777
1817
|
});
|
|
1778
1818
|
}
|
|
1779
|
-
return (y,
|
|
1819
|
+
return (y, m) => (g(), V("div", Zt, [i(e(G), {
|
|
1780
1820
|
ref_key: "formRef",
|
|
1781
|
-
ref:
|
|
1821
|
+
ref: d,
|
|
1782
1822
|
model: t.value,
|
|
1783
|
-
size:
|
|
1823
|
+
size: a.size,
|
|
1784
1824
|
"auto-label-width": ""
|
|
1785
1825
|
}, {
|
|
1786
|
-
default:
|
|
1826
|
+
default: n(() => [i(e(A), {
|
|
1787
1827
|
field: "email",
|
|
1788
1828
|
label: "邮箱",
|
|
1789
1829
|
"hide-label": "",
|
|
@@ -1795,9 +1835,9 @@ const te = /* @__PURE__ */ I({
|
|
|
1795
1835
|
message: "请输入有效的邮箱"
|
|
1796
1836
|
}]
|
|
1797
1837
|
}, {
|
|
1798
|
-
default:
|
|
1838
|
+
default: n(() => [i(e(q), {
|
|
1799
1839
|
modelValue: t.value.email,
|
|
1800
|
-
"onUpdate:modelValue":
|
|
1840
|
+
"onUpdate:modelValue": m[0] || (m[0] = (p) => t.value.email = p),
|
|
1801
1841
|
placeholder: "请输入邮箱",
|
|
1802
1842
|
autocomplete: "email username",
|
|
1803
1843
|
type: "email"
|
|
@@ -1811,66 +1851,66 @@ const te = /* @__PURE__ */ I({
|
|
|
1811
1851
|
required: !0,
|
|
1812
1852
|
message: "请输入密码"
|
|
1813
1853
|
}, {
|
|
1814
|
-
validator:
|
|
1854
|
+
validator: o
|
|
1815
1855
|
}]
|
|
1816
1856
|
}, {
|
|
1817
|
-
default:
|
|
1857
|
+
default: n(() => [i(e(q), {
|
|
1818
1858
|
modelValue: t.value.password,
|
|
1819
|
-
"onUpdate:modelValue":
|
|
1859
|
+
"onUpdate:modelValue": m[1] || (m[1] = (p) => t.value.password = p),
|
|
1820
1860
|
placeholder: "请输入密码",
|
|
1821
1861
|
type: "password",
|
|
1822
1862
|
autocomplete: "current-password"
|
|
1823
1863
|
}, null, 8, ["modelValue"])]),
|
|
1824
1864
|
_: 1
|
|
1825
|
-
}, 8, ["rules"]), z("div",
|
|
1865
|
+
}, 8, ["rules"]), z("div", Jt, [i(e(P), {
|
|
1826
1866
|
type: "primary",
|
|
1827
|
-
loading:
|
|
1867
|
+
loading: a.loading,
|
|
1828
1868
|
long: "",
|
|
1829
|
-
size:
|
|
1869
|
+
size: a.size,
|
|
1830
1870
|
onClick: l
|
|
1831
1871
|
}, {
|
|
1832
|
-
default:
|
|
1872
|
+
default: n(() => [...m[2] || (m[2] = [_(" 登陆 ", -1)])]),
|
|
1833
1873
|
_: 1
|
|
1834
1874
|
}, 8, ["loading", "size"])])]),
|
|
1835
1875
|
_: 1
|
|
1836
1876
|
}, 8, ["model", "size"])]));
|
|
1837
1877
|
}
|
|
1838
|
-
}),
|
|
1878
|
+
}), Xt = /* @__PURE__ */ C(Qt, [["__scopeId", "data-v-76d6bc26"]]), Yt = {
|
|
1839
1879
|
class: "SwitchSignUpOrResetPassword"
|
|
1840
|
-
},
|
|
1880
|
+
}, ei = /* @__PURE__ */ I({
|
|
1841
1881
|
__name: "AuthkitSwitchSignUpOrResetPassword",
|
|
1842
1882
|
emits: ["switchSignUp", "switchResetPassword"],
|
|
1843
|
-
setup(
|
|
1844
|
-
emit:
|
|
1883
|
+
setup(s, {
|
|
1884
|
+
emit: r
|
|
1845
1885
|
}) {
|
|
1846
|
-
const
|
|
1847
|
-
function
|
|
1848
|
-
|
|
1886
|
+
const u = r;
|
|
1887
|
+
function a() {
|
|
1888
|
+
u("switchSignUp");
|
|
1849
1889
|
}
|
|
1850
|
-
function
|
|
1851
|
-
|
|
1890
|
+
function o() {
|
|
1891
|
+
u("switchResetPassword");
|
|
1852
1892
|
}
|
|
1853
|
-
return (
|
|
1893
|
+
return (d, t) => (g(), V("div", Yt, [z("span", null, [t[1] || (t[1] = z("span", null, " 还没有账户?", -1)), i(e(j), {
|
|
1854
1894
|
style: {
|
|
1855
1895
|
padding: "0px"
|
|
1856
1896
|
},
|
|
1857
|
-
onClick:
|
|
1897
|
+
onClick: a
|
|
1858
1898
|
}, {
|
|
1859
|
-
default:
|
|
1899
|
+
default: n(() => [...t[0] || (t[0] = [_("去注册?", -1)])]),
|
|
1860
1900
|
_: 1
|
|
1861
|
-
})]), i(e(
|
|
1901
|
+
})]), i(e(j), {
|
|
1862
1902
|
style: {
|
|
1863
1903
|
padding: "0px"
|
|
1864
1904
|
},
|
|
1865
|
-
onClick:
|
|
1905
|
+
onClick: o
|
|
1866
1906
|
}, {
|
|
1867
|
-
default:
|
|
1907
|
+
default: n(() => [...t[2] || (t[2] = [_(" 忘记密码?", -1)])]),
|
|
1868
1908
|
_: 1
|
|
1869
1909
|
})]));
|
|
1870
1910
|
}
|
|
1871
|
-
}),
|
|
1911
|
+
}), ti = /* @__PURE__ */ C(ei, [["__scopeId", "data-v-14e3aab2"]]), ii = {
|
|
1872
1912
|
class: "SignIn"
|
|
1873
|
-
},
|
|
1913
|
+
}, li = /* @__PURE__ */ I({
|
|
1874
1914
|
__name: "AuthkitSignIn",
|
|
1875
1915
|
props: {
|
|
1876
1916
|
size: {
|
|
@@ -1884,33 +1924,33 @@ const te = /* @__PURE__ */ I({
|
|
|
1884
1924
|
}
|
|
1885
1925
|
},
|
|
1886
1926
|
emits: ["submit", "switchSignUp", "switchResetPassword"],
|
|
1887
|
-
setup(
|
|
1888
|
-
emit:
|
|
1927
|
+
setup(s, {
|
|
1928
|
+
emit: r
|
|
1889
1929
|
}) {
|
|
1890
|
-
const
|
|
1930
|
+
const u = r, a = s, o = Ie(), d = F(() => !!o.OAuth);
|
|
1891
1931
|
function t() {
|
|
1892
|
-
|
|
1932
|
+
u("switchSignUp");
|
|
1893
1933
|
}
|
|
1894
1934
|
function l() {
|
|
1895
|
-
|
|
1935
|
+
u("switchResetPassword");
|
|
1896
1936
|
}
|
|
1897
|
-
async function y(
|
|
1898
|
-
|
|
1937
|
+
async function y(m) {
|
|
1938
|
+
u("submit", m);
|
|
1899
1939
|
}
|
|
1900
|
-
return (
|
|
1901
|
-
loading:
|
|
1902
|
-
size:
|
|
1940
|
+
return (m, p) => (g(), V("div", ii, [S("", !0), i(Xt, {
|
|
1941
|
+
loading: a.loading,
|
|
1942
|
+
size: a.size,
|
|
1903
1943
|
onSubmit: y
|
|
1904
|
-
}, null, 8, ["loading", "size"]),
|
|
1944
|
+
}, null, 8, ["loading", "size"]), d.value ? de(m.$slots, "OAuth", {
|
|
1905
1945
|
key: 1
|
|
1906
|
-
}, void 0, !0) : S("", !0), i(
|
|
1946
|
+
}, void 0, !0) : S("", !0), i(ti, {
|
|
1907
1947
|
onSwitchSignUp: t,
|
|
1908
1948
|
onSwitchResetPassword: l
|
|
1909
1949
|
})]));
|
|
1910
1950
|
}
|
|
1911
|
-
}),
|
|
1951
|
+
}), si = /* @__PURE__ */ C(li, [["__scopeId", "data-v-f52ce3b3"]]), ni = {
|
|
1912
1952
|
class: "SignUp"
|
|
1913
|
-
},
|
|
1953
|
+
}, ai = /* @__PURE__ */ I({
|
|
1914
1954
|
__name: "AuthkitSignUp",
|
|
1915
1955
|
props: {
|
|
1916
1956
|
size: {
|
|
@@ -1924,25 +1964,25 @@ const te = /* @__PURE__ */ I({
|
|
|
1924
1964
|
}
|
|
1925
1965
|
},
|
|
1926
1966
|
emits: ["switchSignIn", "submit"],
|
|
1927
|
-
setup(
|
|
1928
|
-
emit:
|
|
1967
|
+
setup(s, {
|
|
1968
|
+
emit: r
|
|
1929
1969
|
}) {
|
|
1930
|
-
const
|
|
1931
|
-
function
|
|
1932
|
-
|
|
1933
|
-
}
|
|
1934
|
-
async function
|
|
1935
|
-
|
|
1936
|
-
}
|
|
1937
|
-
return (t, l) => (g(),
|
|
1938
|
-
size:
|
|
1939
|
-
loading:
|
|
1940
|
-
onSubmit:
|
|
1941
|
-
}, null, 8, ["size", "loading"]), i(
|
|
1942
|
-
onSwitchSignIn:
|
|
1970
|
+
const u = r, a = s;
|
|
1971
|
+
function o() {
|
|
1972
|
+
u("switchSignIn");
|
|
1973
|
+
}
|
|
1974
|
+
async function d(t) {
|
|
1975
|
+
u("submit", t);
|
|
1976
|
+
}
|
|
1977
|
+
return (t, l) => (g(), V("div", ni, [i(pe, {
|
|
1978
|
+
size: a.size,
|
|
1979
|
+
loading: s.loading,
|
|
1980
|
+
onSubmit: d
|
|
1981
|
+
}, null, 8, ["size", "loading"]), i(ye, {
|
|
1982
|
+
onSwitchSignIn: o
|
|
1943
1983
|
})]));
|
|
1944
1984
|
}
|
|
1945
|
-
}),
|
|
1985
|
+
}), oi = /* @__PURE__ */ C(ai, [["__scopeId", "data-v-058bbbef"]]), ri = ["src"], ui = /* @__PURE__ */ I({
|
|
1946
1986
|
__name: "AuthkitAuthTitle",
|
|
1947
1987
|
props: {
|
|
1948
1988
|
size: {
|
|
@@ -1961,32 +2001,32 @@ const te = /* @__PURE__ */ I({
|
|
|
1961
2001
|
default: 60
|
|
1962
2002
|
}
|
|
1963
2003
|
},
|
|
1964
|
-
setup(
|
|
1965
|
-
const
|
|
1966
|
-
currentView:
|
|
2004
|
+
setup(s) {
|
|
2005
|
+
const r = s, u = `${r.size}px`, a = `${r.fontSize}px`, o = `${r.lineHeight}px`, {
|
|
2006
|
+
currentView: d
|
|
1967
2007
|
} = Q(), {
|
|
1968
2008
|
appsData: t
|
|
1969
|
-
} =
|
|
1970
|
-
return (y,
|
|
2009
|
+
} = se(), l = F(() => d.value === "signIn" ? `${t.value.name}登录` : d.value === "signUp" ? `${t.value.name}账号注册` : d.value === "resetPassword" ? `${t.value.name}密码重置` : "");
|
|
2010
|
+
return (y, m) => (g(), V("div", {
|
|
1971
2011
|
class: "Title",
|
|
1972
|
-
style:
|
|
1973
|
-
fontSize:
|
|
1974
|
-
lineHeight:
|
|
2012
|
+
style: le({
|
|
2013
|
+
fontSize: a,
|
|
2014
|
+
lineHeight: o
|
|
1975
2015
|
})
|
|
1976
|
-
}, [e(t).applicationLogoUrl ? (g(),
|
|
2016
|
+
}, [e(t).applicationLogoUrl ? (g(), V("img", {
|
|
1977
2017
|
key: 0,
|
|
1978
2018
|
src: e(t).applicationLogoUrl,
|
|
1979
2019
|
srcset: "",
|
|
1980
|
-
style:
|
|
1981
|
-
width:
|
|
2020
|
+
style: le({
|
|
2021
|
+
width: u
|
|
1982
2022
|
})
|
|
1983
|
-
}, null, 12,
|
|
2023
|
+
}, null, 12, ri)) : S("", !0), z("span", null, R(l.value), 1), de(y.$slots, "default", {}, void 0, !0)], 4));
|
|
1984
2024
|
}
|
|
1985
|
-
}),
|
|
2025
|
+
}), he = /* @__PURE__ */ C(ui, [["__scopeId", "data-v-5576db64"]]), di = {
|
|
1986
2026
|
class: "Auth"
|
|
1987
|
-
},
|
|
2027
|
+
}, ci = {
|
|
1988
2028
|
class: "body"
|
|
1989
|
-
},
|
|
2029
|
+
}, mi = /* @__PURE__ */ I({
|
|
1990
2030
|
__name: "AuthkitAuth",
|
|
1991
2031
|
props: {
|
|
1992
2032
|
size: {
|
|
@@ -1999,63 +2039,63 @@ const te = /* @__PURE__ */ I({
|
|
|
1999
2039
|
}
|
|
2000
2040
|
},
|
|
2001
2041
|
emits: ["toPrivacyPolicy", "toUserServiceAgreement"],
|
|
2002
|
-
setup(
|
|
2003
|
-
emit:
|
|
2042
|
+
setup(s, {
|
|
2043
|
+
emit: r
|
|
2004
2044
|
}) {
|
|
2005
|
-
const
|
|
2006
|
-
signInSubmit:
|
|
2007
|
-
signUpSubmit:
|
|
2045
|
+
const u = s, a = r, {
|
|
2046
|
+
signInSubmit: o,
|
|
2047
|
+
signUpSubmit: d,
|
|
2008
2048
|
resetPasswordSubmit: t,
|
|
2009
2049
|
currentView: l,
|
|
2010
2050
|
authSignInLoading: y,
|
|
2011
|
-
authSignUpLoading:
|
|
2051
|
+
authSignUpLoading: m,
|
|
2012
2052
|
resetPasswordLoading: p,
|
|
2013
|
-
switchSignUp:
|
|
2014
|
-
switchResetPassword:
|
|
2053
|
+
switchSignUp: c,
|
|
2054
|
+
switchResetPassword: f,
|
|
2015
2055
|
switchSignIn: v
|
|
2016
2056
|
} = Q(), {
|
|
2017
2057
|
appsAuthPageInfoApi: b
|
|
2018
|
-
} =
|
|
2058
|
+
} = se();
|
|
2019
2059
|
function U() {
|
|
2020
|
-
|
|
2060
|
+
a("toPrivacyPolicy");
|
|
2021
2061
|
}
|
|
2022
|
-
function
|
|
2023
|
-
|
|
2062
|
+
function $() {
|
|
2063
|
+
a("toUserServiceAgreement");
|
|
2024
2064
|
}
|
|
2025
|
-
return b(), (T, B) => (g(),
|
|
2065
|
+
return b(), (T, B) => (g(), V("div", di, [s.showTitle ? (g(), k(he, {
|
|
2026
2066
|
key: 0,
|
|
2027
2067
|
size: 32,
|
|
2028
2068
|
"font-size": 20
|
|
2029
|
-
})) : S("", !0), z("div",
|
|
2069
|
+
})) : S("", !0), z("div", ci, [e(l) === "signIn" ? (g(), k(si, {
|
|
2030
2070
|
key: 0,
|
|
2031
|
-
size:
|
|
2071
|
+
size: u.size,
|
|
2032
2072
|
loading: e(y),
|
|
2033
|
-
onSwitchSignUp: e(
|
|
2034
|
-
onSwitchResetPassword: e(
|
|
2035
|
-
onSubmit: B[0] || (B[0] = (O) => e(
|
|
2073
|
+
onSwitchSignUp: e(c),
|
|
2074
|
+
onSwitchResetPassword: e(f),
|
|
2075
|
+
onSubmit: B[0] || (B[0] = (O) => e(o)(O))
|
|
2036
2076
|
}, {
|
|
2037
|
-
OAuth:
|
|
2038
|
-
size:
|
|
2077
|
+
OAuth: n(() => [i(Rt, {
|
|
2078
|
+
size: u.size
|
|
2039
2079
|
}, null, 8, ["size"])]),
|
|
2040
2080
|
_: 1
|
|
2041
|
-
}, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : e(l) === "signUp" ? (g(), k(
|
|
2081
|
+
}, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : e(l) === "signUp" ? (g(), k(oi, {
|
|
2042
2082
|
key: 1,
|
|
2043
|
-
size:
|
|
2044
|
-
loading: e(
|
|
2083
|
+
size: u.size,
|
|
2084
|
+
loading: e(m),
|
|
2045
2085
|
onSwitchSignIn: e(v),
|
|
2046
|
-
onSubmit: B[1] || (B[1] = (O) => e(
|
|
2047
|
-
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(l) === "resetPassword" ? (g(), k(
|
|
2086
|
+
onSubmit: B[1] || (B[1] = (O) => e(d)(O))
|
|
2087
|
+
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(l) === "resetPassword" ? (g(), k(Ht, {
|
|
2048
2088
|
key: 2,
|
|
2049
|
-
size:
|
|
2089
|
+
size: u.size,
|
|
2050
2090
|
loading: e(p),
|
|
2051
2091
|
onSwitchSignIn: e(v),
|
|
2052
2092
|
onSubmit: B[2] || (B[2] = (O) => e(t)(O))
|
|
2053
|
-
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : S("", !0), i(
|
|
2093
|
+
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : S("", !0), i(Kt, {
|
|
2054
2094
|
onToPrivacyPolicy: U,
|
|
2055
|
-
onToUserServiceAgreement:
|
|
2095
|
+
onToUserServiceAgreement: $
|
|
2056
2096
|
})])]));
|
|
2057
2097
|
}
|
|
2058
|
-
}),
|
|
2098
|
+
}), fi = /* @__PURE__ */ C(mi, [["__scopeId", "data-v-186d2441"]]), pi = /* @__PURE__ */ I({
|
|
2059
2099
|
__name: "AuthkitAuthModal",
|
|
2060
2100
|
props: {
|
|
2061
2101
|
size: {
|
|
@@ -2068,25 +2108,25 @@ const te = /* @__PURE__ */ I({
|
|
|
2068
2108
|
}
|
|
2069
2109
|
},
|
|
2070
2110
|
emits: ["confirm", "close", "toPrivacyPolicy", "toUserServiceAgreement"],
|
|
2071
|
-
setup(
|
|
2072
|
-
emit:
|
|
2111
|
+
setup(s, {
|
|
2112
|
+
emit: r
|
|
2073
2113
|
}) {
|
|
2074
2114
|
const {
|
|
2075
|
-
addSignInCallback:
|
|
2115
|
+
addSignInCallback: u
|
|
2076
2116
|
} = Q(), {
|
|
2077
|
-
show:
|
|
2078
|
-
} =
|
|
2117
|
+
show: a
|
|
2118
|
+
} = Ce(), o = s, d = r;
|
|
2079
2119
|
function t(y) {
|
|
2080
2120
|
y(!0);
|
|
2081
2121
|
}
|
|
2082
2122
|
function l() {
|
|
2083
|
-
|
|
2123
|
+
a.value = !1, d("close");
|
|
2084
2124
|
}
|
|
2085
|
-
return
|
|
2086
|
-
|
|
2087
|
-
}), (y,
|
|
2088
|
-
visible: e(
|
|
2089
|
-
"onUpdate:visible":
|
|
2125
|
+
return u(() => {
|
|
2126
|
+
a.value = !1;
|
|
2127
|
+
}), (y, m) => (g(), k(e(me), {
|
|
2128
|
+
visible: e(a),
|
|
2129
|
+
"onUpdate:visible": m[2] || (m[2] = (p) => ue(a) ? a.value = p : null),
|
|
2090
2130
|
footer: !1,
|
|
2091
2131
|
"mask-closable": !1,
|
|
2092
2132
|
"title-align": "center",
|
|
@@ -2096,38 +2136,39 @@ const te = /* @__PURE__ */ I({
|
|
|
2096
2136
|
onBeforeOk: t,
|
|
2097
2137
|
onClose: l
|
|
2098
2138
|
}, {
|
|
2099
|
-
title:
|
|
2100
|
-
default:
|
|
2139
|
+
title: n(() => [i(he)]),
|
|
2140
|
+
default: n(() => [i(fi, {
|
|
2101
2141
|
"show-title": !1,
|
|
2102
|
-
size:
|
|
2103
|
-
onToPrivacyPolicy:
|
|
2104
|
-
onToUserServiceAgreement:
|
|
2142
|
+
size: o.size,
|
|
2143
|
+
onToPrivacyPolicy: m[0] || (m[0] = (p) => d("toPrivacyPolicy")),
|
|
2144
|
+
onToUserServiceAgreement: m[1] || (m[1] = (p) => d("toUserServiceAgreement"))
|
|
2105
2145
|
}, null, 8, ["size"])]),
|
|
2106
2146
|
_: 1
|
|
2107
2147
|
}, 8, ["visible"]));
|
|
2108
2148
|
}
|
|
2109
|
-
}),
|
|
2149
|
+
}), qi = /* @__PURE__ */ C(pi, [["__scopeId", "data-v-6fbefff8"]]);
|
|
2110
2150
|
export {
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2151
|
+
xi as A,
|
|
2152
|
+
pe as E,
|
|
2153
|
+
Rt as O,
|
|
2154
|
+
Dt as P,
|
|
2155
|
+
Ht as R,
|
|
2156
|
+
ne as S,
|
|
2157
|
+
ie as _,
|
|
2158
|
+
fi as a,
|
|
2159
|
+
he as b,
|
|
2160
|
+
qi as c,
|
|
2161
|
+
si as d,
|
|
2162
|
+
oi as e,
|
|
2163
|
+
Xt as f,
|
|
2164
|
+
ye as g,
|
|
2165
|
+
ti as h,
|
|
2166
|
+
Kt as i,
|
|
2167
|
+
Qe as j,
|
|
2168
|
+
ae as k,
|
|
2169
|
+
gt as l,
|
|
2170
|
+
ot as m,
|
|
2171
|
+
ft as n,
|
|
2172
|
+
at as o,
|
|
2173
|
+
Ct as u
|
|
2133
2174
|
};
|