vue-layout-gitcode 1.3.43 → 1.3.45
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-9NOTyesg.js} +2 -2
- package/{ProjectSearch-D25Oj55X.js → ProjectSearch-BZ-nYkPC.js} +1 -1
- package/{SearchHistoryList-Iyll20xo.js → SearchHistoryList-BakI-PLb.js} +1 -1
- package/{SearchPrefixTag-Htl6ZB9E.js → SearchPrefixTag-Ddl3gFW1.js} +1 -1
- package/{SearchRecommed-C6mWZ35K.js → SearchRecommed-BZpePqbc.js} +2 -2
- package/{SearchScopeList-B0J_I494.js → SearchScopeList-DXVQsIcg.js} +1 -1
- package/{UserSearch-CpHemB3q.js → UserSearch-Cz5DhF1B.js} +1 -1
- package/{index-DaolLGsY.js → index-BrK2uIw8.js} +417 -675
- package/{index-BJiD9caE.js → index-Dn9qgS68.js} +1 -1
- package/{index-BmG6buAx.js → index-NGWCqH72.js} +1 -1
- package/index.js +1 -1
- package/{notice-_1JWF_fz.js → notice-DaJhOgCZ.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"],
|
|
@@ -14623,7 +14605,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
14623
14605
|
whiteIcon: "gt-a-Property1white",
|
|
14624
14606
|
to: "/theme",
|
|
14625
14607
|
url: `${layoutConfig2.VITE_AI_HOST}/theme`,
|
|
14626
|
-
menueKey: RouteNameEnum.AI_THEME
|
|
14608
|
+
menueKey: RouteNameEnum.AI_THEME,
|
|
14609
|
+
repoType: "theme"
|
|
14627
14610
|
},
|
|
14628
14611
|
{
|
|
14629
14612
|
label: "大赛",
|
|
@@ -14632,7 +14615,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
14632
14615
|
whiteIcon: "gt-a-plane-GrowthCenter-2",
|
|
14633
14616
|
to: "/competition",
|
|
14634
14617
|
url: `${layoutConfig2.VITE_AI_HOST}/competition`,
|
|
14635
|
-
menueKey: RouteNameEnum.AI_COMPETITION
|
|
14618
|
+
menueKey: RouteNameEnum.AI_COMPETITION,
|
|
14619
|
+
repoType: "competition"
|
|
14636
14620
|
}
|
|
14637
14621
|
];
|
|
14638
14622
|
const activeMenu = computed(() => {
|
|
@@ -14703,7 +14687,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
14703
14687
|
position: ["top-start"]
|
|
14704
14688
|
}, {
|
|
14705
14689
|
menu: withCtx(() => [
|
|
14706
|
-
createElementVNode("ul", _hoisted_3$
|
|
14690
|
+
createElementVNode("ul", _hoisted_3$g, [
|
|
14707
14691
|
(openBlock(true), createElementBlock(Fragment, null, renderList(themeTablist.value, (item, index22) => {
|
|
14708
14692
|
return openBlock(), createBlock(GLink, {
|
|
14709
14693
|
key: index22,
|
|
@@ -14760,14 +14744,14 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
14760
14744
|
href: activeMenu.value.url
|
|
14761
14745
|
}, {
|
|
14762
14746
|
default: withCtx(() => [
|
|
14763
|
-
createElementVNode("span", _hoisted_4$
|
|
14747
|
+
createElementVNode("span", _hoisted_4$d, [
|
|
14764
14748
|
createVNode(GIcon, {
|
|
14765
14749
|
size: "24px",
|
|
14766
14750
|
name: activeMenu.value.icon
|
|
14767
14751
|
}, null, 8, ["name"]),
|
|
14768
14752
|
createTextVNode(" " + toDisplayString$1(activeMenu.value.label), 1)
|
|
14769
14753
|
]),
|
|
14770
|
-
createElementVNode("div", _hoisted_5$
|
|
14754
|
+
createElementVNode("div", _hoisted_5$9, [
|
|
14771
14755
|
createVNode(GIcon, {
|
|
14772
14756
|
size: "18px",
|
|
14773
14757
|
name: "gt-line-down",
|
|
@@ -16601,9 +16585,9 @@ const _hoisted_2$i = {
|
|
|
16601
16585
|
key: 1,
|
|
16602
16586
|
class: "org-layout-toolbar"
|
|
16603
16587
|
};
|
|
16604
|
-
const _hoisted_3$
|
|
16605
|
-
const _hoisted_4$
|
|
16606
|
-
const _hoisted_5$
|
|
16588
|
+
const _hoisted_3$f = { class: "org-layout-toolbar-title flex-1 ellipsis-two-line" };
|
|
16589
|
+
const _hoisted_4$c = { class: "text-xs" };
|
|
16590
|
+
const _hoisted_5$8 = { class: "flex items-center w-full" };
|
|
16607
16591
|
const _hoisted_6$6 = {
|
|
16608
16592
|
key: 1,
|
|
16609
16593
|
class: "flex items-center min-w-[30px]"
|
|
@@ -16784,7 +16768,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16784
16768
|
height: 28,
|
|
16785
16769
|
is_round: false
|
|
16786
16770
|
}, null, 8, ["src", "name"]),
|
|
16787
|
-
createElementVNode("div", _hoisted_3$
|
|
16771
|
+
createElementVNode("div", _hoisted_3$f, toDisplayString$1((_c = unref(orgInfo)) == null ? void 0 : _c.name), 1)
|
|
16788
16772
|
];
|
|
16789
16773
|
}),
|
|
16790
16774
|
_: 1
|
|
@@ -16799,7 +16783,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16799
16783
|
default: withCtx(() => {
|
|
16800
16784
|
var _a2;
|
|
16801
16785
|
return [
|
|
16802
|
-
createElementVNode("span", _hoisted_4$
|
|
16786
|
+
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
16787
|
];
|
|
16804
16788
|
}),
|
|
16805
16789
|
_: 1
|
|
@@ -16821,7 +16805,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16821
16805
|
default: withCtx(() => {
|
|
16822
16806
|
var _a2, _b2, _c, _d, _e, _f, _g;
|
|
16823
16807
|
return [
|
|
16824
|
-
createElementVNode("h2", _hoisted_5$
|
|
16808
|
+
createElementVNode("h2", _hoisted_5$8, [
|
|
16825
16809
|
createVNode(GLink, {
|
|
16826
16810
|
href: (_a2 = unref(breadcrumb)[0]) == null ? void 0 : _a2.path,
|
|
16827
16811
|
class: "pr-[12px]"
|
|
@@ -17038,21 +17022,6 @@ var AuthTypeEnum = /* @__PURE__ */ ((AuthTypeEnum2) => {
|
|
|
17038
17022
|
AuthTypeEnum2["PHONE_AND_PASSWORD"] = "phoneAndPassword";
|
|
17039
17023
|
return AuthTypeEnum2;
|
|
17040
17024
|
})(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
17025
|
var AuthResType = /* @__PURE__ */ ((AuthResType2) => {
|
|
17057
17026
|
AuthResType2["SUCCESS"] = "success";
|
|
17058
17027
|
AuthResType2["FAIL"] = "fail";
|
|
@@ -17537,9 +17506,9 @@ const _hoisted_1$n = {
|
|
|
17537
17506
|
class: "user-level-avatar-badge"
|
|
17538
17507
|
};
|
|
17539
17508
|
const _hoisted_2$h = { class: "flex items-center font-medium gap-[4px]" };
|
|
17540
|
-
const _hoisted_3$
|
|
17541
|
-
const _hoisted_4$
|
|
17542
|
-
const _hoisted_5$
|
|
17509
|
+
const _hoisted_3$e = ["src"];
|
|
17510
|
+
const _hoisted_4$b = { class: "level-name" };
|
|
17511
|
+
const _hoisted_5$7 = { class: "level-icon" };
|
|
17543
17512
|
const _hoisted_6$5 = ["src"];
|
|
17544
17513
|
const _hoisted_7$4 = { class: "custom-btn" };
|
|
17545
17514
|
const _hoisted_8$4 = { class: "flex items-center justify-center" };
|
|
@@ -17596,10 +17565,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
17596
17565
|
class: "level-avatar",
|
|
17597
17566
|
src: levelInfo.value.avatar,
|
|
17598
17567
|
alt: ""
|
|
17599
|
-
}, null, 8, _hoisted_3$
|
|
17600
|
-
createElementVNode("div", _hoisted_4$
|
|
17568
|
+
}, null, 8, _hoisted_3$e),
|
|
17569
|
+
createElementVNode("div", _hoisted_4$b, [
|
|
17601
17570
|
createElementVNode("div", null, toDisplayString$1(levelInfo.value.name), 1),
|
|
17602
|
-
createElementVNode("div", _hoisted_5$
|
|
17571
|
+
createElementVNode("div", _hoisted_5$7, [
|
|
17603
17572
|
createElementVNode("img", {
|
|
17604
17573
|
src: levelInfo.value.level,
|
|
17605
17574
|
alt: ""
|
|
@@ -17617,8 +17586,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
17617
17586
|
const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
17618
17587
|
const _hoisted_1$m = { class: "g-user-drawer-info-list pl-[16px]" };
|
|
17619
17588
|
const _hoisted_2$g = { class: "max-w-[200px]" };
|
|
17620
|
-
const _hoisted_3$
|
|
17621
|
-
const _hoisted_4$
|
|
17589
|
+
const _hoisted_3$d = ["title"];
|
|
17590
|
+
const _hoisted_4$a = ["title"];
|
|
17622
17591
|
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
17623
17592
|
__name: "UserAvatarMenu",
|
|
17624
17593
|
props: ["isChatBot", "accountInfo", "loginOutFinish", "inAIHub", "independence", "userMenus"],
|
|
@@ -17786,11 +17755,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
17786
17755
|
createElementVNode("p", {
|
|
17787
17756
|
class: "g-user-drawer-info-list-name ellipsis",
|
|
17788
17757
|
title: __props.accountInfo.nickname
|
|
17789
|
-
}, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_3$
|
|
17758
|
+
}, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_3$d),
|
|
17790
17759
|
createElementVNode("p", {
|
|
17791
17760
|
class: "g-user-drawer-info-list-id ellipsis",
|
|
17792
17761
|
title: __props.accountInfo.username
|
|
17793
|
-
}, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_4$
|
|
17762
|
+
}, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_4$a)
|
|
17794
17763
|
]),
|
|
17795
17764
|
createVNode(GIcon, {
|
|
17796
17765
|
name: "gt-line-right",
|
|
@@ -17836,12 +17805,12 @@ const _hoisted_2$f = {
|
|
|
17836
17805
|
key: 0,
|
|
17837
17806
|
class: "g-user-avatar__badge"
|
|
17838
17807
|
};
|
|
17839
|
-
const _hoisted_3$
|
|
17840
|
-
const _hoisted_4$
|
|
17808
|
+
const _hoisted_3$c = { class: "g-user-avatar flex-center ml-1" };
|
|
17809
|
+
const _hoisted_4$9 = {
|
|
17841
17810
|
key: 0,
|
|
17842
17811
|
class: "g-user-avatar__badge"
|
|
17843
17812
|
};
|
|
17844
|
-
const _hoisted_5$
|
|
17813
|
+
const _hoisted_5$6 = { class: "g-user-drawer" };
|
|
17845
17814
|
const _hoisted_6$4 = { class: "p-[16px] pt-[8px] pb-0 flex justify-end items-center h-[48px]" };
|
|
17846
17815
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
17847
17816
|
...{
|
|
@@ -17947,7 +17916,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17947
17916
|
onToggle: handleToggle
|
|
17948
17917
|
}, {
|
|
17949
17918
|
menu: withCtx(() => [
|
|
17950
|
-
createElementVNode("div", _hoisted_5$
|
|
17919
|
+
createElementVNode("div", _hoisted_5$6, [
|
|
17951
17920
|
createVNode(UserAvatarMenu, {
|
|
17952
17921
|
independence: __props.independence,
|
|
17953
17922
|
loginOutFinish: __props.loginOutFinish,
|
|
@@ -17959,12 +17928,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17959
17928
|
])
|
|
17960
17929
|
]),
|
|
17961
17930
|
default: withCtx(() => [
|
|
17962
|
-
createElementVNode("div", _hoisted_3$
|
|
17931
|
+
createElementVNode("div", _hoisted_3$c, [
|
|
17963
17932
|
createVNode(_sfc_main$z, {
|
|
17964
17933
|
name: accountInfo.value.nickname,
|
|
17965
17934
|
src: accountInfo.value.avatar
|
|
17966
17935
|
}, null, 8, ["name", "src"]),
|
|
17967
|
-
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
17936
|
+
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$9, _cache[4] || (_cache[4] = [
|
|
17968
17937
|
createElementVNode("div", null, null, -1)
|
|
17969
17938
|
]))) : createCommentVNode("", true)
|
|
17970
17939
|
])
|
|
@@ -18094,9 +18063,9 @@ const setlocalVistHistory = (data, localType) => {
|
|
|
18094
18063
|
};
|
|
18095
18064
|
const _hoisted_1$k = { class: "g-header-search-prefix" };
|
|
18096
18065
|
const _hoisted_2$e = { class: "g-header-search-suffix-splitline" };
|
|
18097
|
-
const _hoisted_3$
|
|
18098
|
-
const _hoisted_4$
|
|
18099
|
-
const _hoisted_5$
|
|
18066
|
+
const _hoisted_3$b = { class: "g-header-search-suffix-suffixIcon" };
|
|
18067
|
+
const _hoisted_4$8 = { class: "history-list" };
|
|
18068
|
+
const _hoisted_5$5 = {
|
|
18100
18069
|
key: 1,
|
|
18101
18070
|
class: "aireposearch flex-1"
|
|
18102
18071
|
};
|
|
@@ -18111,13 +18080,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18111
18080
|
var _a;
|
|
18112
18081
|
const layoutConfig2 = useLayoutConfig();
|
|
18113
18082
|
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-
|
|
18083
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BZ-nYkPC.js"));
|
|
18084
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-Cz5DhF1B.js"));
|
|
18085
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-9NOTyesg.js"));
|
|
18086
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BakI-PLb.js"));
|
|
18087
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DXVQsIcg.js"));
|
|
18088
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-Ddl3gFW1.js"));
|
|
18089
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BZpePqbc.js"));
|
|
18121
18090
|
const props = __props;
|
|
18122
18091
|
const repoInfo = inject("repoInfo");
|
|
18123
18092
|
const orgInfo = inject("orgInfo");
|
|
@@ -18570,7 +18539,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18570
18539
|
}, {
|
|
18571
18540
|
menu: withCtx(() => [
|
|
18572
18541
|
createElementVNode("div", null, [
|
|
18573
|
-
withDirectives(createElementVNode("div", _hoisted_4$
|
|
18542
|
+
withDirectives(createElementVNode("div", _hoisted_4$8, [
|
|
18574
18543
|
createVNode(unref(SearchScopeList), {
|
|
18575
18544
|
searchScopeList: searchScopeList.value,
|
|
18576
18545
|
searchStr: searchStr.value,
|
|
@@ -18688,7 +18657,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18688
18657
|
withDirectives(createElementVNode("span", _hoisted_2$e, "|", 512), [
|
|
18689
18658
|
[vShow, searchStr.value]
|
|
18690
18659
|
]),
|
|
18691
|
-
createElementVNode("div", _hoisted_3$
|
|
18660
|
+
createElementVNode("div", _hoisted_3$b, [
|
|
18692
18661
|
createVNode(GIcon, {
|
|
18693
18662
|
name: "search",
|
|
18694
18663
|
class: "g-header-search-icon",
|
|
@@ -18706,7 +18675,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18706
18675
|
_: 1
|
|
18707
18676
|
}, 8, ["overlay-class", "visible"])
|
|
18708
18677
|
], 2)) : createCommentVNode("", true),
|
|
18709
|
-
_ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
18678
|
+
_ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
|
|
18710
18679
|
createVNode(unref(Input), {
|
|
18711
18680
|
placeholder: unref($t)("gitCodeLayout.home.searchPlaceholder"),
|
|
18712
18681
|
onKeydown: withKeys(searchResult, ["enter"]),
|
|
@@ -18727,7 +18696,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18727
18696
|
}
|
|
18728
18697
|
});
|
|
18729
18698
|
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
18730
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
18699
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-DaJhOgCZ.js"));
|
|
18731
18700
|
function clearNotice() {
|
|
18732
18701
|
if (localStorage$2.getItem("validator_email")) {
|
|
18733
18702
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18759,8 +18728,8 @@ const _hoisted_1$j = {
|
|
|
18759
18728
|
class: "g-header-body"
|
|
18760
18729
|
};
|
|
18761
18730
|
const _hoisted_2$d = { class: "g-header-body-left h-full" };
|
|
18762
|
-
const _hoisted_3$
|
|
18763
|
-
const _hoisted_4$
|
|
18731
|
+
const _hoisted_3$a = { class: "g-header-body-right h-full" };
|
|
18732
|
+
const _hoisted_4$7 = { key: 2 };
|
|
18764
18733
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
18765
18734
|
...{
|
|
18766
18735
|
name: "header"
|
|
@@ -19178,12 +19147,12 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19178
19147
|
createElementVNode("div", _hoisted_2$d, [
|
|
19179
19148
|
renderSlot(_ctx.$slots, "info", {}, void 0, true)
|
|
19180
19149
|
]),
|
|
19181
|
-
createElementVNode("div", _hoisted_3$
|
|
19150
|
+
createElementVNode("div", _hoisted_3$a, [
|
|
19182
19151
|
renderSlot(_ctx.$slots, "menu", {}, void 0, true)
|
|
19183
19152
|
])
|
|
19184
19153
|
], true)
|
|
19185
19154
|
])) : createCommentVNode("", true),
|
|
19186
|
-
_ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
19155
|
+
_ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div", _hoisted_4$7, [
|
|
19187
19156
|
renderSlot(_ctx.$slots, "headerBottom", {}, void 0, true)
|
|
19188
19157
|
])) : createCommentVNode("", true)
|
|
19189
19158
|
], 2)
|
|
@@ -19213,7 +19182,7 @@ const createSetting = () => {
|
|
|
19213
19182
|
};
|
|
19214
19183
|
const _hoisted_1$i = { class: "tools-item-wrapper" };
|
|
19215
19184
|
const _hoisted_2$c = { class: "tools-item-wrapper-checkbox" };
|
|
19216
|
-
const _hoisted_3$
|
|
19185
|
+
const _hoisted_3$9 = ["onClick", "title"];
|
|
19217
19186
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
19218
19187
|
__name: "Lang",
|
|
19219
19188
|
setup(__props) {
|
|
@@ -19248,7 +19217,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
19248
19217
|
color: "var(--theme-icon-fill-weak)",
|
|
19249
19218
|
class: "checkbox-item-icon"
|
|
19250
19219
|
}, null, 8, ["name"])
|
|
19251
|
-
], 16, _hoisted_3$
|
|
19220
|
+
], 16, _hoisted_3$9);
|
|
19252
19221
|
}), 128))
|
|
19253
19222
|
])
|
|
19254
19223
|
]);
|
|
@@ -19257,7 +19226,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
19257
19226
|
});
|
|
19258
19227
|
const _hoisted_1$h = { class: "tools-item-wrapper" };
|
|
19259
19228
|
const _hoisted_2$b = { class: "tools-item-wrapper-checkbox" };
|
|
19260
|
-
const _hoisted_3$
|
|
19229
|
+
const _hoisted_3$8 = ["onClick", "title"];
|
|
19261
19230
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
19262
19231
|
__name: "Theme",
|
|
19263
19232
|
setup(__props) {
|
|
@@ -19301,7 +19270,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
19301
19270
|
color: "var(--theme-icon-fill-weak)",
|
|
19302
19271
|
class: "checkbox-item-icon"
|
|
19303
19272
|
}, null, 8, ["name"])
|
|
19304
|
-
], 16, _hoisted_3$
|
|
19273
|
+
], 16, _hoisted_3$8);
|
|
19305
19274
|
}), 128))
|
|
19306
19275
|
])
|
|
19307
19276
|
]);
|
|
@@ -19411,12 +19380,12 @@ const _hoisted_2$a = {
|
|
|
19411
19380
|
class: "devui-submenu-title layer_2",
|
|
19412
19381
|
style: { "padding": "0px 24px" }
|
|
19413
19382
|
};
|
|
19414
|
-
const _hoisted_3$
|
|
19415
|
-
const _hoisted_4$
|
|
19383
|
+
const _hoisted_3$7 = { class: "devui-submenu-title-content cursor-auto" };
|
|
19384
|
+
const _hoisted_4$6 = {
|
|
19416
19385
|
class: "devui-submenu-title layer_2",
|
|
19417
19386
|
style: { "padding": "0px 24px" }
|
|
19418
19387
|
};
|
|
19419
|
-
const _hoisted_5$
|
|
19388
|
+
const _hoisted_5$4 = { class: "devui-submenu-title-content cursor-auto" };
|
|
19420
19389
|
const _hoisted_6$3 = { key: 0 };
|
|
19421
19390
|
const _hoisted_7$3 = { class: "project-label" };
|
|
19422
19391
|
const _hoisted_8$3 = { class: "project-label flex-1 min-w-0 ellipsis" };
|
|
@@ -19615,7 +19584,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
19615
19584
|
_ctx.type === "project" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
19616
19585
|
createElementVNode("div", _hoisted_2$a, [
|
|
19617
19586
|
_cache[13] || (_cache[13] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
|
|
19618
|
-
createElementVNode("span", _hoisted_3$
|
|
19587
|
+
createElementVNode("span", _hoisted_3$7, [
|
|
19619
19588
|
createElementVNode("div", {
|
|
19620
19589
|
class: "fast-click-button",
|
|
19621
19590
|
onClick: _cache[0] || (_cache[0] = ($event) => fastToLink("project"))
|
|
@@ -19674,9 +19643,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
19674
19643
|
], 2)
|
|
19675
19644
|
], 64)) : createCommentVNode("", true),
|
|
19676
19645
|
_ctx.type === "team" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
19677
|
-
createElementVNode("div", _hoisted_4$
|
|
19646
|
+
createElementVNode("div", _hoisted_4$6, [
|
|
19678
19647
|
_cache[14] || (_cache[14] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
|
|
19679
|
-
createElementVNode("span", _hoisted_5$
|
|
19648
|
+
createElementVNode("span", _hoisted_5$4, [
|
|
19680
19649
|
createElementVNode("div", {
|
|
19681
19650
|
class: "fast-click-button",
|
|
19682
19651
|
onClick: _cache[7] || (_cache[7] = ($event) => fastToLink("team"))
|
|
@@ -19783,9 +19752,9 @@ const _hoisted_2$9 = {
|
|
|
19783
19752
|
class: "devui-submenu-title layer_2",
|
|
19784
19753
|
style: { "padding": "0px 24px" }
|
|
19785
19754
|
};
|
|
19786
|
-
const _hoisted_3$
|
|
19787
|
-
const _hoisted_4$
|
|
19788
|
-
const _hoisted_5$
|
|
19755
|
+
const _hoisted_3$6 = { class: "devui-submenu-title-content cursor-auto" };
|
|
19756
|
+
const _hoisted_4$5 = { class: "project-label" };
|
|
19757
|
+
const _hoisted_5$3 = { class: "project-label flex-1 min-w-0 ellipsis" };
|
|
19789
19758
|
const INIT_SHOW_COUNT = 4;
|
|
19790
19759
|
const LOAD_MORE_COUNT = 10;
|
|
19791
19760
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
@@ -19880,7 +19849,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
19880
19849
|
return openBlock(), createElementBlock("ul", _hoisted_1$f, [
|
|
19881
19850
|
createElementVNode("div", _hoisted_2$9, [
|
|
19882
19851
|
_cache[6] || (_cache[6] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
|
|
19883
|
-
createElementVNode("span", _hoisted_3$
|
|
19852
|
+
createElementVNode("span", _hoisted_3$6, [
|
|
19884
19853
|
createElementVNode("div", {
|
|
19885
19854
|
class: "fast-click-button",
|
|
19886
19855
|
onClick: _cache[0] || (_cache[0] = ($event) => fastToLink())
|
|
@@ -19935,8 +19904,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
19935
19904
|
]),
|
|
19936
19905
|
default: withCtx(() => [
|
|
19937
19906
|
createElementVNode("span", null, [
|
|
19938
|
-
createElementVNode("span", _hoisted_4$
|
|
19939
|
-
createElementVNode("span", _hoisted_5$
|
|
19907
|
+
createElementVNode("span", _hoisted_4$5, toDisplayString$1((item.namespace || "").slice(0, 10)) + toDisplayString$1((item.namespace || "").length > 10 ? "..." : ""), 1),
|
|
19908
|
+
createElementVNode("span", _hoisted_5$3, "/" + toDisplayString$1(item.label), 1)
|
|
19940
19909
|
])
|
|
19941
19910
|
]),
|
|
19942
19911
|
_: 2
|
|
@@ -19974,12 +19943,12 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
19974
19943
|
const ProjectMenuListV2 = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
19975
19944
|
const _hoisted_1$e = { class: "side-bar-label" };
|
|
19976
19945
|
const _hoisted_2$8 = { class: "side-bar-label" };
|
|
19977
|
-
const _hoisted_3$
|
|
19946
|
+
const _hoisted_3$5 = {
|
|
19978
19947
|
key: 0,
|
|
19979
19948
|
class: "line mt-[16px] mb-[6px]"
|
|
19980
19949
|
};
|
|
19981
|
-
const _hoisted_4$
|
|
19982
|
-
const _hoisted_5$
|
|
19950
|
+
const _hoisted_4$4 = ["src"];
|
|
19951
|
+
const _hoisted_5$2 = ["src"];
|
|
19983
19952
|
const _hoisted_6$2 = { class: "side-bar-label" };
|
|
19984
19953
|
const _hoisted_7$2 = {
|
|
19985
19954
|
key: 1,
|
|
@@ -20477,7 +20446,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
20477
20446
|
}, 1032, ["data-key", "data-openBlank", "data-route", "data-href", "data-host"]))
|
|
20478
20447
|
], 64);
|
|
20479
20448
|
}), 256)),
|
|
20480
|
-
!_ctx.asideSetShowLittle ? (openBlock(), createElementBlock("hr", _hoisted_3$
|
|
20449
|
+
!_ctx.asideSetShowLittle ? (openBlock(), createElementBlock("hr", _hoisted_3$5)) : createCommentVNode("", true),
|
|
20481
20450
|
(openBlock(true), createElementBlock(Fragment, null, renderList(externalRoutes.value, (item) => {
|
|
20482
20451
|
return openBlock(), createBlock(unref(MenuItem), {
|
|
20483
20452
|
key: `${item.key}-${item.logo}`,
|
|
@@ -20492,11 +20461,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
20492
20461
|
createElementVNode("img", {
|
|
20493
20462
|
src: item.logo,
|
|
20494
20463
|
class: "default-icon w-[16px] h-[16px]"
|
|
20495
|
-
}, null, 8, _hoisted_4$
|
|
20464
|
+
}, null, 8, _hoisted_4$4),
|
|
20496
20465
|
createElementVNode("img", {
|
|
20497
20466
|
src: item.logo_hover,
|
|
20498
20467
|
class: "active-icon w-[16px] h-[16px]"
|
|
20499
|
-
}, null, 8, _hoisted_5$
|
|
20468
|
+
}, null, 8, _hoisted_5$2)
|
|
20500
20469
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
20501
20470
|
createVNode(GIcon, {
|
|
20502
20471
|
name: item.icon,
|
|
@@ -21345,8 +21314,8 @@ const headerCustomPropsData = {
|
|
|
21345
21314
|
};
|
|
21346
21315
|
const _hoisted_1$c = { class: "home-wrapper" };
|
|
21347
21316
|
const _hoisted_2$7 = { class: "home-content" };
|
|
21348
|
-
const _hoisted_3$
|
|
21349
|
-
const _hoisted_4$
|
|
21317
|
+
const _hoisted_3$4 = { class: "home-left-side" };
|
|
21318
|
+
const _hoisted_4$3 = { class: "home-main" };
|
|
21350
21319
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
21351
21320
|
__name: "home",
|
|
21352
21321
|
setup(__props) {
|
|
@@ -21437,7 +21406,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
21437
21406
|
onFollowUser: followUser
|
|
21438
21407
|
}, null, 8, ["sceneValue", "independence", "isLogin", "request", "globalStore", "userInfo", "repoInfo", "orgInfo", "otherUserInfo", "headerCustomProps"]),
|
|
21439
21408
|
createElementVNode("div", _hoisted_2$7, [
|
|
21440
|
-
createElementVNode("div", _hoisted_3$
|
|
21409
|
+
createElementVNode("div", _hoisted_3$4, [
|
|
21441
21410
|
createVNode(GitCodeAside, {
|
|
21442
21411
|
sceneValue: sceneSelected.value,
|
|
21443
21412
|
userInfo: userInfo.value,
|
|
@@ -21457,7 +21426,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
21457
21426
|
_: 1
|
|
21458
21427
|
}, 8, ["sceneValue", "userInfo", "isLogin", "request", "globalStore", "independence", "collapseMode"])
|
|
21459
21428
|
]),
|
|
21460
|
-
createElementVNode("div", _hoisted_4$
|
|
21429
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
21461
21430
|
_cache[6] || (_cache[6] = createElementVNode("h1", null, "控制 Header 值传入", -1)),
|
|
21462
21431
|
_cache[7] || (_cache[7] = createElementVNode("h2", null, "场景值 SceneValue", -1)),
|
|
21463
21432
|
createVNode(unref(RadioGroup), {
|
|
@@ -21667,7 +21636,6 @@ const layoutConfig = useLayoutConfig();
|
|
|
21667
21636
|
const { t: t$2 } = i18n.global;
|
|
21668
21637
|
const GRAPH_CODE = 400007;
|
|
21669
21638
|
const REMOTE_LOGIN_CODE = 400015;
|
|
21670
|
-
const MAX_MOBILE_COUNT = 10;
|
|
21671
21639
|
const createLoginConfig = (request) => {
|
|
21672
21640
|
const API = headRequest(request);
|
|
21673
21641
|
return {
|
|
@@ -21675,15 +21643,14 @@ const createLoginConfig = (request) => {
|
|
|
21675
21643
|
async phone(param, loginParams) {
|
|
21676
21644
|
const { validFunc, successFunc = () => {
|
|
21677
21645
|
}, failFunc = () => {
|
|
21678
|
-
}
|
|
21646
|
+
} } = param;
|
|
21679
21647
|
const check = validFunc ? await validFunc() : true;
|
|
21680
21648
|
if (!check) return;
|
|
21681
21649
|
const result2 = await API.loginByMobile(loginParams);
|
|
21682
21650
|
if (!result2.error) {
|
|
21683
21651
|
const resultData = result2.data.data;
|
|
21684
|
-
saveLoginMobile(loginParams.mobile, country);
|
|
21685
21652
|
successFunc(resultData, loginParams.mobile);
|
|
21686
|
-
phoneAndPasswordLogin(resultData, API
|
|
21653
|
+
phoneAndPasswordLogin(resultData, API);
|
|
21687
21654
|
} else {
|
|
21688
21655
|
failFunc(result2.error.error_message);
|
|
21689
21656
|
}
|
|
@@ -21710,7 +21677,7 @@ const createLoginConfig = (request) => {
|
|
|
21710
21677
|
const { user_status_enum } = resultData;
|
|
21711
21678
|
await successFunc(resultData);
|
|
21712
21679
|
if (user_status_enum !== "MFA_CHECK") {
|
|
21713
|
-
phoneAndPasswordLogin(resultData, API
|
|
21680
|
+
phoneAndPasswordLogin(resultData, API);
|
|
21714
21681
|
}
|
|
21715
21682
|
} else {
|
|
21716
21683
|
failFunc(result2.error.error_message);
|
|
@@ -21734,7 +21701,7 @@ const createLoginConfig = (request) => {
|
|
|
21734
21701
|
scene_id
|
|
21735
21702
|
});
|
|
21736
21703
|
if (!result2.error) {
|
|
21737
|
-
phoneAndPasswordLogin(result2.data.data, API
|
|
21704
|
+
phoneAndPasswordLogin(result2.data.data, API);
|
|
21738
21705
|
return { success: true, data: result2.data.data };
|
|
21739
21706
|
}
|
|
21740
21707
|
return { success: false, error: result2.error };
|
|
@@ -21861,12 +21828,11 @@ function bindResultResolve(params, API) {
|
|
|
21861
21828
|
function sendMessageToParent(message) {
|
|
21862
21829
|
window.parent && window.parent.postMessage(message, "*");
|
|
21863
21830
|
}
|
|
21864
|
-
function phoneAndPasswordLogin(userInfo, API
|
|
21831
|
+
function phoneAndPasswordLogin(userInfo, API) {
|
|
21865
21832
|
successResolve({
|
|
21866
21833
|
path: new URLSearchParams(window.location.search).get("returnUrl") || "",
|
|
21867
21834
|
userInfo,
|
|
21868
|
-
type: AuthTypeEnum.PHONE_AND_PASSWORD
|
|
21869
|
-
loginMethod
|
|
21835
|
+
type: AuthTypeEnum.PHONE_AND_PASSWORD
|
|
21870
21836
|
}, API);
|
|
21871
21837
|
const params = {
|
|
21872
21838
|
access_token: userInfo.access_token,
|
|
@@ -21901,13 +21867,12 @@ async function checkUserRepositoryIssue(API) {
|
|
|
21901
21867
|
}
|
|
21902
21868
|
async function successResolve(params, API) {
|
|
21903
21869
|
var _a;
|
|
21904
|
-
const { path, userInfo, type
|
|
21870
|
+
const { path, userInfo, type } = params;
|
|
21905
21871
|
if (userInfo) {
|
|
21906
21872
|
emitEvent("updateUserInfo", userInfo);
|
|
21907
21873
|
const { username, email } = userInfo;
|
|
21908
21874
|
setEmailValid(username, email);
|
|
21909
21875
|
}
|
|
21910
|
-
saveLastLoginType(loginMethod);
|
|
21911
21876
|
if (type === AuthTypeEnum.PHONE_AND_PASSWORD) {
|
|
21912
21877
|
const { unMount, isMounted } = usePopup();
|
|
21913
21878
|
if (isMounted()) {
|
|
@@ -22013,21 +21978,6 @@ const HandleParentWindowGetLoginInfo = (request) => {
|
|
|
22013
21978
|
}
|
|
22014
21979
|
};
|
|
22015
21980
|
};
|
|
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
21981
|
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
21982
|
const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
22033
21983
|
__proto__: null,
|
|
@@ -22214,10 +22164,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
22214
22164
|
}
|
|
22215
22165
|
});
|
|
22216
22166
|
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" };
|
|
22167
|
+
const _hoisted_2$6 = { class: "flex justify-between gap-[8px] flex-wrap" };
|
|
22221
22168
|
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
22222
22169
|
__name: "inputSelect",
|
|
22223
22170
|
props: {
|
|
@@ -22225,8 +22172,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22225
22172
|
"onUpdate:modelValue": { type: Function },
|
|
22226
22173
|
placeholder: {},
|
|
22227
22174
|
prop: {},
|
|
22228
|
-
country: {}
|
|
22229
|
-
editableSelect: { type: Boolean }
|
|
22175
|
+
country: {}
|
|
22230
22176
|
},
|
|
22231
22177
|
emits: ["change", "selectChange", "update:modelValue"],
|
|
22232
22178
|
setup(__props, { emit: __emit }) {
|
|
@@ -22235,6 +22181,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22235
22181
|
const emits = __emit;
|
|
22236
22182
|
const cache_countdown = JSON.parse(localStorage$2.getItem("cache_countdown"));
|
|
22237
22183
|
const { vModels } = useModel(props, emits);
|
|
22184
|
+
console.log(cache_countdown, "cache_countdown");
|
|
22238
22185
|
const country = ref((cache_countdown == null ? void 0 : cache_countdown.country) || DEFAULT_COUNTRY);
|
|
22239
22186
|
const options = ref([]);
|
|
22240
22187
|
const handleChange = () => {
|
|
@@ -22252,50 +22199,25 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22252
22199
|
};
|
|
22253
22200
|
});
|
|
22254
22201
|
};
|
|
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
|
-
};
|
|
22202
|
+
onMounted(() => {
|
|
22203
|
+
getAllCountries();
|
|
22204
|
+
});
|
|
22279
22205
|
const handleCountryChange = () => {
|
|
22280
22206
|
emits("selectChange", country.value);
|
|
22281
22207
|
emits("change");
|
|
22282
22208
|
};
|
|
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
22209
|
return (_ctx, _cache) => {
|
|
22294
22210
|
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
22295
|
-
|
|
22296
|
-
|
|
22211
|
+
createVNode(unref(Input), mergeProps({
|
|
22212
|
+
modelValue: unref(vModels),
|
|
22213
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(vModels) ? vModels.value = $event : null)
|
|
22214
|
+
}, _ctx.prop, {
|
|
22215
|
+
placeholder: _ctx.placeholder,
|
|
22216
|
+
onChange: handleChange
|
|
22217
|
+
}), {
|
|
22218
|
+
prepend: withCtx(() => [
|
|
22297
22219
|
createVNode(unref(Select), {
|
|
22298
|
-
class: "
|
|
22220
|
+
class: "input-select",
|
|
22299
22221
|
modelValue: country.value,
|
|
22300
22222
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => country.value = $event),
|
|
22301
22223
|
menuClass: "country-select",
|
|
@@ -22309,7 +22231,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22309
22231
|
value: item.value
|
|
22310
22232
|
}, {
|
|
22311
22233
|
default: withCtx(() => [
|
|
22312
|
-
createElementVNode("div",
|
|
22234
|
+
createElementVNode("div", _hoisted_2$6, [
|
|
22313
22235
|
createElementVNode("span", null, toDisplayString$1(item.name), 1),
|
|
22314
22236
|
createElementVNode("span", null, toDisplayString$1(item.label), 1)
|
|
22315
22237
|
])
|
|
@@ -22319,70 +22241,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22319
22241
|
}), 128))
|
|
22320
22242
|
]),
|
|
22321
22243
|
_: 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
|
-
])
|
|
22244
|
+
}, 8, ["modelValue"])
|
|
22245
|
+
]),
|
|
22246
|
+
_: 1
|
|
22247
|
+
}, 16, ["modelValue", "placeholder"])
|
|
22386
22248
|
]);
|
|
22387
22249
|
};
|
|
22388
22250
|
}
|
|
@@ -22404,8 +22266,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
22404
22266
|
errors: { default: {
|
|
22405
22267
|
msgError: false
|
|
22406
22268
|
} },
|
|
22407
|
-
isForget: { type: Boolean, default: false }
|
|
22408
|
-
formErrors: { default: {} }
|
|
22269
|
+
isForget: { type: Boolean, default: false }
|
|
22409
22270
|
},
|
|
22410
22271
|
emits: ["change", "countDown", "complete"],
|
|
22411
22272
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -22646,15 +22507,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
22646
22507
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onClick", "placeholder", "hasMobile", "text", "error", "autocomplete"])) : formItem.type === "inputSelect" ? (openBlock(), createBlock(_sfc_main$b, mergeProps({
|
|
22647
22508
|
key: 2,
|
|
22648
22509
|
country: Data.country,
|
|
22649
|
-
class: _ctx.formErrors["mobile"] ? "input-select-error" : "",
|
|
22650
22510
|
modelValue: Data[formItem.key],
|
|
22651
22511
|
"onUpdate:modelValue": ($event) => Data[formItem.key] = $event,
|
|
22652
22512
|
onSelectChange: _cache[0] || (_cache[0] = (evt) => handleSelectChange("country", evt)),
|
|
22653
22513
|
onChange: ($event) => handleChange(formItem.key),
|
|
22654
22514
|
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({
|
|
22515
|
+
}, { ref_for: true }, formItem.props), null, 16, ["country", "modelValue", "onUpdate:modelValue", "onChange", "placeholder"])) : (openBlock(), createBlock(resolveDynamicComponent(formItem.render), mergeProps({
|
|
22658
22516
|
key: formItem.key,
|
|
22659
22517
|
modelValue: Data[formItem.key],
|
|
22660
22518
|
"onUpdate:modelValue": ($event) => Data[formItem.key] = $event,
|
|
@@ -22675,40 +22533,32 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
22675
22533
|
};
|
|
22676
22534
|
}
|
|
22677
22535
|
});
|
|
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"];
|
|
22536
|
+
const _hoisted_1$8 = { class: "tips text-[var(--devui-disabled-text)]" };
|
|
22537
|
+
const _hoisted_2$5 = { class: "icons" };
|
|
22538
|
+
const _hoisted_3$3 = ["src", "alt", "onClick"];
|
|
22684
22539
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
22685
22540
|
__name: "auth",
|
|
22686
22541
|
props: {
|
|
22687
|
-
logos: {}
|
|
22688
|
-
recentLoginType: {}
|
|
22542
|
+
logos: {}
|
|
22689
22543
|
},
|
|
22690
22544
|
emits: ["auth"],
|
|
22691
22545
|
setup(__props, { emit: __emit }) {
|
|
22692
22546
|
const request = inject("request");
|
|
22693
22547
|
const API = headRequest(request);
|
|
22694
22548
|
const { t: $t } = i18n.global;
|
|
22695
|
-
const props = __props;
|
|
22696
22549
|
const emits = __emit;
|
|
22697
22550
|
const handleClick = (icon) => {
|
|
22698
22551
|
useReport(LOGIN_MODAL_TAB_SWITCH, { source: `oauth_${icon.alt}` }, API.report);
|
|
22699
22552
|
emits("auth", icon.alt);
|
|
22700
22553
|
};
|
|
22701
|
-
const checkIsRecentLogin = (loginMethodList) => {
|
|
22702
|
-
return loginMethodList.includes(props.recentLoginType);
|
|
22703
|
-
};
|
|
22704
22554
|
return (_ctx, _cache) => {
|
|
22705
|
-
return openBlock(), createElementBlock(
|
|
22706
|
-
createElementVNode("div",
|
|
22707
|
-
createElementVNode("div",
|
|
22555
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
22556
|
+
createElementVNode("div", _hoisted_1$8, " —— " + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.otherLogin")) + " —— ", 1),
|
|
22557
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
22708
22558
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.logos, (icon) => {
|
|
22709
22559
|
return openBlock(), createElementBlock("div", {
|
|
22710
22560
|
key: icon.alt,
|
|
22711
|
-
class: "rounded-[50%] w-[40px] h-[40px] border-[1px] icon-wrap border-solid cursor-pointer otherInfo-icon"
|
|
22561
|
+
class: "rounded-[50%] w-[40px] h-[40px] border-[1px] icon-wrap border-solid cursor-pointer mx-[12px] otherInfo-icon"
|
|
22712
22562
|
}, [
|
|
22713
22563
|
createVNode(unref(Tooltip), {
|
|
22714
22564
|
position: "top",
|
|
@@ -22721,19 +22571,14 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
22721
22571
|
src: icon.src,
|
|
22722
22572
|
alt: icon.alt,
|
|
22723
22573
|
onClick: withModifiers(($event) => handleClick(icon), ["stop"])
|
|
22724
|
-
}, null, 8,
|
|
22574
|
+
}, null, 8, _hoisted_3$3)
|
|
22725
22575
|
]),
|
|
22726
22576
|
_: 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)
|
|
22577
|
+
}, 1032, ["content", "disabled"])
|
|
22733
22578
|
]);
|
|
22734
22579
|
}), 128))
|
|
22735
22580
|
])
|
|
22736
|
-
]);
|
|
22581
|
+
], 64);
|
|
22737
22582
|
};
|
|
22738
22583
|
}
|
|
22739
22584
|
});
|
|
@@ -22823,16 +22668,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
22823
22668
|
const _hoisted_1$5 = { class: "text-center text-[18px] leading-[26px] font-bold mb-[24px] flex items-center justify-center relative" };
|
|
22824
22669
|
const _hoisted_2$3 = { class: "back-img absolute mr-[24px] left-0" };
|
|
22825
22670
|
const _hoisted_3$2 = ["src"];
|
|
22826
|
-
const _hoisted_4$2 = {
|
|
22827
|
-
key: 0,
|
|
22828
|
-
class: "tracking-[.5px]"
|
|
22829
|
-
};
|
|
22671
|
+
const _hoisted_4$2 = { class: "tracking-[.5px]" };
|
|
22830
22672
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
22831
22673
|
__name: "title",
|
|
22832
22674
|
props: {
|
|
22833
22675
|
title: {},
|
|
22834
22676
|
showBack: { type: Boolean },
|
|
22835
|
-
showTitle: { type: Boolean },
|
|
22836
22677
|
icon: {}
|
|
22837
22678
|
},
|
|
22838
22679
|
emits: ["back"],
|
|
@@ -22851,7 +22692,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22851
22692
|
onClick: withModifiers(handleClick, ["stop"])
|
|
22852
22693
|
}, null, 8, _hoisted_3$2)) : createCommentVNode("", true)
|
|
22853
22694
|
]),
|
|
22854
|
-
|
|
22695
|
+
createElementVNode("span", _hoisted_4$2, toDisplayString$1(_ctx.title), 1)
|
|
22855
22696
|
]);
|
|
22856
22697
|
};
|
|
22857
22698
|
}
|
|
@@ -25518,7 +25359,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
25518
25359
|
}
|
|
25519
25360
|
});
|
|
25520
25361
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
25521
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
25362
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-NGWCqH72.js"));
|
|
25522
25363
|
const useSlidCaptcha = () => {
|
|
25523
25364
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
25524
25365
|
const open = (config) => {
|
|
@@ -25641,15 +25482,21 @@ function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
|
|
|
25641
25482
|
stopPoll
|
|
25642
25483
|
};
|
|
25643
25484
|
}
|
|
25644
|
-
const _hoisted_1$1 = { class: "flex items-center gap-1
|
|
25485
|
+
const _hoisted_1$1 = { class: "flex items-center gap-1" };
|
|
25645
25486
|
const _hoisted_2 = { class: "devui-icon__container devui-icon--operable devui-icon--no-slots self-start min-w-[34px] mt-[-6px]" };
|
|
25646
25487
|
const _hoisted_3 = {
|
|
25488
|
+
key: 0,
|
|
25489
|
+
class: "text-[14px] leading-[20px] text-[var(--devui-placeholder)] font-normal"
|
|
25490
|
+
};
|
|
25491
|
+
const _hoisted_4 = {
|
|
25492
|
+
key: 0,
|
|
25493
|
+
class: "flex items-center justify-center mb-[24px] mt-[-2px]"
|
|
25494
|
+
};
|
|
25495
|
+
const _hoisted_5 = {
|
|
25647
25496
|
key: 1,
|
|
25648
|
-
class: "
|
|
25497
|
+
class: "forget-tips text-[var(--devui-link)] my-[16px] min-h-[32px] leading-[32px] px-[12px] tracking-[.5px]"
|
|
25649
25498
|
};
|
|
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" };
|
|
25499
|
+
const _hoisted_6 = { class: "qrcode-container flex flex-col items-center justify-center my-4" };
|
|
25653
25500
|
const _hoisted_7 = ["src"];
|
|
25654
25501
|
const _hoisted_8 = {
|
|
25655
25502
|
key: 0,
|
|
@@ -25657,57 +25504,37 @@ const _hoisted_8 = {
|
|
|
25657
25504
|
};
|
|
25658
25505
|
const _hoisted_9 = {
|
|
25659
25506
|
key: 0,
|
|
25660
|
-
class: "flex flex-col gap-2 items-center justify-center
|
|
25507
|
+
class: "flex flex-col gap-2 items-center justify-center"
|
|
25661
25508
|
};
|
|
25662
|
-
const _hoisted_10 = {
|
|
25663
|
-
const _hoisted_11 = { class: "text-[#252B3A]" };
|
|
25664
|
-
const _hoisted_12 = {
|
|
25509
|
+
const _hoisted_10 = {
|
|
25665
25510
|
key: 1,
|
|
25666
25511
|
class: "flex flex-col gap-3 items-center justify-center"
|
|
25667
25512
|
};
|
|
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 = {
|
|
25513
|
+
const _hoisted_11 = { class: "text-[var(--color-success)]" };
|
|
25514
|
+
const _hoisted_12 = { class: "text-center" };
|
|
25515
|
+
const _hoisted_13 = {
|
|
25675
25516
|
key: 1,
|
|
25676
|
-
class: "
|
|
25517
|
+
class: "text-center mt-2 text-[var(--devui-text-weak)] font-bold"
|
|
25677
25518
|
};
|
|
25678
|
-
const
|
|
25679
|
-
const _hoisted_18 = { class: "mt-[16px]" };
|
|
25680
|
-
const _hoisted_19 = {
|
|
25519
|
+
const _hoisted_14 = {
|
|
25681
25520
|
key: 0,
|
|
25682
|
-
class: "
|
|
25521
|
+
class: "login-modal-info h-[20px]"
|
|
25683
25522
|
};
|
|
25684
|
-
const
|
|
25685
|
-
const
|
|
25686
|
-
const _hoisted_22 = { class: "text-[12px] leading-[32px] text-center" };
|
|
25687
|
-
const _hoisted_23 = {
|
|
25523
|
+
const _hoisted_15 = { class: "login-modal-info-left" };
|
|
25524
|
+
const _hoisted_16 = {
|
|
25688
25525
|
key: 1,
|
|
25689
|
-
class: "
|
|
25526
|
+
class: "mt-[18px]"
|
|
25690
25527
|
};
|
|
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 = {
|
|
25528
|
+
const _hoisted_17 = { class: "flex items-center justify-between pr-[16px]" };
|
|
25529
|
+
const _hoisted_18 = { class: "mr-[16px]" };
|
|
25530
|
+
const _hoisted_19 = {
|
|
25697
25531
|
key: 0,
|
|
25698
|
-
class: "login-modal-
|
|
25532
|
+
class: "login-modal-footer"
|
|
25699
25533
|
};
|
|
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" };
|
|
25534
|
+
const _hoisted_20 = { class: "flex justify-center" };
|
|
25535
|
+
const _hoisted_21 = { key: 1 };
|
|
25536
|
+
const _hoisted_22 = { class: "line-clamp-2" };
|
|
25537
|
+
const _hoisted_23 = { class: "absolute-btn" };
|
|
25711
25538
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
25712
25539
|
...{
|
|
25713
25540
|
name: "GLoginModal"
|
|
@@ -25750,10 +25577,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25750
25577
|
const IconB = TransAssetsUrl(IconSource, "logo-back");
|
|
25751
25578
|
const IconW = TransAssetsUrl(IconSource, "logo-wechat");
|
|
25752
25579
|
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
25580
|
const formErrors = reactive({});
|
|
25758
25581
|
const extraErrors = reactive({
|
|
25759
25582
|
agreement: "",
|
|
@@ -25777,32 +25600,27 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25777
25600
|
{
|
|
25778
25601
|
src: IconC,
|
|
25779
25602
|
alt: "csdn",
|
|
25780
|
-
describe: "csdn" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
|
|
25781
|
-
loginMethodList: ["csdn"]
|
|
25603
|
+
describe: "csdn" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
|
|
25782
25604
|
},
|
|
25783
25605
|
{
|
|
25784
25606
|
src: IconHb,
|
|
25785
25607
|
alt: "hbuilder",
|
|
25786
|
-
describe: "Hbuilder" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
|
|
25787
|
-
loginMethodList: ["hbuilder", "hbuilder_plugins"]
|
|
25608
|
+
describe: "Hbuilder" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
|
|
25788
25609
|
},
|
|
25789
25610
|
{
|
|
25790
25611
|
src: currentTheme.value === ThemeType.WHITE ? IconG : IconGW,
|
|
25791
25612
|
alt: "github",
|
|
25792
|
-
describe: "github" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
|
|
25793
|
-
loginMethodList: ["github"]
|
|
25613
|
+
describe: "github" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
|
|
25794
25614
|
},
|
|
25795
25615
|
{
|
|
25796
25616
|
src: IconH,
|
|
25797
25617
|
alt: "gitee",
|
|
25798
|
-
describe: "gitee" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
|
|
25799
|
-
loginMethodList: ["gitee"]
|
|
25618
|
+
describe: "gitee" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
|
|
25800
25619
|
},
|
|
25801
25620
|
{
|
|
25802
25621
|
src: IconW,
|
|
25803
25622
|
alt: "wechat_open",
|
|
25804
|
-
describe: $t("gitCodeLayout.LoginModal.action.wechatScanCodeLogin")
|
|
25805
|
-
loginMethodList: ["wechat_open", "wechat_mp"]
|
|
25623
|
+
describe: $t("gitCodeLayout.LoginModal.action.wechatScanCodeLogin")
|
|
25806
25624
|
}
|
|
25807
25625
|
]);
|
|
25808
25626
|
const emits = __emit;
|
|
@@ -25841,7 +25659,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25841
25659
|
{
|
|
25842
25660
|
type: "input",
|
|
25843
25661
|
key: "username",
|
|
25844
|
-
label: $t("gitCodeLayout.
|
|
25662
|
+
label: $t("gitCodeLayout.LoginModal.subtitle.name") + "/" + $t("gitCodeLayout.common.email"),
|
|
25845
25663
|
required: true
|
|
25846
25664
|
},
|
|
25847
25665
|
{
|
|
@@ -26024,7 +25842,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26024
25842
|
const status = ref(false);
|
|
26025
25843
|
const hwStatus = ref(false);
|
|
26026
25844
|
const FormRef = shallowRef(null);
|
|
26027
|
-
const tabPanel = ref("
|
|
25845
|
+
const tabPanel = ref("miniProgram");
|
|
26028
25846
|
const formType = ref(props.defaultType);
|
|
26029
25847
|
const showProtoCheck = ref(false);
|
|
26030
25848
|
const agreeAndLogin = () => {
|
|
@@ -26044,14 +25862,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26044
25862
|
dict: RegisterForm.map((item) => {
|
|
26045
25863
|
return {
|
|
26046
25864
|
...item,
|
|
26047
|
-
defaultValue: item.key === "mobile" ? cacheForm.mobile : item.key === "verificationcode" ? cacheForm.verificationcode : ""
|
|
26048
|
-
editableSelect: false
|
|
25865
|
+
defaultValue: item.key === "mobile" ? cacheForm.mobile : item.key === "verificationcode" ? cacheForm.verificationcode : ""
|
|
26049
25866
|
};
|
|
26050
25867
|
}),
|
|
26051
25868
|
showLabel: true,
|
|
26052
25869
|
layout: "horizontal",
|
|
26053
|
-
|
|
26054
|
-
showBack:
|
|
25870
|
+
title: `🎉${$t("gitCodeLayout.LoginModal.title.register")}`,
|
|
25871
|
+
showBack: true
|
|
26055
25872
|
};
|
|
26056
25873
|
}
|
|
26057
25874
|
if (formType.value === "forget") {
|
|
@@ -26068,13 +25885,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26068
25885
|
dict: VerifyForm.map((item) => {
|
|
26069
25886
|
return {
|
|
26070
25887
|
...item,
|
|
26071
|
-
defaultValue: item.key === "mobile" ? cacheForm.mobile : ""
|
|
26072
|
-
editableSelect: true
|
|
25888
|
+
defaultValue: item.key === "mobile" ? cacheForm.mobile : ""
|
|
26073
25889
|
};
|
|
26074
25890
|
}),
|
|
26075
25891
|
showLabel: false,
|
|
26076
25892
|
layout: "vertical",
|
|
26077
|
-
|
|
25893
|
+
title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
|
|
26078
25894
|
showBack: false
|
|
26079
25895
|
};
|
|
26080
25896
|
} else if (tabPanel.value === "password") {
|
|
@@ -26082,7 +25898,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26082
25898
|
dict: PasswordForm,
|
|
26083
25899
|
showLabel: false,
|
|
26084
25900
|
layout: "vertical",
|
|
26085
|
-
|
|
25901
|
+
title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
|
|
26086
25902
|
showBack: false
|
|
26087
25903
|
};
|
|
26088
25904
|
} else {
|
|
@@ -26090,7 +25906,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26090
25906
|
dict: MiniProgramForm,
|
|
26091
25907
|
showLabel: false,
|
|
26092
25908
|
layout: "vertical",
|
|
26093
|
-
|
|
25909
|
+
title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
|
|
26094
25910
|
showBack: false
|
|
26095
25911
|
};
|
|
26096
25912
|
}
|
|
@@ -26142,7 +25958,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26142
25958
|
};
|
|
26143
25959
|
const mfaCheck = ref(false);
|
|
26144
25960
|
const handleMFALogin = (data) => {
|
|
26145
|
-
phoneAndPasswordLogin(data, API
|
|
25961
|
+
phoneAndPasswordLogin(data, API);
|
|
26146
25962
|
};
|
|
26147
25963
|
const slidCaptcha = useSlidCaptcha();
|
|
26148
25964
|
const LoginCheck = async () => {
|
|
@@ -26174,7 +25990,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26174
25990
|
}
|
|
26175
25991
|
};
|
|
26176
25992
|
const registerAction = async (res, mobile) => {
|
|
26177
|
-
var _a;
|
|
26178
25993
|
const data = {
|
|
26179
25994
|
username: res.username,
|
|
26180
25995
|
password: res.password,
|
|
@@ -26190,9 +26005,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26190
26005
|
cacheForm.user_id = user_id;
|
|
26191
26006
|
cacheForm.mask = mask;
|
|
26192
26007
|
cacheForm.mobile = res.mobile;
|
|
26193
|
-
|
|
26194
|
-
saveLoginMobile(mobile, country);
|
|
26195
|
-
phoneAndPasswordLogin(result2.data.data, API, LoginMethodEnum.PHONE);
|
|
26008
|
+
phoneAndPasswordLogin(result2.data.data, API);
|
|
26196
26009
|
} else {
|
|
26197
26010
|
extraErrors.requestInfo = result2.error.error_message;
|
|
26198
26011
|
}
|
|
@@ -26239,7 +26052,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26239
26052
|
mobile,
|
|
26240
26053
|
code: res.code
|
|
26241
26054
|
};
|
|
26242
|
-
await loginFunction({ validFunc: LoginCheck, successFunc: loginSuccess, failFunc: loginFail, loginDeviceType: "pc"
|
|
26055
|
+
await loginFunction({ validFunc: LoginCheck, successFunc: loginSuccess, failFunc: loginFail, loginDeviceType: "pc" }, params, graphValidate, handleRemoteLogin);
|
|
26243
26056
|
}
|
|
26244
26057
|
setTimeout(() => {
|
|
26245
26058
|
loading.value = false;
|
|
@@ -26512,8 +26325,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26512
26325
|
const pcAuthLogin = (type) => {
|
|
26513
26326
|
authType.value = type;
|
|
26514
26327
|
saveOauthType(type);
|
|
26515
|
-
|
|
26516
|
-
|
|
26328
|
+
if (tabPanel.value === "miniProgram") {
|
|
26329
|
+
stopPoll();
|
|
26330
|
+
miniProgramStatus.value = "TIMEOUT";
|
|
26331
|
+
}
|
|
26517
26332
|
if (localStorage$2.getItem("access_token")) {
|
|
26518
26333
|
emits("close", true);
|
|
26519
26334
|
} else {
|
|
@@ -26590,9 +26405,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26590
26405
|
emits("directClose");
|
|
26591
26406
|
return;
|
|
26592
26407
|
}
|
|
26593
|
-
useReport(REGISTER_CLICK_TO_LOGIN, {}, API.report);
|
|
26594
26408
|
formType.value = "login";
|
|
26595
|
-
checkMiniProgramStatus();
|
|
26596
26409
|
};
|
|
26597
26410
|
const miniProgramStatus = ref("WAITING");
|
|
26598
26411
|
const miniProgramLoading = ref(false);
|
|
@@ -26608,7 +26421,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26608
26421
|
};
|
|
26609
26422
|
const fetchMiniProgramStatus = async () => {
|
|
26610
26423
|
var _a;
|
|
26611
|
-
if (
|
|
26424
|
+
if (tabPanel.value !== "miniProgram") {
|
|
26612
26425
|
stopPoll();
|
|
26613
26426
|
return;
|
|
26614
26427
|
}
|
|
@@ -26651,8 +26464,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26651
26464
|
tabPanel.value = val;
|
|
26652
26465
|
authType.value = null;
|
|
26653
26466
|
useReport(LOGIN_MODAL_TAB_SWITCH, { source: `tab_${val}` }, API.report);
|
|
26654
|
-
|
|
26655
|
-
|
|
26467
|
+
if (val !== "miniProgram") {
|
|
26468
|
+
stopPoll();
|
|
26469
|
+
handleMiniProgramReset();
|
|
26470
|
+
return;
|
|
26471
|
+
}
|
|
26656
26472
|
if (!miniProgramInfo.value.scene_id) {
|
|
26657
26473
|
getMiniProgramQrCode();
|
|
26658
26474
|
return;
|
|
@@ -26668,24 +26484,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26668
26484
|
shouldMiniProgramPoll.value = true;
|
|
26669
26485
|
startPoll();
|
|
26670
26486
|
};
|
|
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
26487
|
const resetPwdDirectly = ref(false);
|
|
26682
26488
|
const resetPwdWhiteList = ["change_password"];
|
|
26683
26489
|
onMounted(() => {
|
|
26684
|
-
if (formType.value === "login") {
|
|
26685
|
-
|
|
26490
|
+
if (tabPanel.value === "miniProgram" && formType.value === "login") {
|
|
26491
|
+
handleTabPanelChange(tabPanel.value);
|
|
26686
26492
|
}
|
|
26687
|
-
getRecentLogin();
|
|
26688
|
-
getTodayTechHistory();
|
|
26689
26493
|
if (resetPwdWhiteList.includes(props.resetPwdSource) && formType.value === "forget") {
|
|
26690
26494
|
resetPwdDirectly.value = true;
|
|
26691
26495
|
}
|
|
@@ -26694,7 +26498,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26694
26498
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
26695
26499
|
createVNode(unref(Modal), {
|
|
26696
26500
|
modelValue: unref(vModels),
|
|
26697
|
-
"onUpdate:modelValue": _cache[
|
|
26501
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => isRef(vModels) ? vModels.value = $event : null),
|
|
26698
26502
|
"show-close": false,
|
|
26699
26503
|
"lock-scroll": _ctx.lockScroll,
|
|
26700
26504
|
draggable: _ctx.draggable,
|
|
@@ -26704,288 +26508,157 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26704
26508
|
class: normalizeClass([
|
|
26705
26509
|
"login-modal",
|
|
26706
26510
|
formType.value === "login" ? "login-modal-l" : "login-modal-r",
|
|
26707
|
-
formType.value === "register" ? "login-modal-register" : "",
|
|
26708
26511
|
mfaCheck.value ? "login-modal-mfa" : ""
|
|
26709
26512
|
]),
|
|
26710
26513
|
onClose: onModalClose
|
|
26711
26514
|
}, createSlots({
|
|
26712
|
-
default: withCtx(() =>
|
|
26713
|
-
|
|
26714
|
-
|
|
26715
|
-
|
|
26716
|
-
|
|
26717
|
-
|
|
26718
|
-
|
|
26719
|
-
|
|
26720
|
-
|
|
26721
|
-
|
|
26722
|
-
|
|
26723
|
-
|
|
26724
|
-
|
|
26725
|
-
|
|
26726
|
-
|
|
26727
|
-
|
|
26728
|
-
|
|
26515
|
+
default: withCtx(() => [
|
|
26516
|
+
mfaCheck.value ? (openBlock(), createBlock(MFA, {
|
|
26517
|
+
key: 0,
|
|
26518
|
+
API: unref(API),
|
|
26519
|
+
onBack: handleBack,
|
|
26520
|
+
onSuccess: handleMFALogin,
|
|
26521
|
+
mask: cacheForm.mask
|
|
26522
|
+
}, null, 8, ["API", "mask"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
26523
|
+
formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
26524
|
+
createElementVNode("div", {
|
|
26525
|
+
class: normalizeClass([
|
|
26526
|
+
"login-modal-tab mr-[18px]",
|
|
26527
|
+
tabPanel.value === "miniProgram" ? "login-modal-tab-active" : "login-modal-tab-inactive"
|
|
26528
|
+
]),
|
|
26529
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleTabPanelChange("miniProgram"), ["stop"]))
|
|
26530
|
+
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.title")), 3),
|
|
26531
|
+
createElementVNode("div", {
|
|
26532
|
+
class: normalizeClass([
|
|
26533
|
+
"login-modal-tab mr-[18px] ml-[18px]",
|
|
26534
|
+
tabPanel.value === "verifyCode" ? "login-modal-tab-active" : "login-modal-tab-inactive"
|
|
26535
|
+
]),
|
|
26536
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleTabPanelChange("verifyCode"), ["stop"]))
|
|
26537
|
+
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.sms")), 3),
|
|
26538
|
+
createElementVNode("div", {
|
|
26539
|
+
class: normalizeClass([
|
|
26540
|
+
"login-modal-tab ml-[18px]",
|
|
26541
|
+
tabPanel.value === "password" ? "login-modal-tab-active" : "login-modal-tab-inactive"
|
|
26542
|
+
]),
|
|
26543
|
+
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => handleTabPanelChange("password"), ["stop"]))
|
|
26544
|
+
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.password")), 3)
|
|
26545
|
+
])) : createCommentVNode("", true),
|
|
26546
|
+
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),
|
|
26547
|
+
formType.value === "login" && tabPanel.value === "miniProgram" ? (openBlock(), createBlock(DataPanel, {
|
|
26548
|
+
key: 2,
|
|
26549
|
+
loading: miniProgramLoading.value,
|
|
26550
|
+
empty: false,
|
|
26551
|
+
card: false,
|
|
26552
|
+
class: "mini-program-qrcode",
|
|
26553
|
+
border: false,
|
|
26554
|
+
animation: true
|
|
26555
|
+
}, {
|
|
26556
|
+
default: withCtx(() => [
|
|
26557
|
+
createElementVNode("div", _hoisted_6, [
|
|
26729
26558
|
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
|
-
|
|
26559
|
+
src: miniProgramInfo.value.qrcode,
|
|
26560
|
+
alt: "小程序二维码",
|
|
26561
|
+
class: "w-[158px] h-[158px]"
|
|
26562
|
+
}, null, 8, _hoisted_7),
|
|
26563
|
+
miniProgramStatus.value !== "WAITING" ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
26564
|
+
miniProgramStatus.value === "TIMEOUT" ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
26565
|
+
createVNode(GIcon, {
|
|
26566
|
+
name: "gt-line-Refresh",
|
|
26567
|
+
size: "18"
|
|
26568
|
+
}),
|
|
26569
|
+
createElementVNode("div", null, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip01")), 1),
|
|
26570
|
+
createElementVNode("button", { onClick: getMiniProgramQrCode }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip02")), 1)
|
|
26571
|
+
])) : createCommentVNode("", true),
|
|
26572
|
+
["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
26573
|
+
createElementVNode("div", _hoisted_11, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip03")), 1),
|
|
26574
|
+
createElementVNode("div", _hoisted_12, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip04")), 1)
|
|
26575
|
+
])) : createCommentVNode("", true)
|
|
26576
|
+
])) : createCommentVNode("", true),
|
|
26577
|
+
!["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p", _hoisted_13, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip05")), 1)) : (openBlock(), createElementBlock("button", {
|
|
26578
|
+
key: 2,
|
|
26579
|
+
onClick: getMiniProgramQrCode,
|
|
26580
|
+
class: "mt-2"
|
|
26581
|
+
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip06")), 1))
|
|
26582
|
+
])
|
|
26583
|
+
]),
|
|
26584
|
+
_: 1
|
|
26585
|
+
}, 8, ["loading"])) : (openBlock(), createBlock(unref(_sfc_main$a), {
|
|
26586
|
+
key: formType.value,
|
|
26587
|
+
DataList: FormConfig.value.dict,
|
|
26588
|
+
"show-label": FormConfig.value.showLabel,
|
|
26589
|
+
ref_key: "FormRef",
|
|
26590
|
+
ref: FormRef,
|
|
26591
|
+
onCountDown: handleCountDown,
|
|
26592
|
+
onChange: handleFormChange,
|
|
26593
|
+
onComplete: handleFormInput,
|
|
26594
|
+
layout: FormConfig.value.layout,
|
|
26595
|
+
size: "lg",
|
|
26596
|
+
"label-size": "md",
|
|
26597
|
+
"message-type": "none",
|
|
26598
|
+
"hide-required-mark": "",
|
|
26599
|
+
onKeypress: withKeys(handleConfirm, ["enter"]),
|
|
26600
|
+
class: normalizeClass(formType.value === "register" ? "mt-[20px] login-form-register-cell" : "login-form-common-cell"),
|
|
26601
|
+
errors: { msgError: msgError.value },
|
|
26602
|
+
"is-forget": formType.value === "forget"
|
|
26603
|
+
}, {
|
|
26604
|
+
submit: withCtx(() => [
|
|
26605
|
+
formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_14, [
|
|
26606
|
+
createElementVNode("div", _hoisted_15, [
|
|
26607
|
+
createTextVNode(toDisplayString$1(errorMsg.value) + " ", 1),
|
|
26608
|
+
errForRemoteLogin.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
26609
|
+
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.unusualLogin")), 1),
|
|
26610
|
+
createElementVNode("span", {
|
|
26611
|
+
onClick: _cache[3] || (_cache[3] = ($event) => handleTabPanelChange("verifyCode")),
|
|
26612
|
+
class: "login-modal-info-left__link"
|
|
26613
|
+
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.smsLogin")), 1)
|
|
26614
|
+
], 64)) : createCommentVNode("", true)
|
|
26615
|
+
]),
|
|
26616
|
+
withDirectives(createElementVNode("div", {
|
|
26617
|
+
class: "login-modal-info-right",
|
|
26618
|
+
onClick: _cache[4] || (_cache[4] = withModifiers(($event) => formType.value = "forget", ["stop"]))
|
|
26619
|
+
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.forgotPassword")), 513), [
|
|
26620
|
+
[vShow, tabPanel.value === "password" && formType.value === "login"]
|
|
26621
|
+
])
|
|
26622
|
+
])) : createCommentVNode("", true),
|
|
26623
|
+
formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
26624
|
+
createVNode(unref(Button), {
|
|
26625
|
+
color: "primary",
|
|
26626
|
+
variant: "solid",
|
|
26627
|
+
size: "lg",
|
|
26628
|
+
onClick: handleConfirm,
|
|
26629
|
+
loading: loading.value,
|
|
26630
|
+
disabled: disabled.value,
|
|
26631
|
+
class: "login-modal-button"
|
|
26747
26632
|
}, {
|
|
26748
26633
|
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
|
-
])
|
|
26634
|
+
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.login")), 1)
|
|
26781
26635
|
]),
|
|
26782
26636
|
_: 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"]))
|
|
26637
|
+
}, 8, ["loading", "disabled"]),
|
|
26638
|
+
createElementVNode("div", _hoisted_17, [
|
|
26639
|
+
_ctx.openHarmonyGuide ? (openBlock(), createElementBlock("div", {
|
|
26640
|
+
key: 0,
|
|
26641
|
+
class: "text-[var(--theme-link)] text-center mt-[12px] cursor-pointer leading-[32px] openharmony-btn",
|
|
26642
|
+
onClick: withModifiers(handleRegisterHarmony, ["stop"])
|
|
26800
26643
|
}, [
|
|
26801
|
-
|
|
26802
|
-
|
|
26803
|
-
|
|
26804
|
-
|
|
26805
|
-
|
|
26806
|
-
|
|
26807
|
-
],
|
|
26644
|
+
_cache[16] || (_cache[16] = createElementVNode("img", {
|
|
26645
|
+
src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
|
|
26646
|
+
alt: "",
|
|
26647
|
+
class: "mr-[16px] inline-block"
|
|
26648
|
+
}, null, -1)),
|
|
26649
|
+
createElementVNode("span", _hoisted_18, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.oh")), 1)
|
|
26650
|
+
])) : createCommentVNode("", true),
|
|
26808
26651
|
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"
|
|
26652
|
+
class: "text-[var(--theme-link)] text-center mt-[12px] cursor-pointer leading-[32px] hover:underline",
|
|
26653
|
+
onClick: withModifiers(clickRegister, ["stop"])
|
|
26821
26654
|
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.registerAgain")), 1)
|
|
26822
26655
|
])
|
|
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
|
-
}),
|
|
26656
|
+
])) : createCommentVNode("", true)
|
|
26657
|
+
]),
|
|
26658
|
+
_: 1
|
|
26659
|
+
}, 8, ["DataList", "show-label", "layout", "class", "errors", "is-forget"]))
|
|
26660
|
+
], 64))
|
|
26661
|
+
]),
|
|
26989
26662
|
_: 2
|
|
26990
26663
|
}, [
|
|
26991
26664
|
!mfaCheck.value ? {
|
|
@@ -26995,11 +26668,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26995
26668
|
createVNode(GTitle, {
|
|
26996
26669
|
icon: unref(IconB),
|
|
26997
26670
|
title: FormConfig.value.title,
|
|
26998
|
-
"show-title": FormConfig.value.showTitle,
|
|
26999
26671
|
onBack: handleTitleBackClick,
|
|
27000
26672
|
"show-back": FormConfig.value.showBack,
|
|
27001
26673
|
class: "login-modal-title flex-1"
|
|
27002
|
-
}, null, 8, ["icon", "title", "show-
|
|
26674
|
+
}, null, 8, ["icon", "title", "show-back"]),
|
|
27003
26675
|
createElementVNode("div", _hoisted_2, [
|
|
27004
26676
|
_ctx.showClose && !showProtoCheck.value ? (openBlock(), createBlock(GIcon, {
|
|
27005
26677
|
key: 0,
|
|
@@ -27008,16 +26680,86 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
27008
26680
|
size: "18"
|
|
27009
26681
|
})) : createCommentVNode("", true)
|
|
27010
26682
|
])
|
|
27011
|
-
])
|
|
26683
|
+
]),
|
|
26684
|
+
formType.value === "register" ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.registerDesc")), 1)) : createCommentVNode("", true)
|
|
27012
26685
|
]),
|
|
27013
26686
|
key: "0"
|
|
26687
|
+
} : void 0,
|
|
26688
|
+
!mfaCheck.value ? {
|
|
26689
|
+
name: "footer",
|
|
26690
|
+
fn: withCtx(() => {
|
|
26691
|
+
var _a;
|
|
26692
|
+
return [
|
|
26693
|
+
formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
26694
|
+
createVNode(GAuth, {
|
|
26695
|
+
logos,
|
|
26696
|
+
onAuth: pcAuthLogin
|
|
26697
|
+
}, null, 8, ["logos"]),
|
|
26698
|
+
createElementVNode("div", {
|
|
26699
|
+
class: normalizeClass(["login-modal-footer-args", AgreementWarn.value ? "shaking-box" : ""])
|
|
26700
|
+
}, [
|
|
26701
|
+
createElementVNode("div", _hoisted_20, [
|
|
26702
|
+
createVNode(_sfc_main$8, {
|
|
26703
|
+
modelValue: status.value,
|
|
26704
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => status.value = $event),
|
|
26705
|
+
onDeclares: _cache[6] || (_cache[6] = (typ) => handleDisplay(typ))
|
|
26706
|
+
}, null, 8, ["modelValue"])
|
|
26707
|
+
])
|
|
26708
|
+
], 2)
|
|
26709
|
+
])) : formType.value === "register" || formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_21, [
|
|
26710
|
+
createElementVNode("div", {
|
|
26711
|
+
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" : ""])
|
|
26712
|
+
}, [
|
|
26713
|
+
createElementVNode("span", _hoisted_22, toDisplayString$1(errorMsg.value), 1)
|
|
26714
|
+
], 2),
|
|
26715
|
+
formType.value === "register" ? (openBlock(), createElementBlock("div", {
|
|
26716
|
+
key: 0,
|
|
26717
|
+
class: normalizeClass(["register-agree", [AgreementWarn.value ? "shaking-box" : ""]])
|
|
26718
|
+
}, [
|
|
26719
|
+
createVNode(_sfc_main$7, {
|
|
26720
|
+
modelValue: hwStatus.value,
|
|
26721
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => hwStatus.value = $event),
|
|
26722
|
+
onDeclares: _cache[8] || (_cache[8] = (typ) => handleDisplay(typ, "huawei")),
|
|
26723
|
+
"agreement-text": `《${unref($t)("gitCodeLayout.LoginModal.link.huaweiCloudAgreement")}》`,
|
|
26724
|
+
"privacy-text": `《${unref($t)("gitCodeLayout.LoginModal.link.agreementPrivacy")}》`,
|
|
26725
|
+
onClick: _cache[9] || (_cache[9] = ($event) => agreementReport("signup_select", `hw${hwStatus.value ? 1 : 0}`))
|
|
26726
|
+
}, null, 8, ["modelValue", "agreement-text", "privacy-text"]),
|
|
26727
|
+
createVNode(_sfc_main$7, {
|
|
26728
|
+
modelValue: status.value,
|
|
26729
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => status.value = $event),
|
|
26730
|
+
onDeclares: _cache[11] || (_cache[11] = (typ) => handleDisplay(typ)),
|
|
26731
|
+
"agreement-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.agreement")}》`,
|
|
26732
|
+
"privacy-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")}》`,
|
|
26733
|
+
onClick: _cache[12] || (_cache[12] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
|
|
26734
|
+
}, null, 8, ["modelValue", "agreement-text", "privacy-text"])
|
|
26735
|
+
], 2)) : createCommentVNode("", true),
|
|
26736
|
+
createElementVNode("div", _hoisted_23, [
|
|
26737
|
+
createVNode(unref(Button), {
|
|
26738
|
+
color: "primary",
|
|
26739
|
+
variant: "solid",
|
|
26740
|
+
size: "lg",
|
|
26741
|
+
onClick: handleConfirm,
|
|
26742
|
+
disabled: disabled.value,
|
|
26743
|
+
loading: loading.value,
|
|
26744
|
+
class: "w-[100%]"
|
|
26745
|
+
}, {
|
|
26746
|
+
default: withCtx(() => [
|
|
26747
|
+
createTextVNode(toDisplayString$1(formType.value === "forget" ? unref($t)("gitCodeLayout.userSetting.account.changePassword") : unref($t)("gitCodeLayout.LoginModal.action.verify")), 1)
|
|
26748
|
+
]),
|
|
26749
|
+
_: 1
|
|
26750
|
+
}, 8, ["disabled", "loading"])
|
|
26751
|
+
])
|
|
26752
|
+
])) : createCommentVNode("", true)
|
|
26753
|
+
];
|
|
26754
|
+
}),
|
|
26755
|
+
key: "1"
|
|
27014
26756
|
} : void 0
|
|
27015
26757
|
]), 1032, ["modelValue", "lock-scroll", "draggable", "escapable", "append-to-body", "class"]),
|
|
27016
26758
|
createVNode(_sfc_main$5, {
|
|
27017
26759
|
visible: showProtoCheck.value,
|
|
27018
|
-
"onUpdate:visible": _cache[
|
|
26760
|
+
"onUpdate:visible": _cache[14] || (_cache[14] = ($event) => showProtoCheck.value = $event),
|
|
27019
26761
|
onConfirm: agreeAndLogin,
|
|
27020
|
-
onDeclares: _cache[
|
|
26762
|
+
onDeclares: _cache[15] || (_cache[15] = (typ) => handleDisplay(typ))
|
|
27021
26763
|
}, null, 8, ["visible"])
|
|
27022
26764
|
], 64);
|
|
27023
26765
|
};
|