@huyooo/ui 0.4.52 → 0.4.55
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-D6PAh-ZI.js → AuthkitAppSetting-D7k_8buM.js} +106 -107
- package/dist/{AuthkitAuthorize-DKG7JGSV.js → AuthkitAuthorize-pB8aT1kV.js} +1 -1
- package/dist/{FeedbackItem-BO8dYYKo.js → FeedbackItem-Dxzmtu66.js} +2 -2
- package/dist/{FeedbackModal-B_W_RWec.js → FeedbackModal-D7tjJLBj.js} +1 -1
- package/dist/{UserPanel-BIKWssEY.js → UserPanel-BfwmCJ7B.js} +24 -24
- package/dist/authkit.js +2 -2
- package/dist/common.js +1 -1
- package/dist/components/Authkit/AuthkitAppSetting.vue.d.ts +1 -1
- package/dist/components/User/UserPanel.vue.d.ts +4 -2
- package/dist/feedback.js +2 -2
- package/dist/index.js +5 -5
- package/dist/style.css +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
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
|
|
5
|
-
import { Button as U, Divider as ge, Form as
|
|
6
|
-
import { u as K, b as he, c as ee, d as ye, a as Z, e as
|
|
4
|
+
import { defineComponent as k, createBlock as y, openBlock as g, unref as e, withCtx as m, createElementVNode as b, toDisplayString as B, createVNode as l, computed as T, 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 O, FormItem as A, Input as V, Link as E, Modal as ne, Avatar as le, Textarea as _e, Message as N, Alert as L } from "@arco-design/web-vue";
|
|
6
|
+
import { u as K, b as he, c as ee, d as ye, a as Z, e as be, f as we } from "./useAuthkitUsersProfile-CT2MN1S5.js";
|
|
7
7
|
import { U as J, u as ze } from "./useAuthkitAuthModal-C153ZpNb.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { Icon as Se } from "@iconify/vue";
|
|
@@ -77,7 +77,7 @@ const M = /* @__PURE__ */ k({
|
|
|
77
77
|
icon: m(() => [l(e(Se), {
|
|
78
78
|
icon: u.icon
|
|
79
79
|
}, null, 8, ["icon"])]),
|
|
80
|
-
default: m(() => [
|
|
80
|
+
default: m(() => [b("span", null, B(u.label), 1)]),
|
|
81
81
|
_: 1
|
|
82
82
|
}, 8, ["size"]));
|
|
83
83
|
}
|
|
@@ -104,7 +104,7 @@ const M = /* @__PURE__ */ k({
|
|
|
104
104
|
githubAuth: s,
|
|
105
105
|
googleAuth: a,
|
|
106
106
|
microsoftAuth: o
|
|
107
|
-
} = qe(), t =
|
|
107
|
+
} = qe(), t = T(() => !(!n.value.oauth.google.enabled && !n.value.oauth.microsoft.enabled && !n.value.oauth.github.enabled && !n.value.oauth.wechat.enabled));
|
|
108
108
|
return (r, _) => (g(), P("div", Re, [t.value ? (g(), y(e(ge), {
|
|
109
109
|
key: 0,
|
|
110
110
|
orientation: "center"
|
|
@@ -112,7 +112,7 @@ const M = /* @__PURE__ */ k({
|
|
|
112
112
|
default: m(() => _[0] || (_[0] = [z("OAuth登陆")])),
|
|
113
113
|
_: 1,
|
|
114
114
|
__: [0]
|
|
115
|
-
})) : S("", !0),
|
|
115
|
+
})) : S("", !0), b("div", Te, [e(n).oauth.github.enabled ? (g(), y(M, {
|
|
116
116
|
key: 0,
|
|
117
117
|
icon: "mdi:github",
|
|
118
118
|
label: "Github",
|
|
@@ -174,7 +174,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
174
174
|
}) {
|
|
175
175
|
const s = u, a = i, o = h(!1);
|
|
176
176
|
let t;
|
|
177
|
-
const r = h(0), _ =
|
|
177
|
+
const r = h(0), _ = T(() => r.value.toString().padStart(2, "0")), f = T(() => r.value > 0), p = () => {
|
|
178
178
|
o.value && (r.value <= 0 ? (clearInterval(t), o.value = !1) : r.value--);
|
|
179
179
|
};
|
|
180
180
|
function d() {
|
|
@@ -188,7 +188,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
188
188
|
startCountFn: c
|
|
189
189
|
}), te(() => {
|
|
190
190
|
t && clearInterval(t);
|
|
191
|
-
}), (v,
|
|
191
|
+
}), (v, w) => (g(), y(e(U), {
|
|
192
192
|
class: "OAuthItem",
|
|
193
193
|
type: "primary",
|
|
194
194
|
size: a.size,
|
|
@@ -196,9 +196,9 @@ const Ne = /* @__PURE__ */ k({
|
|
|
196
196
|
loading: a.loading,
|
|
197
197
|
onClick: d
|
|
198
198
|
}, {
|
|
199
|
-
default: m(() => [
|
|
199
|
+
default: m(() => [w[0] || (w[0] = b("span", null, " 发送验证码", -1)), ce(b("span", {
|
|
200
200
|
class: "verify-code-timer"
|
|
201
|
-
},
|
|
201
|
+
}, B(`(${_.value})`), 513), [[fe, f.value]])]),
|
|
202
202
|
_: 1,
|
|
203
203
|
__: [0]
|
|
204
204
|
}, 8, ["size", "disabled", "loading"]));
|
|
@@ -251,7 +251,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
251
251
|
p || u("submit", r.value);
|
|
252
252
|
});
|
|
253
253
|
}
|
|
254
|
-
return (p, d) => (g(), P("div", Fe, [l(e(
|
|
254
|
+
return (p, d) => (g(), P("div", Fe, [l(e(O), {
|
|
255
255
|
ref_key: "formRef",
|
|
256
256
|
ref: t,
|
|
257
257
|
model: r.value,
|
|
@@ -285,7 +285,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
285
285
|
message: "请输入验证码"
|
|
286
286
|
}]
|
|
287
287
|
}, {
|
|
288
|
-
default: m(() => [
|
|
288
|
+
default: m(() => [b("div", Ge, [l(e(V), {
|
|
289
289
|
modelValue: r.value.userToken,
|
|
290
290
|
"onUpdate:modelValue": d[1] || (d[1] = (c) => r.value.userToken = c),
|
|
291
291
|
placeholder: "请输入验证码"
|
|
@@ -344,7 +344,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
344
344
|
autocomplete: ""
|
|
345
345
|
}, null, 8, ["modelValue"])]),
|
|
346
346
|
_: 1
|
|
347
|
-
}, 8, ["rules"]),
|
|
347
|
+
}, 8, ["rules"]), b("div", He, [l(e(U), {
|
|
348
348
|
type: "primary",
|
|
349
349
|
loading: s.loading,
|
|
350
350
|
long: "",
|
|
@@ -370,7 +370,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
370
370
|
function s() {
|
|
371
371
|
u("switchSignIn");
|
|
372
372
|
}
|
|
373
|
-
return (a, o) => (g(), P("div", je, [
|
|
373
|
+
return (a, o) => (g(), P("div", je, [b("span", null, [o[1] || (o[1] = b("span", null, "已经有账号?", -1)), l(e(E), {
|
|
374
374
|
style: {
|
|
375
375
|
padding: "0px"
|
|
376
376
|
},
|
|
@@ -405,8 +405,8 @@ const Ne = /* @__PURE__ */ k({
|
|
|
405
405
|
function a() {
|
|
406
406
|
u("switchSignIn");
|
|
407
407
|
}
|
|
408
|
-
async function o() {
|
|
409
|
-
u("submit");
|
|
408
|
+
async function o(t) {
|
|
409
|
+
u("submit", t);
|
|
410
410
|
}
|
|
411
411
|
return (t, r) => (g(), P("div", Ke, [l(De, {
|
|
412
412
|
loading: i.loading,
|
|
@@ -416,7 +416,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
416
416
|
onSwitchSignIn: a
|
|
417
417
|
})]));
|
|
418
418
|
}
|
|
419
|
-
}), Je = /* @__PURE__ */ I(Ze, [["__scopeId", "data-v-
|
|
419
|
+
}), Je = /* @__PURE__ */ I(Ze, [["__scopeId", "data-v-0622cbe3"]]), Qe = {
|
|
420
420
|
class: "ServiceAgreementAndPrivacyProtection"
|
|
421
421
|
}, Xe = /* @__PURE__ */ k({
|
|
422
422
|
__name: "AuthkitServiceAgreementAndPrivacyProtection",
|
|
@@ -431,13 +431,13 @@ const Ne = /* @__PURE__ */ k({
|
|
|
431
431
|
function a() {
|
|
432
432
|
u("toPrivacyPolicy");
|
|
433
433
|
}
|
|
434
|
-
return (o, t) => (g(), P("div", Qe, [t[2] || (t[2] =
|
|
434
|
+
return (o, t) => (g(), P("div", Qe, [t[2] || (t[2] = b("span", null, " 注册登陆即表示同意", -1)), l(e(E), {
|
|
435
435
|
onClick: s
|
|
436
436
|
}, {
|
|
437
437
|
default: m(() => t[0] || (t[0] = [z("用户服务协议")])),
|
|
438
438
|
_: 1,
|
|
439
439
|
__: [0]
|
|
440
|
-
}), t[3] || (t[3] =
|
|
440
|
+
}), t[3] || (t[3] = b("span", null, " 和 ", -1)), l(e(E), {
|
|
441
441
|
onClick: a
|
|
442
442
|
}, {
|
|
443
443
|
default: m(() => t[1] || (t[1] = [z("隐私协议")])),
|
|
@@ -487,7 +487,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
487
487
|
_ || u("submit", t.value);
|
|
488
488
|
});
|
|
489
489
|
}
|
|
490
|
-
return (_, f) => (g(), P("div", et, [l(e(
|
|
490
|
+
return (_, f) => (g(), P("div", et, [l(e(O), {
|
|
491
491
|
ref_key: "formRef",
|
|
492
492
|
ref: o,
|
|
493
493
|
model: t.value,
|
|
@@ -533,7 +533,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
533
533
|
autocomplete: "current-password"
|
|
534
534
|
}, null, 8, ["modelValue"])]),
|
|
535
535
|
_: 1
|
|
536
|
-
}, 8, ["rules"]),
|
|
536
|
+
}, 8, ["rules"]), b("div", tt, [l(e(U), {
|
|
537
537
|
type: "primary",
|
|
538
538
|
loading: s.loading,
|
|
539
539
|
long: "",
|
|
@@ -547,7 +547,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
547
547
|
_: 1
|
|
548
548
|
}, 8, ["model", "size"])]));
|
|
549
549
|
}
|
|
550
|
-
}), st = /* @__PURE__ */ I(it, [["__scopeId", "data-v-
|
|
550
|
+
}), st = /* @__PURE__ */ I(it, [["__scopeId", "data-v-76d6bc26"]]), nt = {
|
|
551
551
|
class: "SwitchSignUpOrResetPassword"
|
|
552
552
|
}, lt = /* @__PURE__ */ k({
|
|
553
553
|
__name: "AuthkitSwitchSignUpOrResetPassword",
|
|
@@ -562,7 +562,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
562
562
|
function a() {
|
|
563
563
|
u("switchResetPassword");
|
|
564
564
|
}
|
|
565
|
-
return (o, t) => (g(), P("div", nt, [
|
|
565
|
+
return (o, t) => (g(), P("div", nt, [b("span", null, [t[1] || (t[1] = b("span", null, " 还没有账户?", -1)), l(e(E), {
|
|
566
566
|
style: {
|
|
567
567
|
padding: "0px"
|
|
568
568
|
},
|
|
@@ -571,7 +571,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
571
571
|
default: m(() => t[0] || (t[0] = [z("去注册?")])),
|
|
572
572
|
_: 1,
|
|
573
573
|
__: [0]
|
|
574
|
-
})]), l(e(
|
|
574
|
+
})]), l(e(E), {
|
|
575
575
|
style: {
|
|
576
576
|
padding: "0px"
|
|
577
577
|
},
|
|
@@ -601,7 +601,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
601
601
|
setup(i, {
|
|
602
602
|
emit: n
|
|
603
603
|
}) {
|
|
604
|
-
const u = n, s = i, a = pe(), o =
|
|
604
|
+
const u = n, s = i, a = pe(), o = T(() => !!a.OAuth);
|
|
605
605
|
function t() {
|
|
606
606
|
u("switchSignUp");
|
|
607
607
|
}
|
|
@@ -622,7 +622,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
622
622
|
onSwitchResetPassword: r
|
|
623
623
|
})]));
|
|
624
624
|
}
|
|
625
|
-
}), ut = /* @__PURE__ */ I(rt, [["__scopeId", "data-v-
|
|
625
|
+
}), ut = /* @__PURE__ */ I(rt, [["__scopeId", "data-v-f52ce3b3"]]), dt = {
|
|
626
626
|
class: "content"
|
|
627
627
|
}, mt = {
|
|
628
628
|
class: "sendVerifyCodeItem"
|
|
@@ -671,7 +671,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
671
671
|
p || u("submit", r.value);
|
|
672
672
|
});
|
|
673
673
|
}
|
|
674
|
-
return (p, d) => (g(), P("div", dt, [l(e(
|
|
674
|
+
return (p, d) => (g(), P("div", dt, [l(e(O), {
|
|
675
675
|
ref_key: "formRef",
|
|
676
676
|
ref: t,
|
|
677
677
|
model: r.value,
|
|
@@ -707,7 +707,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
707
707
|
message: "请输入验证码"
|
|
708
708
|
}]
|
|
709
709
|
}, {
|
|
710
|
-
default: m(() => [
|
|
710
|
+
default: m(() => [b("div", mt, [l(e(V), {
|
|
711
711
|
modelValue: r.value.userToken,
|
|
712
712
|
"onUpdate:modelValue": d[1] || (d[1] = (c) => r.value.userToken = c),
|
|
713
713
|
placeholder: "请输入验证码",
|
|
@@ -783,7 +783,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
783
783
|
autocomplete: "off"
|
|
784
784
|
}, null, 8, ["modelValue"])]),
|
|
785
785
|
_: 1
|
|
786
|
-
}),
|
|
786
|
+
}), b("div", ct, [l(e(U), {
|
|
787
787
|
type: "primary",
|
|
788
788
|
loading: s.loading,
|
|
789
789
|
long: "",
|
|
@@ -831,7 +831,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
831
831
|
onSwitchSignIn: a
|
|
832
832
|
})]));
|
|
833
833
|
}
|
|
834
|
-
}), gt = /* @__PURE__ */ I(vt, [["__scopeId", "data-v-
|
|
834
|
+
}), gt = /* @__PURE__ */ I(vt, [["__scopeId", "data-v-058bbbef"]]), _t = ["src"], ht = /* @__PURE__ */ k({
|
|
835
835
|
__name: "AuthkitAuthTitle",
|
|
836
836
|
props: {
|
|
837
837
|
size: {
|
|
@@ -855,7 +855,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
855
855
|
currentView: o
|
|
856
856
|
} = K(), {
|
|
857
857
|
appsData: t
|
|
858
|
-
} = J(), r =
|
|
858
|
+
} = J(), r = T(() => o.value === "signIn" ? `${t.value.name}登录` : o.value === "signUp" ? `${t.value.name}账号注册` : o.value === "resetPassword" ? `${t.value.name}密码重置` : "");
|
|
859
859
|
return (_, f) => (g(), P("div", {
|
|
860
860
|
class: "Title",
|
|
861
861
|
style: j({
|
|
@@ -869,13 +869,13 @@ const Ne = /* @__PURE__ */ k({
|
|
|
869
869
|
style: j({
|
|
870
870
|
width: u
|
|
871
871
|
})
|
|
872
|
-
}, null, 12, _t)) : S("", !0),
|
|
872
|
+
}, null, 12, _t)) : S("", !0), b("span", null, B(r.value), 1), ie(_.$slots, "default", {}, void 0, !0)], 4));
|
|
873
873
|
}
|
|
874
874
|
}), ue = /* @__PURE__ */ I(ht, [["__scopeId", "data-v-8255764a"]]), yt = {
|
|
875
875
|
class: "Auth"
|
|
876
|
-
},
|
|
876
|
+
}, bt = {
|
|
877
877
|
class: "body"
|
|
878
|
-
},
|
|
878
|
+
}, wt = /* @__PURE__ */ k({
|
|
879
879
|
__name: "AuthkitAuth",
|
|
880
880
|
props: {
|
|
881
881
|
size: {
|
|
@@ -903,48 +903,48 @@ const Ne = /* @__PURE__ */ k({
|
|
|
903
903
|
switchResetPassword: c,
|
|
904
904
|
switchSignIn: v
|
|
905
905
|
} = K(), {
|
|
906
|
-
appsAuthPageInfoApi:
|
|
906
|
+
appsAuthPageInfoApi: w
|
|
907
907
|
} = J();
|
|
908
908
|
function $() {
|
|
909
909
|
s("toPrivacyPolicy");
|
|
910
910
|
}
|
|
911
|
-
function
|
|
911
|
+
function q() {
|
|
912
912
|
s("toUserServiceAgreement");
|
|
913
913
|
}
|
|
914
|
-
return
|
|
914
|
+
return w(), (R, C) => (g(), P("div", yt, [i.showTitle ? (g(), y(ue, {
|
|
915
915
|
key: 0,
|
|
916
916
|
size: 32,
|
|
917
917
|
"font-size": 20
|
|
918
|
-
})) : S("", !0),
|
|
918
|
+
})) : S("", !0), b("div", bt, [e(r) === "signIn" ? (g(), y(ut, {
|
|
919
919
|
key: 0,
|
|
920
920
|
size: u.size,
|
|
921
921
|
loading: e(_),
|
|
922
922
|
onSwitchSignUp: e(d),
|
|
923
923
|
onSwitchResetPassword: e(c),
|
|
924
|
-
onSubmit: e(a)
|
|
924
|
+
onSubmit: C[0] || (C[0] = (x) => e(a)(x))
|
|
925
925
|
}, {
|
|
926
926
|
OAuth: m(() => [l(Be, {
|
|
927
927
|
size: u.size
|
|
928
928
|
}, null, 8, ["size"])]),
|
|
929
929
|
_: 1
|
|
930
|
-
}, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"
|
|
930
|
+
}, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : e(r) === "signUp" ? (g(), y(gt, {
|
|
931
931
|
key: 1,
|
|
932
932
|
size: u.size,
|
|
933
933
|
loading: e(f),
|
|
934
934
|
onSwitchSignIn: e(v),
|
|
935
|
-
onSubmit: e(o)
|
|
936
|
-
}, null, 8, ["size", "loading", "onSwitchSignIn"
|
|
935
|
+
onSubmit: C[1] || (C[1] = (x) => e(o)(x))
|
|
936
|
+
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(r) === "resetPassword" ? (g(), y(Je, {
|
|
937
937
|
key: 2,
|
|
938
938
|
size: u.size,
|
|
939
939
|
loading: e(p),
|
|
940
940
|
onSwitchSignIn: e(v),
|
|
941
|
-
onSubmit: e(t)
|
|
942
|
-
}, null, 8, ["size", "loading", "onSwitchSignIn"
|
|
941
|
+
onSubmit: C[2] || (C[2] = (x) => e(t)(x))
|
|
942
|
+
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : S("", !0), l(Ye, {
|
|
943
943
|
onToPrivacyPolicy: $,
|
|
944
|
-
onToUserServiceAgreement:
|
|
944
|
+
onToUserServiceAgreement: q
|
|
945
945
|
})])]));
|
|
946
946
|
}
|
|
947
|
-
}), zt = /* @__PURE__ */ I(
|
|
947
|
+
}), zt = /* @__PURE__ */ I(wt, [["__scopeId", "data-v-67d0eb00"]]), St = /* @__PURE__ */ k({
|
|
948
948
|
__name: "AuthkitAuthModal",
|
|
949
949
|
props: {
|
|
950
950
|
size: {
|
|
@@ -1022,9 +1022,9 @@ const Ne = /* @__PURE__ */ k({
|
|
|
1022
1022
|
setup(i, {
|
|
1023
1023
|
emit: n
|
|
1024
1024
|
}) {
|
|
1025
|
-
const u = Ie("icon"), s =
|
|
1025
|
+
const u = Ie("icon"), s = T(() => [u, `${u}-camera`, {
|
|
1026
1026
|
[`${u}-spin`]: i.spin
|
|
1027
|
-
}]), a =
|
|
1027
|
+
}]), a = T(() => {
|
|
1028
1028
|
const t = {};
|
|
1029
1029
|
return i.size && (t.fontSize = Pe(i.size) ? `${i.size}px` : i.size), i.rotate && (t.transform = `rotate(${i.rotate}deg)`), t;
|
|
1030
1030
|
});
|
|
@@ -1049,7 +1049,7 @@ function It(i, n, u, s, a, o) {
|
|
|
1049
1049
|
"stroke-linecap": i.strokeLinecap,
|
|
1050
1050
|
"stroke-linejoin": i.strokeLinejoin,
|
|
1051
1051
|
onClick: n[0] || (n[0] = (...t) => i.onClick && i.onClick(...t))
|
|
1052
|
-
}, n[1] || (n[1] = [
|
|
1052
|
+
}, n[1] || (n[1] = [b("path", {
|
|
1053
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"
|
|
1054
1054
|
}, null, -1)]), 14, At);
|
|
1055
1055
|
}
|
|
@@ -1103,7 +1103,7 @@ const Pt = Object.assign(D, {
|
|
|
1103
1103
|
ee(c).then(({
|
|
1104
1104
|
data: v
|
|
1105
1105
|
}) => {
|
|
1106
|
-
r.value = !1,
|
|
1106
|
+
r.value = !1, N.success("更新成功"), a.value.avatarUrl = v.avatarUrl, u("submit");
|
|
1107
1107
|
}).catch(() => {
|
|
1108
1108
|
r.value = !1;
|
|
1109
1109
|
});
|
|
@@ -1116,39 +1116,39 @@ const Pt = Object.assign(D, {
|
|
|
1116
1116
|
uploadFile: d
|
|
1117
1117
|
} = ke(), c = document.createElement("input");
|
|
1118
1118
|
c.type = "file", c.accept = "image/*", c.style.display = "none", document.body.append(c), c.addEventListener("change", async (v) => {
|
|
1119
|
-
var
|
|
1120
|
-
const $ = (
|
|
1119
|
+
var q;
|
|
1120
|
+
const $ = (q = v.target.files) == null ? void 0 : q[0];
|
|
1121
1121
|
if ($) {
|
|
1122
1122
|
o.value = !0;
|
|
1123
1123
|
try {
|
|
1124
1124
|
d({
|
|
1125
1125
|
file: $,
|
|
1126
|
-
onFileFinish(
|
|
1126
|
+
onFileFinish(R, C, x) {
|
|
1127
1127
|
o.value = !0;
|
|
1128
1128
|
const me = {
|
|
1129
1129
|
id: a.value.id,
|
|
1130
1130
|
nickname: a.value.nickname,
|
|
1131
1131
|
description: a.value.description,
|
|
1132
|
-
avatar:
|
|
1132
|
+
avatar: x.Key
|
|
1133
1133
|
};
|
|
1134
1134
|
ee(me).then(() => {
|
|
1135
|
-
o.value = !1,
|
|
1135
|
+
o.value = !1, N.success("更新成功"), _(), u("submit");
|
|
1136
1136
|
}).catch(() => {
|
|
1137
1137
|
o.value = !1;
|
|
1138
1138
|
});
|
|
1139
1139
|
},
|
|
1140
|
-
onError(
|
|
1140
|
+
onError(R) {
|
|
1141
1141
|
console.error("上传图片失败"), o.value = !1;
|
|
1142
1142
|
}
|
|
1143
1143
|
});
|
|
1144
|
-
} catch (
|
|
1145
|
-
console.error("上传图片失败",
|
|
1144
|
+
} catch (R) {
|
|
1145
|
+
console.error("上传图片失败", R), o.value = !1;
|
|
1146
1146
|
}
|
|
1147
1147
|
}
|
|
1148
1148
|
c.remove();
|
|
1149
1149
|
}), c.click();
|
|
1150
1150
|
};
|
|
1151
|
-
return (d, c) => (g(), y(e(
|
|
1151
|
+
return (d, c) => (g(), y(e(O), {
|
|
1152
1152
|
ref_key: "formRef",
|
|
1153
1153
|
ref: t,
|
|
1154
1154
|
model: a.value,
|
|
@@ -1212,7 +1212,7 @@ const Pt = Object.assign(D, {
|
|
|
1212
1212
|
label: "",
|
|
1213
1213
|
rules: []
|
|
1214
1214
|
}, {
|
|
1215
|
-
default: m(() => [
|
|
1215
|
+
default: m(() => [b("div", Vt, [l(e(U), {
|
|
1216
1216
|
type: "primary",
|
|
1217
1217
|
loading: r.value,
|
|
1218
1218
|
onClick: f
|
|
@@ -1226,7 +1226,7 @@ const Pt = Object.assign(D, {
|
|
|
1226
1226
|
_: 1
|
|
1227
1227
|
}, 8, ["model", "size"]));
|
|
1228
1228
|
}
|
|
1229
|
-
}), $t = /* @__PURE__ */ I(Ut, [["__scopeId", "data-v-
|
|
1229
|
+
}), $t = /* @__PURE__ */ I(Ut, [["__scopeId", "data-v-62438648"]]);
|
|
1230
1230
|
function de(i, n = 3) {
|
|
1231
1231
|
const u = i.indexOf("@");
|
|
1232
1232
|
if (u > 1) {
|
|
@@ -1256,7 +1256,7 @@ const Ct = {
|
|
|
1256
1256
|
setup(i, {
|
|
1257
1257
|
emit: n
|
|
1258
1258
|
}) {
|
|
1259
|
-
const u = n, s = i, a =
|
|
1259
|
+
const u = n, s = i, a = T(() => de(s.email)), o = h(), t = h(!1), r = h(!1), _ = h(), f = h({
|
|
1260
1260
|
userToken: void 0,
|
|
1261
1261
|
emailVerifyId: void 0
|
|
1262
1262
|
});
|
|
@@ -1288,7 +1288,7 @@ const Ct = {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
});
|
|
1290
1290
|
}
|
|
1291
|
-
return (c, v) => (g(), y(e(
|
|
1291
|
+
return (c, v) => (g(), y(e(O), {
|
|
1292
1292
|
ref_key: "formRef",
|
|
1293
1293
|
ref: _,
|
|
1294
1294
|
model: f.value,
|
|
@@ -1306,7 +1306,7 @@ const Ct = {
|
|
|
1306
1306
|
message: "请输入有效的邮箱"
|
|
1307
1307
|
}]
|
|
1308
1308
|
}, {
|
|
1309
|
-
default: m(() => [z(
|
|
1309
|
+
default: m(() => [z(B(a.value), 1)]),
|
|
1310
1310
|
_: 1
|
|
1311
1311
|
}), l(e(A), {
|
|
1312
1312
|
field: "userToken",
|
|
@@ -1317,9 +1317,9 @@ const Ct = {
|
|
|
1317
1317
|
message: "请输入验证码"
|
|
1318
1318
|
}]
|
|
1319
1319
|
}, {
|
|
1320
|
-
default: m(() => [
|
|
1320
|
+
default: m(() => [b("div", Ct, [l(e(V), {
|
|
1321
1321
|
modelValue: f.value.userToken,
|
|
1322
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
1322
|
+
"onUpdate:modelValue": v[0] || (v[0] = (w) => f.value.userToken = w),
|
|
1323
1323
|
placeholder: "请输入验证码"
|
|
1324
1324
|
}, null, 8, ["modelValue"]), l(X, {
|
|
1325
1325
|
ref_key: "SendVerifyCodeRef",
|
|
@@ -1337,7 +1337,7 @@ const Ct = {
|
|
|
1337
1337
|
label: "",
|
|
1338
1338
|
rules: []
|
|
1339
1339
|
}, {
|
|
1340
|
-
default: m(() => [
|
|
1340
|
+
default: m(() => [b("div", xt, [l(e(U), {
|
|
1341
1341
|
loading: r.value,
|
|
1342
1342
|
type: "primary",
|
|
1343
1343
|
onClick: d
|
|
@@ -1377,14 +1377,14 @@ const Ct = {
|
|
|
1377
1377
|
password: t.value.password
|
|
1378
1378
|
};
|
|
1379
1379
|
ye(f).then(() => {
|
|
1380
|
-
s.value = !1, u("submit");
|
|
1380
|
+
s.value = !1, u("submit", f);
|
|
1381
1381
|
}).catch(() => {
|
|
1382
1382
|
s.value = !1;
|
|
1383
1383
|
});
|
|
1384
1384
|
}
|
|
1385
1385
|
});
|
|
1386
1386
|
}
|
|
1387
|
-
return (_, f) => (g(), y(e(
|
|
1387
|
+
return (_, f) => (g(), y(e(O), {
|
|
1388
1388
|
ref_key: "formRef",
|
|
1389
1389
|
ref: a,
|
|
1390
1390
|
model: t.value,
|
|
@@ -1454,7 +1454,7 @@ const Ct = {
|
|
|
1454
1454
|
label: "",
|
|
1455
1455
|
rules: []
|
|
1456
1456
|
}, {
|
|
1457
|
-
default: m(() => [
|
|
1457
|
+
default: m(() => [b("div", Rt, [l(e(U), {
|
|
1458
1458
|
type: "primary",
|
|
1459
1459
|
loading: s.value,
|
|
1460
1460
|
onClick: r
|
|
@@ -1468,7 +1468,7 @@ const Ct = {
|
|
|
1468
1468
|
_: 1
|
|
1469
1469
|
}, 8, ["model", "size"]));
|
|
1470
1470
|
}
|
|
1471
|
-
}), Lt = /* @__PURE__ */ I(Tt, [["__scopeId", "data-v-
|
|
1471
|
+
}), Lt = /* @__PURE__ */ I(Tt, [["__scopeId", "data-v-a9e25b03"]]), Bt = /* @__PURE__ */ k({
|
|
1472
1472
|
__name: "AuthkitSetPassword",
|
|
1473
1473
|
props: {
|
|
1474
1474
|
size: {
|
|
@@ -1486,8 +1486,8 @@ const Ct = {
|
|
|
1486
1486
|
function r(p) {
|
|
1487
1487
|
o.value = p;
|
|
1488
1488
|
}
|
|
1489
|
-
function _() {
|
|
1490
|
-
|
|
1489
|
+
function _(p) {
|
|
1490
|
+
N.success("密码修改成功"), o.value = "hidden", s();
|
|
1491
1491
|
}
|
|
1492
1492
|
function f() {
|
|
1493
1493
|
o.value = "update";
|
|
@@ -1495,15 +1495,15 @@ const Ct = {
|
|
|
1495
1495
|
return F(() => {
|
|
1496
1496
|
a.value && !n.value && s();
|
|
1497
1497
|
}), (p, d) => {
|
|
1498
|
-
var c, v,
|
|
1499
|
-
return g(), P(W, null, [!((c = e(n)) != null && c.email) && !((v = e(n)) != null && v.phone) ? (g(), y(e(
|
|
1498
|
+
var c, v, w, $;
|
|
1499
|
+
return g(), P(W, null, [!((c = e(n)) != null && c.email) && !((v = e(n)) != null && v.phone) ? (g(), y(e(L), {
|
|
1500
1500
|
key: 0,
|
|
1501
1501
|
title: "去绑定邮箱"
|
|
1502
1502
|
}, {
|
|
1503
1503
|
action: m(() => [l(e(U), {
|
|
1504
1504
|
size: t.size,
|
|
1505
1505
|
type: "primary",
|
|
1506
|
-
onClick: d[0] || (d[0] = (
|
|
1506
|
+
onClick: d[0] || (d[0] = (q) => r("update"))
|
|
1507
1507
|
}, {
|
|
1508
1508
|
default: m(() => d[2] || (d[2] = [z(" 去绑定邮箱 ")])),
|
|
1509
1509
|
_: 1,
|
|
@@ -1512,14 +1512,14 @@ const Ct = {
|
|
|
1512
1512
|
default: m(() => [d[3] || (d[3] = z(" 请先去绑定邮箱或者手机号码,才能设置密码 "))]),
|
|
1513
1513
|
_: 1,
|
|
1514
1514
|
__: [3]
|
|
1515
|
-
})) : S("", !0), (
|
|
1515
|
+
})) : S("", !0), (w = e(n)) != null && w.email && o.value === "hidden" ? (g(), y(e(L), {
|
|
1516
1516
|
key: 1,
|
|
1517
1517
|
title: "更改密码"
|
|
1518
1518
|
}, {
|
|
1519
1519
|
action: m(() => [l(e(U), {
|
|
1520
1520
|
size: t.size,
|
|
1521
1521
|
type: "primary",
|
|
1522
|
-
onClick: d[1] || (d[1] = (
|
|
1522
|
+
onClick: d[1] || (d[1] = (q) => r("verify"))
|
|
1523
1523
|
}, {
|
|
1524
1524
|
default: m(() => d[4] || (d[4] = [z("更改密码")])),
|
|
1525
1525
|
_: 1,
|
|
@@ -1563,11 +1563,10 @@ const Ct = {
|
|
|
1563
1563
|
const p = {
|
|
1564
1564
|
email: f.email,
|
|
1565
1565
|
userToken: f.userToken,
|
|
1566
|
-
emailVerifyId: f.emailVerifyId
|
|
1567
|
-
password: f.password
|
|
1566
|
+
emailVerifyId: f.emailVerifyId
|
|
1568
1567
|
};
|
|
1569
|
-
|
|
1570
|
-
u.value = !1,
|
|
1568
|
+
be(p).then(() => {
|
|
1569
|
+
u.value = !1, N.success("绑定成功"), a.value = "hidden", s();
|
|
1571
1570
|
}).catch(() => {
|
|
1572
1571
|
u.value = !1;
|
|
1573
1572
|
});
|
|
@@ -1579,14 +1578,14 @@ const Ct = {
|
|
|
1579
1578
|
n.value || s();
|
|
1580
1579
|
}), (f, p) => {
|
|
1581
1580
|
var d, c, v;
|
|
1582
|
-
return g(), P(W, null, [!((d = e(n)) != null && d.email) && a.value === "hidden" ? (g(), y(e(
|
|
1581
|
+
return g(), P(W, null, [!((d = e(n)) != null && d.email) && a.value === "hidden" ? (g(), y(e(L), {
|
|
1583
1582
|
key: 0,
|
|
1584
1583
|
title: "绑定邮箱"
|
|
1585
1584
|
}, {
|
|
1586
1585
|
action: m(() => [l(e(U), {
|
|
1587
1586
|
size: o.size,
|
|
1588
1587
|
type: "primary",
|
|
1589
|
-
onClick: p[0] || (p[0] = (
|
|
1588
|
+
onClick: p[0] || (p[0] = (w) => t("update"))
|
|
1590
1589
|
}, {
|
|
1591
1590
|
default: m(() => p[2] || (p[2] = [z(" 绑定邮箱 ")])),
|
|
1592
1591
|
_: 1,
|
|
@@ -1595,22 +1594,22 @@ const Ct = {
|
|
|
1595
1594
|
default: m(() => [p[3] || (p[3] = z(" 您还未绑定邮箱,请点击绑定邮箱 "))]),
|
|
1596
1595
|
_: 1,
|
|
1597
1596
|
__: [3]
|
|
1598
|
-
})) : S("", !0), (c = e(n)) != null && c.email && a.value === "hidden" ? (g(), y(e(
|
|
1597
|
+
})) : S("", !0), (c = e(n)) != null && c.email && a.value === "hidden" ? (g(), y(e(L), {
|
|
1599
1598
|
key: 1,
|
|
1600
1599
|
title: "更改邮箱"
|
|
1601
1600
|
}, {
|
|
1602
1601
|
action: m(() => [l(e(U), {
|
|
1603
1602
|
size: o.size,
|
|
1604
1603
|
type: "primary",
|
|
1605
|
-
onClick: p[1] || (p[1] = (
|
|
1604
|
+
onClick: p[1] || (p[1] = (w) => t("verify"))
|
|
1606
1605
|
}, {
|
|
1607
1606
|
default: m(() => p[4] || (p[4] = [z(" 更改邮箱 ")])),
|
|
1608
1607
|
_: 1,
|
|
1609
1608
|
__: [4]
|
|
1610
1609
|
}, 8, ["size"])]),
|
|
1611
1610
|
default: m(() => {
|
|
1612
|
-
var
|
|
1613
|
-
return [z(
|
|
1611
|
+
var w;
|
|
1612
|
+
return [z(B(`您绑定的邮箱为${e(de)((w = e(n)) == null ? void 0 : w.email)}`) + " ", 1)];
|
|
1614
1613
|
}),
|
|
1615
1614
|
_: 1
|
|
1616
1615
|
})) : S("", !0), a.value === "update" ? (g(), y(re, {
|
|
@@ -1626,7 +1625,7 @@ const Ct = {
|
|
|
1626
1625
|
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
1627
1626
|
};
|
|
1628
1627
|
}
|
|
1629
|
-
}), Et = /* @__PURE__ */ I(Ot, [["__scopeId", "data-v-
|
|
1628
|
+
}), Et = /* @__PURE__ */ I(Ot, [["__scopeId", "data-v-b2663ea1"]]), Nt = /* @__PURE__ */ k({
|
|
1630
1629
|
__name: "AuthkitGithubBinding",
|
|
1631
1630
|
props: {
|
|
1632
1631
|
size: {
|
|
@@ -1655,8 +1654,8 @@ const Ct = {
|
|
|
1655
1654
|
});
|
|
1656
1655
|
}
|
|
1657
1656
|
function f() {
|
|
1658
|
-
|
|
1659
|
-
|
|
1657
|
+
we().then(() => {
|
|
1658
|
+
N.success("解绑成功"), s.value = "hidden", u();
|
|
1660
1659
|
});
|
|
1661
1660
|
}
|
|
1662
1661
|
function p() {
|
|
@@ -1670,15 +1669,15 @@ const Ct = {
|
|
|
1670
1669
|
}), te(() => {
|
|
1671
1670
|
o && clearInterval(o);
|
|
1672
1671
|
}), (c, v) => {
|
|
1673
|
-
var
|
|
1674
|
-
return g(), P(W, null, [!((
|
|
1672
|
+
var w, $, q;
|
|
1673
|
+
return g(), P(W, null, [!((w = e(n)) != null && w.github) && s.value === "hidden" ? (g(), y(e(L), {
|
|
1675
1674
|
key: 0,
|
|
1676
1675
|
title: "绑定GitHUb"
|
|
1677
1676
|
}, {
|
|
1678
1677
|
action: m(() => [l(e(U), {
|
|
1679
1678
|
size: t.size,
|
|
1680
1679
|
type: "primary",
|
|
1681
|
-
onClick: v[0] || (v[0] = (
|
|
1680
|
+
onClick: v[0] || (v[0] = (R) => r("bind"))
|
|
1682
1681
|
}, {
|
|
1683
1682
|
default: m(() => v[2] || (v[2] = [z(" 绑定GitHUb ")])),
|
|
1684
1683
|
_: 1,
|
|
@@ -1687,23 +1686,23 @@ const Ct = {
|
|
|
1687
1686
|
default: m(() => [v[3] || (v[3] = z(" 请尚未绑定GitHub,请点击绑定GitHUb "))]),
|
|
1688
1687
|
_: 1,
|
|
1689
1688
|
__: [3]
|
|
1690
|
-
})) : S("", !0), ($ = e(n)) != null && $.github && s.value === "hidden" ? (g(), y(e(
|
|
1689
|
+
})) : S("", !0), ($ = e(n)) != null && $.github && s.value === "hidden" ? (g(), y(e(L), {
|
|
1691
1690
|
key: 1,
|
|
1692
1691
|
title: "解绑GitHub"
|
|
1693
1692
|
}, {
|
|
1694
1693
|
action: m(() => [l(e(U), {
|
|
1695
1694
|
size: t.size,
|
|
1696
1695
|
type: "primary",
|
|
1697
|
-
onClick: v[1] || (v[1] = (
|
|
1696
|
+
onClick: v[1] || (v[1] = (R) => r("unbind"))
|
|
1698
1697
|
}, {
|
|
1699
1698
|
default: m(() => v[4] || (v[4] = [z(" 解绑GitHUb ")])),
|
|
1700
1699
|
_: 1,
|
|
1701
1700
|
__: [4]
|
|
1702
1701
|
}, 8, ["size"])]),
|
|
1703
1702
|
default: m(() => {
|
|
1704
|
-
var
|
|
1705
|
-
return [
|
|
1706
|
-
"image-url": (
|
|
1703
|
+
var R, C, x;
|
|
1704
|
+
return [b("span", null, B(`您绑定的账号为 ${(C = (R = e(n)) == null ? void 0 : R.github) == null ? void 0 : C.login}`), 1), l(e(le), {
|
|
1705
|
+
"image-url": (x = e(n)) == null ? void 0 : x.avatar,
|
|
1707
1706
|
size: 42
|
|
1708
1707
|
}, null, 8, ["image-url"])];
|
|
1709
1708
|
}),
|
|
@@ -1711,7 +1710,7 @@ const Ct = {
|
|
|
1711
1710
|
})) : S("", !0), s.value === "bind" || s.value === "unbind" ? (g(), y(Y, {
|
|
1712
1711
|
key: 2,
|
|
1713
1712
|
size: t.size,
|
|
1714
|
-
email: (
|
|
1713
|
+
email: (q = e(n)) == null ? void 0 : q.email,
|
|
1715
1714
|
onNext: p
|
|
1716
1715
|
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
1717
1716
|
};
|
|
@@ -1779,8 +1778,8 @@ const Ct = {
|
|
|
1779
1778
|
]
|
|
1780
1779
|
}]);
|
|
1781
1780
|
function _(c, v) {
|
|
1782
|
-
const
|
|
1783
|
-
console.log(
|
|
1781
|
+
const w = c.path;
|
|
1782
|
+
console.log(w, v, "lokokoko"), t.value = [w];
|
|
1784
1783
|
}
|
|
1785
1784
|
const {
|
|
1786
1785
|
changeType: f,
|
|
@@ -1793,7 +1792,7 @@ const Ct = {
|
|
|
1793
1792
|
setData: d
|
|
1794
1793
|
}), (c, v) => (g(), y(e(ne), {
|
|
1795
1794
|
visible: e(p),
|
|
1796
|
-
"onUpdate:visible": v[1] || (v[1] = (
|
|
1795
|
+
"onUpdate:visible": v[1] || (v[1] = (w) => se(p) ? p.value = w : null),
|
|
1797
1796
|
"unmount-on-close": "",
|
|
1798
1797
|
"body-class": "AppSettingbodyClass",
|
|
1799
1798
|
"mask-closable": !1,
|
|
@@ -1802,12 +1801,12 @@ const Ct = {
|
|
|
1802
1801
|
onCancel: a
|
|
1803
1802
|
}, {
|
|
1804
1803
|
title: m(() => v[2] || (v[2] = [z(" 系统设置 ")])),
|
|
1805
|
-
default: m(() => [
|
|
1804
|
+
default: m(() => [b("div", Ft, [b("div", Gt, [l(Ve, {
|
|
1806
1805
|
"selected-keys": t.value,
|
|
1807
|
-
"onUpdate:selectedKeys": v[0] || (v[0] = (
|
|
1806
|
+
"onUpdate:selectedKeys": v[0] || (v[0] = (w) => t.value = w),
|
|
1808
1807
|
menus: r.value,
|
|
1809
1808
|
onChange: _
|
|
1810
|
-
}, null, 8, ["selected-keys", "menus"])]),
|
|
1809
|
+
}, null, 8, ["selected-keys", "menus"])]), b("div", Ht, [t.value[0] === "PersonalInformation" ? (g(), y($t, {
|
|
1811
1810
|
key: 0,
|
|
1812
1811
|
size: o.value
|
|
1813
1812
|
}, null, 8, ["size"])) : S("", !0), t.value[0] === "EmailBinding" ? (g(), y(Et, {
|
|
@@ -1823,7 +1822,7 @@ const Ct = {
|
|
|
1823
1822
|
_: 1
|
|
1824
1823
|
}, 8, ["visible"]));
|
|
1825
1824
|
}
|
|
1826
|
-
}), mi = /* @__PURE__ */ I(Mt, [["__scopeId", "data-v-
|
|
1825
|
+
}), mi = /* @__PURE__ */ I(Mt, [["__scopeId", "data-v-cd51dcec"]]);
|
|
1827
1826
|
export {
|
|
1828
1827
|
zt as A,
|
|
1829
1828
|
re as E,
|