@huyooo/ui 0.4.34 → 0.4.36
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-DqhUivnU.js → AuthkitAppSetting-D6PAh-ZI.js} +216 -215
- package/dist/{AuthkitAuthorize-f_yAVn7e.js → AuthkitAuthorize-DKG7JGSV.js} +4 -4
- package/dist/{FeedbackItem-DJiIQBMe.js → FeedbackItem-BO8dYYKo.js} +3 -7
- package/dist/FeedbackModal-B_W_RWec.js +1061 -0
- package/dist/{LandingPageToc-BkL7mxo7.js → LandingPageToc-BrUxyH80.js} +257 -269
- package/dist/MessageHandle-Dt6rb0rg.js +830 -0
- package/dist/{PaySubscriptions-foEcT6VN.js → PaySubscriptions-B42IdT-5.js} +59 -58
- package/dist/ReferrerReferees-CvuUodDZ.js +116 -0
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-C2OaTrku.js → Upload.vue_vue_type_script_setup_true_lang-Bw3IlEUj.js} +4 -4
- package/dist/{UserPanel-CA3roDgH.js → UserPanel-BIKWssEY.js} +169 -174
- package/dist/api/Authkit/apps.d.ts +1 -1
- package/dist/api/Buckets/Files.d.ts +7 -7
- package/dist/api/Buckets.d.ts +2 -2
- package/dist/api/Message/ChangelogNotifications.d.ts +2 -2
- package/dist/api/Message/EventNotifications.d.ts +2 -2
- package/dist/api/Message/MessageNotifications.d.ts +5 -5
- package/dist/api/Message/NoticeNotifications.d.ts +2 -2
- package/dist/api/Messages.d.ts +2 -2
- package/dist/api/Referrer.d.ts +1 -1
- package/dist/api/index.d.ts +8 -8
- package/dist/authkit.js +4 -4
- package/dist/common/globalConfig.d.ts +15 -0
- package/dist/common.d.ts +1 -1
- package/dist/common.js +21 -19
- package/dist/components/Feedback/FeedbackContainer.vue.d.ts +0 -8
- package/dist/components/Feedback/FeedbackDetails.vue.d.ts +1 -1
- package/dist/components/Feedback/FeedbackForm.vue.d.ts +2 -20
- package/dist/components/LandingPage/LandingPageFooterLayout.vue.d.ts +3 -3
- package/dist/components/Message/MessageAppMessage.vue.d.ts +1 -24
- package/dist/components/Message/MessageChangelogNotifications.vue.d.ts +1 -11
- package/dist/components/Message/MessageChangelogNotificationsDetails.vue.d.ts +0 -8
- package/dist/components/Message/MessageEventNotifications.vue.d.ts +1 -11
- package/dist/components/Message/MessageEventNotificationsDetails.vue.d.ts +0 -8
- package/dist/components/Message/MessageHandle.vue.d.ts +28 -88
- package/dist/components/Message/MessageNoticeNotifications.vue.d.ts +1 -11
- package/dist/components/Message/MessageNoticeNotificationsDetails.vue.d.ts +0 -8
- package/dist/components/Message/MessageNotifications.vue.d.ts +1 -11
- package/dist/components/Referrer/ReferrerReferees.vue.d.ts +2 -12
- package/dist/components/User/UserPanel.vue.d.ts +30 -100
- package/dist/composables/useMessageNotifications.d.ts +1 -1
- package/dist/composables.d.ts +1 -1
- package/dist/composables.js +16 -15
- package/dist/feedback.js +2 -2
- package/dist/globalConfig-dtNQA0ZH.js +15 -0
- package/dist/index.js +28 -26
- package/dist/landingPage.js +1 -1
- package/dist/message.js +2 -2
- package/dist/pay.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAuthModal-OkUKCIWR.js → useAuthkitAuthModal-C153ZpNb.js} +14 -13
- package/dist/useAuthkitUsersProfile-CT2MN1S5.js +228 -0
- package/dist/useMessageNotifications-DkKSVkdt.js +106 -0
- package/dist/{useUploadCos-uerXQY3P.js → useUploadCos-C3ts0Gpa.js} +1481 -1499
- package/dist/user.d.ts +0 -1
- package/dist/user.js +4 -6
- package/package.json +1 -1
- package/dist/FeedbackModal-D7gtWqMr.js +0 -1077
- package/dist/MessageHandle-DN_JsQb2.js +0 -885
- package/dist/ReferrerReferees-DxNJ2ETq.js +0 -121
- package/dist/composables/useGlobalConfig.d.ts +0 -20
- package/dist/useAuthkitUsersProfile-Diituvy1.js +0 -227
- package/dist/useMessageNotifications-lmP0vJDM.js +0 -105
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
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
|
|
5
|
-
import { Button as U, Divider 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 te, withDirectives as ce, vShow as fe, useSlots as pe, renderSlot as ie, normalizeStyle as j, isRef as se, normalizeClass as ve, Fragment as W } from "vue";
|
|
5
|
+
import { Button as U, Divider as ge, Form as L, FormItem as A, Input as V, Link as B, Modal as ne, Avatar as le, Textarea as _e, Message as O, Alert as R } from "@arco-design/web-vue";
|
|
6
|
+
import { u as K, b as he, c as ee, d as ye, a as Z, e as we, f as be } from "./useAuthkitUsersProfile-CT2MN1S5.js";
|
|
7
|
+
import { U as J, u as ze } from "./useAuthkitAuthModal-C153ZpNb.js";
|
|
8
8
|
/* empty css */
|
|
9
|
-
import { Icon as
|
|
9
|
+
import { Icon as Se } from "@iconify/vue";
|
|
10
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
|
|
14
|
+
import { u as ke } from "./useUploadCos-C3ts0Gpa.js";
|
|
15
|
+
import { _ as Ae, g as Ie, i as Pe } from "./plugin-vue_export-helper-LjDO2Zua.js";
|
|
16
16
|
import { api as G } from "@huyooo/api";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
|
|
17
|
+
import { g as H } from "./globalConfig-dtNQA0ZH.js";
|
|
18
|
+
import { M as Ve } from "./Menu-Cxo8Rpu3.js";
|
|
19
|
+
import { u as Ue } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
|
|
20
|
+
function ae() {
|
|
20
21
|
return G({
|
|
21
|
-
url:
|
|
22
|
+
url: `${H.authPrefixUrl}/restfulApi/OAuth/github/login`,
|
|
22
23
|
method: "get"
|
|
23
24
|
});
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
26
|
+
function $e() {
|
|
27
|
+
ae().then(({
|
|
27
28
|
data: i
|
|
28
29
|
}) => {
|
|
29
30
|
const {
|
|
@@ -36,16 +37,16 @@ function Ue() {
|
|
|
36
37
|
}
|
|
37
38
|
function Ce() {
|
|
38
39
|
}
|
|
39
|
-
function $e() {
|
|
40
|
-
}
|
|
41
40
|
function xe() {
|
|
41
|
+
}
|
|
42
|
+
function qe() {
|
|
42
43
|
return {
|
|
43
|
-
githubAuth:
|
|
44
|
+
githubAuth: $e,
|
|
44
45
|
googleAuth: Ce,
|
|
45
|
-
microsoftAuth:
|
|
46
|
+
microsoftAuth: xe
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
|
-
const
|
|
49
|
+
const M = /* @__PURE__ */ k({
|
|
49
50
|
__name: "AuthkitOAuthItem",
|
|
50
51
|
props: {
|
|
51
52
|
size: {
|
|
@@ -73,18 +74,18 @@ const H = /* @__PURE__ */ k({
|
|
|
73
74
|
type: "primary",
|
|
74
75
|
size: u.size
|
|
75
76
|
}, {
|
|
76
|
-
icon: m(() => [l(e(
|
|
77
|
+
icon: m(() => [l(e(Se), {
|
|
77
78
|
icon: u.icon
|
|
78
79
|
}, null, 8, ["icon"])]),
|
|
79
80
|
default: m(() => [w("span", null, T(u.label), 1)]),
|
|
80
81
|
_: 1
|
|
81
82
|
}, 8, ["size"]));
|
|
82
83
|
}
|
|
83
|
-
}),
|
|
84
|
+
}), Re = {
|
|
84
85
|
class: "OAuthList"
|
|
85
|
-
},
|
|
86
|
+
}, Te = {
|
|
86
87
|
class: "OAuthList"
|
|
87
|
-
},
|
|
88
|
+
}, Le = /* @__PURE__ */ k({
|
|
88
89
|
__name: "AuthkitOAuthList",
|
|
89
90
|
props: {
|
|
90
91
|
size: {
|
|
@@ -99,31 +100,31 @@ const H = /* @__PURE__ */ k({
|
|
|
99
100
|
setup(i) {
|
|
100
101
|
const {
|
|
101
102
|
appsData: n
|
|
102
|
-
} =
|
|
103
|
+
} = J(), u = i, {
|
|
103
104
|
githubAuth: s,
|
|
104
105
|
googleAuth: a,
|
|
105
106
|
microsoftAuth: o
|
|
106
|
-
} =
|
|
107
|
-
return (r, _) => (g(), P("div",
|
|
107
|
+
} = qe(), t = q(() => !(!n.value.oauth.google.enabled && !n.value.oauth.microsoft.enabled && !n.value.oauth.github.enabled && !n.value.oauth.wechat.enabled));
|
|
108
|
+
return (r, _) => (g(), P("div", Re, [t.value ? (g(), y(e(ge), {
|
|
108
109
|
key: 0,
|
|
109
110
|
orientation: "center"
|
|
110
111
|
}, {
|
|
111
112
|
default: m(() => _[0] || (_[0] = [z("OAuth登陆")])),
|
|
112
113
|
_: 1,
|
|
113
114
|
__: [0]
|
|
114
|
-
})) : S("", !0), w("div",
|
|
115
|
+
})) : S("", !0), w("div", Te, [e(n).oauth.github.enabled ? (g(), y(M, {
|
|
115
116
|
key: 0,
|
|
116
117
|
icon: "mdi:github",
|
|
117
118
|
label: "Github",
|
|
118
119
|
size: u.size,
|
|
119
120
|
onClick: e(s)
|
|
120
|
-
}, null, 8, ["size", "onClick"])) : S("", !0), e(n).oauth.google.enabled ? (g(), y(
|
|
121
|
+
}, null, 8, ["size", "onClick"])) : S("", !0), e(n).oauth.google.enabled ? (g(), y(M, {
|
|
121
122
|
key: 1,
|
|
122
123
|
icon: "mdi:google",
|
|
123
124
|
label: "Google",
|
|
124
125
|
size: u.size,
|
|
125
126
|
onClick: e(a)
|
|
126
|
-
}, null, 8, ["size", "onClick"])) : S("", !0), e(n).oauth.microsoft.enabled ? (g(), y(
|
|
127
|
+
}, null, 8, ["size", "onClick"])) : S("", !0), e(n).oauth.microsoft.enabled ? (g(), y(M, {
|
|
127
128
|
key: 2,
|
|
128
129
|
icon: "mdi:microsoft",
|
|
129
130
|
label: "Microsoft",
|
|
@@ -131,29 +132,29 @@ const H = /* @__PURE__ */ k({
|
|
|
131
132
|
onClick: e(o)
|
|
132
133
|
}, null, 8, ["size", "onClick"])) : S("", !0)])]));
|
|
133
134
|
}
|
|
134
|
-
}),
|
|
135
|
-
function
|
|
135
|
+
}), Be = /* @__PURE__ */ I(Le, [["__scopeId", "data-v-7c6620c0"]]);
|
|
136
|
+
function Oe(i) {
|
|
136
137
|
return G({
|
|
137
|
-
url:
|
|
138
|
+
url: `${H.authPrefixUrl}/restfulApi/verify/email`,
|
|
138
139
|
method: "post",
|
|
139
140
|
data: i
|
|
140
141
|
});
|
|
141
142
|
}
|
|
142
|
-
function
|
|
143
|
+
function Q(i) {
|
|
143
144
|
return G({
|
|
144
|
-
url:
|
|
145
|
+
url: `${H.authPrefixUrl}/restfulApi/verify/email/retry`,
|
|
145
146
|
method: "post",
|
|
146
147
|
data: i
|
|
147
148
|
});
|
|
148
149
|
}
|
|
149
|
-
function
|
|
150
|
+
function Ee(i) {
|
|
150
151
|
return G({
|
|
151
|
-
url:
|
|
152
|
+
url: `${H.authPrefixUrl}/restfulApi/verify/password`,
|
|
152
153
|
method: "post",
|
|
153
154
|
data: i
|
|
154
155
|
});
|
|
155
156
|
}
|
|
156
|
-
const
|
|
157
|
+
const Ne = /* @__PURE__ */ k({
|
|
157
158
|
__name: "AuthkitSendVerifyCode",
|
|
158
159
|
props: {
|
|
159
160
|
size: {
|
|
@@ -185,7 +186,7 @@ const Ee = /* @__PURE__ */ k({
|
|
|
185
186
|
return F(() => {
|
|
186
187
|
}), n({
|
|
187
188
|
startCountFn: c
|
|
188
|
-
}),
|
|
189
|
+
}), te(() => {
|
|
189
190
|
t && clearInterval(t);
|
|
190
191
|
}), (v, b) => (g(), y(e(U), {
|
|
191
192
|
class: "OAuthItem",
|
|
@@ -195,20 +196,20 @@ const Ee = /* @__PURE__ */ k({
|
|
|
195
196
|
loading: a.loading,
|
|
196
197
|
onClick: d
|
|
197
198
|
}, {
|
|
198
|
-
default: m(() => [b[0] || (b[0] = w("span", null, " 发送验证码", -1)),
|
|
199
|
+
default: m(() => [b[0] || (b[0] = w("span", null, " 发送验证码", -1)), ce(w("span", {
|
|
199
200
|
class: "verify-code-timer"
|
|
200
|
-
}, T(`(${_.value})`), 513), [[
|
|
201
|
+
}, T(`(${_.value})`), 513), [[fe, f.value]])]),
|
|
201
202
|
_: 1,
|
|
202
203
|
__: [0]
|
|
203
204
|
}, 8, ["size", "disabled", "loading"]));
|
|
204
205
|
}
|
|
205
|
-
}),
|
|
206
|
+
}), X = /* @__PURE__ */ I(Ne, [["__scopeId", "data-v-2883dc6d"]]), Fe = {
|
|
206
207
|
class: "content"
|
|
207
|
-
}, Fe = {
|
|
208
|
-
class: "sendVerifyCodeItem"
|
|
209
208
|
}, Ge = {
|
|
209
|
+
class: "sendVerifyCodeItem"
|
|
210
|
+
}, He = {
|
|
210
211
|
class: "handle"
|
|
211
|
-
},
|
|
212
|
+
}, Me = /* @__PURE__ */ k({
|
|
212
213
|
__name: "AuthkitPasswordUpdateAndVerify",
|
|
213
214
|
props: {
|
|
214
215
|
size: {
|
|
@@ -234,7 +235,7 @@ const Ee = /* @__PURE__ */ k({
|
|
|
234
235
|
});
|
|
235
236
|
async function _() {
|
|
236
237
|
t.value.validateField(["email"]).then((p) => {
|
|
237
|
-
p || (o.value = !0,
|
|
238
|
+
p || (o.value = !0, Q({
|
|
238
239
|
email: r.value.email
|
|
239
240
|
}).then(({
|
|
240
241
|
data: d
|
|
@@ -250,7 +251,7 @@ const Ee = /* @__PURE__ */ k({
|
|
|
250
251
|
p || u("submit", r.value);
|
|
251
252
|
});
|
|
252
253
|
}
|
|
253
|
-
return (p, d) => (g(), P("div",
|
|
254
|
+
return (p, d) => (g(), P("div", Fe, [l(e(L), {
|
|
254
255
|
ref_key: "formRef",
|
|
255
256
|
ref: t,
|
|
256
257
|
model: r.value,
|
|
@@ -284,11 +285,11 @@ const Ee = /* @__PURE__ */ k({
|
|
|
284
285
|
message: "请输入验证码"
|
|
285
286
|
}]
|
|
286
287
|
}, {
|
|
287
|
-
default: m(() => [w("div",
|
|
288
|
+
default: m(() => [w("div", Ge, [l(e(V), {
|
|
288
289
|
modelValue: r.value.userToken,
|
|
289
290
|
"onUpdate:modelValue": d[1] || (d[1] = (c) => r.value.userToken = c),
|
|
290
291
|
placeholder: "请输入验证码"
|
|
291
|
-
}, null, 8, ["modelValue"]), l(
|
|
292
|
+
}, null, 8, ["modelValue"]), l(X, {
|
|
292
293
|
ref_key: "SendVerifyCodeRef",
|
|
293
294
|
ref: a,
|
|
294
295
|
size: s.size,
|
|
@@ -343,7 +344,7 @@ const Ee = /* @__PURE__ */ k({
|
|
|
343
344
|
autocomplete: ""
|
|
344
345
|
}, null, 8, ["modelValue"])]),
|
|
345
346
|
_: 1
|
|
346
|
-
}, 8, ["rules"]), w("div",
|
|
347
|
+
}, 8, ["rules"]), w("div", He, [l(e(U), {
|
|
347
348
|
type: "primary",
|
|
348
349
|
loading: s.loading,
|
|
349
350
|
long: "",
|
|
@@ -357,9 +358,9 @@ const Ee = /* @__PURE__ */ k({
|
|
|
357
358
|
_: 1
|
|
358
359
|
}, 8, ["model", "size"])]));
|
|
359
360
|
}
|
|
360
|
-
}),
|
|
361
|
+
}), De = /* @__PURE__ */ I(Me, [["__scopeId", "data-v-1c83f44a"]]), je = {
|
|
361
362
|
class: "SwitchSignIn"
|
|
362
|
-
},
|
|
363
|
+
}, We = /* @__PURE__ */ k({
|
|
363
364
|
__name: "AuthkitSwitchSignIn",
|
|
364
365
|
emits: ["switchSignIn"],
|
|
365
366
|
setup(i, {
|
|
@@ -369,7 +370,7 @@ const Ee = /* @__PURE__ */ k({
|
|
|
369
370
|
function s() {
|
|
370
371
|
u("switchSignIn");
|
|
371
372
|
}
|
|
372
|
-
return (a, o) => (g(), P("div",
|
|
373
|
+
return (a, o) => (g(), P("div", je, [w("span", null, [o[1] || (o[1] = w("span", null, "已经有账号?", -1)), l(e(B), {
|
|
373
374
|
style: {
|
|
374
375
|
padding: "0px"
|
|
375
376
|
},
|
|
@@ -380,9 +381,9 @@ const Ee = /* @__PURE__ */ k({
|
|
|
380
381
|
__: [0]
|
|
381
382
|
})])]));
|
|
382
383
|
}
|
|
383
|
-
}),
|
|
384
|
+
}), oe = /* @__PURE__ */ I(We, [["__scopeId", "data-v-fc1d3903"]]), Ke = {
|
|
384
385
|
class: "ResetPassword"
|
|
385
|
-
},
|
|
386
|
+
}, Ze = /* @__PURE__ */ k({
|
|
386
387
|
__name: "AuthkitResetPassword",
|
|
387
388
|
props: {
|
|
388
389
|
size: {
|
|
@@ -407,17 +408,17 @@ const Ee = /* @__PURE__ */ k({
|
|
|
407
408
|
async function o() {
|
|
408
409
|
u("submit");
|
|
409
410
|
}
|
|
410
|
-
return (t, r) => (g(), P("div",
|
|
411
|
+
return (t, r) => (g(), P("div", Ke, [l(De, {
|
|
411
412
|
loading: i.loading,
|
|
412
413
|
size: s.size,
|
|
413
414
|
onSubmit: o
|
|
414
|
-
}, null, 8, ["loading", "size"]), l(
|
|
415
|
+
}, null, 8, ["loading", "size"]), l(oe, {
|
|
415
416
|
onSwitchSignIn: a
|
|
416
417
|
})]));
|
|
417
418
|
}
|
|
418
|
-
}),
|
|
419
|
+
}), Je = /* @__PURE__ */ I(Ze, [["__scopeId", "data-v-d9f5cafa"]]), Qe = {
|
|
419
420
|
class: "ServiceAgreementAndPrivacyProtection"
|
|
420
|
-
},
|
|
421
|
+
}, Xe = /* @__PURE__ */ k({
|
|
421
422
|
__name: "AuthkitServiceAgreementAndPrivacyProtection",
|
|
422
423
|
emits: ["toUserServiceAgreement", "toPrivacyPolicy"],
|
|
423
424
|
setup(i, {
|
|
@@ -430,7 +431,7 @@ const Ee = /* @__PURE__ */ k({
|
|
|
430
431
|
function a() {
|
|
431
432
|
u("toPrivacyPolicy");
|
|
432
433
|
}
|
|
433
|
-
return (o, t) => (g(), P("div",
|
|
434
|
+
return (o, t) => (g(), P("div", Qe, [t[2] || (t[2] = w("span", null, " 注册登陆即表示同意", -1)), l(e(B), {
|
|
434
435
|
onClick: s
|
|
435
436
|
}, {
|
|
436
437
|
default: m(() => t[0] || (t[0] = [z("用户服务协议")])),
|
|
@@ -444,11 +445,11 @@ const Ee = /* @__PURE__ */ k({
|
|
|
444
445
|
__: [1]
|
|
445
446
|
})]));
|
|
446
447
|
}
|
|
447
|
-
}),
|
|
448
|
+
}), Ye = /* @__PURE__ */ I(Xe, [["__scopeId", "data-v-18e831ec"]]), et = {
|
|
448
449
|
class: "content"
|
|
449
|
-
},
|
|
450
|
+
}, tt = {
|
|
450
451
|
class: "handle"
|
|
451
|
-
},
|
|
452
|
+
}, it = /* @__PURE__ */ k({
|
|
452
453
|
__name: "AuthkitPasswordAuth",
|
|
453
454
|
props: {
|
|
454
455
|
size: {
|
|
@@ -467,7 +468,7 @@ const Ee = /* @__PURE__ */ k({
|
|
|
467
468
|
}) {
|
|
468
469
|
const u = n, s = i;
|
|
469
470
|
async function a(_, f) {
|
|
470
|
-
const p = await
|
|
471
|
+
const p = await Ee({
|
|
471
472
|
password: _
|
|
472
473
|
});
|
|
473
474
|
p || f("密码验证请求出错!");
|
|
@@ -486,7 +487,7 @@ const Ee = /* @__PURE__ */ k({
|
|
|
486
487
|
_ || u("submit", t.value);
|
|
487
488
|
});
|
|
488
489
|
}
|
|
489
|
-
return (_, f) => (g(), P("div",
|
|
490
|
+
return (_, f) => (g(), P("div", et, [l(e(L), {
|
|
490
491
|
ref_key: "formRef",
|
|
491
492
|
ref: o,
|
|
492
493
|
model: t.value,
|
|
@@ -532,7 +533,7 @@ const Ee = /* @__PURE__ */ k({
|
|
|
532
533
|
autocomplete: "current-password"
|
|
533
534
|
}, null, 8, ["modelValue"])]),
|
|
534
535
|
_: 1
|
|
535
|
-
}, 8, ["rules"]), w("div",
|
|
536
|
+
}, 8, ["rules"]), w("div", tt, [l(e(U), {
|
|
536
537
|
type: "primary",
|
|
537
538
|
loading: s.loading,
|
|
538
539
|
long: "",
|
|
@@ -546,9 +547,9 @@ const Ee = /* @__PURE__ */ k({
|
|
|
546
547
|
_: 1
|
|
547
548
|
}, 8, ["model", "size"])]));
|
|
548
549
|
}
|
|
549
|
-
}),
|
|
550
|
+
}), st = /* @__PURE__ */ I(it, [["__scopeId", "data-v-57de2ef6"]]), nt = {
|
|
550
551
|
class: "SwitchSignUpOrResetPassword"
|
|
551
|
-
},
|
|
552
|
+
}, lt = /* @__PURE__ */ k({
|
|
552
553
|
__name: "AuthkitSwitchSignUpOrResetPassword",
|
|
553
554
|
emits: ["switchSignUp", "switchResetPassword"],
|
|
554
555
|
setup(i, {
|
|
@@ -561,7 +562,7 @@ const Ee = /* @__PURE__ */ k({
|
|
|
561
562
|
function a() {
|
|
562
563
|
u("switchResetPassword");
|
|
563
564
|
}
|
|
564
|
-
return (o, t) => (g(), P("div",
|
|
565
|
+
return (o, t) => (g(), P("div", nt, [w("span", null, [t[1] || (t[1] = w("span", null, " 还没有账户?", -1)), l(e(B), {
|
|
565
566
|
style: {
|
|
566
567
|
padding: "0px"
|
|
567
568
|
},
|
|
@@ -581,9 +582,9 @@ const Ee = /* @__PURE__ */ k({
|
|
|
581
582
|
__: [2]
|
|
582
583
|
})]));
|
|
583
584
|
}
|
|
584
|
-
}),
|
|
585
|
+
}), at = /* @__PURE__ */ I(lt, [["__scopeId", "data-v-14e3aab2"]]), ot = {
|
|
585
586
|
class: "SignIn"
|
|
586
|
-
},
|
|
587
|
+
}, rt = /* @__PURE__ */ k({
|
|
587
588
|
__name: "AuthkitSignIn",
|
|
588
589
|
props: {
|
|
589
590
|
size: {
|
|
@@ -600,7 +601,7 @@ const Ee = /* @__PURE__ */ k({
|
|
|
600
601
|
setup(i, {
|
|
601
602
|
emit: n
|
|
602
603
|
}) {
|
|
603
|
-
const u = n, s = i, a =
|
|
604
|
+
const u = n, s = i, a = pe(), o = q(() => !!a.OAuth);
|
|
604
605
|
function t() {
|
|
605
606
|
u("switchSignUp");
|
|
606
607
|
}
|
|
@@ -610,24 +611,24 @@ const Ee = /* @__PURE__ */ k({
|
|
|
610
611
|
async function _(f) {
|
|
611
612
|
u("submit", f);
|
|
612
613
|
}
|
|
613
|
-
return (f, p) => (g(), P("div",
|
|
614
|
+
return (f, p) => (g(), P("div", ot, [S("", !0), l(st, {
|
|
614
615
|
loading: s.loading,
|
|
615
616
|
size: s.size,
|
|
616
617
|
onSubmit: _
|
|
617
|
-
}, null, 8, ["loading", "size"]), o.value ?
|
|
618
|
+
}, null, 8, ["loading", "size"]), o.value ? ie(f.$slots, "OAuth", {
|
|
618
619
|
key: 1
|
|
619
|
-
}, void 0, !0) : S("", !0), l(
|
|
620
|
+
}, void 0, !0) : S("", !0), l(at, {
|
|
620
621
|
onSwitchSignUp: t,
|
|
621
622
|
onSwitchResetPassword: r
|
|
622
623
|
})]));
|
|
623
624
|
}
|
|
624
|
-
}),
|
|
625
|
+
}), ut = /* @__PURE__ */ I(rt, [["__scopeId", "data-v-07112823"]]), dt = {
|
|
625
626
|
class: "content"
|
|
626
|
-
}, dt = {
|
|
627
|
-
class: "sendVerifyCodeItem"
|
|
628
627
|
}, mt = {
|
|
628
|
+
class: "sendVerifyCodeItem"
|
|
629
|
+
}, ct = {
|
|
629
630
|
class: "handle"
|
|
630
|
-
},
|
|
631
|
+
}, ft = /* @__PURE__ */ k({
|
|
631
632
|
__name: "AuthkitEmailUpdate",
|
|
632
633
|
props: {
|
|
633
634
|
size: {
|
|
@@ -654,7 +655,7 @@ const Ee = /* @__PURE__ */ k({
|
|
|
654
655
|
});
|
|
655
656
|
async function _() {
|
|
656
657
|
t.value.validateField(["email"]).then((p) => {
|
|
657
|
-
p || (o.value = !0,
|
|
658
|
+
p || (o.value = !0, Q({
|
|
658
659
|
email: r.value.email
|
|
659
660
|
}).then(({
|
|
660
661
|
data: d
|
|
@@ -670,7 +671,7 @@ const Ee = /* @__PURE__ */ k({
|
|
|
670
671
|
p || u("submit", r.value);
|
|
671
672
|
});
|
|
672
673
|
}
|
|
673
|
-
return (p, d) => (g(), P("div",
|
|
674
|
+
return (p, d) => (g(), P("div", dt, [l(e(L), {
|
|
674
675
|
ref_key: "formRef",
|
|
675
676
|
ref: t,
|
|
676
677
|
model: r.value,
|
|
@@ -706,12 +707,12 @@ const Ee = /* @__PURE__ */ k({
|
|
|
706
707
|
message: "请输入验证码"
|
|
707
708
|
}]
|
|
708
709
|
}, {
|
|
709
|
-
default: m(() => [w("div",
|
|
710
|
+
default: m(() => [w("div", mt, [l(e(V), {
|
|
710
711
|
modelValue: r.value.userToken,
|
|
711
712
|
"onUpdate:modelValue": d[1] || (d[1] = (c) => r.value.userToken = c),
|
|
712
713
|
placeholder: "请输入验证码",
|
|
713
714
|
autocomplete: "one-time-code"
|
|
714
|
-
}, null, 8, ["modelValue"]), l(
|
|
715
|
+
}, null, 8, ["modelValue"]), l(X, {
|
|
715
716
|
ref_key: "SendVerifyCodeRef",
|
|
716
717
|
ref: a,
|
|
717
718
|
size: s.size,
|
|
@@ -782,7 +783,7 @@ const Ee = /* @__PURE__ */ k({
|
|
|
782
783
|
autocomplete: "off"
|
|
783
784
|
}, null, 8, ["modelValue"])]),
|
|
784
785
|
_: 1
|
|
785
|
-
}), w("div",
|
|
786
|
+
}), w("div", ct, [l(e(U), {
|
|
786
787
|
type: "primary",
|
|
787
788
|
loading: s.loading,
|
|
788
789
|
long: "",
|
|
@@ -796,9 +797,9 @@ const Ee = /* @__PURE__ */ k({
|
|
|
796
797
|
_: 1
|
|
797
798
|
}, 8, ["model", "size"])]));
|
|
798
799
|
}
|
|
799
|
-
}),
|
|
800
|
+
}), re = /* @__PURE__ */ I(ft, [["__scopeId", "data-v-5b701953"]]), pt = {
|
|
800
801
|
class: "SignUp"
|
|
801
|
-
},
|
|
802
|
+
}, vt = /* @__PURE__ */ k({
|
|
802
803
|
__name: "AuthkitSignUp",
|
|
803
804
|
props: {
|
|
804
805
|
size: {
|
|
@@ -822,15 +823,15 @@ const Ee = /* @__PURE__ */ k({
|
|
|
822
823
|
async function o(t) {
|
|
823
824
|
u("submit", t);
|
|
824
825
|
}
|
|
825
|
-
return (t, r) => (g(), P("div",
|
|
826
|
+
return (t, r) => (g(), P("div", pt, [l(re, {
|
|
826
827
|
size: s.size,
|
|
827
828
|
loading: i.loading,
|
|
828
829
|
onSubmit: o
|
|
829
|
-
}, null, 8, ["size", "loading"]), l(
|
|
830
|
+
}, null, 8, ["size", "loading"]), l(oe, {
|
|
830
831
|
onSwitchSignIn: a
|
|
831
832
|
})]));
|
|
832
833
|
}
|
|
833
|
-
}),
|
|
834
|
+
}), gt = /* @__PURE__ */ I(vt, [["__scopeId", "data-v-bb136d90"]]), _t = ["src"], ht = /* @__PURE__ */ k({
|
|
834
835
|
__name: "AuthkitAuthTitle",
|
|
835
836
|
props: {
|
|
836
837
|
size: {
|
|
@@ -852,12 +853,12 @@ const Ee = /* @__PURE__ */ k({
|
|
|
852
853
|
setup(i) {
|
|
853
854
|
const n = i, u = `${n.size}px`, s = `${n.fontSize}px`, a = `${n.lineHeight}px`, {
|
|
854
855
|
currentView: o
|
|
855
|
-
} =
|
|
856
|
+
} = K(), {
|
|
856
857
|
appsData: t
|
|
857
|
-
} =
|
|
858
|
+
} = J(), r = q(() => o.value === "signIn" ? `${t.value.name}登录` : o.value === "signUp" ? `${t.value.name}账号注册` : o.value === "resetPassword" ? `${t.value.name}密码重置` : "");
|
|
858
859
|
return (_, f) => (g(), P("div", {
|
|
859
860
|
class: "Title",
|
|
860
|
-
style:
|
|
861
|
+
style: j({
|
|
861
862
|
fontSize: s,
|
|
862
863
|
lineHeight: a
|
|
863
864
|
})
|
|
@@ -865,16 +866,16 @@ const Ee = /* @__PURE__ */ k({
|
|
|
865
866
|
key: 0,
|
|
866
867
|
src: e(t).applicationLogoUrl,
|
|
867
868
|
srcset: "",
|
|
868
|
-
style:
|
|
869
|
+
style: j({
|
|
869
870
|
width: u
|
|
870
871
|
})
|
|
871
|
-
}, null, 12,
|
|
872
|
+
}, null, 12, _t)) : S("", !0), w("span", null, T(r.value), 1), ie(_.$slots, "default", {}, void 0, !0)], 4));
|
|
872
873
|
}
|
|
873
|
-
}),
|
|
874
|
+
}), ue = /* @__PURE__ */ I(ht, [["__scopeId", "data-v-8255764a"]]), yt = {
|
|
874
875
|
class: "Auth"
|
|
875
|
-
},
|
|
876
|
+
}, wt = {
|
|
876
877
|
class: "body"
|
|
877
|
-
},
|
|
878
|
+
}, bt = /* @__PURE__ */ k({
|
|
878
879
|
__name: "AuthkitAuth",
|
|
879
880
|
props: {
|
|
880
881
|
size: {
|
|
@@ -901,20 +902,20 @@ const Ee = /* @__PURE__ */ k({
|
|
|
901
902
|
switchSignUp: d,
|
|
902
903
|
switchResetPassword: c,
|
|
903
904
|
switchSignIn: v
|
|
904
|
-
} =
|
|
905
|
+
} = K(), {
|
|
905
906
|
appsAuthPageInfoApi: b
|
|
906
|
-
} =
|
|
907
|
-
function
|
|
907
|
+
} = J();
|
|
908
|
+
function $() {
|
|
908
909
|
s("toPrivacyPolicy");
|
|
909
910
|
}
|
|
910
|
-
function
|
|
911
|
+
function C() {
|
|
911
912
|
s("toUserServiceAgreement");
|
|
912
913
|
}
|
|
913
|
-
return b(), (x, E) => (g(), P("div",
|
|
914
|
+
return b(), (x, E) => (g(), P("div", yt, [i.showTitle ? (g(), y(ue, {
|
|
914
915
|
key: 0,
|
|
915
916
|
size: 32,
|
|
916
917
|
"font-size": 20
|
|
917
|
-
})) : S("", !0), w("div",
|
|
918
|
+
})) : S("", !0), w("div", wt, [e(r) === "signIn" ? (g(), y(ut, {
|
|
918
919
|
key: 0,
|
|
919
920
|
size: u.size,
|
|
920
921
|
loading: e(_),
|
|
@@ -922,28 +923,28 @@ const Ee = /* @__PURE__ */ k({
|
|
|
922
923
|
onSwitchResetPassword: e(c),
|
|
923
924
|
onSubmit: e(a)
|
|
924
925
|
}, {
|
|
925
|
-
OAuth: m(() => [l(
|
|
926
|
+
OAuth: m(() => [l(Be, {
|
|
926
927
|
size: u.size
|
|
927
928
|
}, null, 8, ["size"])]),
|
|
928
929
|
_: 1
|
|
929
|
-
}, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword", "onSubmit"])) : e(r) === "signUp" ? (g(), y(
|
|
930
|
+
}, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword", "onSubmit"])) : e(r) === "signUp" ? (g(), y(gt, {
|
|
930
931
|
key: 1,
|
|
931
932
|
size: u.size,
|
|
932
933
|
loading: e(f),
|
|
933
934
|
onSwitchSignIn: e(v),
|
|
934
935
|
onSubmit: e(o)
|
|
935
|
-
}, null, 8, ["size", "loading", "onSwitchSignIn", "onSubmit"])) : e(r) === "resetPassword" ? (g(), y(
|
|
936
|
+
}, null, 8, ["size", "loading", "onSwitchSignIn", "onSubmit"])) : e(r) === "resetPassword" ? (g(), y(Je, {
|
|
936
937
|
key: 2,
|
|
937
938
|
size: u.size,
|
|
938
939
|
loading: e(p),
|
|
939
940
|
onSwitchSignIn: e(v),
|
|
940
941
|
onSubmit: e(t)
|
|
941
|
-
}, null, 8, ["size", "loading", "onSwitchSignIn", "onSubmit"])) : S("", !0), l(
|
|
942
|
-
onToPrivacyPolicy:
|
|
943
|
-
onToUserServiceAgreement:
|
|
942
|
+
}, null, 8, ["size", "loading", "onSwitchSignIn", "onSubmit"])) : S("", !0), l(Ye, {
|
|
943
|
+
onToPrivacyPolicy: $,
|
|
944
|
+
onToUserServiceAgreement: C
|
|
944
945
|
})])]));
|
|
945
946
|
}
|
|
946
|
-
}),
|
|
947
|
+
}), zt = /* @__PURE__ */ I(bt, [["__scopeId", "data-v-865d3320"]]), St = /* @__PURE__ */ k({
|
|
947
948
|
__name: "AuthkitAuthModal",
|
|
948
949
|
props: {
|
|
949
950
|
size: {
|
|
@@ -961,9 +962,9 @@ const Ee = /* @__PURE__ */ k({
|
|
|
961
962
|
}) {
|
|
962
963
|
const {
|
|
963
964
|
addSignInCallback: u
|
|
964
|
-
} =
|
|
965
|
+
} = K(), {
|
|
965
966
|
show: s
|
|
966
|
-
} =
|
|
967
|
+
} = ze(), a = i, o = n;
|
|
967
968
|
function t(_) {
|
|
968
969
|
_(!0);
|
|
969
970
|
}
|
|
@@ -972,9 +973,9 @@ const Ee = /* @__PURE__ */ k({
|
|
|
972
973
|
}
|
|
973
974
|
return u(() => {
|
|
974
975
|
s.value = !1;
|
|
975
|
-
}), (_, f) => (g(), y(e(
|
|
976
|
+
}), (_, f) => (g(), y(e(ne), {
|
|
976
977
|
visible: e(s),
|
|
977
|
-
"onUpdate:visible": f[0] || (f[0] = (p) =>
|
|
978
|
+
"onUpdate:visible": f[0] || (f[0] = (p) => se(s) ? s.value = p : null),
|
|
978
979
|
footer: !1,
|
|
979
980
|
"mask-closable": !1,
|
|
980
981
|
"title-align": "center",
|
|
@@ -984,15 +985,15 @@ const Ee = /* @__PURE__ */ k({
|
|
|
984
985
|
onBeforeOk: t,
|
|
985
986
|
onClose: r
|
|
986
987
|
}, {
|
|
987
|
-
title: m(() => [l(
|
|
988
|
-
default: m(() => [l(
|
|
988
|
+
title: m(() => [l(ue)]),
|
|
989
|
+
default: m(() => [l(zt, {
|
|
989
990
|
"show-title": !1,
|
|
990
991
|
size: a.size
|
|
991
992
|
}, null, 8, ["size"])]),
|
|
992
993
|
_: 1
|
|
993
994
|
}, 8, ["visible"]));
|
|
994
995
|
}
|
|
995
|
-
}),
|
|
996
|
+
}), di = /* @__PURE__ */ I(St, [["__scopeId", "data-v-a22ae615"]]), kt = k({
|
|
996
997
|
name: "IconCamera",
|
|
997
998
|
props: {
|
|
998
999
|
size: {
|
|
@@ -1021,11 +1022,11 @@ const Ee = /* @__PURE__ */ k({
|
|
|
1021
1022
|
setup(i, {
|
|
1022
1023
|
emit: n
|
|
1023
1024
|
}) {
|
|
1024
|
-
const u =
|
|
1025
|
+
const u = Ie("icon"), s = q(() => [u, `${u}-camera`, {
|
|
1025
1026
|
[`${u}-spin`]: i.spin
|
|
1026
1027
|
}]), a = q(() => {
|
|
1027
1028
|
const t = {};
|
|
1028
|
-
return i.size && (t.fontSize =
|
|
1029
|
+
return i.size && (t.fontSize = Pe(i.size) ? `${i.size}px` : i.size), i.rotate && (t.transform = `rotate(${i.rotate}deg)`), t;
|
|
1029
1030
|
});
|
|
1030
1031
|
return {
|
|
1031
1032
|
cls: s,
|
|
@@ -1035,33 +1036,33 @@ const Ee = /* @__PURE__ */ k({
|
|
|
1035
1036
|
}
|
|
1036
1037
|
};
|
|
1037
1038
|
}
|
|
1038
|
-
}),
|
|
1039
|
-
function
|
|
1039
|
+
}), At = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1040
|
+
function It(i, n, u, s, a, o) {
|
|
1040
1041
|
return g(), P("svg", {
|
|
1041
1042
|
viewBox: "0 0 48 48",
|
|
1042
1043
|
fill: "none",
|
|
1043
1044
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1044
1045
|
stroke: "currentColor",
|
|
1045
|
-
class:
|
|
1046
|
-
style:
|
|
1046
|
+
class: ve(i.cls),
|
|
1047
|
+
style: j(i.innerStyle),
|
|
1047
1048
|
"stroke-width": i.strokeWidth,
|
|
1048
1049
|
"stroke-linecap": i.strokeLinecap,
|
|
1049
1050
|
"stroke-linejoin": i.strokeLinejoin,
|
|
1050
1051
|
onClick: n[0] || (n[0] = (...t) => i.onClick && i.onClick(...t))
|
|
1051
1052
|
}, n[1] || (n[1] = [w("path", {
|
|
1052
1053
|
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,
|
|
1054
|
+
}, null, -1)]), 14, At);
|
|
1054
1055
|
}
|
|
1055
|
-
var
|
|
1056
|
-
const
|
|
1056
|
+
var D = /* @__PURE__ */ Ae(kt, [["render", It]]);
|
|
1057
|
+
const Pt = Object.assign(D, {
|
|
1057
1058
|
install: (i, n) => {
|
|
1058
1059
|
var u;
|
|
1059
1060
|
const s = (u = n == null ? void 0 : n.iconPrefix) != null ? u : "";
|
|
1060
|
-
i.component(s +
|
|
1061
|
+
i.component(s + D.name, D);
|
|
1061
1062
|
}
|
|
1062
|
-
}),
|
|
1063
|
+
}), Vt = {
|
|
1063
1064
|
class: "handle"
|
|
1064
|
-
},
|
|
1065
|
+
}, Ut = /* @__PURE__ */ k({
|
|
1065
1066
|
__name: "AuthkitPersonalInformation",
|
|
1066
1067
|
props: {
|
|
1067
1068
|
size: {
|
|
@@ -1081,7 +1082,7 @@ const It = Object.assign(M, {
|
|
|
1081
1082
|
avatarUrl: ""
|
|
1082
1083
|
}), o = h(!1), t = h(), r = h(!1);
|
|
1083
1084
|
function _() {
|
|
1084
|
-
r.value = !0,
|
|
1085
|
+
r.value = !0, he().then(({
|
|
1085
1086
|
data: d
|
|
1086
1087
|
}) => {
|
|
1087
1088
|
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;
|
|
@@ -1099,7 +1100,7 @@ const It = Object.assign(M, {
|
|
|
1099
1100
|
description: a.value.description,
|
|
1100
1101
|
avatar: a.value.avatar
|
|
1101
1102
|
};
|
|
1102
|
-
|
|
1103
|
+
ee(c).then(({
|
|
1103
1104
|
data: v
|
|
1104
1105
|
}) => {
|
|
1105
1106
|
r.value = !1, O.success("更新成功"), a.value.avatarUrl = v.avatarUrl, u("submit");
|
|
@@ -1113,24 +1114,24 @@ const It = Object.assign(M, {
|
|
|
1113
1114
|
const p = () => {
|
|
1114
1115
|
const {
|
|
1115
1116
|
uploadFile: d
|
|
1116
|
-
} =
|
|
1117
|
+
} = ke(), c = document.createElement("input");
|
|
1117
1118
|
c.type = "file", c.accept = "image/*", c.style.display = "none", document.body.append(c), c.addEventListener("change", async (v) => {
|
|
1118
|
-
var
|
|
1119
|
-
const
|
|
1120
|
-
if (
|
|
1119
|
+
var C;
|
|
1120
|
+
const $ = (C = v.target.files) == null ? void 0 : C[0];
|
|
1121
|
+
if ($) {
|
|
1121
1122
|
o.value = !0;
|
|
1122
1123
|
try {
|
|
1123
1124
|
d({
|
|
1124
|
-
file:
|
|
1125
|
+
file: $,
|
|
1125
1126
|
onFileFinish(x, E, N) {
|
|
1126
1127
|
o.value = !0;
|
|
1127
|
-
const
|
|
1128
|
+
const me = {
|
|
1128
1129
|
id: a.value.id,
|
|
1129
1130
|
nickname: a.value.nickname,
|
|
1130
1131
|
description: a.value.description,
|
|
1131
1132
|
avatar: N.Key
|
|
1132
1133
|
};
|
|
1133
|
-
|
|
1134
|
+
ee(me).then(() => {
|
|
1134
1135
|
o.value = !1, O.success("更新成功"), _(), u("submit");
|
|
1135
1136
|
}).catch(() => {
|
|
1136
1137
|
o.value = !1;
|
|
@@ -1162,7 +1163,7 @@ const It = Object.assign(M, {
|
|
|
1162
1163
|
message: "请上传头像"
|
|
1163
1164
|
}]
|
|
1164
1165
|
}, {
|
|
1165
|
-
default: m(() => [l(e(
|
|
1166
|
+
default: m(() => [l(e(le), {
|
|
1166
1167
|
"image-url": a.value.avatarUrl,
|
|
1167
1168
|
size: 42,
|
|
1168
1169
|
"trigger-icon-style": {
|
|
@@ -1170,7 +1171,7 @@ const It = Object.assign(M, {
|
|
|
1170
1171
|
},
|
|
1171
1172
|
onClick: p
|
|
1172
1173
|
}, {
|
|
1173
|
-
"trigger-icon": m(() => [l(e(
|
|
1174
|
+
"trigger-icon": m(() => [l(e(Pt))]),
|
|
1174
1175
|
_: 1
|
|
1175
1176
|
}, 8, ["image-url"])]),
|
|
1176
1177
|
_: 1
|
|
@@ -1196,7 +1197,7 @@ const It = Object.assign(M, {
|
|
|
1196
1197
|
message: "请输入描述"
|
|
1197
1198
|
}]
|
|
1198
1199
|
}, {
|
|
1199
|
-
default: m(() => [l(e(
|
|
1200
|
+
default: m(() => [l(e(_e), {
|
|
1200
1201
|
modelValue: a.value.description,
|
|
1201
1202
|
"onUpdate:modelValue": c[1] || (c[1] = (v) => a.value.description = v),
|
|
1202
1203
|
placeholder: "请输入描述",
|
|
@@ -1211,7 +1212,7 @@ const It = Object.assign(M, {
|
|
|
1211
1212
|
label: "",
|
|
1212
1213
|
rules: []
|
|
1213
1214
|
}, {
|
|
1214
|
-
default: m(() => [w("div",
|
|
1215
|
+
default: m(() => [w("div", Vt, [l(e(U), {
|
|
1215
1216
|
type: "primary",
|
|
1216
1217
|
loading: r.value,
|
|
1217
1218
|
onClick: f
|
|
@@ -1225,8 +1226,8 @@ const It = Object.assign(M, {
|
|
|
1225
1226
|
_: 1
|
|
1226
1227
|
}, 8, ["model", "size"]));
|
|
1227
1228
|
}
|
|
1228
|
-
}),
|
|
1229
|
-
function
|
|
1229
|
+
}), $t = /* @__PURE__ */ I(Ut, [["__scopeId", "data-v-35e8e735"]]);
|
|
1230
|
+
function de(i, n = 3) {
|
|
1230
1231
|
const u = i.indexOf("@");
|
|
1231
1232
|
if (u > 1) {
|
|
1232
1233
|
const s = i.slice(0, n), a = i.slice(u);
|
|
@@ -1236,9 +1237,9 @@ function ue(i, n = 3) {
|
|
|
1236
1237
|
}
|
|
1237
1238
|
const Ct = {
|
|
1238
1239
|
class: "sendVerifyCodeItem"
|
|
1239
|
-
},
|
|
1240
|
+
}, xt = {
|
|
1240
1241
|
class: "handle"
|
|
1241
|
-
},
|
|
1242
|
+
}, qt = /* @__PURE__ */ k({
|
|
1242
1243
|
__name: "AuthkitEmailVerify",
|
|
1243
1244
|
props: {
|
|
1244
1245
|
email: {
|
|
@@ -1255,12 +1256,12 @@ const Ct = {
|
|
|
1255
1256
|
setup(i, {
|
|
1256
1257
|
emit: n
|
|
1257
1258
|
}) {
|
|
1258
|
-
const u = n, s = i, a = q(() =>
|
|
1259
|
+
const u = n, s = i, a = q(() => de(s.email)), o = h(), t = h(!1), r = h(!1), _ = h(), f = h({
|
|
1259
1260
|
userToken: void 0,
|
|
1260
1261
|
emailVerifyId: void 0
|
|
1261
1262
|
});
|
|
1262
1263
|
async function p() {
|
|
1263
|
-
t.value = !0,
|
|
1264
|
+
t.value = !0, Q({
|
|
1264
1265
|
email: s.email
|
|
1265
1266
|
}).then(({
|
|
1266
1267
|
data: c
|
|
@@ -1279,7 +1280,7 @@ const Ct = {
|
|
|
1279
1280
|
userToken: f.value.userToken,
|
|
1280
1281
|
emailVerifyId: f.value.emailVerifyId
|
|
1281
1282
|
};
|
|
1282
|
-
|
|
1283
|
+
Oe(v).then(() => {
|
|
1283
1284
|
r.value = !1, u("next");
|
|
1284
1285
|
}).catch(() => {
|
|
1285
1286
|
r.value = !1;
|
|
@@ -1320,7 +1321,7 @@ const Ct = {
|
|
|
1320
1321
|
modelValue: f.value.userToken,
|
|
1321
1322
|
"onUpdate:modelValue": v[0] || (v[0] = (b) => f.value.userToken = b),
|
|
1322
1323
|
placeholder: "请输入验证码"
|
|
1323
|
-
}, null, 8, ["modelValue"]), l(
|
|
1324
|
+
}, null, 8, ["modelValue"]), l(X, {
|
|
1324
1325
|
ref_key: "SendVerifyCodeRef",
|
|
1325
1326
|
ref: o,
|
|
1326
1327
|
size: s.size,
|
|
@@ -1336,7 +1337,7 @@ const Ct = {
|
|
|
1336
1337
|
label: "",
|
|
1337
1338
|
rules: []
|
|
1338
1339
|
}, {
|
|
1339
|
-
default: m(() => [w("div",
|
|
1340
|
+
default: m(() => [w("div", xt, [l(e(U), {
|
|
1340
1341
|
loading: r.value,
|
|
1341
1342
|
type: "primary",
|
|
1342
1343
|
onClick: d
|
|
@@ -1350,9 +1351,9 @@ const Ct = {
|
|
|
1350
1351
|
_: 1
|
|
1351
1352
|
}, 8, ["model", "size"]));
|
|
1352
1353
|
}
|
|
1353
|
-
}),
|
|
1354
|
+
}), Y = /* @__PURE__ */ I(qt, [["__scopeId", "data-v-89ebb370"]]), Rt = {
|
|
1354
1355
|
class: "handle"
|
|
1355
|
-
},
|
|
1356
|
+
}, Tt = /* @__PURE__ */ k({
|
|
1356
1357
|
__name: "AuthkitPasswordUpdate",
|
|
1357
1358
|
props: {
|
|
1358
1359
|
size: {
|
|
@@ -1375,7 +1376,7 @@ const Ct = {
|
|
|
1375
1376
|
const f = {
|
|
1376
1377
|
password: t.value.password
|
|
1377
1378
|
};
|
|
1378
|
-
|
|
1379
|
+
ye(f).then(() => {
|
|
1379
1380
|
s.value = !1, u("submit");
|
|
1380
1381
|
}).catch(() => {
|
|
1381
1382
|
s.value = !1;
|
|
@@ -1453,7 +1454,7 @@ const Ct = {
|
|
|
1453
1454
|
label: "",
|
|
1454
1455
|
rules: []
|
|
1455
1456
|
}, {
|
|
1456
|
-
default: m(() => [w("div",
|
|
1457
|
+
default: m(() => [w("div", Rt, [l(e(U), {
|
|
1457
1458
|
type: "primary",
|
|
1458
1459
|
loading: s.value,
|
|
1459
1460
|
onClick: r
|
|
@@ -1467,7 +1468,7 @@ const Ct = {
|
|
|
1467
1468
|
_: 1
|
|
1468
1469
|
}, 8, ["model", "size"]));
|
|
1469
1470
|
}
|
|
1470
|
-
}),
|
|
1471
|
+
}), Lt = /* @__PURE__ */ I(Tt, [["__scopeId", "data-v-975b48ac"]]), Bt = /* @__PURE__ */ k({
|
|
1471
1472
|
__name: "AuthkitSetPassword",
|
|
1472
1473
|
props: {
|
|
1473
1474
|
size: {
|
|
@@ -1481,7 +1482,7 @@ const Ct = {
|
|
|
1481
1482
|
loading: u,
|
|
1482
1483
|
fetchUserProfile: s,
|
|
1483
1484
|
isLoggedIn: a
|
|
1484
|
-
} =
|
|
1485
|
+
} = Z(), o = h("hidden"), t = i;
|
|
1485
1486
|
function r(p) {
|
|
1486
1487
|
o.value = p;
|
|
1487
1488
|
}
|
|
@@ -1494,15 +1495,15 @@ const Ct = {
|
|
|
1494
1495
|
return F(() => {
|
|
1495
1496
|
a.value && !n.value && s();
|
|
1496
1497
|
}), (p, d) => {
|
|
1497
|
-
var c, v, b,
|
|
1498
|
-
return g(), P(
|
|
1498
|
+
var c, v, b, $;
|
|
1499
|
+
return g(), P(W, null, [!((c = e(n)) != null && c.email) && !((v = e(n)) != null && v.phone) ? (g(), y(e(R), {
|
|
1499
1500
|
key: 0,
|
|
1500
1501
|
title: "去绑定邮箱"
|
|
1501
1502
|
}, {
|
|
1502
1503
|
action: m(() => [l(e(U), {
|
|
1503
1504
|
size: t.size,
|
|
1504
1505
|
type: "primary",
|
|
1505
|
-
onClick: d[0] || (d[0] = (
|
|
1506
|
+
onClick: d[0] || (d[0] = (C) => r("update"))
|
|
1506
1507
|
}, {
|
|
1507
1508
|
default: m(() => d[2] || (d[2] = [z(" 去绑定邮箱 ")])),
|
|
1508
1509
|
_: 1,
|
|
@@ -1518,7 +1519,7 @@ const Ct = {
|
|
|
1518
1519
|
action: m(() => [l(e(U), {
|
|
1519
1520
|
size: t.size,
|
|
1520
1521
|
type: "primary",
|
|
1521
|
-
onClick: d[1] || (d[1] = (
|
|
1522
|
+
onClick: d[1] || (d[1] = (C) => r("verify"))
|
|
1522
1523
|
}, {
|
|
1523
1524
|
default: m(() => d[4] || (d[4] = [z("更改密码")])),
|
|
1524
1525
|
_: 1,
|
|
@@ -1527,20 +1528,20 @@ const Ct = {
|
|
|
1527
1528
|
default: m(() => [d[5] || (d[5] = z(" 为了账户安全修改密码前会先验证身份 "))]),
|
|
1528
1529
|
_: 1,
|
|
1529
1530
|
__: [5]
|
|
1530
|
-
})) : S("", !0), o.value === "update" ? (g(), y(
|
|
1531
|
+
})) : S("", !0), o.value === "update" ? (g(), y(Lt, {
|
|
1531
1532
|
key: 2,
|
|
1532
1533
|
size: t.size,
|
|
1533
1534
|
loading: e(u),
|
|
1534
1535
|
onSubmit: _
|
|
1535
|
-
}, null, 8, ["size", "loading"])) : S("", !0), o.value === "verify" ? (g(), y(
|
|
1536
|
+
}, null, 8, ["size", "loading"])) : S("", !0), o.value === "verify" ? (g(), y(Y, {
|
|
1536
1537
|
key: 3,
|
|
1537
1538
|
size: t.size,
|
|
1538
|
-
email: (
|
|
1539
|
+
email: ($ = e(n)) == null ? void 0 : $.email,
|
|
1539
1540
|
onNext: f
|
|
1540
1541
|
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
1541
1542
|
};
|
|
1542
1543
|
}
|
|
1543
|
-
}),
|
|
1544
|
+
}), Ot = /* @__PURE__ */ k({
|
|
1544
1545
|
__name: "AuthkitEmailBinding",
|
|
1545
1546
|
props: {
|
|
1546
1547
|
size: {
|
|
@@ -1553,7 +1554,7 @@ const Ct = {
|
|
|
1553
1554
|
userProfile: n,
|
|
1554
1555
|
loading: u,
|
|
1555
1556
|
fetchUserProfile: s
|
|
1556
|
-
} =
|
|
1557
|
+
} = Z(), a = h("hidden"), o = i;
|
|
1557
1558
|
function t(f) {
|
|
1558
1559
|
a.value = f;
|
|
1559
1560
|
}
|
|
@@ -1565,7 +1566,7 @@ const Ct = {
|
|
|
1565
1566
|
emailVerifyId: f.emailVerifyId,
|
|
1566
1567
|
password: f.password
|
|
1567
1568
|
};
|
|
1568
|
-
|
|
1569
|
+
we(p).then(() => {
|
|
1569
1570
|
u.value = !1, O.success("绑定成功"), a.value = "hidden", s();
|
|
1570
1571
|
}).catch(() => {
|
|
1571
1572
|
u.value = !1;
|
|
@@ -1578,7 +1579,7 @@ const Ct = {
|
|
|
1578
1579
|
n.value || s();
|
|
1579
1580
|
}), (f, p) => {
|
|
1580
1581
|
var d, c, v;
|
|
1581
|
-
return g(), P(
|
|
1582
|
+
return g(), P(W, null, [!((d = e(n)) != null && d.email) && a.value === "hidden" ? (g(), y(e(R), {
|
|
1582
1583
|
key: 0,
|
|
1583
1584
|
title: "绑定邮箱"
|
|
1584
1585
|
}, {
|
|
@@ -1609,15 +1610,15 @@ const Ct = {
|
|
|
1609
1610
|
}, 8, ["size"])]),
|
|
1610
1611
|
default: m(() => {
|
|
1611
1612
|
var b;
|
|
1612
|
-
return [z(T(`您绑定的邮箱为${e(
|
|
1613
|
+
return [z(T(`您绑定的邮箱为${e(de)((b = e(n)) == null ? void 0 : b.email)}`) + " ", 1)];
|
|
1613
1614
|
}),
|
|
1614
1615
|
_: 1
|
|
1615
|
-
})) : S("", !0), a.value === "update" ? (g(), y(
|
|
1616
|
+
})) : S("", !0), a.value === "update" ? (g(), y(re, {
|
|
1616
1617
|
key: 2,
|
|
1617
1618
|
loading: e(u),
|
|
1618
1619
|
size: o.size,
|
|
1619
1620
|
onSubmit: r
|
|
1620
|
-
}, null, 8, ["loading", "size"])) : S("", !0), a.value === "verify" ? (g(), y(
|
|
1621
|
+
}, null, 8, ["loading", "size"])) : S("", !0), a.value === "verify" ? (g(), y(Y, {
|
|
1621
1622
|
key: 3,
|
|
1622
1623
|
size: o.size,
|
|
1623
1624
|
email: (v = e(n)) == null ? void 0 : v.email,
|
|
@@ -1625,7 +1626,7 @@ const Ct = {
|
|
|
1625
1626
|
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
1626
1627
|
};
|
|
1627
1628
|
}
|
|
1628
|
-
}),
|
|
1629
|
+
}), Et = /* @__PURE__ */ I(Ot, [["__scopeId", "data-v-e830a996"]]), Nt = /* @__PURE__ */ k({
|
|
1629
1630
|
__name: "AuthkitGithubBinding",
|
|
1630
1631
|
props: {
|
|
1631
1632
|
size: {
|
|
@@ -1637,14 +1638,14 @@ const Ct = {
|
|
|
1637
1638
|
const {
|
|
1638
1639
|
userProfile: n,
|
|
1639
1640
|
fetchUserProfile: u
|
|
1640
|
-
} =
|
|
1641
|
+
} = Z(), s = h("hidden"), a = h(!1);
|
|
1641
1642
|
let o;
|
|
1642
1643
|
const t = i;
|
|
1643
1644
|
function r(c) {
|
|
1644
1645
|
s.value = c;
|
|
1645
1646
|
}
|
|
1646
1647
|
function _() {
|
|
1647
|
-
|
|
1648
|
+
ae().then(({
|
|
1648
1649
|
data: c
|
|
1649
1650
|
}) => {
|
|
1650
1651
|
const {
|
|
@@ -1654,7 +1655,7 @@ const Ct = {
|
|
|
1654
1655
|
});
|
|
1655
1656
|
}
|
|
1656
1657
|
function f() {
|
|
1657
|
-
|
|
1658
|
+
be().then(() => {
|
|
1658
1659
|
O.success("解绑成功"), s.value = "hidden", u();
|
|
1659
1660
|
});
|
|
1660
1661
|
}
|
|
@@ -1666,11 +1667,11 @@ const Ct = {
|
|
|
1666
1667
|
}
|
|
1667
1668
|
return F(() => {
|
|
1668
1669
|
n.value || u(), o = setInterval(d, 1e3);
|
|
1669
|
-
}),
|
|
1670
|
+
}), te(() => {
|
|
1670
1671
|
o && clearInterval(o);
|
|
1671
1672
|
}), (c, v) => {
|
|
1672
|
-
var b, C
|
|
1673
|
-
return g(), P(
|
|
1673
|
+
var b, $, C;
|
|
1674
|
+
return g(), P(W, null, [!((b = e(n)) != null && b.github) && s.value === "hidden" ? (g(), y(e(R), {
|
|
1674
1675
|
key: 0,
|
|
1675
1676
|
title: "绑定GitHUb"
|
|
1676
1677
|
}, {
|
|
@@ -1686,7 +1687,7 @@ const Ct = {
|
|
|
1686
1687
|
default: m(() => [v[3] || (v[3] = z(" 请尚未绑定GitHub,请点击绑定GitHUb "))]),
|
|
1687
1688
|
_: 1,
|
|
1688
1689
|
__: [3]
|
|
1689
|
-
})) : S("", !0), (
|
|
1690
|
+
})) : S("", !0), ($ = e(n)) != null && $.github && s.value === "hidden" ? (g(), y(e(R), {
|
|
1690
1691
|
key: 1,
|
|
1691
1692
|
title: "解绑GitHub"
|
|
1692
1693
|
}, {
|
|
@@ -1701,27 +1702,27 @@ const Ct = {
|
|
|
1701
1702
|
}, 8, ["size"])]),
|
|
1702
1703
|
default: m(() => {
|
|
1703
1704
|
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(
|
|
1705
|
+
return [w("span", null, T(`您绑定的账号为 ${(E = (x = e(n)) == null ? void 0 : x.github) == null ? void 0 : E.login}`), 1), l(e(le), {
|
|
1705
1706
|
"image-url": (N = e(n)) == null ? void 0 : N.avatar,
|
|
1706
1707
|
size: 42
|
|
1707
1708
|
}, null, 8, ["image-url"])];
|
|
1708
1709
|
}),
|
|
1709
1710
|
_: 1
|
|
1710
|
-
})) : S("", !0), s.value === "bind" || s.value === "unbind" ? (g(), y(
|
|
1711
|
+
})) : S("", !0), s.value === "bind" || s.value === "unbind" ? (g(), y(Y, {
|
|
1711
1712
|
key: 2,
|
|
1712
1713
|
size: t.size,
|
|
1713
|
-
email: (
|
|
1714
|
+
email: (C = e(n)) == null ? void 0 : C.email,
|
|
1714
1715
|
onNext: p
|
|
1715
1716
|
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
1716
1717
|
};
|
|
1717
1718
|
}
|
|
1718
|
-
}),
|
|
1719
|
+
}), Ft = {
|
|
1719
1720
|
class: "content"
|
|
1720
|
-
}, Ft = {
|
|
1721
|
-
class: "left"
|
|
1722
1721
|
}, Gt = {
|
|
1722
|
+
class: "left"
|
|
1723
|
+
}, Ht = {
|
|
1723
1724
|
class: "right"
|
|
1724
|
-
},
|
|
1725
|
+
}, Mt = /* @__PURE__ */ k({
|
|
1725
1726
|
__name: "AuthkitAppSetting",
|
|
1726
1727
|
emits: ["confirm", "cancel"],
|
|
1727
1728
|
setup(i, {
|
|
@@ -1784,15 +1785,15 @@ const Ct = {
|
|
|
1784
1785
|
const {
|
|
1785
1786
|
changeType: f,
|
|
1786
1787
|
show: p
|
|
1787
|
-
} =
|
|
1788
|
+
} = Ue(s);
|
|
1788
1789
|
function d(c, v) {
|
|
1789
1790
|
console.log(c), p.value = v, f.value = "编辑";
|
|
1790
1791
|
}
|
|
1791
1792
|
return n({
|
|
1792
1793
|
setData: d
|
|
1793
|
-
}), (c, v) => (g(), y(e(
|
|
1794
|
+
}), (c, v) => (g(), y(e(ne), {
|
|
1794
1795
|
visible: e(p),
|
|
1795
|
-
"onUpdate:visible": v[1] || (v[1] = (b) =>
|
|
1796
|
+
"onUpdate:visible": v[1] || (v[1] = (b) => se(p) ? p.value = b : null),
|
|
1796
1797
|
"unmount-on-close": "",
|
|
1797
1798
|
"body-class": "AppSettingbodyClass",
|
|
1798
1799
|
"mask-closable": !1,
|
|
@@ -1801,49 +1802,49 @@ const Ct = {
|
|
|
1801
1802
|
onCancel: a
|
|
1802
1803
|
}, {
|
|
1803
1804
|
title: m(() => v[2] || (v[2] = [z(" 系统设置 ")])),
|
|
1804
|
-
default: m(() => [w("div",
|
|
1805
|
+
default: m(() => [w("div", Ft, [w("div", Gt, [l(Ve, {
|
|
1805
1806
|
"selected-keys": t.value,
|
|
1806
1807
|
"onUpdate:selectedKeys": v[0] || (v[0] = (b) => t.value = b),
|
|
1807
1808
|
menus: r.value,
|
|
1808
1809
|
onChange: _
|
|
1809
|
-
}, null, 8, ["selected-keys", "menus"])]), w("div",
|
|
1810
|
+
}, null, 8, ["selected-keys", "menus"])]), w("div", Ht, [t.value[0] === "PersonalInformation" ? (g(), y($t, {
|
|
1810
1811
|
key: 0,
|
|
1811
1812
|
size: o.value
|
|
1812
|
-
}, null, 8, ["size"])) : S("", !0), t.value[0] === "EmailBinding" ? (g(), y(
|
|
1813
|
+
}, null, 8, ["size"])) : S("", !0), t.value[0] === "EmailBinding" ? (g(), y(Et, {
|
|
1813
1814
|
key: 1,
|
|
1814
1815
|
size: o.value
|
|
1815
|
-
}, null, 8, ["size"])) : S("", !0), t.value[0] === "SetPassword" ? (g(), y(
|
|
1816
|
+
}, null, 8, ["size"])) : S("", !0), t.value[0] === "SetPassword" ? (g(), y(Bt, {
|
|
1816
1817
|
key: 2,
|
|
1817
1818
|
size: o.value
|
|
1818
|
-
}, null, 8, ["size"])) : S("", !0), t.value[0] === "GithubBinding" ? (g(), y(
|
|
1819
|
+
}, null, 8, ["size"])) : S("", !0), t.value[0] === "GithubBinding" ? (g(), y(Nt, {
|
|
1819
1820
|
key: 3,
|
|
1820
1821
|
size: o.value
|
|
1821
1822
|
}, null, 8, ["size"])) : S("", !0)])])]),
|
|
1822
1823
|
_: 1
|
|
1823
1824
|
}, 8, ["visible"]));
|
|
1824
1825
|
}
|
|
1825
|
-
}),
|
|
1826
|
+
}), mi = /* @__PURE__ */ I(Mt, [["__scopeId", "data-v-e9f9426e"]]);
|
|
1826
1827
|
export {
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1828
|
+
zt as A,
|
|
1829
|
+
re as E,
|
|
1830
|
+
Be as O,
|
|
1831
|
+
De as P,
|
|
1832
|
+
Je as R,
|
|
1833
|
+
X as S,
|
|
1834
|
+
M as _,
|
|
1835
|
+
di as a,
|
|
1836
|
+
mi as b,
|
|
1837
|
+
ue as c,
|
|
1838
|
+
ut as d,
|
|
1839
|
+
gt as e,
|
|
1840
|
+
st as f,
|
|
1841
|
+
oe as g,
|
|
1842
|
+
at as h,
|
|
1843
|
+
Ye as i,
|
|
1844
|
+
$t as j,
|
|
1845
|
+
Y as k,
|
|
1846
|
+
Nt as l,
|
|
1847
|
+
Bt as m,
|
|
1848
|
+
Et as n,
|
|
1849
|
+
Lt as o
|
|
1849
1850
|
};
|