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