@huyooo/ui 0.4.63 → 0.4.66
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-D7k_8buM.js → AuthkitAppSetting-hzmQcqn0.js} +71 -70
- package/dist/{AuthkitAuthorize-pB8aT1kV.js → AuthkitAuthorize-B3WS5eGX.js} +2 -2
- package/dist/{FeedbackItem-Dxzmtu66.js → FeedbackItem-Du2qqirA.js} +62 -60
- package/dist/{FeedbackModal-D7tjJLBj.js → FeedbackModal-CqqZyeKu.js} +22 -21
- package/dist/{MessageHandle-Dt6rb0rg.js → MessageHandle-BelPivb3.js} +2 -2
- package/dist/{PaySubscriptions-B42IdT-5.js → PaySubscriptions-BRWvLeed.js} +1 -1
- package/dist/{ReferrerReferees-CvuUodDZ.js → ReferrerReferees-BVj9o5kG.js} +2 -2
- package/dist/Upload.vue_vue_type_script_setup_true_lang-DTijAu7h.js +88 -0
- package/dist/{UserAccountMenu-3neBzl5f.js → UserAccountMenu-BD8F9vEK.js} +1 -1
- package/dist/{UserPanel-BJzhmyWP.js → UserPanel-Bgfdtd01.js} +7 -7
- package/dist/authkit.js +4 -4
- package/dist/common/globalConfig.d.ts +20 -6
- package/dist/common.js +7 -7
- package/dist/components/Upload/Upload.vue.d.ts +30 -0
- package/dist/composables/Upload/useUploadCos.d.ts +4 -1
- package/dist/composables.js +5 -5
- package/dist/feedback.js +2 -2
- package/dist/globalConfig-DZIhLe1R.js +16 -0
- package/dist/index.js +15 -15
- 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/types/api.d.ts +0 -14
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAuthModal-C153ZpNb.js → useAuthkitAuthModal-hxivJw_U.js} +1 -1
- package/dist/{useAuthkitUsersProfile-CT2MN1S5.js → useAuthkitUsersProfile-DNOB_Kuk.js} +1 -1
- package/dist/{useMessageNotifications-DkKSVkdt.js → useMessageNotifications-DOH1MS61.js} +1 -1
- package/dist/{useUploadCos-C3ts0Gpa.js → useUploadCos-D34wTxEi.js} +1179 -1179
- package/dist/user.js +2 -2
- package/package.json +1 -1
- package/dist/Upload.vue_vue_type_script_setup_true_lang-Bw3IlEUj.js +0 -70
- package/dist/globalConfig-dtNQA0ZH.js +0 -15
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { defineComponent as
|
|
4
|
+
import { defineComponent as S, 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 k, createTextVNode as z, ref as h, onMounted as G, 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
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-
|
|
7
|
-
import { U as J, u as ze } from "./useAuthkitAuthModal-
|
|
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-DNOB_Kuk.js";
|
|
7
|
+
import { U as J, u as ze } from "./useAuthkitAuthModal-hxivJw_U.js";
|
|
8
8
|
/* empty css */
|
|
9
|
-
import { Icon as
|
|
9
|
+
import { Icon as ke } 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 { u as
|
|
14
|
+
import { u as Se } from "./useUploadCos-D34wTxEi.js";
|
|
15
|
+
import { g as F } from "./globalConfig-DZIhLe1R.js";
|
|
15
16
|
import { _ as Ae, g as Ie, i as Pe } from "./plugin-vue_export-helper-LjDO2Zua.js";
|
|
16
|
-
import { api as
|
|
17
|
-
import { g as H } from "./globalConfig-dtNQA0ZH.js";
|
|
17
|
+
import { api as H } from "@huyooo/api";
|
|
18
18
|
import { M as Ve } from "./Menu-Cxo8Rpu3.js";
|
|
19
19
|
import { u as Ue } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
|
|
20
20
|
function ae() {
|
|
21
|
-
return
|
|
22
|
-
url: `${
|
|
21
|
+
return H({
|
|
22
|
+
url: `${F.authPrefixUrl}/restfulApi/OAuth/github/login`,
|
|
23
23
|
method: "get"
|
|
24
24
|
});
|
|
25
25
|
}
|
|
@@ -46,7 +46,7 @@ function qe() {
|
|
|
46
46
|
microsoftAuth: xe
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
const M = /* @__PURE__ */
|
|
49
|
+
const M = /* @__PURE__ */ S({
|
|
50
50
|
__name: "AuthkitOAuthItem",
|
|
51
51
|
props: {
|
|
52
52
|
size: {
|
|
@@ -74,7 +74,7 @@ const M = /* @__PURE__ */ k({
|
|
|
74
74
|
type: "primary",
|
|
75
75
|
size: u.size
|
|
76
76
|
}, {
|
|
77
|
-
icon: m(() => [l(e(
|
|
77
|
+
icon: m(() => [l(e(ke), {
|
|
78
78
|
icon: u.icon
|
|
79
79
|
}, null, 8, ["icon"])]),
|
|
80
80
|
default: m(() => [b("span", null, B(u.label), 1)]),
|
|
@@ -85,7 +85,7 @@ const M = /* @__PURE__ */ k({
|
|
|
85
85
|
class: "OAuthList"
|
|
86
86
|
}, Te = {
|
|
87
87
|
class: "OAuthList"
|
|
88
|
-
}, Le = /* @__PURE__ */
|
|
88
|
+
}, Le = /* @__PURE__ */ S({
|
|
89
89
|
__name: "AuthkitOAuthList",
|
|
90
90
|
props: {
|
|
91
91
|
size: {
|
|
@@ -112,49 +112,49 @@ const M = /* @__PURE__ */ k({
|
|
|
112
112
|
default: m(() => _[0] || (_[0] = [z("OAuth登陆")])),
|
|
113
113
|
_: 1,
|
|
114
114
|
__: [0]
|
|
115
|
-
})) :
|
|
115
|
+
})) : k("", !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",
|
|
119
119
|
size: u.size,
|
|
120
120
|
onClick: e(s)
|
|
121
|
-
}, null, 8, ["size", "onClick"])) :
|
|
121
|
+
}, null, 8, ["size", "onClick"])) : k("", !0), e(n).oauth.google.enabled ? (g(), y(M, {
|
|
122
122
|
key: 1,
|
|
123
123
|
icon: "mdi:google",
|
|
124
124
|
label: "Google",
|
|
125
125
|
size: u.size,
|
|
126
126
|
onClick: e(a)
|
|
127
|
-
}, null, 8, ["size", "onClick"])) :
|
|
127
|
+
}, null, 8, ["size", "onClick"])) : k("", !0), e(n).oauth.microsoft.enabled ? (g(), y(M, {
|
|
128
128
|
key: 2,
|
|
129
129
|
icon: "mdi:microsoft",
|
|
130
130
|
label: "Microsoft",
|
|
131
131
|
size: u.size,
|
|
132
132
|
onClick: e(o)
|
|
133
|
-
}, null, 8, ["size", "onClick"])) :
|
|
133
|
+
}, null, 8, ["size", "onClick"])) : k("", !0)])]));
|
|
134
134
|
}
|
|
135
135
|
}), Be = /* @__PURE__ */ I(Le, [["__scopeId", "data-v-7c6620c0"]]);
|
|
136
136
|
function Oe(i) {
|
|
137
|
-
return
|
|
138
|
-
url: `${
|
|
137
|
+
return H({
|
|
138
|
+
url: `${F.authPrefixUrl}/restfulApi/verify/email`,
|
|
139
139
|
method: "post",
|
|
140
140
|
data: i
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
function Q(i) {
|
|
144
|
-
return
|
|
145
|
-
url: `${
|
|
144
|
+
return H({
|
|
145
|
+
url: `${F.authPrefixUrl}/restfulApi/verify/email/retry`,
|
|
146
146
|
method: "post",
|
|
147
147
|
data: i
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
function Ee(i) {
|
|
151
|
-
return
|
|
152
|
-
url: `${
|
|
151
|
+
return H({
|
|
152
|
+
url: `${F.authPrefixUrl}/restfulApi/verify/password`,
|
|
153
153
|
method: "post",
|
|
154
154
|
data: i
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
|
-
const Ne = /* @__PURE__ */
|
|
157
|
+
const Ne = /* @__PURE__ */ S({
|
|
158
158
|
__name: "AuthkitSendVerifyCode",
|
|
159
159
|
props: {
|
|
160
160
|
size: {
|
|
@@ -183,7 +183,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
183
183
|
function c() {
|
|
184
184
|
r.value = 60, o.value = !0, t && clearInterval(t), t = setInterval(p, 1e3);
|
|
185
185
|
}
|
|
186
|
-
return
|
|
186
|
+
return G(() => {
|
|
187
187
|
}), n({
|
|
188
188
|
startCountFn: c
|
|
189
189
|
}), te(() => {
|
|
@@ -209,7 +209,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
209
209
|
class: "sendVerifyCodeItem"
|
|
210
210
|
}, He = {
|
|
211
211
|
class: "handle"
|
|
212
|
-
}, Me = /* @__PURE__ */
|
|
212
|
+
}, Me = /* @__PURE__ */ S({
|
|
213
213
|
__name: "AuthkitPasswordUpdateAndVerify",
|
|
214
214
|
props: {
|
|
215
215
|
size: {
|
|
@@ -360,7 +360,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
360
360
|
}
|
|
361
361
|
}), De = /* @__PURE__ */ I(Me, [["__scopeId", "data-v-1c83f44a"]]), je = {
|
|
362
362
|
class: "SwitchSignIn"
|
|
363
|
-
}, We = /* @__PURE__ */
|
|
363
|
+
}, We = /* @__PURE__ */ S({
|
|
364
364
|
__name: "AuthkitSwitchSignIn",
|
|
365
365
|
emits: ["switchSignIn"],
|
|
366
366
|
setup(i, {
|
|
@@ -383,7 +383,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
383
383
|
}
|
|
384
384
|
}), oe = /* @__PURE__ */ I(We, [["__scopeId", "data-v-fc1d3903"]]), Ke = {
|
|
385
385
|
class: "ResetPassword"
|
|
386
|
-
}, Ze = /* @__PURE__ */
|
|
386
|
+
}, Ze = /* @__PURE__ */ S({
|
|
387
387
|
__name: "AuthkitResetPassword",
|
|
388
388
|
props: {
|
|
389
389
|
size: {
|
|
@@ -418,7 +418,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
418
418
|
}
|
|
419
419
|
}), Je = /* @__PURE__ */ I(Ze, [["__scopeId", "data-v-0622cbe3"]]), Qe = {
|
|
420
420
|
class: "ServiceAgreementAndPrivacyProtection"
|
|
421
|
-
}, Xe = /* @__PURE__ */
|
|
421
|
+
}, Xe = /* @__PURE__ */ S({
|
|
422
422
|
__name: "AuthkitServiceAgreementAndPrivacyProtection",
|
|
423
423
|
emits: ["toUserServiceAgreement", "toPrivacyPolicy"],
|
|
424
424
|
setup(i, {
|
|
@@ -449,7 +449,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
449
449
|
class: "content"
|
|
450
450
|
}, tt = {
|
|
451
451
|
class: "handle"
|
|
452
|
-
}, it = /* @__PURE__ */
|
|
452
|
+
}, it = /* @__PURE__ */ S({
|
|
453
453
|
__name: "AuthkitPasswordAuth",
|
|
454
454
|
props: {
|
|
455
455
|
size: {
|
|
@@ -549,7 +549,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
549
549
|
}
|
|
550
550
|
}), st = /* @__PURE__ */ I(it, [["__scopeId", "data-v-76d6bc26"]]), nt = {
|
|
551
551
|
class: "SwitchSignUpOrResetPassword"
|
|
552
|
-
}, lt = /* @__PURE__ */
|
|
552
|
+
}, lt = /* @__PURE__ */ S({
|
|
553
553
|
__name: "AuthkitSwitchSignUpOrResetPassword",
|
|
554
554
|
emits: ["switchSignUp", "switchResetPassword"],
|
|
555
555
|
setup(i, {
|
|
@@ -584,7 +584,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
584
584
|
}
|
|
585
585
|
}), at = /* @__PURE__ */ I(lt, [["__scopeId", "data-v-14e3aab2"]]), ot = {
|
|
586
586
|
class: "SignIn"
|
|
587
|
-
}, rt = /* @__PURE__ */
|
|
587
|
+
}, rt = /* @__PURE__ */ S({
|
|
588
588
|
__name: "AuthkitSignIn",
|
|
589
589
|
props: {
|
|
590
590
|
size: {
|
|
@@ -611,13 +611,13 @@ const Ne = /* @__PURE__ */ k({
|
|
|
611
611
|
async function _(f) {
|
|
612
612
|
u("submit", f);
|
|
613
613
|
}
|
|
614
|
-
return (f, p) => (g(), P("div", ot, [
|
|
614
|
+
return (f, p) => (g(), P("div", ot, [k("", !0), l(st, {
|
|
615
615
|
loading: s.loading,
|
|
616
616
|
size: s.size,
|
|
617
617
|
onSubmit: _
|
|
618
618
|
}, null, 8, ["loading", "size"]), o.value ? ie(f.$slots, "OAuth", {
|
|
619
619
|
key: 1
|
|
620
|
-
}, void 0, !0) :
|
|
620
|
+
}, void 0, !0) : k("", !0), l(at, {
|
|
621
621
|
onSwitchSignUp: t,
|
|
622
622
|
onSwitchResetPassword: r
|
|
623
623
|
})]));
|
|
@@ -628,7 +628,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
628
628
|
class: "sendVerifyCodeItem"
|
|
629
629
|
}, ct = {
|
|
630
630
|
class: "handle"
|
|
631
|
-
}, ft = /* @__PURE__ */
|
|
631
|
+
}, ft = /* @__PURE__ */ S({
|
|
632
632
|
__name: "AuthkitEmailUpdate",
|
|
633
633
|
props: {
|
|
634
634
|
size: {
|
|
@@ -799,7 +799,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
799
799
|
}
|
|
800
800
|
}), re = /* @__PURE__ */ I(ft, [["__scopeId", "data-v-5b701953"]]), pt = {
|
|
801
801
|
class: "SignUp"
|
|
802
|
-
}, vt = /* @__PURE__ */
|
|
802
|
+
}, vt = /* @__PURE__ */ S({
|
|
803
803
|
__name: "AuthkitSignUp",
|
|
804
804
|
props: {
|
|
805
805
|
size: {
|
|
@@ -831,7 +831,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
831
831
|
onSwitchSignIn: a
|
|
832
832
|
})]));
|
|
833
833
|
}
|
|
834
|
-
}), gt = /* @__PURE__ */ I(vt, [["__scopeId", "data-v-058bbbef"]]), _t = ["src"], ht = /* @__PURE__ */
|
|
834
|
+
}), gt = /* @__PURE__ */ I(vt, [["__scopeId", "data-v-058bbbef"]]), _t = ["src"], ht = /* @__PURE__ */ S({
|
|
835
835
|
__name: "AuthkitAuthTitle",
|
|
836
836
|
props: {
|
|
837
837
|
size: {
|
|
@@ -869,13 +869,13 @@ const Ne = /* @__PURE__ */ k({
|
|
|
869
869
|
style: j({
|
|
870
870
|
width: u
|
|
871
871
|
})
|
|
872
|
-
}, null, 12, _t)) :
|
|
872
|
+
}, null, 12, _t)) : k("", !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
|
-
}, wt = /* @__PURE__ */
|
|
878
|
+
}, wt = /* @__PURE__ */ S({
|
|
879
879
|
__name: "AuthkitAuth",
|
|
880
880
|
props: {
|
|
881
881
|
size: {
|
|
@@ -915,7 +915,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
915
915
|
key: 0,
|
|
916
916
|
size: 32,
|
|
917
917
|
"font-size": 20
|
|
918
|
-
})) :
|
|
918
|
+
})) : k("", !0), b("div", bt, [e(r) === "signIn" ? (g(), y(ut, {
|
|
919
919
|
key: 0,
|
|
920
920
|
size: u.size,
|
|
921
921
|
loading: e(_),
|
|
@@ -939,12 +939,12 @@ const Ne = /* @__PURE__ */ k({
|
|
|
939
939
|
loading: e(p),
|
|
940
940
|
onSwitchSignIn: e(v),
|
|
941
941
|
onSubmit: C[2] || (C[2] = (x) => e(t)(x))
|
|
942
|
-
}, null, 8, ["size", "loading", "onSwitchSignIn"])) :
|
|
942
|
+
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : k("", !0), l(Ye, {
|
|
943
943
|
onToPrivacyPolicy: $,
|
|
944
944
|
onToUserServiceAgreement: q
|
|
945
945
|
})])]));
|
|
946
946
|
}
|
|
947
|
-
}), zt = /* @__PURE__ */ I(wt, [["__scopeId", "data-v-67d0eb00"]]),
|
|
947
|
+
}), zt = /* @__PURE__ */ I(wt, [["__scopeId", "data-v-67d0eb00"]]), kt = /* @__PURE__ */ S({
|
|
948
948
|
__name: "AuthkitAuthModal",
|
|
949
949
|
props: {
|
|
950
950
|
size: {
|
|
@@ -993,7 +993,7 @@ const Ne = /* @__PURE__ */ k({
|
|
|
993
993
|
_: 1
|
|
994
994
|
}, 8, ["visible"]));
|
|
995
995
|
}
|
|
996
|
-
}), di = /* @__PURE__ */ I(
|
|
996
|
+
}), di = /* @__PURE__ */ I(kt, [["__scopeId", "data-v-a22ae615"]]), St = S({
|
|
997
997
|
name: "IconCamera",
|
|
998
998
|
props: {
|
|
999
999
|
size: {
|
|
@@ -1053,7 +1053,7 @@ function It(i, n, u, s, a, o) {
|
|
|
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
|
}
|
|
1056
|
-
var D = /* @__PURE__ */ Ae(
|
|
1056
|
+
var D = /* @__PURE__ */ Ae(St, [["render", It]]);
|
|
1057
1057
|
const Pt = Object.assign(D, {
|
|
1058
1058
|
install: (i, n) => {
|
|
1059
1059
|
var u;
|
|
@@ -1062,7 +1062,7 @@ const Pt = Object.assign(D, {
|
|
|
1062
1062
|
}
|
|
1063
1063
|
}), Vt = {
|
|
1064
1064
|
class: "handle"
|
|
1065
|
-
}, Ut = /* @__PURE__ */
|
|
1065
|
+
}, Ut = /* @__PURE__ */ S({
|
|
1066
1066
|
__name: "AuthkitPersonalInformation",
|
|
1067
1067
|
props: {
|
|
1068
1068
|
size: {
|
|
@@ -1114,7 +1114,7 @@ const Pt = Object.assign(D, {
|
|
|
1114
1114
|
const p = () => {
|
|
1115
1115
|
const {
|
|
1116
1116
|
uploadFile: d
|
|
1117
|
-
} =
|
|
1117
|
+
} = Se(), 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
1119
|
var q;
|
|
1120
1120
|
const $ = (q = v.target.files) == null ? void 0 : q[0];
|
|
@@ -1122,6 +1122,7 @@ const Pt = Object.assign(D, {
|
|
|
1122
1122
|
o.value = !0;
|
|
1123
1123
|
try {
|
|
1124
1124
|
d({
|
|
1125
|
+
bucketId: F.avatarBucketId,
|
|
1125
1126
|
file: $,
|
|
1126
1127
|
onFileFinish(R, C, x) {
|
|
1127
1128
|
o.value = !0;
|
|
@@ -1226,7 +1227,7 @@ const Pt = Object.assign(D, {
|
|
|
1226
1227
|
_: 1
|
|
1227
1228
|
}, 8, ["model", "size"]));
|
|
1228
1229
|
}
|
|
1229
|
-
}), $t = /* @__PURE__ */ I(Ut, [["__scopeId", "data-v-
|
|
1230
|
+
}), $t = /* @__PURE__ */ I(Ut, [["__scopeId", "data-v-9f97445b"]]);
|
|
1230
1231
|
function de(i, n = 3) {
|
|
1231
1232
|
const u = i.indexOf("@");
|
|
1232
1233
|
if (u > 1) {
|
|
@@ -1239,7 +1240,7 @@ const Ct = {
|
|
|
1239
1240
|
class: "sendVerifyCodeItem"
|
|
1240
1241
|
}, xt = {
|
|
1241
1242
|
class: "handle"
|
|
1242
|
-
}, qt = /* @__PURE__ */
|
|
1243
|
+
}, qt = /* @__PURE__ */ S({
|
|
1243
1244
|
__name: "AuthkitEmailVerify",
|
|
1244
1245
|
props: {
|
|
1245
1246
|
email: {
|
|
@@ -1353,7 +1354,7 @@ const Ct = {
|
|
|
1353
1354
|
}
|
|
1354
1355
|
}), Y = /* @__PURE__ */ I(qt, [["__scopeId", "data-v-89ebb370"]]), Rt = {
|
|
1355
1356
|
class: "handle"
|
|
1356
|
-
}, Tt = /* @__PURE__ */
|
|
1357
|
+
}, Tt = /* @__PURE__ */ S({
|
|
1357
1358
|
__name: "AuthkitPasswordUpdate",
|
|
1358
1359
|
props: {
|
|
1359
1360
|
size: {
|
|
@@ -1468,7 +1469,7 @@ const Ct = {
|
|
|
1468
1469
|
_: 1
|
|
1469
1470
|
}, 8, ["model", "size"]));
|
|
1470
1471
|
}
|
|
1471
|
-
}), Lt = /* @__PURE__ */ I(Tt, [["__scopeId", "data-v-a9e25b03"]]), Bt = /* @__PURE__ */
|
|
1472
|
+
}), Lt = /* @__PURE__ */ I(Tt, [["__scopeId", "data-v-a9e25b03"]]), Bt = /* @__PURE__ */ S({
|
|
1472
1473
|
__name: "AuthkitSetPassword",
|
|
1473
1474
|
props: {
|
|
1474
1475
|
size: {
|
|
@@ -1492,7 +1493,7 @@ const Ct = {
|
|
|
1492
1493
|
function f() {
|
|
1493
1494
|
o.value = "update";
|
|
1494
1495
|
}
|
|
1495
|
-
return
|
|
1496
|
+
return G(() => {
|
|
1496
1497
|
a.value && !n.value && s();
|
|
1497
1498
|
}), (p, d) => {
|
|
1498
1499
|
var c, v, w, $;
|
|
@@ -1512,7 +1513,7 @@ const Ct = {
|
|
|
1512
1513
|
default: m(() => [d[3] || (d[3] = z(" 请先去绑定邮箱或者手机号码,才能设置密码 "))]),
|
|
1513
1514
|
_: 1,
|
|
1514
1515
|
__: [3]
|
|
1515
|
-
})) :
|
|
1516
|
+
})) : k("", !0), (w = e(n)) != null && w.email && o.value === "hidden" ? (g(), y(e(L), {
|
|
1516
1517
|
key: 1,
|
|
1517
1518
|
title: "更改密码"
|
|
1518
1519
|
}, {
|
|
@@ -1528,20 +1529,20 @@ const Ct = {
|
|
|
1528
1529
|
default: m(() => [d[5] || (d[5] = z(" 为了账户安全修改密码前会先验证身份 "))]),
|
|
1529
1530
|
_: 1,
|
|
1530
1531
|
__: [5]
|
|
1531
|
-
})) :
|
|
1532
|
+
})) : k("", !0), o.value === "update" ? (g(), y(Lt, {
|
|
1532
1533
|
key: 2,
|
|
1533
1534
|
size: t.size,
|
|
1534
1535
|
loading: e(u),
|
|
1535
1536
|
onSubmit: _
|
|
1536
|
-
}, null, 8, ["size", "loading"])) :
|
|
1537
|
+
}, null, 8, ["size", "loading"])) : k("", !0), o.value === "verify" ? (g(), y(Y, {
|
|
1537
1538
|
key: 3,
|
|
1538
1539
|
size: t.size,
|
|
1539
1540
|
email: ($ = e(n)) == null ? void 0 : $.email,
|
|
1540
1541
|
onNext: f
|
|
1541
|
-
}, null, 8, ["size", "email"])) :
|
|
1542
|
+
}, null, 8, ["size", "email"])) : k("", !0)], 64);
|
|
1542
1543
|
};
|
|
1543
1544
|
}
|
|
1544
|
-
}), Ot = /* @__PURE__ */
|
|
1545
|
+
}), Ot = /* @__PURE__ */ S({
|
|
1545
1546
|
__name: "AuthkitEmailBinding",
|
|
1546
1547
|
props: {
|
|
1547
1548
|
size: {
|
|
@@ -1574,7 +1575,7 @@ const Ct = {
|
|
|
1574
1575
|
function _() {
|
|
1575
1576
|
a.value = "update";
|
|
1576
1577
|
}
|
|
1577
|
-
return
|
|
1578
|
+
return G(() => {
|
|
1578
1579
|
n.value || s();
|
|
1579
1580
|
}), (f, p) => {
|
|
1580
1581
|
var d, c, v;
|
|
@@ -1594,7 +1595,7 @@ const Ct = {
|
|
|
1594
1595
|
default: m(() => [p[3] || (p[3] = z(" 您还未绑定邮箱,请点击绑定邮箱 "))]),
|
|
1595
1596
|
_: 1,
|
|
1596
1597
|
__: [3]
|
|
1597
|
-
})) :
|
|
1598
|
+
})) : k("", !0), (c = e(n)) != null && c.email && a.value === "hidden" ? (g(), y(e(L), {
|
|
1598
1599
|
key: 1,
|
|
1599
1600
|
title: "更改邮箱"
|
|
1600
1601
|
}, {
|
|
@@ -1612,20 +1613,20 @@ const Ct = {
|
|
|
1612
1613
|
return [z(B(`您绑定的邮箱为${e(de)((w = e(n)) == null ? void 0 : w.email)}`) + " ", 1)];
|
|
1613
1614
|
}),
|
|
1614
1615
|
_: 1
|
|
1615
|
-
})) :
|
|
1616
|
+
})) : k("", !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"])) :
|
|
1621
|
+
}, null, 8, ["loading", "size"])) : k("", !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,
|
|
1624
1625
|
onNext: _
|
|
1625
|
-
}, null, 8, ["size", "email"])) :
|
|
1626
|
+
}, null, 8, ["size", "email"])) : k("", !0)], 64);
|
|
1626
1627
|
};
|
|
1627
1628
|
}
|
|
1628
|
-
}), Et = /* @__PURE__ */ I(Ot, [["__scopeId", "data-v-b2663ea1"]]), Nt = /* @__PURE__ */
|
|
1629
|
+
}), Et = /* @__PURE__ */ I(Ot, [["__scopeId", "data-v-b2663ea1"]]), Nt = /* @__PURE__ */ S({
|
|
1629
1630
|
__name: "AuthkitGithubBinding",
|
|
1630
1631
|
props: {
|
|
1631
1632
|
size: {
|
|
@@ -1664,7 +1665,7 @@ const Ct = {
|
|
|
1664
1665
|
function d() {
|
|
1665
1666
|
a.value && u();
|
|
1666
1667
|
}
|
|
1667
|
-
return
|
|
1668
|
+
return G(() => {
|
|
1668
1669
|
n.value || u(), o = setInterval(d, 1e3);
|
|
1669
1670
|
}), te(() => {
|
|
1670
1671
|
o && clearInterval(o);
|
|
@@ -1686,7 +1687,7 @@ const Ct = {
|
|
|
1686
1687
|
default: m(() => [v[3] || (v[3] = z(" 请尚未绑定GitHub,请点击绑定GitHUb "))]),
|
|
1687
1688
|
_: 1,
|
|
1688
1689
|
__: [3]
|
|
1689
|
-
})) :
|
|
1690
|
+
})) : k("", !0), ($ = e(n)) != null && $.github && s.value === "hidden" ? (g(), y(e(L), {
|
|
1690
1691
|
key: 1,
|
|
1691
1692
|
title: "解绑GitHub"
|
|
1692
1693
|
}, {
|
|
@@ -1707,12 +1708,12 @@ const Ct = {
|
|
|
1707
1708
|
}, null, 8, ["image-url"])];
|
|
1708
1709
|
}),
|
|
1709
1710
|
_: 1
|
|
1710
|
-
})) :
|
|
1711
|
+
})) : k("", !0), s.value === "bind" || s.value === "unbind" ? (g(), y(Y, {
|
|
1711
1712
|
key: 2,
|
|
1712
1713
|
size: t.size,
|
|
1713
1714
|
email: (q = e(n)) == null ? void 0 : q.email,
|
|
1714
1715
|
onNext: p
|
|
1715
|
-
}, null, 8, ["size", "email"])) :
|
|
1716
|
+
}, null, 8, ["size", "email"])) : k("", !0)], 64);
|
|
1716
1717
|
};
|
|
1717
1718
|
}
|
|
1718
1719
|
}), Ft = {
|
|
@@ -1721,7 +1722,7 @@ const Ct = {
|
|
|
1721
1722
|
class: "left"
|
|
1722
1723
|
}, Ht = {
|
|
1723
1724
|
class: "right"
|
|
1724
|
-
}, Mt = /* @__PURE__ */
|
|
1725
|
+
}, Mt = /* @__PURE__ */ S({
|
|
1725
1726
|
__name: "AuthkitAppSetting",
|
|
1726
1727
|
emits: ["confirm", "cancel"],
|
|
1727
1728
|
setup(i, {
|
|
@@ -1809,16 +1810,16 @@ const Ct = {
|
|
|
1809
1810
|
}, null, 8, ["selected-keys", "menus"])]), b("div", Ht, [t.value[0] === "PersonalInformation" ? (g(), y($t, {
|
|
1810
1811
|
key: 0,
|
|
1811
1812
|
size: o.value
|
|
1812
|
-
}, null, 8, ["size"])) :
|
|
1813
|
+
}, null, 8, ["size"])) : k("", !0), t.value[0] === "EmailBinding" ? (g(), y(Et, {
|
|
1813
1814
|
key: 1,
|
|
1814
1815
|
size: o.value
|
|
1815
|
-
}, null, 8, ["size"])) :
|
|
1816
|
+
}, null, 8, ["size"])) : k("", !0), t.value[0] === "SetPassword" ? (g(), y(Bt, {
|
|
1816
1817
|
key: 2,
|
|
1817
1818
|
size: o.value
|
|
1818
|
-
}, null, 8, ["size"])) :
|
|
1819
|
+
}, null, 8, ["size"])) : k("", !0), t.value[0] === "GithubBinding" ? (g(), y(Nt, {
|
|
1819
1820
|
key: 3,
|
|
1820
1821
|
size: o.value
|
|
1821
|
-
}, null, 8, ["size"])) :
|
|
1822
|
+
}, null, 8, ["size"])) : k("", !0)])])]),
|
|
1822
1823
|
_: 1
|
|
1823
1824
|
}, 8, ["visible"]));
|
|
1824
1825
|
}
|
|
@@ -8,8 +8,8 @@ import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { List as w, ListItem as d, ListItemMeta as p, Avatar as c, Button as x } from "@arco-design/web-vue";
|
|
11
|
-
import { a as $ } from "./useAuthkitAuthModal-
|
|
12
|
-
import { o as T } from "./useAuthkitUsersProfile-
|
|
11
|
+
import { a as $ } from "./useAuthkitAuthModal-hxivJw_U.js";
|
|
12
|
+
import { o as T } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
|
|
13
13
|
const U = {
|
|
14
14
|
class: "header"
|
|
15
15
|
}, B = ["href"], L = {
|