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