vue-layout-gitcode 1.3.43 → 1.3.44
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/{GloabarSearch-Cm-kH8Pu.js → GloabarSearch-BW-VkkPg.js} +2 -2
- package/{ProjectSearch-D25Oj55X.js → ProjectSearch-Dw-71hIG.js} +1 -1
- package/{SearchHistoryList-Iyll20xo.js → SearchHistoryList-C9lveOS9.js} +1 -1
- package/{SearchPrefixTag-Htl6ZB9E.js → SearchPrefixTag-CpfgDZ3n.js} +1 -1
- package/{SearchRecommed-C6mWZ35K.js → SearchRecommed-D0QBWZAk.js} +2 -2
- package/{SearchScopeList-B0J_I494.js → SearchScopeList-DF3j65Cp.js} +1 -1
- package/{UserSearch-CpHemB3q.js → UserSearch-DAun9jLj.js} +1 -1
- package/{index-BJiD9caE.js → index-CCJ1uPTS.js} +1 -1
- package/{index-BmG6buAx.js → index-DhDCBXmX.js} +1 -1
- package/{index-DaolLGsY.js → index-zCCv_wAa.js} +413 -673
- package/index.js +1 -1
- package/{notice-_1JWF_fz.js → notice-Cz9oJJ0w.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -40,8 +40,6 @@ import "vue-devui-lal/layout/style.css";
|
|
|
40
40
|
import { RadioGroup, Radio } from "vue-devui-lal/radio";
|
|
41
41
|
import "@devui-design/icons/icomoon/devui-icon.css";
|
|
42
42
|
import "vue-devui-lal/radio/style.css";
|
|
43
|
-
import { EditableSelect } from "vue-devui-lal/editable-select";
|
|
44
|
-
import "vue-devui-lal/editable-select/style.css";
|
|
45
43
|
import { Checkbox } from "vue-devui-lal/checkbox";
|
|
46
44
|
import "vue-devui-lal/checkbox/style.css";
|
|
47
45
|
import { Modal } from "vue-devui-lal/modal";
|
|
@@ -478,7 +476,6 @@ const OAUTH_CANCEL = "oauth_cancel";
|
|
|
478
476
|
const OAUTH_LOGIN_TYPE_KEY = "oauthType";
|
|
479
477
|
const REGISTER_SOURCE_TAB = "register_source_tab";
|
|
480
478
|
const LOGIN_MODAL_TRIGGER_SOURCE = "login_trigger_source";
|
|
481
|
-
const REGISTER_CLICK_TO_LOGIN = "register_click_to_login";
|
|
482
479
|
/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
|
|
483
480
|
const {
|
|
484
481
|
entries,
|
|
@@ -7750,16 +7747,12 @@ const gitCodeLayout$1 = {
|
|
|
7750
7747
|
phone: "手机号码",
|
|
7751
7748
|
cipher: "密码",
|
|
7752
7749
|
otherLogin: "其他登录方式",
|
|
7753
|
-
useAgrAndPriPolTip: "用户协议与隐私政策提示"
|
|
7754
|
-
desc: "代码有我,智能随行"
|
|
7750
|
+
useAgrAndPriPolTip: "用户协议与隐私政策提示"
|
|
7755
7751
|
},
|
|
7756
7752
|
action: {
|
|
7757
7753
|
oh: "鸿蒙开发者登录",
|
|
7758
7754
|
login: "登 录",
|
|
7759
|
-
|
|
7760
|
-
haveAccount: "已有账号?",
|
|
7761
|
-
registerAgain: "点击注册",
|
|
7762
|
-
backLogin: "返回登录",
|
|
7755
|
+
registerAgain: "注册新账号",
|
|
7763
7756
|
phone: "手机验证码",
|
|
7764
7757
|
readAgree: "我已阅读并同意",
|
|
7765
7758
|
verify: "确 认",
|
|
@@ -8038,16 +8031,12 @@ const gitCodeLayout = {
|
|
|
8038
8031
|
phone: "Phone number",
|
|
8039
8032
|
cipher: "Password",
|
|
8040
8033
|
otherLogin: "Other login methods",
|
|
8041
|
-
useAgrAndPriPolTip: "User Agreement and Privacy Policy Notice"
|
|
8042
|
-
desc: "Code with me, intelligent companion"
|
|
8034
|
+
useAgrAndPriPolTip: "User Agreement and Privacy Policy Notice"
|
|
8043
8035
|
},
|
|
8044
8036
|
action: {
|
|
8045
8037
|
oh: "OpenHarmony Developers",
|
|
8046
8038
|
login: "Log In",
|
|
8047
|
-
noAccount: "No account?",
|
|
8048
|
-
haveAccount: "Have an account?",
|
|
8049
8039
|
registerAgain: "Sign up",
|
|
8050
|
-
backLogin: "Log in",
|
|
8051
8040
|
phone: "SMS code",
|
|
8052
8041
|
readAgree: "I have read and agree to",
|
|
8053
8042
|
verify: "Confirm",
|
|
@@ -10921,12 +10910,12 @@ const proxyService = (params, customConfigs) => {
|
|
|
10921
10910
|
};
|
|
10922
10911
|
const _hoisted_1$v = { class: "home-nav-right" };
|
|
10923
10912
|
const _hoisted_2$l = { class: "home-nav-item" };
|
|
10924
|
-
const _hoisted_3$
|
|
10913
|
+
const _hoisted_3$i = {
|
|
10925
10914
|
key: 0,
|
|
10926
10915
|
class: "tooltip-sign"
|
|
10927
10916
|
};
|
|
10928
|
-
const _hoisted_4$
|
|
10929
|
-
const _hoisted_5$
|
|
10917
|
+
const _hoisted_4$e = { class: "home-nav-tooltip-wrapper" };
|
|
10918
|
+
const _hoisted_5$a = { class: "home-nav-text" };
|
|
10930
10919
|
const _hoisted_6$7 = {
|
|
10931
10920
|
key: 1,
|
|
10932
10921
|
class: "tools-list"
|
|
@@ -10963,16 +10952,16 @@ const _hoisted_23$3 = {
|
|
|
10963
10952
|
key: 0,
|
|
10964
10953
|
class: "absolute top-0 right-0 text-[var(--theme-aide-text)]"
|
|
10965
10954
|
};
|
|
10966
|
-
const _hoisted_24
|
|
10967
|
-
const _hoisted_25
|
|
10968
|
-
const _hoisted_26
|
|
10955
|
+
const _hoisted_24 = { class: "font-[600] text-[var(--theme-aide-text)] mt-3 text-sm leading-[20px]" };
|
|
10956
|
+
const _hoisted_25 = { class: "mt-3" };
|
|
10957
|
+
const _hoisted_26 = {
|
|
10969
10958
|
key: 1,
|
|
10970
10959
|
class: "finish flex items-center"
|
|
10971
10960
|
};
|
|
10972
|
-
const _hoisted_27
|
|
10973
|
-
const _hoisted_28
|
|
10974
|
-
const _hoisted_29
|
|
10975
|
-
const _hoisted_30
|
|
10961
|
+
const _hoisted_27 = { class: "flex justify-center items-center w-[30px] h-[30px] rounded-[50%] bg-[#0EB07B]" };
|
|
10962
|
+
const _hoisted_28 = { class: "ml-2 font-[600] text-[var(--theme-aide-text)] text-sm leading-[20px]" };
|
|
10963
|
+
const _hoisted_29 = { class: "home-nav-item" };
|
|
10964
|
+
const _hoisted_30 = ["src", "alt"];
|
|
10976
10965
|
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
10977
10966
|
__name: "index",
|
|
10978
10967
|
props: {
|
|
@@ -11141,8 +11130,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11141
11130
|
"overlay-class": "tools-tag-tooltip"
|
|
11142
11131
|
}, {
|
|
11143
11132
|
content: withCtx(() => [
|
|
11144
|
-
createElementVNode("div", _hoisted_4$
|
|
11145
|
-
createElementVNode("div", _hoisted_5$
|
|
11133
|
+
createElementVNode("div", _hoisted_4$e, [
|
|
11134
|
+
createElementVNode("div", _hoisted_5$a, toDisplayString$1(unref(t2)("gitCodeLayout.userSetting.menu.growthCenter")), 1)
|
|
11146
11135
|
])
|
|
11147
11136
|
]),
|
|
11148
11137
|
default: withCtx(() => [
|
|
@@ -11156,7 +11145,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11156
11145
|
src: "https://cdn-static.gitcode.com/static/images/homeweb/czzx.svg",
|
|
11157
11146
|
alt: ""
|
|
11158
11147
|
}, null, -1)),
|
|
11159
|
-
!_ctx.isLogin || !isSignIn.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
11148
|
+
!_ctx.isLogin || !isSignIn.value ? (openBlock(), createElementBlock("div", _hoisted_3$i, toDisplayString$1(!_ctx.isLogin ? unref(t2)("gitCodeLayout.growthCenter.receive") : unref(t2)("gitCodeLayout.growthCenter.signIn")), 1)) : createCommentVNode("", true)
|
|
11160
11149
|
])
|
|
11161
11150
|
])
|
|
11162
11151
|
]),
|
|
@@ -11279,10 +11268,10 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11279
11268
|
rateNow.value !== null ? (openBlock(), createElementBlock("div", _hoisted_23$3, [
|
|
11280
11269
|
createElementVNode("span", null, toDisplayString$1(rateIcon[rateNow.value].title), 1)
|
|
11281
11270
|
])) : createCommentVNode("", true),
|
|
11282
|
-
createElementVNode("div", _hoisted_24
|
|
11271
|
+
createElementVNode("div", _hoisted_24, [
|
|
11283
11272
|
createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.improveQuestion")) + "?", 1)
|
|
11284
11273
|
]),
|
|
11285
|
-
createElementVNode("div", _hoisted_25
|
|
11274
|
+
createElementVNode("div", _hoisted_25, [
|
|
11286
11275
|
createVNode(unref(Textarea), {
|
|
11287
11276
|
modelValue: opinionText.value,
|
|
11288
11277
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => opinionText.value = $event),
|
|
@@ -11306,15 +11295,15 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11306
11295
|
])
|
|
11307
11296
|
])) : createCommentVNode("", true)
|
|
11308
11297
|
])
|
|
11309
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_26
|
|
11310
|
-
createElementVNode("div", _hoisted_27
|
|
11298
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_26, [
|
|
11299
|
+
createElementVNode("div", _hoisted_27, [
|
|
11311
11300
|
createVNode(GIcon, {
|
|
11312
11301
|
name: "gt-success",
|
|
11313
11302
|
size: "14px",
|
|
11314
11303
|
color: "#fff"
|
|
11315
11304
|
})
|
|
11316
11305
|
]),
|
|
11317
|
-
createElementVNode("div", _hoisted_28
|
|
11306
|
+
createElementVNode("div", _hoisted_28, [
|
|
11318
11307
|
createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.thankFaceback")) + "!", 1)
|
|
11319
11308
|
])
|
|
11320
11309
|
]))
|
|
@@ -11359,7 +11348,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11359
11348
|
onClick: _cache[2] || (_cache[2] = //@ts-ignore
|
|
11360
11349
|
(...args) => unref(scrollToTop) && unref(scrollToTop)(...args))
|
|
11361
11350
|
}, [
|
|
11362
|
-
createElementVNode("div", _hoisted_29
|
|
11351
|
+
createElementVNode("div", _hoisted_29, [
|
|
11363
11352
|
createVNode(GIcon, {
|
|
11364
11353
|
name: "gt-plane-Topping1",
|
|
11365
11354
|
size: "20px"
|
|
@@ -11382,7 +11371,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11382
11371
|
width: "200",
|
|
11383
11372
|
src: activeAdItem.value.imgUrl,
|
|
11384
11373
|
alt: activeAdItem.value.title
|
|
11385
|
-
}, null, 8, _hoisted_30
|
|
11374
|
+
}, null, 8, _hoisted_30)
|
|
11386
11375
|
])) : createCommentVNode("", true)
|
|
11387
11376
|
]);
|
|
11388
11377
|
};
|
|
@@ -14460,13 +14449,6 @@ function headRequest(request) {
|
|
|
14460
14449
|
url: `/aihub/api/v1/theme/label/config/list`,
|
|
14461
14450
|
method: "get"
|
|
14462
14451
|
}));
|
|
14463
|
-
},
|
|
14464
|
-
// 获取今日技术历史
|
|
14465
|
-
getTodayTechHistory() {
|
|
14466
|
-
return reqCatch(() => request({
|
|
14467
|
-
url: `/uc/api/v1/operation/tech-history`,
|
|
14468
|
-
method: "get"
|
|
14469
|
-
}));
|
|
14470
14452
|
}
|
|
14471
14453
|
};
|
|
14472
14454
|
}
|
|
@@ -14488,10 +14470,10 @@ var RouteNameEnum = /* @__PURE__ */ ((RouteNameEnum2) => {
|
|
|
14488
14470
|
})(RouteNameEnum || {});
|
|
14489
14471
|
const _hoisted_1$t = {
|
|
14490
14472
|
key: 0,
|
|
14491
|
-
class: "ai-home-mb-menu-wrap"
|
|
14473
|
+
class: "ai-home-mb-menu-wrap md:!hidden"
|
|
14492
14474
|
};
|
|
14493
14475
|
const _hoisted_2$k = { class: "right-content cursor-pointer" };
|
|
14494
|
-
const _hoisted_3$
|
|
14476
|
+
const _hoisted_3$h = { class: "list-menu-ai-home" };
|
|
14495
14477
|
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
14496
14478
|
__name: "AiHubMenusMobile",
|
|
14497
14479
|
props: ["activeMenu", "menuList", "isRouterLink"],
|
|
@@ -14517,7 +14499,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
14517
14499
|
class: normalizeClass(["menu-bg", { "menu-bg-white": !isHome.value }])
|
|
14518
14500
|
}, {
|
|
14519
14501
|
menu: withCtx(() => [
|
|
14520
|
-
createElementVNode("ul", _hoisted_3$
|
|
14502
|
+
createElementVNode("ul", _hoisted_3$h, [
|
|
14521
14503
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.menuList, (item) => {
|
|
14522
14504
|
var _a;
|
|
14523
14505
|
return openBlock(), createElementBlock("li", {
|
|
@@ -14568,9 +14550,9 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
14568
14550
|
const AiHubMenusMobile = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
14569
14551
|
const _hoisted_1$s = { class: "ai-hub-menus-item_label" };
|
|
14570
14552
|
const _hoisted_2$j = ["onMouseenter"];
|
|
14571
|
-
const _hoisted_3$
|
|
14572
|
-
const _hoisted_4$
|
|
14573
|
-
const _hoisted_5$
|
|
14553
|
+
const _hoisted_3$g = { class: "ai-hub-menus-themetablist" };
|
|
14554
|
+
const _hoisted_4$d = { class: "flex items-center gap-[8px] font-semibold" };
|
|
14555
|
+
const _hoisted_5$9 = { class: "w-[32px] h-[32px] flex items-center justify-center" };
|
|
14574
14556
|
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
14575
14557
|
__name: "AiHubMenus",
|
|
14576
14558
|
props: ["scene"],
|
|
@@ -14703,7 +14685,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
14703
14685
|
position: ["top-start"]
|
|
14704
14686
|
}, {
|
|
14705
14687
|
menu: withCtx(() => [
|
|
14706
|
-
createElementVNode("ul", _hoisted_3$
|
|
14688
|
+
createElementVNode("ul", _hoisted_3$g, [
|
|
14707
14689
|
(openBlock(true), createElementBlock(Fragment, null, renderList(themeTablist.value, (item, index22) => {
|
|
14708
14690
|
return openBlock(), createBlock(GLink, {
|
|
14709
14691
|
key: index22,
|
|
@@ -14760,14 +14742,14 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
14760
14742
|
href: activeMenu.value.url
|
|
14761
14743
|
}, {
|
|
14762
14744
|
default: withCtx(() => [
|
|
14763
|
-
createElementVNode("span", _hoisted_4$
|
|
14745
|
+
createElementVNode("span", _hoisted_4$d, [
|
|
14764
14746
|
createVNode(GIcon, {
|
|
14765
14747
|
size: "24px",
|
|
14766
14748
|
name: activeMenu.value.icon
|
|
14767
14749
|
}, null, 8, ["name"]),
|
|
14768
14750
|
createTextVNode(" " + toDisplayString$1(activeMenu.value.label), 1)
|
|
14769
14751
|
]),
|
|
14770
|
-
createElementVNode("div", _hoisted_5$
|
|
14752
|
+
createElementVNode("div", _hoisted_5$9, [
|
|
14771
14753
|
createVNode(GIcon, {
|
|
14772
14754
|
size: "18px",
|
|
14773
14755
|
name: "gt-line-down",
|
|
@@ -16601,9 +16583,9 @@ const _hoisted_2$i = {
|
|
|
16601
16583
|
key: 1,
|
|
16602
16584
|
class: "org-layout-toolbar"
|
|
16603
16585
|
};
|
|
16604
|
-
const _hoisted_3$
|
|
16605
|
-
const _hoisted_4$
|
|
16606
|
-
const _hoisted_5$
|
|
16586
|
+
const _hoisted_3$f = { class: "org-layout-toolbar-title flex-1 ellipsis-two-line" };
|
|
16587
|
+
const _hoisted_4$c = { class: "text-xs" };
|
|
16588
|
+
const _hoisted_5$8 = { class: "flex items-center w-full" };
|
|
16607
16589
|
const _hoisted_6$6 = {
|
|
16608
16590
|
key: 1,
|
|
16609
16591
|
class: "flex items-center min-w-[30px]"
|
|
@@ -16784,7 +16766,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16784
16766
|
height: 28,
|
|
16785
16767
|
is_round: false
|
|
16786
16768
|
}, null, 8, ["src", "name"]),
|
|
16787
|
-
createElementVNode("div", _hoisted_3$
|
|
16769
|
+
createElementVNode("div", _hoisted_3$f, toDisplayString$1((_c = unref(orgInfo)) == null ? void 0 : _c.name), 1)
|
|
16788
16770
|
];
|
|
16789
16771
|
}),
|
|
16790
16772
|
_: 1
|
|
@@ -16799,7 +16781,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16799
16781
|
default: withCtx(() => {
|
|
16800
16782
|
var _a2;
|
|
16801
16783
|
return [
|
|
16802
|
-
createElementVNode("span", _hoisted_4$
|
|
16784
|
+
createElementVNode("span", _hoisted_4$c, toDisplayString$1(((_a2 = _ctx.orgProps) == null ? void 0 : _a2.isOrgFollow) ? unref(t2)("gitCodeLayout.home.alreadyFollowed") : unref(t2)("gitCodeLayout.home.focusOn")), 1)
|
|
16803
16785
|
];
|
|
16804
16786
|
}),
|
|
16805
16787
|
_: 1
|
|
@@ -16821,7 +16803,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16821
16803
|
default: withCtx(() => {
|
|
16822
16804
|
var _a2, _b2, _c, _d, _e, _f, _g;
|
|
16823
16805
|
return [
|
|
16824
|
-
createElementVNode("h2", _hoisted_5$
|
|
16806
|
+
createElementVNode("h2", _hoisted_5$8, [
|
|
16825
16807
|
createVNode(GLink, {
|
|
16826
16808
|
href: (_a2 = unref(breadcrumb)[0]) == null ? void 0 : _a2.path,
|
|
16827
16809
|
class: "pr-[12px]"
|
|
@@ -17038,21 +17020,6 @@ var AuthTypeEnum = /* @__PURE__ */ ((AuthTypeEnum2) => {
|
|
|
17038
17020
|
AuthTypeEnum2["PHONE_AND_PASSWORD"] = "phoneAndPassword";
|
|
17039
17021
|
return AuthTypeEnum2;
|
|
17040
17022
|
})(AuthTypeEnum || {});
|
|
17041
|
-
var LoginMethodEnum = /* @__PURE__ */ ((LoginMethodEnum2) => {
|
|
17042
|
-
LoginMethodEnum2["PHONE"] = "phone";
|
|
17043
|
-
LoginMethodEnum2["PASSWORD"] = "password";
|
|
17044
|
-
LoginMethodEnum2["MINI_PROGRAM"] = "miniProgram";
|
|
17045
|
-
LoginMethodEnum2["HARMONY"] = "harmony";
|
|
17046
|
-
LoginMethodEnum2["CSDN"] = "csdn";
|
|
17047
|
-
LoginMethodEnum2["ATOMGIT"] = "atomgit";
|
|
17048
|
-
LoginMethodEnum2["GITEE"] = "gitee";
|
|
17049
|
-
LoginMethodEnum2["GITHUB"] = "github";
|
|
17050
|
-
LoginMethodEnum2["WECHAT_OPEN"] = "wechat_open";
|
|
17051
|
-
LoginMethodEnum2["WECHAT_MP"] = "wechat_mp";
|
|
17052
|
-
LoginMethodEnum2["H_BUILDER"] = "hbuilder";
|
|
17053
|
-
LoginMethodEnum2["H_BUILDER_PLUGIN"] = "hbuilder_plugins";
|
|
17054
|
-
return LoginMethodEnum2;
|
|
17055
|
-
})(LoginMethodEnum || {});
|
|
17056
17023
|
var AuthResType = /* @__PURE__ */ ((AuthResType2) => {
|
|
17057
17024
|
AuthResType2["SUCCESS"] = "success";
|
|
17058
17025
|
AuthResType2["FAIL"] = "fail";
|
|
@@ -17537,9 +17504,9 @@ const _hoisted_1$n = {
|
|
|
17537
17504
|
class: "user-level-avatar-badge"
|
|
17538
17505
|
};
|
|
17539
17506
|
const _hoisted_2$h = { class: "flex items-center font-medium gap-[4px]" };
|
|
17540
|
-
const _hoisted_3$
|
|
17541
|
-
const _hoisted_4$
|
|
17542
|
-
const _hoisted_5$
|
|
17507
|
+
const _hoisted_3$e = ["src"];
|
|
17508
|
+
const _hoisted_4$b = { class: "level-name" };
|
|
17509
|
+
const _hoisted_5$7 = { class: "level-icon" };
|
|
17543
17510
|
const _hoisted_6$5 = ["src"];
|
|
17544
17511
|
const _hoisted_7$4 = { class: "custom-btn" };
|
|
17545
17512
|
const _hoisted_8$4 = { class: "flex items-center justify-center" };
|
|
@@ -17596,10 +17563,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
17596
17563
|
class: "level-avatar",
|
|
17597
17564
|
src: levelInfo.value.avatar,
|
|
17598
17565
|
alt: ""
|
|
17599
|
-
}, null, 8, _hoisted_3$
|
|
17600
|
-
createElementVNode("div", _hoisted_4$
|
|
17566
|
+
}, null, 8, _hoisted_3$e),
|
|
17567
|
+
createElementVNode("div", _hoisted_4$b, [
|
|
17601
17568
|
createElementVNode("div", null, toDisplayString$1(levelInfo.value.name), 1),
|
|
17602
|
-
createElementVNode("div", _hoisted_5$
|
|
17569
|
+
createElementVNode("div", _hoisted_5$7, [
|
|
17603
17570
|
createElementVNode("img", {
|
|
17604
17571
|
src: levelInfo.value.level,
|
|
17605
17572
|
alt: ""
|
|
@@ -17617,8 +17584,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
17617
17584
|
const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
17618
17585
|
const _hoisted_1$m = { class: "g-user-drawer-info-list pl-[16px]" };
|
|
17619
17586
|
const _hoisted_2$g = { class: "max-w-[200px]" };
|
|
17620
|
-
const _hoisted_3$
|
|
17621
|
-
const _hoisted_4$
|
|
17587
|
+
const _hoisted_3$d = ["title"];
|
|
17588
|
+
const _hoisted_4$a = ["title"];
|
|
17622
17589
|
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
17623
17590
|
__name: "UserAvatarMenu",
|
|
17624
17591
|
props: ["isChatBot", "accountInfo", "loginOutFinish", "inAIHub", "independence", "userMenus"],
|
|
@@ -17786,11 +17753,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
17786
17753
|
createElementVNode("p", {
|
|
17787
17754
|
class: "g-user-drawer-info-list-name ellipsis",
|
|
17788
17755
|
title: __props.accountInfo.nickname
|
|
17789
|
-
}, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_3$
|
|
17756
|
+
}, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_3$d),
|
|
17790
17757
|
createElementVNode("p", {
|
|
17791
17758
|
class: "g-user-drawer-info-list-id ellipsis",
|
|
17792
17759
|
title: __props.accountInfo.username
|
|
17793
|
-
}, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_4$
|
|
17760
|
+
}, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_4$a)
|
|
17794
17761
|
]),
|
|
17795
17762
|
createVNode(GIcon, {
|
|
17796
17763
|
name: "gt-line-right",
|
|
@@ -17836,12 +17803,12 @@ const _hoisted_2$f = {
|
|
|
17836
17803
|
key: 0,
|
|
17837
17804
|
class: "g-user-avatar__badge"
|
|
17838
17805
|
};
|
|
17839
|
-
const _hoisted_3$
|
|
17840
|
-
const _hoisted_4$
|
|
17806
|
+
const _hoisted_3$c = { class: "g-user-avatar flex-center ml-1" };
|
|
17807
|
+
const _hoisted_4$9 = {
|
|
17841
17808
|
key: 0,
|
|
17842
17809
|
class: "g-user-avatar__badge"
|
|
17843
17810
|
};
|
|
17844
|
-
const _hoisted_5$
|
|
17811
|
+
const _hoisted_5$6 = { class: "g-user-drawer" };
|
|
17845
17812
|
const _hoisted_6$4 = { class: "p-[16px] pt-[8px] pb-0 flex justify-end items-center h-[48px]" };
|
|
17846
17813
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
17847
17814
|
...{
|
|
@@ -17947,7 +17914,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17947
17914
|
onToggle: handleToggle
|
|
17948
17915
|
}, {
|
|
17949
17916
|
menu: withCtx(() => [
|
|
17950
|
-
createElementVNode("div", _hoisted_5$
|
|
17917
|
+
createElementVNode("div", _hoisted_5$6, [
|
|
17951
17918
|
createVNode(UserAvatarMenu, {
|
|
17952
17919
|
independence: __props.independence,
|
|
17953
17920
|
loginOutFinish: __props.loginOutFinish,
|
|
@@ -17959,12 +17926,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17959
17926
|
])
|
|
17960
17927
|
]),
|
|
17961
17928
|
default: withCtx(() => [
|
|
17962
|
-
createElementVNode("div", _hoisted_3$
|
|
17929
|
+
createElementVNode("div", _hoisted_3$c, [
|
|
17963
17930
|
createVNode(_sfc_main$z, {
|
|
17964
17931
|
name: accountInfo.value.nickname,
|
|
17965
17932
|
src: accountInfo.value.avatar
|
|
17966
17933
|
}, null, 8, ["name", "src"]),
|
|
17967
|
-
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
17934
|
+
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$9, _cache[4] || (_cache[4] = [
|
|
17968
17935
|
createElementVNode("div", null, null, -1)
|
|
17969
17936
|
]))) : createCommentVNode("", true)
|
|
17970
17937
|
])
|
|
@@ -18094,9 +18061,9 @@ const setlocalVistHistory = (data, localType) => {
|
|
|
18094
18061
|
};
|
|
18095
18062
|
const _hoisted_1$k = { class: "g-header-search-prefix" };
|
|
18096
18063
|
const _hoisted_2$e = { class: "g-header-search-suffix-splitline" };
|
|
18097
|
-
const _hoisted_3$
|
|
18098
|
-
const _hoisted_4$
|
|
18099
|
-
const _hoisted_5$
|
|
18064
|
+
const _hoisted_3$b = { class: "g-header-search-suffix-suffixIcon" };
|
|
18065
|
+
const _hoisted_4$8 = { class: "history-list" };
|
|
18066
|
+
const _hoisted_5$5 = {
|
|
18100
18067
|
key: 1,
|
|
18101
18068
|
class: "aireposearch flex-1"
|
|
18102
18069
|
};
|
|
@@ -18111,13 +18078,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18111
18078
|
var _a;
|
|
18112
18079
|
const layoutConfig2 = useLayoutConfig();
|
|
18113
18080
|
const { t: $t } = i18n.global;
|
|
18114
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
18115
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
18116
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
18117
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
18118
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
18119
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
18120
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
18081
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-Dw-71hIG.js"));
|
|
18082
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-DAun9jLj.js"));
|
|
18083
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-BW-VkkPg.js"));
|
|
18084
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-C9lveOS9.js"));
|
|
18085
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DF3j65Cp.js"));
|
|
18086
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-CpfgDZ3n.js"));
|
|
18087
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-D0QBWZAk.js"));
|
|
18121
18088
|
const props = __props;
|
|
18122
18089
|
const repoInfo = inject("repoInfo");
|
|
18123
18090
|
const orgInfo = inject("orgInfo");
|
|
@@ -18570,7 +18537,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18570
18537
|
}, {
|
|
18571
18538
|
menu: withCtx(() => [
|
|
18572
18539
|
createElementVNode("div", null, [
|
|
18573
|
-
withDirectives(createElementVNode("div", _hoisted_4$
|
|
18540
|
+
withDirectives(createElementVNode("div", _hoisted_4$8, [
|
|
18574
18541
|
createVNode(unref(SearchScopeList), {
|
|
18575
18542
|
searchScopeList: searchScopeList.value,
|
|
18576
18543
|
searchStr: searchStr.value,
|
|
@@ -18688,7 +18655,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18688
18655
|
withDirectives(createElementVNode("span", _hoisted_2$e, "|", 512), [
|
|
18689
18656
|
[vShow, searchStr.value]
|
|
18690
18657
|
]),
|
|
18691
|
-
createElementVNode("div", _hoisted_3$
|
|
18658
|
+
createElementVNode("div", _hoisted_3$b, [
|
|
18692
18659
|
createVNode(GIcon, {
|
|
18693
18660
|
name: "search",
|
|
18694
18661
|
class: "g-header-search-icon",
|
|
@@ -18706,7 +18673,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18706
18673
|
_: 1
|
|
18707
18674
|
}, 8, ["overlay-class", "visible"])
|
|
18708
18675
|
], 2)) : createCommentVNode("", true),
|
|
18709
|
-
_ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
18676
|
+
_ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
|
|
18710
18677
|
createVNode(unref(Input), {
|
|
18711
18678
|
placeholder: unref($t)("gitCodeLayout.home.searchPlaceholder"),
|
|
18712
18679
|
onKeydown: withKeys(searchResult, ["enter"]),
|
|
@@ -18727,7 +18694,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18727
18694
|
}
|
|
18728
18695
|
});
|
|
18729
18696
|
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
18730
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
18697
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-Cz9oJJ0w.js"));
|
|
18731
18698
|
function clearNotice() {
|
|
18732
18699
|
if (localStorage$2.getItem("validator_email")) {
|
|
18733
18700
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18759,8 +18726,8 @@ const _hoisted_1$j = {
|
|
|
18759
18726
|
class: "g-header-body"
|
|
18760
18727
|
};
|
|
18761
18728
|
const _hoisted_2$d = { class: "g-header-body-left h-full" };
|
|
18762
|
-
const _hoisted_3$
|
|
18763
|
-
const _hoisted_4$
|
|
18729
|
+
const _hoisted_3$a = { class: "g-header-body-right h-full" };
|
|
18730
|
+
const _hoisted_4$7 = { key: 2 };
|
|
18764
18731
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
18765
18732
|
...{
|
|
18766
18733
|
name: "header"
|
|
@@ -19178,12 +19145,12 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19178
19145
|
createElementVNode("div", _hoisted_2$d, [
|
|
19179
19146
|
renderSlot(_ctx.$slots, "info", {}, void 0, true)
|
|
19180
19147
|
]),
|
|
19181
|
-
createElementVNode("div", _hoisted_3$
|
|
19148
|
+
createElementVNode("div", _hoisted_3$a, [
|
|
19182
19149
|
renderSlot(_ctx.$slots, "menu", {}, void 0, true)
|
|
19183
19150
|
])
|
|
19184
19151
|
], true)
|
|
19185
19152
|
])) : createCommentVNode("", true),
|
|
19186
|
-
_ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
19153
|
+
_ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div", _hoisted_4$7, [
|
|
19187
19154
|
renderSlot(_ctx.$slots, "headerBottom", {}, void 0, true)
|
|
19188
19155
|
])) : createCommentVNode("", true)
|
|
19189
19156
|
], 2)
|
|
@@ -19213,7 +19180,7 @@ const createSetting = () => {
|
|
|
19213
19180
|
};
|
|
19214
19181
|
const _hoisted_1$i = { class: "tools-item-wrapper" };
|
|
19215
19182
|
const _hoisted_2$c = { class: "tools-item-wrapper-checkbox" };
|
|
19216
|
-
const _hoisted_3$
|
|
19183
|
+
const _hoisted_3$9 = ["onClick", "title"];
|
|
19217
19184
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
19218
19185
|
__name: "Lang",
|
|
19219
19186
|
setup(__props) {
|
|
@@ -19248,7 +19215,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
19248
19215
|
color: "var(--theme-icon-fill-weak)",
|
|
19249
19216
|
class: "checkbox-item-icon"
|
|
19250
19217
|
}, null, 8, ["name"])
|
|
19251
|
-
], 16, _hoisted_3$
|
|
19218
|
+
], 16, _hoisted_3$9);
|
|
19252
19219
|
}), 128))
|
|
19253
19220
|
])
|
|
19254
19221
|
]);
|
|
@@ -19257,7 +19224,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
19257
19224
|
});
|
|
19258
19225
|
const _hoisted_1$h = { class: "tools-item-wrapper" };
|
|
19259
19226
|
const _hoisted_2$b = { class: "tools-item-wrapper-checkbox" };
|
|
19260
|
-
const _hoisted_3$
|
|
19227
|
+
const _hoisted_3$8 = ["onClick", "title"];
|
|
19261
19228
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
19262
19229
|
__name: "Theme",
|
|
19263
19230
|
setup(__props) {
|
|
@@ -19301,7 +19268,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
19301
19268
|
color: "var(--theme-icon-fill-weak)",
|
|
19302
19269
|
class: "checkbox-item-icon"
|
|
19303
19270
|
}, null, 8, ["name"])
|
|
19304
|
-
], 16, _hoisted_3$
|
|
19271
|
+
], 16, _hoisted_3$8);
|
|
19305
19272
|
}), 128))
|
|
19306
19273
|
])
|
|
19307
19274
|
]);
|
|
@@ -19411,12 +19378,12 @@ const _hoisted_2$a = {
|
|
|
19411
19378
|
class: "devui-submenu-title layer_2",
|
|
19412
19379
|
style: { "padding": "0px 24px" }
|
|
19413
19380
|
};
|
|
19414
|
-
const _hoisted_3$
|
|
19415
|
-
const _hoisted_4$
|
|
19381
|
+
const _hoisted_3$7 = { class: "devui-submenu-title-content cursor-auto" };
|
|
19382
|
+
const _hoisted_4$6 = {
|
|
19416
19383
|
class: "devui-submenu-title layer_2",
|
|
19417
19384
|
style: { "padding": "0px 24px" }
|
|
19418
19385
|
};
|
|
19419
|
-
const _hoisted_5$
|
|
19386
|
+
const _hoisted_5$4 = { class: "devui-submenu-title-content cursor-auto" };
|
|
19420
19387
|
const _hoisted_6$3 = { key: 0 };
|
|
19421
19388
|
const _hoisted_7$3 = { class: "project-label" };
|
|
19422
19389
|
const _hoisted_8$3 = { class: "project-label flex-1 min-w-0 ellipsis" };
|
|
@@ -19615,7 +19582,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
19615
19582
|
_ctx.type === "project" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
19616
19583
|
createElementVNode("div", _hoisted_2$a, [
|
|
19617
19584
|
_cache[13] || (_cache[13] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
|
|
19618
|
-
createElementVNode("span", _hoisted_3$
|
|
19585
|
+
createElementVNode("span", _hoisted_3$7, [
|
|
19619
19586
|
createElementVNode("div", {
|
|
19620
19587
|
class: "fast-click-button",
|
|
19621
19588
|
onClick: _cache[0] || (_cache[0] = ($event) => fastToLink("project"))
|
|
@@ -19674,9 +19641,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
19674
19641
|
], 2)
|
|
19675
19642
|
], 64)) : createCommentVNode("", true),
|
|
19676
19643
|
_ctx.type === "team" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
19677
|
-
createElementVNode("div", _hoisted_4$
|
|
19644
|
+
createElementVNode("div", _hoisted_4$6, [
|
|
19678
19645
|
_cache[14] || (_cache[14] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
|
|
19679
|
-
createElementVNode("span", _hoisted_5$
|
|
19646
|
+
createElementVNode("span", _hoisted_5$4, [
|
|
19680
19647
|
createElementVNode("div", {
|
|
19681
19648
|
class: "fast-click-button",
|
|
19682
19649
|
onClick: _cache[7] || (_cache[7] = ($event) => fastToLink("team"))
|
|
@@ -19783,9 +19750,9 @@ const _hoisted_2$9 = {
|
|
|
19783
19750
|
class: "devui-submenu-title layer_2",
|
|
19784
19751
|
style: { "padding": "0px 24px" }
|
|
19785
19752
|
};
|
|
19786
|
-
const _hoisted_3$
|
|
19787
|
-
const _hoisted_4$
|
|
19788
|
-
const _hoisted_5$
|
|
19753
|
+
const _hoisted_3$6 = { class: "devui-submenu-title-content cursor-auto" };
|
|
19754
|
+
const _hoisted_4$5 = { class: "project-label" };
|
|
19755
|
+
const _hoisted_5$3 = { class: "project-label flex-1 min-w-0 ellipsis" };
|
|
19789
19756
|
const INIT_SHOW_COUNT = 4;
|
|
19790
19757
|
const LOAD_MORE_COUNT = 10;
|
|
19791
19758
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
@@ -19880,7 +19847,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
19880
19847
|
return openBlock(), createElementBlock("ul", _hoisted_1$f, [
|
|
19881
19848
|
createElementVNode("div", _hoisted_2$9, [
|
|
19882
19849
|
_cache[6] || (_cache[6] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
|
|
19883
|
-
createElementVNode("span", _hoisted_3$
|
|
19850
|
+
createElementVNode("span", _hoisted_3$6, [
|
|
19884
19851
|
createElementVNode("div", {
|
|
19885
19852
|
class: "fast-click-button",
|
|
19886
19853
|
onClick: _cache[0] || (_cache[0] = ($event) => fastToLink())
|
|
@@ -19935,8 +19902,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
19935
19902
|
]),
|
|
19936
19903
|
default: withCtx(() => [
|
|
19937
19904
|
createElementVNode("span", null, [
|
|
19938
|
-
createElementVNode("span", _hoisted_4$
|
|
19939
|
-
createElementVNode("span", _hoisted_5$
|
|
19905
|
+
createElementVNode("span", _hoisted_4$5, toDisplayString$1((item.namespace || "").slice(0, 10)) + toDisplayString$1((item.namespace || "").length > 10 ? "..." : ""), 1),
|
|
19906
|
+
createElementVNode("span", _hoisted_5$3, "/" + toDisplayString$1(item.label), 1)
|
|
19940
19907
|
])
|
|
19941
19908
|
]),
|
|
19942
19909
|
_: 2
|
|
@@ -19974,12 +19941,12 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
19974
19941
|
const ProjectMenuListV2 = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
19975
19942
|
const _hoisted_1$e = { class: "side-bar-label" };
|
|
19976
19943
|
const _hoisted_2$8 = { class: "side-bar-label" };
|
|
19977
|
-
const _hoisted_3$
|
|
19944
|
+
const _hoisted_3$5 = {
|
|
19978
19945
|
key: 0,
|
|
19979
19946
|
class: "line mt-[16px] mb-[6px]"
|
|
19980
19947
|
};
|
|
19981
|
-
const _hoisted_4$
|
|
19982
|
-
const _hoisted_5$
|
|
19948
|
+
const _hoisted_4$4 = ["src"];
|
|
19949
|
+
const _hoisted_5$2 = ["src"];
|
|
19983
19950
|
const _hoisted_6$2 = { class: "side-bar-label" };
|
|
19984
19951
|
const _hoisted_7$2 = {
|
|
19985
19952
|
key: 1,
|
|
@@ -20477,7 +20444,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
20477
20444
|
}, 1032, ["data-key", "data-openBlank", "data-route", "data-href", "data-host"]))
|
|
20478
20445
|
], 64);
|
|
20479
20446
|
}), 256)),
|
|
20480
|
-
!_ctx.asideSetShowLittle ? (openBlock(), createElementBlock("hr", _hoisted_3$
|
|
20447
|
+
!_ctx.asideSetShowLittle ? (openBlock(), createElementBlock("hr", _hoisted_3$5)) : createCommentVNode("", true),
|
|
20481
20448
|
(openBlock(true), createElementBlock(Fragment, null, renderList(externalRoutes.value, (item) => {
|
|
20482
20449
|
return openBlock(), createBlock(unref(MenuItem), {
|
|
20483
20450
|
key: `${item.key}-${item.logo}`,
|
|
@@ -20492,11 +20459,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
20492
20459
|
createElementVNode("img", {
|
|
20493
20460
|
src: item.logo,
|
|
20494
20461
|
class: "default-icon w-[16px] h-[16px]"
|
|
20495
|
-
}, null, 8, _hoisted_4$
|
|
20462
|
+
}, null, 8, _hoisted_4$4),
|
|
20496
20463
|
createElementVNode("img", {
|
|
20497
20464
|
src: item.logo_hover,
|
|
20498
20465
|
class: "active-icon w-[16px] h-[16px]"
|
|
20499
|
-
}, null, 8, _hoisted_5$
|
|
20466
|
+
}, null, 8, _hoisted_5$2)
|
|
20500
20467
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
20501
20468
|
createVNode(GIcon, {
|
|
20502
20469
|
name: item.icon,
|
|
@@ -21345,8 +21312,8 @@ const headerCustomPropsData = {
|
|
|
21345
21312
|
};
|
|
21346
21313
|
const _hoisted_1$c = { class: "home-wrapper" };
|
|
21347
21314
|
const _hoisted_2$7 = { class: "home-content" };
|
|
21348
|
-
const _hoisted_3$
|
|
21349
|
-
const _hoisted_4$
|
|
21315
|
+
const _hoisted_3$4 = { class: "home-left-side" };
|
|
21316
|
+
const _hoisted_4$3 = { class: "home-main" };
|
|
21350
21317
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
21351
21318
|
__name: "home",
|
|
21352
21319
|
setup(__props) {
|
|
@@ -21437,7 +21404,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
21437
21404
|
onFollowUser: followUser
|
|
21438
21405
|
}, null, 8, ["sceneValue", "independence", "isLogin", "request", "globalStore", "userInfo", "repoInfo", "orgInfo", "otherUserInfo", "headerCustomProps"]),
|
|
21439
21406
|
createElementVNode("div", _hoisted_2$7, [
|
|
21440
|
-
createElementVNode("div", _hoisted_3$
|
|
21407
|
+
createElementVNode("div", _hoisted_3$4, [
|
|
21441
21408
|
createVNode(GitCodeAside, {
|
|
21442
21409
|
sceneValue: sceneSelected.value,
|
|
21443
21410
|
userInfo: userInfo.value,
|
|
@@ -21457,7 +21424,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
21457
21424
|
_: 1
|
|
21458
21425
|
}, 8, ["sceneValue", "userInfo", "isLogin", "request", "globalStore", "independence", "collapseMode"])
|
|
21459
21426
|
]),
|
|
21460
|
-
createElementVNode("div", _hoisted_4$
|
|
21427
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
21461
21428
|
_cache[6] || (_cache[6] = createElementVNode("h1", null, "控制 Header 值传入", -1)),
|
|
21462
21429
|
_cache[7] || (_cache[7] = createElementVNode("h2", null, "场景值 SceneValue", -1)),
|
|
21463
21430
|
createVNode(unref(RadioGroup), {
|
|
@@ -21667,7 +21634,6 @@ const layoutConfig = useLayoutConfig();
|
|
|
21667
21634
|
const { t: t$2 } = i18n.global;
|
|
21668
21635
|
const GRAPH_CODE = 400007;
|
|
21669
21636
|
const REMOTE_LOGIN_CODE = 400015;
|
|
21670
|
-
const MAX_MOBILE_COUNT = 10;
|
|
21671
21637
|
const createLoginConfig = (request) => {
|
|
21672
21638
|
const API = headRequest(request);
|
|
21673
21639
|
return {
|
|
@@ -21675,15 +21641,14 @@ const createLoginConfig = (request) => {
|
|
|
21675
21641
|
async phone(param, loginParams) {
|
|
21676
21642
|
const { validFunc, successFunc = () => {
|
|
21677
21643
|
}, failFunc = () => {
|
|
21678
|
-
}
|
|
21644
|
+
} } = param;
|
|
21679
21645
|
const check = validFunc ? await validFunc() : true;
|
|
21680
21646
|
if (!check) return;
|
|
21681
21647
|
const result2 = await API.loginByMobile(loginParams);
|
|
21682
21648
|
if (!result2.error) {
|
|
21683
21649
|
const resultData = result2.data.data;
|
|
21684
|
-
saveLoginMobile(loginParams.mobile, country);
|
|
21685
21650
|
successFunc(resultData, loginParams.mobile);
|
|
21686
|
-
phoneAndPasswordLogin(resultData, API
|
|
21651
|
+
phoneAndPasswordLogin(resultData, API);
|
|
21687
21652
|
} else {
|
|
21688
21653
|
failFunc(result2.error.error_message);
|
|
21689
21654
|
}
|
|
@@ -21710,7 +21675,7 @@ const createLoginConfig = (request) => {
|
|
|
21710
21675
|
const { user_status_enum } = resultData;
|
|
21711
21676
|
await successFunc(resultData);
|
|
21712
21677
|
if (user_status_enum !== "MFA_CHECK") {
|
|
21713
|
-
phoneAndPasswordLogin(resultData, API
|
|
21678
|
+
phoneAndPasswordLogin(resultData, API);
|
|
21714
21679
|
}
|
|
21715
21680
|
} else {
|
|
21716
21681
|
failFunc(result2.error.error_message);
|
|
@@ -21734,7 +21699,7 @@ const createLoginConfig = (request) => {
|
|
|
21734
21699
|
scene_id
|
|
21735
21700
|
});
|
|
21736
21701
|
if (!result2.error) {
|
|
21737
|
-
phoneAndPasswordLogin(result2.data.data, API
|
|
21702
|
+
phoneAndPasswordLogin(result2.data.data, API);
|
|
21738
21703
|
return { success: true, data: result2.data.data };
|
|
21739
21704
|
}
|
|
21740
21705
|
return { success: false, error: result2.error };
|
|
@@ -21861,12 +21826,11 @@ function bindResultResolve(params, API) {
|
|
|
21861
21826
|
function sendMessageToParent(message) {
|
|
21862
21827
|
window.parent && window.parent.postMessage(message, "*");
|
|
21863
21828
|
}
|
|
21864
|
-
function phoneAndPasswordLogin(userInfo, API
|
|
21829
|
+
function phoneAndPasswordLogin(userInfo, API) {
|
|
21865
21830
|
successResolve({
|
|
21866
21831
|
path: new URLSearchParams(window.location.search).get("returnUrl") || "",
|
|
21867
21832
|
userInfo,
|
|
21868
|
-
type: AuthTypeEnum.PHONE_AND_PASSWORD
|
|
21869
|
-
loginMethod
|
|
21833
|
+
type: AuthTypeEnum.PHONE_AND_PASSWORD
|
|
21870
21834
|
}, API);
|
|
21871
21835
|
const params = {
|
|
21872
21836
|
access_token: userInfo.access_token,
|
|
@@ -21901,13 +21865,12 @@ async function checkUserRepositoryIssue(API) {
|
|
|
21901
21865
|
}
|
|
21902
21866
|
async function successResolve(params, API) {
|
|
21903
21867
|
var _a;
|
|
21904
|
-
const { path, userInfo, type
|
|
21868
|
+
const { path, userInfo, type } = params;
|
|
21905
21869
|
if (userInfo) {
|
|
21906
21870
|
emitEvent("updateUserInfo", userInfo);
|
|
21907
21871
|
const { username, email } = userInfo;
|
|
21908
21872
|
setEmailValid(username, email);
|
|
21909
21873
|
}
|
|
21910
|
-
saveLastLoginType(loginMethod);
|
|
21911
21874
|
if (type === AuthTypeEnum.PHONE_AND_PASSWORD) {
|
|
21912
21875
|
const { unMount, isMounted } = usePopup();
|
|
21913
21876
|
if (isMounted()) {
|
|
@@ -22013,21 +21976,6 @@ const HandleParentWindowGetLoginInfo = (request) => {
|
|
|
22013
21976
|
}
|
|
22014
21977
|
};
|
|
22015
21978
|
};
|
|
22016
|
-
function saveLoginMobile(mobile, country) {
|
|
22017
|
-
const loginMobileList = JSON.parse(localStorage$2.getItem("loginMobileList") || "[]");
|
|
22018
|
-
const index2 = loginMobileList.findIndex((item) => item.mobile === mobile);
|
|
22019
|
-
if (index2 !== -1) {
|
|
22020
|
-
loginMobileList.splice(index2, 1);
|
|
22021
|
-
}
|
|
22022
|
-
loginMobileList.unshift({ mobile, country });
|
|
22023
|
-
if (loginMobileList.length > MAX_MOBILE_COUNT) {
|
|
22024
|
-
loginMobileList.pop();
|
|
22025
|
-
}
|
|
22026
|
-
localStorage$2.setItem("loginMobileList", JSON.stringify(loginMobileList));
|
|
22027
|
-
}
|
|
22028
|
-
function saveLastLoginType(loginMethod) {
|
|
22029
|
-
localStorage$2.setItem("lastLoginMethod", loginMethod);
|
|
22030
|
-
}
|
|
22031
21979
|
const logoBack = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eic/左备份%3c/title%3e%3cg%20id='PC端'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='02-登录注册-登录、注册'%20transform='translate(-153,%20-1855)'%20fill='%238A8E99'%20fill-rule='nonzero'%3e%3cg%20id='编组-8'%20transform='translate(125,%201830)'%3e%3cg%20id='ic/左备份'%20transform='translate(31.1393,%2028.9697)'%3e%3cpolygon%20id='路径'%20points='8.03029121%203.55271368e-15%209.09102914%201.0605824%202.8725%207.2795%2017.8606602%207.2802912%2017.8606602%208.7802912%202.8695%208.7795%209.09102914%2014.9999222%208.03036898%2016.0606602%200%208.03146884'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
22032
21980
|
const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
22033
21981
|
__proto__: null,
|
|
@@ -22214,10 +22162,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
22214
22162
|
}
|
|
22215
22163
|
});
|
|
22216
22164
|
const _hoisted_1$9 = { class: "flex flex-1 g-input-select" };
|
|
22217
|
-
const _hoisted_2$6 = { class: "
|
|
22218
|
-
const _hoisted_3$4 = { class: "flex justify-between gap-[8px] flex-wrap" };
|
|
22219
|
-
const _hoisted_4$4 = { class: "flex items-center justify-between" };
|
|
22220
|
-
const _hoisted_5$3 = { class: "flex justify-between gap-[8px] flex-wrap" };
|
|
22165
|
+
const _hoisted_2$6 = { class: "flex justify-between gap-[8px] flex-wrap" };
|
|
22221
22166
|
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
22222
22167
|
__name: "inputSelect",
|
|
22223
22168
|
props: {
|
|
@@ -22225,8 +22170,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22225
22170
|
"onUpdate:modelValue": { type: Function },
|
|
22226
22171
|
placeholder: {},
|
|
22227
22172
|
prop: {},
|
|
22228
|
-
country: {}
|
|
22229
|
-
editableSelect: { type: Boolean }
|
|
22173
|
+
country: {}
|
|
22230
22174
|
},
|
|
22231
22175
|
emits: ["change", "selectChange", "update:modelValue"],
|
|
22232
22176
|
setup(__props, { emit: __emit }) {
|
|
@@ -22235,6 +22179,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22235
22179
|
const emits = __emit;
|
|
22236
22180
|
const cache_countdown = JSON.parse(localStorage$2.getItem("cache_countdown"));
|
|
22237
22181
|
const { vModels } = useModel(props, emits);
|
|
22182
|
+
console.log(cache_countdown, "cache_countdown");
|
|
22238
22183
|
const country = ref((cache_countdown == null ? void 0 : cache_countdown.country) || DEFAULT_COUNTRY);
|
|
22239
22184
|
const options = ref([]);
|
|
22240
22185
|
const handleChange = () => {
|
|
@@ -22252,50 +22197,25 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22252
22197
|
};
|
|
22253
22198
|
});
|
|
22254
22199
|
};
|
|
22255
|
-
|
|
22256
|
-
|
|
22257
|
-
|
|
22258
|
-
var _a, _b, _c, _d, _e;
|
|
22259
|
-
mobileList.value = JSON.parse(localStorage$2.getItem("loginMobileList")) || [];
|
|
22260
|
-
loginMobileList.value = (_a = mobileList.value) == null ? void 0 : _a.map((item) => {
|
|
22261
|
-
return {
|
|
22262
|
-
label: item.mobile,
|
|
22263
|
-
value: item.mobile
|
|
22264
|
-
};
|
|
22265
|
-
});
|
|
22266
|
-
country.value = ((_c = (_b = mobileList.value) == null ? void 0 : _b[0]) == null ? void 0 : _c.country) || country.value;
|
|
22267
|
-
emits("update:modelValue", (_e = (_d = mobileList.value) == null ? void 0 : _d[0]) == null ? void 0 : _e.mobile);
|
|
22268
|
-
};
|
|
22269
|
-
const deleteMobile = (mobile) => {
|
|
22270
|
-
loginMobileList.value = loginMobileList.value.filter((item) => item.value !== mobile);
|
|
22271
|
-
mobileList.value = mobileList.value.filter((item) => item.mobile !== mobile);
|
|
22272
|
-
localStorage$2.setItem("loginMobileList", JSON.stringify(mobileList.value));
|
|
22273
|
-
};
|
|
22274
|
-
const handleSelectChange = (value) => {
|
|
22275
|
-
var _a;
|
|
22276
|
-
country.value = ((_a = mobileList.value.find((item) => item.mobile === value)) == null ? void 0 : _a.country) || country.value;
|
|
22277
|
-
emits("change");
|
|
22278
|
-
};
|
|
22200
|
+
onMounted(() => {
|
|
22201
|
+
getAllCountries();
|
|
22202
|
+
});
|
|
22279
22203
|
const handleCountryChange = () => {
|
|
22280
22204
|
emits("selectChange", country.value);
|
|
22281
22205
|
emits("change");
|
|
22282
22206
|
};
|
|
22283
|
-
const handleInputSelectChange = (value) => {
|
|
22284
|
-
emits("update:modelValue", value);
|
|
22285
|
-
emits("change");
|
|
22286
|
-
};
|
|
22287
|
-
onMounted(() => {
|
|
22288
|
-
getAllCountries();
|
|
22289
|
-
if (props.editableSelect) {
|
|
22290
|
-
getHistoryMobile();
|
|
22291
|
-
}
|
|
22292
|
-
});
|
|
22293
22207
|
return (_ctx, _cache) => {
|
|
22294
22208
|
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
22295
|
-
|
|
22296
|
-
|
|
22209
|
+
createVNode(unref(Input), mergeProps({
|
|
22210
|
+
modelValue: unref(vModels),
|
|
22211
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(vModels) ? vModels.value = $event : null)
|
|
22212
|
+
}, _ctx.prop, {
|
|
22213
|
+
placeholder: _ctx.placeholder,
|
|
22214
|
+
onChange: handleChange
|
|
22215
|
+
}), {
|
|
22216
|
+
prepend: withCtx(() => [
|
|
22297
22217
|
createVNode(unref(Select), {
|
|
22298
|
-
class: "
|
|
22218
|
+
class: "input-select",
|
|
22299
22219
|
modelValue: country.value,
|
|
22300
22220
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => country.value = $event),
|
|
22301
22221
|
menuClass: "country-select",
|
|
@@ -22309,7 +22229,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22309
22229
|
value: item.value
|
|
22310
22230
|
}, {
|
|
22311
22231
|
default: withCtx(() => [
|
|
22312
|
-
createElementVNode("div",
|
|
22232
|
+
createElementVNode("div", _hoisted_2$6, [
|
|
22313
22233
|
createElementVNode("span", null, toDisplayString$1(item.name), 1),
|
|
22314
22234
|
createElementVNode("span", null, toDisplayString$1(item.label), 1)
|
|
22315
22235
|
])
|
|
@@ -22319,70 +22239,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22319
22239
|
}), 128))
|
|
22320
22240
|
]),
|
|
22321
22241
|
_: 1
|
|
22322
|
-
}, 8, ["modelValue"])
|
|
22323
|
-
|
|
22324
|
-
|
|
22325
|
-
|
|
22326
|
-
}, props, {
|
|
22327
|
-
size: "lg",
|
|
22328
|
-
width: 292,
|
|
22329
|
-
options: loginMobileList.value,
|
|
22330
|
-
placeholder: props.placeholder,
|
|
22331
|
-
onInputChange: handleInputSelectChange,
|
|
22332
|
-
onChange: handleSelectChange,
|
|
22333
|
-
class: "login-phone-select"
|
|
22334
|
-
}), {
|
|
22335
|
-
item: withCtx((slotProps) => [
|
|
22336
|
-
createElementVNode("div", _hoisted_4$4, [
|
|
22337
|
-
createElementVNode("div", null, toDisplayString$1(slotProps.option.label), 1),
|
|
22338
|
-
createVNode(GIcon, {
|
|
22339
|
-
name: "gt-line-delete",
|
|
22340
|
-
class: "w-[16px] h-[16px] cursor-pointer",
|
|
22341
|
-
onClick: withModifiers(($event) => deleteMobile(slotProps.option.value), ["stop"])
|
|
22342
|
-
}, null, 8, ["onClick"])
|
|
22343
|
-
])
|
|
22344
|
-
]),
|
|
22345
|
-
_: 1
|
|
22346
|
-
}, 16, ["modelValue", "options", "placeholder"])
|
|
22347
|
-
], 64)) : (openBlock(), createBlock(unref(Input), mergeProps({
|
|
22348
|
-
key: 1,
|
|
22349
|
-
modelValue: unref(vModels),
|
|
22350
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(vModels) ? vModels.value = $event : null)
|
|
22351
|
-
}, _ctx.prop, {
|
|
22352
|
-
placeholder: _ctx.placeholder,
|
|
22353
|
-
onChange: handleChange
|
|
22354
|
-
}), {
|
|
22355
|
-
prepend: withCtx(() => [
|
|
22356
|
-
createVNode(unref(Select), {
|
|
22357
|
-
class: "input-select",
|
|
22358
|
-
modelValue: country.value,
|
|
22359
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => country.value = $event),
|
|
22360
|
-
menuClass: "country-select",
|
|
22361
|
-
onValueChange: handleCountryChange
|
|
22362
|
-
}, {
|
|
22363
|
-
default: withCtx(() => [
|
|
22364
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(options.value, (item, index2) => {
|
|
22365
|
-
return openBlock(), createBlock(unref(Option), {
|
|
22366
|
-
name: item.label,
|
|
22367
|
-
key: index2,
|
|
22368
|
-
value: item.value
|
|
22369
|
-
}, {
|
|
22370
|
-
default: withCtx(() => [
|
|
22371
|
-
createElementVNode("div", _hoisted_5$3, [
|
|
22372
|
-
createElementVNode("span", null, toDisplayString$1(item.name), 1),
|
|
22373
|
-
createElementVNode("span", null, toDisplayString$1(item.label), 1)
|
|
22374
|
-
])
|
|
22375
|
-
]),
|
|
22376
|
-
_: 2
|
|
22377
|
-
}, 1032, ["name", "value"]);
|
|
22378
|
-
}), 128))
|
|
22379
|
-
]),
|
|
22380
|
-
_: 1
|
|
22381
|
-
}, 8, ["modelValue"])
|
|
22382
|
-
]),
|
|
22383
|
-
_: 1
|
|
22384
|
-
}, 16, ["modelValue", "placeholder"]))
|
|
22385
|
-
])
|
|
22242
|
+
}, 8, ["modelValue"])
|
|
22243
|
+
]),
|
|
22244
|
+
_: 1
|
|
22245
|
+
}, 16, ["modelValue", "placeholder"])
|
|
22386
22246
|
]);
|
|
22387
22247
|
};
|
|
22388
22248
|
}
|
|
@@ -22404,8 +22264,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
22404
22264
|
errors: { default: {
|
|
22405
22265
|
msgError: false
|
|
22406
22266
|
} },
|
|
22407
|
-
isForget: { type: Boolean, default: false }
|
|
22408
|
-
formErrors: { default: {} }
|
|
22267
|
+
isForget: { type: Boolean, default: false }
|
|
22409
22268
|
},
|
|
22410
22269
|
emits: ["change", "countDown", "complete"],
|
|
22411
22270
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -22646,15 +22505,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
22646
22505
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onClick", "placeholder", "hasMobile", "text", "error", "autocomplete"])) : formItem.type === "inputSelect" ? (openBlock(), createBlock(_sfc_main$b, mergeProps({
|
|
22647
22506
|
key: 2,
|
|
22648
22507
|
country: Data.country,
|
|
22649
|
-
class: _ctx.formErrors["mobile"] ? "input-select-error" : "",
|
|
22650
22508
|
modelValue: Data[formItem.key],
|
|
22651
22509
|
"onUpdate:modelValue": ($event) => Data[formItem.key] = $event,
|
|
22652
22510
|
onSelectChange: _cache[0] || (_cache[0] = (evt) => handleSelectChange("country", evt)),
|
|
22653
22511
|
onChange: ($event) => handleChange(formItem.key),
|
|
22654
22512
|
placeholder: unref($t)("gitCodeLayout.LoginModal.rule.pleaseFill", { label: formItem.label })
|
|
22655
|
-
}, { ref_for: true }, formItem.props, {
|
|
22656
|
-
editableSelect: formItem.editableSelect
|
|
22657
|
-
}), null, 16, ["country", "class", "modelValue", "onUpdate:modelValue", "onChange", "placeholder", "editableSelect"])) : (openBlock(), createBlock(resolveDynamicComponent(formItem.render), mergeProps({
|
|
22513
|
+
}, { ref_for: true }, formItem.props), null, 16, ["country", "modelValue", "onUpdate:modelValue", "onChange", "placeholder"])) : (openBlock(), createBlock(resolveDynamicComponent(formItem.render), mergeProps({
|
|
22658
22514
|
key: formItem.key,
|
|
22659
22515
|
modelValue: Data[formItem.key],
|
|
22660
22516
|
"onUpdate:modelValue": ($event) => Data[formItem.key] = $event,
|
|
@@ -22675,40 +22531,32 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
22675
22531
|
};
|
|
22676
22532
|
}
|
|
22677
22533
|
});
|
|
22678
|
-
const
|
|
22679
|
-
const
|
|
22680
|
-
const
|
|
22681
|
-
const _hoisted_3$3 = { class: "icons" };
|
|
22682
|
-
const _hoisted_4$3 = ["src", "alt", "onClick"];
|
|
22683
|
-
const _hoisted_5$2 = ["src"];
|
|
22534
|
+
const _hoisted_1$8 = { class: "tips text-[var(--devui-disabled-text)]" };
|
|
22535
|
+
const _hoisted_2$5 = { class: "icons" };
|
|
22536
|
+
const _hoisted_3$3 = ["src", "alt", "onClick"];
|
|
22684
22537
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
22685
22538
|
__name: "auth",
|
|
22686
22539
|
props: {
|
|
22687
|
-
logos: {}
|
|
22688
|
-
recentLoginType: {}
|
|
22540
|
+
logos: {}
|
|
22689
22541
|
},
|
|
22690
22542
|
emits: ["auth"],
|
|
22691
22543
|
setup(__props, { emit: __emit }) {
|
|
22692
22544
|
const request = inject("request");
|
|
22693
22545
|
const API = headRequest(request);
|
|
22694
22546
|
const { t: $t } = i18n.global;
|
|
22695
|
-
const props = __props;
|
|
22696
22547
|
const emits = __emit;
|
|
22697
22548
|
const handleClick = (icon) => {
|
|
22698
22549
|
useReport(LOGIN_MODAL_TAB_SWITCH, { source: `oauth_${icon.alt}` }, API.report);
|
|
22699
22550
|
emits("auth", icon.alt);
|
|
22700
22551
|
};
|
|
22701
|
-
const checkIsRecentLogin = (loginMethodList) => {
|
|
22702
|
-
return loginMethodList.includes(props.recentLoginType);
|
|
22703
|
-
};
|
|
22704
22552
|
return (_ctx, _cache) => {
|
|
22705
|
-
return openBlock(), createElementBlock(
|
|
22706
|
-
createElementVNode("div",
|
|
22707
|
-
createElementVNode("div",
|
|
22553
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
22554
|
+
createElementVNode("div", _hoisted_1$8, " —— " + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.otherLogin")) + " —— ", 1),
|
|
22555
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
22708
22556
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.logos, (icon) => {
|
|
22709
22557
|
return openBlock(), createElementBlock("div", {
|
|
22710
22558
|
key: icon.alt,
|
|
22711
|
-
class: "rounded-[50%] w-[40px] h-[40px] border-[1px] icon-wrap border-solid cursor-pointer otherInfo-icon"
|
|
22559
|
+
class: "rounded-[50%] w-[40px] h-[40px] border-[1px] icon-wrap border-solid cursor-pointer mx-[12px] otherInfo-icon"
|
|
22712
22560
|
}, [
|
|
22713
22561
|
createVNode(unref(Tooltip), {
|
|
22714
22562
|
position: "top",
|
|
@@ -22721,19 +22569,14 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
22721
22569
|
src: icon.src,
|
|
22722
22570
|
alt: icon.alt,
|
|
22723
22571
|
onClick: withModifiers(($event) => handleClick(icon), ["stop"])
|
|
22724
|
-
}, null, 8,
|
|
22572
|
+
}, null, 8, _hoisted_3$3)
|
|
22725
22573
|
]),
|
|
22726
22574
|
_: 2
|
|
22727
|
-
}, 1032, ["content", "disabled"])
|
|
22728
|
-
checkIsRecentLogin(icon.loginMethodList) ? (openBlock(), createElementBlock("img", {
|
|
22729
|
-
key: 0,
|
|
22730
|
-
src: unref(recentLoginImg),
|
|
22731
|
-
class: "w-[38px] h-[20px] recent-login-img"
|
|
22732
|
-
}, null, 8, _hoisted_5$2)) : createCommentVNode("", true)
|
|
22575
|
+
}, 1032, ["content", "disabled"])
|
|
22733
22576
|
]);
|
|
22734
22577
|
}), 128))
|
|
22735
22578
|
])
|
|
22736
|
-
]);
|
|
22579
|
+
], 64);
|
|
22737
22580
|
};
|
|
22738
22581
|
}
|
|
22739
22582
|
});
|
|
@@ -22823,16 +22666,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
22823
22666
|
const _hoisted_1$5 = { class: "text-center text-[18px] leading-[26px] font-bold mb-[24px] flex items-center justify-center relative" };
|
|
22824
22667
|
const _hoisted_2$3 = { class: "back-img absolute mr-[24px] left-0" };
|
|
22825
22668
|
const _hoisted_3$2 = ["src"];
|
|
22826
|
-
const _hoisted_4$2 = {
|
|
22827
|
-
key: 0,
|
|
22828
|
-
class: "tracking-[.5px]"
|
|
22829
|
-
};
|
|
22669
|
+
const _hoisted_4$2 = { class: "tracking-[.5px]" };
|
|
22830
22670
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
22831
22671
|
__name: "title",
|
|
22832
22672
|
props: {
|
|
22833
22673
|
title: {},
|
|
22834
22674
|
showBack: { type: Boolean },
|
|
22835
|
-
showTitle: { type: Boolean },
|
|
22836
22675
|
icon: {}
|
|
22837
22676
|
},
|
|
22838
22677
|
emits: ["back"],
|
|
@@ -22851,7 +22690,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22851
22690
|
onClick: withModifiers(handleClick, ["stop"])
|
|
22852
22691
|
}, null, 8, _hoisted_3$2)) : createCommentVNode("", true)
|
|
22853
22692
|
]),
|
|
22854
|
-
|
|
22693
|
+
createElementVNode("span", _hoisted_4$2, toDisplayString$1(_ctx.title), 1)
|
|
22855
22694
|
]);
|
|
22856
22695
|
};
|
|
22857
22696
|
}
|
|
@@ -25518,7 +25357,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
25518
25357
|
}
|
|
25519
25358
|
});
|
|
25520
25359
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
25521
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
25360
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-DhDCBXmX.js"));
|
|
25522
25361
|
const useSlidCaptcha = () => {
|
|
25523
25362
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
25524
25363
|
const open = (config) => {
|
|
@@ -25641,15 +25480,21 @@ function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
|
|
|
25641
25480
|
stopPoll
|
|
25642
25481
|
};
|
|
25643
25482
|
}
|
|
25644
|
-
const _hoisted_1$1 = { class: "flex items-center gap-1
|
|
25483
|
+
const _hoisted_1$1 = { class: "flex items-center gap-1" };
|
|
25645
25484
|
const _hoisted_2 = { class: "devui-icon__container devui-icon--operable devui-icon--no-slots self-start min-w-[34px] mt-[-6px]" };
|
|
25646
25485
|
const _hoisted_3 = {
|
|
25486
|
+
key: 0,
|
|
25487
|
+
class: "text-[14px] leading-[20px] text-[var(--devui-placeholder)] font-normal"
|
|
25488
|
+
};
|
|
25489
|
+
const _hoisted_4 = {
|
|
25490
|
+
key: 0,
|
|
25491
|
+
class: "flex items-center justify-center mb-[24px] mt-[-2px]"
|
|
25492
|
+
};
|
|
25493
|
+
const _hoisted_5 = {
|
|
25647
25494
|
key: 1,
|
|
25648
|
-
class: "
|
|
25495
|
+
class: "forget-tips text-[var(--devui-link)] my-[16px] min-h-[32px] leading-[32px] px-[12px] tracking-[.5px]"
|
|
25649
25496
|
};
|
|
25650
|
-
const
|
|
25651
|
-
const _hoisted_5 = { class: "text-[var(--theme-text)] mt-[6px]" };
|
|
25652
|
-
const _hoisted_6 = { class: "qrcode-container flex flex-col items-center justify-center" };
|
|
25497
|
+
const _hoisted_6 = { class: "qrcode-container flex flex-col items-center justify-center my-4" };
|
|
25653
25498
|
const _hoisted_7 = ["src"];
|
|
25654
25499
|
const _hoisted_8 = {
|
|
25655
25500
|
key: 0,
|
|
@@ -25657,57 +25502,37 @@ const _hoisted_8 = {
|
|
|
25657
25502
|
};
|
|
25658
25503
|
const _hoisted_9 = {
|
|
25659
25504
|
key: 0,
|
|
25660
|
-
class: "flex flex-col gap-2 items-center justify-center
|
|
25505
|
+
class: "flex flex-col gap-2 items-center justify-center"
|
|
25661
25506
|
};
|
|
25662
|
-
const _hoisted_10 = {
|
|
25663
|
-
const _hoisted_11 = { class: "text-[#252B3A]" };
|
|
25664
|
-
const _hoisted_12 = {
|
|
25507
|
+
const _hoisted_10 = {
|
|
25665
25508
|
key: 1,
|
|
25666
25509
|
class: "flex flex-col gap-3 items-center justify-center"
|
|
25667
25510
|
};
|
|
25668
|
-
const
|
|
25669
|
-
const
|
|
25670
|
-
const
|
|
25671
|
-
key: 1,
|
|
25672
|
-
class: "text-center text-[16px] mt-[40px] text-[var(--devui-text-weak)] font-bold"
|
|
25673
|
-
};
|
|
25674
|
-
const _hoisted_16 = {
|
|
25511
|
+
const _hoisted_11 = { class: "text-[var(--color-success)]" };
|
|
25512
|
+
const _hoisted_12 = { class: "text-center" };
|
|
25513
|
+
const _hoisted_13 = {
|
|
25675
25514
|
key: 1,
|
|
25676
|
-
class: "
|
|
25515
|
+
class: "text-center mt-2 text-[var(--devui-text-weak)] font-bold"
|
|
25677
25516
|
};
|
|
25678
|
-
const
|
|
25679
|
-
const _hoisted_18 = { class: "mt-[16px]" };
|
|
25680
|
-
const _hoisted_19 = {
|
|
25517
|
+
const _hoisted_14 = {
|
|
25681
25518
|
key: 0,
|
|
25682
|
-
class: "
|
|
25519
|
+
class: "login-modal-info h-[20px]"
|
|
25683
25520
|
};
|
|
25684
|
-
const
|
|
25685
|
-
const
|
|
25686
|
-
const _hoisted_22 = { class: "text-[12px] leading-[32px] text-center" };
|
|
25687
|
-
const _hoisted_23 = {
|
|
25521
|
+
const _hoisted_15 = { class: "login-modal-info-left" };
|
|
25522
|
+
const _hoisted_16 = {
|
|
25688
25523
|
key: 1,
|
|
25689
|
-
class: "
|
|
25524
|
+
class: "mt-[18px]"
|
|
25690
25525
|
};
|
|
25691
|
-
const
|
|
25692
|
-
const
|
|
25693
|
-
const
|
|
25694
|
-
const _hoisted_27 = { class: "text-[12px] leading-[32px]" };
|
|
25695
|
-
const _hoisted_28 = { class: "text-[12px] leading-[20px] mt-[16px] text-[var(--devui-placeholder)] font-normal" };
|
|
25696
|
-
const _hoisted_29 = {
|
|
25526
|
+
const _hoisted_17 = { class: "flex items-center justify-between pr-[16px]" };
|
|
25527
|
+
const _hoisted_18 = { class: "mr-[16px]" };
|
|
25528
|
+
const _hoisted_19 = {
|
|
25697
25529
|
key: 0,
|
|
25698
|
-
class: "login-modal-
|
|
25530
|
+
class: "login-modal-footer"
|
|
25699
25531
|
};
|
|
25700
|
-
const
|
|
25701
|
-
const
|
|
25702
|
-
const
|
|
25703
|
-
const
|
|
25704
|
-
const _hoisted_34 = { class: "harmony-icon" };
|
|
25705
|
-
const _hoisted_35 = ["src"];
|
|
25706
|
-
const _hoisted_36 = { class: "ml-[8px] text-[12px]" };
|
|
25707
|
-
const _hoisted_37 = { class: "login-modal-footer flex items-center justify-center" };
|
|
25708
|
-
const _hoisted_38 = { key: 3 };
|
|
25709
|
-
const _hoisted_39 = { class: "line-clamp-2" };
|
|
25710
|
-
const _hoisted_40 = { class: "absolute-btn" };
|
|
25532
|
+
const _hoisted_20 = { class: "flex justify-center" };
|
|
25533
|
+
const _hoisted_21 = { key: 1 };
|
|
25534
|
+
const _hoisted_22 = { class: "line-clamp-2" };
|
|
25535
|
+
const _hoisted_23 = { class: "absolute-btn" };
|
|
25711
25536
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
25712
25537
|
...{
|
|
25713
25538
|
name: "GLoginModal"
|
|
@@ -25750,10 +25575,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25750
25575
|
const IconB = TransAssetsUrl(IconSource, "logo-back");
|
|
25751
25576
|
const IconW = TransAssetsUrl(IconSource, "logo-wechat");
|
|
25752
25577
|
const IconHb = TransAssetsUrl(IconSource, "logo-hb");
|
|
25753
|
-
const logoType = {
|
|
25754
|
-
black: "https://cdn-static.gitcode.com/static/images/gitcode-logo-white.png",
|
|
25755
|
-
white: "https://cdn-static.gitcode.com/static/images/gitcode-logo-dark.png"
|
|
25756
|
-
};
|
|
25757
25578
|
const formErrors = reactive({});
|
|
25758
25579
|
const extraErrors = reactive({
|
|
25759
25580
|
agreement: "",
|
|
@@ -25777,32 +25598,27 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25777
25598
|
{
|
|
25778
25599
|
src: IconC,
|
|
25779
25600
|
alt: "csdn",
|
|
25780
|
-
describe: "csdn" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
|
|
25781
|
-
loginMethodList: ["csdn"]
|
|
25601
|
+
describe: "csdn" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
|
|
25782
25602
|
},
|
|
25783
25603
|
{
|
|
25784
25604
|
src: IconHb,
|
|
25785
25605
|
alt: "hbuilder",
|
|
25786
|
-
describe: "Hbuilder" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
|
|
25787
|
-
loginMethodList: ["hbuilder", "hbuilder_plugins"]
|
|
25606
|
+
describe: "Hbuilder" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
|
|
25788
25607
|
},
|
|
25789
25608
|
{
|
|
25790
25609
|
src: currentTheme.value === ThemeType.WHITE ? IconG : IconGW,
|
|
25791
25610
|
alt: "github",
|
|
25792
|
-
describe: "github" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
|
|
25793
|
-
loginMethodList: ["github"]
|
|
25611
|
+
describe: "github" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
|
|
25794
25612
|
},
|
|
25795
25613
|
{
|
|
25796
25614
|
src: IconH,
|
|
25797
25615
|
alt: "gitee",
|
|
25798
|
-
describe: "gitee" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
|
|
25799
|
-
loginMethodList: ["gitee"]
|
|
25616
|
+
describe: "gitee" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
|
|
25800
25617
|
},
|
|
25801
25618
|
{
|
|
25802
25619
|
src: IconW,
|
|
25803
25620
|
alt: "wechat_open",
|
|
25804
|
-
describe: $t("gitCodeLayout.LoginModal.action.wechatScanCodeLogin")
|
|
25805
|
-
loginMethodList: ["wechat_open", "wechat_mp"]
|
|
25621
|
+
describe: $t("gitCodeLayout.LoginModal.action.wechatScanCodeLogin")
|
|
25806
25622
|
}
|
|
25807
25623
|
]);
|
|
25808
25624
|
const emits = __emit;
|
|
@@ -25841,7 +25657,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25841
25657
|
{
|
|
25842
25658
|
type: "input",
|
|
25843
25659
|
key: "username",
|
|
25844
|
-
label: $t("gitCodeLayout.
|
|
25660
|
+
label: $t("gitCodeLayout.LoginModal.subtitle.name") + "/" + $t("gitCodeLayout.common.email"),
|
|
25845
25661
|
required: true
|
|
25846
25662
|
},
|
|
25847
25663
|
{
|
|
@@ -26024,7 +25840,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26024
25840
|
const status = ref(false);
|
|
26025
25841
|
const hwStatus = ref(false);
|
|
26026
25842
|
const FormRef = shallowRef(null);
|
|
26027
|
-
const tabPanel = ref("
|
|
25843
|
+
const tabPanel = ref("miniProgram");
|
|
26028
25844
|
const formType = ref(props.defaultType);
|
|
26029
25845
|
const showProtoCheck = ref(false);
|
|
26030
25846
|
const agreeAndLogin = () => {
|
|
@@ -26044,14 +25860,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26044
25860
|
dict: RegisterForm.map((item) => {
|
|
26045
25861
|
return {
|
|
26046
25862
|
...item,
|
|
26047
|
-
defaultValue: item.key === "mobile" ? cacheForm.mobile : item.key === "verificationcode" ? cacheForm.verificationcode : ""
|
|
26048
|
-
editableSelect: false
|
|
25863
|
+
defaultValue: item.key === "mobile" ? cacheForm.mobile : item.key === "verificationcode" ? cacheForm.verificationcode : ""
|
|
26049
25864
|
};
|
|
26050
25865
|
}),
|
|
26051
25866
|
showLabel: true,
|
|
26052
25867
|
layout: "horizontal",
|
|
26053
|
-
|
|
26054
|
-
showBack:
|
|
25868
|
+
title: `🎉${$t("gitCodeLayout.LoginModal.title.register")}`,
|
|
25869
|
+
showBack: true
|
|
26055
25870
|
};
|
|
26056
25871
|
}
|
|
26057
25872
|
if (formType.value === "forget") {
|
|
@@ -26068,13 +25883,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26068
25883
|
dict: VerifyForm.map((item) => {
|
|
26069
25884
|
return {
|
|
26070
25885
|
...item,
|
|
26071
|
-
defaultValue: item.key === "mobile" ? cacheForm.mobile : ""
|
|
26072
|
-
editableSelect: true
|
|
25886
|
+
defaultValue: item.key === "mobile" ? cacheForm.mobile : ""
|
|
26073
25887
|
};
|
|
26074
25888
|
}),
|
|
26075
25889
|
showLabel: false,
|
|
26076
25890
|
layout: "vertical",
|
|
26077
|
-
|
|
25891
|
+
title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
|
|
26078
25892
|
showBack: false
|
|
26079
25893
|
};
|
|
26080
25894
|
} else if (tabPanel.value === "password") {
|
|
@@ -26082,7 +25896,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26082
25896
|
dict: PasswordForm,
|
|
26083
25897
|
showLabel: false,
|
|
26084
25898
|
layout: "vertical",
|
|
26085
|
-
|
|
25899
|
+
title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
|
|
26086
25900
|
showBack: false
|
|
26087
25901
|
};
|
|
26088
25902
|
} else {
|
|
@@ -26090,7 +25904,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26090
25904
|
dict: MiniProgramForm,
|
|
26091
25905
|
showLabel: false,
|
|
26092
25906
|
layout: "vertical",
|
|
26093
|
-
|
|
25907
|
+
title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
|
|
26094
25908
|
showBack: false
|
|
26095
25909
|
};
|
|
26096
25910
|
}
|
|
@@ -26142,7 +25956,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26142
25956
|
};
|
|
26143
25957
|
const mfaCheck = ref(false);
|
|
26144
25958
|
const handleMFALogin = (data) => {
|
|
26145
|
-
phoneAndPasswordLogin(data, API
|
|
25959
|
+
phoneAndPasswordLogin(data, API);
|
|
26146
25960
|
};
|
|
26147
25961
|
const slidCaptcha = useSlidCaptcha();
|
|
26148
25962
|
const LoginCheck = async () => {
|
|
@@ -26174,7 +25988,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26174
25988
|
}
|
|
26175
25989
|
};
|
|
26176
25990
|
const registerAction = async (res, mobile) => {
|
|
26177
|
-
var _a;
|
|
26178
25991
|
const data = {
|
|
26179
25992
|
username: res.username,
|
|
26180
25993
|
password: res.password,
|
|
@@ -26190,9 +26003,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26190
26003
|
cacheForm.user_id = user_id;
|
|
26191
26004
|
cacheForm.mask = mask;
|
|
26192
26005
|
cacheForm.mobile = res.mobile;
|
|
26193
|
-
|
|
26194
|
-
saveLoginMobile(mobile, country);
|
|
26195
|
-
phoneAndPasswordLogin(result2.data.data, API, LoginMethodEnum.PHONE);
|
|
26006
|
+
phoneAndPasswordLogin(result2.data.data, API);
|
|
26196
26007
|
} else {
|
|
26197
26008
|
extraErrors.requestInfo = result2.error.error_message;
|
|
26198
26009
|
}
|
|
@@ -26239,7 +26050,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26239
26050
|
mobile,
|
|
26240
26051
|
code: res.code
|
|
26241
26052
|
};
|
|
26242
|
-
await loginFunction({ validFunc: LoginCheck, successFunc: loginSuccess, failFunc: loginFail, loginDeviceType: "pc"
|
|
26053
|
+
await loginFunction({ validFunc: LoginCheck, successFunc: loginSuccess, failFunc: loginFail, loginDeviceType: "pc" }, params, graphValidate, handleRemoteLogin);
|
|
26243
26054
|
}
|
|
26244
26055
|
setTimeout(() => {
|
|
26245
26056
|
loading.value = false;
|
|
@@ -26512,8 +26323,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26512
26323
|
const pcAuthLogin = (type) => {
|
|
26513
26324
|
authType.value = type;
|
|
26514
26325
|
saveOauthType(type);
|
|
26515
|
-
|
|
26516
|
-
|
|
26326
|
+
if (tabPanel.value === "miniProgram") {
|
|
26327
|
+
stopPoll();
|
|
26328
|
+
miniProgramStatus.value = "TIMEOUT";
|
|
26329
|
+
}
|
|
26517
26330
|
if (localStorage$2.getItem("access_token")) {
|
|
26518
26331
|
emits("close", true);
|
|
26519
26332
|
} else {
|
|
@@ -26590,9 +26403,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26590
26403
|
emits("directClose");
|
|
26591
26404
|
return;
|
|
26592
26405
|
}
|
|
26593
|
-
useReport(REGISTER_CLICK_TO_LOGIN, {}, API.report);
|
|
26594
26406
|
formType.value = "login";
|
|
26595
|
-
checkMiniProgramStatus();
|
|
26596
26407
|
};
|
|
26597
26408
|
const miniProgramStatus = ref("WAITING");
|
|
26598
26409
|
const miniProgramLoading = ref(false);
|
|
@@ -26608,7 +26419,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26608
26419
|
};
|
|
26609
26420
|
const fetchMiniProgramStatus = async () => {
|
|
26610
26421
|
var _a;
|
|
26611
|
-
if (
|
|
26422
|
+
if (tabPanel.value !== "miniProgram") {
|
|
26612
26423
|
stopPoll();
|
|
26613
26424
|
return;
|
|
26614
26425
|
}
|
|
@@ -26651,8 +26462,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26651
26462
|
tabPanel.value = val;
|
|
26652
26463
|
authType.value = null;
|
|
26653
26464
|
useReport(LOGIN_MODAL_TAB_SWITCH, { source: `tab_${val}` }, API.report);
|
|
26654
|
-
|
|
26655
|
-
|
|
26465
|
+
if (val !== "miniProgram") {
|
|
26466
|
+
stopPoll();
|
|
26467
|
+
handleMiniProgramReset();
|
|
26468
|
+
return;
|
|
26469
|
+
}
|
|
26656
26470
|
if (!miniProgramInfo.value.scene_id) {
|
|
26657
26471
|
getMiniProgramQrCode();
|
|
26658
26472
|
return;
|
|
@@ -26668,24 +26482,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26668
26482
|
shouldMiniProgramPoll.value = true;
|
|
26669
26483
|
startPoll();
|
|
26670
26484
|
};
|
|
26671
|
-
const recentLoginType = ref(null);
|
|
26672
|
-
const getRecentLogin = async () => {
|
|
26673
|
-
recentLoginType.value = localStorage$2.getItem("lastLoginMethod") || null;
|
|
26674
|
-
};
|
|
26675
|
-
const todayTechHistory = ref(null);
|
|
26676
|
-
const getTodayTechHistory = async () => {
|
|
26677
|
-
var _a, _b, _c;
|
|
26678
|
-
const res = await API.getTodayTechHistory();
|
|
26679
|
-
todayTechHistory.value = ((_c = (_b = (_a = res == null ? void 0 : res.data) == null ? void 0 : _a.data) == null ? void 0 : _b.data) == null ? void 0 : _c[0]) || {};
|
|
26680
|
-
};
|
|
26681
26485
|
const resetPwdDirectly = ref(false);
|
|
26682
26486
|
const resetPwdWhiteList = ["change_password"];
|
|
26683
26487
|
onMounted(() => {
|
|
26684
|
-
if (formType.value === "login") {
|
|
26685
|
-
|
|
26488
|
+
if (tabPanel.value === "miniProgram" && formType.value === "login") {
|
|
26489
|
+
handleTabPanelChange(tabPanel.value);
|
|
26686
26490
|
}
|
|
26687
|
-
getRecentLogin();
|
|
26688
|
-
getTodayTechHistory();
|
|
26689
26491
|
if (resetPwdWhiteList.includes(props.resetPwdSource) && formType.value === "forget") {
|
|
26690
26492
|
resetPwdDirectly.value = true;
|
|
26691
26493
|
}
|
|
@@ -26694,7 +26496,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26694
26496
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
26695
26497
|
createVNode(unref(Modal), {
|
|
26696
26498
|
modelValue: unref(vModels),
|
|
26697
|
-
"onUpdate:modelValue": _cache[
|
|
26499
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => isRef(vModels) ? vModels.value = $event : null),
|
|
26698
26500
|
"show-close": false,
|
|
26699
26501
|
"lock-scroll": _ctx.lockScroll,
|
|
26700
26502
|
draggable: _ctx.draggable,
|
|
@@ -26704,288 +26506,157 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26704
26506
|
class: normalizeClass([
|
|
26705
26507
|
"login-modal",
|
|
26706
26508
|
formType.value === "login" ? "login-modal-l" : "login-modal-r",
|
|
26707
|
-
formType.value === "register" ? "login-modal-register" : "",
|
|
26708
26509
|
mfaCheck.value ? "login-modal-mfa" : ""
|
|
26709
26510
|
]),
|
|
26710
26511
|
onClose: onModalClose
|
|
26711
26512
|
}, createSlots({
|
|
26712
|
-
default: withCtx(() =>
|
|
26713
|
-
|
|
26714
|
-
|
|
26715
|
-
|
|
26716
|
-
|
|
26717
|
-
|
|
26718
|
-
|
|
26719
|
-
|
|
26720
|
-
|
|
26721
|
-
|
|
26722
|
-
|
|
26723
|
-
|
|
26724
|
-
|
|
26725
|
-
|
|
26726
|
-
|
|
26727
|
-
|
|
26728
|
-
|
|
26513
|
+
default: withCtx(() => [
|
|
26514
|
+
mfaCheck.value ? (openBlock(), createBlock(MFA, {
|
|
26515
|
+
key: 0,
|
|
26516
|
+
API: unref(API),
|
|
26517
|
+
onBack: handleBack,
|
|
26518
|
+
onSuccess: handleMFALogin,
|
|
26519
|
+
mask: cacheForm.mask
|
|
26520
|
+
}, null, 8, ["API", "mask"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
26521
|
+
formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
26522
|
+
createElementVNode("div", {
|
|
26523
|
+
class: normalizeClass([
|
|
26524
|
+
"login-modal-tab mr-[18px]",
|
|
26525
|
+
tabPanel.value === "miniProgram" ? "login-modal-tab-active" : "login-modal-tab-inactive"
|
|
26526
|
+
]),
|
|
26527
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleTabPanelChange("miniProgram"), ["stop"]))
|
|
26528
|
+
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.title")), 3),
|
|
26529
|
+
createElementVNode("div", {
|
|
26530
|
+
class: normalizeClass([
|
|
26531
|
+
"login-modal-tab mr-[18px] ml-[18px]",
|
|
26532
|
+
tabPanel.value === "verifyCode" ? "login-modal-tab-active" : "login-modal-tab-inactive"
|
|
26533
|
+
]),
|
|
26534
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleTabPanelChange("verifyCode"), ["stop"]))
|
|
26535
|
+
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.sms")), 3),
|
|
26536
|
+
createElementVNode("div", {
|
|
26537
|
+
class: normalizeClass([
|
|
26538
|
+
"login-modal-tab ml-[18px]",
|
|
26539
|
+
tabPanel.value === "password" ? "login-modal-tab-active" : "login-modal-tab-inactive"
|
|
26540
|
+
]),
|
|
26541
|
+
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => handleTabPanelChange("password"), ["stop"]))
|
|
26542
|
+
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.password")), 3)
|
|
26543
|
+
])) : createCommentVNode("", true),
|
|
26544
|
+
formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.bindMobileWithAccount")) + "/" + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.resetYourPassword")), 1)) : createCommentVNode("", true),
|
|
26545
|
+
formType.value === "login" && tabPanel.value === "miniProgram" ? (openBlock(), createBlock(DataPanel, {
|
|
26546
|
+
key: 2,
|
|
26547
|
+
loading: miniProgramLoading.value,
|
|
26548
|
+
empty: false,
|
|
26549
|
+
card: false,
|
|
26550
|
+
class: "mini-program-qrcode",
|
|
26551
|
+
border: false,
|
|
26552
|
+
animation: true
|
|
26553
|
+
}, {
|
|
26554
|
+
default: withCtx(() => [
|
|
26555
|
+
createElementVNode("div", _hoisted_6, [
|
|
26729
26556
|
createElementVNode("img", {
|
|
26730
|
-
src:
|
|
26731
|
-
alt: "
|
|
26732
|
-
class: "w-[
|
|
26733
|
-
}, null, 8,
|
|
26734
|
-
|
|
26735
|
-
|
|
26736
|
-
|
|
26737
|
-
|
|
26738
|
-
|
|
26739
|
-
|
|
26740
|
-
|
|
26741
|
-
|
|
26742
|
-
|
|
26743
|
-
|
|
26744
|
-
|
|
26745
|
-
|
|
26746
|
-
|
|
26557
|
+
src: miniProgramInfo.value.qrcode,
|
|
26558
|
+
alt: "小程序二维码",
|
|
26559
|
+
class: "w-[158px] h-[158px]"
|
|
26560
|
+
}, null, 8, _hoisted_7),
|
|
26561
|
+
miniProgramStatus.value !== "WAITING" ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
26562
|
+
miniProgramStatus.value === "TIMEOUT" ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
26563
|
+
createVNode(GIcon, {
|
|
26564
|
+
name: "gt-line-Refresh",
|
|
26565
|
+
size: "18"
|
|
26566
|
+
}),
|
|
26567
|
+
createElementVNode("div", null, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip01")), 1),
|
|
26568
|
+
createElementVNode("button", { onClick: getMiniProgramQrCode }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip02")), 1)
|
|
26569
|
+
])) : createCommentVNode("", true),
|
|
26570
|
+
["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
26571
|
+
createElementVNode("div", _hoisted_11, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip03")), 1),
|
|
26572
|
+
createElementVNode("div", _hoisted_12, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip04")), 1)
|
|
26573
|
+
])) : createCommentVNode("", true)
|
|
26574
|
+
])) : createCommentVNode("", true),
|
|
26575
|
+
!["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p", _hoisted_13, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip05")), 1)) : (openBlock(), createElementBlock("button", {
|
|
26576
|
+
key: 2,
|
|
26577
|
+
onClick: getMiniProgramQrCode,
|
|
26578
|
+
class: "mt-2"
|
|
26579
|
+
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip06")), 1))
|
|
26580
|
+
])
|
|
26581
|
+
]),
|
|
26582
|
+
_: 1
|
|
26583
|
+
}, 8, ["loading"])) : (openBlock(), createBlock(unref(_sfc_main$a), {
|
|
26584
|
+
key: formType.value,
|
|
26585
|
+
DataList: FormConfig.value.dict,
|
|
26586
|
+
"show-label": FormConfig.value.showLabel,
|
|
26587
|
+
ref_key: "FormRef",
|
|
26588
|
+
ref: FormRef,
|
|
26589
|
+
onCountDown: handleCountDown,
|
|
26590
|
+
onChange: handleFormChange,
|
|
26591
|
+
onComplete: handleFormInput,
|
|
26592
|
+
layout: FormConfig.value.layout,
|
|
26593
|
+
size: "lg",
|
|
26594
|
+
"label-size": "md",
|
|
26595
|
+
"message-type": "none",
|
|
26596
|
+
"hide-required-mark": "",
|
|
26597
|
+
onKeypress: withKeys(handleConfirm, ["enter"]),
|
|
26598
|
+
class: normalizeClass(formType.value === "register" ? "mt-[20px] login-form-register-cell" : "login-form-common-cell"),
|
|
26599
|
+
errors: { msgError: msgError.value },
|
|
26600
|
+
"is-forget": formType.value === "forget"
|
|
26601
|
+
}, {
|
|
26602
|
+
submit: withCtx(() => [
|
|
26603
|
+
formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_14, [
|
|
26604
|
+
createElementVNode("div", _hoisted_15, [
|
|
26605
|
+
createTextVNode(toDisplayString$1(errorMsg.value) + " ", 1),
|
|
26606
|
+
errForRemoteLogin.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
26607
|
+
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.unusualLogin")), 1),
|
|
26608
|
+
createElementVNode("span", {
|
|
26609
|
+
onClick: _cache[3] || (_cache[3] = ($event) => handleTabPanelChange("verifyCode")),
|
|
26610
|
+
class: "login-modal-info-left__link"
|
|
26611
|
+
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.smsLogin")), 1)
|
|
26612
|
+
], 64)) : createCommentVNode("", true)
|
|
26613
|
+
]),
|
|
26614
|
+
withDirectives(createElementVNode("div", {
|
|
26615
|
+
class: "login-modal-info-right",
|
|
26616
|
+
onClick: _cache[4] || (_cache[4] = withModifiers(($event) => formType.value = "forget", ["stop"]))
|
|
26617
|
+
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.forgotPassword")), 513), [
|
|
26618
|
+
[vShow, tabPanel.value === "password" && formType.value === "login"]
|
|
26619
|
+
])
|
|
26620
|
+
])) : createCommentVNode("", true),
|
|
26621
|
+
formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
26622
|
+
createVNode(unref(Button), {
|
|
26623
|
+
color: "primary",
|
|
26624
|
+
variant: "solid",
|
|
26625
|
+
size: "lg",
|
|
26626
|
+
onClick: handleConfirm,
|
|
26627
|
+
loading: loading.value,
|
|
26628
|
+
disabled: disabled.value,
|
|
26629
|
+
class: "login-modal-button"
|
|
26747
26630
|
}, {
|
|
26748
26631
|
default: withCtx(() => [
|
|
26749
|
-
|
|
26750
|
-
createElementVNode("img", {
|
|
26751
|
-
src: miniProgramInfo.value.qrcode,
|
|
26752
|
-
alt: "小程序二维码",
|
|
26753
|
-
class: "w-[180px] h-[180px]"
|
|
26754
|
-
}, null, 8, _hoisted_7),
|
|
26755
|
-
miniProgramStatus.value !== "WAITING" ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
26756
|
-
miniProgramStatus.value === "TIMEOUT" ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
26757
|
-
createVNode(GIcon, {
|
|
26758
|
-
name: "gt-line-update",
|
|
26759
|
-
size: "18",
|
|
26760
|
-
color: "#3B3E55"
|
|
26761
|
-
}),
|
|
26762
|
-
createElementVNode("div", _hoisted_10, [
|
|
26763
|
-
createElementVNode("div", _hoisted_11, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip01")), 1),
|
|
26764
|
-
createElementVNode("button", {
|
|
26765
|
-
class: "text-[var(--theme-link)]",
|
|
26766
|
-
onClick: getMiniProgramQrCode
|
|
26767
|
-
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip02")), 1)
|
|
26768
|
-
])
|
|
26769
|
-
])) : createCommentVNode("", true),
|
|
26770
|
-
["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("div", _hoisted_12, [
|
|
26771
|
-
createElementVNode("div", _hoisted_13, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip03")), 1),
|
|
26772
|
-
createElementVNode("div", _hoisted_14, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip04")), 1)
|
|
26773
|
-
])) : createCommentVNode("", true)
|
|
26774
|
-
])) : createCommentVNode("", true),
|
|
26775
|
-
!["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p", _hoisted_15, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip05")), 1)) : (openBlock(), createElementBlock("button", {
|
|
26776
|
-
key: 2,
|
|
26777
|
-
onClick: getMiniProgramQrCode,
|
|
26778
|
-
class: "mt-2"
|
|
26779
|
-
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip06")), 1))
|
|
26780
|
-
])
|
|
26632
|
+
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.login")), 1)
|
|
26781
26633
|
]),
|
|
26782
26634
|
_: 1
|
|
26783
|
-
}, 8, ["loading"
|
|
26784
|
-
|
|
26785
|
-
|
|
26786
|
-
|
|
26787
|
-
|
|
26788
|
-
|
|
26789
|
-
createElementVNode("div", {
|
|
26790
|
-
class: normalizeClass(formType.value === "forget" ? "w-[512px]" : "w-[370px]")
|
|
26791
|
-
}, [
|
|
26792
|
-
formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
26793
|
-
createElementVNode("div", _hoisted_20, [
|
|
26794
|
-
createElementVNode("div", {
|
|
26795
|
-
class: normalizeClass([
|
|
26796
|
-
"login-modal-tab",
|
|
26797
|
-
tabPanel.value === "verifyCode" ? "login-modal-tab-active" : "login-modal-tab-inactive"
|
|
26798
|
-
]),
|
|
26799
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleTabPanelChange("verifyCode"), ["stop"]))
|
|
26635
|
+
}, 8, ["loading", "disabled"]),
|
|
26636
|
+
createElementVNode("div", _hoisted_17, [
|
|
26637
|
+
_ctx.openHarmonyGuide ? (openBlock(), createElementBlock("div", {
|
|
26638
|
+
key: 0,
|
|
26639
|
+
class: "text-[var(--theme-link)] text-center mt-[12px] cursor-pointer leading-[32px] openharmony-btn",
|
|
26640
|
+
onClick: withModifiers(handleRegisterHarmony, ["stop"])
|
|
26800
26641
|
}, [
|
|
26801
|
-
|
|
26802
|
-
|
|
26803
|
-
|
|
26804
|
-
|
|
26805
|
-
|
|
26806
|
-
|
|
26807
|
-
],
|
|
26642
|
+
_cache[16] || (_cache[16] = createElementVNode("img", {
|
|
26643
|
+
src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
|
|
26644
|
+
alt: "",
|
|
26645
|
+
class: "mr-[16px] inline-block"
|
|
26646
|
+
}, null, -1)),
|
|
26647
|
+
createElementVNode("span", _hoisted_18, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.oh")), 1)
|
|
26648
|
+
])) : createCommentVNode("", true),
|
|
26808
26649
|
createElementVNode("div", {
|
|
26809
|
-
class:
|
|
26810
|
-
|
|
26811
|
-
tabPanel.value === "password" ? "login-modal-tab-active" : "login-modal-tab-inactive"
|
|
26812
|
-
]),
|
|
26813
|
-
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleTabPanelChange("password"), ["stop"]))
|
|
26814
|
-
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.password")), 3)
|
|
26815
|
-
]),
|
|
26816
|
-
createElementVNode("div", _hoisted_22, [
|
|
26817
|
-
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.noAccount")) + " ", 1),
|
|
26818
|
-
createElementVNode("span", {
|
|
26819
|
-
onClick: clickRegister,
|
|
26820
|
-
class: "text-[var(--theme-link)] cursor-pointer hover:underline"
|
|
26650
|
+
class: "text-[var(--theme-link)] text-center mt-[12px] cursor-pointer leading-[32px] hover:underline",
|
|
26651
|
+
onClick: withModifiers(clickRegister, ["stop"])
|
|
26821
26652
|
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.registerAgain")), 1)
|
|
26822
26653
|
])
|
|
26823
|
-
])) : createCommentVNode("", true)
|
|
26824
|
-
|
|
26825
|
-
|
|
26826
|
-
|
|
26827
|
-
|
|
26828
|
-
|
|
26829
|
-
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.haveAccount")) + " ", 1),
|
|
26830
|
-
createElementVNode("span", {
|
|
26831
|
-
onClick: handleTitleBackClick,
|
|
26832
|
-
class: "text-[var(--theme-link)] cursor-pointer hover:underline"
|
|
26833
|
-
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.backLogin")), 1)
|
|
26834
|
-
])
|
|
26835
|
-
]),
|
|
26836
|
-
createElementVNode("div", _hoisted_28, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.registerDesc")), 1)
|
|
26837
|
-
])) : createCommentVNode("", true),
|
|
26838
|
-
(openBlock(), createBlock(unref(_sfc_main$a), {
|
|
26839
|
-
key: formType.value,
|
|
26840
|
-
DataList: FormConfig.value.dict,
|
|
26841
|
-
"show-label": FormConfig.value.showLabel,
|
|
26842
|
-
ref_key: "FormRef",
|
|
26843
|
-
ref: FormRef,
|
|
26844
|
-
onCountDown: handleCountDown,
|
|
26845
|
-
onChange: handleFormChange,
|
|
26846
|
-
onComplete: handleFormInput,
|
|
26847
|
-
layout: FormConfig.value.layout,
|
|
26848
|
-
size: "lg",
|
|
26849
|
-
"label-size": "md",
|
|
26850
|
-
"message-type": "none",
|
|
26851
|
-
"hide-required-mark": "",
|
|
26852
|
-
onKeypress: withKeys(handleConfirm, ["enter"]),
|
|
26853
|
-
class: normalizeClass(formType.value === "register" ? "mt-[20px] login-form-register-cell" : "login-form-common-cell"),
|
|
26854
|
-
errors: { msgError: msgError.value },
|
|
26855
|
-
formErrors,
|
|
26856
|
-
"is-forget": formType.value === "forget"
|
|
26857
|
-
}, {
|
|
26858
|
-
submit: withCtx(() => {
|
|
26859
|
-
var _a2;
|
|
26860
|
-
return [
|
|
26861
|
-
formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_29, [
|
|
26862
|
-
createElementVNode("div", _hoisted_30, [
|
|
26863
|
-
createTextVNode(toDisplayString$1(errorMsg.value) + " ", 1),
|
|
26864
|
-
errForRemoteLogin.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
26865
|
-
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.unusualLogin")), 1),
|
|
26866
|
-
createElementVNode("span", {
|
|
26867
|
-
onClick: _cache[2] || (_cache[2] = ($event) => handleTabPanelChange("verifyCode")),
|
|
26868
|
-
class: "login-modal-info-left__link"
|
|
26869
|
-
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.smsLogin")), 1)
|
|
26870
|
-
], 64)) : createCommentVNode("", true)
|
|
26871
|
-
]),
|
|
26872
|
-
withDirectives(createElementVNode("div", {
|
|
26873
|
-
class: "login-modal-info-right",
|
|
26874
|
-
onClick: _cache[3] || (_cache[3] = withModifiers(($event) => formType.value = "forget", ["stop"]))
|
|
26875
|
-
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.forgotPassword")), 513), [
|
|
26876
|
-
[vShow, tabPanel.value === "password" && formType.value === "login"]
|
|
26877
|
-
])
|
|
26878
|
-
])) : createCommentVNode("", true),
|
|
26879
|
-
formType.value === "login" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
26880
|
-
createElementVNode("div", _hoisted_31, [
|
|
26881
|
-
createVNode(unref(Button), {
|
|
26882
|
-
color: "primary",
|
|
26883
|
-
variant: "solid",
|
|
26884
|
-
size: "lg",
|
|
26885
|
-
onClick: handleConfirm,
|
|
26886
|
-
loading: loading.value,
|
|
26887
|
-
disabled: disabled.value,
|
|
26888
|
-
class: "login-modal-button"
|
|
26889
|
-
}, {
|
|
26890
|
-
default: withCtx(() => [
|
|
26891
|
-
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.login")), 1)
|
|
26892
|
-
]),
|
|
26893
|
-
_: 1
|
|
26894
|
-
}, 8, ["loading", "disabled"]),
|
|
26895
|
-
createElementVNode("div", {
|
|
26896
|
-
class: normalizeClass([["login-modal-footer-args", AgreementWarn.value ? "shaking-box" : ""], "mt-[16px]"])
|
|
26897
|
-
}, [
|
|
26898
|
-
createElementVNode("div", _hoisted_32, [
|
|
26899
|
-
createVNode(_sfc_main$8, {
|
|
26900
|
-
modelValue: status.value,
|
|
26901
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => status.value = $event),
|
|
26902
|
-
onDeclares: _cache[5] || (_cache[5] = (typ) => handleDisplay(typ))
|
|
26903
|
-
}, null, 8, ["modelValue"])
|
|
26904
|
-
])
|
|
26905
|
-
], 2),
|
|
26906
|
-
createElementVNode("div", _hoisted_33, [
|
|
26907
|
-
_ctx.openHarmonyGuide ? (openBlock(), createElementBlock("div", {
|
|
26908
|
-
key: 0,
|
|
26909
|
-
class: "text-[var(--theme-link)] flex items-center mt-[12px] cursor-pointer",
|
|
26910
|
-
onClick: withModifiers(handleRegisterHarmony, ["stop"])
|
|
26911
|
-
}, [
|
|
26912
|
-
createElementVNode("div", _hoisted_34, [
|
|
26913
|
-
_cache[15] || (_cache[15] = createElementVNode("img", {
|
|
26914
|
-
src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
|
|
26915
|
-
alt: "",
|
|
26916
|
-
class: "w-[32px] h-[32px] inline-block harmony-icon-img"
|
|
26917
|
-
}, null, -1)),
|
|
26918
|
-
recentLoginType.value === unref(LoginMethodEnum).HARMONY ? (openBlock(), createElementBlock("img", {
|
|
26919
|
-
key: 0,
|
|
26920
|
-
src: unref(recentLoginImg),
|
|
26921
|
-
class: "w-[38px] h-[20px] last-login-img"
|
|
26922
|
-
}, null, 8, _hoisted_35)) : createCommentVNode("", true)
|
|
26923
|
-
]),
|
|
26924
|
-
createElementVNode("span", _hoisted_36, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.oh")), 1)
|
|
26925
|
-
])) : createCommentVNode("", true)
|
|
26926
|
-
])
|
|
26927
|
-
]),
|
|
26928
|
-
createElementVNode("div", _hoisted_37, [
|
|
26929
|
-
createVNode(GAuth, {
|
|
26930
|
-
logos,
|
|
26931
|
-
onAuth: pcAuthLogin,
|
|
26932
|
-
recentLoginType: recentLoginType.value,
|
|
26933
|
-
class: "flex-1"
|
|
26934
|
-
}, null, 8, ["logos", "recentLoginType"])
|
|
26935
|
-
])
|
|
26936
|
-
], 64)) : createCommentVNode("", true),
|
|
26937
|
-
formType.value === "register" ? (openBlock(), createElementBlock("div", {
|
|
26938
|
-
key: 2,
|
|
26939
|
-
class: normalizeClass(["register-agree", [AgreementWarn.value ? "shaking-box" : ""]])
|
|
26940
|
-
}, [
|
|
26941
|
-
createVNode(_sfc_main$7, {
|
|
26942
|
-
modelValue: hwStatus.value,
|
|
26943
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => hwStatus.value = $event),
|
|
26944
|
-
onDeclares: _cache[7] || (_cache[7] = (typ) => handleDisplay(typ, "huawei")),
|
|
26945
|
-
"agreement-text": `《${unref($t)("gitCodeLayout.LoginModal.link.huaweiCloudAgreement")}》`,
|
|
26946
|
-
"privacy-text": `《${unref($t)("gitCodeLayout.LoginModal.link.agreementPrivacy")}》`,
|
|
26947
|
-
onClick: _cache[8] || (_cache[8] = ($event) => agreementReport("signup_select", `hw${hwStatus.value ? 1 : 0}`))
|
|
26948
|
-
}, null, 8, ["modelValue", "agreement-text", "privacy-text"]),
|
|
26949
|
-
createVNode(_sfc_main$7, {
|
|
26950
|
-
modelValue: status.value,
|
|
26951
|
-
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => status.value = $event),
|
|
26952
|
-
onDeclares: _cache[10] || (_cache[10] = (typ) => handleDisplay(typ)),
|
|
26953
|
-
"agreement-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.agreement")}》`,
|
|
26954
|
-
"privacy-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")}》`,
|
|
26955
|
-
onClick: _cache[11] || (_cache[11] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
|
|
26956
|
-
}, null, 8, ["modelValue", "agreement-text", "privacy-text"])
|
|
26957
|
-
], 2)) : createCommentVNode("", true),
|
|
26958
|
-
formType.value === "register" || formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_38, [
|
|
26959
|
-
createElementVNode("div", {
|
|
26960
|
-
class: normalizeClass(["text-[var(--devui-danger)] text-[14px] break-all box-border leading-[20px] h-[40px]", formType.value === "register" && ((_a2 = formErrors == null ? void 0 : formErrors.username) == null ? void 0 : _a2.length) > 42 ? "cursor-pointer" : ""])
|
|
26961
|
-
}, [
|
|
26962
|
-
createElementVNode("span", _hoisted_39, toDisplayString$1(errorMsg.value), 1)
|
|
26963
|
-
], 2),
|
|
26964
|
-
createElementVNode("div", _hoisted_40, [
|
|
26965
|
-
createVNode(unref(Button), {
|
|
26966
|
-
color: "primary",
|
|
26967
|
-
variant: "solid",
|
|
26968
|
-
size: "lg",
|
|
26969
|
-
onClick: handleConfirm,
|
|
26970
|
-
disabled: disabled.value,
|
|
26971
|
-
loading: loading.value,
|
|
26972
|
-
class: "w-[100%] mb-[18px]"
|
|
26973
|
-
}, {
|
|
26974
|
-
default: withCtx(() => [
|
|
26975
|
-
createTextVNode(toDisplayString$1(formType.value === "forget" ? unref($t)("gitCodeLayout.userSetting.account.changePassword") : unref($t)("gitCodeLayout.LoginModal.action.verify")), 1)
|
|
26976
|
-
]),
|
|
26977
|
-
_: 1
|
|
26978
|
-
}, 8, ["disabled", "loading"])
|
|
26979
|
-
])
|
|
26980
|
-
])) : createCommentVNode("", true)
|
|
26981
|
-
];
|
|
26982
|
-
}),
|
|
26983
|
-
_: 1
|
|
26984
|
-
}, 8, ["DataList", "show-label", "layout", "class", "errors", "formErrors", "is-forget"]))
|
|
26985
|
-
], 2)
|
|
26986
|
-
]))
|
|
26987
|
-
];
|
|
26988
|
-
}),
|
|
26654
|
+
])) : createCommentVNode("", true)
|
|
26655
|
+
]),
|
|
26656
|
+
_: 1
|
|
26657
|
+
}, 8, ["DataList", "show-label", "layout", "class", "errors", "is-forget"]))
|
|
26658
|
+
], 64))
|
|
26659
|
+
]),
|
|
26989
26660
|
_: 2
|
|
26990
26661
|
}, [
|
|
26991
26662
|
!mfaCheck.value ? {
|
|
@@ -26995,11 +26666,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26995
26666
|
createVNode(GTitle, {
|
|
26996
26667
|
icon: unref(IconB),
|
|
26997
26668
|
title: FormConfig.value.title,
|
|
26998
|
-
"show-title": FormConfig.value.showTitle,
|
|
26999
26669
|
onBack: handleTitleBackClick,
|
|
27000
26670
|
"show-back": FormConfig.value.showBack,
|
|
27001
26671
|
class: "login-modal-title flex-1"
|
|
27002
|
-
}, null, 8, ["icon", "title", "show-
|
|
26672
|
+
}, null, 8, ["icon", "title", "show-back"]),
|
|
27003
26673
|
createElementVNode("div", _hoisted_2, [
|
|
27004
26674
|
_ctx.showClose && !showProtoCheck.value ? (openBlock(), createBlock(GIcon, {
|
|
27005
26675
|
key: 0,
|
|
@@ -27008,16 +26678,86 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
27008
26678
|
size: "18"
|
|
27009
26679
|
})) : createCommentVNode("", true)
|
|
27010
26680
|
])
|
|
27011
|
-
])
|
|
26681
|
+
]),
|
|
26682
|
+
formType.value === "register" ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.registerDesc")), 1)) : createCommentVNode("", true)
|
|
27012
26683
|
]),
|
|
27013
26684
|
key: "0"
|
|
26685
|
+
} : void 0,
|
|
26686
|
+
!mfaCheck.value ? {
|
|
26687
|
+
name: "footer",
|
|
26688
|
+
fn: withCtx(() => {
|
|
26689
|
+
var _a;
|
|
26690
|
+
return [
|
|
26691
|
+
formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
26692
|
+
createVNode(GAuth, {
|
|
26693
|
+
logos,
|
|
26694
|
+
onAuth: pcAuthLogin
|
|
26695
|
+
}, null, 8, ["logos"]),
|
|
26696
|
+
createElementVNode("div", {
|
|
26697
|
+
class: normalizeClass(["login-modal-footer-args", AgreementWarn.value ? "shaking-box" : ""])
|
|
26698
|
+
}, [
|
|
26699
|
+
createElementVNode("div", _hoisted_20, [
|
|
26700
|
+
createVNode(_sfc_main$8, {
|
|
26701
|
+
modelValue: status.value,
|
|
26702
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => status.value = $event),
|
|
26703
|
+
onDeclares: _cache[6] || (_cache[6] = (typ) => handleDisplay(typ))
|
|
26704
|
+
}, null, 8, ["modelValue"])
|
|
26705
|
+
])
|
|
26706
|
+
], 2)
|
|
26707
|
+
])) : formType.value === "register" || formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_21, [
|
|
26708
|
+
createElementVNode("div", {
|
|
26709
|
+
class: normalizeClass(["text-[var(--devui-danger)] text-[14px] break-all box-border leading-[20px] h-[40px]", formType.value === "register" && ((_a = formErrors == null ? void 0 : formErrors.username) == null ? void 0 : _a.length) > 42 ? "cursor-pointer" : ""])
|
|
26710
|
+
}, [
|
|
26711
|
+
createElementVNode("span", _hoisted_22, toDisplayString$1(errorMsg.value), 1)
|
|
26712
|
+
], 2),
|
|
26713
|
+
formType.value === "register" ? (openBlock(), createElementBlock("div", {
|
|
26714
|
+
key: 0,
|
|
26715
|
+
class: normalizeClass(["register-agree", [AgreementWarn.value ? "shaking-box" : ""]])
|
|
26716
|
+
}, [
|
|
26717
|
+
createVNode(_sfc_main$7, {
|
|
26718
|
+
modelValue: hwStatus.value,
|
|
26719
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => hwStatus.value = $event),
|
|
26720
|
+
onDeclares: _cache[8] || (_cache[8] = (typ) => handleDisplay(typ, "huawei")),
|
|
26721
|
+
"agreement-text": `《${unref($t)("gitCodeLayout.LoginModal.link.huaweiCloudAgreement")}》`,
|
|
26722
|
+
"privacy-text": `《${unref($t)("gitCodeLayout.LoginModal.link.agreementPrivacy")}》`,
|
|
26723
|
+
onClick: _cache[9] || (_cache[9] = ($event) => agreementReport("signup_select", `hw${hwStatus.value ? 1 : 0}`))
|
|
26724
|
+
}, null, 8, ["modelValue", "agreement-text", "privacy-text"]),
|
|
26725
|
+
createVNode(_sfc_main$7, {
|
|
26726
|
+
modelValue: status.value,
|
|
26727
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => status.value = $event),
|
|
26728
|
+
onDeclares: _cache[11] || (_cache[11] = (typ) => handleDisplay(typ)),
|
|
26729
|
+
"agreement-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.agreement")}》`,
|
|
26730
|
+
"privacy-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")}》`,
|
|
26731
|
+
onClick: _cache[12] || (_cache[12] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
|
|
26732
|
+
}, null, 8, ["modelValue", "agreement-text", "privacy-text"])
|
|
26733
|
+
], 2)) : createCommentVNode("", true),
|
|
26734
|
+
createElementVNode("div", _hoisted_23, [
|
|
26735
|
+
createVNode(unref(Button), {
|
|
26736
|
+
color: "primary",
|
|
26737
|
+
variant: "solid",
|
|
26738
|
+
size: "lg",
|
|
26739
|
+
onClick: handleConfirm,
|
|
26740
|
+
disabled: disabled.value,
|
|
26741
|
+
loading: loading.value,
|
|
26742
|
+
class: "w-[100%]"
|
|
26743
|
+
}, {
|
|
26744
|
+
default: withCtx(() => [
|
|
26745
|
+
createTextVNode(toDisplayString$1(formType.value === "forget" ? unref($t)("gitCodeLayout.userSetting.account.changePassword") : unref($t)("gitCodeLayout.LoginModal.action.verify")), 1)
|
|
26746
|
+
]),
|
|
26747
|
+
_: 1
|
|
26748
|
+
}, 8, ["disabled", "loading"])
|
|
26749
|
+
])
|
|
26750
|
+
])) : createCommentVNode("", true)
|
|
26751
|
+
];
|
|
26752
|
+
}),
|
|
26753
|
+
key: "1"
|
|
27014
26754
|
} : void 0
|
|
27015
26755
|
]), 1032, ["modelValue", "lock-scroll", "draggable", "escapable", "append-to-body", "class"]),
|
|
27016
26756
|
createVNode(_sfc_main$5, {
|
|
27017
26757
|
visible: showProtoCheck.value,
|
|
27018
|
-
"onUpdate:visible": _cache[
|
|
26758
|
+
"onUpdate:visible": _cache[14] || (_cache[14] = ($event) => showProtoCheck.value = $event),
|
|
27019
26759
|
onConfirm: agreeAndLogin,
|
|
27020
|
-
onDeclares: _cache[
|
|
26760
|
+
onDeclares: _cache[15] || (_cache[15] = (typ) => handleDisplay(typ))
|
|
27021
26761
|
}, null, 8, ["visible"])
|
|
27022
26762
|
], 64);
|
|
27023
26763
|
};
|