@huyooo/ui 0.10.1 → 0.10.3
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-CIqo_ytT.js → AuthkitAuthModal-De0eEWOC.js} +443 -443
- package/dist/{AuthkitSignInPhone-GEP_InIp.js → AuthkitSignInPhone-DEUVn3Rq.js} +4 -4
- package/dist/{Clipboard-BsST2Mjo.js → Clipboard-CMm8I4Rb.js} +1 -1
- package/dist/{CollapseItem-DN-GUAQA.js → CollapseItem-BAuejDBZ.js} +10 -10
- package/dist/{Contact-D1RLCHL7.js → Contact-Dgn8_it4.js} +1 -1
- package/dist/{FeedbackItem-BhBJPtoI.js → FeedbackItem-CRiLkWMh.js} +6 -6
- package/dist/{FeedbackModal-Ci0sZsOa.js → FeedbackModal-B8WLPCy_.js} +365 -366
- package/dist/{LandingPageSectionHeader-1h01zdKJ.js → LandingPageSectionHeader-Cs1x8i3q.js} +1 -1
- package/dist/{LandingPageSectionTabs-BRTZaLEe.js → LandingPageSectionTabs-Dv_xOLqR.js} +11 -11
- package/dist/{Menu-v8cCDSzi.js → Menu-Cy2ZPeaz.js} +18 -18
- package/dist/{MessageHandle-Dkpc4axC.js → MessageHandle-DpIUeQ7U.js} +6 -6
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DqXjEfo9.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BbtfWRUD.js} +47 -47
- package/dist/{PaySubscriptions-ygmbIpWM.js → PaySubscriptions-W6GJ28uE.js} +15 -15
- package/dist/{ReferrerReferees-BlHsWD6F.js → ReferrerReferees-C5Sjn7aD.js} +7 -7
- package/dist/{UserAccountMenu-C6MK8Ulm.js → UserAccountMenu-OdwonGFa.js} +6 -6
- package/dist/{WidthContainer-IvPa1ayt.js → WidthContainer-Cpdc67hQ.js} +125 -128
- package/dist/authkit.js +2 -2
- package/dist/common.js +3 -3
- package/dist/components/Authkit/AuthkitAppSetting.vue.d.ts +1 -1
- package/dist/components/Download/DesktopDownloads.vue.d.ts +1 -6
- package/dist/components/Download/DownloadDropdown.vue.d.ts +0 -2
- package/dist/components/User/UserPanel.vue.d.ts +2 -2
- package/dist/composables/useDownloads.d.ts +1 -3
- package/dist/composables.js +1 -1
- package/dist/feedback.js +3 -3
- package/dist/landingPage.js +2 -2
- package/dist/main.js +88 -96
- 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/useDownloads-COXmopbe.js +57 -0
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/useDownloads-CpbLR--j.js +0 -52
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { defineComponent as V, computed as N, openBlock as g, createElementBlock as U, normalizeStyle as
|
|
5
|
-
import { Form as H, FormItem as I, Avatar as
|
|
4
|
+
import { defineComponent as V, computed as N, openBlock as g, createElementBlock as U, normalizeStyle as se, normalizeClass as _e, createElementVNode as z, ref as h, createBlock as k, unref as e, withCtx as a, createVNode as i, createTextVNode as _, onMounted as K, onUnmounted as re, withDirectives as be, toDisplayString as B, vShow as ke, Fragment as M, createCommentVNode as S, renderList as ze, isRef as ue, useSlots as Se, renderSlot as de } from "vue";
|
|
5
|
+
import { Form as H, FormItem as I, Avatar as me, Input as x, Textarea as Ie, Button as A, Message as F, Alert as D, Space as ee, InputPassword as Ve, Result as Ae, Modal as ce, Divider as Pe, Link as G } from "@arco-design/web-vue";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { e as R, g as j, i as
|
|
7
|
+
import { e as R, g as j, i as fe, u as Ue } from "./apiClients-DJchWBAG.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { u as $e } from "./useUploadCos-BO3W_uqs.js";
|
|
10
10
|
import { _ as Ce, g as xe, i as qe } from "./plugin-vue_export-helper-LjDO2Zua.js";
|
|
11
11
|
import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
import { a as Z, u as J } from "./useAuthkitUsersProfile-BqW74gfs.js";
|
|
13
|
-
import { M as Te } from "./Menu-
|
|
13
|
+
import { M as Te } from "./Menu-Cy2ZPeaz.js";
|
|
14
14
|
import { u as Re } from "./useAuthkitCreateAndUpdate-CPkogY7K.js";
|
|
15
|
-
import { u as
|
|
15
|
+
import { u as ae } from "./useAuthkitAppsAuthPageInfo-C3EHOtlk.js";
|
|
16
16
|
import { Icon as Le } from "@iconify/vue";
|
|
17
17
|
const Be = V({
|
|
18
18
|
name: "IconCamera",
|
|
@@ -41,10 +41,10 @@ const Be = V({
|
|
|
41
41
|
click: (o) => !0
|
|
42
42
|
},
|
|
43
43
|
setup(o, {
|
|
44
|
-
emit:
|
|
44
|
+
emit: r
|
|
45
45
|
}) {
|
|
46
|
-
const
|
|
47
|
-
[`${
|
|
46
|
+
const u = xe("icon"), l = N(() => [u, `${u}-camera`, {
|
|
47
|
+
[`${u}-spin`]: o.spin
|
|
48
48
|
}]), n = N(() => {
|
|
49
49
|
const t = {};
|
|
50
50
|
return o.size && (t.fontSize = qe(o.size) ? `${o.size}px` : o.size), o.rotate && (t.transform = `rotate(${o.rotate}deg)`), t;
|
|
@@ -53,33 +53,33 @@ const Be = V({
|
|
|
53
53
|
cls: l,
|
|
54
54
|
innerStyle: n,
|
|
55
55
|
onClick: (t) => {
|
|
56
|
-
|
|
56
|
+
r("click", t);
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
}), Oe = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
61
|
-
function Ee(o,
|
|
61
|
+
function Ee(o, r, u, l, n, d) {
|
|
62
62
|
return g(), U("svg", {
|
|
63
63
|
viewBox: "0 0 48 48",
|
|
64
64
|
fill: "none",
|
|
65
65
|
xmlns: "http://www.w3.org/2000/svg",
|
|
66
66
|
stroke: "currentColor",
|
|
67
67
|
class: _e(o.cls),
|
|
68
|
-
style:
|
|
68
|
+
style: se(o.innerStyle),
|
|
69
69
|
"stroke-width": o.strokeWidth,
|
|
70
70
|
"stroke-linecap": o.strokeLinecap,
|
|
71
71
|
"stroke-linejoin": o.strokeLinejoin,
|
|
72
|
-
onClick:
|
|
73
|
-
},
|
|
72
|
+
onClick: r[0] || (r[0] = (...t) => o.onClick && o.onClick(...t))
|
|
73
|
+
}, r[1] || (r[1] = [z("path", {
|
|
74
74
|
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"
|
|
75
75
|
}, null, -1)]), 14, Oe);
|
|
76
76
|
}
|
|
77
|
-
var
|
|
78
|
-
const De = Object.assign(
|
|
79
|
-
install: (o,
|
|
80
|
-
var
|
|
81
|
-
const l = (
|
|
82
|
-
o.component(l +
|
|
77
|
+
var te = /* @__PURE__ */ Ce(Be, [["render", Ee]]);
|
|
78
|
+
const De = Object.assign(te, {
|
|
79
|
+
install: (o, r) => {
|
|
80
|
+
var u;
|
|
81
|
+
const l = (u = r == null ? void 0 : r.iconPrefix) != null ? u : "";
|
|
82
|
+
o.component(l + te.name, te);
|
|
83
83
|
}
|
|
84
84
|
}), Ne = {
|
|
85
85
|
class: "handle"
|
|
@@ -93,78 +93,80 @@ const De = Object.assign(ee, {
|
|
|
93
93
|
},
|
|
94
94
|
emits: ["submit"],
|
|
95
95
|
setup(o, {
|
|
96
|
-
emit:
|
|
96
|
+
emit: r
|
|
97
97
|
}) {
|
|
98
|
-
const
|
|
98
|
+
const u = r, l = o, n = h({
|
|
99
99
|
id: void 0,
|
|
100
100
|
nickname: "",
|
|
101
101
|
description: "",
|
|
102
102
|
avatar: "",
|
|
103
103
|
avatarUrl: ""
|
|
104
|
-
}),
|
|
105
|
-
|
|
104
|
+
}), d = h(!1), t = h(), s = h(!1), y = {
|
|
105
|
+
color: "var(--huyooo-accent-primary)"
|
|
106
|
+
};
|
|
107
|
+
async function m() {
|
|
106
108
|
s.value = !0;
|
|
107
109
|
const {
|
|
108
|
-
data:
|
|
110
|
+
data: p
|
|
109
111
|
} = await R.users.profile.post({});
|
|
110
|
-
s.value = !1,
|
|
112
|
+
s.value = !1, p && (n.value.id = p.id, n.value.nickname = p.nickname, n.value.description = p.description, n.value.avatar = p.avatar, n.value.avatarUrl = p.avatarUrl);
|
|
111
113
|
}
|
|
112
|
-
async function
|
|
114
|
+
async function v() {
|
|
113
115
|
if (!await t.value.validate()) {
|
|
114
116
|
s.value = !0;
|
|
115
|
-
const
|
|
117
|
+
const f = {
|
|
116
118
|
id: n.value.id,
|
|
117
119
|
nickname: n.value.nickname,
|
|
118
120
|
description: n.value.description,
|
|
119
121
|
avatar: n.value.avatar
|
|
120
122
|
}, {
|
|
121
|
-
data:
|
|
122
|
-
error:
|
|
123
|
-
} = await R.users.update.baseInfo.post(
|
|
124
|
-
s.value = !1, !
|
|
123
|
+
data: w,
|
|
124
|
+
error: C
|
|
125
|
+
} = await R.users.update.baseInfo.post(f);
|
|
126
|
+
s.value = !1, !C && w && (F.success("更新成功"), n.value.avatarUrl = w.avatarUrl, u("submit"));
|
|
125
127
|
}
|
|
126
128
|
}
|
|
127
|
-
|
|
128
|
-
const
|
|
129
|
+
m();
|
|
130
|
+
const c = () => {
|
|
129
131
|
const {
|
|
130
|
-
uploadFile:
|
|
131
|
-
} = $e(),
|
|
132
|
-
|
|
133
|
-
var
|
|
134
|
-
const
|
|
135
|
-
if (
|
|
136
|
-
|
|
132
|
+
uploadFile: p
|
|
133
|
+
} = $e(), f = document.createElement("input");
|
|
134
|
+
f.type = "file", f.accept = "image/*", f.style.display = "none", document.body.append(f), f.addEventListener("change", async (w) => {
|
|
135
|
+
var L;
|
|
136
|
+
const P = (L = w.target.files) == null ? void 0 : L[0];
|
|
137
|
+
if (P) {
|
|
138
|
+
d.value = !0;
|
|
137
139
|
try {
|
|
138
|
-
|
|
140
|
+
p({
|
|
139
141
|
bucketId: j.avatarBucketId,
|
|
140
|
-
file:
|
|
141
|
-
onFileFinish(q,
|
|
142
|
-
|
|
143
|
-
const
|
|
142
|
+
file: P,
|
|
143
|
+
onFileFinish(q, E, W) {
|
|
144
|
+
d.value = !0;
|
|
145
|
+
const X = {
|
|
144
146
|
id: n.value.id,
|
|
145
147
|
nickname: n.value.nickname,
|
|
146
148
|
description: n.value.description,
|
|
147
|
-
avatar:
|
|
149
|
+
avatar: W.Key
|
|
148
150
|
};
|
|
149
151
|
(async () => {
|
|
150
152
|
const {
|
|
151
|
-
error:
|
|
152
|
-
} = await R.users.update.baseInfo.post(
|
|
153
|
-
|
|
153
|
+
error: Y
|
|
154
|
+
} = await R.users.update.baseInfo.post(X);
|
|
155
|
+
d.value = !1, Y || (F.success("更新成功"), m(), u("submit"));
|
|
154
156
|
})();
|
|
155
157
|
},
|
|
156
158
|
onError(q) {
|
|
157
|
-
console.error("上传图片失败"),
|
|
159
|
+
console.error("上传图片失败"), d.value = !1;
|
|
158
160
|
}
|
|
159
161
|
});
|
|
160
162
|
} catch (q) {
|
|
161
|
-
console.error("上传图片失败", q),
|
|
163
|
+
console.error("上传图片失败", q), d.value = !1;
|
|
162
164
|
}
|
|
163
165
|
}
|
|
164
|
-
|
|
165
|
-
}),
|
|
166
|
+
f.remove();
|
|
167
|
+
}), f.click();
|
|
166
168
|
};
|
|
167
|
-
return (
|
|
169
|
+
return (p, f) => (g(), k(e(H), {
|
|
168
170
|
ref_key: "formRef",
|
|
169
171
|
ref: t,
|
|
170
172
|
model: n.value,
|
|
@@ -179,14 +181,12 @@ const De = Object.assign(ee, {
|
|
|
179
181
|
message: "请上传头像"
|
|
180
182
|
}]
|
|
181
183
|
}, {
|
|
182
|
-
default: a(() => [i(e(
|
|
184
|
+
default: a(() => [i(e(me), {
|
|
183
185
|
"image-url": n.value.avatarUrl,
|
|
184
186
|
size: 42,
|
|
185
187
|
"object-fit": "cover",
|
|
186
|
-
"trigger-icon-style":
|
|
187
|
-
|
|
188
|
-
},
|
|
189
|
-
onClick: v
|
|
188
|
+
"trigger-icon-style": y,
|
|
189
|
+
onClick: c
|
|
190
190
|
}, {
|
|
191
191
|
"trigger-icon": a(() => [i(e(De))]),
|
|
192
192
|
_: 1
|
|
@@ -202,7 +202,7 @@ const De = Object.assign(ee, {
|
|
|
202
202
|
}, {
|
|
203
203
|
default: a(() => [i(e(x), {
|
|
204
204
|
modelValue: n.value.nickname,
|
|
205
|
-
"onUpdate:modelValue":
|
|
205
|
+
"onUpdate:modelValue": f[0] || (f[0] = (w) => n.value.nickname = w),
|
|
206
206
|
placeholder: "请输入昵称"
|
|
207
207
|
}, null, 8, ["modelValue"])]),
|
|
208
208
|
_: 1
|
|
@@ -216,7 +216,7 @@ const De = Object.assign(ee, {
|
|
|
216
216
|
}, {
|
|
217
217
|
default: a(() => [i(e(Ie), {
|
|
218
218
|
modelValue: n.value.description,
|
|
219
|
-
"onUpdate:modelValue":
|
|
219
|
+
"onUpdate:modelValue": f[1] || (f[1] = (w) => n.value.description = w),
|
|
220
220
|
placeholder: "请输入描述",
|
|
221
221
|
"allow-clear": "",
|
|
222
222
|
"auto-size": {
|
|
@@ -232,9 +232,9 @@ const De = Object.assign(ee, {
|
|
|
232
232
|
default: a(() => [z("div", Ne, [i(e(A), {
|
|
233
233
|
type: "primary",
|
|
234
234
|
loading: s.value,
|
|
235
|
-
onClick:
|
|
235
|
+
onClick: v
|
|
236
236
|
}, {
|
|
237
|
-
default: a(() => [...
|
|
237
|
+
default: a(() => [...f[2] || (f[2] = [_(" 提交 ", -1)])]),
|
|
238
238
|
_: 1
|
|
239
239
|
}, 8, ["loading"])])]),
|
|
240
240
|
_: 1
|
|
@@ -242,7 +242,7 @@ const De = Object.assign(ee, {
|
|
|
242
242
|
_: 1
|
|
243
243
|
}, 8, ["model", "size"]));
|
|
244
244
|
}
|
|
245
|
-
}), He = /* @__PURE__ */ $(Fe, [["__scopeId", "data-v-
|
|
245
|
+
}), He = /* @__PURE__ */ $(Fe, [["__scopeId", "data-v-1d138326"]]), Me = /* @__PURE__ */ V({
|
|
246
246
|
__name: "AuthkitSendVerifyCode",
|
|
247
247
|
props: {
|
|
248
248
|
size: {
|
|
@@ -257,40 +257,40 @@ const De = Object.assign(ee, {
|
|
|
257
257
|
},
|
|
258
258
|
emits: ["send"],
|
|
259
259
|
setup(o, {
|
|
260
|
-
expose:
|
|
261
|
-
emit:
|
|
260
|
+
expose: r,
|
|
261
|
+
emit: u
|
|
262
262
|
}) {
|
|
263
|
-
const l =
|
|
263
|
+
const l = u, n = o, d = h(!1);
|
|
264
264
|
let t;
|
|
265
|
-
const s =
|
|
266
|
-
|
|
265
|
+
const s = h(0), y = N(() => s.value.toString().padStart(2, "0")), m = N(() => s.value > 0), v = () => {
|
|
266
|
+
d.value && (s.value <= 0 ? (clearInterval(t), d.value = !1) : s.value--);
|
|
267
267
|
};
|
|
268
|
-
function
|
|
268
|
+
function c() {
|
|
269
269
|
l("send");
|
|
270
270
|
}
|
|
271
|
-
function
|
|
272
|
-
s.value = 60,
|
|
271
|
+
function p() {
|
|
272
|
+
s.value = 60, d.value = !0, t && clearInterval(t), t = setInterval(v, 1e3);
|
|
273
273
|
}
|
|
274
274
|
return K(() => {
|
|
275
|
-
}),
|
|
276
|
-
startCountFn:
|
|
277
|
-
}),
|
|
275
|
+
}), r({
|
|
276
|
+
startCountFn: p
|
|
277
|
+
}), re(() => {
|
|
278
278
|
t && clearInterval(t);
|
|
279
|
-
}), (
|
|
279
|
+
}), (f, w) => (g(), k(e(A), {
|
|
280
280
|
class: "OAuthItem",
|
|
281
281
|
type: "primary",
|
|
282
282
|
size: n.size,
|
|
283
|
-
disabled:
|
|
283
|
+
disabled: m.value,
|
|
284
284
|
loading: n.loading,
|
|
285
|
-
onClick:
|
|
285
|
+
onClick: c
|
|
286
286
|
}, {
|
|
287
|
-
default: a(() => [
|
|
287
|
+
default: a(() => [w[0] || (w[0] = z("span", null, " 发送验证码", -1)), be(z("span", {
|
|
288
288
|
class: "verify-code-timer"
|
|
289
|
-
}, B(`(${y.value})`), 513), [[ke,
|
|
289
|
+
}, B(`(${y.value})`), 513), [[ke, m.value]])]),
|
|
290
290
|
_: 1
|
|
291
291
|
}, 8, ["size", "disabled", "loading"]));
|
|
292
292
|
}
|
|
293
|
-
}),
|
|
293
|
+
}), le = /* @__PURE__ */ $(Me, [["__scopeId", "data-v-2883dc6d"]]), Ge = {
|
|
294
294
|
class: "sendVerifyCodeItem"
|
|
295
295
|
}, je = {
|
|
296
296
|
class: "handle"
|
|
@@ -309,38 +309,38 @@ const De = Object.assign(ee, {
|
|
|
309
309
|
},
|
|
310
310
|
emits: ["next"],
|
|
311
311
|
setup(o, {
|
|
312
|
-
emit:
|
|
312
|
+
emit: r
|
|
313
313
|
}) {
|
|
314
|
-
const
|
|
314
|
+
const u = r, l = o, n = N(() => fe(l.email)), d = h(), t = h(!1), s = h(!1), y = h(), m = h({
|
|
315
315
|
userToken: void 0,
|
|
316
316
|
emailVerifyId: void 0
|
|
317
317
|
});
|
|
318
318
|
async function v() {
|
|
319
319
|
t.value = !0;
|
|
320
320
|
const {
|
|
321
|
-
data:
|
|
321
|
+
data: p
|
|
322
322
|
} = await R.verify.email.retry.post({
|
|
323
323
|
email: l.email
|
|
324
324
|
});
|
|
325
|
-
t.value = !1,
|
|
325
|
+
t.value = !1, p && (m.value.emailVerifyId = p.emailVerifyId, d.value.startCountFn());
|
|
326
326
|
}
|
|
327
|
-
async function
|
|
327
|
+
async function c() {
|
|
328
328
|
if (!await y.value.validate(["userToken"])) {
|
|
329
329
|
s.value = !0;
|
|
330
|
-
const
|
|
330
|
+
const f = {
|
|
331
331
|
email: l.email,
|
|
332
|
-
userToken:
|
|
333
|
-
emailVerifyId:
|
|
332
|
+
userToken: m.value.userToken,
|
|
333
|
+
emailVerifyId: m.value.emailVerifyId
|
|
334
334
|
}, {
|
|
335
|
-
error:
|
|
336
|
-
} = await R.verify.email.post(
|
|
337
|
-
s.value = !1,
|
|
335
|
+
error: w
|
|
336
|
+
} = await R.verify.email.post(f);
|
|
337
|
+
s.value = !1, w || u("next");
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
return (
|
|
340
|
+
return (p, f) => (g(), k(e(H), {
|
|
341
341
|
ref_key: "formRef",
|
|
342
342
|
ref: y,
|
|
343
|
-
model:
|
|
343
|
+
model: m.value,
|
|
344
344
|
"auto-label-width": "",
|
|
345
345
|
size: l.size
|
|
346
346
|
}, {
|
|
@@ -367,12 +367,12 @@ const De = Object.assign(ee, {
|
|
|
367
367
|
}]
|
|
368
368
|
}, {
|
|
369
369
|
default: a(() => [z("div", Ge, [i(e(x), {
|
|
370
|
-
modelValue:
|
|
371
|
-
"onUpdate:modelValue":
|
|
370
|
+
modelValue: m.value.userToken,
|
|
371
|
+
"onUpdate:modelValue": f[0] || (f[0] = (w) => m.value.userToken = w),
|
|
372
372
|
placeholder: "请输入验证码"
|
|
373
|
-
}, null, 8, ["modelValue"]), i(
|
|
373
|
+
}, null, 8, ["modelValue"]), i(le, {
|
|
374
374
|
ref_key: "SendVerifyCodeRef",
|
|
375
|
-
ref:
|
|
375
|
+
ref: d,
|
|
376
376
|
size: l.size,
|
|
377
377
|
loading: t.value,
|
|
378
378
|
style: {
|
|
@@ -389,9 +389,9 @@ const De = Object.assign(ee, {
|
|
|
389
389
|
default: a(() => [z("div", je, [i(e(A), {
|
|
390
390
|
loading: s.value,
|
|
391
391
|
type: "primary",
|
|
392
|
-
onClick:
|
|
392
|
+
onClick: c
|
|
393
393
|
}, {
|
|
394
|
-
default: a(() => [...
|
|
394
|
+
default: a(() => [...f[1] || (f[1] = [_(" 提交 ", -1)])]),
|
|
395
395
|
_: 1
|
|
396
396
|
}, 8, ["loading"])])]),
|
|
397
397
|
_: 1
|
|
@@ -399,7 +399,7 @@ const De = Object.assign(ee, {
|
|
|
399
399
|
_: 1
|
|
400
400
|
}, 8, ["model", "size"]));
|
|
401
401
|
}
|
|
402
|
-
}),
|
|
402
|
+
}), ne = /* @__PURE__ */ $(We, [["__scopeId", "data-v-73ed2006"]]), Ke = {
|
|
403
403
|
class: "handle"
|
|
404
404
|
}, Ze = /* @__PURE__ */ V({
|
|
405
405
|
__name: "AuthkitPasswordUpdate",
|
|
@@ -411,9 +411,9 @@ const De = Object.assign(ee, {
|
|
|
411
411
|
},
|
|
412
412
|
emits: ["submit"],
|
|
413
413
|
setup(o, {
|
|
414
|
-
emit:
|
|
414
|
+
emit: r
|
|
415
415
|
}) {
|
|
416
|
-
const
|
|
416
|
+
const u = r, l = h(!1), n = h(), d = o, t = h({
|
|
417
417
|
oldPassword: "",
|
|
418
418
|
password: "",
|
|
419
419
|
confirmPassword: ""
|
|
@@ -421,20 +421,20 @@ const De = Object.assign(ee, {
|
|
|
421
421
|
async function s() {
|
|
422
422
|
if (!await n.value.validate()) {
|
|
423
423
|
l.value = !0;
|
|
424
|
-
const
|
|
424
|
+
const m = {
|
|
425
425
|
password: t.value.password
|
|
426
426
|
}, {
|
|
427
427
|
error: v
|
|
428
|
-
} = await R.users.update.password.post(
|
|
429
|
-
l.value = !1, v ||
|
|
428
|
+
} = await R.users.update.password.post(m);
|
|
429
|
+
l.value = !1, v || u("submit", m);
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
return (y,
|
|
432
|
+
return (y, m) => (g(), k(e(H), {
|
|
433
433
|
ref_key: "formRef",
|
|
434
434
|
ref: n,
|
|
435
435
|
model: t.value,
|
|
436
436
|
"auto-label-width": "",
|
|
437
|
-
size:
|
|
437
|
+
size: d.size
|
|
438
438
|
}, {
|
|
439
439
|
default: a(() => [i(e(I), {
|
|
440
440
|
field: "oldPassword",
|
|
@@ -447,7 +447,7 @@ const De = Object.assign(ee, {
|
|
|
447
447
|
}, {
|
|
448
448
|
default: a(() => [i(e(x), {
|
|
449
449
|
modelValue: t.value.oldPassword,
|
|
450
|
-
"onUpdate:modelValue":
|
|
450
|
+
"onUpdate:modelValue": m[0] || (m[0] = (v) => t.value.oldPassword = v),
|
|
451
451
|
placeholder: "请输入当前密码",
|
|
452
452
|
type: "password"
|
|
453
453
|
}, null, 8, ["modelValue"])]),
|
|
@@ -466,7 +466,7 @@ const De = Object.assign(ee, {
|
|
|
466
466
|
}, {
|
|
467
467
|
default: a(() => [i(e(x), {
|
|
468
468
|
modelValue: t.value.password,
|
|
469
|
-
"onUpdate:modelValue":
|
|
469
|
+
"onUpdate:modelValue": m[1] || (m[1] = (v) => t.value.password = v),
|
|
470
470
|
placeholder: "请输入新密码",
|
|
471
471
|
type: "password"
|
|
472
472
|
}, null, 8, ["modelValue"])]),
|
|
@@ -482,14 +482,14 @@ const De = Object.assign(ee, {
|
|
|
482
482
|
minLength: 10,
|
|
483
483
|
message: "确认密码不能少于10字符"
|
|
484
484
|
}, {
|
|
485
|
-
validator: (v,
|
|
486
|
-
v !== t.value.password ?
|
|
485
|
+
validator: (v, c) => {
|
|
486
|
+
v !== t.value.password ? c("两次密码输入不一致,请重新输入") : c();
|
|
487
487
|
}
|
|
488
488
|
}]
|
|
489
489
|
}, {
|
|
490
490
|
default: a(() => [i(e(x), {
|
|
491
491
|
modelValue: t.value.confirmPassword,
|
|
492
|
-
"onUpdate:modelValue":
|
|
492
|
+
"onUpdate:modelValue": m[2] || (m[2] = (v) => t.value.confirmPassword = v),
|
|
493
493
|
placeholder: "请输入确认密码密码",
|
|
494
494
|
type: "password"
|
|
495
495
|
}, null, 8, ["modelValue"])]),
|
|
@@ -504,7 +504,7 @@ const De = Object.assign(ee, {
|
|
|
504
504
|
loading: l.value,
|
|
505
505
|
onClick: s
|
|
506
506
|
}, {
|
|
507
|
-
default: a(() => [...
|
|
507
|
+
default: a(() => [...m[3] || (m[3] = [_(" 提交 ", -1)])]),
|
|
508
508
|
_: 1
|
|
509
509
|
}, 8, ["loading"])])]),
|
|
510
510
|
_: 1
|
|
@@ -522,62 +522,62 @@ const De = Object.assign(ee, {
|
|
|
522
522
|
},
|
|
523
523
|
setup(o) {
|
|
524
524
|
const {
|
|
525
|
-
userProfile:
|
|
526
|
-
loading:
|
|
525
|
+
userProfile: r,
|
|
526
|
+
loading: u,
|
|
527
527
|
fetchUserProfile: l,
|
|
528
528
|
isLoggedIn: n
|
|
529
|
-
} = Z(),
|
|
529
|
+
} = Z(), d = h("hidden"), t = o;
|
|
530
530
|
function s(v) {
|
|
531
|
-
|
|
531
|
+
d.value = v;
|
|
532
532
|
}
|
|
533
533
|
function y(v) {
|
|
534
|
-
F.success("密码修改成功"),
|
|
534
|
+
F.success("密码修改成功"), d.value = "hidden", l();
|
|
535
535
|
}
|
|
536
|
-
function
|
|
537
|
-
|
|
536
|
+
function m() {
|
|
537
|
+
d.value = "update";
|
|
538
538
|
}
|
|
539
539
|
return K(() => {
|
|
540
|
-
n.value && !
|
|
541
|
-
}), (v,
|
|
542
|
-
var
|
|
543
|
-
return g(), U(M, null, [!((
|
|
540
|
+
n.value && !r.value && l();
|
|
541
|
+
}), (v, c) => {
|
|
542
|
+
var p, f, w, C;
|
|
543
|
+
return g(), U(M, null, [!((p = e(r)) != null && p.email) && !((f = e(r)) != null && f.phone) ? (g(), k(e(D), {
|
|
544
544
|
key: 0,
|
|
545
545
|
title: "去绑定邮箱"
|
|
546
546
|
}, {
|
|
547
547
|
action: a(() => [i(e(A), {
|
|
548
548
|
size: t.size,
|
|
549
549
|
type: "primary",
|
|
550
|
-
onClick:
|
|
550
|
+
onClick: c[0] || (c[0] = (P) => s("update"))
|
|
551
551
|
}, {
|
|
552
|
-
default: a(() => [...
|
|
552
|
+
default: a(() => [...c[2] || (c[2] = [_(" 去绑定邮箱 ", -1)])]),
|
|
553
553
|
_: 1
|
|
554
554
|
}, 8, ["size"])]),
|
|
555
|
-
default: a(() => [
|
|
555
|
+
default: a(() => [c[3] || (c[3] = _(" 请先去绑定邮箱或者手机号码,才能设置密码 ", -1))]),
|
|
556
556
|
_: 1
|
|
557
|
-
})) : S("", !0), (
|
|
557
|
+
})) : S("", !0), (w = e(r)) != null && w.email && d.value === "hidden" ? (g(), k(e(D), {
|
|
558
558
|
key: 1,
|
|
559
559
|
title: "更改密码"
|
|
560
560
|
}, {
|
|
561
561
|
action: a(() => [i(e(A), {
|
|
562
562
|
size: t.size,
|
|
563
563
|
type: "primary",
|
|
564
|
-
onClick:
|
|
564
|
+
onClick: c[1] || (c[1] = (P) => s("verify"))
|
|
565
565
|
}, {
|
|
566
|
-
default: a(() => [...
|
|
566
|
+
default: a(() => [...c[4] || (c[4] = [_("更改密码", -1)])]),
|
|
567
567
|
_: 1
|
|
568
568
|
}, 8, ["size"])]),
|
|
569
|
-
default: a(() => [
|
|
569
|
+
default: a(() => [c[5] || (c[5] = _(" 为了账户安全修改密码前会先验证身份 ", -1))]),
|
|
570
570
|
_: 1
|
|
571
|
-
})) : S("", !0),
|
|
571
|
+
})) : S("", !0), d.value === "update" ? (g(), k(Je, {
|
|
572
572
|
key: 2,
|
|
573
573
|
size: t.size,
|
|
574
|
-
loading: e(
|
|
574
|
+
loading: e(u),
|
|
575
575
|
onSubmit: y
|
|
576
|
-
}, null, 8, ["size", "loading"])) : S("", !0),
|
|
576
|
+
}, null, 8, ["size", "loading"])) : S("", !0), d.value === "verify" ? (g(), k(ne, {
|
|
577
577
|
key: 3,
|
|
578
578
|
size: t.size,
|
|
579
|
-
email: (C = e(
|
|
580
|
-
onNext:
|
|
579
|
+
email: (C = e(r)) == null ? void 0 : C.email,
|
|
580
|
+
onNext: m
|
|
581
581
|
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
582
582
|
};
|
|
583
583
|
}
|
|
@@ -602,9 +602,9 @@ const De = Object.assign(ee, {
|
|
|
602
602
|
},
|
|
603
603
|
emits: ["submit"],
|
|
604
604
|
setup(o, {
|
|
605
|
-
emit:
|
|
605
|
+
emit: r
|
|
606
606
|
}) {
|
|
607
|
-
const
|
|
607
|
+
const u = r, l = o, n = h(), d = h(!1), t = h(), s = h({
|
|
608
608
|
email: void 0,
|
|
609
609
|
userToken: void 0,
|
|
610
610
|
emailVerifyId: void 0,
|
|
@@ -614,21 +614,21 @@ const De = Object.assign(ee, {
|
|
|
614
614
|
});
|
|
615
615
|
async function y() {
|
|
616
616
|
if (!await t.value.validateField(["email"])) {
|
|
617
|
-
|
|
617
|
+
d.value = !0;
|
|
618
618
|
const {
|
|
619
|
-
data:
|
|
619
|
+
data: c
|
|
620
620
|
} = await R.verify.email.retry.post({
|
|
621
621
|
email: s.value.email
|
|
622
622
|
});
|
|
623
|
-
|
|
623
|
+
d.value = !1, c && (s.value.emailVerifyId = c.emailVerifyId, n.value.startCountFn());
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
|
-
async function
|
|
626
|
+
async function m() {
|
|
627
627
|
t.value.validate().then((v) => {
|
|
628
|
-
v ||
|
|
628
|
+
v || u("submit", s.value);
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
|
-
return (v,
|
|
631
|
+
return (v, c) => (g(), U("div", Xe, [i(e(H), {
|
|
632
632
|
ref_key: "formRef",
|
|
633
633
|
ref: t,
|
|
634
634
|
model: s.value,
|
|
@@ -649,7 +649,7 @@ const De = Object.assign(ee, {
|
|
|
649
649
|
}, {
|
|
650
650
|
default: a(() => [i(e(x), {
|
|
651
651
|
modelValue: s.value.email,
|
|
652
|
-
"onUpdate:modelValue":
|
|
652
|
+
"onUpdate:modelValue": c[0] || (c[0] = (p) => s.value.email = p),
|
|
653
653
|
placeholder: "请输入邮箱",
|
|
654
654
|
autocomplete: "email username",
|
|
655
655
|
type: "email"
|
|
@@ -666,14 +666,14 @@ const De = Object.assign(ee, {
|
|
|
666
666
|
}, {
|
|
667
667
|
default: a(() => [z("div", Ye, [i(e(x), {
|
|
668
668
|
modelValue: s.value.userToken,
|
|
669
|
-
"onUpdate:modelValue":
|
|
669
|
+
"onUpdate:modelValue": c[1] || (c[1] = (p) => s.value.userToken = p),
|
|
670
670
|
placeholder: "请输入验证码",
|
|
671
671
|
autocomplete: "one-time-code"
|
|
672
|
-
}, null, 8, ["modelValue"]), i(
|
|
672
|
+
}, null, 8, ["modelValue"]), i(le, {
|
|
673
673
|
ref_key: "SendVerifyCodeRef",
|
|
674
674
|
ref: n,
|
|
675
675
|
size: l.size,
|
|
676
|
-
loading:
|
|
676
|
+
loading: d.value,
|
|
677
677
|
style: {
|
|
678
678
|
"margin-left": "10px"
|
|
679
679
|
},
|
|
@@ -694,7 +694,7 @@ const De = Object.assign(ee, {
|
|
|
694
694
|
}, {
|
|
695
695
|
default: a(() => [i(e(x), {
|
|
696
696
|
modelValue: s.value.password,
|
|
697
|
-
"onUpdate:modelValue":
|
|
697
|
+
"onUpdate:modelValue": c[2] || (c[2] = (p) => s.value.password = p),
|
|
698
698
|
placeholder: "请输入密码",
|
|
699
699
|
type: "password",
|
|
700
700
|
autocomplete: "new-password"
|
|
@@ -711,14 +711,14 @@ const De = Object.assign(ee, {
|
|
|
711
711
|
minLength: 10,
|
|
712
712
|
message: "确认密码不能少于10字符"
|
|
713
713
|
}, {
|
|
714
|
-
validator: (
|
|
715
|
-
|
|
714
|
+
validator: (p, f) => {
|
|
715
|
+
p !== s.value.password ? f("两次密码输入不一致,请重新输入") : f();
|
|
716
716
|
}
|
|
717
717
|
}]
|
|
718
718
|
}, {
|
|
719
719
|
default: a(() => [i(e(x), {
|
|
720
720
|
modelValue: s.value.confirmPassword,
|
|
721
|
-
"onUpdate:modelValue":
|
|
721
|
+
"onUpdate:modelValue": c[3] || (c[3] = (p) => s.value.confirmPassword = p),
|
|
722
722
|
placeholder: "请输入确认密码密码",
|
|
723
723
|
type: "password",
|
|
724
724
|
autocomplete: "new-password"
|
|
@@ -735,7 +735,7 @@ const De = Object.assign(ee, {
|
|
|
735
735
|
}, {
|
|
736
736
|
default: a(() => [i(e(x), {
|
|
737
737
|
modelValue: s.value.referrerId,
|
|
738
|
-
"onUpdate:modelValue":
|
|
738
|
+
"onUpdate:modelValue": c[4] || (c[4] = (p) => s.value.referrerId = p),
|
|
739
739
|
placeholder: "邀请人ID(可选)",
|
|
740
740
|
autocomplete: "off"
|
|
741
741
|
}, null, 8, ["modelValue"])]),
|
|
@@ -745,15 +745,15 @@ const De = Object.assign(ee, {
|
|
|
745
745
|
loading: l.loading,
|
|
746
746
|
long: "",
|
|
747
747
|
size: l.size,
|
|
748
|
-
onClick:
|
|
748
|
+
onClick: m
|
|
749
749
|
}, {
|
|
750
|
-
default: a(() => [...
|
|
750
|
+
default: a(() => [...c[5] || (c[5] = [_(" 提交 ", -1)])]),
|
|
751
751
|
_: 1
|
|
752
752
|
}, 8, ["loading", "size"])])]),
|
|
753
753
|
_: 1
|
|
754
754
|
}, 8, ["model", "size"])]));
|
|
755
755
|
}
|
|
756
|
-
}),
|
|
756
|
+
}), pe = /* @__PURE__ */ $(tt, [["__scopeId", "data-v-51a26095"]]), it = /* @__PURE__ */ V({
|
|
757
757
|
__name: "AuthkitEmailBinding",
|
|
758
758
|
props: {
|
|
759
759
|
size: {
|
|
@@ -763,73 +763,73 @@ const De = Object.assign(ee, {
|
|
|
763
763
|
},
|
|
764
764
|
setup(o) {
|
|
765
765
|
const {
|
|
766
|
-
userProfile:
|
|
767
|
-
loading:
|
|
766
|
+
userProfile: r,
|
|
767
|
+
loading: u,
|
|
768
768
|
fetchUserProfile: l
|
|
769
|
-
} = Z(), n =
|
|
770
|
-
function t(
|
|
771
|
-
n.value =
|
|
769
|
+
} = Z(), n = h("hidden"), d = o;
|
|
770
|
+
function t(m) {
|
|
771
|
+
n.value = m;
|
|
772
772
|
}
|
|
773
|
-
async function s(
|
|
774
|
-
|
|
773
|
+
async function s(m) {
|
|
774
|
+
u.value = !0;
|
|
775
775
|
const v = {
|
|
776
|
-
email:
|
|
777
|
-
userToken:
|
|
778
|
-
emailVerifyId:
|
|
779
|
-
password:
|
|
776
|
+
email: m.email,
|
|
777
|
+
userToken: m.userToken,
|
|
778
|
+
emailVerifyId: m.emailVerifyId,
|
|
779
|
+
password: m.password || ""
|
|
780
780
|
// API 要求 password,但绑定邮箱时可能不需要,传空字符串
|
|
781
781
|
}, {
|
|
782
|
-
error:
|
|
782
|
+
error: c
|
|
783
783
|
} = await R.users.update.email.post(v);
|
|
784
|
-
|
|
784
|
+
u.value = !1, c || (F.success("绑定成功"), n.value = "hidden", l());
|
|
785
785
|
}
|
|
786
786
|
function y() {
|
|
787
787
|
n.value = "update";
|
|
788
788
|
}
|
|
789
789
|
return K(() => {
|
|
790
|
-
|
|
791
|
-
}), (
|
|
792
|
-
var
|
|
793
|
-
return g(), U(M, null, [!((
|
|
790
|
+
r.value || l();
|
|
791
|
+
}), (m, v) => {
|
|
792
|
+
var c, p, f;
|
|
793
|
+
return g(), U(M, null, [!((c = e(r)) != null && c.email) && n.value === "hidden" ? (g(), k(e(D), {
|
|
794
794
|
key: 0,
|
|
795
795
|
title: "绑定邮箱"
|
|
796
796
|
}, {
|
|
797
797
|
action: a(() => [i(e(A), {
|
|
798
|
-
size:
|
|
798
|
+
size: d.size,
|
|
799
799
|
type: "primary",
|
|
800
|
-
onClick: v[0] || (v[0] = (
|
|
800
|
+
onClick: v[0] || (v[0] = (w) => t("update"))
|
|
801
801
|
}, {
|
|
802
802
|
default: a(() => [...v[2] || (v[2] = [_(" 绑定邮箱 ", -1)])]),
|
|
803
803
|
_: 1
|
|
804
804
|
}, 8, ["size"])]),
|
|
805
805
|
default: a(() => [v[3] || (v[3] = _(" 您还未绑定邮箱,请点击绑定邮箱 ", -1))]),
|
|
806
806
|
_: 1
|
|
807
|
-
})) : S("", !0), (
|
|
807
|
+
})) : S("", !0), (p = e(r)) != null && p.email && n.value === "hidden" ? (g(), k(e(D), {
|
|
808
808
|
key: 1,
|
|
809
809
|
title: "更改邮箱"
|
|
810
810
|
}, {
|
|
811
811
|
action: a(() => [i(e(A), {
|
|
812
|
-
size:
|
|
812
|
+
size: d.size,
|
|
813
813
|
type: "primary",
|
|
814
|
-
onClick: v[1] || (v[1] = (
|
|
814
|
+
onClick: v[1] || (v[1] = (w) => t("verify"))
|
|
815
815
|
}, {
|
|
816
816
|
default: a(() => [...v[4] || (v[4] = [_(" 更改邮箱 ", -1)])]),
|
|
817
817
|
_: 1
|
|
818
818
|
}, 8, ["size"])]),
|
|
819
819
|
default: a(() => {
|
|
820
|
-
var
|
|
821
|
-
return [_(B(`您绑定的邮箱为${e(
|
|
820
|
+
var w;
|
|
821
|
+
return [_(B(`您绑定的邮箱为${e(fe)((w = e(r)) == null ? void 0 : w.email)}`) + " ", 1)];
|
|
822
822
|
}),
|
|
823
823
|
_: 1
|
|
824
|
-
})) : S("", !0), n.value === "update" ? (g(), k(
|
|
824
|
+
})) : S("", !0), n.value === "update" ? (g(), k(pe, {
|
|
825
825
|
key: 2,
|
|
826
|
-
loading: e(
|
|
827
|
-
size:
|
|
826
|
+
loading: e(u),
|
|
827
|
+
size: d.size,
|
|
828
828
|
onSubmit: s
|
|
829
|
-
}, null, 8, ["loading", "size"])) : S("", !0), n.value === "verify" ? (g(), k(
|
|
829
|
+
}, null, 8, ["loading", "size"])) : S("", !0), n.value === "verify" ? (g(), k(ne, {
|
|
830
830
|
key: 3,
|
|
831
|
-
size:
|
|
832
|
-
email: (
|
|
831
|
+
size: d.size,
|
|
832
|
+
email: (f = e(r)) == null ? void 0 : f.email,
|
|
833
833
|
onNext: y
|
|
834
834
|
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
835
835
|
};
|
|
@@ -844,88 +844,88 @@ const De = Object.assign(ee, {
|
|
|
844
844
|
},
|
|
845
845
|
setup(o) {
|
|
846
846
|
const {
|
|
847
|
-
userProfile:
|
|
848
|
-
fetchUserProfile:
|
|
849
|
-
} = Z(), l =
|
|
850
|
-
let
|
|
847
|
+
userProfile: r,
|
|
848
|
+
fetchUserProfile: u
|
|
849
|
+
} = Z(), l = h("hidden"), n = h(!1);
|
|
850
|
+
let d;
|
|
851
851
|
const t = o;
|
|
852
|
-
function s(
|
|
853
|
-
l.value =
|
|
852
|
+
function s(p) {
|
|
853
|
+
l.value = p;
|
|
854
854
|
}
|
|
855
855
|
async function y() {
|
|
856
|
-
const
|
|
857
|
-
if (!
|
|
856
|
+
const p = j.appId;
|
|
857
|
+
if (!p) {
|
|
858
858
|
console.error("GitHub OAuth 失败: appId 未配置");
|
|
859
859
|
return;
|
|
860
860
|
}
|
|
861
861
|
const {
|
|
862
|
-
data:
|
|
862
|
+
data: f
|
|
863
863
|
} = await R.oauth.github.login.get({
|
|
864
|
-
appId:
|
|
864
|
+
appId: p
|
|
865
865
|
});
|
|
866
|
-
if (
|
|
866
|
+
if (f) {
|
|
867
867
|
const {
|
|
868
|
-
redirectUri:
|
|
869
|
-
} =
|
|
870
|
-
n.value = !0, window.open(
|
|
868
|
+
redirectUri: w
|
|
869
|
+
} = f;
|
|
870
|
+
n.value = !0, window.open(w, "_blank");
|
|
871
871
|
}
|
|
872
872
|
}
|
|
873
|
-
async function
|
|
873
|
+
async function m() {
|
|
874
874
|
const {
|
|
875
|
-
error:
|
|
875
|
+
error: p
|
|
876
876
|
} = await R.users.unbind.email.post({});
|
|
877
|
-
|
|
877
|
+
p || (F.success("解绑成功"), l.value = "hidden", u());
|
|
878
878
|
}
|
|
879
879
|
function v() {
|
|
880
|
-
l.value === "bind" && (l.value = "hidden", y()), l.value === "unbind" &&
|
|
880
|
+
l.value === "bind" && (l.value = "hidden", y()), l.value === "unbind" && m();
|
|
881
881
|
}
|
|
882
|
-
function
|
|
883
|
-
n.value &&
|
|
882
|
+
function c() {
|
|
883
|
+
n.value && u();
|
|
884
884
|
}
|
|
885
885
|
return K(() => {
|
|
886
|
-
|
|
887
|
-
}),
|
|
888
|
-
|
|
889
|
-
}), (
|
|
890
|
-
var
|
|
891
|
-
return g(), U(M, null, [!((
|
|
886
|
+
r.value || u(), d = setInterval(c, 1e3);
|
|
887
|
+
}), re(() => {
|
|
888
|
+
d && clearInterval(d);
|
|
889
|
+
}), (p, f) => {
|
|
890
|
+
var w, C, P;
|
|
891
|
+
return g(), U(M, null, [!((w = e(r)) != null && w.github) && l.value === "hidden" ? (g(), k(e(D), {
|
|
892
892
|
key: 0,
|
|
893
893
|
title: "绑定GitHUb"
|
|
894
894
|
}, {
|
|
895
895
|
action: a(() => [i(e(A), {
|
|
896
896
|
size: t.size,
|
|
897
897
|
type: "primary",
|
|
898
|
-
onClick:
|
|
898
|
+
onClick: f[0] || (f[0] = (L) => s("bind"))
|
|
899
899
|
}, {
|
|
900
|
-
default: a(() => [...
|
|
900
|
+
default: a(() => [...f[2] || (f[2] = [_(" 绑定GitHUb ", -1)])]),
|
|
901
901
|
_: 1
|
|
902
902
|
}, 8, ["size"])]),
|
|
903
|
-
default: a(() => [
|
|
903
|
+
default: a(() => [f[3] || (f[3] = _(" 请尚未绑定GitHub,请点击绑定GitHUb ", -1))]),
|
|
904
904
|
_: 1
|
|
905
|
-
})) : S("", !0), (C = e(
|
|
905
|
+
})) : S("", !0), (C = e(r)) != null && C.github && l.value === "hidden" ? (g(), k(e(D), {
|
|
906
906
|
key: 1,
|
|
907
907
|
title: "解绑GitHub"
|
|
908
908
|
}, {
|
|
909
909
|
action: a(() => [i(e(A), {
|
|
910
910
|
size: t.size,
|
|
911
911
|
type: "primary",
|
|
912
|
-
onClick:
|
|
912
|
+
onClick: f[1] || (f[1] = (L) => s("unbind"))
|
|
913
913
|
}, {
|
|
914
|
-
default: a(() => [...
|
|
914
|
+
default: a(() => [...f[4] || (f[4] = [_(" 解绑GitHUb ", -1)])]),
|
|
915
915
|
_: 1
|
|
916
916
|
}, 8, ["size"])]),
|
|
917
917
|
default: a(() => {
|
|
918
|
-
var
|
|
919
|
-
return [z("span", null, B(`您绑定的账号为 ${(
|
|
920
|
-
"image-url": (E = e(
|
|
918
|
+
var L, q, E;
|
|
919
|
+
return [z("span", null, B(`您绑定的账号为 ${(q = (L = e(r)) == null ? void 0 : L.github) == null ? void 0 : q.login}`), 1), i(e(me), {
|
|
920
|
+
"image-url": (E = e(r)) == null ? void 0 : E.avatar,
|
|
921
921
|
size: 42
|
|
922
922
|
}, null, 8, ["image-url"])];
|
|
923
923
|
}),
|
|
924
924
|
_: 1
|
|
925
|
-
})) : S("", !0), l.value === "bind" || l.value === "unbind" ? (g(), k(
|
|
925
|
+
})) : S("", !0), l.value === "bind" || l.value === "unbind" ? (g(), k(ne, {
|
|
926
926
|
key: 2,
|
|
927
927
|
size: t.size,
|
|
928
|
-
email: (P = e(
|
|
928
|
+
email: (P = e(r)) == null ? void 0 : P.email,
|
|
929
929
|
onNext: v
|
|
930
930
|
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
931
931
|
};
|
|
@@ -948,27 +948,27 @@ const De = Object.assign(ee, {
|
|
|
948
948
|
},
|
|
949
949
|
emits: ["deleted"],
|
|
950
950
|
setup(o, {
|
|
951
|
-
emit:
|
|
951
|
+
emit: r
|
|
952
952
|
}) {
|
|
953
|
-
const
|
|
953
|
+
const u = o, l = r, {
|
|
954
954
|
userProfile: n,
|
|
955
|
-
clearUserProfile:
|
|
955
|
+
clearUserProfile: d
|
|
956
956
|
} = Z(), {
|
|
957
957
|
clearAuth: t
|
|
958
|
-
} = J(), s =
|
|
959
|
-
let
|
|
960
|
-
const
|
|
961
|
-
var
|
|
962
|
-
const O = ((
|
|
958
|
+
} = J(), s = h("check"), y = h(!1), m = h([]), v = h(!1), c = h(""), p = h(0);
|
|
959
|
+
let f = null;
|
|
960
|
+
const w = N(() => {
|
|
961
|
+
var oe;
|
|
962
|
+
const O = ((oe = n.value) == null ? void 0 : oe.email) || "";
|
|
963
963
|
if (!O) return "";
|
|
964
964
|
const [b, T] = O.split("@");
|
|
965
965
|
return b.length <= 2 ? O : `${b.slice(0, 2)}***@${T}`;
|
|
966
|
-
}), C =
|
|
966
|
+
}), C = h(), P = h({
|
|
967
967
|
userToken: "",
|
|
968
968
|
password: "",
|
|
969
969
|
confirmText: ""
|
|
970
|
-
}),
|
|
971
|
-
function
|
|
970
|
+
}), L = h(!1);
|
|
971
|
+
function q(O, b) {
|
|
972
972
|
O !== "注销" ? b('请输入"注销"以确认操作') : b();
|
|
973
973
|
}
|
|
974
974
|
async function E() {
|
|
@@ -991,26 +991,26 @@ const De = Object.assign(ee, {
|
|
|
991
991
|
} = await R.verify.email.retry.post({
|
|
992
992
|
email: n.value.email
|
|
993
993
|
});
|
|
994
|
-
v.value = !1, O && (
|
|
994
|
+
v.value = !1, O && (c.value = O.emailVerifyId, F.success("验证码已发送"), s.value = "confirm", X());
|
|
995
995
|
}
|
|
996
996
|
function X() {
|
|
997
|
-
|
|
998
|
-
|
|
997
|
+
p.value = 60, f && clearInterval(f), f = setInterval(() => {
|
|
998
|
+
p.value--, p.value <= 0 && f && (clearInterval(f), f = null);
|
|
999
999
|
}, 1e3);
|
|
1000
1000
|
}
|
|
1001
|
-
async function
|
|
1001
|
+
async function Y() {
|
|
1002
1002
|
var T;
|
|
1003
1003
|
if (await ((T = C.value) == null ? void 0 : T.validate())) return;
|
|
1004
|
-
|
|
1004
|
+
L.value = !0;
|
|
1005
1005
|
const {
|
|
1006
1006
|
error: b
|
|
1007
1007
|
} = await R.users.deleteAccount.post({
|
|
1008
1008
|
password: P.value.password,
|
|
1009
1009
|
userToken: P.value.userToken,
|
|
1010
|
-
emailVerifyId:
|
|
1010
|
+
emailVerifyId: c.value,
|
|
1011
1011
|
confirmText: P.value.confirmText
|
|
1012
1012
|
});
|
|
1013
|
-
|
|
1013
|
+
L.value = !1, b || (s.value = "success", d(), t(), l("deleted"));
|
|
1014
1014
|
}
|
|
1015
1015
|
function he() {
|
|
1016
1016
|
window.location.href = "/";
|
|
@@ -1021,7 +1021,7 @@ const De = Object.assign(ee, {
|
|
|
1021
1021
|
title: "注销账号"
|
|
1022
1022
|
}, {
|
|
1023
1023
|
action: a(() => [i(e(A), {
|
|
1024
|
-
size:
|
|
1024
|
+
size: u.size,
|
|
1025
1025
|
type: "primary",
|
|
1026
1026
|
status: "danger",
|
|
1027
1027
|
loading: y.value,
|
|
@@ -1040,11 +1040,11 @@ const De = Object.assign(ee, {
|
|
|
1040
1040
|
}, {
|
|
1041
1041
|
default: a(() => [...b[7] || (b[7] = [_(" 您的账号下还有以下资源,请先处理后再注销: ", -1)])]),
|
|
1042
1042
|
_: 1
|
|
1043
|
-
}), z("div", lt, [(g(!0), U(M, null, ze(
|
|
1043
|
+
}), z("div", lt, [(g(!0), U(M, null, ze(m.value, (T) => (g(), U("div", {
|
|
1044
1044
|
key: T.type,
|
|
1045
1045
|
class: "dependency-item"
|
|
1046
1046
|
}, [z("span", nt, B(T.label), 1), z("span", ot, B(T.count) + " 个", 1)]))), 128))]), z("div", rt, [i(e(A), {
|
|
1047
|
-
size:
|
|
1047
|
+
size: u.size,
|
|
1048
1048
|
onClick: b[0] || (b[0] = (T) => s.value = "check")
|
|
1049
1049
|
}, {
|
|
1050
1050
|
default: a(() => [...b[8] || (b[8] = [_("返回", -1)])]),
|
|
@@ -1054,15 +1054,15 @@ const De = Object.assign(ee, {
|
|
|
1054
1054
|
type: "normal",
|
|
1055
1055
|
title: "身份验证"
|
|
1056
1056
|
}, {
|
|
1057
|
-
action: a(() => [i(e(
|
|
1057
|
+
action: a(() => [i(e(ee), null, {
|
|
1058
1058
|
default: a(() => [i(e(A), {
|
|
1059
|
-
size:
|
|
1059
|
+
size: u.size,
|
|
1060
1060
|
onClick: b[1] || (b[1] = (T) => s.value = "check")
|
|
1061
1061
|
}, {
|
|
1062
1062
|
default: a(() => [...b[9] || (b[9] = [_("取消", -1)])]),
|
|
1063
1063
|
_: 1
|
|
1064
1064
|
}, 8, ["size"]), i(e(A), {
|
|
1065
|
-
size:
|
|
1065
|
+
size: u.size,
|
|
1066
1066
|
type: "primary",
|
|
1067
1067
|
loading: v.value,
|
|
1068
1068
|
onClick: W
|
|
@@ -1072,7 +1072,7 @@ const De = Object.assign(ee, {
|
|
|
1072
1072
|
}, 8, ["size", "loading"])]),
|
|
1073
1073
|
_: 1
|
|
1074
1074
|
})]),
|
|
1075
|
-
default: a(() => [_(" 为确保账号安全,我们将向您的邮箱 " + B(
|
|
1075
|
+
default: a(() => [_(" 为确保账号安全,我们将向您的邮箱 " + B(w.value) + " 发送验证码 ", 1)]),
|
|
1076
1076
|
_: 1
|
|
1077
1077
|
})) : s.value === "confirm" ? (g(), U(M, {
|
|
1078
1078
|
key: 3
|
|
@@ -1080,13 +1080,13 @@ const De = Object.assign(ee, {
|
|
|
1080
1080
|
type: "warning",
|
|
1081
1081
|
title: "确认注销"
|
|
1082
1082
|
}, {
|
|
1083
|
-
default: a(() => [_(" 验证码已发送至 " + B(
|
|
1083
|
+
default: a(() => [_(" 验证码已发送至 " + B(w.value) + ",此操作不可逆,请谨慎操作 ", 1)]),
|
|
1084
1084
|
_: 1
|
|
1085
1085
|
}), i(e(H), {
|
|
1086
1086
|
ref_key: "formRef",
|
|
1087
1087
|
ref: C,
|
|
1088
1088
|
model: P.value,
|
|
1089
|
-
size:
|
|
1089
|
+
size: u.size,
|
|
1090
1090
|
class: "confirm-form",
|
|
1091
1091
|
layout: "vertical"
|
|
1092
1092
|
}, {
|
|
@@ -1098,7 +1098,7 @@ const De = Object.assign(ee, {
|
|
|
1098
1098
|
message: "请输入验证码"
|
|
1099
1099
|
}]
|
|
1100
1100
|
}, {
|
|
1101
|
-
default: a(() => [i(e(
|
|
1101
|
+
default: a(() => [i(e(ee), null, {
|
|
1102
1102
|
default: a(() => [i(e(x), {
|
|
1103
1103
|
modelValue: P.value.userToken,
|
|
1104
1104
|
"onUpdate:modelValue": b[2] || (b[2] = (T) => P.value.userToken = T),
|
|
@@ -1109,11 +1109,11 @@ const De = Object.assign(ee, {
|
|
|
1109
1109
|
width: "180px"
|
|
1110
1110
|
}
|
|
1111
1111
|
}, null, 8, ["modelValue"]), i(e(A), {
|
|
1112
|
-
disabled:
|
|
1112
|
+
disabled: p.value > 0,
|
|
1113
1113
|
loading: v.value,
|
|
1114
1114
|
onClick: W
|
|
1115
1115
|
}, {
|
|
1116
|
-
default: a(() => [_(B(
|
|
1116
|
+
default: a(() => [_(B(p.value > 0 ? `${p.value}s 后重发` : "重新发送"), 1)]),
|
|
1117
1117
|
_: 1
|
|
1118
1118
|
}, 8, ["disabled", "loading"])]),
|
|
1119
1119
|
_: 1
|
|
@@ -1141,7 +1141,7 @@ const De = Object.assign(ee, {
|
|
|
1141
1141
|
required: !0,
|
|
1142
1142
|
message: "请输入确认文字"
|
|
1143
1143
|
}, {
|
|
1144
|
-
validator:
|
|
1144
|
+
validator: q
|
|
1145
1145
|
}]
|
|
1146
1146
|
}, {
|
|
1147
1147
|
default: a(() => [i(e(x), {
|
|
@@ -1152,7 +1152,7 @@ const De = Object.assign(ee, {
|
|
|
1152
1152
|
}, null, 8, ["modelValue"])]),
|
|
1153
1153
|
_: 1
|
|
1154
1154
|
}, 8, ["rules"]), i(e(I), null, {
|
|
1155
|
-
default: a(() => [i(e(
|
|
1155
|
+
default: a(() => [i(e(ee), null, {
|
|
1156
1156
|
default: a(() => [i(e(A), {
|
|
1157
1157
|
onClick: b[5] || (b[5] = (T) => s.value = "check")
|
|
1158
1158
|
}, {
|
|
@@ -1161,10 +1161,10 @@ const De = Object.assign(ee, {
|
|
|
1161
1161
|
}), i(e(A), {
|
|
1162
1162
|
type: "primary",
|
|
1163
1163
|
status: "danger",
|
|
1164
|
-
loading:
|
|
1165
|
-
onClick:
|
|
1164
|
+
loading: L.value,
|
|
1165
|
+
onClick: Y
|
|
1166
1166
|
}, {
|
|
1167
|
-
default: a(() => [_(B(
|
|
1167
|
+
default: a(() => [_(B(L.value ? "注销中..." : "确认注销"), 1)]),
|
|
1168
1168
|
_: 1
|
|
1169
1169
|
}, 8, ["loading"])]),
|
|
1170
1170
|
_: 1
|
|
@@ -1198,17 +1198,17 @@ const De = Object.assign(ee, {
|
|
|
1198
1198
|
__name: "AuthkitAppSetting",
|
|
1199
1199
|
emits: ["confirm", "cancel"],
|
|
1200
1200
|
setup(o, {
|
|
1201
|
-
expose:
|
|
1202
|
-
emit:
|
|
1201
|
+
expose: r,
|
|
1202
|
+
emit: u
|
|
1203
1203
|
}) {
|
|
1204
|
-
const l =
|
|
1204
|
+
const l = u;
|
|
1205
1205
|
function n() {
|
|
1206
1206
|
l("cancel");
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1209
|
-
|
|
1208
|
+
function d() {
|
|
1209
|
+
c.value = !1, l("cancel");
|
|
1210
1210
|
}
|
|
1211
|
-
const t =
|
|
1211
|
+
const t = h("large"), s = h(["PersonalInformation"]), y = h([{
|
|
1212
1212
|
name: "个人信息",
|
|
1213
1213
|
path: "PersonalInformation",
|
|
1214
1214
|
meta: {
|
|
@@ -1261,22 +1261,22 @@ const De = Object.assign(ee, {
|
|
|
1261
1261
|
// },
|
|
1262
1262
|
]
|
|
1263
1263
|
}]);
|
|
1264
|
-
function f
|
|
1265
|
-
const
|
|
1266
|
-
s.value = [
|
|
1264
|
+
function m(f) {
|
|
1265
|
+
const w = f.path;
|
|
1266
|
+
s.value = [w];
|
|
1267
1267
|
}
|
|
1268
1268
|
const {
|
|
1269
1269
|
changeType: v,
|
|
1270
|
-
show:
|
|
1270
|
+
show: c
|
|
1271
1271
|
} = Re(l);
|
|
1272
|
-
function
|
|
1273
|
-
|
|
1274
|
-
}
|
|
1275
|
-
return
|
|
1276
|
-
setData:
|
|
1277
|
-
}), (
|
|
1278
|
-
visible: e(
|
|
1279
|
-
"onUpdate:visible":
|
|
1272
|
+
function p(f, w) {
|
|
1273
|
+
c.value = w, v.value = "编辑";
|
|
1274
|
+
}
|
|
1275
|
+
return r({
|
|
1276
|
+
setData: p
|
|
1277
|
+
}), (f, w) => (g(), k(e(ce), {
|
|
1278
|
+
visible: e(c),
|
|
1279
|
+
"onUpdate:visible": w[1] || (w[1] = (C) => ue(c) ? c.value = C : null),
|
|
1280
1280
|
"unmount-on-close": "",
|
|
1281
1281
|
"body-class": "AppSettingbodyClass",
|
|
1282
1282
|
"mask-closable": !1,
|
|
@@ -1284,12 +1284,12 @@ const De = Object.assign(ee, {
|
|
|
1284
1284
|
width: "700px",
|
|
1285
1285
|
onCancel: n
|
|
1286
1286
|
}, {
|
|
1287
|
-
title: a(() => [...
|
|
1287
|
+
title: a(() => [...w[2] || (w[2] = [_(" 系统设置 ", -1)])]),
|
|
1288
1288
|
default: a(() => [z("div", mt, [z("div", ct, [i(Te, {
|
|
1289
1289
|
"selected-keys": s.value,
|
|
1290
|
-
"onUpdate:selectedKeys":
|
|
1290
|
+
"onUpdate:selectedKeys": w[0] || (w[0] = (C) => s.value = C),
|
|
1291
1291
|
menus: y.value,
|
|
1292
|
-
onChange:
|
|
1292
|
+
onChange: m
|
|
1293
1293
|
}, null, 8, ["selected-keys", "menus"])]), z("div", ft, [s.value[0] === "PersonalInformation" ? (g(), k(He, {
|
|
1294
1294
|
key: 0,
|
|
1295
1295
|
size: t.value
|
|
@@ -1305,32 +1305,32 @@ const De = Object.assign(ee, {
|
|
|
1305
1305
|
}, null, 8, ["size"])) : S("", !0), s.value[0] === "AccountDelete" ? (g(), k(dt, {
|
|
1306
1306
|
key: 4,
|
|
1307
1307
|
size: t.value,
|
|
1308
|
-
onDeleted:
|
|
1308
|
+
onDeleted: d
|
|
1309
1309
|
}, null, 8, ["size"])) : S("", !0)])])]),
|
|
1310
1310
|
_: 1
|
|
1311
1311
|
}, 8, ["visible"]));
|
|
1312
1312
|
}
|
|
1313
|
-
}), wi = /* @__PURE__ */ $(pt, [["__scopeId", "data-v-
|
|
1314
|
-
function
|
|
1313
|
+
}), wi = /* @__PURE__ */ $(pt, [["__scopeId", "data-v-1ff986a5"]]);
|
|
1314
|
+
function ve() {
|
|
1315
1315
|
return j.oauthCallbackUrl ? j.oauthCallbackUrl : `${window.location.origin}/auth/callback`;
|
|
1316
1316
|
}
|
|
1317
1317
|
function vt() {
|
|
1318
1318
|
const o = window.location.pathname + window.location.search;
|
|
1319
1319
|
o.includes("/auth/callback") || sessionStorage.setItem("auth_redirect", o);
|
|
1320
1320
|
}
|
|
1321
|
-
async function Q(o,
|
|
1322
|
-
const
|
|
1323
|
-
if (!
|
|
1321
|
+
async function Q(o, r) {
|
|
1322
|
+
const u = j.appId;
|
|
1323
|
+
if (!u) {
|
|
1324
1324
|
console.error(`${o} OAuth 失败: appId 未配置`);
|
|
1325
1325
|
return;
|
|
1326
1326
|
}
|
|
1327
|
-
const l =
|
|
1328
|
-
appId:
|
|
1329
|
-
referrerId:
|
|
1327
|
+
const l = ve(), n = {
|
|
1328
|
+
appId: u,
|
|
1329
|
+
referrerId: r == null ? void 0 : r.referrerId,
|
|
1330
1330
|
redirectUri: l
|
|
1331
1331
|
};
|
|
1332
1332
|
vt();
|
|
1333
|
-
const
|
|
1333
|
+
const d = {
|
|
1334
1334
|
github: () => R.oauth.github.login.get(n),
|
|
1335
1335
|
google: () => R.oauth.google.login.get(n),
|
|
1336
1336
|
microsoft: () => R.oauth.microsoft.login.get(n)
|
|
@@ -1338,7 +1338,7 @@ async function Q(o, u) {
|
|
|
1338
1338
|
try {
|
|
1339
1339
|
const {
|
|
1340
1340
|
data: t
|
|
1341
|
-
} = await
|
|
1341
|
+
} = await d[o]();
|
|
1342
1342
|
t != null && t.redirectUri ? window.location.href = t.redirectUri : console.error(`${o} OAuth 重定向URL为空`);
|
|
1343
1343
|
} catch (t) {
|
|
1344
1344
|
console.error(`${o} OAuth 授权失败:`, t);
|
|
@@ -1359,16 +1359,16 @@ function wt(o) {
|
|
|
1359
1359
|
referrerId: o
|
|
1360
1360
|
});
|
|
1361
1361
|
}
|
|
1362
|
-
function
|
|
1362
|
+
function ge() {
|
|
1363
1363
|
return {
|
|
1364
1364
|
githubAuth: gt,
|
|
1365
1365
|
googleAuth: yt,
|
|
1366
1366
|
microsoftAuth: wt,
|
|
1367
1367
|
startOauth: Q,
|
|
1368
|
-
getOauthCallbackUrl:
|
|
1368
|
+
getOauthCallbackUrl: ve
|
|
1369
1369
|
};
|
|
1370
1370
|
}
|
|
1371
|
-
const hi =
|
|
1371
|
+
const hi = ge, ie = /* @__PURE__ */ V({
|
|
1372
1372
|
__name: "AuthkitOauthItem",
|
|
1373
1373
|
props: {
|
|
1374
1374
|
size: {
|
|
@@ -1388,18 +1388,18 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1388
1388
|
},
|
|
1389
1389
|
emits: [],
|
|
1390
1390
|
setup(o, {
|
|
1391
|
-
emit:
|
|
1391
|
+
emit: r
|
|
1392
1392
|
}) {
|
|
1393
|
-
const
|
|
1393
|
+
const u = o;
|
|
1394
1394
|
return (l, n) => (g(), k(e(A), {
|
|
1395
1395
|
class: "OAuthItem",
|
|
1396
1396
|
type: "primary",
|
|
1397
|
-
size:
|
|
1397
|
+
size: u.size
|
|
1398
1398
|
}, {
|
|
1399
1399
|
icon: a(() => [i(e(Le), {
|
|
1400
|
-
icon:
|
|
1400
|
+
icon: u.icon
|
|
1401
1401
|
}, null, 8, ["icon"])]),
|
|
1402
|
-
default: a(() => [z("span", null, B(
|
|
1402
|
+
default: a(() => [z("span", null, B(u.label), 1)]),
|
|
1403
1403
|
_: 1
|
|
1404
1404
|
}, 8, ["size"]));
|
|
1405
1405
|
}
|
|
@@ -1421,36 +1421,36 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1421
1421
|
},
|
|
1422
1422
|
setup(o) {
|
|
1423
1423
|
const {
|
|
1424
|
-
appsData:
|
|
1425
|
-
} =
|
|
1424
|
+
appsData: r
|
|
1425
|
+
} = ae(), u = o, {
|
|
1426
1426
|
githubAuth: l,
|
|
1427
1427
|
googleAuth: n,
|
|
1428
|
-
microsoftAuth:
|
|
1429
|
-
} =
|
|
1428
|
+
microsoftAuth: d
|
|
1429
|
+
} = ge(), t = N(() => !(!r.value.oauth.google.enabled && !r.value.oauth.microsoft.enabled && !r.value.oauth.github.enabled && !r.value.oauth.wechat.enabled));
|
|
1430
1430
|
return (s, y) => (g(), U("div", ht, [t.value ? (g(), k(e(Pe), {
|
|
1431
1431
|
key: 0,
|
|
1432
1432
|
orientation: "center"
|
|
1433
1433
|
}, {
|
|
1434
1434
|
default: a(() => [...y[3] || (y[3] = [_("OAuth登陆", -1)])]),
|
|
1435
1435
|
_: 1
|
|
1436
|
-
})) : S("", !0), z("div", _t, [e(
|
|
1436
|
+
})) : S("", !0), z("div", _t, [e(r).oauth.github.enabled ? (g(), k(ie, {
|
|
1437
1437
|
key: 0,
|
|
1438
1438
|
icon: "mdi:github",
|
|
1439
1439
|
label: "Github",
|
|
1440
|
-
size:
|
|
1441
|
-
onClick: y[0] || (y[0] = (
|
|
1442
|
-
}, null, 8, ["size"])) : S("", !0), e(
|
|
1440
|
+
size: u.size,
|
|
1441
|
+
onClick: y[0] || (y[0] = (m) => e(l)())
|
|
1442
|
+
}, null, 8, ["size"])) : S("", !0), e(r).oauth.google.enabled ? (g(), k(ie, {
|
|
1443
1443
|
key: 1,
|
|
1444
1444
|
icon: "mdi:google",
|
|
1445
1445
|
label: "Google",
|
|
1446
|
-
size:
|
|
1447
|
-
onClick: y[1] || (y[1] = (
|
|
1448
|
-
}, null, 8, ["size"])) : S("", !0), e(
|
|
1446
|
+
size: u.size,
|
|
1447
|
+
onClick: y[1] || (y[1] = (m) => e(n)())
|
|
1448
|
+
}, null, 8, ["size"])) : S("", !0), e(r).oauth.microsoft.enabled ? (g(), k(ie, {
|
|
1449
1449
|
key: 2,
|
|
1450
1450
|
icon: "mdi:microsoft",
|
|
1451
1451
|
label: "Microsoft",
|
|
1452
|
-
size:
|
|
1453
|
-
onClick: y[2] || (y[2] = (
|
|
1452
|
+
size: u.size,
|
|
1453
|
+
onClick: y[2] || (y[2] = (m) => e(d)())
|
|
1454
1454
|
}, null, 8, ["size"])) : S("", !0)])]));
|
|
1455
1455
|
}
|
|
1456
1456
|
}), kt = /* @__PURE__ */ $(bt, [["__scopeId", "data-v-886fd902"]]), zt = {
|
|
@@ -1474,9 +1474,9 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1474
1474
|
},
|
|
1475
1475
|
emits: ["signIn", "submit"],
|
|
1476
1476
|
setup(o, {
|
|
1477
|
-
emit:
|
|
1477
|
+
emit: r
|
|
1478
1478
|
}) {
|
|
1479
|
-
const
|
|
1479
|
+
const u = r, l = o, n = h(), d = h(!1), t = h(), s = h({
|
|
1480
1480
|
email: void 0,
|
|
1481
1481
|
userToken: void 0,
|
|
1482
1482
|
emailVerifyId: void 0,
|
|
@@ -1485,21 +1485,21 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1485
1485
|
});
|
|
1486
1486
|
async function y() {
|
|
1487
1487
|
if (!await t.value.validateField(["email"])) {
|
|
1488
|
-
|
|
1488
|
+
d.value = !0;
|
|
1489
1489
|
const {
|
|
1490
|
-
data:
|
|
1490
|
+
data: c
|
|
1491
1491
|
} = await R.verify.email.retry.post({
|
|
1492
1492
|
email: s.value.email
|
|
1493
1493
|
});
|
|
1494
|
-
|
|
1494
|
+
d.value = !1, c && (s.value.emailVerifyId = c.emailVerifyId, n.value.startCountFn());
|
|
1495
1495
|
}
|
|
1496
1496
|
}
|
|
1497
|
-
async function
|
|
1497
|
+
async function m() {
|
|
1498
1498
|
t.value.validate().then((v) => {
|
|
1499
|
-
v ||
|
|
1499
|
+
v || u("submit", s.value);
|
|
1500
1500
|
});
|
|
1501
1501
|
}
|
|
1502
|
-
return (v,
|
|
1502
|
+
return (v, c) => (g(), U("div", zt, [i(e(H), {
|
|
1503
1503
|
ref_key: "formRef",
|
|
1504
1504
|
ref: t,
|
|
1505
1505
|
model: s.value,
|
|
@@ -1520,7 +1520,7 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1520
1520
|
}, {
|
|
1521
1521
|
default: a(() => [i(e(x), {
|
|
1522
1522
|
modelValue: s.value.email,
|
|
1523
|
-
"onUpdate:modelValue":
|
|
1523
|
+
"onUpdate:modelValue": c[0] || (c[0] = (p) => s.value.email = p),
|
|
1524
1524
|
placeholder: "请输入邮箱"
|
|
1525
1525
|
}, null, 8, ["modelValue"])]),
|
|
1526
1526
|
_: 1
|
|
@@ -1535,13 +1535,13 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1535
1535
|
}, {
|
|
1536
1536
|
default: a(() => [z("div", St, [i(e(x), {
|
|
1537
1537
|
modelValue: s.value.userToken,
|
|
1538
|
-
"onUpdate:modelValue":
|
|
1538
|
+
"onUpdate:modelValue": c[1] || (c[1] = (p) => s.value.userToken = p),
|
|
1539
1539
|
placeholder: "请输入验证码"
|
|
1540
|
-
}, null, 8, ["modelValue"]), i(
|
|
1540
|
+
}, null, 8, ["modelValue"]), i(le, {
|
|
1541
1541
|
ref_key: "SendVerifyCodeRef",
|
|
1542
1542
|
ref: n,
|
|
1543
1543
|
size: l.size,
|
|
1544
|
-
loading:
|
|
1544
|
+
loading: d.value,
|
|
1545
1545
|
style: {
|
|
1546
1546
|
"margin-left": "10px"
|
|
1547
1547
|
},
|
|
@@ -1562,7 +1562,7 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1562
1562
|
}, {
|
|
1563
1563
|
default: a(() => [i(e(x), {
|
|
1564
1564
|
modelValue: s.value.password,
|
|
1565
|
-
"onUpdate:modelValue":
|
|
1565
|
+
"onUpdate:modelValue": c[2] || (c[2] = (p) => s.value.password = p),
|
|
1566
1566
|
placeholder: "请输入密码",
|
|
1567
1567
|
type: "password",
|
|
1568
1568
|
autocomplete: ""
|
|
@@ -1579,14 +1579,14 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1579
1579
|
minLength: 10,
|
|
1580
1580
|
message: "确认密码不能少于10字符"
|
|
1581
1581
|
}, {
|
|
1582
|
-
validator: (
|
|
1583
|
-
|
|
1582
|
+
validator: (p, f) => {
|
|
1583
|
+
p !== s.value.password ? f("两次密码输入不一致,请重新输入") : f();
|
|
1584
1584
|
}
|
|
1585
1585
|
}]
|
|
1586
1586
|
}, {
|
|
1587
1587
|
default: a(() => [i(e(x), {
|
|
1588
1588
|
modelValue: s.value.confirmPassword,
|
|
1589
|
-
"onUpdate:modelValue":
|
|
1589
|
+
"onUpdate:modelValue": c[3] || (c[3] = (p) => s.value.confirmPassword = p),
|
|
1590
1590
|
placeholder: "请输入确认密码密码",
|
|
1591
1591
|
type: "password",
|
|
1592
1592
|
autocomplete: ""
|
|
@@ -1597,9 +1597,9 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1597
1597
|
loading: l.loading,
|
|
1598
1598
|
long: "",
|
|
1599
1599
|
size: l.size,
|
|
1600
|
-
onClick:
|
|
1600
|
+
onClick: m
|
|
1601
1601
|
}, {
|
|
1602
|
-
default: a(() => [...
|
|
1602
|
+
default: a(() => [...c[4] || (c[4] = [_(" 提交 ", -1)])]),
|
|
1603
1603
|
_: 1
|
|
1604
1604
|
}, 8, ["loading", "size"])])]),
|
|
1605
1605
|
_: 1
|
|
@@ -1611,23 +1611,23 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1611
1611
|
__name: "AuthkitSwitchSignIn",
|
|
1612
1612
|
emits: ["switchSignIn"],
|
|
1613
1613
|
setup(o, {
|
|
1614
|
-
emit:
|
|
1614
|
+
emit: r
|
|
1615
1615
|
}) {
|
|
1616
|
-
const
|
|
1616
|
+
const u = r;
|
|
1617
1617
|
function l() {
|
|
1618
|
-
|
|
1618
|
+
u("switchSignIn");
|
|
1619
1619
|
}
|
|
1620
|
-
return (n,
|
|
1620
|
+
return (n, d) => (g(), U("div", Pt, [z("span", null, [d[1] || (d[1] = z("span", null, "已经有账号?", -1)), i(e(G), {
|
|
1621
1621
|
style: {
|
|
1622
1622
|
padding: "0px"
|
|
1623
1623
|
},
|
|
1624
1624
|
onClick: l
|
|
1625
1625
|
}, {
|
|
1626
|
-
default: a(() => [...
|
|
1626
|
+
default: a(() => [...d[0] || (d[0] = [_("去登陆", -1)])]),
|
|
1627
1627
|
_: 1
|
|
1628
1628
|
})])]));
|
|
1629
1629
|
}
|
|
1630
|
-
}),
|
|
1630
|
+
}), ye = /* @__PURE__ */ $(Ut, [["__scopeId", "data-v-fc1d3903"]]), $t = {
|
|
1631
1631
|
class: "ResetPassword"
|
|
1632
1632
|
}, Ct = /* @__PURE__ */ V({
|
|
1633
1633
|
__name: "AuthkitResetPassword",
|
|
@@ -1645,20 +1645,20 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1645
1645
|
},
|
|
1646
1646
|
emits: ["switchSignIn", "submit"],
|
|
1647
1647
|
setup(o, {
|
|
1648
|
-
emit:
|
|
1648
|
+
emit: r
|
|
1649
1649
|
}) {
|
|
1650
|
-
const
|
|
1650
|
+
const u = r, l = o;
|
|
1651
1651
|
function n() {
|
|
1652
|
-
|
|
1652
|
+
u("switchSignIn");
|
|
1653
1653
|
}
|
|
1654
|
-
async function
|
|
1655
|
-
|
|
1654
|
+
async function d(t) {
|
|
1655
|
+
u("submit", t);
|
|
1656
1656
|
}
|
|
1657
1657
|
return (t, s) => (g(), U("div", $t, [i(At, {
|
|
1658
1658
|
loading: o.loading,
|
|
1659
1659
|
size: l.size,
|
|
1660
|
-
onSubmit:
|
|
1661
|
-
}, null, 8, ["loading", "size"]), i(
|
|
1660
|
+
onSubmit: d
|
|
1661
|
+
}, null, 8, ["loading", "size"]), i(ye, {
|
|
1662
1662
|
onSwitchSignIn: n
|
|
1663
1663
|
})]));
|
|
1664
1664
|
}
|
|
@@ -1668,16 +1668,16 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1668
1668
|
__name: "AuthkitServiceAgreementAndPrivacyProtection",
|
|
1669
1669
|
emits: ["toUserServiceAgreement", "toPrivacyPolicy"],
|
|
1670
1670
|
setup(o, {
|
|
1671
|
-
emit:
|
|
1671
|
+
emit: r
|
|
1672
1672
|
}) {
|
|
1673
|
-
const
|
|
1673
|
+
const u = r;
|
|
1674
1674
|
function l() {
|
|
1675
|
-
|
|
1675
|
+
u("toUserServiceAgreement");
|
|
1676
1676
|
}
|
|
1677
1677
|
function n() {
|
|
1678
|
-
|
|
1678
|
+
u("toPrivacyPolicy");
|
|
1679
1679
|
}
|
|
1680
|
-
return (
|
|
1680
|
+
return (d, t) => (g(), U("div", qt, [t[2] || (t[2] = z("span", null, " 注册登陆即表示同意", -1)), i(e(G), {
|
|
1681
1681
|
onClick: l
|
|
1682
1682
|
}, {
|
|
1683
1683
|
default: a(() => [...t[0] || (t[0] = [_("用户服务协议", -1)])]),
|
|
@@ -1708,54 +1708,54 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1708
1708
|
},
|
|
1709
1709
|
emits: ["submit"],
|
|
1710
1710
|
setup(o, {
|
|
1711
|
-
emit:
|
|
1711
|
+
emit: r
|
|
1712
1712
|
}) {
|
|
1713
|
-
const
|
|
1714
|
-
async function n(y,
|
|
1715
|
-
var
|
|
1713
|
+
const u = r, l = o;
|
|
1714
|
+
async function n(y, m) {
|
|
1715
|
+
var L;
|
|
1716
1716
|
if (!y) {
|
|
1717
|
-
|
|
1717
|
+
m("请输入密码");
|
|
1718
1718
|
return;
|
|
1719
1719
|
}
|
|
1720
1720
|
const {
|
|
1721
1721
|
data: v,
|
|
1722
|
-
error:
|
|
1722
|
+
error: c
|
|
1723
1723
|
} = await R.verify.password.post({
|
|
1724
1724
|
password: y
|
|
1725
1725
|
});
|
|
1726
|
-
if (
|
|
1727
|
-
|
|
1726
|
+
if (c) {
|
|
1727
|
+
m(c.message || "密码验证请求出错!");
|
|
1728
1728
|
return;
|
|
1729
1729
|
}
|
|
1730
1730
|
if (!v) {
|
|
1731
|
-
|
|
1731
|
+
m("密码验证请求出错!");
|
|
1732
1732
|
return;
|
|
1733
1733
|
}
|
|
1734
1734
|
const {
|
|
1735
|
-
isPass:
|
|
1736
|
-
feedback:
|
|
1737
|
-
score:
|
|
1735
|
+
isPass: p,
|
|
1736
|
+
feedback: f,
|
|
1737
|
+
score: w,
|
|
1738
1738
|
minPasswordComplexity: C
|
|
1739
1739
|
} = v;
|
|
1740
|
-
if (!(
|
|
1741
|
-
const
|
|
1742
|
-
|
|
1740
|
+
if (!(p === !0 || p === "true" || typeof p == "boolean" && p)) {
|
|
1741
|
+
const q = (f == null ? void 0 : f.warning) || ((L = f == null ? void 0 : f.suggestions) != null && L.length ? f.suggestions.join(", ") : "") || "密码强度不足";
|
|
1742
|
+
m(q);
|
|
1743
1743
|
return;
|
|
1744
1744
|
}
|
|
1745
|
-
|
|
1745
|
+
m();
|
|
1746
1746
|
}
|
|
1747
|
-
const
|
|
1747
|
+
const d = h(), t = h({
|
|
1748
1748
|
email: void 0,
|
|
1749
1749
|
password: void 0
|
|
1750
1750
|
});
|
|
1751
1751
|
async function s() {
|
|
1752
|
-
|
|
1753
|
-
y ||
|
|
1752
|
+
d.value.validate().then((y) => {
|
|
1753
|
+
y || u("submit", t.value);
|
|
1754
1754
|
});
|
|
1755
1755
|
}
|
|
1756
|
-
return (y,
|
|
1756
|
+
return (y, m) => (g(), U("div", Lt, [i(e(H), {
|
|
1757
1757
|
ref_key: "formRef",
|
|
1758
|
-
ref:
|
|
1758
|
+
ref: d,
|
|
1759
1759
|
model: t.value,
|
|
1760
1760
|
size: l.size,
|
|
1761
1761
|
"auto-label-width": ""
|
|
@@ -1774,7 +1774,7 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1774
1774
|
}, {
|
|
1775
1775
|
default: a(() => [i(e(x), {
|
|
1776
1776
|
modelValue: t.value.email,
|
|
1777
|
-
"onUpdate:modelValue":
|
|
1777
|
+
"onUpdate:modelValue": m[0] || (m[0] = (v) => t.value.email = v),
|
|
1778
1778
|
placeholder: "请输入邮箱",
|
|
1779
1779
|
autocomplete: "email username",
|
|
1780
1780
|
type: "email"
|
|
@@ -1793,7 +1793,7 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1793
1793
|
}, {
|
|
1794
1794
|
default: a(() => [i(e(x), {
|
|
1795
1795
|
modelValue: t.value.password,
|
|
1796
|
-
"onUpdate:modelValue":
|
|
1796
|
+
"onUpdate:modelValue": m[1] || (m[1] = (v) => t.value.password = v),
|
|
1797
1797
|
placeholder: "请输入密码",
|
|
1798
1798
|
type: "password",
|
|
1799
1799
|
autocomplete: "current-password"
|
|
@@ -1806,7 +1806,7 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1806
1806
|
size: l.size,
|
|
1807
1807
|
onClick: s
|
|
1808
1808
|
}, {
|
|
1809
|
-
default: a(() => [...
|
|
1809
|
+
default: a(() => [...m[2] || (m[2] = [_(" 登陆 ", -1)])]),
|
|
1810
1810
|
_: 1
|
|
1811
1811
|
}, 8, ["loading", "size"])])]),
|
|
1812
1812
|
_: 1
|
|
@@ -1818,16 +1818,16 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1818
1818
|
__name: "AuthkitSwitchSignUpOrResetPassword",
|
|
1819
1819
|
emits: ["switchSignUp", "switchResetPassword"],
|
|
1820
1820
|
setup(o, {
|
|
1821
|
-
emit:
|
|
1821
|
+
emit: r
|
|
1822
1822
|
}) {
|
|
1823
|
-
const
|
|
1823
|
+
const u = r;
|
|
1824
1824
|
function l() {
|
|
1825
|
-
|
|
1825
|
+
u("switchSignUp");
|
|
1826
1826
|
}
|
|
1827
1827
|
function n() {
|
|
1828
|
-
|
|
1828
|
+
u("switchResetPassword");
|
|
1829
1829
|
}
|
|
1830
|
-
return (
|
|
1830
|
+
return (d, t) => (g(), U("div", Dt, [z("span", null, [t[1] || (t[1] = z("span", null, " 还没有账户?", -1)), i(e(G), {
|
|
1831
1831
|
style: {
|
|
1832
1832
|
padding: "0px"
|
|
1833
1833
|
},
|
|
@@ -1862,23 +1862,23 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1862
1862
|
},
|
|
1863
1863
|
emits: ["submit", "switchSignUp", "switchResetPassword"],
|
|
1864
1864
|
setup(o, {
|
|
1865
|
-
emit:
|
|
1865
|
+
emit: r
|
|
1866
1866
|
}) {
|
|
1867
|
-
const
|
|
1867
|
+
const u = r, l = o, n = Se(), d = N(() => !!n.OAuth);
|
|
1868
1868
|
function t() {
|
|
1869
|
-
|
|
1869
|
+
u("switchSignUp");
|
|
1870
1870
|
}
|
|
1871
1871
|
function s() {
|
|
1872
|
-
|
|
1872
|
+
u("switchResetPassword");
|
|
1873
1873
|
}
|
|
1874
|
-
async function y(
|
|
1875
|
-
|
|
1874
|
+
async function y(m) {
|
|
1875
|
+
u("submit", m);
|
|
1876
1876
|
}
|
|
1877
|
-
return (
|
|
1877
|
+
return (m, v) => (g(), U("div", Ht, [S("", !0), i(Et, {
|
|
1878
1878
|
loading: l.loading,
|
|
1879
1879
|
size: l.size,
|
|
1880
1880
|
onSubmit: y
|
|
1881
|
-
}, null, 8, ["loading", "size"]),
|
|
1881
|
+
}, null, 8, ["loading", "size"]), d.value ? de(m.$slots, "OAuth", {
|
|
1882
1882
|
key: 1
|
|
1883
1883
|
}, void 0, !0) : S("", !0), i(Ft, {
|
|
1884
1884
|
onSwitchSignUp: t,
|
|
@@ -1902,20 +1902,20 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1902
1902
|
},
|
|
1903
1903
|
emits: ["switchSignIn", "submit"],
|
|
1904
1904
|
setup(o, {
|
|
1905
|
-
emit:
|
|
1905
|
+
emit: r
|
|
1906
1906
|
}) {
|
|
1907
|
-
const
|
|
1907
|
+
const u = r, l = o;
|
|
1908
1908
|
function n() {
|
|
1909
|
-
|
|
1909
|
+
u("switchSignIn");
|
|
1910
1910
|
}
|
|
1911
|
-
async function
|
|
1912
|
-
|
|
1911
|
+
async function d(t) {
|
|
1912
|
+
u("submit", t);
|
|
1913
1913
|
}
|
|
1914
|
-
return (t, s) => (g(), U("div", jt, [i(
|
|
1914
|
+
return (t, s) => (g(), U("div", jt, [i(pe, {
|
|
1915
1915
|
size: l.size,
|
|
1916
1916
|
loading: o.loading,
|
|
1917
|
-
onSubmit:
|
|
1918
|
-
}, null, 8, ["size", "loading"]), i(
|
|
1917
|
+
onSubmit: d
|
|
1918
|
+
}, null, 8, ["size", "loading"]), i(ye, {
|
|
1919
1919
|
onSwitchSignIn: n
|
|
1920
1920
|
})]));
|
|
1921
1921
|
}
|
|
@@ -1939,14 +1939,14 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1939
1939
|
}
|
|
1940
1940
|
},
|
|
1941
1941
|
setup(o) {
|
|
1942
|
-
const
|
|
1943
|
-
currentView:
|
|
1942
|
+
const r = o, u = `${r.size}px`, l = `${r.fontSize}px`, n = `${r.lineHeight}px`, {
|
|
1943
|
+
currentView: d
|
|
1944
1944
|
} = J(), {
|
|
1945
1945
|
appsData: t
|
|
1946
|
-
} =
|
|
1947
|
-
return (y,
|
|
1946
|
+
} = ae(), s = N(() => d.value === "signIn" ? `${t.value.name}登录` : d.value === "signUp" ? `${t.value.name}账号注册` : d.value === "resetPassword" ? `${t.value.name}密码重置` : "");
|
|
1947
|
+
return (y, m) => (g(), U("div", {
|
|
1948
1948
|
class: "Title",
|
|
1949
|
-
style:
|
|
1949
|
+
style: se({
|
|
1950
1950
|
fontSize: l,
|
|
1951
1951
|
lineHeight: n
|
|
1952
1952
|
})
|
|
@@ -1954,12 +1954,12 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1954
1954
|
key: 0,
|
|
1955
1955
|
src: e(t).applicationLogoUrl,
|
|
1956
1956
|
srcset: "",
|
|
1957
|
-
style:
|
|
1958
|
-
width:
|
|
1957
|
+
style: se({
|
|
1958
|
+
width: u
|
|
1959
1959
|
})
|
|
1960
|
-
}, null, 12, Zt)) : S("", !0), z("span", null, B(s.value), 1),
|
|
1960
|
+
}, null, 12, Zt)) : S("", !0), z("span", null, B(s.value), 1), de(y.$slots, "default", {}, void 0, !0)], 4));
|
|
1961
1961
|
}
|
|
1962
|
-
}),
|
|
1962
|
+
}), we = /* @__PURE__ */ $(Jt, [["__scopeId", "data-v-8ebe7939"]]), Qt = {
|
|
1963
1963
|
class: "Auth"
|
|
1964
1964
|
}, Xt = {
|
|
1965
1965
|
class: "body"
|
|
@@ -1977,62 +1977,62 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1977
1977
|
},
|
|
1978
1978
|
emits: ["toPrivacyPolicy", "toUserServiceAgreement"],
|
|
1979
1979
|
setup(o, {
|
|
1980
|
-
emit:
|
|
1980
|
+
emit: r
|
|
1981
1981
|
}) {
|
|
1982
|
-
const
|
|
1982
|
+
const u = o, l = r, {
|
|
1983
1983
|
signInSubmit: n,
|
|
1984
|
-
signUpSubmit:
|
|
1984
|
+
signUpSubmit: d,
|
|
1985
1985
|
resetPasswordSubmit: t,
|
|
1986
1986
|
currentView: s,
|
|
1987
1987
|
authSignInLoading: y,
|
|
1988
|
-
authSignUpLoading:
|
|
1988
|
+
authSignUpLoading: m,
|
|
1989
1989
|
resetPasswordLoading: v,
|
|
1990
|
-
switchSignUp:
|
|
1991
|
-
switchResetPassword:
|
|
1992
|
-
switchSignIn:
|
|
1990
|
+
switchSignUp: c,
|
|
1991
|
+
switchResetPassword: p,
|
|
1992
|
+
switchSignIn: f
|
|
1993
1993
|
} = J(), {
|
|
1994
|
-
appsAuthPageInfoApi:
|
|
1995
|
-
} =
|
|
1994
|
+
appsAuthPageInfoApi: w
|
|
1995
|
+
} = ae();
|
|
1996
1996
|
function C() {
|
|
1997
1997
|
l("toPrivacyPolicy");
|
|
1998
1998
|
}
|
|
1999
1999
|
function P() {
|
|
2000
2000
|
l("toUserServiceAgreement");
|
|
2001
2001
|
}
|
|
2002
|
-
return
|
|
2002
|
+
return w(), (L, q) => (g(), U("div", Qt, [o.showTitle ? (g(), k(we, {
|
|
2003
2003
|
key: 0,
|
|
2004
2004
|
size: 32,
|
|
2005
2005
|
"font-size": 20
|
|
2006
2006
|
})) : S("", !0), z("div", Xt, [e(s) === "signIn" ? (g(), k(Gt, {
|
|
2007
2007
|
key: 0,
|
|
2008
|
-
size:
|
|
2008
|
+
size: u.size,
|
|
2009
2009
|
loading: e(y),
|
|
2010
|
-
onSwitchSignUp: e(
|
|
2011
|
-
onSwitchResetPassword: e(
|
|
2012
|
-
onSubmit:
|
|
2010
|
+
onSwitchSignUp: e(c),
|
|
2011
|
+
onSwitchResetPassword: e(p),
|
|
2012
|
+
onSubmit: q[0] || (q[0] = (E) => e(n)(E))
|
|
2013
2013
|
}, {
|
|
2014
2014
|
OAuth: a(() => [i(kt, {
|
|
2015
|
-
size:
|
|
2015
|
+
size: u.size
|
|
2016
2016
|
}, null, 8, ["size"])]),
|
|
2017
2017
|
_: 1
|
|
2018
2018
|
}, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : e(s) === "signUp" ? (g(), k(Kt, {
|
|
2019
2019
|
key: 1,
|
|
2020
|
-
size:
|
|
2021
|
-
loading: e(
|
|
2022
|
-
onSwitchSignIn: e(
|
|
2023
|
-
onSubmit:
|
|
2020
|
+
size: u.size,
|
|
2021
|
+
loading: e(m),
|
|
2022
|
+
onSwitchSignIn: e(f),
|
|
2023
|
+
onSubmit: q[1] || (q[1] = (E) => e(d)(E))
|
|
2024
2024
|
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(s) === "resetPassword" ? (g(), k(xt, {
|
|
2025
2025
|
key: 2,
|
|
2026
|
-
size:
|
|
2026
|
+
size: u.size,
|
|
2027
2027
|
loading: e(v),
|
|
2028
|
-
onSwitchSignIn: e(
|
|
2029
|
-
onSubmit:
|
|
2028
|
+
onSwitchSignIn: e(f),
|
|
2029
|
+
onSubmit: q[2] || (q[2] = (E) => e(t)(E))
|
|
2030
2030
|
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : S("", !0), i(Rt, {
|
|
2031
2031
|
onToPrivacyPolicy: C,
|
|
2032
2032
|
onToUserServiceAgreement: P
|
|
2033
2033
|
})])]));
|
|
2034
2034
|
}
|
|
2035
|
-
}), ei = /* @__PURE__ */ $(Yt, [["__scopeId", "data-v-
|
|
2035
|
+
}), ei = /* @__PURE__ */ $(Yt, [["__scopeId", "data-v-de36d1d1"]]), ti = /* @__PURE__ */ V({
|
|
2036
2036
|
__name: "AuthkitAuthModal",
|
|
2037
2037
|
props: {
|
|
2038
2038
|
size: {
|
|
@@ -2046,24 +2046,24 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
2046
2046
|
},
|
|
2047
2047
|
emits: ["confirm", "close", "toPrivacyPolicy", "toUserServiceAgreement"],
|
|
2048
2048
|
setup(o, {
|
|
2049
|
-
emit:
|
|
2049
|
+
emit: r
|
|
2050
2050
|
}) {
|
|
2051
2051
|
const {
|
|
2052
|
-
addSignInCallback:
|
|
2052
|
+
addSignInCallback: u
|
|
2053
2053
|
} = J(), {
|
|
2054
2054
|
show: l
|
|
2055
|
-
} = Ue(), n = o,
|
|
2055
|
+
} = Ue(), n = o, d = r;
|
|
2056
2056
|
function t(y) {
|
|
2057
2057
|
y(!0);
|
|
2058
2058
|
}
|
|
2059
2059
|
function s() {
|
|
2060
|
-
l.value = !1,
|
|
2060
|
+
l.value = !1, d("close");
|
|
2061
2061
|
}
|
|
2062
|
-
return
|
|
2062
|
+
return u(() => {
|
|
2063
2063
|
l.value = !1;
|
|
2064
|
-
}), (y,
|
|
2064
|
+
}), (y, m) => (g(), k(e(ce), {
|
|
2065
2065
|
visible: e(l),
|
|
2066
|
-
"onUpdate:visible":
|
|
2066
|
+
"onUpdate:visible": m[2] || (m[2] = (v) => ue(l) ? l.value = v : null),
|
|
2067
2067
|
footer: !1,
|
|
2068
2068
|
"mask-closable": !1,
|
|
2069
2069
|
"title-align": "center",
|
|
@@ -2073,31 +2073,31 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
2073
2073
|
onBeforeOk: t,
|
|
2074
2074
|
onClose: s
|
|
2075
2075
|
}, {
|
|
2076
|
-
title: a(() => [i(
|
|
2076
|
+
title: a(() => [i(we)]),
|
|
2077
2077
|
default: a(() => [i(ei, {
|
|
2078
2078
|
"show-title": !1,
|
|
2079
2079
|
size: n.size,
|
|
2080
|
-
onToPrivacyPolicy:
|
|
2081
|
-
onToUserServiceAgreement:
|
|
2080
|
+
onToPrivacyPolicy: m[0] || (m[0] = (v) => d("toPrivacyPolicy")),
|
|
2081
|
+
onToUserServiceAgreement: m[1] || (m[1] = (v) => d("toUserServiceAgreement"))
|
|
2082
2082
|
}, null, 8, ["size"])]),
|
|
2083
2083
|
_: 1
|
|
2084
2084
|
}, 8, ["visible"]));
|
|
2085
2085
|
}
|
|
2086
|
-
}), _i = /* @__PURE__ */ $(ti, [["__scopeId", "data-v-
|
|
2086
|
+
}), _i = /* @__PURE__ */ $(ti, [["__scopeId", "data-v-4c7d205e"]]);
|
|
2087
2087
|
export {
|
|
2088
2088
|
wi as A,
|
|
2089
2089
|
st as E,
|
|
2090
2090
|
kt as O,
|
|
2091
2091
|
Et as P,
|
|
2092
2092
|
xt as R,
|
|
2093
|
-
|
|
2093
|
+
le as S,
|
|
2094
2094
|
at as _,
|
|
2095
2095
|
ei as a,
|
|
2096
2096
|
_i as b,
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2097
|
+
we as c,
|
|
2098
|
+
pe as d,
|
|
2099
|
+
ne as e,
|
|
2100
|
+
ie as f,
|
|
2101
2101
|
Je as g,
|
|
2102
2102
|
At as h,
|
|
2103
2103
|
He as i,
|
|
@@ -2105,8 +2105,8 @@ export {
|
|
|
2105
2105
|
Qe as k,
|
|
2106
2106
|
Gt as l,
|
|
2107
2107
|
Kt as m,
|
|
2108
|
-
|
|
2108
|
+
ye as n,
|
|
2109
2109
|
Ft as o,
|
|
2110
|
-
|
|
2110
|
+
ge as p,
|
|
2111
2111
|
hi as u
|
|
2112
2112
|
};
|