@huyooo/ui 2.0.4 → 2.0.5
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/{LegalDocViewer-CytxFZKJ.js → LegalDocViewer-D66BQiRu.js} +142 -142
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-CawueoIY.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-DqgwJ7r3.js} +2 -2
- package/dist/{WidthContainer-DOD3wnYO.js → WidthContainer-BIRNIRX5.js} +5 -5
- package/dist/authkit.js +1 -1
- package/dist/common.js +1 -1
- package/dist/main.js +3 -3
- package/dist/style.css +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
|
@@ -49,7 +49,7 @@ const je = ["title", "aria-label", "disabled"], Ke = {
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
setup(b) {
|
|
52
|
-
const r = b,
|
|
52
|
+
const r = b, d = R(() => ({
|
|
53
53
|
width: `${ge}px`,
|
|
54
54
|
height: `${ge}px`,
|
|
55
55
|
padding: `${qe}px`,
|
|
@@ -63,7 +63,7 @@ const je = ["title", "aria-label", "disabled"], Ke = {
|
|
|
63
63
|
title: r.label,
|
|
64
64
|
"aria-label": r.label,
|
|
65
65
|
disabled: r.disabled || r.loading,
|
|
66
|
-
style: G(
|
|
66
|
+
style: G(d.value)
|
|
67
67
|
}, [r.loading ? (l(), k("span", Ke)) : Z(n.$slots, "icon", {
|
|
68
68
|
key: 1
|
|
69
69
|
}, () => [r.icon ? (l(), I(be, {
|
|
@@ -92,7 +92,7 @@ const je = ["title", "aria-label", "disabled"], Ke = {
|
|
|
92
92
|
setup(b, {
|
|
93
93
|
emit: r
|
|
94
94
|
}) {
|
|
95
|
-
const
|
|
95
|
+
const d = r, {
|
|
96
96
|
appsData: n
|
|
97
97
|
} = j(), {
|
|
98
98
|
loading: v,
|
|
@@ -100,7 +100,7 @@ const je = ["title", "aria-label", "disabled"], Ke = {
|
|
|
100
100
|
loginWithPasskey: o,
|
|
101
101
|
formatError: s
|
|
102
102
|
} = xe(), {
|
|
103
|
-
githubAuth:
|
|
103
|
+
githubAuth: c,
|
|
104
104
|
googleAuth: u,
|
|
105
105
|
microsoftAuth: t,
|
|
106
106
|
wechatAuth: g
|
|
@@ -123,7 +123,7 @@ const je = ["title", "aria-label", "disabled"], Ke = {
|
|
|
123
123
|
const $ = await o();
|
|
124
124
|
if (!$)
|
|
125
125
|
return;
|
|
126
|
-
|
|
126
|
+
d("passkeySubmit", $);
|
|
127
127
|
} catch ($) {
|
|
128
128
|
const T = s($);
|
|
129
129
|
if ($ instanceof Error && $.name === "NotAllowedError") {
|
|
@@ -149,7 +149,7 @@ const je = ["title", "aria-label", "disabled"], Ke = {
|
|
|
149
149
|
icon: e(J).github,
|
|
150
150
|
label: "Github",
|
|
151
151
|
size: m.size,
|
|
152
|
-
onClick: T[1] || (T[1] = (F) => p(e(
|
|
152
|
+
onClick: T[1] || (T[1] = (F) => p(e(c)))
|
|
153
153
|
}, null, 8, ["icon", "size"])) : z("", !0), e(n).oauth.microsoft.enabled ? (l(), I(Q, {
|
|
154
154
|
key: 2,
|
|
155
155
|
icon: e(J).microsoft,
|
|
@@ -195,14 +195,14 @@ const je = ["title", "aria-label", "disabled"], Ke = {
|
|
|
195
195
|
setup(b, {
|
|
196
196
|
emit: r
|
|
197
197
|
}) {
|
|
198
|
-
const
|
|
198
|
+
const d = r, n = b, v = P(), h = P(!1), o = P(), s = P({
|
|
199
199
|
email: void 0,
|
|
200
200
|
userToken: void 0,
|
|
201
201
|
emailVerifyId: void 0,
|
|
202
202
|
password: void 0,
|
|
203
203
|
confirmPassword: void 0
|
|
204
204
|
});
|
|
205
|
-
async function
|
|
205
|
+
async function c() {
|
|
206
206
|
if (!await o.value.validateField(["email"])) {
|
|
207
207
|
h.value = !0;
|
|
208
208
|
const g = await O().auth.verify.email.retry.post({
|
|
@@ -214,7 +214,7 @@ const je = ["title", "aria-label", "disabled"], Ke = {
|
|
|
214
214
|
}
|
|
215
215
|
async function u() {
|
|
216
216
|
o.value.validate().then((t) => {
|
|
217
|
-
t ||
|
|
217
|
+
t || d("submit", s.value);
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
220
|
return (t, g) => (l(), k("div", et, [a(e(H), {
|
|
@@ -263,7 +263,7 @@ const je = ["title", "aria-label", "disabled"], Ke = {
|
|
|
263
263
|
style: {
|
|
264
264
|
"margin-left": "10px"
|
|
265
265
|
},
|
|
266
|
-
onSend:
|
|
266
|
+
onSend: c
|
|
267
267
|
}, null, 8, ["size", "loading"])])]),
|
|
268
268
|
_: 1
|
|
269
269
|
}), a(e(V), {
|
|
@@ -344,12 +344,12 @@ const je = ["title", "aria-label", "disabled"], Ke = {
|
|
|
344
344
|
setup(b, {
|
|
345
345
|
emit: r
|
|
346
346
|
}) {
|
|
347
|
-
const
|
|
347
|
+
const d = r, n = b, v = P(), h = P(!1), o = P(), s = P({
|
|
348
348
|
phone: void 0,
|
|
349
349
|
code: void 0,
|
|
350
350
|
password: void 0,
|
|
351
351
|
confirmPassword: void 0
|
|
352
|
-
}),
|
|
352
|
+
}), c = [{
|
|
353
353
|
required: !0,
|
|
354
354
|
message: "请输入确认密码"
|
|
355
355
|
}, {
|
|
@@ -376,7 +376,7 @@ const je = ["title", "aria-label", "disabled"], Ke = {
|
|
|
376
376
|
}
|
|
377
377
|
async function t() {
|
|
378
378
|
o.value.validate().then((g) => {
|
|
379
|
-
g ||
|
|
379
|
+
g || d("submit", {
|
|
380
380
|
method: "phone",
|
|
381
381
|
phone: s.value.phone,
|
|
382
382
|
code: s.value.code,
|
|
@@ -460,7 +460,7 @@ const je = ["title", "aria-label", "disabled"], Ke = {
|
|
|
460
460
|
field: "confirmPassword",
|
|
461
461
|
label: "确认密码",
|
|
462
462
|
"hide-label": "",
|
|
463
|
-
rules:
|
|
463
|
+
rules: c
|
|
464
464
|
}, {
|
|
465
465
|
default: f(() => [a(e(U), {
|
|
466
466
|
modelValue: s.value.confirmPassword,
|
|
@@ -491,9 +491,9 @@ const je = ["title", "aria-label", "disabled"], Ke = {
|
|
|
491
491
|
setup(b, {
|
|
492
492
|
emit: r
|
|
493
493
|
}) {
|
|
494
|
-
const
|
|
494
|
+
const d = r;
|
|
495
495
|
function n() {
|
|
496
|
-
|
|
496
|
+
d("switchSignIn");
|
|
497
497
|
}
|
|
498
498
|
return (v, h) => (l(), k("div", ut, [S("span", null, [h[1] || (h[1] = S("span", null, "已经有账号?", -1)), a(e(Y), {
|
|
499
499
|
style: {
|
|
@@ -501,11 +501,11 @@ const je = ["title", "aria-label", "disabled"], Ke = {
|
|
|
501
501
|
},
|
|
502
502
|
onClick: n
|
|
503
503
|
}, {
|
|
504
|
-
default: f(() => [...h[0] || (h[0] = [x("
|
|
504
|
+
default: f(() => [...h[0] || (h[0] = [x("去登录", -1)])]),
|
|
505
505
|
_: 1
|
|
506
506
|
})])]));
|
|
507
507
|
}
|
|
508
|
-
}), me = /* @__PURE__ */ C(dt, [["__scopeId", "data-v-
|
|
508
|
+
}), me = /* @__PURE__ */ C(dt, [["__scopeId", "data-v-c09d6c18"]]), ct = {
|
|
509
509
|
class: "ResetPassword"
|
|
510
510
|
}, pt = {
|
|
511
511
|
key: 0,
|
|
@@ -531,7 +531,7 @@ const je = ["title", "aria-label", "disabled"], Ke = {
|
|
|
531
531
|
setup(b, {
|
|
532
532
|
emit: r
|
|
533
533
|
}) {
|
|
534
|
-
const
|
|
534
|
+
const d = r, n = b, {
|
|
535
535
|
appsData: v
|
|
536
536
|
} = j(), h = R(() => v.value.authMethods), o = R(() => {
|
|
537
537
|
const t = [];
|
|
@@ -547,11 +547,11 @@ const je = ["title", "aria-label", "disabled"], Ke = {
|
|
|
547
547
|
var t;
|
|
548
548
|
o.value.some((g) => g.key === s.value) || (s.value = ((t = o.value[0]) == null ? void 0 : t.key) || "email");
|
|
549
549
|
});
|
|
550
|
-
function
|
|
551
|
-
|
|
550
|
+
function c() {
|
|
551
|
+
d("switchSignIn");
|
|
552
552
|
}
|
|
553
553
|
async function u(t) {
|
|
554
|
-
|
|
554
|
+
d("submit", {
|
|
555
555
|
method: s.value,
|
|
556
556
|
...t
|
|
557
557
|
});
|
|
@@ -576,7 +576,7 @@ const je = ["title", "aria-label", "disabled"], Ke = {
|
|
|
576
576
|
size: n.size,
|
|
577
577
|
onSubmit: u
|
|
578
578
|
}, null, 8, ["loading", "size"])) : (l(), k("div", mt, "当前应用未开放找回密码")), a(me, {
|
|
579
|
-
onSwitchSignIn:
|
|
579
|
+
onSwitchSignIn: c
|
|
580
580
|
})]));
|
|
581
581
|
}
|
|
582
582
|
}), vt = /* @__PURE__ */ C(ft, [["__scopeId", "data-v-90d789bb"]]);
|
|
@@ -607,13 +607,13 @@ const wt = {
|
|
|
607
607
|
setup(b) {
|
|
608
608
|
const {
|
|
609
609
|
config: r
|
|
610
|
-
} = pe(),
|
|
610
|
+
} = pe(), d = b, n = ze(b, "acceptedTerms"), {
|
|
611
611
|
getLink: v,
|
|
612
612
|
openLegalDoc: h
|
|
613
613
|
} = Se(), {
|
|
614
614
|
termsShaking: o,
|
|
615
615
|
requiresAcceptanceForSignUp: s,
|
|
616
|
-
requiresAcceptanceForOAuth:
|
|
616
|
+
requiresAcceptanceForOAuth: c,
|
|
617
617
|
syncAcceptedTerms: u
|
|
618
618
|
} = M();
|
|
619
619
|
ye(n, (_) => {
|
|
@@ -625,7 +625,7 @@ const wt = {
|
|
|
625
625
|
}), g = R(() => {
|
|
626
626
|
const _ = v("privacyPolicy");
|
|
627
627
|
return _ != null && _.configured ? _ : void 0;
|
|
628
|
-
}), i = R(() => !!(t.value || g.value)), w = R(() =>
|
|
628
|
+
}), i = R(() => !!(t.value || g.value)), w = R(() => d.currentView === "signUp" ? s() : d.currentView === "signIn" ? c() : !1), p = R(() => i.value && w.value);
|
|
629
629
|
function m() {
|
|
630
630
|
if (r.legalDocsMode === "builtin") {
|
|
631
631
|
h("userServiceAgreement");
|
|
@@ -696,25 +696,25 @@ const wt = {
|
|
|
696
696
|
setup(b, {
|
|
697
697
|
emit: r
|
|
698
698
|
}) {
|
|
699
|
-
const
|
|
699
|
+
const d = r, {
|
|
700
700
|
useTermsFormField: n
|
|
701
701
|
} = M(), {
|
|
702
702
|
showTermsField: v,
|
|
703
703
|
termsRules: h
|
|
704
|
-
} = n("signIn"), o = b, s = P(),
|
|
704
|
+
} = n("signIn"), o = b, s = P(), c = P({
|
|
705
705
|
identifier: void 0,
|
|
706
706
|
password: void 0,
|
|
707
707
|
acceptedTerms: !1
|
|
708
708
|
});
|
|
709
709
|
async function u() {
|
|
710
710
|
s.value.validate().then((t) => {
|
|
711
|
-
t ||
|
|
711
|
+
t || d("submit", c.value);
|
|
712
712
|
});
|
|
713
713
|
}
|
|
714
714
|
return (t, g) => (l(), k("div", _t, [a(e(H), {
|
|
715
715
|
ref_key: "formRef",
|
|
716
716
|
ref: s,
|
|
717
|
-
model:
|
|
717
|
+
model: c.value,
|
|
718
718
|
size: o.size,
|
|
719
719
|
"auto-label-width": ""
|
|
720
720
|
}, {
|
|
@@ -728,8 +728,8 @@ const wt = {
|
|
|
728
728
|
}]
|
|
729
729
|
}, {
|
|
730
730
|
default: f(() => [a(e(U), {
|
|
731
|
-
modelValue:
|
|
732
|
-
"onUpdate:modelValue": g[0] || (g[0] = (i) =>
|
|
731
|
+
modelValue: c.value.identifier,
|
|
732
|
+
"onUpdate:modelValue": g[0] || (g[0] = (i) => c.value.identifier = i),
|
|
733
733
|
placeholder: o.allowPhone ? "请输入邮箱或手机号" : "请输入邮箱",
|
|
734
734
|
autocomplete: "email username"
|
|
735
735
|
}, null, 8, ["modelValue", "placeholder"])]),
|
|
@@ -744,8 +744,8 @@ const wt = {
|
|
|
744
744
|
}]
|
|
745
745
|
}, {
|
|
746
746
|
default: f(() => [a(e(U), {
|
|
747
|
-
modelValue:
|
|
748
|
-
"onUpdate:modelValue": g[1] || (g[1] = (i) =>
|
|
747
|
+
modelValue: c.value.password,
|
|
748
|
+
"onUpdate:modelValue": g[1] || (g[1] = (i) => c.value.password = i),
|
|
749
749
|
placeholder: "请输入密码",
|
|
750
750
|
type: "password",
|
|
751
751
|
autocomplete: "current-password"
|
|
@@ -767,8 +767,8 @@ const wt = {
|
|
|
767
767
|
rules: e(h)
|
|
768
768
|
}, {
|
|
769
769
|
default: f(() => [a(ee, {
|
|
770
|
-
"accepted-terms":
|
|
771
|
-
"onUpdate:acceptedTerms": g[2] || (g[2] = (i) =>
|
|
770
|
+
"accepted-terms": c.value.acceptedTerms,
|
|
771
|
+
"onUpdate:acceptedTerms": g[2] || (g[2] = (i) => c.value.acceptedTerms = i),
|
|
772
772
|
"current-view": "signIn"
|
|
773
773
|
}, null, 8, ["accepted-terms"])]),
|
|
774
774
|
_: 1
|
|
@@ -801,29 +801,29 @@ const wt = {
|
|
|
801
801
|
setup(b, {
|
|
802
802
|
emit: r
|
|
803
803
|
}) {
|
|
804
|
-
const
|
|
804
|
+
const d = r, {
|
|
805
805
|
useTermsFormField: n
|
|
806
806
|
} = M(), {
|
|
807
807
|
showTermsField: v,
|
|
808
808
|
termsRules: h
|
|
809
|
-
} = n("signIn"), o = b, s = P(),
|
|
809
|
+
} = n("signIn"), o = b, s = P(), c = P(!1), u = P(), t = P({
|
|
810
810
|
phone: void 0,
|
|
811
811
|
code: void 0,
|
|
812
812
|
acceptedTerms: !1
|
|
813
813
|
});
|
|
814
814
|
async function g() {
|
|
815
815
|
if (!await u.value.validateField(["phone"])) {
|
|
816
|
-
|
|
816
|
+
c.value = !0;
|
|
817
817
|
const p = await O().auth.verify.sms.send.post({
|
|
818
818
|
phone: t.value.phone,
|
|
819
819
|
purpose: "signIn"
|
|
820
820
|
});
|
|
821
|
-
|
|
821
|
+
c.value = !1, W(s.value, p);
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
824
|
async function i() {
|
|
825
825
|
u.value.validate().then((w) => {
|
|
826
|
-
w ||
|
|
826
|
+
w || d("submit", {
|
|
827
827
|
identifier: t.value.phone,
|
|
828
828
|
code: t.value.code,
|
|
829
829
|
method: "code"
|
|
@@ -875,7 +875,7 @@ const wt = {
|
|
|
875
875
|
ref_key: "SendVerifyCodeRef",
|
|
876
876
|
ref: s,
|
|
877
877
|
size: o.size,
|
|
878
|
-
loading:
|
|
878
|
+
loading: c.value,
|
|
879
879
|
style: {
|
|
880
880
|
"margin-left": "10px"
|
|
881
881
|
},
|
|
@@ -930,12 +930,12 @@ const wt = {
|
|
|
930
930
|
setup(b, {
|
|
931
931
|
emit: r
|
|
932
932
|
}) {
|
|
933
|
-
const
|
|
933
|
+
const d = r, {
|
|
934
934
|
useTermsFormField: n
|
|
935
935
|
} = M(), {
|
|
936
936
|
showTermsField: v,
|
|
937
937
|
termsRules: h
|
|
938
|
-
} = n("signIn"), o = b, s = P(),
|
|
938
|
+
} = n("signIn"), o = b, s = P(), c = P(!1), u = P(), t = P({
|
|
939
939
|
email: void 0,
|
|
940
940
|
code: void 0,
|
|
941
941
|
emailVerifyId: "",
|
|
@@ -944,17 +944,17 @@ const wt = {
|
|
|
944
944
|
async function g() {
|
|
945
945
|
var p;
|
|
946
946
|
if (!await u.value.validateField(["email"])) {
|
|
947
|
-
|
|
947
|
+
c.value = !0;
|
|
948
948
|
const m = await O().auth.verify.email.retry.post({
|
|
949
949
|
email: t.value.email,
|
|
950
950
|
purpose: "signIn"
|
|
951
951
|
});
|
|
952
|
-
|
|
952
|
+
c.value = !1, (p = m.data) != null && p.emailVerifyId && (t.value.emailVerifyId = m.data.emailVerifyId), W(s.value, m);
|
|
953
953
|
}
|
|
954
954
|
}
|
|
955
955
|
async function i() {
|
|
956
956
|
u.value.validate().then((w) => {
|
|
957
|
-
w ||
|
|
957
|
+
w || d("submit", {
|
|
958
958
|
identifier: t.value.email,
|
|
959
959
|
code: t.value.code,
|
|
960
960
|
emailVerifyId: t.value.emailVerifyId,
|
|
@@ -1004,7 +1004,7 @@ const wt = {
|
|
|
1004
1004
|
ref_key: "SendVerifyCodeRef",
|
|
1005
1005
|
ref: s,
|
|
1006
1006
|
size: o.size,
|
|
1007
|
-
loading:
|
|
1007
|
+
loading: c.value,
|
|
1008
1008
|
style: {
|
|
1009
1009
|
"margin-left": "10px"
|
|
1010
1010
|
},
|
|
@@ -1056,14 +1056,14 @@ const wt = {
|
|
|
1056
1056
|
setup(b, {
|
|
1057
1057
|
emit: r
|
|
1058
1058
|
}) {
|
|
1059
|
-
const
|
|
1059
|
+
const d = b, n = r;
|
|
1060
1060
|
function v() {
|
|
1061
1061
|
n("switchSignUp");
|
|
1062
1062
|
}
|
|
1063
1063
|
function h() {
|
|
1064
1064
|
n("switchResetPassword");
|
|
1065
1065
|
}
|
|
1066
|
-
return (o, s) => (l(), k("div", Lt, [
|
|
1066
|
+
return (o, s) => (l(), k("div", Lt, [d.showSignUp ? (l(), k("span", Bt, [s[1] || (s[1] = S("span", null, " 还没有账户?", -1)), a(e(Y), {
|
|
1067
1067
|
style: {
|
|
1068
1068
|
padding: "0px"
|
|
1069
1069
|
},
|
|
@@ -1071,7 +1071,7 @@ const wt = {
|
|
|
1071
1071
|
}, {
|
|
1072
1072
|
default: f(() => [...s[0] || (s[0] = [x("去注册?", -1)])]),
|
|
1073
1073
|
_: 1
|
|
1074
|
-
})])) : z("", !0),
|
|
1074
|
+
})])) : z("", !0), d.showResetPassword ? (l(), I(e(Y), {
|
|
1075
1075
|
key: 1,
|
|
1076
1076
|
style: {
|
|
1077
1077
|
padding: "0px"
|
|
@@ -1104,19 +1104,19 @@ const wt = {
|
|
|
1104
1104
|
setup(b, {
|
|
1105
1105
|
emit: r
|
|
1106
1106
|
}) {
|
|
1107
|
-
const
|
|
1107
|
+
const d = r, n = b, v = Ve(), h = R(() => !!v.OAuth), {
|
|
1108
1108
|
appsData: o
|
|
1109
1109
|
} = j(), {
|
|
1110
1110
|
signUpAuthEnabled: s
|
|
1111
|
-
} = M(),
|
|
1111
|
+
} = M(), c = R(() => o.value.authMethods), u = R(() => s.value && (c.value.signUp.email || c.value.signUp.phone)), t = R(() => c.value.login.emailPassword || c.value.login.phonePassword), g = R(() => {
|
|
1112
1112
|
const y = [];
|
|
1113
|
-
return (
|
|
1113
|
+
return (c.value.login.emailPassword || c.value.login.phonePassword) && y.push({
|
|
1114
1114
|
key: "password",
|
|
1115
|
-
title:
|
|
1116
|
-
}),
|
|
1115
|
+
title: "密码登录"
|
|
1116
|
+
}), c.value.login.phoneCode && y.push({
|
|
1117
1117
|
key: "phoneCode",
|
|
1118
1118
|
title: "手机验证码登录"
|
|
1119
|
-
}),
|
|
1119
|
+
}), c.value.login.emailCode && y.push({
|
|
1120
1120
|
key: "emailCode",
|
|
1121
1121
|
title: "邮箱验证码登录"
|
|
1122
1122
|
}), y;
|
|
@@ -1126,13 +1126,13 @@ const wt = {
|
|
|
1126
1126
|
g.value.some((_) => _.key === i.value) || (i.value = ((y = g.value[0]) == null ? void 0 : y.key) || "password");
|
|
1127
1127
|
});
|
|
1128
1128
|
function w() {
|
|
1129
|
-
|
|
1129
|
+
d("switchSignUp");
|
|
1130
1130
|
}
|
|
1131
1131
|
function p() {
|
|
1132
|
-
|
|
1132
|
+
d("switchResetPassword");
|
|
1133
1133
|
}
|
|
1134
1134
|
async function m(y) {
|
|
1135
|
-
|
|
1135
|
+
d("submit", {
|
|
1136
1136
|
method: i.value === "password" ? "password" : "code",
|
|
1137
1137
|
...y
|
|
1138
1138
|
});
|
|
@@ -1146,11 +1146,11 @@ const wt = {
|
|
|
1146
1146
|
title: q.title
|
|
1147
1147
|
}, null, 8, ["title"]))), 128))]),
|
|
1148
1148
|
_: 1
|
|
1149
|
-
}, 8, ["active-key"])])) : z("", !0), i.value === "password" && (
|
|
1149
|
+
}, 8, ["active-key"])])) : z("", !0), i.value === "password" && (c.value.login.emailPassword || c.value.login.phonePassword) ? (l(), I(It, {
|
|
1150
1150
|
key: 1,
|
|
1151
1151
|
loading: n.loading,
|
|
1152
1152
|
size: n.size,
|
|
1153
|
-
"allow-phone":
|
|
1153
|
+
"allow-phone": c.value.login.phonePassword,
|
|
1154
1154
|
onSubmit: m
|
|
1155
1155
|
}, null, 8, ["loading", "size", "allow-phone"])) : i.value === "phoneCode" ? (l(), I(Ct, {
|
|
1156
1156
|
key: 2,
|
|
@@ -1171,7 +1171,7 @@ const wt = {
|
|
|
1171
1171
|
onSwitchResetPassword: p
|
|
1172
1172
|
}, null, 8, ["show-sign-up", "show-reset-password"])]));
|
|
1173
1173
|
}
|
|
1174
|
-
}), Ht = /* @__PURE__ */ C(Et, [["__scopeId", "data-v-
|
|
1174
|
+
}), Ht = /* @__PURE__ */ C(Et, [["__scopeId", "data-v-a7aef80e"]]), Gt = {
|
|
1175
1175
|
class: "content"
|
|
1176
1176
|
}, Nt = {
|
|
1177
1177
|
class: "sendVerifyCodeItem"
|
|
@@ -1198,12 +1198,12 @@ const wt = {
|
|
|
1198
1198
|
setup(b, {
|
|
1199
1199
|
emit: r
|
|
1200
1200
|
}) {
|
|
1201
|
-
const
|
|
1201
|
+
const d = r, {
|
|
1202
1202
|
useTermsFormField: n
|
|
1203
1203
|
} = M(), {
|
|
1204
1204
|
showTermsField: v,
|
|
1205
1205
|
termsRules: h
|
|
1206
|
-
} = n("signUp"), o = b, s = P(),
|
|
1206
|
+
} = n("signUp"), o = b, s = P(), c = P(!1), u = P(), t = P({
|
|
1207
1207
|
email: void 0,
|
|
1208
1208
|
userToken: void 0,
|
|
1209
1209
|
emailVerifyId: void 0,
|
|
@@ -1218,17 +1218,17 @@ const wt = {
|
|
|
1218
1218
|
});
|
|
1219
1219
|
async function g() {
|
|
1220
1220
|
if (!await u.value.validateField(["email"])) {
|
|
1221
|
-
|
|
1221
|
+
c.value = !0;
|
|
1222
1222
|
const p = await O().auth.verify.email.retry.post({
|
|
1223
1223
|
email: t.value.email,
|
|
1224
1224
|
purpose: o.purpose
|
|
1225
1225
|
});
|
|
1226
|
-
|
|
1226
|
+
c.value = !1, p.data && (t.value.emailVerifyId = p.data.emailVerifyId), W(s.value, p);
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
1229
|
async function i() {
|
|
1230
1230
|
u.value.validate().then((w) => {
|
|
1231
|
-
w ||
|
|
1231
|
+
w || d("submit", t.value);
|
|
1232
1232
|
});
|
|
1233
1233
|
}
|
|
1234
1234
|
return (w, p) => (l(), k("div", Gt, [a(e(H), {
|
|
@@ -1276,7 +1276,7 @@ const wt = {
|
|
|
1276
1276
|
ref_key: "SendVerifyCodeRef",
|
|
1277
1277
|
ref: s,
|
|
1278
1278
|
size: o.size,
|
|
1279
|
-
loading:
|
|
1279
|
+
loading: c.value,
|
|
1280
1280
|
style: {
|
|
1281
1281
|
"margin-left": "10px"
|
|
1282
1282
|
},
|
|
@@ -1397,12 +1397,12 @@ const wt = {
|
|
|
1397
1397
|
setup(b, {
|
|
1398
1398
|
emit: r
|
|
1399
1399
|
}) {
|
|
1400
|
-
const
|
|
1400
|
+
const d = r, {
|
|
1401
1401
|
useTermsFormField: n
|
|
1402
1402
|
} = M(), {
|
|
1403
1403
|
showTermsField: v,
|
|
1404
1404
|
termsRules: h
|
|
1405
|
-
} = n("signUp"), o = b, s = P(),
|
|
1405
|
+
} = n("signUp"), o = b, s = P(), c = P(!1), u = P(), t = P({
|
|
1406
1406
|
phone: void 0,
|
|
1407
1407
|
code: void 0,
|
|
1408
1408
|
password: void 0,
|
|
@@ -1423,21 +1423,21 @@ const wt = {
|
|
|
1423
1423
|
}
|
|
1424
1424
|
}];
|
|
1425
1425
|
function i() {
|
|
1426
|
-
|
|
1426
|
+
d("switchSignIn");
|
|
1427
1427
|
}
|
|
1428
1428
|
async function w() {
|
|
1429
1429
|
if (!await u.value.validateField(["phone"])) {
|
|
1430
|
-
|
|
1430
|
+
c.value = !0;
|
|
1431
1431
|
const y = await O().auth.verify.sms.send.post({
|
|
1432
1432
|
phone: t.value.phone,
|
|
1433
1433
|
purpose: "signUp"
|
|
1434
1434
|
});
|
|
1435
|
-
|
|
1435
|
+
c.value = !1, W(s.value, y);
|
|
1436
1436
|
}
|
|
1437
1437
|
}
|
|
1438
1438
|
async function p() {
|
|
1439
1439
|
u.value.validate().then((m) => {
|
|
1440
|
-
m ||
|
|
1440
|
+
m || d("submit", {
|
|
1441
1441
|
type: "phone",
|
|
1442
1442
|
phone: t.value.phone,
|
|
1443
1443
|
code: t.value.code,
|
|
@@ -1491,7 +1491,7 @@ const wt = {
|
|
|
1491
1491
|
ref_key: "SendVerifyCodeRef",
|
|
1492
1492
|
ref: s,
|
|
1493
1493
|
size: o.size,
|
|
1494
|
-
loading:
|
|
1494
|
+
loading: c.value,
|
|
1495
1495
|
style: {
|
|
1496
1496
|
"margin-left": "10px"
|
|
1497
1497
|
},
|
|
@@ -1607,12 +1607,12 @@ const wt = {
|
|
|
1607
1607
|
setup(b, {
|
|
1608
1608
|
emit: r
|
|
1609
1609
|
}) {
|
|
1610
|
-
const
|
|
1610
|
+
const d = r, n = b, {
|
|
1611
1611
|
appsData: v
|
|
1612
1612
|
} = j(), {
|
|
1613
1613
|
registrationBlocked: h,
|
|
1614
1614
|
signUpAuthEnabled: o
|
|
1615
|
-
} = M(), s = R(() => v.value.authMethods),
|
|
1615
|
+
} = M(), s = R(() => v.value.authMethods), c = R(() => {
|
|
1616
1616
|
const i = [];
|
|
1617
1617
|
return s.value.signUp.email && i.push({
|
|
1618
1618
|
key: "email",
|
|
@@ -1624,22 +1624,22 @@ const wt = {
|
|
|
1624
1624
|
}), u = P("email");
|
|
1625
1625
|
le(() => {
|
|
1626
1626
|
var i;
|
|
1627
|
-
|
|
1627
|
+
c.value.some((w) => w.key === u.value) || (u.value = ((i = c.value[0]) == null ? void 0 : i.key) || "email");
|
|
1628
1628
|
});
|
|
1629
1629
|
function t() {
|
|
1630
|
-
|
|
1630
|
+
d("switchSignIn");
|
|
1631
1631
|
}
|
|
1632
1632
|
async function g(i) {
|
|
1633
|
-
|
|
1633
|
+
d("submit", {
|
|
1634
1634
|
type: u.value,
|
|
1635
1635
|
...i
|
|
1636
1636
|
});
|
|
1637
1637
|
}
|
|
1638
|
-
return (i, w) => (l(), k("div", ts, [
|
|
1638
|
+
return (i, w) => (l(), k("div", ts, [c.value.length > 1 ? (l(), k("div", ss, [a(e(de), {
|
|
1639
1639
|
"active-key": u.value,
|
|
1640
1640
|
"onUpdate:activeKey": w[0] || (w[0] = (p) => u.value = p)
|
|
1641
1641
|
}, {
|
|
1642
|
-
default: f(() => [(l(!0), k(D, null, re(
|
|
1642
|
+
default: f(() => [(l(!0), k(D, null, re(c.value, (p) => (l(), I(e(ce), {
|
|
1643
1643
|
key: p.key,
|
|
1644
1644
|
title: p.title
|
|
1645
1645
|
}, null, 8, ["title"]))), 128))]),
|
|
@@ -1682,12 +1682,12 @@ const wt = {
|
|
|
1682
1682
|
}
|
|
1683
1683
|
},
|
|
1684
1684
|
setup(b) {
|
|
1685
|
-
const r = b,
|
|
1685
|
+
const r = b, d = `${r.size}px`, n = `${r.fontSize}px`, v = `${r.lineHeight}px`, {
|
|
1686
1686
|
currentView: h
|
|
1687
1687
|
} = N(), {
|
|
1688
1688
|
appsData: o
|
|
1689
1689
|
} = j(), s = R(() => h.value === "signIn" ? `${o.value.name}登录` : h.value === "signUp" ? `${o.value.name}账号注册` : h.value === "resetPassword" ? `${o.value.name}密码重置` : "");
|
|
1690
|
-
return (
|
|
1690
|
+
return (c, u) => (l(), k("div", {
|
|
1691
1691
|
class: "Title",
|
|
1692
1692
|
style: G({
|
|
1693
1693
|
fontSize: n,
|
|
@@ -1698,9 +1698,9 @@ const wt = {
|
|
|
1698
1698
|
src: e(o).applicationLogoUrl,
|
|
1699
1699
|
srcset: "",
|
|
1700
1700
|
style: G({
|
|
1701
|
-
width:
|
|
1701
|
+
width: d
|
|
1702
1702
|
})
|
|
1703
|
-
}, null, 12, rs)) : z("", !0), S("span", null, L(s.value), 1), Z(
|
|
1703
|
+
}, null, 12, rs)) : z("", !0), S("span", null, L(s.value), 1), Z(c.$slots, "default", {}, void 0, !0)], 4));
|
|
1704
1704
|
}
|
|
1705
1705
|
}), Ie = /* @__PURE__ */ C(us, [["__scopeId", "data-v-8ebe7939"]]), ds = {
|
|
1706
1706
|
class: "Auth"
|
|
@@ -1720,13 +1720,13 @@ const wt = {
|
|
|
1720
1720
|
},
|
|
1721
1721
|
setup(b) {
|
|
1722
1722
|
const r = b, {
|
|
1723
|
-
signInSubmit:
|
|
1723
|
+
signInSubmit: d,
|
|
1724
1724
|
passkeySignInSubmit: n,
|
|
1725
1725
|
signUpSubmit: v,
|
|
1726
1726
|
resetPasswordSubmit: h,
|
|
1727
1727
|
currentView: o,
|
|
1728
1728
|
authSignInLoading: s,
|
|
1729
|
-
authSignUpLoading:
|
|
1729
|
+
authSignUpLoading: c,
|
|
1730
1730
|
resetPasswordLoading: u,
|
|
1731
1731
|
switchSignUp: t,
|
|
1732
1732
|
switchResetPassword: g,
|
|
@@ -1742,7 +1742,7 @@ const wt = {
|
|
|
1742
1742
|
loading: e(s),
|
|
1743
1743
|
onSwitchSignUp: e(t),
|
|
1744
1744
|
onSwitchResetPassword: e(g),
|
|
1745
|
-
onSubmit: p[0] || (p[0] = (m) => e(
|
|
1745
|
+
onSubmit: p[0] || (p[0] = (m) => e(d)(m))
|
|
1746
1746
|
}, {
|
|
1747
1747
|
OAuth: f(() => [a(Ze, {
|
|
1748
1748
|
size: r.size,
|
|
@@ -1752,7 +1752,7 @@ const wt = {
|
|
|
1752
1752
|
}, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : e(o) === "signUp" ? (l(), I(ls, {
|
|
1753
1753
|
key: 1,
|
|
1754
1754
|
size: r.size,
|
|
1755
|
-
loading: e(
|
|
1755
|
+
loading: e(c),
|
|
1756
1756
|
onSwitchSignIn: e(i),
|
|
1757
1757
|
onSubmit: p[1] || (p[1] = (m) => e(v)(m))
|
|
1758
1758
|
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(o) === "resetPassword" ? (l(), I(vt, {
|
|
@@ -1774,7 +1774,7 @@ const wt = {
|
|
|
1774
1774
|
setup(b, {
|
|
1775
1775
|
emit: r
|
|
1776
1776
|
}) {
|
|
1777
|
-
const
|
|
1777
|
+
const d = r, {
|
|
1778
1778
|
onSignIn: n,
|
|
1779
1779
|
switchSignIn: v
|
|
1780
1780
|
} = N(), {
|
|
@@ -1787,10 +1787,10 @@ const wt = {
|
|
|
1787
1787
|
o == null || o(), o = null;
|
|
1788
1788
|
});
|
|
1789
1789
|
function s(u) {
|
|
1790
|
-
u ||
|
|
1790
|
+
u || c();
|
|
1791
1791
|
}
|
|
1792
|
-
function
|
|
1793
|
-
v(), h(),
|
|
1792
|
+
function c() {
|
|
1793
|
+
v(), h(), d("close");
|
|
1794
1794
|
}
|
|
1795
1795
|
return (u, t) => (l(), I(e(Ce), {
|
|
1796
1796
|
visible: !0,
|
|
@@ -1800,7 +1800,7 @@ const wt = {
|
|
|
1800
1800
|
width: "auto",
|
|
1801
1801
|
"modal-class": "SignInModalClass",
|
|
1802
1802
|
"onUpdate:visible": s,
|
|
1803
|
-
onClose:
|
|
1803
|
+
onClose: c
|
|
1804
1804
|
}, {
|
|
1805
1805
|
title: f(() => [a(Ie)]),
|
|
1806
1806
|
default: f(() => [a(ms, {
|
|
@@ -1826,16 +1826,16 @@ const wt = {
|
|
|
1826
1826
|
}
|
|
1827
1827
|
},
|
|
1828
1828
|
setup(b) {
|
|
1829
|
-
const r = b,
|
|
1829
|
+
const r = b, d = ["token", "userId", "appId", "error", "needBindIdentity", "bindSuccess", "provider"], {
|
|
1830
1830
|
completeSignIn: n
|
|
1831
1831
|
} = N(), {
|
|
1832
1832
|
fetchUserProfile: v
|
|
1833
1833
|
} = oe();
|
|
1834
1834
|
function h(u) {
|
|
1835
|
-
return
|
|
1835
|
+
return d.some((t) => u.searchParams.has(t));
|
|
1836
1836
|
}
|
|
1837
1837
|
function o(u) {
|
|
1838
|
-
|
|
1838
|
+
d.forEach((g) => u.searchParams.delete(g));
|
|
1839
1839
|
const t = `${u.pathname}${u.search}${u.hash}`;
|
|
1840
1840
|
window.history.replaceState({}, "", t);
|
|
1841
1841
|
}
|
|
@@ -1846,7 +1846,7 @@ const wt = {
|
|
|
1846
1846
|
const t = window.location.pathname + window.location.search + window.location.hash;
|
|
1847
1847
|
return u === t ? null : u;
|
|
1848
1848
|
}
|
|
1849
|
-
async function
|
|
1849
|
+
async function c() {
|
|
1850
1850
|
if (typeof window > "u") return;
|
|
1851
1851
|
const u = new URL(window.location.href);
|
|
1852
1852
|
if (!h(u)) return;
|
|
@@ -1876,7 +1876,7 @@ const wt = {
|
|
|
1876
1876
|
m && (window.location.href = m);
|
|
1877
1877
|
}
|
|
1878
1878
|
return E(() => {
|
|
1879
|
-
|
|
1879
|
+
c();
|
|
1880
1880
|
}), (u, t) => null;
|
|
1881
1881
|
}
|
|
1882
1882
|
}), la = /* @__PURE__ */ A({
|
|
@@ -1918,7 +1918,7 @@ const wt = {
|
|
|
1918
1918
|
emit: r
|
|
1919
1919
|
}) {
|
|
1920
1920
|
const {
|
|
1921
|
-
config:
|
|
1921
|
+
config: d
|
|
1922
1922
|
} = pe(), n = b, v = r, h = Ae(), {
|
|
1923
1923
|
openLegalDoc: o
|
|
1924
1924
|
} = Se({
|
|
@@ -1926,7 +1926,7 @@ const wt = {
|
|
|
1926
1926
|
}), {
|
|
1927
1927
|
isOpen: s
|
|
1928
1928
|
} = we(), {
|
|
1929
|
-
restoreSession:
|
|
1929
|
+
restoreSession: c,
|
|
1930
1930
|
onSignIn: u,
|
|
1931
1931
|
onSignOut: t
|
|
1932
1932
|
} = N(), {
|
|
@@ -1940,14 +1940,14 @@ const wt = {
|
|
|
1940
1940
|
i();
|
|
1941
1941
|
});
|
|
1942
1942
|
function y() {
|
|
1943
|
-
if (
|
|
1943
|
+
if (d.legalDocsMode === "builtin") {
|
|
1944
1944
|
o("privacyPolicy");
|
|
1945
1945
|
return;
|
|
1946
1946
|
}
|
|
1947
1947
|
v("toPrivacyPolicy");
|
|
1948
1948
|
}
|
|
1949
1949
|
function _() {
|
|
1950
|
-
if (
|
|
1950
|
+
if (d.legalDocsMode === "builtin") {
|
|
1951
1951
|
o("userServiceAgreement");
|
|
1952
1952
|
return;
|
|
1953
1953
|
}
|
|
@@ -1957,7 +1957,7 @@ const wt = {
|
|
|
1957
1957
|
gt({
|
|
1958
1958
|
onPrivacyPolicy: y,
|
|
1959
1959
|
onUserServiceAgreement: _
|
|
1960
|
-
}), n.fetchAppInfo && await w(), n.restoreSession &&
|
|
1960
|
+
}), n.fetchAppInfo && await w(), n.restoreSession && c() ? g() : i();
|
|
1961
1961
|
}), ue(() => {
|
|
1962
1962
|
p(), m();
|
|
1963
1963
|
}), (q, $) => (l(), k(D, null, [Z(q.$slots, "default"), n.handleOAuthCallback ? (l(), I(gs, {
|
|
@@ -2017,14 +2017,14 @@ const wt = {
|
|
|
2017
2017
|
}
|
|
2018
2018
|
},
|
|
2019
2019
|
setup(b) {
|
|
2020
|
-
const r = b,
|
|
2020
|
+
const r = b, d = R(() => r.backgroundType === "color" ? {
|
|
2021
2021
|
backgroundColor: r.backgroundColor
|
|
2022
2022
|
} : {
|
|
2023
2023
|
backgroundImage: `url(${r.backgroundImage})`
|
|
2024
2024
|
});
|
|
2025
2025
|
return (n, v) => (l(), k("div", {
|
|
2026
2026
|
class: "auth",
|
|
2027
|
-
style: G(
|
|
2027
|
+
style: G(d.value)
|
|
2028
2028
|
}, [S("div", hs, [r.name ? (l(), k("a", {
|
|
2029
2029
|
key: 0,
|
|
2030
2030
|
href: r.appHomePage,
|
|
@@ -2097,7 +2097,7 @@ const wt = {
|
|
|
2097
2097
|
}
|
|
2098
2098
|
},
|
|
2099
2099
|
setup(b) {
|
|
2100
|
-
const r = P(!1),
|
|
2100
|
+
const r = P(!1), d = b, n = P({
|
|
2101
2101
|
name: "",
|
|
2102
2102
|
homePageUrl: "",
|
|
2103
2103
|
createAt: "",
|
|
@@ -2122,30 +2122,30 @@ const wt = {
|
|
|
2122
2122
|
data: o,
|
|
2123
2123
|
error: s
|
|
2124
2124
|
} = await O().auth.oauth2.authorize.post({
|
|
2125
|
-
client_id:
|
|
2126
|
-
response_type:
|
|
2127
|
-
scope:
|
|
2128
|
-
state:
|
|
2129
|
-
redirect_uri:
|
|
2125
|
+
client_id: d.clientId,
|
|
2126
|
+
response_type: d.responseType,
|
|
2127
|
+
scope: d.scope,
|
|
2128
|
+
state: d.state,
|
|
2129
|
+
redirect_uri: d.redirectUri
|
|
2130
2130
|
});
|
|
2131
2131
|
if (r.value = !1, s || !o)
|
|
2132
2132
|
return;
|
|
2133
|
-
const
|
|
2134
|
-
window.location.href =
|
|
2133
|
+
const c = o;
|
|
2134
|
+
window.location.href = c.authorizeUrl;
|
|
2135
2135
|
}
|
|
2136
2136
|
return (o, s) => (l(), k("div", _s, [S("div", ks, L(`授权 ${n.value.name}`), 1), S("div", Ss, [a(e($e), null, {
|
|
2137
2137
|
default: f(() => [a(e(ie), null, {
|
|
2138
2138
|
default: f(() => {
|
|
2139
|
-
var
|
|
2139
|
+
var c;
|
|
2140
2140
|
return [a(e(ne), {
|
|
2141
2141
|
title: n.value.name,
|
|
2142
|
-
description: `想要使用您的${(
|
|
2142
|
+
description: `想要使用您的${(c = d.userInfo) == null ? void 0 : c.nickname}账户`
|
|
2143
2143
|
}, {
|
|
2144
2144
|
avatar: f(() => {
|
|
2145
2145
|
var u;
|
|
2146
2146
|
return [a(e(te), {
|
|
2147
2147
|
shape: "square",
|
|
2148
|
-
"image-url": (u =
|
|
2148
|
+
"image-url": (u = d.userInfo) == null ? void 0 : u.avatar
|
|
2149
2149
|
}, null, 8, ["image-url"])];
|
|
2150
2150
|
}),
|
|
2151
2151
|
_: 1
|
|
@@ -2190,7 +2190,7 @@ const wt = {
|
|
|
2190
2190
|
_: 1
|
|
2191
2191
|
}), a(e(B), {
|
|
2192
2192
|
type: "primary",
|
|
2193
|
-
size:
|
|
2193
|
+
size: d.size,
|
|
2194
2194
|
loading: r.value,
|
|
2195
2195
|
onClick: h
|
|
2196
2196
|
}, {
|
|
@@ -2222,9 +2222,9 @@ const wt = {
|
|
|
2222
2222
|
setup(b, {
|
|
2223
2223
|
emit: r
|
|
2224
2224
|
}) {
|
|
2225
|
-
const
|
|
2225
|
+
const d = b, n = r, v = P(!0), h = P(""), o = P("登录成功,正在跳转..."), {
|
|
2226
2226
|
completeSignIn: s,
|
|
2227
|
-
restoreSession:
|
|
2227
|
+
restoreSession: c
|
|
2228
2228
|
} = N(), {
|
|
2229
2229
|
fetchUserProfile: u
|
|
2230
2230
|
} = oe();
|
|
@@ -2257,9 +2257,9 @@ const wt = {
|
|
|
2257
2257
|
token: p,
|
|
2258
2258
|
userId: m || "",
|
|
2259
2259
|
appId: y || ""
|
|
2260
|
-
}),
|
|
2260
|
+
}), d.bindIdentityRedirect)) {
|
|
2261
2261
|
v.value = !1, setTimeout(() => {
|
|
2262
|
-
window.location.href =
|
|
2262
|
+
window.location.href = d.bindIdentityRedirect;
|
|
2263
2263
|
}, 300);
|
|
2264
2264
|
return;
|
|
2265
2265
|
}
|
|
@@ -2271,7 +2271,7 @@ const wt = {
|
|
|
2271
2271
|
});
|
|
2272
2272
|
const $ = sessionStorage.getItem("auth_redirect");
|
|
2273
2273
|
sessionStorage.removeItem("auth_redirect");
|
|
2274
|
-
const T = $ ||
|
|
2274
|
+
const T = $ || d.defaultRedirect || "/";
|
|
2275
2275
|
v.value = !1, setTimeout(() => {
|
|
2276
2276
|
window.location.href = T;
|
|
2277
2277
|
}, 500);
|
|
@@ -2281,15 +2281,15 @@ const wt = {
|
|
|
2281
2281
|
}
|
|
2282
2282
|
function g() {
|
|
2283
2283
|
const i = sessionStorage.getItem("auth_redirect");
|
|
2284
|
-
sessionStorage.removeItem("auth_redirect"), window.location.href = i ||
|
|
2284
|
+
sessionStorage.removeItem("auth_redirect"), window.location.href = i || d.defaultRedirect || "/";
|
|
2285
2285
|
}
|
|
2286
2286
|
return E(() => {
|
|
2287
2287
|
const i = new URLSearchParams(window.location.search);
|
|
2288
2288
|
if (i.has("token") || i.has("error") || i.has("bindSuccess"))
|
|
2289
2289
|
t();
|
|
2290
|
-
else if (
|
|
2290
|
+
else if (c()) {
|
|
2291
2291
|
const w = sessionStorage.getItem("auth_redirect");
|
|
2292
|
-
sessionStorage.removeItem("auth_redirect"), window.location.href = w ||
|
|
2292
|
+
sessionStorage.removeItem("auth_redirect"), window.location.href = w || d.defaultRedirect || "/";
|
|
2293
2293
|
} else
|
|
2294
2294
|
h.value = "无效的访问", v.value = !1;
|
|
2295
2295
|
}), (i, w) => (l(), k("div", Vs, [v.value ? (l(), k("div", As, [w[0] || (w[0] = S("div", {
|
|
@@ -2324,13 +2324,13 @@ const wt = {
|
|
|
2324
2324
|
const {
|
|
2325
2325
|
config: r
|
|
2326
2326
|
} = pe(), {
|
|
2327
|
-
userProfile:
|
|
2327
|
+
userProfile: d,
|
|
2328
2328
|
fetchUserProfile: n
|
|
2329
2329
|
} = oe(), v = P("hidden"), h = P(!1);
|
|
2330
2330
|
let o;
|
|
2331
|
-
const s = b,
|
|
2331
|
+
const s = b, c = R(() => {
|
|
2332
2332
|
var m, y, _;
|
|
2333
|
-
return ((y = (m =
|
|
2333
|
+
return ((y = (m = d.value) == null ? void 0 : m.github) == null ? void 0 : y.avatar_url) || ((_ = d.value) == null ? void 0 : _.avatar) || "";
|
|
2334
2334
|
}), {
|
|
2335
2335
|
getOauthCallbackUrl: u
|
|
2336
2336
|
} = _e();
|
|
@@ -2368,12 +2368,12 @@ const wt = {
|
|
|
2368
2368
|
h.value && n();
|
|
2369
2369
|
}
|
|
2370
2370
|
return E(() => {
|
|
2371
|
-
|
|
2371
|
+
d.value || n(), o = setInterval(p, 1e3);
|
|
2372
2372
|
}), ue(() => {
|
|
2373
2373
|
o && clearInterval(o);
|
|
2374
2374
|
}), (m, y) => {
|
|
2375
2375
|
var _, q, $;
|
|
2376
|
-
return l(), k(D, null, [!((_ = e(
|
|
2376
|
+
return l(), k(D, null, [!((_ = e(d)) != null && _.github) && v.value === "hidden" ? (l(), I(e(fe), {
|
|
2377
2377
|
key: 0,
|
|
2378
2378
|
title: "绑定GitHub"
|
|
2379
2379
|
}, {
|
|
@@ -2387,7 +2387,7 @@ const wt = {
|
|
|
2387
2387
|
}, 8, ["size"])]),
|
|
2388
2388
|
default: f(() => [y[3] || (y[3] = x(" 您还未绑定GitHub账号,请点击绑定。 ", -1))]),
|
|
2389
2389
|
_: 1
|
|
2390
|
-
})) : z("", !0), (q = e(
|
|
2390
|
+
})) : z("", !0), (q = e(d)) != null && q.github && v.value === "hidden" ? (l(), I(e(fe), {
|
|
2391
2391
|
key: 1,
|
|
2392
2392
|
title: "解绑GitHub"
|
|
2393
2393
|
}, {
|
|
@@ -2401,10 +2401,10 @@ const wt = {
|
|
|
2401
2401
|
}, 8, ["size"])]),
|
|
2402
2402
|
default: f(() => {
|
|
2403
2403
|
var T, F;
|
|
2404
|
-
return [S("div", Ts, [
|
|
2404
|
+
return [S("div", Ts, [c.value ? (l(), I(e(te), {
|
|
2405
2405
|
key: 0,
|
|
2406
2406
|
class: "oauth-binding-account__avatar",
|
|
2407
|
-
"image-url":
|
|
2407
|
+
"image-url": c.value,
|
|
2408
2408
|
size: 42
|
|
2409
2409
|
}, null, 8, ["image-url"])) : (l(), k("div", Rs, [a(be, {
|
|
2410
2410
|
icon: e(J).github,
|
|
@@ -2412,13 +2412,13 @@ const wt = {
|
|
|
2412
2412
|
alt: "GitHub"
|
|
2413
2413
|
}, null, 8, ["icon", "size"])])), S("div", qs, [y[4] || (y[4] = S("div", {
|
|
2414
2414
|
class: "oauth-binding-account__provider"
|
|
2415
|
-
}, "GitHub", -1)), S("div", xs, L(((F = (T = e(
|
|
2415
|
+
}, "GitHub", -1)), S("div", xs, L(((F = (T = e(d)) == null ? void 0 : T.github) == null ? void 0 : F.login) || "GitHub"), 1)])])];
|
|
2416
2416
|
}),
|
|
2417
2417
|
_: 1
|
|
2418
2418
|
})) : z("", !0), v.value === "bind" || v.value === "unbind" ? (l(), I(Fe, {
|
|
2419
2419
|
key: 2,
|
|
2420
2420
|
size: s.size,
|
|
2421
|
-
email: ($ = e(
|
|
2421
|
+
email: ($ = e(d)) == null ? void 0 : $.email,
|
|
2422
2422
|
onNext: w
|
|
2423
2423
|
}, null, 8, ["size", "email"])) : z("", !0)], 64);
|
|
2424
2424
|
};
|
|
@@ -2430,7 +2430,7 @@ const wt = {
|
|
|
2430
2430
|
appId: {}
|
|
2431
2431
|
},
|
|
2432
2432
|
setup(b) {
|
|
2433
|
-
const r = b,
|
|
2433
|
+
const r = b, d = R(() => De[r.type] ?? ""), n = P(!1), v = P(null);
|
|
2434
2434
|
async function h() {
|
|
2435
2435
|
if (!r.type || !r.appId) {
|
|
2436
2436
|
v.value = null;
|
|
@@ -2456,12 +2456,12 @@ const wt = {
|
|
|
2456
2456
|
}, null, 8, ["loading"])) : v.value ? (l(), I(e(He), {
|
|
2457
2457
|
key: 2,
|
|
2458
2458
|
modelValue: v.value,
|
|
2459
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
|
2459
|
+
"onUpdate:modelValue": s[1] || (s[1] = (c) => v.value = c),
|
|
2460
2460
|
editable: !1
|
|
2461
2461
|
}, {
|
|
2462
2462
|
title: f(() => [a(e(Ge), {
|
|
2463
|
-
modelValue:
|
|
2464
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
2463
|
+
modelValue: d.value,
|
|
2464
|
+
"onUpdate:modelValue": s[0] || (s[0] = (c) => d.value = c),
|
|
2465
2465
|
editable: !1,
|
|
2466
2466
|
class: "legal-doc-viewer-title"
|
|
2467
2467
|
}, null, 8, ["modelValue"])]),
|