@huyooo/ui 0.5.56 → 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-Bt_oatde.js → AuthkitAuthModal-BSvtvlyj.js} +718 -661
- 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-ByEEFdDV.js → UserAccountMenu-BWx4hX66.js} +7 -7
- package/dist/{WidthContainer-C5bq-fmp.js → WidthContainer-DiEkVFtH.js} +6 -6
- package/dist/api/Authkit/OAuth.d.ts +12 -3
- 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 +14 -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
|
|
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 Ge = 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 u =
|
|
48
|
-
[`${u}-spin`]:
|
|
49
|
-
}]), o =
|
|
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:
|
|
54
|
+
cls: a,
|
|
55
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: (
|
|
78
|
+
var te = /* @__PURE__ */ Ee(He, [["render", We]]);
|
|
79
|
+
const Ke = Object.assign(te, {
|
|
80
|
+
install: (s, r) => {
|
|
81
81
|
var u;
|
|
82
|
-
const
|
|
83
|
-
|
|
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 u =
|
|
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, o.value.id =
|
|
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
|
|
119
|
+
const f = {
|
|
120
120
|
id: o.value.id,
|
|
121
121
|
nickname: o.value.nickname,
|
|
122
122
|
description: o.value.description,
|
|
123
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
|
-
onFileFinish(T, B,
|
|
150
|
-
|
|
151
|
-
const
|
|
149
|
+
onFileFinish(T, B, O) {
|
|
150
|
+
d.value = !0;
|
|
151
|
+
const W = {
|
|
152
152
|
id: o.value.id,
|
|
153
153
|
nickname: o.value.nickname,
|
|
154
154
|
description: o.value.description,
|
|
155
|
-
avatar:
|
|
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
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,7 +186,7 @@ const je = Object.assign(ee, {
|
|
|
186
186
|
message: "请上传头像"
|
|
187
187
|
}]
|
|
188
188
|
}, {
|
|
189
|
-
default:
|
|
189
|
+
default: n(() => [i(e(ce), {
|
|
190
190
|
"image-url": o.value.avatarUrl,
|
|
191
191
|
size: 42,
|
|
192
192
|
"object-fit": "cover",
|
|
@@ -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:
|
|
210
|
+
default: n(() => [i(e(q), {
|
|
211
211
|
modelValue: o.value.nickname,
|
|
212
|
-
"onUpdate:modelValue":
|
|
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:
|
|
224
|
+
default: n(() => [i(e(Pe), {
|
|
225
225
|
modelValue: o.value.description,
|
|
226
|
-
"onUpdate:modelValue":
|
|
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:
|
|
288
|
+
setup(s, {
|
|
289
|
+
expose: r,
|
|
290
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");
|
|
302
299
|
}
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
300
|
+
function f() {
|
|
301
|
+
l.value = 60, d.value = !0, t && clearInterval(t), t = setInterval(p, 1e3);
|
|
302
|
+
}
|
|
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
311
|
size: o.size,
|
|
312
|
-
disabled:
|
|
312
|
+
disabled: m.value,
|
|
313
313
|
loading: o.loading,
|
|
314
|
-
onClick:
|
|
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,34 +337,34 @@ 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 u =
|
|
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
|
-
|
|
367
|
+
Xe(v).then(() => {
|
|
368
368
|
l.value = !1, u("next");
|
|
369
369
|
}).catch(() => {
|
|
370
370
|
l.value = !1;
|
|
@@ -372,14 +372,14 @@ const Xe = /* @__PURE__ */ I({
|
|
|
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,10 +445,10 @@ 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 u =
|
|
451
|
+
const u = r, a = w(!1), o = w(), d = s, t = w({
|
|
452
452
|
oldPassword: "",
|
|
453
453
|
password: "",
|
|
454
454
|
confirmPassword: ""
|
|
@@ -456,25 +456,25 @@ const Xe = /* @__PURE__ */ I({
|
|
|
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
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:
|
|
563
|
+
userProfile: r,
|
|
564
564
|
loading: u,
|
|
565
|
-
fetchUserProfile:
|
|
565
|
+
fetchUserProfile: a,
|
|
566
566
|
isLoggedIn: o
|
|
567
|
-
} = J(),
|
|
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
|
-
o.value && !
|
|
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
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 u =
|
|
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
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
714
|
ref: o,
|
|
715
|
-
size:
|
|
716
|
-
loading:
|
|
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,24 +801,24 @@ const Xe = /* @__PURE__ */ I({
|
|
|
801
801
|
required: !0
|
|
802
802
|
}
|
|
803
803
|
},
|
|
804
|
-
setup(
|
|
804
|
+
setup(s) {
|
|
805
805
|
const {
|
|
806
|
-
userProfile:
|
|
806
|
+
userProfile: r,
|
|
807
807
|
loading: u,
|
|
808
|
-
fetchUserProfile:
|
|
809
|
-
} = J(), o =
|
|
810
|
-
function t(
|
|
811
|
-
o.value =
|
|
808
|
+
fetchUserProfile: a
|
|
809
|
+
} = J(), o = w("hidden"), d = s;
|
|
810
|
+
function t(m) {
|
|
811
|
+
o.value = m;
|
|
812
812
|
}
|
|
813
|
-
function l(
|
|
813
|
+
function l(m) {
|
|
814
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
|
-
u.value = !1,
|
|
820
|
+
Re(p).then(() => {
|
|
821
|
+
u.value = !1, N.success("绑定成功"), o.value = "hidden", a();
|
|
822
822
|
}).catch(() => {
|
|
823
823
|
u.value = !1;
|
|
824
824
|
});
|
|
@@ -826,62 +826,77 @@ const Xe = /* @__PURE__ */ I({
|
|
|
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), o.value === "update" ? (g(), k(
|
|
864
|
+
})) : S("", !0), o.value === "update" ? (g(), k(pe, {
|
|
865
865
|
key: 2,
|
|
866
866
|
loading: e(u),
|
|
867
|
-
size:
|
|
867
|
+
size: d.size,
|
|
868
868
|
onSubmit: l
|
|
869
|
-
}, null, 8, ["loading", "size"])) : S("", !0), o.value === "verify" ? (g(), k(
|
|
869
|
+
}, null, 8, ["loading", "size"])) : S("", !0), o.value === "verify" ? (g(), k(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: `${
|
|
881
|
-
method: "get"
|
|
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
|
|
882
890
|
});
|
|
883
891
|
}
|
|
884
|
-
|
|
892
|
+
function vt(s) {
|
|
893
|
+
return H({
|
|
894
|
+
url: `${E.authPrefixUrl}/restfulApi/oauth/microsoft/login`,
|
|
895
|
+
method: "get",
|
|
896
|
+
params: s
|
|
897
|
+
});
|
|
898
|
+
}
|
|
899
|
+
const gt = /* @__PURE__ */ I({
|
|
885
900
|
__name: "AuthkitGithubBinding",
|
|
886
901
|
props: {
|
|
887
902
|
size: {
|
|
@@ -889,94 +904,101 @@ const ct = /* @__PURE__ */ I({
|
|
|
889
904
|
required: !0
|
|
890
905
|
}
|
|
891
906
|
},
|
|
892
|
-
setup(
|
|
907
|
+
setup(s) {
|
|
893
908
|
const {
|
|
894
|
-
userProfile:
|
|
909
|
+
userProfile: r,
|
|
895
910
|
fetchUserProfile: u
|
|
896
|
-
} = J(),
|
|
897
|
-
let
|
|
898
|
-
const t =
|
|
899
|
-
function l(
|
|
900
|
-
|
|
911
|
+
} = J(), a = w("hidden"), o = w(!1);
|
|
912
|
+
let d;
|
|
913
|
+
const t = s;
|
|
914
|
+
function l(f) {
|
|
915
|
+
a.value = f;
|
|
901
916
|
}
|
|
902
917
|
function y() {
|
|
903
|
-
|
|
904
|
-
|
|
918
|
+
const f = E.appId;
|
|
919
|
+
if (!f) {
|
|
920
|
+
console.error("GitHub OAuth 失败: appId 未配置");
|
|
921
|
+
return;
|
|
922
|
+
}
|
|
923
|
+
ve({
|
|
924
|
+
appId: f
|
|
925
|
+
}).then(({
|
|
926
|
+
data: v
|
|
905
927
|
}) => {
|
|
906
928
|
const {
|
|
907
|
-
redirectUri:
|
|
908
|
-
} =
|
|
909
|
-
o.value = !0, window.open(
|
|
929
|
+
redirectUri: b
|
|
930
|
+
} = v;
|
|
931
|
+
o.value = !0, window.open(b, "_blank");
|
|
910
932
|
});
|
|
911
933
|
}
|
|
912
|
-
function
|
|
913
|
-
|
|
914
|
-
|
|
934
|
+
function m() {
|
|
935
|
+
Le().then(() => {
|
|
936
|
+
N.success("解绑成功"), a.value = "hidden", u();
|
|
915
937
|
});
|
|
916
938
|
}
|
|
917
939
|
function p() {
|
|
918
|
-
|
|
940
|
+
a.value === "bind" && (a.value = "hidden", y()), a.value === "unbind" && m();
|
|
919
941
|
}
|
|
920
|
-
function
|
|
942
|
+
function c() {
|
|
921
943
|
o.value && u();
|
|
922
944
|
}
|
|
923
|
-
return
|
|
924
|
-
|
|
925
|
-
}),
|
|
926
|
-
|
|
927
|
-
}), (
|
|
928
|
-
var b, U,
|
|
929
|
-
return g(),
|
|
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), {
|
|
930
952
|
key: 0,
|
|
931
953
|
title: "绑定GitHUb"
|
|
932
954
|
}, {
|
|
933
|
-
action:
|
|
955
|
+
action: n(() => [i(e(P), {
|
|
934
956
|
size: t.size,
|
|
935
957
|
type: "primary",
|
|
936
958
|
onClick: v[0] || (v[0] = (T) => l("bind"))
|
|
937
959
|
}, {
|
|
938
|
-
default:
|
|
960
|
+
default: n(() => [...v[2] || (v[2] = [_(" 绑定GitHUb ", -1)])]),
|
|
939
961
|
_: 1
|
|
940
962
|
}, 8, ["size"])]),
|
|
941
|
-
default:
|
|
963
|
+
default: n(() => [v[3] || (v[3] = _(" 请尚未绑定GitHub,请点击绑定GitHUb ", -1))]),
|
|
942
964
|
_: 1
|
|
943
|
-
})) : S("", !0), (U = e(
|
|
965
|
+
})) : S("", !0), (U = e(r)) != null && U.github && a.value === "hidden" ? (g(), k(e(D), {
|
|
944
966
|
key: 1,
|
|
945
967
|
title: "解绑GitHub"
|
|
946
968
|
}, {
|
|
947
|
-
action:
|
|
969
|
+
action: n(() => [i(e(P), {
|
|
948
970
|
size: t.size,
|
|
949
971
|
type: "primary",
|
|
950
972
|
onClick: v[1] || (v[1] = (T) => l("unbind"))
|
|
951
973
|
}, {
|
|
952
|
-
default:
|
|
974
|
+
default: n(() => [...v[4] || (v[4] = [_(" 解绑GitHUb ", -1)])]),
|
|
953
975
|
_: 1
|
|
954
976
|
}, 8, ["size"])]),
|
|
955
|
-
default:
|
|
956
|
-
var T, B,
|
|
957
|
-
return [z("span", null, R(`您绑定的账号为 ${(B = (T = e(
|
|
958
|
-
"image-url": (
|
|
977
|
+
default: n(() => {
|
|
978
|
+
var T, B, O;
|
|
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,
|
|
959
981
|
size: 42
|
|
960
982
|
}, null, 8, ["image-url"])];
|
|
961
983
|
}),
|
|
962
984
|
_: 1
|
|
963
|
-
})) : S("", !0),
|
|
985
|
+
})) : S("", !0), a.value === "bind" || a.value === "unbind" ? (g(), k(ae, {
|
|
964
986
|
key: 2,
|
|
965
987
|
size: t.size,
|
|
966
|
-
email: (
|
|
988
|
+
email: ($ = e(r)) == null ? void 0 : $.email,
|
|
967
989
|
onNext: p
|
|
968
990
|
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
969
991
|
};
|
|
970
992
|
}
|
|
971
|
-
}),
|
|
993
|
+
}), yt = {
|
|
972
994
|
class: "dependency-list"
|
|
973
|
-
},
|
|
995
|
+
}, ht = {
|
|
974
996
|
class: "label"
|
|
975
|
-
},
|
|
997
|
+
}, wt = {
|
|
976
998
|
class: "count"
|
|
977
|
-
},
|
|
999
|
+
}, _t = {
|
|
978
1000
|
class: "action-bar"
|
|
979
|
-
},
|
|
1001
|
+
}, bt = /* @__PURE__ */ I({
|
|
980
1002
|
__name: "AuthkitAccountDelete",
|
|
981
1003
|
props: {
|
|
982
1004
|
size: {
|
|
@@ -985,57 +1007,57 @@ const ct = /* @__PURE__ */ I({
|
|
|
985
1007
|
}
|
|
986
1008
|
},
|
|
987
1009
|
emits: ["deleted"],
|
|
988
|
-
setup(
|
|
989
|
-
emit:
|
|
1010
|
+
setup(s, {
|
|
1011
|
+
emit: r
|
|
990
1012
|
}) {
|
|
991
|
-
const u =
|
|
1013
|
+
const u = s, a = r, {
|
|
992
1014
|
userProfile: o,
|
|
993
|
-
clearUserProfile:
|
|
1015
|
+
clearUserProfile: d
|
|
994
1016
|
} = J(), {
|
|
995
1017
|
clearAuth: t
|
|
996
|
-
} = Q(), l =
|
|
1018
|
+
} = Q(), l = w("check"), y = w(!1), m = w([]), p = w(!1), c = w(""), f = w(0);
|
|
997
1019
|
let v = null;
|
|
998
|
-
const b =
|
|
999
|
-
var
|
|
1000
|
-
const L = ((
|
|
1020
|
+
const b = F(() => {
|
|
1021
|
+
var K;
|
|
1022
|
+
const L = ((K = o.value) == null ? void 0 : K.email) || "";
|
|
1001
1023
|
if (!L) return "";
|
|
1002
1024
|
const [h, x] = L.split("@");
|
|
1003
1025
|
return h.length <= 2 ? L : `${h.slice(0, 2)}***@${x}`;
|
|
1004
|
-
}), U =
|
|
1026
|
+
}), U = w(), $ = w({
|
|
1005
1027
|
userToken: "",
|
|
1006
1028
|
password: "",
|
|
1007
1029
|
confirmText: ""
|
|
1008
|
-
}), T =
|
|
1030
|
+
}), T = w(!1);
|
|
1009
1031
|
function B(L, h) {
|
|
1010
1032
|
L !== "注销" ? h('请输入"注销"以确认操作') : h();
|
|
1011
1033
|
}
|
|
1012
|
-
async function
|
|
1034
|
+
async function O() {
|
|
1013
1035
|
var L;
|
|
1014
1036
|
y.value = !0;
|
|
1015
1037
|
try {
|
|
1016
|
-
const h = await
|
|
1038
|
+
const h = await Be(), {
|
|
1017
1039
|
hasDependencies: x,
|
|
1018
|
-
dependencies:
|
|
1040
|
+
dependencies: K
|
|
1019
1041
|
} = h.data;
|
|
1020
1042
|
if (x)
|
|
1021
|
-
|
|
1043
|
+
m.value = K, l.value = "dependencies";
|
|
1022
1044
|
else {
|
|
1023
1045
|
if (!((L = o.value) != null && L.email)) {
|
|
1024
|
-
|
|
1046
|
+
N.error("账号未绑定邮箱,无法进行注销验证。请先绑定邮箱");
|
|
1025
1047
|
return;
|
|
1026
1048
|
}
|
|
1027
1049
|
l.value = "sendCode";
|
|
1028
1050
|
}
|
|
1029
1051
|
} catch (h) {
|
|
1030
|
-
console.error("检查依赖失败:", h),
|
|
1052
|
+
console.error("检查依赖失败:", h), N.error("检查失败,请稍后重试");
|
|
1031
1053
|
} finally {
|
|
1032
1054
|
y.value = !1;
|
|
1033
1055
|
}
|
|
1034
1056
|
}
|
|
1035
|
-
async function
|
|
1057
|
+
async function W() {
|
|
1036
1058
|
var L;
|
|
1037
1059
|
if (!((L = o.value) != null && L.email)) {
|
|
1038
|
-
|
|
1060
|
+
N.error("请先绑定邮箱");
|
|
1039
1061
|
return;
|
|
1040
1062
|
}
|
|
1041
1063
|
p.value = !0;
|
|
@@ -1043,29 +1065,29 @@ const ct = /* @__PURE__ */ I({
|
|
|
1043
1065
|
const h = await X({
|
|
1044
1066
|
email: o.value.email
|
|
1045
1067
|
});
|
|
1046
|
-
|
|
1068
|
+
c.value = h.data.emailVerifyId, N.success("验证码已发送"), l.value = "confirm", we();
|
|
1047
1069
|
} catch (h) {
|
|
1048
1070
|
console.error("发送验证码失败:", h);
|
|
1049
1071
|
} finally {
|
|
1050
1072
|
p.value = !1;
|
|
1051
1073
|
}
|
|
1052
1074
|
}
|
|
1053
|
-
function
|
|
1054
|
-
|
|
1055
|
-
|
|
1075
|
+
function we() {
|
|
1076
|
+
f.value = 60, v && clearInterval(v), v = setInterval(() => {
|
|
1077
|
+
f.value--, f.value <= 0 && v && (clearInterval(v), v = null);
|
|
1056
1078
|
}, 1e3);
|
|
1057
1079
|
}
|
|
1058
|
-
async function
|
|
1080
|
+
async function _e() {
|
|
1059
1081
|
var h;
|
|
1060
1082
|
if (!await ((h = U.value) == null ? void 0 : h.validate())) {
|
|
1061
1083
|
T.value = !0;
|
|
1062
1084
|
try {
|
|
1063
|
-
await
|
|
1064
|
-
password:
|
|
1065
|
-
userToken:
|
|
1066
|
-
emailVerifyId:
|
|
1067
|
-
confirmText:
|
|
1068
|
-
}), 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");
|
|
1069
1091
|
} catch (x) {
|
|
1070
1092
|
console.error("注销失败:", x);
|
|
1071
1093
|
} finally {
|
|
@@ -1073,85 +1095,85 @@ const ct = /* @__PURE__ */ I({
|
|
|
1073
1095
|
}
|
|
1074
1096
|
}
|
|
1075
1097
|
}
|
|
1076
|
-
function
|
|
1098
|
+
function be() {
|
|
1077
1099
|
window.location.href = "/";
|
|
1078
1100
|
}
|
|
1079
|
-
return (L, h) => l.value === "check" ? (g(), k(e(
|
|
1101
|
+
return (L, h) => l.value === "check" ? (g(), k(e(D), {
|
|
1080
1102
|
key: 0,
|
|
1081
1103
|
type: "warning",
|
|
1082
1104
|
title: "注销账号"
|
|
1083
1105
|
}, {
|
|
1084
|
-
action:
|
|
1106
|
+
action: n(() => [i(e(P), {
|
|
1085
1107
|
size: u.size,
|
|
1086
1108
|
type: "primary",
|
|
1087
1109
|
status: "danger",
|
|
1088
1110
|
loading: y.value,
|
|
1089
|
-
onClick:
|
|
1111
|
+
onClick: O
|
|
1090
1112
|
}, {
|
|
1091
|
-
default:
|
|
1113
|
+
default: n(() => [_(R(y.value ? "检查中..." : "开始注销"), 1)]),
|
|
1092
1114
|
_: 1
|
|
1093
1115
|
}, 8, ["size", "loading"])]),
|
|
1094
|
-
default:
|
|
1116
|
+
default: n(() => [h[6] || (h[6] = _(" 注销账号后,您的所有数据将被永久删除,无法恢复。请确认您已备份重要数据。 ", -1))]),
|
|
1095
1117
|
_: 1
|
|
1096
|
-
})) : l.value === "dependencies" ? (g(),
|
|
1118
|
+
})) : l.value === "dependencies" ? (g(), V(M, {
|
|
1097
1119
|
key: 1
|
|
1098
|
-
}, [i(e(
|
|
1120
|
+
}, [i(e(D), {
|
|
1099
1121
|
type: "error",
|
|
1100
1122
|
title: "无法注销账号"
|
|
1101
1123
|
}, {
|
|
1102
|
-
default:
|
|
1124
|
+
default: n(() => [...h[7] || (h[7] = [_(" 您的账号下还有以下资源,请先处理后再注销: ", -1)])]),
|
|
1103
1125
|
_: 1
|
|
1104
|
-
}), z("div",
|
|
1126
|
+
}), z("div", yt, [(g(!0), V(M, null, Ae(m.value, (x) => (g(), V("div", {
|
|
1105
1127
|
key: x.type,
|
|
1106
1128
|
class: "dependency-item"
|
|
1107
|
-
}, [z("span",
|
|
1129
|
+
}, [z("span", ht, R(x.label), 1), z("span", wt, R(x.count) + " 个", 1)]))), 128))]), z("div", _t, [i(e(P), {
|
|
1108
1130
|
size: u.size,
|
|
1109
1131
|
onClick: h[0] || (h[0] = (x) => l.value = "check")
|
|
1110
1132
|
}, {
|
|
1111
|
-
default:
|
|
1133
|
+
default: n(() => [...h[8] || (h[8] = [_("返回", -1)])]),
|
|
1112
1134
|
_: 1
|
|
1113
|
-
}, 8, ["size"])])], 64)) : l.value === "sendCode" ? (g(), k(e(
|
|
1135
|
+
}, 8, ["size"])])], 64)) : l.value === "sendCode" ? (g(), k(e(D), {
|
|
1114
1136
|
key: 2,
|
|
1115
1137
|
type: "normal",
|
|
1116
1138
|
title: "身份验证"
|
|
1117
1139
|
}, {
|
|
1118
|
-
action:
|
|
1119
|
-
default:
|
|
1140
|
+
action: n(() => [i(e(ee), null, {
|
|
1141
|
+
default: n(() => [i(e(P), {
|
|
1120
1142
|
size: u.size,
|
|
1121
1143
|
onClick: h[1] || (h[1] = (x) => l.value = "check")
|
|
1122
1144
|
}, {
|
|
1123
|
-
default:
|
|
1145
|
+
default: n(() => [...h[9] || (h[9] = [_("取消", -1)])]),
|
|
1124
1146
|
_: 1
|
|
1125
|
-
}, 8, ["size"]), i(e(
|
|
1147
|
+
}, 8, ["size"]), i(e(P), {
|
|
1126
1148
|
size: u.size,
|
|
1127
1149
|
type: "primary",
|
|
1128
1150
|
loading: p.value,
|
|
1129
|
-
onClick:
|
|
1151
|
+
onClick: W
|
|
1130
1152
|
}, {
|
|
1131
|
-
default:
|
|
1153
|
+
default: n(() => [_(R(p.value ? "发送中..." : "发送验证码"), 1)]),
|
|
1132
1154
|
_: 1
|
|
1133
1155
|
}, 8, ["size", "loading"])]),
|
|
1134
1156
|
_: 1
|
|
1135
1157
|
})]),
|
|
1136
|
-
default:
|
|
1158
|
+
default: n(() => [_(" 为确保账号安全,我们将向您的邮箱 " + R(b.value) + " 发送验证码 ", 1)]),
|
|
1137
1159
|
_: 1
|
|
1138
|
-
})) : l.value === "confirm" ? (g(),
|
|
1160
|
+
})) : l.value === "confirm" ? (g(), V(M, {
|
|
1139
1161
|
key: 3
|
|
1140
|
-
}, [i(e(
|
|
1162
|
+
}, [i(e(D), {
|
|
1141
1163
|
type: "warning",
|
|
1142
1164
|
title: "确认注销"
|
|
1143
1165
|
}, {
|
|
1144
|
-
default:
|
|
1166
|
+
default: n(() => [_(" 验证码已发送至 " + R(b.value) + ",此操作不可逆,请谨慎操作 ", 1)]),
|
|
1145
1167
|
_: 1
|
|
1146
|
-
}), i(e(
|
|
1168
|
+
}), i(e(G), {
|
|
1147
1169
|
ref_key: "formRef",
|
|
1148
1170
|
ref: U,
|
|
1149
|
-
model:
|
|
1171
|
+
model: $.value,
|
|
1150
1172
|
size: u.size,
|
|
1151
1173
|
class: "confirm-form",
|
|
1152
1174
|
layout: "vertical"
|
|
1153
1175
|
}, {
|
|
1154
|
-
default:
|
|
1176
|
+
default: n(() => [i(e(A), {
|
|
1155
1177
|
field: "userToken",
|
|
1156
1178
|
label: "邮箱验证码",
|
|
1157
1179
|
rules: [{
|
|
@@ -1159,22 +1181,22 @@ const ct = /* @__PURE__ */ I({
|
|
|
1159
1181
|
message: "请输入验证码"
|
|
1160
1182
|
}]
|
|
1161
1183
|
}, {
|
|
1162
|
-
default:
|
|
1163
|
-
default:
|
|
1164
|
-
modelValue:
|
|
1165
|
-
"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),
|
|
1166
1188
|
placeholder: "请输入6位验证码",
|
|
1167
1189
|
"max-length": 6,
|
|
1168
1190
|
"allow-clear": "",
|
|
1169
1191
|
style: {
|
|
1170
1192
|
width: "180px"
|
|
1171
1193
|
}
|
|
1172
|
-
}, null, 8, ["modelValue"]), i(e(
|
|
1173
|
-
disabled:
|
|
1194
|
+
}, null, 8, ["modelValue"]), i(e(P), {
|
|
1195
|
+
disabled: f.value > 0,
|
|
1174
1196
|
loading: p.value,
|
|
1175
|
-
onClick:
|
|
1197
|
+
onClick: W
|
|
1176
1198
|
}, {
|
|
1177
|
-
default:
|
|
1199
|
+
default: n(() => [_(R(f.value > 0 ? `${f.value}s 后重发` : "重新发送"), 1)]),
|
|
1178
1200
|
_: 1
|
|
1179
1201
|
}, 8, ["disabled", "loading"])]),
|
|
1180
1202
|
_: 1
|
|
@@ -1188,9 +1210,9 @@ const ct = /* @__PURE__ */ I({
|
|
|
1188
1210
|
message: "请输入密码"
|
|
1189
1211
|
}]
|
|
1190
1212
|
}, {
|
|
1191
|
-
default:
|
|
1192
|
-
modelValue:
|
|
1193
|
-
"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),
|
|
1194
1216
|
placeholder: "请输入您的登录密码",
|
|
1195
1217
|
"allow-clear": ""
|
|
1196
1218
|
}, null, 8, ["modelValue"])]),
|
|
@@ -1205,27 +1227,27 @@ const ct = /* @__PURE__ */ I({
|
|
|
1205
1227
|
validator: B
|
|
1206
1228
|
}]
|
|
1207
1229
|
}, {
|
|
1208
|
-
default:
|
|
1209
|
-
modelValue:
|
|
1210
|
-
"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),
|
|
1211
1233
|
placeholder: "注销",
|
|
1212
1234
|
"allow-clear": ""
|
|
1213
1235
|
}, null, 8, ["modelValue"])]),
|
|
1214
1236
|
_: 1
|
|
1215
1237
|
}, 8, ["rules"]), i(e(A), null, {
|
|
1216
|
-
default:
|
|
1217
|
-
default:
|
|
1238
|
+
default: n(() => [i(e(ee), null, {
|
|
1239
|
+
default: n(() => [i(e(P), {
|
|
1218
1240
|
onClick: h[5] || (h[5] = (x) => l.value = "check")
|
|
1219
1241
|
}, {
|
|
1220
|
-
default:
|
|
1242
|
+
default: n(() => [...h[10] || (h[10] = [_("取消", -1)])]),
|
|
1221
1243
|
_: 1
|
|
1222
|
-
}), i(e(
|
|
1244
|
+
}), i(e(P), {
|
|
1223
1245
|
type: "primary",
|
|
1224
1246
|
status: "danger",
|
|
1225
1247
|
loading: T.value,
|
|
1226
|
-
onClick:
|
|
1248
|
+
onClick: _e
|
|
1227
1249
|
}, {
|
|
1228
|
-
default:
|
|
1250
|
+
default: n(() => [_(R(T.value ? "注销中..." : "确认注销"), 1)]),
|
|
1229
1251
|
_: 1
|
|
1230
1252
|
}, 8, ["loading"])]),
|
|
1231
1253
|
_: 1
|
|
@@ -1233,43 +1255,43 @@ const ct = /* @__PURE__ */ I({
|
|
|
1233
1255
|
_: 1
|
|
1234
1256
|
})]),
|
|
1235
1257
|
_: 1
|
|
1236
|
-
}, 8, ["model", "size"])], 64)) : l.value === "success" ? (g(), k(e(
|
|
1258
|
+
}, 8, ["model", "size"])], 64)) : l.value === "success" ? (g(), k(e(Ue), {
|
|
1237
1259
|
key: 4,
|
|
1238
1260
|
status: "success",
|
|
1239
1261
|
title: "账号已注销"
|
|
1240
1262
|
}, {
|
|
1241
|
-
subtitle:
|
|
1242
|
-
extra:
|
|
1263
|
+
subtitle: n(() => [...h[11] || (h[11] = [_(" 您的账号已成功注销,感谢您的使用 ", -1)])]),
|
|
1264
|
+
extra: n(() => [i(e(P), {
|
|
1243
1265
|
type: "primary",
|
|
1244
|
-
onClick:
|
|
1266
|
+
onClick: be
|
|
1245
1267
|
}, {
|
|
1246
|
-
default:
|
|
1268
|
+
default: n(() => [...h[12] || (h[12] = [_("返回首页", -1)])]),
|
|
1247
1269
|
_: 1
|
|
1248
1270
|
})]),
|
|
1249
1271
|
_: 1
|
|
1250
1272
|
})) : S("", !0);
|
|
1251
1273
|
}
|
|
1252
|
-
}),
|
|
1274
|
+
}), kt = /* @__PURE__ */ C(bt, [["__scopeId", "data-v-15e302c7"]]), zt = {
|
|
1253
1275
|
class: "content"
|
|
1254
|
-
},
|
|
1276
|
+
}, St = {
|
|
1255
1277
|
class: "left"
|
|
1256
|
-
},
|
|
1278
|
+
}, At = {
|
|
1257
1279
|
class: "right"
|
|
1258
|
-
},
|
|
1280
|
+
}, It = /* @__PURE__ */ I({
|
|
1259
1281
|
__name: "AuthkitAppSetting",
|
|
1260
1282
|
emits: ["confirm", "cancel"],
|
|
1261
|
-
setup(
|
|
1262
|
-
expose:
|
|
1283
|
+
setup(s, {
|
|
1284
|
+
expose: r,
|
|
1263
1285
|
emit: u
|
|
1264
1286
|
}) {
|
|
1265
|
-
const
|
|
1287
|
+
const a = u;
|
|
1266
1288
|
function o() {
|
|
1267
|
-
|
|
1289
|
+
a("cancel");
|
|
1268
1290
|
}
|
|
1269
|
-
function
|
|
1270
|
-
|
|
1291
|
+
function d() {
|
|
1292
|
+
c.value = !1, a("cancel");
|
|
1271
1293
|
}
|
|
1272
|
-
const t =
|
|
1294
|
+
const t = w("large"), l = w(["PersonalInformation"]), y = w([{
|
|
1273
1295
|
name: "个人信息",
|
|
1274
1296
|
path: "PersonalInformation",
|
|
1275
1297
|
meta: {
|
|
@@ -1322,22 +1344,22 @@ const ct = /* @__PURE__ */ I({
|
|
|
1322
1344
|
// },
|
|
1323
1345
|
]
|
|
1324
1346
|
}]);
|
|
1325
|
-
function
|
|
1347
|
+
function m(v, b) {
|
|
1326
1348
|
const U = v.path;
|
|
1327
1349
|
console.log(U, b, "lokokoko"), l.value = [U];
|
|
1328
1350
|
}
|
|
1329
1351
|
const {
|
|
1330
1352
|
changeType: p,
|
|
1331
|
-
show:
|
|
1332
|
-
} =
|
|
1333
|
-
function
|
|
1334
|
-
console.log(v),
|
|
1353
|
+
show: c
|
|
1354
|
+
} = Ge(a);
|
|
1355
|
+
function f(v, b) {
|
|
1356
|
+
console.log(v), c.value = b, p.value = "编辑";
|
|
1335
1357
|
}
|
|
1336
|
-
return
|
|
1337
|
-
setData:
|
|
1358
|
+
return r({
|
|
1359
|
+
setData: f
|
|
1338
1360
|
}), (v, b) => (g(), k(e(me), {
|
|
1339
|
-
visible: e(
|
|
1340
|
-
"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),
|
|
1341
1363
|
"unmount-on-close": "",
|
|
1342
1364
|
"body-class": "AppSettingbodyClass",
|
|
1343
1365
|
"mask-closable": !1,
|
|
@@ -1345,57 +1367,91 @@ const ct = /* @__PURE__ */ I({
|
|
|
1345
1367
|
width: "700px",
|
|
1346
1368
|
onCancel: o
|
|
1347
1369
|
}, {
|
|
1348
|
-
title:
|
|
1349
|
-
default:
|
|
1370
|
+
title: n(() => [...b[2] || (b[2] = [_(" 系统设置 ", -1)])]),
|
|
1371
|
+
default: n(() => [z("div", zt, [z("div", St, [i(Fe, {
|
|
1350
1372
|
"selected-keys": l.value,
|
|
1351
1373
|
"onUpdate:selectedKeys": b[0] || (b[0] = (U) => l.value = U),
|
|
1352
1374
|
menus: y.value,
|
|
1353
|
-
onChange:
|
|
1354
|
-
}, 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, {
|
|
1355
1377
|
key: 0,
|
|
1356
1378
|
size: t.value
|
|
1357
|
-
}, null, 8, ["size"])) : S("", !0), l.value[0] === "EmailBinding" ? (g(), k(
|
|
1379
|
+
}, null, 8, ["size"])) : S("", !0), l.value[0] === "EmailBinding" ? (g(), k(ft, {
|
|
1358
1380
|
key: 1,
|
|
1359
1381
|
size: t.value
|
|
1360
|
-
}, null, 8, ["size"])) : S("", !0), l.value[0] === "SetPassword" ? (g(), k(
|
|
1382
|
+
}, null, 8, ["size"])) : S("", !0), l.value[0] === "SetPassword" ? (g(), k(ot, {
|
|
1361
1383
|
key: 2,
|
|
1362
1384
|
size: t.value
|
|
1363
|
-
}, null, 8, ["size"])) : S("", !0), l.value[0] === "GithubBinding" ? (g(), k(
|
|
1385
|
+
}, null, 8, ["size"])) : S("", !0), l.value[0] === "GithubBinding" ? (g(), k(gt, {
|
|
1364
1386
|
key: 3,
|
|
1365
1387
|
size: t.value
|
|
1366
|
-
}, null, 8, ["size"])) : S("", !0), l.value[0] === "AccountDelete" ? (g(), k(
|
|
1388
|
+
}, null, 8, ["size"])) : S("", !0), l.value[0] === "AccountDelete" ? (g(), k(kt, {
|
|
1367
1389
|
key: 4,
|
|
1368
1390
|
size: t.value,
|
|
1369
|
-
onDeleted:
|
|
1391
|
+
onDeleted: d
|
|
1370
1392
|
}, null, 8, ["size"])) : S("", !0)])])]),
|
|
1371
1393
|
_: 1
|
|
1372
1394
|
}, 8, ["visible"]));
|
|
1373
1395
|
}
|
|
1374
|
-
}),
|
|
1375
|
-
function
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
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 未配置`);
|
|
1408
|
+
return;
|
|
1409
|
+
}
|
|
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 {
|
|
1379
1422
|
const {
|
|
1380
|
-
|
|
1381
|
-
} =
|
|
1382
|
-
|
|
1383
|
-
}
|
|
1384
|
-
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
|
|
1385
1433
|
});
|
|
1386
1434
|
}
|
|
1387
|
-
function
|
|
1435
|
+
function Ut(s) {
|
|
1436
|
+
Y("google", {
|
|
1437
|
+
referrerId: s
|
|
1438
|
+
});
|
|
1388
1439
|
}
|
|
1389
|
-
function
|
|
1440
|
+
function $t(s) {
|
|
1441
|
+
Y("microsoft", {
|
|
1442
|
+
referrerId: s
|
|
1443
|
+
});
|
|
1390
1444
|
}
|
|
1391
|
-
function
|
|
1445
|
+
function Ct() {
|
|
1392
1446
|
return {
|
|
1393
|
-
githubAuth:
|
|
1394
|
-
googleAuth:
|
|
1395
|
-
microsoftAuth:
|
|
1447
|
+
githubAuth: Vt,
|
|
1448
|
+
googleAuth: Ut,
|
|
1449
|
+
microsoftAuth: $t,
|
|
1450
|
+
startOAuth: Y,
|
|
1451
|
+
getOAuthCallbackUrl: ge
|
|
1396
1452
|
};
|
|
1397
1453
|
}
|
|
1398
|
-
const
|
|
1454
|
+
const ie = /* @__PURE__ */ I({
|
|
1399
1455
|
__name: "AuthkitOAuthItem",
|
|
1400
1456
|
props: {
|
|
1401
1457
|
size: {
|
|
@@ -1414,27 +1470,27 @@ const te = /* @__PURE__ */ I({
|
|
|
1414
1470
|
}
|
|
1415
1471
|
},
|
|
1416
1472
|
emits: [],
|
|
1417
|
-
setup(
|
|
1418
|
-
emit:
|
|
1473
|
+
setup(s, {
|
|
1474
|
+
emit: r
|
|
1419
1475
|
}) {
|
|
1420
|
-
const u =
|
|
1421
|
-
return (
|
|
1476
|
+
const u = s;
|
|
1477
|
+
return (a, o) => (g(), k(e(P), {
|
|
1422
1478
|
class: "OAuthItem",
|
|
1423
1479
|
type: "primary",
|
|
1424
1480
|
size: u.size
|
|
1425
1481
|
}, {
|
|
1426
|
-
icon:
|
|
1482
|
+
icon: n(() => [i(e(Me), {
|
|
1427
1483
|
icon: u.icon
|
|
1428
1484
|
}, null, 8, ["icon"])]),
|
|
1429
|
-
default:
|
|
1485
|
+
default: n(() => [z("span", null, R(u.label), 1)]),
|
|
1430
1486
|
_: 1
|
|
1431
1487
|
}, 8, ["size"]));
|
|
1432
1488
|
}
|
|
1433
|
-
}),
|
|
1489
|
+
}), xt = {
|
|
1434
1490
|
class: "OAuthList"
|
|
1435
|
-
},
|
|
1491
|
+
}, qt = {
|
|
1436
1492
|
class: "OAuthList"
|
|
1437
|
-
},
|
|
1493
|
+
}, Tt = /* @__PURE__ */ I({
|
|
1438
1494
|
__name: "AuthkitOAuthList",
|
|
1439
1495
|
props: {
|
|
1440
1496
|
size: {
|
|
@@ -1446,47 +1502,47 @@ const te = /* @__PURE__ */ I({
|
|
|
1446
1502
|
default: () => ""
|
|
1447
1503
|
}
|
|
1448
1504
|
},
|
|
1449
|
-
setup(
|
|
1505
|
+
setup(s) {
|
|
1450
1506
|
const {
|
|
1451
|
-
appsData:
|
|
1452
|
-
} =
|
|
1453
|
-
githubAuth:
|
|
1507
|
+
appsData: r
|
|
1508
|
+
} = se(), u = s, {
|
|
1509
|
+
githubAuth: a,
|
|
1454
1510
|
googleAuth: o,
|
|
1455
|
-
microsoftAuth:
|
|
1456
|
-
} =
|
|
1457
|
-
return (l, y) => (g(),
|
|
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), {
|
|
1458
1514
|
key: 0,
|
|
1459
1515
|
orientation: "center"
|
|
1460
1516
|
}, {
|
|
1461
|
-
default:
|
|
1517
|
+
default: n(() => [...y[3] || (y[3] = [_("OAuth登陆", -1)])]),
|
|
1462
1518
|
_: 1
|
|
1463
|
-
})) : S("", !0), z("div",
|
|
1519
|
+
})) : S("", !0), z("div", qt, [e(r).oauth.github.enabled ? (g(), k(ie, {
|
|
1464
1520
|
key: 0,
|
|
1465
1521
|
icon: "mdi:github",
|
|
1466
1522
|
label: "Github",
|
|
1467
1523
|
size: u.size,
|
|
1468
|
-
onClick: e(
|
|
1469
|
-
}, null, 8, ["size"
|
|
1524
|
+
onClick: y[0] || (y[0] = (m) => e(a)())
|
|
1525
|
+
}, null, 8, ["size"])) : S("", !0), e(r).oauth.google.enabled ? (g(), k(ie, {
|
|
1470
1526
|
key: 1,
|
|
1471
1527
|
icon: "mdi:google",
|
|
1472
1528
|
label: "Google",
|
|
1473
1529
|
size: u.size,
|
|
1474
|
-
onClick: e(o)
|
|
1475
|
-
}, null, 8, ["size"
|
|
1530
|
+
onClick: y[1] || (y[1] = (m) => e(o)())
|
|
1531
|
+
}, null, 8, ["size"])) : S("", !0), e(r).oauth.microsoft.enabled ? (g(), k(ie, {
|
|
1476
1532
|
key: 2,
|
|
1477
1533
|
icon: "mdi:microsoft",
|
|
1478
1534
|
label: "Microsoft",
|
|
1479
1535
|
size: u.size,
|
|
1480
|
-
onClick:
|
|
1481
|
-
}, null, 8, ["size"
|
|
1536
|
+
onClick: y[2] || (y[2] = (m) => e(d)())
|
|
1537
|
+
}, null, 8, ["size"])) : S("", !0)])]));
|
|
1482
1538
|
}
|
|
1483
|
-
}),
|
|
1539
|
+
}), Rt = /* @__PURE__ */ C(Tt, [["__scopeId", "data-v-2da85b1f"]]), Lt = {
|
|
1484
1540
|
class: "content"
|
|
1485
|
-
},
|
|
1541
|
+
}, Bt = {
|
|
1486
1542
|
class: "sendVerifyCodeItem"
|
|
1487
|
-
},
|
|
1543
|
+
}, Ot = {
|
|
1488
1544
|
class: "handle"
|
|
1489
|
-
},
|
|
1545
|
+
}, Et = /* @__PURE__ */ I({
|
|
1490
1546
|
__name: "AuthkitPasswordUpdateAndVerify",
|
|
1491
1547
|
props: {
|
|
1492
1548
|
size: {
|
|
@@ -1500,10 +1556,10 @@ const te = /* @__PURE__ */ I({
|
|
|
1500
1556
|
}
|
|
1501
1557
|
},
|
|
1502
1558
|
emits: ["signIn", "submit"],
|
|
1503
|
-
setup(
|
|
1504
|
-
emit:
|
|
1559
|
+
setup(s, {
|
|
1560
|
+
emit: r
|
|
1505
1561
|
}) {
|
|
1506
|
-
const u =
|
|
1562
|
+
const u = r, a = s, o = w(), d = w(!1), t = w(), l = w({
|
|
1507
1563
|
email: void 0,
|
|
1508
1564
|
userToken: void 0,
|
|
1509
1565
|
emailVerifyId: void 0,
|
|
@@ -1512,30 +1568,30 @@ const te = /* @__PURE__ */ I({
|
|
|
1512
1568
|
});
|
|
1513
1569
|
async function y() {
|
|
1514
1570
|
t.value.validateField(["email"]).then((p) => {
|
|
1515
|
-
p || (
|
|
1571
|
+
p || (d.value = !0, X({
|
|
1516
1572
|
email: l.value.email
|
|
1517
1573
|
}).then(({
|
|
1518
|
-
data:
|
|
1574
|
+
data: c
|
|
1519
1575
|
}) => {
|
|
1520
|
-
|
|
1576
|
+
d.value = !1, l.value.emailVerifyId = c.emailVerifyId, o.value.startCountFn();
|
|
1521
1577
|
}).catch(() => {
|
|
1522
|
-
|
|
1578
|
+
d.value = !1;
|
|
1523
1579
|
}));
|
|
1524
1580
|
});
|
|
1525
1581
|
}
|
|
1526
|
-
async function
|
|
1582
|
+
async function m() {
|
|
1527
1583
|
t.value.validate().then((p) => {
|
|
1528
1584
|
p || u("submit", l.value);
|
|
1529
1585
|
});
|
|
1530
1586
|
}
|
|
1531
|
-
return (p,
|
|
1587
|
+
return (p, c) => (g(), V("div", Lt, [i(e(G), {
|
|
1532
1588
|
ref_key: "formRef",
|
|
1533
1589
|
ref: t,
|
|
1534
1590
|
model: l.value,
|
|
1535
|
-
size:
|
|
1591
|
+
size: a.size,
|
|
1536
1592
|
"auto-label-width": ""
|
|
1537
1593
|
}, {
|
|
1538
|
-
default:
|
|
1594
|
+
default: n(() => [i(e(A), {
|
|
1539
1595
|
field: "email",
|
|
1540
1596
|
label: "邮箱",
|
|
1541
1597
|
"hide-label": "",
|
|
@@ -1547,9 +1603,9 @@ const te = /* @__PURE__ */ I({
|
|
|
1547
1603
|
message: "请输入有效的邮箱"
|
|
1548
1604
|
}]
|
|
1549
1605
|
}, {
|
|
1550
|
-
default:
|
|
1606
|
+
default: n(() => [i(e(q), {
|
|
1551
1607
|
modelValue: l.value.email,
|
|
1552
|
-
"onUpdate:modelValue":
|
|
1608
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => l.value.email = f),
|
|
1553
1609
|
placeholder: "请输入邮箱"
|
|
1554
1610
|
}, null, 8, ["modelValue"])]),
|
|
1555
1611
|
_: 1
|
|
@@ -1562,15 +1618,15 @@ const te = /* @__PURE__ */ I({
|
|
|
1562
1618
|
message: "请输入验证码"
|
|
1563
1619
|
}]
|
|
1564
1620
|
}, {
|
|
1565
|
-
default:
|
|
1621
|
+
default: n(() => [z("div", Bt, [i(e(q), {
|
|
1566
1622
|
modelValue: l.value.userToken,
|
|
1567
|
-
"onUpdate:modelValue":
|
|
1623
|
+
"onUpdate:modelValue": c[1] || (c[1] = (f) => l.value.userToken = f),
|
|
1568
1624
|
placeholder: "请输入验证码"
|
|
1569
|
-
}, null, 8, ["modelValue"]), i(
|
|
1625
|
+
}, null, 8, ["modelValue"]), i(ne, {
|
|
1570
1626
|
ref_key: "SendVerifyCodeRef",
|
|
1571
1627
|
ref: o,
|
|
1572
|
-
size:
|
|
1573
|
-
loading:
|
|
1628
|
+
size: a.size,
|
|
1629
|
+
loading: d.value,
|
|
1574
1630
|
style: {
|
|
1575
1631
|
"margin-left": "10px"
|
|
1576
1632
|
},
|
|
@@ -1589,9 +1645,9 @@ const te = /* @__PURE__ */ I({
|
|
|
1589
1645
|
message: "密码不能少于10字符"
|
|
1590
1646
|
}]
|
|
1591
1647
|
}, {
|
|
1592
|
-
default:
|
|
1648
|
+
default: n(() => [i(e(q), {
|
|
1593
1649
|
modelValue: l.value.password,
|
|
1594
|
-
"onUpdate:modelValue":
|
|
1650
|
+
"onUpdate:modelValue": c[2] || (c[2] = (f) => l.value.password = f),
|
|
1595
1651
|
placeholder: "请输入密码",
|
|
1596
1652
|
type: "password",
|
|
1597
1653
|
autocomplete: ""
|
|
@@ -1608,57 +1664,57 @@ const te = /* @__PURE__ */ I({
|
|
|
1608
1664
|
minLength: 10,
|
|
1609
1665
|
message: "确认密码不能少于10字符"
|
|
1610
1666
|
}, {
|
|
1611
|
-
validator: (
|
|
1612
|
-
|
|
1667
|
+
validator: (f, v) => {
|
|
1668
|
+
f !== l.value.password ? v("两次密码输入不一致,请重新输入") : v();
|
|
1613
1669
|
}
|
|
1614
1670
|
}]
|
|
1615
1671
|
}, {
|
|
1616
|
-
default:
|
|
1672
|
+
default: n(() => [i(e(q), {
|
|
1617
1673
|
modelValue: l.value.confirmPassword,
|
|
1618
|
-
"onUpdate:modelValue":
|
|
1674
|
+
"onUpdate:modelValue": c[3] || (c[3] = (f) => l.value.confirmPassword = f),
|
|
1619
1675
|
placeholder: "请输入确认密码密码",
|
|
1620
1676
|
type: "password",
|
|
1621
1677
|
autocomplete: ""
|
|
1622
1678
|
}, null, 8, ["modelValue"])]),
|
|
1623
1679
|
_: 1
|
|
1624
|
-
}, 8, ["rules"]), z("div",
|
|
1680
|
+
}, 8, ["rules"]), z("div", Ot, [i(e(P), {
|
|
1625
1681
|
type: "primary",
|
|
1626
|
-
loading:
|
|
1682
|
+
loading: a.loading,
|
|
1627
1683
|
long: "",
|
|
1628
|
-
size:
|
|
1629
|
-
onClick:
|
|
1684
|
+
size: a.size,
|
|
1685
|
+
onClick: m
|
|
1630
1686
|
}, {
|
|
1631
|
-
default:
|
|
1687
|
+
default: n(() => [...c[4] || (c[4] = [_(" 提交 ", -1)])]),
|
|
1632
1688
|
_: 1
|
|
1633
1689
|
}, 8, ["loading", "size"])])]),
|
|
1634
1690
|
_: 1
|
|
1635
1691
|
}, 8, ["model", "size"])]));
|
|
1636
1692
|
}
|
|
1637
|
-
}),
|
|
1693
|
+
}), Dt = /* @__PURE__ */ C(Et, [["__scopeId", "data-v-1c83f44a"]]), Nt = {
|
|
1638
1694
|
class: "SwitchSignIn"
|
|
1639
|
-
},
|
|
1695
|
+
}, Ft = /* @__PURE__ */ I({
|
|
1640
1696
|
__name: "AuthkitSwitchSignIn",
|
|
1641
1697
|
emits: ["switchSignIn"],
|
|
1642
|
-
setup(
|
|
1643
|
-
emit:
|
|
1698
|
+
setup(s, {
|
|
1699
|
+
emit: r
|
|
1644
1700
|
}) {
|
|
1645
|
-
const u =
|
|
1646
|
-
function
|
|
1701
|
+
const u = r;
|
|
1702
|
+
function a() {
|
|
1647
1703
|
u("switchSignIn");
|
|
1648
1704
|
}
|
|
1649
|
-
return (o,
|
|
1705
|
+
return (o, d) => (g(), V("div", Nt, [z("span", null, [d[1] || (d[1] = z("span", null, "已经有账号?", -1)), i(e(j), {
|
|
1650
1706
|
style: {
|
|
1651
1707
|
padding: "0px"
|
|
1652
1708
|
},
|
|
1653
|
-
onClick:
|
|
1709
|
+
onClick: a
|
|
1654
1710
|
}, {
|
|
1655
|
-
default:
|
|
1711
|
+
default: n(() => [...d[0] || (d[0] = [_("去登陆", -1)])]),
|
|
1656
1712
|
_: 1
|
|
1657
1713
|
})])]));
|
|
1658
1714
|
}
|
|
1659
|
-
}),
|
|
1715
|
+
}), ye = /* @__PURE__ */ C(Ft, [["__scopeId", "data-v-fc1d3903"]]), Gt = {
|
|
1660
1716
|
class: "ResetPassword"
|
|
1661
|
-
},
|
|
1717
|
+
}, Mt = /* @__PURE__ */ I({
|
|
1662
1718
|
__name: "AuthkitResetPassword",
|
|
1663
1719
|
props: {
|
|
1664
1720
|
size: {
|
|
@@ -1673,56 +1729,56 @@ const te = /* @__PURE__ */ I({
|
|
|
1673
1729
|
}
|
|
1674
1730
|
},
|
|
1675
1731
|
emits: ["switchSignIn", "submit"],
|
|
1676
|
-
setup(
|
|
1677
|
-
emit:
|
|
1732
|
+
setup(s, {
|
|
1733
|
+
emit: r
|
|
1678
1734
|
}) {
|
|
1679
|
-
const u =
|
|
1735
|
+
const u = r, a = s;
|
|
1680
1736
|
function o() {
|
|
1681
1737
|
u("switchSignIn");
|
|
1682
1738
|
}
|
|
1683
|
-
async function
|
|
1739
|
+
async function d(t) {
|
|
1684
1740
|
u("submit", t);
|
|
1685
1741
|
}
|
|
1686
|
-
return (t, l) => (g(),
|
|
1687
|
-
loading:
|
|
1688
|
-
size:
|
|
1689
|
-
onSubmit:
|
|
1690
|
-
}, null, 8, ["loading", "size"]), i(
|
|
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, {
|
|
1691
1747
|
onSwitchSignIn: o
|
|
1692
1748
|
})]));
|
|
1693
1749
|
}
|
|
1694
|
-
}),
|
|
1750
|
+
}), Ht = /* @__PURE__ */ C(Mt, [["__scopeId", "data-v-0622cbe3"]]), jt = {
|
|
1695
1751
|
class: "ServiceAgreementAndPrivacyProtection"
|
|
1696
|
-
},
|
|
1752
|
+
}, Wt = /* @__PURE__ */ I({
|
|
1697
1753
|
__name: "AuthkitServiceAgreementAndPrivacyProtection",
|
|
1698
1754
|
emits: ["toUserServiceAgreement", "toPrivacyPolicy"],
|
|
1699
|
-
setup(
|
|
1700
|
-
emit:
|
|
1755
|
+
setup(s, {
|
|
1756
|
+
emit: r
|
|
1701
1757
|
}) {
|
|
1702
|
-
const u =
|
|
1703
|
-
function
|
|
1758
|
+
const u = r;
|
|
1759
|
+
function a() {
|
|
1704
1760
|
u("toUserServiceAgreement");
|
|
1705
1761
|
}
|
|
1706
1762
|
function o() {
|
|
1707
1763
|
u("toPrivacyPolicy");
|
|
1708
1764
|
}
|
|
1709
|
-
return (
|
|
1710
|
-
onClick:
|
|
1765
|
+
return (d, t) => (g(), V("div", jt, [t[2] || (t[2] = z("span", null, " 注册登陆即表示同意", -1)), i(e(j), {
|
|
1766
|
+
onClick: a
|
|
1711
1767
|
}, {
|
|
1712
|
-
default:
|
|
1768
|
+
default: n(() => [...t[0] || (t[0] = [_("用户服务协议", -1)])]),
|
|
1713
1769
|
_: 1
|
|
1714
|
-
}), t[3] || (t[3] = z("span", null, " 和 ", -1)), i(e(
|
|
1770
|
+
}), t[3] || (t[3] = z("span", null, " 和 ", -1)), i(e(j), {
|
|
1715
1771
|
onClick: o
|
|
1716
1772
|
}, {
|
|
1717
|
-
default:
|
|
1773
|
+
default: n(() => [...t[1] || (t[1] = [_("隐私协议", -1)])]),
|
|
1718
1774
|
_: 1
|
|
1719
1775
|
})]));
|
|
1720
1776
|
}
|
|
1721
|
-
}),
|
|
1777
|
+
}), Kt = /* @__PURE__ */ C(Wt, [["__scopeId", "data-v-18e831ec"]]), Zt = {
|
|
1722
1778
|
class: "content"
|
|
1723
|
-
},
|
|
1779
|
+
}, Jt = {
|
|
1724
1780
|
class: "handle"
|
|
1725
|
-
},
|
|
1781
|
+
}, Qt = /* @__PURE__ */ I({
|
|
1726
1782
|
__name: "AuthkitPasswordAuth",
|
|
1727
1783
|
props: {
|
|
1728
1784
|
size: {
|
|
@@ -1736,38 +1792,38 @@ const te = /* @__PURE__ */ I({
|
|
|
1736
1792
|
}
|
|
1737
1793
|
},
|
|
1738
1794
|
emits: ["submit"],
|
|
1739
|
-
setup(
|
|
1740
|
-
emit:
|
|
1795
|
+
setup(s, {
|
|
1796
|
+
emit: r
|
|
1741
1797
|
}) {
|
|
1742
|
-
const u =
|
|
1743
|
-
async function o(y,
|
|
1744
|
-
const p = await
|
|
1798
|
+
const u = r, a = s;
|
|
1799
|
+
async function o(y, m) {
|
|
1800
|
+
const p = await Ye({
|
|
1745
1801
|
password: y
|
|
1746
1802
|
});
|
|
1747
|
-
p ||
|
|
1803
|
+
p || m("密码验证请求出错!");
|
|
1748
1804
|
const {
|
|
1749
|
-
isValidate:
|
|
1750
|
-
message:
|
|
1805
|
+
isValidate: c,
|
|
1806
|
+
message: f
|
|
1751
1807
|
} = p.data;
|
|
1752
|
-
|
|
1808
|
+
c || m(f), m();
|
|
1753
1809
|
}
|
|
1754
|
-
const
|
|
1810
|
+
const d = w(), t = w({
|
|
1755
1811
|
email: void 0,
|
|
1756
1812
|
password: void 0
|
|
1757
1813
|
});
|
|
1758
1814
|
async function l() {
|
|
1759
|
-
|
|
1815
|
+
d.value.validate().then((y) => {
|
|
1760
1816
|
y || u("submit", t.value);
|
|
1761
1817
|
});
|
|
1762
1818
|
}
|
|
1763
|
-
return (y,
|
|
1819
|
+
return (y, m) => (g(), V("div", Zt, [i(e(G), {
|
|
1764
1820
|
ref_key: "formRef",
|
|
1765
|
-
ref:
|
|
1821
|
+
ref: d,
|
|
1766
1822
|
model: t.value,
|
|
1767
|
-
size:
|
|
1823
|
+
size: a.size,
|
|
1768
1824
|
"auto-label-width": ""
|
|
1769
1825
|
}, {
|
|
1770
|
-
default:
|
|
1826
|
+
default: n(() => [i(e(A), {
|
|
1771
1827
|
field: "email",
|
|
1772
1828
|
label: "邮箱",
|
|
1773
1829
|
"hide-label": "",
|
|
@@ -1779,9 +1835,9 @@ const te = /* @__PURE__ */ I({
|
|
|
1779
1835
|
message: "请输入有效的邮箱"
|
|
1780
1836
|
}]
|
|
1781
1837
|
}, {
|
|
1782
|
-
default:
|
|
1838
|
+
default: n(() => [i(e(q), {
|
|
1783
1839
|
modelValue: t.value.email,
|
|
1784
|
-
"onUpdate:modelValue":
|
|
1840
|
+
"onUpdate:modelValue": m[0] || (m[0] = (p) => t.value.email = p),
|
|
1785
1841
|
placeholder: "请输入邮箱",
|
|
1786
1842
|
autocomplete: "email username",
|
|
1787
1843
|
type: "email"
|
|
@@ -1798,63 +1854,63 @@ const te = /* @__PURE__ */ I({
|
|
|
1798
1854
|
validator: o
|
|
1799
1855
|
}]
|
|
1800
1856
|
}, {
|
|
1801
|
-
default:
|
|
1857
|
+
default: n(() => [i(e(q), {
|
|
1802
1858
|
modelValue: t.value.password,
|
|
1803
|
-
"onUpdate:modelValue":
|
|
1859
|
+
"onUpdate:modelValue": m[1] || (m[1] = (p) => t.value.password = p),
|
|
1804
1860
|
placeholder: "请输入密码",
|
|
1805
1861
|
type: "password",
|
|
1806
1862
|
autocomplete: "current-password"
|
|
1807
1863
|
}, null, 8, ["modelValue"])]),
|
|
1808
1864
|
_: 1
|
|
1809
|
-
}, 8, ["rules"]), z("div",
|
|
1865
|
+
}, 8, ["rules"]), z("div", Jt, [i(e(P), {
|
|
1810
1866
|
type: "primary",
|
|
1811
|
-
loading:
|
|
1867
|
+
loading: a.loading,
|
|
1812
1868
|
long: "",
|
|
1813
|
-
size:
|
|
1869
|
+
size: a.size,
|
|
1814
1870
|
onClick: l
|
|
1815
1871
|
}, {
|
|
1816
|
-
default:
|
|
1872
|
+
default: n(() => [...m[2] || (m[2] = [_(" 登陆 ", -1)])]),
|
|
1817
1873
|
_: 1
|
|
1818
1874
|
}, 8, ["loading", "size"])])]),
|
|
1819
1875
|
_: 1
|
|
1820
1876
|
}, 8, ["model", "size"])]));
|
|
1821
1877
|
}
|
|
1822
|
-
}),
|
|
1878
|
+
}), Xt = /* @__PURE__ */ C(Qt, [["__scopeId", "data-v-76d6bc26"]]), Yt = {
|
|
1823
1879
|
class: "SwitchSignUpOrResetPassword"
|
|
1824
|
-
},
|
|
1880
|
+
}, ei = /* @__PURE__ */ I({
|
|
1825
1881
|
__name: "AuthkitSwitchSignUpOrResetPassword",
|
|
1826
1882
|
emits: ["switchSignUp", "switchResetPassword"],
|
|
1827
|
-
setup(
|
|
1828
|
-
emit:
|
|
1883
|
+
setup(s, {
|
|
1884
|
+
emit: r
|
|
1829
1885
|
}) {
|
|
1830
|
-
const u =
|
|
1831
|
-
function
|
|
1886
|
+
const u = r;
|
|
1887
|
+
function a() {
|
|
1832
1888
|
u("switchSignUp");
|
|
1833
1889
|
}
|
|
1834
1890
|
function o() {
|
|
1835
1891
|
u("switchResetPassword");
|
|
1836
1892
|
}
|
|
1837
|
-
return (
|
|
1893
|
+
return (d, t) => (g(), V("div", Yt, [z("span", null, [t[1] || (t[1] = z("span", null, " 还没有账户?", -1)), i(e(j), {
|
|
1838
1894
|
style: {
|
|
1839
1895
|
padding: "0px"
|
|
1840
1896
|
},
|
|
1841
|
-
onClick:
|
|
1897
|
+
onClick: a
|
|
1842
1898
|
}, {
|
|
1843
|
-
default:
|
|
1899
|
+
default: n(() => [...t[0] || (t[0] = [_("去注册?", -1)])]),
|
|
1844
1900
|
_: 1
|
|
1845
|
-
})]), i(e(
|
|
1901
|
+
})]), i(e(j), {
|
|
1846
1902
|
style: {
|
|
1847
1903
|
padding: "0px"
|
|
1848
1904
|
},
|
|
1849
1905
|
onClick: o
|
|
1850
1906
|
}, {
|
|
1851
|
-
default:
|
|
1907
|
+
default: n(() => [...t[2] || (t[2] = [_(" 忘记密码?", -1)])]),
|
|
1852
1908
|
_: 1
|
|
1853
1909
|
})]));
|
|
1854
1910
|
}
|
|
1855
|
-
}),
|
|
1911
|
+
}), ti = /* @__PURE__ */ C(ei, [["__scopeId", "data-v-14e3aab2"]]), ii = {
|
|
1856
1912
|
class: "SignIn"
|
|
1857
|
-
},
|
|
1913
|
+
}, li = /* @__PURE__ */ I({
|
|
1858
1914
|
__name: "AuthkitSignIn",
|
|
1859
1915
|
props: {
|
|
1860
1916
|
size: {
|
|
@@ -1868,33 +1924,33 @@ const te = /* @__PURE__ */ I({
|
|
|
1868
1924
|
}
|
|
1869
1925
|
},
|
|
1870
1926
|
emits: ["submit", "switchSignUp", "switchResetPassword"],
|
|
1871
|
-
setup(
|
|
1872
|
-
emit:
|
|
1927
|
+
setup(s, {
|
|
1928
|
+
emit: r
|
|
1873
1929
|
}) {
|
|
1874
|
-
const u =
|
|
1930
|
+
const u = r, a = s, o = Ie(), d = F(() => !!o.OAuth);
|
|
1875
1931
|
function t() {
|
|
1876
1932
|
u("switchSignUp");
|
|
1877
1933
|
}
|
|
1878
1934
|
function l() {
|
|
1879
1935
|
u("switchResetPassword");
|
|
1880
1936
|
}
|
|
1881
|
-
async function y(
|
|
1882
|
-
u("submit",
|
|
1937
|
+
async function y(m) {
|
|
1938
|
+
u("submit", m);
|
|
1883
1939
|
}
|
|
1884
|
-
return (
|
|
1885
|
-
loading:
|
|
1886
|
-
size:
|
|
1940
|
+
return (m, p) => (g(), V("div", ii, [S("", !0), i(Xt, {
|
|
1941
|
+
loading: a.loading,
|
|
1942
|
+
size: a.size,
|
|
1887
1943
|
onSubmit: y
|
|
1888
|
-
}, null, 8, ["loading", "size"]),
|
|
1944
|
+
}, null, 8, ["loading", "size"]), d.value ? de(m.$slots, "OAuth", {
|
|
1889
1945
|
key: 1
|
|
1890
|
-
}, void 0, !0) : S("", !0), i(
|
|
1946
|
+
}, void 0, !0) : S("", !0), i(ti, {
|
|
1891
1947
|
onSwitchSignUp: t,
|
|
1892
1948
|
onSwitchResetPassword: l
|
|
1893
1949
|
})]));
|
|
1894
1950
|
}
|
|
1895
|
-
}),
|
|
1951
|
+
}), si = /* @__PURE__ */ C(li, [["__scopeId", "data-v-f52ce3b3"]]), ni = {
|
|
1896
1952
|
class: "SignUp"
|
|
1897
|
-
},
|
|
1953
|
+
}, ai = /* @__PURE__ */ I({
|
|
1898
1954
|
__name: "AuthkitSignUp",
|
|
1899
1955
|
props: {
|
|
1900
1956
|
size: {
|
|
@@ -1908,25 +1964,25 @@ const te = /* @__PURE__ */ I({
|
|
|
1908
1964
|
}
|
|
1909
1965
|
},
|
|
1910
1966
|
emits: ["switchSignIn", "submit"],
|
|
1911
|
-
setup(
|
|
1912
|
-
emit:
|
|
1967
|
+
setup(s, {
|
|
1968
|
+
emit: r
|
|
1913
1969
|
}) {
|
|
1914
|
-
const u =
|
|
1970
|
+
const u = r, a = s;
|
|
1915
1971
|
function o() {
|
|
1916
1972
|
u("switchSignIn");
|
|
1917
1973
|
}
|
|
1918
|
-
async function
|
|
1974
|
+
async function d(t) {
|
|
1919
1975
|
u("submit", t);
|
|
1920
1976
|
}
|
|
1921
|
-
return (t, l) => (g(),
|
|
1922
|
-
size:
|
|
1923
|
-
loading:
|
|
1924
|
-
onSubmit:
|
|
1925
|
-
}, null, 8, ["size", "loading"]), i(
|
|
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, {
|
|
1926
1982
|
onSwitchSignIn: o
|
|
1927
1983
|
})]));
|
|
1928
1984
|
}
|
|
1929
|
-
}),
|
|
1985
|
+
}), oi = /* @__PURE__ */ C(ai, [["__scopeId", "data-v-058bbbef"]]), ri = ["src"], ui = /* @__PURE__ */ I({
|
|
1930
1986
|
__name: "AuthkitAuthTitle",
|
|
1931
1987
|
props: {
|
|
1932
1988
|
size: {
|
|
@@ -1945,32 +2001,32 @@ const te = /* @__PURE__ */ I({
|
|
|
1945
2001
|
default: 60
|
|
1946
2002
|
}
|
|
1947
2003
|
},
|
|
1948
|
-
setup(
|
|
1949
|
-
const
|
|
1950
|
-
currentView:
|
|
2004
|
+
setup(s) {
|
|
2005
|
+
const r = s, u = `${r.size}px`, a = `${r.fontSize}px`, o = `${r.lineHeight}px`, {
|
|
2006
|
+
currentView: d
|
|
1951
2007
|
} = Q(), {
|
|
1952
2008
|
appsData: t
|
|
1953
|
-
} =
|
|
1954
|
-
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", {
|
|
1955
2011
|
class: "Title",
|
|
1956
|
-
style:
|
|
1957
|
-
fontSize:
|
|
2012
|
+
style: le({
|
|
2013
|
+
fontSize: a,
|
|
1958
2014
|
lineHeight: o
|
|
1959
2015
|
})
|
|
1960
|
-
}, [e(t).applicationLogoUrl ? (g(),
|
|
2016
|
+
}, [e(t).applicationLogoUrl ? (g(), V("img", {
|
|
1961
2017
|
key: 0,
|
|
1962
2018
|
src: e(t).applicationLogoUrl,
|
|
1963
2019
|
srcset: "",
|
|
1964
|
-
style:
|
|
2020
|
+
style: le({
|
|
1965
2021
|
width: u
|
|
1966
2022
|
})
|
|
1967
|
-
}, null, 12,
|
|
2023
|
+
}, null, 12, ri)) : S("", !0), z("span", null, R(l.value), 1), de(y.$slots, "default", {}, void 0, !0)], 4));
|
|
1968
2024
|
}
|
|
1969
|
-
}),
|
|
2025
|
+
}), he = /* @__PURE__ */ C(ui, [["__scopeId", "data-v-5576db64"]]), di = {
|
|
1970
2026
|
class: "Auth"
|
|
1971
|
-
},
|
|
2027
|
+
}, ci = {
|
|
1972
2028
|
class: "body"
|
|
1973
|
-
},
|
|
2029
|
+
}, mi = /* @__PURE__ */ I({
|
|
1974
2030
|
__name: "AuthkitAuth",
|
|
1975
2031
|
props: {
|
|
1976
2032
|
size: {
|
|
@@ -1983,63 +2039,63 @@ const te = /* @__PURE__ */ I({
|
|
|
1983
2039
|
}
|
|
1984
2040
|
},
|
|
1985
2041
|
emits: ["toPrivacyPolicy", "toUserServiceAgreement"],
|
|
1986
|
-
setup(
|
|
1987
|
-
emit:
|
|
2042
|
+
setup(s, {
|
|
2043
|
+
emit: r
|
|
1988
2044
|
}) {
|
|
1989
|
-
const u =
|
|
2045
|
+
const u = s, a = r, {
|
|
1990
2046
|
signInSubmit: o,
|
|
1991
|
-
signUpSubmit:
|
|
2047
|
+
signUpSubmit: d,
|
|
1992
2048
|
resetPasswordSubmit: t,
|
|
1993
2049
|
currentView: l,
|
|
1994
2050
|
authSignInLoading: y,
|
|
1995
|
-
authSignUpLoading:
|
|
2051
|
+
authSignUpLoading: m,
|
|
1996
2052
|
resetPasswordLoading: p,
|
|
1997
|
-
switchSignUp:
|
|
1998
|
-
switchResetPassword:
|
|
2053
|
+
switchSignUp: c,
|
|
2054
|
+
switchResetPassword: f,
|
|
1999
2055
|
switchSignIn: v
|
|
2000
2056
|
} = Q(), {
|
|
2001
2057
|
appsAuthPageInfoApi: b
|
|
2002
|
-
} =
|
|
2058
|
+
} = se();
|
|
2003
2059
|
function U() {
|
|
2004
|
-
|
|
2060
|
+
a("toPrivacyPolicy");
|
|
2005
2061
|
}
|
|
2006
|
-
function
|
|
2007
|
-
|
|
2062
|
+
function $() {
|
|
2063
|
+
a("toUserServiceAgreement");
|
|
2008
2064
|
}
|
|
2009
|
-
return b(), (T, B) => (g(),
|
|
2065
|
+
return b(), (T, B) => (g(), V("div", di, [s.showTitle ? (g(), k(he, {
|
|
2010
2066
|
key: 0,
|
|
2011
2067
|
size: 32,
|
|
2012
2068
|
"font-size": 20
|
|
2013
|
-
})) : S("", !0), z("div",
|
|
2069
|
+
})) : S("", !0), z("div", ci, [e(l) === "signIn" ? (g(), k(si, {
|
|
2014
2070
|
key: 0,
|
|
2015
2071
|
size: u.size,
|
|
2016
2072
|
loading: e(y),
|
|
2017
|
-
onSwitchSignUp: e(
|
|
2018
|
-
onSwitchResetPassword: e(
|
|
2019
|
-
onSubmit: B[0] || (B[0] = (
|
|
2073
|
+
onSwitchSignUp: e(c),
|
|
2074
|
+
onSwitchResetPassword: e(f),
|
|
2075
|
+
onSubmit: B[0] || (B[0] = (O) => e(o)(O))
|
|
2020
2076
|
}, {
|
|
2021
|
-
OAuth:
|
|
2077
|
+
OAuth: n(() => [i(Rt, {
|
|
2022
2078
|
size: u.size
|
|
2023
2079
|
}, null, 8, ["size"])]),
|
|
2024
2080
|
_: 1
|
|
2025
|
-
}, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : e(l) === "signUp" ? (g(), k(
|
|
2081
|
+
}, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : e(l) === "signUp" ? (g(), k(oi, {
|
|
2026
2082
|
key: 1,
|
|
2027
2083
|
size: u.size,
|
|
2028
|
-
loading: e(
|
|
2084
|
+
loading: e(m),
|
|
2029
2085
|
onSwitchSignIn: e(v),
|
|
2030
|
-
onSubmit: B[1] || (B[1] = (
|
|
2031
|
-
}, 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, {
|
|
2032
2088
|
key: 2,
|
|
2033
2089
|
size: u.size,
|
|
2034
2090
|
loading: e(p),
|
|
2035
2091
|
onSwitchSignIn: e(v),
|
|
2036
|
-
onSubmit: B[2] || (B[2] = (
|
|
2037
|
-
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : S("", !0), i(
|
|
2092
|
+
onSubmit: B[2] || (B[2] = (O) => e(t)(O))
|
|
2093
|
+
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : S("", !0), i(Kt, {
|
|
2038
2094
|
onToPrivacyPolicy: U,
|
|
2039
|
-
onToUserServiceAgreement:
|
|
2095
|
+
onToUserServiceAgreement: $
|
|
2040
2096
|
})])]));
|
|
2041
2097
|
}
|
|
2042
|
-
}),
|
|
2098
|
+
}), fi = /* @__PURE__ */ C(mi, [["__scopeId", "data-v-186d2441"]]), pi = /* @__PURE__ */ I({
|
|
2043
2099
|
__name: "AuthkitAuthModal",
|
|
2044
2100
|
props: {
|
|
2045
2101
|
size: {
|
|
@@ -2052,25 +2108,25 @@ const te = /* @__PURE__ */ I({
|
|
|
2052
2108
|
}
|
|
2053
2109
|
},
|
|
2054
2110
|
emits: ["confirm", "close", "toPrivacyPolicy", "toUserServiceAgreement"],
|
|
2055
|
-
setup(
|
|
2056
|
-
emit:
|
|
2111
|
+
setup(s, {
|
|
2112
|
+
emit: r
|
|
2057
2113
|
}) {
|
|
2058
2114
|
const {
|
|
2059
2115
|
addSignInCallback: u
|
|
2060
2116
|
} = Q(), {
|
|
2061
|
-
show:
|
|
2062
|
-
} =
|
|
2117
|
+
show: a
|
|
2118
|
+
} = Ce(), o = s, d = r;
|
|
2063
2119
|
function t(y) {
|
|
2064
2120
|
y(!0);
|
|
2065
2121
|
}
|
|
2066
2122
|
function l() {
|
|
2067
|
-
|
|
2123
|
+
a.value = !1, d("close");
|
|
2068
2124
|
}
|
|
2069
2125
|
return u(() => {
|
|
2070
|
-
|
|
2071
|
-
}), (y,
|
|
2072
|
-
visible: e(
|
|
2073
|
-
"onUpdate:visible":
|
|
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),
|
|
2074
2130
|
footer: !1,
|
|
2075
2131
|
"mask-closable": !1,
|
|
2076
2132
|
"title-align": "center",
|
|
@@ -2080,38 +2136,39 @@ const te = /* @__PURE__ */ I({
|
|
|
2080
2136
|
onBeforeOk: t,
|
|
2081
2137
|
onClose: l
|
|
2082
2138
|
}, {
|
|
2083
|
-
title:
|
|
2084
|
-
default:
|
|
2139
|
+
title: n(() => [i(he)]),
|
|
2140
|
+
default: n(() => [i(fi, {
|
|
2085
2141
|
"show-title": !1,
|
|
2086
2142
|
size: o.size,
|
|
2087
|
-
onToPrivacyPolicy:
|
|
2088
|
-
onToUserServiceAgreement:
|
|
2143
|
+
onToPrivacyPolicy: m[0] || (m[0] = (p) => d("toPrivacyPolicy")),
|
|
2144
|
+
onToUserServiceAgreement: m[1] || (m[1] = (p) => d("toUserServiceAgreement"))
|
|
2089
2145
|
}, null, 8, ["size"])]),
|
|
2090
2146
|
_: 1
|
|
2091
2147
|
}, 8, ["visible"]));
|
|
2092
2148
|
}
|
|
2093
|
-
}),
|
|
2149
|
+
}), qi = /* @__PURE__ */ C(pi, [["__scopeId", "data-v-6fbefff8"]]);
|
|
2094
2150
|
export {
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
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
|
|
2117
2174
|
};
|