vue-layout-gitcode 1.9.30 → 1.9.31
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-DG5HYO25.js → GloabarSearch-D3AK8HeU.js} +3 -3
- package/{MenuItem-D5OuLRsQ.js → MenuItem-B9fzjR7u.js} +1 -1
- package/{ProjectMenuList-Dr-tI2ul.js → ProjectMenuList-CW02MUPv.js} +2 -2
- package/{ProjectMenuListV2-CaTlAGt7.js → ProjectMenuListV2-C1HatE5S.js} +2 -2
- package/{ProjectSearch-DF39XPM-.js → ProjectSearch-oJ97bkmL.js} +1 -1
- package/{SearchHistoryList-DbjGi-yN.js → SearchHistoryList-BPgp938A.js} +1 -1
- package/{SearchPrefixTag-CGlxsOjY.js → SearchPrefixTag-KqSTKuqm.js} +1 -1
- package/{SearchRecommed-Bvn7wpOY.js → SearchRecommed-zJLm0RAD.js} +2 -2
- package/{SearchScopeList-324SdxN6.js → SearchScopeList-DOnYZaWr.js} +1 -1
- package/{UserSearch-DZVFy1L7.js → UserSearch-B_ArHlbo.js} +1 -1
- package/{index-CQE5k5yK.js → index-CKPuRJPh.js} +1 -1
- package/{index-usrjdnyc.js → index-CcvuBFo7.js} +375 -244
- package/{index-CQKgFfa0.js → index-Qh085o9-.js} +1 -1
- package/{index-DI-IX24r.js → index-WHElVTHI.js} +2 -2
- package/index.js +1 -1
- package/{notice-CNFf1V59.js → notice-CxOWHKnT.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-BtqIq0hv.js → transWebUrl-DTMMboBc.js} +1 -1
|
@@ -51,7 +51,7 @@ import "vue-devui-lal/checkbox/style.css";
|
|
|
51
51
|
import { Modal } from "vue-devui-lal/modal";
|
|
52
52
|
import "vue-devui-lal/modal/style.css";
|
|
53
53
|
const _hoisted_1$x = ["xlink:href"];
|
|
54
|
-
const _hoisted_2$
|
|
54
|
+
const _hoisted_2$n = ["xlink:href"];
|
|
55
55
|
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
56
56
|
__name: "index",
|
|
57
57
|
props: {
|
|
@@ -92,7 +92,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
92
92
|
}, [
|
|
93
93
|
createElementVNode("use", {
|
|
94
94
|
"xlink:href": `#${_ctx.name}`
|
|
95
|
-
}, null, 8, _hoisted_2$
|
|
95
|
+
}, null, 8, _hoisted_2$n)
|
|
96
96
|
], 6));
|
|
97
97
|
};
|
|
98
98
|
}
|
|
@@ -7600,7 +7600,7 @@ if (process.env.NODE_ENV !== "production") ;
|
|
|
7600
7600
|
const gitCodeLayout$1 = {
|
|
7601
7601
|
home: {
|
|
7602
7602
|
migrationAnnounce: {
|
|
7603
|
-
preContent: "亲爱的 {siteName} 开发者:平台正在进行系统化融合与升级,预计将于
|
|
7603
|
+
preContent: "亲爱的 {siteName} 开发者:平台正在进行系统化融合与升级,预计将于10月28日12:00完成。之后,您将体验更强大、更稳定的平台。",
|
|
7604
7604
|
content: "亲爱的开发者:平台已经完成了系统化的融合与升级,您可以体验更强大、更稳定的 {siteName} 平台。",
|
|
7605
7605
|
viewDetail: "【查看详情】",
|
|
7606
7606
|
closePermanently: "不再提醒",
|
|
@@ -7751,7 +7751,8 @@ const gitCodeLayout$1 = {
|
|
|
7751
7751
|
notcie1: "你的登录信息已过期,请重新登录!",
|
|
7752
7752
|
notcie2: "登录之后才能开启全新体验哦",
|
|
7753
7753
|
readPrivacyPolicy: "请阅读并同意用户协议以及其隐私政策",
|
|
7754
|
-
welcome: "欢迎来到 AtomGit"
|
|
7754
|
+
welcome: "欢迎来到 AtomGit",
|
|
7755
|
+
agreementTip: "请阅读并同意用户协议、隐私政策和数据共享"
|
|
7755
7756
|
},
|
|
7756
7757
|
foldup: "收起",
|
|
7757
7758
|
iCreated: "我创建的",
|
|
@@ -7847,7 +7848,7 @@ const gitCodeLayout$1 = {
|
|
|
7847
7848
|
SMSVerificationCode: "请输入{count}位有效的短信验证码",
|
|
7848
7849
|
fillNecessaryInfo: "请输入有效的手机号码",
|
|
7849
7850
|
youNeeToAgr: "您需要同意",
|
|
7850
|
-
toUseGit: "
|
|
7851
|
+
toUseGit: "才能使用。",
|
|
7851
7852
|
ifYouDoNotAgrWe: "如果您不同意,很遗憾我们无法为您提供服务。",
|
|
7852
7853
|
disAndQui: "不同意并退出",
|
|
7853
7854
|
agrAndSigIn: "同意并登录",
|
|
@@ -7859,7 +7860,13 @@ const gitCodeLayout$1 = {
|
|
|
7859
7860
|
agreement: "用户协议",
|
|
7860
7861
|
privacyPolicy: "隐私政策",
|
|
7861
7862
|
huaweiCloudAgreement: "华为云用户协议",
|
|
7862
|
-
agreementPrivacy: "华为云隐私政策声明"
|
|
7863
|
+
agreementPrivacy: "华为云隐私政策声明",
|
|
7864
|
+
gitCodeProtocol: "GitCode用户协议",
|
|
7865
|
+
gitCodePrivacy: "GitCode隐私政策",
|
|
7866
|
+
dataShare: "我同意将账号、组织、仓库等信息提供给{name}进行数据共享",
|
|
7867
|
+
chiCloDevSerAgr: "华为云开发者服务协议",
|
|
7868
|
+
chiCloDevPriPolSta: "华为云开发者隐私政策声明",
|
|
7869
|
+
dataShareTip: "数据共享"
|
|
7863
7870
|
},
|
|
7864
7871
|
registerDesc: "AtomGit 与华为云共同为用户提供代码托管服务,在使用代码托管相关服务时,将同步授权并开通华为云服务,并与重庆开源共创科技有限公司(AtomGit的运营主体)关联及共享。",
|
|
7865
7872
|
rule: {
|
|
@@ -7918,7 +7925,7 @@ const zh = {
|
|
|
7918
7925
|
const gitCodeLayout = {
|
|
7919
7926
|
home: {
|
|
7920
7927
|
migrationAnnounce: {
|
|
7921
|
-
preContent: "Dear {siteName} developer, the platform is undergoing integration, expected to be completed on
|
|
7928
|
+
preContent: "Dear {siteName} developer, the platform is undergoing integration, expected to be completed on October 28, 12:00. You will experience a more powerful platform.",
|
|
7922
7929
|
content: "Dear developer, the platform has completed integration, you can experience a more powerful {siteName} platform.",
|
|
7923
7930
|
viewDetail: "[View detail]",
|
|
7924
7931
|
closePermanently: "Don't remind again",
|
|
@@ -8069,7 +8076,8 @@ const gitCodeLayout = {
|
|
|
8069
8076
|
notcie1: "Login has expired, please log in again!",
|
|
8070
8077
|
notcie2: "Log in to unlock a brand new experience!",
|
|
8071
8078
|
readPrivacyPolicy: "Please Read and Agree to the User Agreement and Privacy Policy",
|
|
8072
|
-
welcome: "Welcome to AtomGit"
|
|
8079
|
+
welcome: "Welcome to AtomGit",
|
|
8080
|
+
agreementTip: "Please read and agree to the user agreement, privacy policy and data sharing"
|
|
8073
8081
|
},
|
|
8074
8082
|
foldup: "Collapse",
|
|
8075
8083
|
iCreated: "Yours",
|
|
@@ -8177,7 +8185,13 @@ const gitCodeLayout = {
|
|
|
8177
8185
|
agreement: "User Agreement",
|
|
8178
8186
|
privacyPolicy: "Privacy Policy",
|
|
8179
8187
|
huaweiCloudAgreement: "Huawei Cloud User Agreement",
|
|
8180
|
-
agreementPrivacy: "Huawei Cloud Privacy Policy Statement"
|
|
8188
|
+
agreementPrivacy: "Huawei Cloud Privacy Policy Statement",
|
|
8189
|
+
gitCodeProtocol: "GitCode User Agreement",
|
|
8190
|
+
gitCodePrivacy: "GitCode Privacy Policy",
|
|
8191
|
+
dataShare: "I agree to share my account, organization, repository information with {name} for data sharing",
|
|
8192
|
+
chiCloDevSerAgr: "Huawei Cloud Developer Service Agreement",
|
|
8193
|
+
chiCloDevPriPolSta: "Huawei Cloud Developer Privacy Policy Statement",
|
|
8194
|
+
dataShareTip: "Data Sharing"
|
|
8181
8195
|
},
|
|
8182
8196
|
registerDesc: "AtomGit and Huawei Cloud jointly provide code hosting services for users. When using code hosting services, you will synchronize authorization and activate Huawei Cloud services, and share information with Chongqing Open Source Co-Creation Technology Co., Ltd. (the operator of AtomGit).",
|
|
8183
8197
|
rule: {
|
|
@@ -11059,9 +11073,9 @@ const proxyService = (params, customConfigs) => {
|
|
|
11059
11073
|
return service(params);
|
|
11060
11074
|
};
|
|
11061
11075
|
const _hoisted_1$w = { class: "home-nav-right" };
|
|
11062
|
-
const _hoisted_2$
|
|
11063
|
-
const _hoisted_3$
|
|
11064
|
-
const _hoisted_4$
|
|
11076
|
+
const _hoisted_2$m = { class: "home-nav-item" };
|
|
11077
|
+
const _hoisted_3$l = { class: "tooltip-sign" };
|
|
11078
|
+
const _hoisted_4$g = { class: "home-nav-tooltip-wrapper" };
|
|
11065
11079
|
const _hoisted_5$a = { class: "home-nav-text" };
|
|
11066
11080
|
const _hoisted_6$9 = { class: "home-nav-tooltip-wrapper" };
|
|
11067
11081
|
const _hoisted_7$6 = { class: "home-nav-text" };
|
|
@@ -11350,7 +11364,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
11350
11364
|
"overlay-class": "tools-tag-tooltip"
|
|
11351
11365
|
}, {
|
|
11352
11366
|
content: withCtx(() => [
|
|
11353
|
-
createElementVNode("div", _hoisted_4$
|
|
11367
|
+
createElementVNode("div", _hoisted_4$g, [
|
|
11354
11368
|
createElementVNode("div", _hoisted_5$a, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1)
|
|
11355
11369
|
])
|
|
11356
11370
|
]),
|
|
@@ -11359,13 +11373,13 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
11359
11373
|
class: "home-nav-link computing",
|
|
11360
11374
|
onClick: handleInvite
|
|
11361
11375
|
}, [
|
|
11362
|
-
createElementVNode("div", _hoisted_2$
|
|
11376
|
+
createElementVNode("div", _hoisted_2$m, [
|
|
11363
11377
|
_cache[5] || (_cache[5] = createElementVNode("img", {
|
|
11364
11378
|
class: "common-icon inline-block h-[20px] w-[20px]",
|
|
11365
11379
|
src: "https://cdn-static.gitcode.com/static/images/homeweb/invite.svg",
|
|
11366
11380
|
alt: ""
|
|
11367
11381
|
}, null, -1)),
|
|
11368
|
-
createElementVNode("div", _hoisted_3$
|
|
11382
|
+
createElementVNode("div", _hoisted_3$l, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1)
|
|
11369
11383
|
])
|
|
11370
11384
|
])
|
|
11371
11385
|
]),
|
|
@@ -12505,11 +12519,6 @@ const getCurrentLogoMap = () => {
|
|
|
12505
12519
|
const siteType = location.host.includes("atomgit") ? "atomgit" : "gitcode";
|
|
12506
12520
|
return LOGO_MAP[siteType];
|
|
12507
12521
|
};
|
|
12508
|
-
const isGitCodeHost = () => {
|
|
12509
|
-
if (typeof window === "undefined" || typeof location === "undefined") return false;
|
|
12510
|
-
return location.hostname.includes("gitcode");
|
|
12511
|
-
};
|
|
12512
|
-
const currentSiteName = () => isGitCodeHost() ? "GitCode" : "AtomGit";
|
|
12513
12522
|
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
12514
12523
|
...{
|
|
12515
12524
|
name: "GAvatar"
|
|
@@ -13407,9 +13416,9 @@ const _hoisted_1$t = {
|
|
|
13407
13416
|
key: 0,
|
|
13408
13417
|
class: "org-layout-toolbar"
|
|
13409
13418
|
};
|
|
13410
|
-
const _hoisted_2$
|
|
13411
|
-
const _hoisted_3$
|
|
13412
|
-
const _hoisted_4$
|
|
13419
|
+
const _hoisted_2$l = { class: "org-layout-toolbar-title flex-1 ellipsis-two-line" };
|
|
13420
|
+
const _hoisted_3$k = { class: "text-xs" };
|
|
13421
|
+
const _hoisted_4$f = { class: "flex items-center w-full g-repo-breadcrumb-custom" };
|
|
13413
13422
|
const _hoisted_5$9 = {
|
|
13414
13423
|
key: 1,
|
|
13415
13424
|
class: "flex items-center min-w-[30px]"
|
|
@@ -13598,7 +13607,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
13598
13607
|
height: 28,
|
|
13599
13608
|
is_round: false
|
|
13600
13609
|
}, null, 8, ["src", "name"]),
|
|
13601
|
-
createElementVNode("div", _hoisted_2$
|
|
13610
|
+
createElementVNode("div", _hoisted_2$l, toDisplayString$1((_c = unref(orgInfo)) == null ? void 0 : _c.name), 1)
|
|
13602
13611
|
];
|
|
13603
13612
|
}),
|
|
13604
13613
|
_: 1
|
|
@@ -13613,7 +13622,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
13613
13622
|
default: withCtx(() => {
|
|
13614
13623
|
var _a2;
|
|
13615
13624
|
return [
|
|
13616
|
-
createElementVNode("span", _hoisted_3$
|
|
13625
|
+
createElementVNode("span", _hoisted_3$k, toDisplayString$1(((_a2 = _ctx.orgProps) == null ? void 0 : _a2.isOrgFollow) ? unref(t2)("gitCodeLayout.home.alreadyFollowed") : unref(t2)("gitCodeLayout.home.focusOn")), 1)
|
|
13617
13626
|
];
|
|
13618
13627
|
}),
|
|
13619
13628
|
_: 1
|
|
@@ -13635,7 +13644,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
13635
13644
|
default: withCtx(() => {
|
|
13636
13645
|
var _a2, _b2, _c, _d, _e, _f, _g;
|
|
13637
13646
|
return [
|
|
13638
|
-
createElementVNode("h2", _hoisted_4$
|
|
13647
|
+
createElementVNode("h2", _hoisted_4$f, [
|
|
13639
13648
|
createVNode(GLink, {
|
|
13640
13649
|
href: (_a2 = unref(breadcrumb)[0]) == null ? void 0 : _a2.path,
|
|
13641
13650
|
class: "pr-[12px]"
|
|
@@ -16535,9 +16544,9 @@ const _hoisted_1$p = {
|
|
|
16535
16544
|
key: 0,
|
|
16536
16545
|
class: "user-level-avatar-badge"
|
|
16537
16546
|
};
|
|
16538
|
-
const _hoisted_2$
|
|
16539
|
-
const _hoisted_3$
|
|
16540
|
-
const _hoisted_4$
|
|
16547
|
+
const _hoisted_2$k = { class: "flex items-center font-medium gap-[4px]" };
|
|
16548
|
+
const _hoisted_3$j = ["src"];
|
|
16549
|
+
const _hoisted_4$e = { class: "level-name" };
|
|
16541
16550
|
const _hoisted_5$8 = { class: "level-icon" };
|
|
16542
16551
|
const _hoisted_6$7 = ["src"];
|
|
16543
16552
|
const _hoisted_7$4 = { class: "custom-btn" };
|
|
@@ -16595,13 +16604,13 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
16595
16604
|
onClick: handleUpgrade
|
|
16596
16605
|
}, [
|
|
16597
16606
|
__props.accountInfo.need_tips ? (openBlock(), createElementBlock("div", _hoisted_1$p)) : createCommentVNode("", true),
|
|
16598
|
-
createElementVNode("div", _hoisted_2$
|
|
16607
|
+
createElementVNode("div", _hoisted_2$k, [
|
|
16599
16608
|
createElementVNode("img", {
|
|
16600
16609
|
class: "level-avatar",
|
|
16601
16610
|
src: levelInfo.value.avatar,
|
|
16602
16611
|
alt: ""
|
|
16603
|
-
}, null, 8, _hoisted_3$
|
|
16604
|
-
createElementVNode("div", _hoisted_4$
|
|
16612
|
+
}, null, 8, _hoisted_3$j),
|
|
16613
|
+
createElementVNode("div", _hoisted_4$e, [
|
|
16605
16614
|
createElementVNode("div", null, toDisplayString$1(levelInfo.value.name), 1),
|
|
16606
16615
|
createElementVNode("div", _hoisted_5$8, [
|
|
16607
16616
|
createElementVNode("img", {
|
|
@@ -16620,13 +16629,14 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
16620
16629
|
});
|
|
16621
16630
|
const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16622
16631
|
const _hoisted_1$o = { class: "g-user-drawer-info-list pl-[16px]" };
|
|
16623
|
-
const _hoisted_2$
|
|
16624
|
-
const _hoisted_3$
|
|
16625
|
-
const _hoisted_4$
|
|
16632
|
+
const _hoisted_2$j = { class: "max-w-[200px]" };
|
|
16633
|
+
const _hoisted_3$i = ["title"];
|
|
16634
|
+
const _hoisted_4$d = ["title"];
|
|
16626
16635
|
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
16627
16636
|
__name: "UserAvatarMenu",
|
|
16628
16637
|
props: ["isChatBot", "accountInfo", "loginOutFinish", "inAIHub", "independence", "userMenus"],
|
|
16629
|
-
|
|
16638
|
+
emits: ["link-click"],
|
|
16639
|
+
setup(__props, { emit: __emit }) {
|
|
16630
16640
|
const layoutConfig2 = useLayoutConfig();
|
|
16631
16641
|
const API = headRequest(inject("request"));
|
|
16632
16642
|
const repoInfo = inject("repoInfo");
|
|
@@ -16634,9 +16644,11 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16634
16644
|
const userInfo = inject("userInfo");
|
|
16635
16645
|
const { t: t2, locale: locale2 } = i18n.global;
|
|
16636
16646
|
const props = __props;
|
|
16647
|
+
const emit = __emit;
|
|
16637
16648
|
const router2 = useRouter();
|
|
16638
16649
|
const route = useRoute();
|
|
16639
16650
|
const haveVisited = ref(false);
|
|
16651
|
+
const menuContainerRef = ref(null);
|
|
16640
16652
|
const clearSurveyDelayStatus = () => {
|
|
16641
16653
|
const surveyDelay = localStorage$2.getItem(HARMONY_VISITED_DATE);
|
|
16642
16654
|
if (surveyDelay === "true") {
|
|
@@ -16760,9 +16772,34 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16760
16772
|
}
|
|
16761
16773
|
if (item == null ? void 0 : item.link) {
|
|
16762
16774
|
const link = `${transformUrl(layoutConfig2.VITE_HOST)}${item.link}`;
|
|
16775
|
+
emit("link-click");
|
|
16763
16776
|
window.open(link, "_self");
|
|
16764
16777
|
}
|
|
16765
16778
|
}
|
|
16779
|
+
const handleLinkClick = (e) => {
|
|
16780
|
+
const target = e.target;
|
|
16781
|
+
const linkElement = target.closest("a.g-link, .g-link");
|
|
16782
|
+
if (!linkElement) return;
|
|
16783
|
+
const isDisabled = linkElement.hasAttribute("disabled") || linkElement.getAttribute("disabled") === "true" || linkElement.classList.contains("noPointer");
|
|
16784
|
+
if (isDisabled) return;
|
|
16785
|
+
const href = linkElement.getAttribute("href");
|
|
16786
|
+
const to = linkElement.getAttribute("to");
|
|
16787
|
+
const isValidHref = href && href !== "javascript:void(0)" && href !== "#" && href !== "";
|
|
16788
|
+
const isValidTo = to && to !== "";
|
|
16789
|
+
if (isValidHref || isValidTo) {
|
|
16790
|
+
emit("link-click");
|
|
16791
|
+
}
|
|
16792
|
+
};
|
|
16793
|
+
onMounted(() => {
|
|
16794
|
+
if (menuContainerRef.value) {
|
|
16795
|
+
menuContainerRef.value.addEventListener("click", handleLinkClick, true);
|
|
16796
|
+
}
|
|
16797
|
+
});
|
|
16798
|
+
onBeforeUnmount(() => {
|
|
16799
|
+
if (menuContainerRef.value) {
|
|
16800
|
+
menuContainerRef.value.removeEventListener("click", handleLinkClick, true);
|
|
16801
|
+
}
|
|
16802
|
+
});
|
|
16766
16803
|
const getVisit = async (value) => {
|
|
16767
16804
|
const visitedDate = localStorage$2.getItem(AVATAR_VISITED_DATE);
|
|
16768
16805
|
const nowDate = (/* @__PURE__ */ new Date()).toLocaleDateString("zh-CN");
|
|
@@ -16773,7 +16810,10 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16773
16810
|
};
|
|
16774
16811
|
getVisit();
|
|
16775
16812
|
return (_ctx, _cache) => {
|
|
16776
|
-
return openBlock(), createElementBlock("div",
|
|
16813
|
+
return openBlock(), createElementBlock("div", {
|
|
16814
|
+
ref_key: "menuContainerRef",
|
|
16815
|
+
ref: menuContainerRef
|
|
16816
|
+
}, [
|
|
16777
16817
|
createVNode(GLink, {
|
|
16778
16818
|
class: "g-user-drawer-info pl-[32px] pr-[16px] cursor-pointer",
|
|
16779
16819
|
href: `${unref(transformUrl)(unref(layoutConfig2).VITE_HOST)}/${__props.accountInfo.username}`,
|
|
@@ -16788,15 +16828,15 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16788
16828
|
height: 52
|
|
16789
16829
|
}, null, 8, ["name", "src"]),
|
|
16790
16830
|
createElementVNode("div", _hoisted_1$o, [
|
|
16791
|
-
createElementVNode("div", _hoisted_2$
|
|
16831
|
+
createElementVNode("div", _hoisted_2$j, [
|
|
16792
16832
|
createElementVNode("p", {
|
|
16793
16833
|
class: "g-user-drawer-info-list-name ellipsis",
|
|
16794
16834
|
title: __props.accountInfo.nickname
|
|
16795
|
-
}, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_3$
|
|
16835
|
+
}, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_3$i),
|
|
16796
16836
|
createElementVNode("p", {
|
|
16797
16837
|
class: "g-user-drawer-info-list-id ellipsis",
|
|
16798
16838
|
title: __props.accountInfo.username
|
|
16799
|
-
}, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_4$
|
|
16839
|
+
}, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_4$d)
|
|
16800
16840
|
]),
|
|
16801
16841
|
createVNode(GIcon, {
|
|
16802
16842
|
name: "gt-line-right",
|
|
@@ -16838,18 +16878,18 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16838
16878
|
}), 128))
|
|
16839
16879
|
], 2);
|
|
16840
16880
|
}), 128))
|
|
16841
|
-
]);
|
|
16881
|
+
], 512);
|
|
16842
16882
|
};
|
|
16843
16883
|
}
|
|
16844
16884
|
});
|
|
16845
16885
|
const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16846
16886
|
const _hoisted_1$n = { class: "g-user-avatar flex-center ml-1" };
|
|
16847
|
-
const _hoisted_2$
|
|
16887
|
+
const _hoisted_2$i = {
|
|
16848
16888
|
key: 0,
|
|
16849
16889
|
class: "g-user-avatar__badge"
|
|
16850
16890
|
};
|
|
16851
|
-
const _hoisted_3$
|
|
16852
|
-
const _hoisted_4$
|
|
16891
|
+
const _hoisted_3$h = { class: "g-user-avatar flex-center ml-1" };
|
|
16892
|
+
const _hoisted_4$c = {
|
|
16853
16893
|
key: 0,
|
|
16854
16894
|
class: "g-user-avatar__badge"
|
|
16855
16895
|
};
|
|
@@ -16865,11 +16905,27 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
16865
16905
|
const { isMobile } = usePageResize();
|
|
16866
16906
|
const drawerVisible = ref(false);
|
|
16867
16907
|
const userInfo = inject("userInfo");
|
|
16868
|
-
const
|
|
16869
|
-
|
|
16870
|
-
|
|
16908
|
+
const getLocalStorageUserInfo = () => {
|
|
16909
|
+
try {
|
|
16910
|
+
return JSON.parse(localStorage$2.getItem("userInfo") || "{}");
|
|
16911
|
+
} catch {
|
|
16912
|
+
return {};
|
|
16913
|
+
}
|
|
16914
|
+
};
|
|
16915
|
+
const accountInfo = ref(userInfo.value || getLocalStorageUserInfo());
|
|
16871
16916
|
const haveVisited = ref(false);
|
|
16872
16917
|
const useReport2 = inject("useReport");
|
|
16918
|
+
watch(
|
|
16919
|
+
() => userInfo.value,
|
|
16920
|
+
(newValue) => {
|
|
16921
|
+
if (newValue) {
|
|
16922
|
+
accountInfo.value = newValue;
|
|
16923
|
+
} else {
|
|
16924
|
+
accountInfo.value = getLocalStorageUserInfo();
|
|
16925
|
+
}
|
|
16926
|
+
},
|
|
16927
|
+
{ immediate: true }
|
|
16928
|
+
);
|
|
16873
16929
|
const handleToggle = (status) => {
|
|
16874
16930
|
visitedClick();
|
|
16875
16931
|
const params = { need_tips: accountInfo.value.need_tips, prompt_style: accountInfo.value.style_tips };
|
|
@@ -16921,9 +16977,21 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
16921
16977
|
const appDom = getScrollDom();
|
|
16922
16978
|
appDom && (appDom.style.overflow = status ? "hidden" : "unset");
|
|
16923
16979
|
};
|
|
16980
|
+
const resetOverflow = () => {
|
|
16981
|
+
const appDom = getScrollDom();
|
|
16982
|
+
if (appDom && appDom.style.overflow === "hidden") {
|
|
16983
|
+
appDom.style.overflow = "unset";
|
|
16984
|
+
}
|
|
16985
|
+
};
|
|
16924
16986
|
const handleStorageChange = (e) => {
|
|
16925
16987
|
if (e.key === "userInfo") {
|
|
16926
|
-
|
|
16988
|
+
if (!userInfo.value) {
|
|
16989
|
+
try {
|
|
16990
|
+
accountInfo.value = JSON.parse(e.newValue || "{}");
|
|
16991
|
+
} catch {
|
|
16992
|
+
accountInfo.value = {};
|
|
16993
|
+
}
|
|
16994
|
+
}
|
|
16927
16995
|
}
|
|
16928
16996
|
};
|
|
16929
16997
|
onMounted(() => {
|
|
@@ -16931,6 +16999,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
16931
16999
|
});
|
|
16932
17000
|
onBeforeUnmount(() => {
|
|
16933
17001
|
window.removeEventListener("storage", handleStorageChange);
|
|
17002
|
+
resetOverflow();
|
|
16934
17003
|
});
|
|
16935
17004
|
return (_ctx, _cache) => {
|
|
16936
17005
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
@@ -16943,7 +17012,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
16943
17012
|
name: accountInfo.value.nickname,
|
|
16944
17013
|
src: unref(transformUrl)(accountInfo.value.avatar)
|
|
16945
17014
|
}, null, 8, ["name", "src"]),
|
|
16946
|
-
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
17015
|
+
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, _cache[4] || (_cache[4] = [
|
|
16947
17016
|
createElementVNode("div", null, null, -1)
|
|
16948
17017
|
]))) : createCommentVNode("", true)
|
|
16949
17018
|
])
|
|
@@ -16963,17 +17032,18 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
16963
17032
|
accountInfo: accountInfo.value,
|
|
16964
17033
|
isChatBot: __props.isChatBot,
|
|
16965
17034
|
inAIHub: __props.inAIHub,
|
|
16966
|
-
userMenus: __props.userMenus
|
|
17035
|
+
userMenus: __props.userMenus,
|
|
17036
|
+
onLinkClick: resetOverflow
|
|
16967
17037
|
}, null, 8, ["independence", "loginOutFinish", "accountInfo", "isChatBot", "inAIHub", "userMenus"])
|
|
16968
17038
|
])
|
|
16969
17039
|
]),
|
|
16970
17040
|
default: withCtx(() => [
|
|
16971
|
-
createElementVNode("div", _hoisted_3$
|
|
17041
|
+
createElementVNode("div", _hoisted_3$h, [
|
|
16972
17042
|
createVNode(_sfc_main$B, {
|
|
16973
17043
|
name: accountInfo.value.nickname,
|
|
16974
17044
|
src: unref(transformUrl)(accountInfo.value.avatar)
|
|
16975
17045
|
}, null, 8, ["name", "src"]),
|
|
16976
|
-
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
17046
|
+
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$c, _cache[5] || (_cache[5] = [
|
|
16977
17047
|
createElementVNode("div", null, null, -1)
|
|
16978
17048
|
]))) : createCommentVNode("", true)
|
|
16979
17049
|
])
|
|
@@ -17004,7 +17074,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
17004
17074
|
isChatBot: __props.isChatBot,
|
|
17005
17075
|
inAIHub: __props.inAIHub,
|
|
17006
17076
|
userMenus: __props.userMenus,
|
|
17007
|
-
onClick: _cache[2] || (_cache[2] = ($event) => drawerVisible.value = false)
|
|
17077
|
+
onClick: _cache[2] || (_cache[2] = ($event) => drawerVisible.value = false),
|
|
17078
|
+
onLinkClick: resetOverflow
|
|
17008
17079
|
}, null, 8, ["independence", "loginOutFinish", "accountInfo", "isChatBot", "inAIHub", "userMenus"])
|
|
17009
17080
|
])
|
|
17010
17081
|
]),
|
|
@@ -17103,9 +17174,9 @@ const setlocalVistHistory = (data, localType) => {
|
|
|
17103
17174
|
return cur;
|
|
17104
17175
|
};
|
|
17105
17176
|
const _hoisted_1$m = { class: "g-header-search-prefix" };
|
|
17106
|
-
const _hoisted_2$
|
|
17107
|
-
const _hoisted_3$
|
|
17108
|
-
const _hoisted_4$
|
|
17177
|
+
const _hoisted_2$h = ["innerHTML"];
|
|
17178
|
+
const _hoisted_3$g = { class: "g-header-search-suffix-splitline" };
|
|
17179
|
+
const _hoisted_4$b = { class: "g-header-search-suffix-suffixIcon" };
|
|
17109
17180
|
const _hoisted_5$6 = { class: "history-list" };
|
|
17110
17181
|
const _hoisted_6$5 = {
|
|
17111
17182
|
key: 1,
|
|
@@ -17122,13 +17193,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
17122
17193
|
var _a;
|
|
17123
17194
|
const layoutConfig2 = useLayoutConfig();
|
|
17124
17195
|
const { t: $t } = i18n.global;
|
|
17125
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
17126
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
17127
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
17128
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
17129
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
17130
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
17131
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
17196
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-oJ97bkmL.js"));
|
|
17197
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-B_ArHlbo.js"));
|
|
17198
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-D3AK8HeU.js"));
|
|
17199
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BPgp938A.js"));
|
|
17200
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DOnYZaWr.js"));
|
|
17201
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-KqSTKuqm.js"));
|
|
17202
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-zJLm0RAD.js"));
|
|
17132
17203
|
const props = __props;
|
|
17133
17204
|
const repoInfo = inject("repoInfo");
|
|
17134
17205
|
const orgInfo = inject("orgInfo");
|
|
@@ -17700,7 +17771,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
17700
17771
|
class: "quick-tips",
|
|
17701
17772
|
innerHTML: unref(quickTips),
|
|
17702
17773
|
onClick: onInputClick
|
|
17703
|
-
}, null, 8, _hoisted_2$
|
|
17774
|
+
}, null, 8, _hoisted_2$h)), [
|
|
17704
17775
|
[vShow, placeholderVisible.value]
|
|
17705
17776
|
]),
|
|
17706
17777
|
withDirectives(createVNode(unref(SearchPrefixTag), {
|
|
@@ -17733,10 +17804,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
17733
17804
|
}, null, 512), [
|
|
17734
17805
|
[vShow, searchStr.value]
|
|
17735
17806
|
]),
|
|
17736
|
-
withDirectives(createElementVNode("span", _hoisted_3$
|
|
17807
|
+
withDirectives(createElementVNode("span", _hoisted_3$g, "|", 512), [
|
|
17737
17808
|
[vShow, searchStr.value]
|
|
17738
17809
|
]),
|
|
17739
|
-
createElementVNode("div", _hoisted_4$
|
|
17810
|
+
createElementVNode("div", _hoisted_4$b, [
|
|
17740
17811
|
createVNode(GIcon, {
|
|
17741
17812
|
name: "search",
|
|
17742
17813
|
class: "g-header-search-icon",
|
|
@@ -17776,9 +17847,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
17776
17847
|
});
|
|
17777
17848
|
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
17778
17849
|
const _hoisted_1$l = { class: "announce-content" };
|
|
17779
|
-
const _hoisted_2$
|
|
17780
|
-
const _hoisted_3$
|
|
17781
|
-
const _hoisted_4$
|
|
17850
|
+
const _hoisted_2$g = { class: "text-left" };
|
|
17851
|
+
const _hoisted_3$f = ["href"];
|
|
17852
|
+
const _hoisted_4$a = { class: "announce-handle-wrapper" };
|
|
17782
17853
|
const ANNOUNCE_STATUS_KEY = "site_announcement_status";
|
|
17783
17854
|
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
17784
17855
|
...{ name: "SiteAnnouncement" },
|
|
@@ -17858,7 +17929,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
17858
17929
|
style: normalizeStyle(`width: ${announcementWidth.value};margin-left: ${announcementLeft.value}`)
|
|
17859
17930
|
}, [
|
|
17860
17931
|
createElementVNode("div", _hoisted_1$l, [
|
|
17861
|
-
createElementVNode("div", _hoisted_2$
|
|
17932
|
+
createElementVNode("div", _hoisted_2$g, [
|
|
17862
17933
|
createVNode(GIcon, {
|
|
17863
17934
|
name: "gt-plane-warningCircular-blue",
|
|
17864
17935
|
size: "16",
|
|
@@ -17868,9 +17939,9 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
17868
17939
|
createElementVNode("a", {
|
|
17869
17940
|
class: "announce-detail",
|
|
17870
17941
|
href: migrationAnnounceUrl.value
|
|
17871
|
-
}, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.viewDetail")), 9, _hoisted_3$
|
|
17942
|
+
}, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.viewDetail")), 9, _hoisted_3$f)
|
|
17872
17943
|
]),
|
|
17873
|
-
createElementVNode("div", _hoisted_4$
|
|
17944
|
+
createElementVNode("div", _hoisted_4$a, [
|
|
17874
17945
|
createElementVNode("span", {
|
|
17875
17946
|
class: "announce-handle mr-4",
|
|
17876
17947
|
onClick: _cache[0] || (_cache[0] = ($event) => handleClose("today"))
|
|
@@ -17893,7 +17964,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
|
|
|
17893
17964
|
loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
|
|
17894
17965
|
}
|
|
17895
17966
|
};
|
|
17896
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
17967
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-CxOWHKnT.js"));
|
|
17897
17968
|
function clearNotice() {
|
|
17898
17969
|
if (localStorage$2.getItem("validator_email")) {
|
|
17899
17970
|
localStorage$2.removeItem("validator_email");
|
|
@@ -17921,12 +17992,12 @@ function useNotification() {
|
|
|
17921
17992
|
};
|
|
17922
17993
|
}
|
|
17923
17994
|
const _hoisted_1$k = { class: "g-toolbar-left items-center allow-click-stop flex-[1] min-w-0" };
|
|
17924
|
-
const _hoisted_2$
|
|
17925
|
-
const _hoisted_3$
|
|
17995
|
+
const _hoisted_2$f = { key: 0 };
|
|
17996
|
+
const _hoisted_3$e = {
|
|
17926
17997
|
key: 1,
|
|
17927
17998
|
class: "search-avatar flex-1 flex items-center justify-center"
|
|
17928
17999
|
};
|
|
17929
|
-
const _hoisted_4$
|
|
18000
|
+
const _hoisted_4$9 = { class: "flex items-center gap-[8px]" };
|
|
17930
18001
|
const _hoisted_5$5 = {
|
|
17931
18002
|
key: 1,
|
|
17932
18003
|
class: "g-header-body"
|
|
@@ -18385,10 +18456,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18385
18456
|
}, 8, ["scene", "isLogin", "errorCode", "orgProps", "repoProps", "userProps"])) : createCommentVNode("", true)
|
|
18386
18457
|
], 2)) : createCommentVNode("", true)
|
|
18387
18458
|
]),
|
|
18388
|
-
_ctx.$slots.headerMiddleRight ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
18459
|
+
_ctx.$slots.headerMiddleRight ? (openBlock(), createElementBlock("div", _hoisted_2$f, [
|
|
18389
18460
|
renderSlot(_ctx.$slots, "headerMiddleRight", {}, void 0, true)
|
|
18390
18461
|
])) : createCommentVNode("", true),
|
|
18391
|
-
!inAIHub.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
18462
|
+
!inAIHub.value ? (openBlock(), createElementBlock("div", _hoisted_3$e, [
|
|
18392
18463
|
isModuleVisible(unref(HeaderDisplayItem).SEARCH_BUTTON) ? renderSlot(_ctx.$slots, "search", { key: 0 }, () => [
|
|
18393
18464
|
(openBlock(), createBlock(Search, {
|
|
18394
18465
|
inAIHub: inAIHub.value,
|
|
@@ -18409,7 +18480,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18409
18480
|
createElementVNode("div", {
|
|
18410
18481
|
class: normalizeClass(["g-toolbar-right gap-[16px] flex-[1] justify-end max-md:gap-[12px] allow-click-stop", inAIHub.value ? "flex-none" : ""])
|
|
18411
18482
|
}, [
|
|
18412
|
-
createElementVNode("div", _hoisted_4$
|
|
18483
|
+
createElementVNode("div", _hoisted_4$9, [
|
|
18413
18484
|
createVNode(ClaimPower, { config: claimPowerConfig.value }, null, 8, ["config"]),
|
|
18414
18485
|
isModuleVisible(unref(HeaderDisplayItem).DEEPSEEK_BUTTON) ? (openBlock(), createBlock(ChatBot, { key: 0 })) : createCommentVNode("", true)
|
|
18415
18486
|
]),
|
|
@@ -18673,7 +18744,7 @@ var SearchType = /* @__PURE__ */ ((SearchType2) => {
|
|
|
18673
18744
|
return SearchType2;
|
|
18674
18745
|
})(SearchType || {});
|
|
18675
18746
|
const _hoisted_1$j = { class: "area" };
|
|
18676
|
-
const _hoisted_2$
|
|
18747
|
+
const _hoisted_2$e = { class: "w-[208px] max-h-[240px]" };
|
|
18677
18748
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
18678
18749
|
__name: "Area",
|
|
18679
18750
|
props: {
|
|
@@ -18687,9 +18758,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18687
18758
|
const layoutConfig2 = useLayoutConfig();
|
|
18688
18759
|
const { t: t2 } = i18n.global;
|
|
18689
18760
|
const route = useRoute();
|
|
18690
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
18691
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
18692
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
18761
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-B9fzjR7u.js"));
|
|
18762
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-C1HatE5S.js"));
|
|
18763
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-CW02MUPv.js"));
|
|
18693
18764
|
const props = __props;
|
|
18694
18765
|
console.log("slotKeys", props.slotKeys);
|
|
18695
18766
|
console.log("props", props);
|
|
@@ -18873,7 +18944,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18873
18944
|
return {
|
|
18874
18945
|
name: key,
|
|
18875
18946
|
fn: withCtx(() => [
|
|
18876
|
-
createElementVNode("div", _hoisted_2$
|
|
18947
|
+
createElementVNode("div", _hoisted_2$e, [
|
|
18877
18948
|
createVNode(unref(Menu), {
|
|
18878
18949
|
class: "menu",
|
|
18879
18950
|
onSelect: onMenuClick,
|
|
@@ -18926,8 +18997,8 @@ function useCookie(key, defaultValue, options = COOKIE_OPTIONS) {
|
|
|
18926
18997
|
return value;
|
|
18927
18998
|
}
|
|
18928
18999
|
const _hoisted_1$i = { class: "tools-item-wrapper" };
|
|
18929
|
-
const _hoisted_2$
|
|
18930
|
-
const _hoisted_3$
|
|
19000
|
+
const _hoisted_2$d = { class: "tools-item-wrapper-checkbox" };
|
|
19001
|
+
const _hoisted_3$d = ["onClick", "title"];
|
|
18931
19002
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
18932
19003
|
__name: "Lang",
|
|
18933
19004
|
setup(__props) {
|
|
@@ -18947,7 +19018,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18947
19018
|
return (_ctx, _cache) => {
|
|
18948
19019
|
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
18949
19020
|
createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.lang")), 1),
|
|
18950
|
-
createElementVNode("div", _hoisted_2$
|
|
19021
|
+
createElementVNode("div", _hoisted_2$d, [
|
|
18951
19022
|
(openBlock(true), createElementBlock(Fragment, null, renderList(linkList.value, (item) => {
|
|
18952
19023
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
18953
19024
|
key: item.label,
|
|
@@ -18963,7 +19034,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18963
19034
|
color: "var(--theme-icon-fill-weak)",
|
|
18964
19035
|
class: "checkbox-item-icon"
|
|
18965
19036
|
}, null, 8, ["name"])
|
|
18966
|
-
], 16, _hoisted_3$
|
|
19037
|
+
], 16, _hoisted_3$d);
|
|
18967
19038
|
}), 128))
|
|
18968
19039
|
])
|
|
18969
19040
|
]);
|
|
@@ -18971,8 +19042,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18971
19042
|
}
|
|
18972
19043
|
});
|
|
18973
19044
|
const _hoisted_1$h = { class: "tools-item-wrapper" };
|
|
18974
|
-
const _hoisted_2$
|
|
18975
|
-
const _hoisted_3$
|
|
19045
|
+
const _hoisted_2$c = { class: "tools-item-wrapper-checkbox" };
|
|
19046
|
+
const _hoisted_3$c = ["onClick", "title"];
|
|
18976
19047
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
18977
19048
|
__name: "Theme",
|
|
18978
19049
|
setup(__props) {
|
|
@@ -19000,7 +19071,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
19000
19071
|
return (_ctx, _cache) => {
|
|
19001
19072
|
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
19002
19073
|
createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.theme")), 1),
|
|
19003
|
-
createElementVNode("div", _hoisted_2$
|
|
19074
|
+
createElementVNode("div", _hoisted_2$c, [
|
|
19004
19075
|
(openBlock(true), createElementBlock(Fragment, null, renderList(themeList.value, (item) => {
|
|
19005
19076
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
19006
19077
|
key: item.value,
|
|
@@ -19016,7 +19087,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
19016
19087
|
color: "var(--theme-icon-fill-weak)",
|
|
19017
19088
|
class: "checkbox-item-icon"
|
|
19018
19089
|
}, null, 8, ["name"])
|
|
19019
|
-
], 16, _hoisted_3$
|
|
19090
|
+
], 16, _hoisted_3$c);
|
|
19020
19091
|
}), 128))
|
|
19021
19092
|
])
|
|
19022
19093
|
]);
|
|
@@ -19024,8 +19095,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
19024
19095
|
}
|
|
19025
19096
|
});
|
|
19026
19097
|
const _hoisted_1$g = { class: "leading-[16px]" };
|
|
19027
|
-
const _hoisted_2$
|
|
19028
|
-
const _hoisted_3$
|
|
19098
|
+
const _hoisted_2$b = { class: "aside-footer-tools-item-dropdown-item" };
|
|
19099
|
+
const _hoisted_3$b = { class: "aside-footer-tools-item-dropdown-item" };
|
|
19029
19100
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
19030
19101
|
__name: "Settings",
|
|
19031
19102
|
props: {
|
|
@@ -19042,12 +19113,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
19042
19113
|
"overlay-class": "footer-tools-setting-dropdown"
|
|
19043
19114
|
}, {
|
|
19044
19115
|
menu: withCtx(() => [
|
|
19045
|
-
withDirectives(createElementVNode("div", _hoisted_2$
|
|
19116
|
+
withDirectives(createElementVNode("div", _hoisted_2$b, [
|
|
19046
19117
|
createVNode(_sfc_main$k)
|
|
19047
19118
|
], 512), [
|
|
19048
19119
|
[vShow, _ctx.showThemeSetting]
|
|
19049
19120
|
]),
|
|
19050
|
-
withDirectives(createElementVNode("div", _hoisted_3$
|
|
19121
|
+
withDirectives(createElementVNode("div", _hoisted_3$b, [
|
|
19051
19122
|
createVNode(_sfc_main$l)
|
|
19052
19123
|
], 512), [
|
|
19053
19124
|
[vShow, _ctx.showLangSetting]
|
|
@@ -19128,7 +19199,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
19128
19199
|
const SubMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
19129
19200
|
const createSetting = () => {
|
|
19130
19201
|
const { t: t2 } = i18n.global;
|
|
19131
|
-
const
|
|
19202
|
+
const isGitCodeHost = window.location.hostname.includes("gitcode");
|
|
19132
19203
|
const settings = {
|
|
19133
19204
|
slogan: t2("gitCodeLayout.home.slogon"),
|
|
19134
19205
|
copyright: {
|
|
@@ -19146,7 +19217,7 @@ const createSetting = () => {
|
|
|
19146
19217
|
beian_url: "https://www.zhipin.com/gongsi/job/b1eccc6dba1cc0d41Hd60tW0GVc~.html?ka=company-jobs"
|
|
19147
19218
|
}
|
|
19148
19219
|
};
|
|
19149
|
-
if (!
|
|
19220
|
+
if (!isGitCodeHost) {
|
|
19150
19221
|
settings.slogan = "";
|
|
19151
19222
|
settings.copyright = {
|
|
19152
19223
|
digest: (/* @__PURE__ */ new Date()).getFullYear() + " " + t2("gitCodeLayout.home.copyright_atomgit.digest"),
|
|
@@ -19166,9 +19237,9 @@ const createSetting = () => {
|
|
|
19166
19237
|
return settings;
|
|
19167
19238
|
};
|
|
19168
19239
|
const _hoisted_1$f = { class: "aside-footer" };
|
|
19169
|
-
const _hoisted_2$
|
|
19170
|
-
const _hoisted_3$
|
|
19171
|
-
const _hoisted_4$
|
|
19240
|
+
const _hoisted_2$a = { class: "remake-message mt-[16px]" };
|
|
19241
|
+
const _hoisted_3$a = ["title"];
|
|
19242
|
+
const _hoisted_4$8 = { class: "whitespace-nowrap" };
|
|
19172
19243
|
const _hoisted_5$4 = {
|
|
19173
19244
|
href: "https://beian.miit.gov.cn/#/Integrated/index",
|
|
19174
19245
|
target: "_blank"
|
|
@@ -19198,12 +19269,12 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
19198
19269
|
});
|
|
19199
19270
|
return (_ctx, _cache) => {
|
|
19200
19271
|
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
19201
|
-
createElementVNode("div", _hoisted_2$
|
|
19272
|
+
createElementVNode("div", _hoisted_2$a, [
|
|
19202
19273
|
createElementVNode("p", {
|
|
19203
19274
|
class: "break-all whitespace-normal",
|
|
19204
19275
|
title: unref(copyright).digestAbbr
|
|
19205
|
-
}, " © " + toDisplayString$1(unref(copyright).digestAbbr), 9, _hoisted_3$
|
|
19206
|
-
createElementVNode("p", _hoisted_4$
|
|
19276
|
+
}, " © " + toDisplayString$1(unref(copyright).digestAbbr), 9, _hoisted_3$a),
|
|
19277
|
+
createElementVNode("p", _hoisted_4$8, [
|
|
19207
19278
|
createElementVNode("a", _hoisted_5$4, toDisplayString$1(unref(copyright).icp), 1)
|
|
19208
19279
|
]),
|
|
19209
19280
|
unref(copyright).publicSecurity_url ? (openBlock(), createElementBlock("p", _hoisted_6$3, [
|
|
@@ -19261,12 +19332,12 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
19261
19332
|
});
|
|
19262
19333
|
const ContactInfo = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
19263
19334
|
const _hoisted_1$e = { class: "flex-[1] flex flex-col justify-between min-h-0" };
|
|
19264
|
-
const _hoisted_2$
|
|
19265
|
-
const _hoisted_3$
|
|
19335
|
+
const _hoisted_2$9 = { key: 0 };
|
|
19336
|
+
const _hoisted_3$9 = {
|
|
19266
19337
|
key: 1,
|
|
19267
19338
|
class: "aside-menus"
|
|
19268
19339
|
};
|
|
19269
|
-
const _hoisted_4$
|
|
19340
|
+
const _hoisted_4$7 = {
|
|
19270
19341
|
key: 0,
|
|
19271
19342
|
class: "line mt-[16px] mb-[6px]"
|
|
19272
19343
|
};
|
|
@@ -19390,12 +19461,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
19390
19461
|
onScroll: handleScroll,
|
|
19391
19462
|
onMouseleave: handleMouseLeave
|
|
19392
19463
|
}, [
|
|
19393
|
-
unref(sideLoading) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
19464
|
+
unref(sideLoading) ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
19394
19465
|
createVNode(unref(Skeleton), {
|
|
19395
19466
|
loading: unref(sideLoading),
|
|
19396
19467
|
row: 4
|
|
19397
19468
|
}, null, 8, ["loading"])
|
|
19398
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
19469
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_3$9, [
|
|
19399
19470
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayArea.value, (item, index2) => {
|
|
19400
19471
|
return openBlock(), createElementBlock(Fragment, {
|
|
19401
19472
|
key: item.id
|
|
@@ -19416,7 +19487,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
19416
19487
|
};
|
|
19417
19488
|
})
|
|
19418
19489
|
]), 1032, ["list", "isLogin", "slotKeys", "sceneValue", "asideSetShowLittle"]),
|
|
19419
|
-
!_ctx.asideSetShowLittle && index2 !== displayArea.value.length - 1 ? (openBlock(), createElementBlock("hr", _hoisted_4$
|
|
19490
|
+
!_ctx.asideSetShowLittle && index2 !== displayArea.value.length - 1 ? (openBlock(), createElementBlock("hr", _hoisted_4$7)) : createCommentVNode("", true)
|
|
19420
19491
|
], 64);
|
|
19421
19492
|
}), 128)),
|
|
19422
19493
|
!_ctx.asideSetShowLittle && isModuleVisible(unref(AsideDisplayItem).LINK) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -20143,9 +20214,9 @@ const headerCustomPropsData = {
|
|
|
20143
20214
|
}
|
|
20144
20215
|
};
|
|
20145
20216
|
const _hoisted_1$c = { class: "home-wrapper" };
|
|
20146
|
-
const _hoisted_2$
|
|
20147
|
-
const _hoisted_3$
|
|
20148
|
-
const _hoisted_4$
|
|
20217
|
+
const _hoisted_2$8 = { class: "home-content" };
|
|
20218
|
+
const _hoisted_3$8 = { class: "home-left-side" };
|
|
20219
|
+
const _hoisted_4$6 = { class: "home-main" };
|
|
20149
20220
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
20150
20221
|
__name: "home",
|
|
20151
20222
|
setup(__props) {
|
|
@@ -20235,8 +20306,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
20235
20306
|
onFollowDevCommunity: followDevCommunity,
|
|
20236
20307
|
onFollowUser: followUser
|
|
20237
20308
|
}, null, 8, ["sceneValue", "independence", "isLogin", "request", "globalStore", "userInfo", "repoInfo", "orgInfo", "otherUserInfo", "headerCustomProps"]),
|
|
20238
|
-
createElementVNode("div", _hoisted_2$
|
|
20239
|
-
createElementVNode("div", _hoisted_3$
|
|
20309
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
20310
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
20240
20311
|
createVNode(GitCodeAside, {
|
|
20241
20312
|
sceneValue: sceneSelected.value,
|
|
20242
20313
|
userInfo: userInfo.value,
|
|
@@ -20245,7 +20316,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
20245
20316
|
globalStore: globalStore.value,
|
|
20246
20317
|
independence: independence.value,
|
|
20247
20318
|
slotKeys: ["home", "issues"],
|
|
20248
|
-
collapseMode: sceneSelected.value == unref(SceneValue).repo
|
|
20319
|
+
collapseMode: sceneSelected.value == unref(SceneValue).repo,
|
|
20320
|
+
showLangSetting: "",
|
|
20321
|
+
showThemeSetting: ""
|
|
20249
20322
|
}, {
|
|
20250
20323
|
home: withCtx(() => _cache[2] || (_cache[2] = [
|
|
20251
20324
|
createElementVNode("div", null, "首页hover-插槽", -1)
|
|
@@ -20256,7 +20329,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
20256
20329
|
_: 1
|
|
20257
20330
|
}, 8, ["sceneValue", "userInfo", "isLogin", "request", "globalStore", "independence", "collapseMode"])
|
|
20258
20331
|
]),
|
|
20259
|
-
createElementVNode("div", _hoisted_4$
|
|
20332
|
+
createElementVNode("div", _hoisted_4$6, [
|
|
20260
20333
|
_cache[6] || (_cache[6] = createElementVNode("h1", null, "控制 Header 值传入", -1)),
|
|
20261
20334
|
_cache[7] || (_cache[7] = createElementVNode("h2", null, "场景值 SceneValue", -1)),
|
|
20262
20335
|
createVNode(unref(RadioGroup), {
|
|
@@ -21141,9 +21214,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
21141
21214
|
}
|
|
21142
21215
|
});
|
|
21143
21216
|
const _hoisted_1$9 = { class: "flex flex-1 g-input-select" };
|
|
21144
|
-
const _hoisted_2$
|
|
21145
|
-
const _hoisted_3$
|
|
21146
|
-
const _hoisted_4$
|
|
21217
|
+
const _hoisted_2$7 = { class: "login-phone" };
|
|
21218
|
+
const _hoisted_3$7 = { class: "flex justify-between gap-[8px] flex-wrap" };
|
|
21219
|
+
const _hoisted_4$5 = { class: "flex items-center justify-between" };
|
|
21147
21220
|
const _hoisted_5$3 = { class: "flex justify-between gap-[8px] flex-wrap" };
|
|
21148
21221
|
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
21149
21222
|
__name: "inputSelect",
|
|
@@ -21219,7 +21292,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
21219
21292
|
});
|
|
21220
21293
|
return (_ctx, _cache) => {
|
|
21221
21294
|
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
21222
|
-
createElementVNode("div", _hoisted_2$
|
|
21295
|
+
createElementVNode("div", _hoisted_2$7, [
|
|
21223
21296
|
(props == null ? void 0 : props.editableSelect) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
21224
21297
|
createVNode(unref(Select), {
|
|
21225
21298
|
class: "login-country-select",
|
|
@@ -21236,7 +21309,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
21236
21309
|
value: item.value
|
|
21237
21310
|
}, {
|
|
21238
21311
|
default: withCtx(() => [
|
|
21239
|
-
createElementVNode("div", _hoisted_3$
|
|
21312
|
+
createElementVNode("div", _hoisted_3$7, [
|
|
21240
21313
|
createElementVNode("span", null, toDisplayString$1(item.name), 1),
|
|
21241
21314
|
createElementVNode("span", null, toDisplayString$1(item.label), 1)
|
|
21242
21315
|
])
|
|
@@ -21260,7 +21333,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
21260
21333
|
class: "login-phone-select"
|
|
21261
21334
|
}), {
|
|
21262
21335
|
item: withCtx((slotProps) => [
|
|
21263
|
-
createElementVNode("div", _hoisted_4$
|
|
21336
|
+
createElementVNode("div", _hoisted_4$5, [
|
|
21264
21337
|
createElementVNode("div", null, toDisplayString$1(slotProps.option.label), 1),
|
|
21265
21338
|
createVNode(GIcon, {
|
|
21266
21339
|
name: "gt-line-delete",
|
|
@@ -21613,9 +21686,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
21613
21686
|
});
|
|
21614
21687
|
const recentLoginImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAoCAYAAAAIeF9DAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAfgSURBVHgB7ZtLbFRlFMfPnU4LhbaMgAJCdJpYImwoK7vgMSwkGDckQgwrARduJNREE4nykhhJMKGNblxIuzOEElcGAptiWeCKuoFIMYykCEoLpQ9eZWY8v9v52tvbOzP33mlLDPefTDtzn993/uf8z/nO3LGkDNxIphJPRVIxyW7MipXUTY0xySVyIgl5gWCJDOTESuu80yK532MS62xId3ZKCFgSAj3JVConuYOW5BpfNOMHQFrN21kp1uH6dGfa70mBCPkjmdqqJBxXL0hKhACw2v0S44sQlabkqOTalIiURAiLtNrv8Mp0V3uxg2JSAn8mN+x9JtnLERllI6n+33YtueF4sYOKRkhPcsNBzRGHJMI0w+pWCdukEjbg3lMwQiIyZhK5Rk0BP3vt8SQkImM2kEt5ydcUySJnZERaJMKsICu5T95Md43bexIhVFMk8GhtMasYqJRYvcknkyQLXYvImHUkRiV70HwYJ+RaMrWTZCP/E8TqaiQsyjl3htBMG4o38YltuYN+z56z+g1J7NouQTB4+ow8utQ9aVvliqWy7Ievpb+1TUbOXZy0D6NV5A0X1+M4Nr6c/8tkXlOjvS29/n0Z7b0z5V5Lju3zHMOj3y7LnFUN9vh7d+y1t720e7vEamvsMRTC/LfXSc3m9eIX/3z2jQTFU8k2679DNiHXk+u3ZgO0QzBW3bYtcv/EKckODpc8flHzLnl46fKU7RjzyZXr8qqSwiQGO86O70vs2mafZ8B9Mvri+KFzXWrcbvuzFyDLDUjMDA7J8PkuSezeJvM3r5MqJXfx/o+lv6UwGaBiQY3nNd2owmn0FYYQTeZ4yBghOYl9wN+gwCh+CCkGBj966/a4VztJeagR9a/ux/B+70MkDbSdmhRxRAGEPGjrsJ0AR8IJAGTca22339e9t0UJuzjlXozJOa5CWLh35yQnCogETds42qVJZauEwMK9u8omBNxraZfK5ctsSXLDS5KKoVYjd5GOi2siQxBEFECCuRYE1KoE4YIDShLAkBg089EXU+QTIHOlcg9yWg4ykmmM659UyC683NHB+zFYw40LJY8JE+ZegAic5OX9e2z5IDIYY9+R78ePYT85ZMVPrfaL3IaM3T3ynScZgIjyI1vlwUrF9YullIQEk5lJzFWvLHUPigW3nAyc6FAXs+zIABBQ33VyyrnG4yHDncPcuKEFRCmUKVmUvGs0h1hrguYPPCrtY4BOeCVgEmuFQwa4rok4jMU5zghEfqrV44fPTei8+7ocQ3Rw7RFN/v0qT8hNsblAOjkM2XRWW85Kzw9idbXjY3DOO4CsJ5SQnO+FIEmv3LBlcEa3a7ScrG5aa79nEnc+1QTfO+alGAIynFLG/SGkT6WlULlL9ce+vx25gMqsGPD+hc1j3k0OuqVyxjXclZ5fJB3RONhxRudw1O+pibhmj6Tf+Ihp+UfiqlHvY5JOo+CFGHW4gAYbOD3aOVC3pHCfx1d6JAhYZzy52mNLD8R4yZQXhjWS7mqOGdLzFqh8mXkNnT5rV5KFsFQdYLT3th2FThBZJiqeBSxK4kFaJWgzmNd0Uh4o8wzYAP2s2/bOtCVnCMZQQeDMASz2MAyJuhiQN5NL7OT/1UTyN8SweB3S+d7PR7YTHONe8L72y49KxG2N0i8lIAbiEhKvHNgjix3hbDSfKEkW8EzWFbfyK+RiMCXmk6vXpRwwnlLrB0rkYsDgLCYXH9hj54ipOaZ20mcIrgy5ONR8ng5NCBEycn5Cnsb0fa09AbySid5898Px/eg7XuMHtGW8PC8oKvIdhWLw09eilEaibYnSRSyybCKL4oG5Uu0RSWyjpC6Vt7yg3ZK/QhOSGxxxbZlYy+CVDJIEzHtTHfXvaCt53cr82sGr1RIUGKdQXysoKBBuXhlzsNdVkog+8gM5BNIpCkbyuSjoYtZALdgdmhAGMbdpojlMH8cUByQ0QhsvwsvxHL8eX5WXq3uuRBkUnG8kr9Bij6YhfSo/bRFAg5FciTpwfYgZqwSP2qVz1eoGKQc8YFfyqZNC6NMeEPnAvBgkMDU4BQChTYJjW7HcgRdTTtNzgrTefNlZLshFyIzXOgTSyYPVb5X+xoHoxuCQgaOx6neuLRgrY2Yb+bNUXiqANE87BiIEvWRVy2ToBWFIXhgdY2J43gOzqDIaXd3kPXGiiDKadQPg/EILqUGt6nrqN/omy2g/93CD8RLRxSLREMGLY8mJptJ0gzGxH8KQL4gplb8mw+rkbyDJmqfeNFcT92OdZMZuhw/ZxqP+Z5FHyDIoPATiOIbPEAlxNCOd/SIKAdO2YBvRseTY5/ZkMKSTGNN+B06iAWSyn3Mpvb1QqJ/mrgid3d/q/PcuzkWmqQDNy90pwAlYzxBNXh3sQsiIdZj/1rXkhuB9dw+YdQgELFePGtFSEW8yRiV6OAZdN14GUUiGs/EHMAQTp/vrLCs9J6LX78uvNTivssxOAo5gKiRDutMxcKIl3+4b316somIs/qLZal+ZvmDr3LQREiE00hmJbVqVf+43dFKPMF3IHV7leAg7IuT5otX98HVEyHOD1b0y/Wuze2tEyHOB/UOeTV57Qq/UI4SGytSF5kI7owiZJfA7RJ7j9ZIpJ6IImR20xiV2qMHj9yBuRITMEMYiQlqrJNZS74MIg4iQacCY8a0B1X9tZ2e1R1PRHfZn0f8BoszztTsf3m0AAAAASUVORK5CYII=";
|
|
21615
21688
|
const _hoisted_1$8 = { class: "auth-container" };
|
|
21616
|
-
const _hoisted_2$
|
|
21617
|
-
const _hoisted_3$
|
|
21618
|
-
const _hoisted_4$
|
|
21689
|
+
const _hoisted_2$6 = { class: "tips text-[var(--devui-disabled-text)]" };
|
|
21690
|
+
const _hoisted_3$6 = { class: "icons" };
|
|
21691
|
+
const _hoisted_4$4 = ["src", "alt", "onClick"];
|
|
21619
21692
|
const _hoisted_5$2 = { class: "w-[50px] h-[20px] recent-login-img" };
|
|
21620
21693
|
const _hoisted_6$2 = ["src"];
|
|
21621
21694
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
@@ -21640,8 +21713,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
21640
21713
|
};
|
|
21641
21714
|
return (_ctx, _cache) => {
|
|
21642
21715
|
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
21643
|
-
createElementVNode("div", _hoisted_2$
|
|
21644
|
-
createElementVNode("div", _hoisted_3$
|
|
21716
|
+
createElementVNode("div", _hoisted_2$6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.otherLogin")), 1),
|
|
21717
|
+
createElementVNode("div", _hoisted_3$6, [
|
|
21645
21718
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.logos, (icon) => {
|
|
21646
21719
|
return openBlock(), createElementBlock("div", {
|
|
21647
21720
|
key: icon.alt,
|
|
@@ -21658,7 +21731,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
21658
21731
|
src: icon.src,
|
|
21659
21732
|
alt: icon.alt,
|
|
21660
21733
|
onClick: withModifiers(($event) => handleClick(icon), ["stop"])
|
|
21661
|
-
}, null, 8, _hoisted_4$
|
|
21734
|
+
}, null, 8, _hoisted_4$4)
|
|
21662
21735
|
]),
|
|
21663
21736
|
_: 2
|
|
21664
21737
|
}, 1032, ["content", "disabled"]),
|
|
@@ -21677,8 +21750,10 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
21677
21750
|
}
|
|
21678
21751
|
});
|
|
21679
21752
|
const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
21680
|
-
const _hoisted_1$7 = { class: "
|
|
21681
|
-
const _hoisted_2$
|
|
21753
|
+
const _hoisted_1$7 = { class: "flex-col items-center" };
|
|
21754
|
+
const _hoisted_2$5 = { class: "text-[var(--theme-placeholder)]" };
|
|
21755
|
+
const _hoisted_3$5 = { class: "text-[var(--theme-placeholder)]" };
|
|
21756
|
+
const _hoisted_4$3 = { class: "text-[var(--theme-placeholder)]" };
|
|
21682
21757
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
21683
21758
|
__name: "agreement",
|
|
21684
21759
|
props: {
|
|
@@ -21688,80 +21763,132 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
21688
21763
|
emits: ["update:modelValue", "declares"],
|
|
21689
21764
|
setup(__props, { emit: __emit }) {
|
|
21690
21765
|
const { t: $t } = i18n.global;
|
|
21691
|
-
const props = __props;
|
|
21692
21766
|
const emits = __emit;
|
|
21693
|
-
const
|
|
21767
|
+
const agreementChecked = ref(false);
|
|
21768
|
+
const dataShareChecked = ref(false);
|
|
21769
|
+
const allAgreed = computed(() => {
|
|
21770
|
+
return agreementChecked.value && dataShareChecked.value;
|
|
21771
|
+
});
|
|
21772
|
+
watch(allAgreed, (newVal) => {
|
|
21773
|
+
emits("update:modelValue", newVal);
|
|
21774
|
+
});
|
|
21694
21775
|
const handleClick = (type) => {
|
|
21695
21776
|
emits("declares", type);
|
|
21696
21777
|
};
|
|
21778
|
+
const dataShareName = computed(() => {
|
|
21779
|
+
if (window.location.host.includes("gitcode")) {
|
|
21780
|
+
return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "AtomGit" });
|
|
21781
|
+
} else {
|
|
21782
|
+
return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "GitCode" });
|
|
21783
|
+
}
|
|
21784
|
+
});
|
|
21697
21785
|
return (_ctx, _cache) => {
|
|
21698
|
-
return openBlock(),
|
|
21699
|
-
|
|
21700
|
-
|
|
21701
|
-
|
|
21702
|
-
|
|
21703
|
-
|
|
21704
|
-
|
|
21705
|
-
|
|
21706
|
-
|
|
21707
|
-
|
|
21708
|
-
|
|
21709
|
-
|
|
21710
|
-
|
|
21711
|
-
|
|
21712
|
-
|
|
21713
|
-
|
|
21714
|
-
|
|
21715
|
-
|
|
21716
|
-
|
|
21786
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
21787
|
+
createVNode(unref(Checkbox), {
|
|
21788
|
+
modelValue: agreementChecked.value,
|
|
21789
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => agreementChecked.value = $event),
|
|
21790
|
+
size: "sm"
|
|
21791
|
+
}, {
|
|
21792
|
+
default: withCtx(() => [
|
|
21793
|
+
createElementVNode("span", _hoisted_2$5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.agree")), 1),
|
|
21794
|
+
createElementVNode("span", {
|
|
21795
|
+
class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
|
|
21796
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
|
|
21797
|
+
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 1),
|
|
21798
|
+
createElementVNode("span", _hoisted_3$5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
|
|
21799
|
+
createElementVNode("span", {
|
|
21800
|
+
class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
|
|
21801
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
|
|
21802
|
+
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 1)
|
|
21803
|
+
]),
|
|
21804
|
+
_: 1
|
|
21805
|
+
}, 8, ["modelValue"]),
|
|
21806
|
+
createVNode(unref(Checkbox), {
|
|
21807
|
+
modelValue: dataShareChecked.value,
|
|
21808
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => dataShareChecked.value = $event),
|
|
21809
|
+
size: "sm"
|
|
21810
|
+
}, {
|
|
21811
|
+
default: withCtx(() => [
|
|
21812
|
+
createElementVNode("span", _hoisted_4$3, toDisplayString$1(dataShareName.value), 1)
|
|
21813
|
+
]),
|
|
21814
|
+
_: 1
|
|
21815
|
+
}, 8, ["modelValue"])
|
|
21816
|
+
]);
|
|
21717
21817
|
};
|
|
21718
21818
|
}
|
|
21719
21819
|
});
|
|
21720
21820
|
const _hoisted_1$6 = { class: "text-[var(--devui-aide-text)] text-[12px]" };
|
|
21821
|
+
const _hoisted_2$4 = { class: "text-[var(--devui-aide-text)]" };
|
|
21822
|
+
const _hoisted_3$4 = { class: "text-[var(--devui-aide-text)] text-[12px]" };
|
|
21721
21823
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
21722
21824
|
__name: "agreements",
|
|
21723
21825
|
props: {
|
|
21724
21826
|
modelValue: { type: Boolean },
|
|
21725
|
-
agreementText: {},
|
|
21726
|
-
privacyText: {},
|
|
21727
21827
|
"onUpdate:modelValue": { type: Function }
|
|
21728
21828
|
},
|
|
21729
21829
|
emits: ["update:modelValue", "declares"],
|
|
21730
21830
|
setup(__props, { emit: __emit }) {
|
|
21731
21831
|
const { t: $t } = i18n.global;
|
|
21732
|
-
const props = __props;
|
|
21733
21832
|
const emits = __emit;
|
|
21734
|
-
const
|
|
21833
|
+
const agreementChecked = ref(false);
|
|
21834
|
+
const dataShareChecked = ref(false);
|
|
21835
|
+
const allAgreed = computed(() => {
|
|
21836
|
+
return agreementChecked.value && dataShareChecked.value;
|
|
21837
|
+
});
|
|
21838
|
+
watch(allAgreed, (newVal) => {
|
|
21839
|
+
emits("update:modelValue", newVal);
|
|
21840
|
+
});
|
|
21735
21841
|
const handleClick = (type) => {
|
|
21736
21842
|
emits("declares", type);
|
|
21737
21843
|
};
|
|
21844
|
+
const dataShareName = computed(() => {
|
|
21845
|
+
if (window.location.host.includes("gitcode")) {
|
|
21846
|
+
return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "AtomGit" });
|
|
21847
|
+
} else {
|
|
21848
|
+
return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "GitCode" });
|
|
21849
|
+
}
|
|
21850
|
+
});
|
|
21738
21851
|
return (_ctx, _cache) => {
|
|
21739
|
-
return openBlock(),
|
|
21740
|
-
|
|
21741
|
-
|
|
21742
|
-
|
|
21743
|
-
|
|
21744
|
-
|
|
21745
|
-
|
|
21746
|
-
|
|
21747
|
-
|
|
21748
|
-
|
|
21749
|
-
|
|
21750
|
-
|
|
21751
|
-
|
|
21752
|
-
|
|
21753
|
-
|
|
21754
|
-
|
|
21755
|
-
|
|
21756
|
-
|
|
21757
|
-
|
|
21758
|
-
|
|
21852
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
21853
|
+
createVNode(unref(Checkbox), {
|
|
21854
|
+
modelValue: agreementChecked.value,
|
|
21855
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => agreementChecked.value = $event),
|
|
21856
|
+
size: "sm",
|
|
21857
|
+
class: "mt-[6px] agree-module flex items-center"
|
|
21858
|
+
}, {
|
|
21859
|
+
default: withCtx(() => [
|
|
21860
|
+
createElementVNode("span", _hoisted_1$6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.readAgree")), 1),
|
|
21861
|
+
createElementVNode("a", {
|
|
21862
|
+
class: "text-[var(--devui-link)] cursor-pointer mx-[1px] text-[12px]",
|
|
21863
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
|
|
21864
|
+
}, toDisplayString$1("《" + unref($t)("gitCodeLayout.LoginModal.link.agreement") + "》"), 1),
|
|
21865
|
+
createElementVNode("span", _hoisted_2$4, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
|
|
21866
|
+
createElementVNode("a", {
|
|
21867
|
+
class: "text-[var(--devui-link)] cursor-pointer mx-[1px] text-[12px]",
|
|
21868
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
|
|
21869
|
+
}, toDisplayString$1("《" + unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy") + "》"), 1),
|
|
21870
|
+
renderSlot(_ctx.$slots, "default")
|
|
21871
|
+
]),
|
|
21872
|
+
_: 3
|
|
21873
|
+
}, 8, ["modelValue"]),
|
|
21874
|
+
createVNode(unref(Checkbox), {
|
|
21875
|
+
modelValue: dataShareChecked.value,
|
|
21876
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => dataShareChecked.value = $event),
|
|
21877
|
+
size: "sm",
|
|
21878
|
+
class: "mb-[12px]"
|
|
21879
|
+
}, {
|
|
21880
|
+
default: withCtx(() => [
|
|
21881
|
+
createElementVNode("span", _hoisted_3$4, toDisplayString$1(dataShareName.value), 1)
|
|
21882
|
+
]),
|
|
21883
|
+
_: 1
|
|
21884
|
+
}, 8, ["modelValue"])
|
|
21885
|
+
], 64);
|
|
21759
21886
|
};
|
|
21760
21887
|
}
|
|
21761
21888
|
});
|
|
21762
21889
|
const _hoisted_1$5 = { class: "text-center text-[18px] leading-[26px] font-bold mb-[24px] flex items-center justify-center relative" };
|
|
21763
21890
|
const _hoisted_2$3 = { class: "back-img absolute mr-[24px] left-0" };
|
|
21764
|
-
const _hoisted_3$
|
|
21891
|
+
const _hoisted_3$3 = ["src"];
|
|
21765
21892
|
const _hoisted_4$2 = {
|
|
21766
21893
|
key: 0,
|
|
21767
21894
|
class: "tracking-[.5px]"
|
|
@@ -21788,7 +21915,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
21788
21915
|
src: _ctx.icon,
|
|
21789
21916
|
class: "w-[24px] cursor-pointer",
|
|
21790
21917
|
onClick: withModifiers(handleClick, ["stop"])
|
|
21791
|
-
}, null, 8, _hoisted_3$
|
|
21918
|
+
}, null, 8, _hoisted_3$3)) : createCommentVNode("", true)
|
|
21792
21919
|
]),
|
|
21793
21920
|
_ctx.showTitle ? (openBlock(), createElementBlock("span", _hoisted_4$2, toDisplayString$1(_ctx.title), 1)) : createCommentVNode("", true)
|
|
21794
21921
|
]);
|
|
@@ -24121,7 +24248,8 @@ const isMobileEmail = (val) => {
|
|
|
24121
24248
|
return t$1("gitCodeLayout.common.phone") + "/" + t$1("gitCodeLayout.common.email");
|
|
24122
24249
|
};
|
|
24123
24250
|
const _hoisted_1$4 = { class: "modal-body" };
|
|
24124
|
-
const _hoisted_2$2 = { class: "
|
|
24251
|
+
const _hoisted_2$2 = { class: "mx-[1px]" };
|
|
24252
|
+
const _hoisted_3$2 = { class: "flex items-center justify-end px-[24px] pb-[24px]" };
|
|
24125
24253
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
24126
24254
|
__name: "loginCheckModal",
|
|
24127
24255
|
props: {
|
|
@@ -24152,7 +24280,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
24152
24280
|
title: unref($t)("gitCodeLayout.LoginModal.subtitle.useAgrAndPriPolTip")
|
|
24153
24281
|
}, {
|
|
24154
24282
|
footer: withCtx(() => [
|
|
24155
|
-
createElementVNode("div",
|
|
24283
|
+
createElementVNode("div", _hoisted_3$2, [
|
|
24156
24284
|
createVNode(unref(Button), {
|
|
24157
24285
|
class: "mr-2",
|
|
24158
24286
|
onClick: close
|
|
@@ -24177,17 +24305,19 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
24177
24305
|
default: withCtx(() => [
|
|
24178
24306
|
createElementVNode("div", _hoisted_1$4, [
|
|
24179
24307
|
createElementVNode("div", null, [
|
|
24180
|
-
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.youNeeToAgr"))
|
|
24308
|
+
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.youNeeToAgr")), 1),
|
|
24181
24309
|
createElementVNode("span", {
|
|
24182
24310
|
class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
|
|
24183
24311
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
|
|
24184
24312
|
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 1),
|
|
24185
|
-
|
|
24313
|
+
_cache[3] || (_cache[3] = createTextVNode("、")),
|
|
24186
24314
|
createElementVNode("span", {
|
|
24187
24315
|
class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
|
|
24188
24316
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
|
|
24189
24317
|
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 1),
|
|
24190
|
-
createTextVNode(
|
|
24318
|
+
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
|
|
24319
|
+
createElementVNode("span", _hoisted_2$2, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.dataShareTip")), 1),
|
|
24320
|
+
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.toUseGit")), 1)
|
|
24191
24321
|
]),
|
|
24192
24322
|
createElementVNode("div", null, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.ifYouDoNotAgrWe")), 1)
|
|
24193
24323
|
])
|
|
@@ -24454,7 +24584,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24454
24584
|
}
|
|
24455
24585
|
});
|
|
24456
24586
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
24457
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
24587
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-CKPuRJPh.js"));
|
|
24458
24588
|
const useSlidCaptcha = () => {
|
|
24459
24589
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
24460
24590
|
const open = (config) => {
|
|
@@ -24473,7 +24603,7 @@ const useSlidCaptcha = () => {
|
|
|
24473
24603
|
close: unMount
|
|
24474
24604
|
};
|
|
24475
24605
|
};
|
|
24476
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
24606
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-Qh085o9-.js"));
|
|
24477
24607
|
const useYunpianCaptcha = () => {
|
|
24478
24608
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
24479
24609
|
const open = (config) => {
|
|
@@ -24641,46 +24771,45 @@ const _hoisted_21 = { key: 2 };
|
|
|
24641
24771
|
const _hoisted_22 = { class: "flex items-center justify-between" };
|
|
24642
24772
|
const _hoisted_23 = { class: "text-[var(--devui-text-weak)] font-bold text-[16px]" };
|
|
24643
24773
|
const _hoisted_24 = { class: "text-[12px] leading-[32px]" };
|
|
24644
|
-
const _hoisted_25 = { class: "
|
|
24645
|
-
const _hoisted_26 = { class: "
|
|
24646
|
-
const _hoisted_27 =
|
|
24647
|
-
const _hoisted_28 =
|
|
24648
|
-
const _hoisted_29 = {
|
|
24774
|
+
const _hoisted_25 = { class: "qrcode-container flex flex-col items-center justify-center" };
|
|
24775
|
+
const _hoisted_26 = { class: "flex flex-col items-center justify-center w-[180px] h-[180px] relative" };
|
|
24776
|
+
const _hoisted_27 = ["src"];
|
|
24777
|
+
const _hoisted_28 = {
|
|
24649
24778
|
key: 0,
|
|
24650
24779
|
class: "mask"
|
|
24651
24780
|
};
|
|
24652
|
-
const
|
|
24653
|
-
const
|
|
24654
|
-
const
|
|
24655
|
-
const
|
|
24781
|
+
const _hoisted_29 = { class: "flex gap-1 items-center justify-center text-[16px] flex-wrap font-medium" };
|
|
24782
|
+
const _hoisted_30 = { class: "text-[#252B3A]" };
|
|
24783
|
+
const _hoisted_31 = { class: "text-[var(--theme-link)]" };
|
|
24784
|
+
const _hoisted_32 = {
|
|
24656
24785
|
key: 1,
|
|
24657
24786
|
class: "flex flex-col gap-3 items-center justify-center"
|
|
24658
24787
|
};
|
|
24659
|
-
const
|
|
24660
|
-
const
|
|
24661
|
-
const
|
|
24788
|
+
const _hoisted_33 = { class: "text-[var(--color-success)]" };
|
|
24789
|
+
const _hoisted_34 = { class: "text-center" };
|
|
24790
|
+
const _hoisted_35 = {
|
|
24662
24791
|
key: 0,
|
|
24663
24792
|
class: "text-center text-[16px] mt-[40px] text-[var(--devui-text-weak)] font-bold"
|
|
24664
24793
|
};
|
|
24665
|
-
const
|
|
24794
|
+
const _hoisted_36 = {
|
|
24666
24795
|
key: 0,
|
|
24667
24796
|
class: "login-modal-info h-[20px]"
|
|
24668
24797
|
};
|
|
24669
|
-
const
|
|
24670
|
-
const
|
|
24798
|
+
const _hoisted_37 = { class: "login-modal-info-left" };
|
|
24799
|
+
const _hoisted_38 = {
|
|
24671
24800
|
key: 0,
|
|
24672
24801
|
class: "mt-[18px]"
|
|
24673
24802
|
};
|
|
24674
|
-
const
|
|
24675
|
-
const
|
|
24676
|
-
const
|
|
24677
|
-
const
|
|
24678
|
-
const
|
|
24679
|
-
const
|
|
24680
|
-
const
|
|
24681
|
-
const
|
|
24682
|
-
const
|
|
24683
|
-
const
|
|
24803
|
+
const _hoisted_39 = { class: "flex justify-center" };
|
|
24804
|
+
const _hoisted_40 = { class: "flex items-center justify-center pr-[16px] mt-[16px]" };
|
|
24805
|
+
const _hoisted_41 = { class: "harmony-icon" };
|
|
24806
|
+
const _hoisted_42 = { class: "w-[50px] h-[20px] last-login-img" };
|
|
24807
|
+
const _hoisted_43 = ["src"];
|
|
24808
|
+
const _hoisted_44 = { class: "ml-[8px] text-[12px]" };
|
|
24809
|
+
const _hoisted_45 = { class: "login-modal-footer flex items-center justify-center" };
|
|
24810
|
+
const _hoisted_46 = { key: 2 };
|
|
24811
|
+
const _hoisted_47 = { class: "line-clamp-2" };
|
|
24812
|
+
const _hoisted_48 = { class: "absolute-btn" };
|
|
24684
24813
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
24685
24814
|
...{
|
|
24686
24815
|
name: "GLoginModal"
|
|
@@ -24712,7 +24841,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24712
24841
|
var _a;
|
|
24713
24842
|
return layoutConfig2.VITE_AI_HOST === ((_a = window == null ? void 0 : window.location) == null ? void 0 : _a.origin);
|
|
24714
24843
|
});
|
|
24715
|
-
const agreementSiteName = currentSiteName();
|
|
24716
24844
|
const props = __props;
|
|
24717
24845
|
const request = props.request;
|
|
24718
24846
|
provide("request", request);
|
|
@@ -25023,7 +25151,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25023
25151
|
const formType = ref(props.defaultType);
|
|
25024
25152
|
const showProtoCheck = ref(false);
|
|
25025
25153
|
const agreeAndLogin = () => {
|
|
25026
|
-
showProtoCheck.value = false;
|
|
25027
25154
|
status.value = true;
|
|
25028
25155
|
if (authType.value) {
|
|
25029
25156
|
pcAuthLogin(authType.value);
|
|
@@ -25151,15 +25278,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25151
25278
|
const slidCaptcha = useSlidCaptcha();
|
|
25152
25279
|
const yunpianCaptcha = useYunpianCaptcha();
|
|
25153
25280
|
const LoginCheck = async () => {
|
|
25154
|
-
const formData = await FormRef.value.ValidateForm();
|
|
25155
25281
|
let agreementFlag = false;
|
|
25156
25282
|
if (formType.value === "register" && !hwStatus.value) {
|
|
25157
25283
|
extraErrors.agreement = $t("gitCodeLayout.LoginModal.tips.pleaseReadHuaweiAgreement");
|
|
25158
25284
|
agreementFlag = true;
|
|
25159
25285
|
}
|
|
25160
25286
|
if (!status.value && !agreementFlag) {
|
|
25287
|
+
extraErrors.agreement = $t("gitCodeLayout.common.tips.agreementTip");
|
|
25161
25288
|
agreementFlag = true;
|
|
25162
|
-
showProtoCheck.value = true;
|
|
25163
25289
|
}
|
|
25164
25290
|
if (agreementFlag) {
|
|
25165
25291
|
AgreementWarn.value = true;
|
|
@@ -25168,6 +25294,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25168
25294
|
}, 500);
|
|
25169
25295
|
return false;
|
|
25170
25296
|
}
|
|
25297
|
+
const formData = await FormRef.value.ValidateForm();
|
|
25171
25298
|
extraErrors.agreement = "";
|
|
25172
25299
|
if (formData.type === "success") {
|
|
25173
25300
|
clearFormError();
|
|
@@ -25248,6 +25375,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25248
25375
|
var _a, _b;
|
|
25249
25376
|
if (formType.value === "register") {
|
|
25250
25377
|
useReport("signup_submit", {}, API.report);
|
|
25378
|
+
if (!status.value) {
|
|
25379
|
+
extraErrors.agreement = $t("gitCodeLayout.common.tips.agreementTip");
|
|
25380
|
+
AgreementWarn.value = true;
|
|
25381
|
+
setTimeout(() => {
|
|
25382
|
+
AgreementWarn.value = false;
|
|
25383
|
+
}, 500);
|
|
25384
|
+
return false;
|
|
25385
|
+
}
|
|
25251
25386
|
}
|
|
25252
25387
|
const formData = await ((_a = FormRef.value) == null ? void 0 : _a.ValidateForm());
|
|
25253
25388
|
if (!formData || formData.type === "fail") return false;
|
|
@@ -25678,7 +25813,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25678
25813
|
if (!status.value) {
|
|
25679
25814
|
extraErrors.agreement = $t("gitCodeLayout.common.tips.readPrivacyPolicy");
|
|
25680
25815
|
AgreementWarn.value = true;
|
|
25681
|
-
showProtoCheck.value = true;
|
|
25682
25816
|
setTimeout(() => {
|
|
25683
25817
|
AgreementWarn.value = false;
|
|
25684
25818
|
}, 500);
|
|
@@ -26005,8 +26139,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26005
26139
|
class: "text-[var(--theme-link)] cursor-pointer hover:underline"
|
|
26006
26140
|
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.backLogin")), 1)
|
|
26007
26141
|
])
|
|
26008
|
-
])
|
|
26009
|
-
createElementVNode("div", _hoisted_25, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.registerDesc")), 1)
|
|
26142
|
+
])
|
|
26010
26143
|
])) : createCommentVNode("", true),
|
|
26011
26144
|
formType.value === "login" && tabPanel.value === "miniProgram" ? (openBlock(), createBlock(DataPanel, {
|
|
26012
26145
|
key: 3,
|
|
@@ -26022,14 +26155,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26022
26155
|
})
|
|
26023
26156
|
}, {
|
|
26024
26157
|
default: withCtx(() => [
|
|
26025
|
-
createElementVNode("div",
|
|
26026
|
-
createElementVNode("div",
|
|
26158
|
+
createElementVNode("div", _hoisted_25, [
|
|
26159
|
+
createElementVNode("div", _hoisted_26, [
|
|
26027
26160
|
createElementVNode("img", {
|
|
26028
26161
|
src: miniProgramInfo.value.qrcode,
|
|
26029
26162
|
alt: "小程序二维码",
|
|
26030
26163
|
class: "w-[180px] h-[180px]"
|
|
26031
|
-
}, null, 8,
|
|
26032
|
-
miniProgramStatus.value !== "WAITING" ? (openBlock(), createElementBlock("div",
|
|
26164
|
+
}, null, 8, _hoisted_27),
|
|
26165
|
+
miniProgramStatus.value !== "WAITING" ? (openBlock(), createElementBlock("div", _hoisted_28, [
|
|
26033
26166
|
miniProgramStatus.value === "TIMEOUT" ? (openBlock(), createElementBlock("div", {
|
|
26034
26167
|
key: 0,
|
|
26035
26168
|
onClick: getMiniProgramQrCode,
|
|
@@ -26040,18 +26173,18 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26040
26173
|
size: "18",
|
|
26041
26174
|
color: "#3B3E55"
|
|
26042
26175
|
}),
|
|
26043
|
-
createElementVNode("div",
|
|
26044
|
-
createElementVNode("div",
|
|
26045
|
-
createElementVNode("button",
|
|
26176
|
+
createElementVNode("div", _hoisted_29, [
|
|
26177
|
+
createElementVNode("div", _hoisted_30, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip01")), 1),
|
|
26178
|
+
createElementVNode("button", _hoisted_31, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip02")), 1)
|
|
26046
26179
|
])
|
|
26047
26180
|
])) : createCommentVNode("", true),
|
|
26048
|
-
["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("div",
|
|
26049
|
-
createElementVNode("div",
|
|
26050
|
-
createElementVNode("div",
|
|
26181
|
+
["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("div", _hoisted_32, [
|
|
26182
|
+
createElementVNode("div", _hoisted_33, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip03")), 1),
|
|
26183
|
+
createElementVNode("div", _hoisted_34, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip04")), 1)
|
|
26051
26184
|
])) : createCommentVNode("", true)
|
|
26052
26185
|
])) : createCommentVNode("", true)
|
|
26053
26186
|
]),
|
|
26054
|
-
!["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p",
|
|
26187
|
+
!["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p", _hoisted_35, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip05")), 1)) : (openBlock(), createElementBlock("button", {
|
|
26055
26188
|
key: 1,
|
|
26056
26189
|
onClick: getMiniProgramQrCode,
|
|
26057
26190
|
class: "mt-2"
|
|
@@ -26083,8 +26216,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26083
26216
|
submit: withCtx(() => {
|
|
26084
26217
|
var _a2;
|
|
26085
26218
|
return [
|
|
26086
|
-
formType.value === "login" && tabPanel.value !== "miniProgram" ? (openBlock(), createElementBlock("div",
|
|
26087
|
-
createElementVNode("div",
|
|
26219
|
+
formType.value === "login" && tabPanel.value !== "miniProgram" ? (openBlock(), createElementBlock("div", _hoisted_36, [
|
|
26220
|
+
createElementVNode("div", _hoisted_37, [
|
|
26088
26221
|
createTextVNode(toDisplayString$1(errorMsg.value) + " ", 1),
|
|
26089
26222
|
errForRemoteLogin.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
26090
26223
|
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.unusualLogin")), 1),
|
|
@@ -26102,7 +26235,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26102
26235
|
])
|
|
26103
26236
|
])) : createCommentVNode("", true),
|
|
26104
26237
|
formType.value === "login" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
26105
|
-
tabPanel.value !== "miniProgram" ? (openBlock(), createElementBlock("div",
|
|
26238
|
+
tabPanel.value !== "miniProgram" ? (openBlock(), createElementBlock("div", _hoisted_38, [
|
|
26106
26239
|
createVNode(unref(Button), {
|
|
26107
26240
|
color: "primary",
|
|
26108
26241
|
variant: "solid",
|
|
@@ -26120,7 +26253,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26120
26253
|
createElementVNode("div", {
|
|
26121
26254
|
class: normalizeClass([["login-modal-footer-args", AgreementWarn.value ? "shaking-box" : ""], "mt-[16px]"])
|
|
26122
26255
|
}, [
|
|
26123
|
-
createElementVNode("div",
|
|
26256
|
+
createElementVNode("div", _hoisted_39, [
|
|
26124
26257
|
createVNode(_sfc_main$8, {
|
|
26125
26258
|
modelValue: status.value,
|
|
26126
26259
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => status.value = $event),
|
|
@@ -26128,31 +26261,31 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26128
26261
|
}, null, 8, ["modelValue"])
|
|
26129
26262
|
])
|
|
26130
26263
|
], 2),
|
|
26131
|
-
createElementVNode("div",
|
|
26264
|
+
createElementVNode("div", _hoisted_40, [
|
|
26132
26265
|
_ctx.openHarmonyGuide ? (openBlock(), createElementBlock("div", {
|
|
26133
26266
|
key: 0,
|
|
26134
26267
|
class: "text-[var(--theme-link)] flex items-center mt-[12px] cursor-pointer",
|
|
26135
26268
|
onClick: withModifiers(handleRegisterHarmony, ["stop"])
|
|
26136
26269
|
}, [
|
|
26137
|
-
createElementVNode("div",
|
|
26270
|
+
createElementVNode("div", _hoisted_41, [
|
|
26138
26271
|
_cache[15] || (_cache[15] = createElementVNode("img", {
|
|
26139
26272
|
src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
|
|
26140
26273
|
alt: "",
|
|
26141
26274
|
class: "w-[32px] h-[32px] inline-block harmony-icon-img"
|
|
26142
26275
|
}, null, -1)),
|
|
26143
|
-
createElementVNode("div",
|
|
26276
|
+
createElementVNode("div", _hoisted_42, [
|
|
26144
26277
|
recentLoginType.value === unref(LoginMethodEnum).HARMONY ? (openBlock(), createElementBlock("img", {
|
|
26145
26278
|
key: 0,
|
|
26146
26279
|
src: unref(recentLoginImg),
|
|
26147
26280
|
class: "w-[50px] h-[20px]"
|
|
26148
|
-
}, null, 8,
|
|
26281
|
+
}, null, 8, _hoisted_43)) : createCommentVNode("", true)
|
|
26149
26282
|
])
|
|
26150
26283
|
]),
|
|
26151
|
-
createElementVNode("span",
|
|
26284
|
+
createElementVNode("span", _hoisted_44, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.oh")), 1)
|
|
26152
26285
|
])) : createCommentVNode("", true)
|
|
26153
26286
|
])
|
|
26154
26287
|
])) : createCommentVNode("", true),
|
|
26155
|
-
createElementVNode("div",
|
|
26288
|
+
createElementVNode("div", _hoisted_45, [
|
|
26156
26289
|
createVNode(GAuth, {
|
|
26157
26290
|
logos,
|
|
26158
26291
|
onAuth: pcAuthLogin,
|
|
@@ -26161,14 +26294,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26161
26294
|
}, null, 8, ["logos", "recentLoginType"])
|
|
26162
26295
|
])
|
|
26163
26296
|
], 64)) : createCommentVNode("", true),
|
|
26164
|
-
formType.value === "register" || formType.value === "forget" ? (openBlock(), createElementBlock("div",
|
|
26297
|
+
formType.value === "register" || formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_46, [
|
|
26165
26298
|
createElementVNode("div", {
|
|
26166
26299
|
class: normalizeClass([
|
|
26167
26300
|
"text-[var(--devui-danger)] text-[14px] break-all box-border leading-[20px] h-[40px]",
|
|
26168
26301
|
formType.value === "register" ? "mt-[-8px]" : ((_a2 = formErrors == null ? void 0 : formErrors.username) == null ? void 0 : _a2.length) > 42 ? "cursor-pointer" : ""
|
|
26169
26302
|
])
|
|
26170
26303
|
}, [
|
|
26171
|
-
createElementVNode("span",
|
|
26304
|
+
createElementVNode("span", _hoisted_47, toDisplayString$1(errorMsg.value), 1)
|
|
26172
26305
|
], 2),
|
|
26173
26306
|
createElementVNode("div", {
|
|
26174
26307
|
class: normalizeClass(["register-agree mt-[16px]", [AgreementWarn.value ? "shaking-box" : ""]])
|
|
@@ -26177,12 +26310,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26177
26310
|
modelValue: status.value,
|
|
26178
26311
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => status.value = $event),
|
|
26179
26312
|
onDeclares: _cache[10] || (_cache[10] = (typ) => handleDisplay(typ)),
|
|
26180
|
-
"agreement-text": `《${unref(agreementSiteName)} ${unref($t)("gitCodeLayout.LoginModal.link.agreement")}》`,
|
|
26181
|
-
"privacy-text": `《${unref(agreementSiteName)} ${unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")}》`,
|
|
26182
26313
|
onClick: _cache[11] || (_cache[11] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
|
|
26183
|
-
}, null, 8, ["modelValue"
|
|
26314
|
+
}, null, 8, ["modelValue"])
|
|
26184
26315
|
], 2),
|
|
26185
|
-
createElementVNode("div",
|
|
26316
|
+
createElementVNode("div", _hoisted_48, [
|
|
26186
26317
|
createVNode(unref(Button), {
|
|
26187
26318
|
color: "primary",
|
|
26188
26319
|
variant: "solid",
|