vue-layout-gitcode 1.9.53 → 1.9.54
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-D7b4NrGu.js → GloabarSearch-BKbD4E1Z.js} +3 -3
- package/{MenuItem-NXCr4K25.js → MenuItem-Ds8HpRek.js} +1 -1
- package/{ProjectMenuList-Fh5qV4eA.js → ProjectMenuList-wqov62hv.js} +4 -4
- package/{ProjectMenuListV2-g8GW_Fx8.js → ProjectMenuListV2-CBDop7_p.js} +3 -3
- package/{ProjectSearch-BZpDrC6-.js → ProjectSearch-CQGr2sFM.js} +1 -1
- package/{SearchHistoryList-gD4XlWI-.js → SearchHistoryList-CEuItO_r.js} +1 -1
- package/{SearchPrefixTag-DTDUKd0T.js → SearchPrefixTag-CZqpX561.js} +1 -1
- package/{SearchRecommed-DoFx6I6g.js → SearchRecommed-awSwT-BI.js} +2 -2
- package/{SearchScopeList-803XzJrl.js → SearchScopeList-BTG0qdJ0.js} +1 -1
- package/{UserSearch-jO_8UINd.js → UserSearch-Dd-eQ3vt.js} +11 -2
- package/{index-CTBLbh6u.js → index-Bmrl92GJ.js} +1 -1
- package/{index-D33NzfYP.js → index-DHpQZi8b.js} +990 -481
- package/{index-lHH4eI3c.js → index-DSR-pbwA.js} +1 -1
- package/{index-DmK6EVbR.js → index-Za1QBXHF.js} +3 -3
- package/index.d.ts +2 -0
- package/index.js +12 -11
- package/{notice-BJPAGOXm.js → notice-BPASre1t.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-BlGsld3x.js → transWebUrl-DX1uQ-Qk.js} +1 -1
|
@@ -9,12 +9,12 @@ import "vue-devui-lal/tooltip/style.css";
|
|
|
9
9
|
import "vue-devui-lal/textarea/style.css";
|
|
10
10
|
import { Icon } from "vue-devui-lal/icon";
|
|
11
11
|
import "vue-devui-lal/icon/style.css";
|
|
12
|
+
import cloneDeep from "lodash/cloneDeep";
|
|
12
13
|
import { useRouter, useRoute, createRouter, createWebHistory, createMemoryHistory } from "vue-router";
|
|
13
14
|
import { useWindowSize, useEventListener, useElementSize, useStorage, useDebounceFn } from "@vueuse/core";
|
|
14
15
|
import { Avatar } from "vue-devui-lal/avatar";
|
|
15
16
|
import "vue-devui-lal/avatar/style.css";
|
|
16
17
|
import "lodash/last";
|
|
17
|
-
import cloneDeep from "lodash/cloneDeep";
|
|
18
18
|
import dayjs$1 from "dayjs";
|
|
19
19
|
import isDate$2 from "lodash/isDate";
|
|
20
20
|
import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
|
|
@@ -50,9 +50,9 @@ import { Checkbox } from "vue-devui-lal/checkbox";
|
|
|
50
50
|
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
|
-
const _hoisted_1$
|
|
54
|
-
const _hoisted_2$
|
|
55
|
-
const _sfc_main$
|
|
53
|
+
const _hoisted_1$w = ["xlink:href"];
|
|
54
|
+
const _hoisted_2$n = ["xlink:href"];
|
|
55
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
56
56
|
__name: "index",
|
|
57
57
|
props: {
|
|
58
58
|
name: { default: "gt-run" },
|
|
@@ -81,7 +81,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
81
81
|
}, [
|
|
82
82
|
createElementVNode("use", {
|
|
83
83
|
"xlink:href": `#${_ctx.name}`
|
|
84
|
-
}, null, 8, _hoisted_1$
|
|
84
|
+
}, null, 8, _hoisted_1$w)
|
|
85
85
|
], 6)),
|
|
86
86
|
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
87
87
|
], 2)) : (openBlock(), createElementBlock("svg", {
|
|
@@ -92,7 +92,7 @@ const _sfc_main$C = /* @__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
|
}
|
|
@@ -104,7 +104,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
104
104
|
}
|
|
105
105
|
return target;
|
|
106
106
|
};
|
|
107
|
-
const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
107
|
+
const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
108
108
|
const defaultConfig = {
|
|
109
109
|
VITE_ENV: "production",
|
|
110
110
|
VITE_HOST: "https://gitcode.com",
|
|
@@ -120,12 +120,12 @@ const defaultConfig = {
|
|
|
120
120
|
VITE_SECRET_KEY: "SA!nUNPZ5o!OSV&B",
|
|
121
121
|
VITE_SECRET_IV: "SA!nwwwZ5o!OSV&B"
|
|
122
122
|
};
|
|
123
|
-
|
|
123
|
+
const layoutConfig$6 = reactive({ ...defaultConfig });
|
|
124
124
|
function setLayoutConfig(customConfig) {
|
|
125
|
-
Object.assign(layoutConfig$
|
|
125
|
+
Object.assign(layoutConfig$6, customConfig);
|
|
126
126
|
}
|
|
127
127
|
function useLayoutConfig() {
|
|
128
|
-
return readonly(layoutConfig$
|
|
128
|
+
return readonly(layoutConfig$6);
|
|
129
129
|
}
|
|
130
130
|
async function reqCatch(req, params) {
|
|
131
131
|
try {
|
|
@@ -474,7 +474,8 @@ var AsideReportEvent = /* @__PURE__ */ ((AsideReportEvent2) => {
|
|
|
474
474
|
return AsideReportEvent2;
|
|
475
475
|
})(AsideReportEvent || {});
|
|
476
476
|
const AICopilot_ROUTE_NAME = "aiCopilot";
|
|
477
|
-
const
|
|
477
|
+
const HELP_DOCS_URL_GITCODE = "https://docs.gitcode.com";
|
|
478
|
+
const HELP_DOCS_URL_ATOMGIT = "https://docs.atomgit.com";
|
|
478
479
|
const INFORMATION_CENTER_URL = "https://news.gitcode.com/news";
|
|
479
480
|
const AVATAR_VISITED_DATE = "avatar-visitedDate";
|
|
480
481
|
const AVATAR_VISITED_USERNAME = "avatar-visited-username";
|
|
@@ -494,6 +495,12 @@ const DEFAULT_COUNTRY = "CN_0086";
|
|
|
494
495
|
const IMAGE_CDN_PREFIX = "https://cdn-static.gitcode.com";
|
|
495
496
|
const HARMONY_VISITED_DATE = "harmony-visitedDate";
|
|
496
497
|
const HARMONY_SURVEY_DELAY = "harmony-survey-delay";
|
|
498
|
+
const SITE_STATUS = {
|
|
499
|
+
DISABLE: true,
|
|
500
|
+
// 是否维护中(true代表全站维护)
|
|
501
|
+
COMMUNITY: false
|
|
502
|
+
// 是否开启社区
|
|
503
|
+
};
|
|
497
504
|
const UTM_SOURCE = "utm_source";
|
|
498
505
|
const PASSPORT_PREFIX = "/uc";
|
|
499
506
|
const AUTH_WINDOW = "auth_window";
|
|
@@ -511,6 +518,27 @@ const TOOLS_FLOAT_COLLAPSE_STATUS = {
|
|
|
511
518
|
const TOOLS_FLOAT_COLLAPSE_STATUS_KEY_FOR_REPO = "asideTool_collapse_status_repo";
|
|
512
519
|
const TOOLS_FLOAT_COLLAPSE_STATUS_KEY = "asideTool_collapse_status";
|
|
513
520
|
const TOOLS_FLOAT_COLLAPSE_DATE_KEY = "asideTool_collapse_date";
|
|
521
|
+
const GUI_YANG_GITCODE_HOST = "gitcode.host";
|
|
522
|
+
const LOGO_MAP = {
|
|
523
|
+
gitcode: {
|
|
524
|
+
favicon: "https://cdn-static.gitcode.com/static/images/logo-favicon.png",
|
|
525
|
+
siteLogoDark: "https://cdn-static.gitcode.com/static/images/bind-logo-dark.png",
|
|
526
|
+
siteLogoWhite: "https://cdn-static.gitcode.com/static/images/bind-logo-white.png",
|
|
527
|
+
tianqiLogoLocalWhite: "https://cdn-static.gitcode.com/static/images/tianqi-white-bind.png",
|
|
528
|
+
tianqiLogoLocalDark: "https://cdn-static.gitcode.com/static/images/tianqi-black-bind.png",
|
|
529
|
+
aiLogoWhite: "https://cdn-static.gitcode.com/static/images/gitcode-ai-logo-white_atomgit.png",
|
|
530
|
+
aiLogoDark: "https://cdn-static.gitcode.com/static/images/gitcode-ai-logo-dark_atomgit.png"
|
|
531
|
+
},
|
|
532
|
+
atomgit: {
|
|
533
|
+
favicon: "https://cdn-static.gitcode.com/static/images/logo-favicon.png",
|
|
534
|
+
siteLogoDark: "https://cdn-static.gitcode.com/static/images/bind-logo-dark.png",
|
|
535
|
+
siteLogoWhite: "https://cdn-static.gitcode.com/static/images/bind-logo-white.png",
|
|
536
|
+
tianqiLogoLocalWhite: "https://cdn-static.gitcode.com/static/images/tianqi-white-bind.png",
|
|
537
|
+
tianqiLogoLocalDark: "https://cdn-static.gitcode.com/static/images/tianqi-black-bind.png",
|
|
538
|
+
aiLogoWhite: "https://cdn-static.gitcode.com/static/images/gitcode-ai-logo-white_atomgit.png",
|
|
539
|
+
aiLogoDark: "https://cdn-static.gitcode.com/static/images/gitcode-ai-logo-dark_atomgit.png"
|
|
540
|
+
}
|
|
541
|
+
};
|
|
514
542
|
/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */
|
|
515
543
|
const {
|
|
516
544
|
entries,
|
|
@@ -7607,13 +7635,20 @@ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
|
7607
7635
|
if (process.env.NODE_ENV !== "production") ;
|
|
7608
7636
|
const gitCodeLayout$1 = {
|
|
7609
7637
|
home: {
|
|
7638
|
+
migrationAnnounce: {
|
|
7639
|
+
preContent: "亲爱的 {siteName} 开发者:平台正在进行系统化融合与升级,预计将于10月28日12:00完成。之后,您将体验更强大、更稳定的平台。",
|
|
7640
|
+
content: "亲爱的开发者:GitCode 与 AtomGit 已完成深度整合升级,您将体验更稳定、更精彩的开源社区服务!",
|
|
7641
|
+
viewDetail: "【查看详情】",
|
|
7642
|
+
closePermanently: "不再提醒",
|
|
7643
|
+
close: "关闭"
|
|
7644
|
+
},
|
|
7610
7645
|
alreadyFollowed: "已关注",
|
|
7611
7646
|
focusOn: "关注",
|
|
7612
7647
|
star: "星标",
|
|
7613
7648
|
informationCenter: "资讯中心",
|
|
7614
7649
|
feedbackCenter: "反馈中心",
|
|
7615
7650
|
companyInformation: "重庆开源共创",
|
|
7616
|
-
recordInformation: "渝ICP备2023009037
|
|
7651
|
+
recordInformation: "渝ICP备2023009037号-1",
|
|
7617
7652
|
technicalSupport: "技术支持:",
|
|
7618
7653
|
HWCloud: "华为云",
|
|
7619
7654
|
userFeedback01: "在线客服",
|
|
@@ -7643,7 +7678,14 @@ const gitCodeLayout$1 = {
|
|
|
7643
7678
|
channel: {},
|
|
7644
7679
|
TianqiAI: "天启 AI",
|
|
7645
7680
|
Tianqi: "天启",
|
|
7646
|
-
topic: "热门主题"
|
|
7681
|
+
topic: "热门主题",
|
|
7682
|
+
copyright_atomgit: {
|
|
7683
|
+
slogon: "共创GitCode,开发者的代码家园",
|
|
7684
|
+
digest: "重庆开源共创科技有限公司版权所有",
|
|
7685
|
+
companyInformation: "重庆开源共创",
|
|
7686
|
+
recordInformation: "渝ICP备2023009037号-12",
|
|
7687
|
+
publicSecurity: "xxxx"
|
|
7688
|
+
}
|
|
7647
7689
|
},
|
|
7648
7690
|
header: {
|
|
7649
7691
|
create: "新建",
|
|
@@ -7741,11 +7783,12 @@ const gitCodeLayout$1 = {
|
|
|
7741
7783
|
attention: "关注"
|
|
7742
7784
|
},
|
|
7743
7785
|
tips: {
|
|
7744
|
-
notcieTitle: "
|
|
7786
|
+
notcieTitle: "GitCode 提示",
|
|
7745
7787
|
notcie1: "你的登录信息已过期,请重新登录!",
|
|
7746
7788
|
notcie2: "登录之后才能开启全新体验哦",
|
|
7747
7789
|
readPrivacyPolicy: "请阅读并同意用户协议以及其隐私政策",
|
|
7748
|
-
welcome: "欢迎来到
|
|
7790
|
+
welcome: "欢迎来到 GitCode",
|
|
7791
|
+
agreementTip: "请阅读并同意用户协议、隐私政策和数据共享"
|
|
7749
7792
|
},
|
|
7750
7793
|
foldup: "收起",
|
|
7751
7794
|
iCreated: "我创建的",
|
|
@@ -7792,7 +7835,7 @@ const gitCodeLayout$1 = {
|
|
|
7792
7835
|
},
|
|
7793
7836
|
LoginModal: {
|
|
7794
7837
|
title: {
|
|
7795
|
-
login: "欢迎登录你的GitCode账号",
|
|
7838
|
+
login: "欢迎登录你的 GitCode 账号",
|
|
7796
7839
|
register: "欢迎注册"
|
|
7797
7840
|
},
|
|
7798
7841
|
subtitle: {
|
|
@@ -7841,7 +7884,7 @@ const gitCodeLayout$1 = {
|
|
|
7841
7884
|
SMSVerificationCode: "请输入{count}位有效的短信验证码",
|
|
7842
7885
|
fillNecessaryInfo: "请输入有效的手机号码",
|
|
7843
7886
|
youNeeToAgr: "您需要同意",
|
|
7844
|
-
toUseGit: "
|
|
7887
|
+
toUseGit: "才能使用。",
|
|
7845
7888
|
ifYouDoNotAgrWe: "如果您不同意,很遗憾我们无法为您提供服务。",
|
|
7846
7889
|
disAndQui: "不同意并退出",
|
|
7847
7890
|
agrAndSigIn: "同意并登录",
|
|
@@ -7853,7 +7896,13 @@ const gitCodeLayout$1 = {
|
|
|
7853
7896
|
agreement: "用户协议",
|
|
7854
7897
|
privacyPolicy: "隐私政策",
|
|
7855
7898
|
huaweiCloudAgreement: "华为云用户协议",
|
|
7856
|
-
agreementPrivacy: "华为云隐私政策声明"
|
|
7899
|
+
agreementPrivacy: "华为云隐私政策声明",
|
|
7900
|
+
gitCodeProtocol: "GitCode用户协议",
|
|
7901
|
+
gitCodePrivacy: "GitCode隐私政策",
|
|
7902
|
+
dataShare: "我同意将账号、组织、仓库等信息提供给{name}进行数据共享",
|
|
7903
|
+
chiCloDevSerAgr: "华为云开发者服务协议",
|
|
7904
|
+
chiCloDevPriPolSta: "华为云开发者隐私政策声明",
|
|
7905
|
+
dataShareTip: "数据共享"
|
|
7857
7906
|
},
|
|
7858
7907
|
registerDesc: "GitCode 与华为云共同为用户提供代码托管服务,在使用代码托管相关服务时,将同步授权并开通华为云服务,并与重庆开源共创科技有限公司(GitCode的运营主体)关联及共享。",
|
|
7859
7908
|
rule: {
|
|
@@ -7911,6 +7960,13 @@ const zh = {
|
|
|
7911
7960
|
};
|
|
7912
7961
|
const gitCodeLayout = {
|
|
7913
7962
|
home: {
|
|
7963
|
+
migrationAnnounce: {
|
|
7964
|
+
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.",
|
|
7965
|
+
content: "GitCode and AtomGit are now fully integrated. Enjoy a more stable and vibrant open source community!",
|
|
7966
|
+
viewDetail: "[View detail]",
|
|
7967
|
+
closePermanently: "Don't remind again",
|
|
7968
|
+
close: "Close"
|
|
7969
|
+
},
|
|
7914
7970
|
veryGood: "Excellent",
|
|
7915
7971
|
good: "Good",
|
|
7916
7972
|
generally: "Average",
|
|
@@ -7939,7 +7995,7 @@ const gitCodeLayout = {
|
|
|
7939
7995
|
slogon: "Co-create GitCode, the Code Home for Developers",
|
|
7940
7996
|
digest: "ChongQingKaiYuanGongChuang Technology Co., Ltd. All Rights Reserved",
|
|
7941
7997
|
companyInformation: "ChongQingKaiYuanGongChuang",
|
|
7942
|
-
recordInformation: "Yu ICP No. 2023009037",
|
|
7998
|
+
recordInformation: "Yu ICP No. 2023009037-1",
|
|
7943
7999
|
searchPlaceholder2: "Type <kbd>/</kbd> to search",
|
|
7944
8000
|
searchPlaceholder: "Search",
|
|
7945
8001
|
alreadyFollowed: "Followed",
|
|
@@ -7947,7 +8003,14 @@ const gitCodeLayout = {
|
|
|
7947
8003
|
org: {},
|
|
7948
8004
|
TianqiAI: "Tianqi AI",
|
|
7949
8005
|
Tianqi: "Tianqi",
|
|
7950
|
-
topic: "Hot topics"
|
|
8006
|
+
topic: "Hot topics",
|
|
8007
|
+
copyright_atomgit: {
|
|
8008
|
+
slogon: "Co-create GitCode, the Code Home for Developers",
|
|
8009
|
+
digest: "ChongQingKaiYuanGongChuang Technology Co., Ltd. All Rights Reserved",
|
|
8010
|
+
companyInformation: "ChongQingKaiYuanGongChuang",
|
|
8011
|
+
recordInformation: "Yu ICP No. 2023009037-12",
|
|
8012
|
+
publicSecurity: "xxxx"
|
|
8013
|
+
}
|
|
7951
8014
|
},
|
|
7952
8015
|
header: {
|
|
7953
8016
|
create: "New",
|
|
@@ -8049,7 +8112,8 @@ const gitCodeLayout = {
|
|
|
8049
8112
|
notcie1: "Login has expired, please log in again!",
|
|
8050
8113
|
notcie2: "Log in to unlock a brand new experience!",
|
|
8051
8114
|
readPrivacyPolicy: "Please Read and Agree to the User Agreement and Privacy Policy",
|
|
8052
|
-
welcome: "Welcome to GitCode"
|
|
8115
|
+
welcome: "Welcome to GitCode",
|
|
8116
|
+
agreementTip: "Please read and agree to the user agreement, privacy policy and data sharing"
|
|
8053
8117
|
},
|
|
8054
8118
|
foldup: "Collapse",
|
|
8055
8119
|
iCreated: "Yours",
|
|
@@ -8157,7 +8221,13 @@ const gitCodeLayout = {
|
|
|
8157
8221
|
agreement: "User Agreement",
|
|
8158
8222
|
privacyPolicy: "Privacy Policy",
|
|
8159
8223
|
huaweiCloudAgreement: "Huawei Cloud User Agreement",
|
|
8160
|
-
agreementPrivacy: "Huawei Cloud Privacy Policy Statement"
|
|
8224
|
+
agreementPrivacy: "Huawei Cloud Privacy Policy Statement",
|
|
8225
|
+
gitCodeProtocol: "GitCode User Agreement",
|
|
8226
|
+
gitCodePrivacy: "GitCode Privacy Policy",
|
|
8227
|
+
dataShare: "I agree to share my account, organization, repository information with {name} for data sharing",
|
|
8228
|
+
chiCloDevSerAgr: "Huawei Cloud Developer Service Agreement",
|
|
8229
|
+
chiCloDevPriPolSta: "Huawei Cloud Developer Privacy Policy Statement",
|
|
8230
|
+
dataShareTip: "Data Sharing"
|
|
8161
8231
|
},
|
|
8162
8232
|
registerDesc: "GitCode 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 GitCode).",
|
|
8163
8233
|
rule: {
|
|
@@ -8222,9 +8292,24 @@ const LANGUAGE = [
|
|
|
8222
8292
|
{ label: "English", value: LANG_EN, language: LANGUAGE_EN, icon: "gt-line-English1" }
|
|
8223
8293
|
];
|
|
8224
8294
|
const LANG_KEY = "gitcode_lang";
|
|
8295
|
+
const COOKIE_DOMAIN = () => {
|
|
8296
|
+
if (typeof window !== "undefined" && window.location.hostname.includes("atomgit.com")) {
|
|
8297
|
+
return ".atomgit.com";
|
|
8298
|
+
} else if (typeof window !== "undefined" && window.location.hostname.includes("gitcode.com")) {
|
|
8299
|
+
return ".gitcode.com";
|
|
8300
|
+
}
|
|
8301
|
+
return ".gitcode.com";
|
|
8302
|
+
};
|
|
8303
|
+
const COOKIE_OPTIONS = {
|
|
8304
|
+
expires: 365,
|
|
8305
|
+
path: "/",
|
|
8306
|
+
secure: typeof window !== "undefined" && window.location.protocol === "https:",
|
|
8307
|
+
sameSite: "Lax",
|
|
8308
|
+
domain: COOKIE_DOMAIN()
|
|
8309
|
+
};
|
|
8225
8310
|
const SUPPORT_LOCALES = [LANG_EN, LANG_ZH];
|
|
8226
8311
|
const currentDomainCookie = api.get(LANG_KEY);
|
|
8227
|
-
if (currentDomainCookie && "." + window.location.hostname !==
|
|
8312
|
+
if (currentDomainCookie && "." + window.location.hostname !== COOKIE_DOMAIN() || !SUPPORT_LOCALES.includes(currentDomainCookie)) {
|
|
8228
8313
|
api.remove(LANG_KEY);
|
|
8229
8314
|
}
|
|
8230
8315
|
function isComposer(instance, mode) {
|
|
@@ -8241,7 +8326,7 @@ function setupI18n(options = { locale: LANG_EN }) {
|
|
|
8241
8326
|
if (typeof document !== "undefined" && document.documentElement) {
|
|
8242
8327
|
document.documentElement.lang = options.locale;
|
|
8243
8328
|
}
|
|
8244
|
-
const i18n2 = createI18n(options);
|
|
8329
|
+
const i18n2 = createI18n({ ...options });
|
|
8245
8330
|
setI18nLanguage(i18n2, options.locale);
|
|
8246
8331
|
return i18n2;
|
|
8247
8332
|
}
|
|
@@ -8275,7 +8360,7 @@ const $i18n = setupI18n({
|
|
|
8275
8360
|
}
|
|
8276
8361
|
});
|
|
8277
8362
|
const i18n = $i18n;
|
|
8278
|
-
const layoutConfig$
|
|
8363
|
+
const layoutConfig$5 = useLayoutConfig();
|
|
8279
8364
|
function scrollToTop() {
|
|
8280
8365
|
if (typeof window !== "undefined" && window.pageYOffset) {
|
|
8281
8366
|
const c = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;
|
|
@@ -8304,7 +8389,7 @@ function extractRepoInfoWithURL(repoUrl) {
|
|
|
8304
8389
|
return parts.join("/");
|
|
8305
8390
|
}
|
|
8306
8391
|
const isGstarRepo = (topics) => {
|
|
8307
|
-
const gstarTopicIds = layoutConfig$
|
|
8392
|
+
const gstarTopicIds = layoutConfig$5.VITE_GSTAR_TOPIC.split(",");
|
|
8308
8393
|
let isGstar = false;
|
|
8309
8394
|
topics && topics.forEach((item) => {
|
|
8310
8395
|
if (gstarTopicIds.includes(item.topic_id || item.id)) {
|
|
@@ -8314,7 +8399,7 @@ const isGstarRepo = (topics) => {
|
|
|
8314
8399
|
return isGstar;
|
|
8315
8400
|
};
|
|
8316
8401
|
const isTrustedRepo = (topics) => {
|
|
8317
|
-
const trustedTopicIds = layoutConfig$
|
|
8402
|
+
const trustedTopicIds = layoutConfig$5.VITE_TRUSTED_TOPIC.split(",");
|
|
8318
8403
|
let isTrusted = false;
|
|
8319
8404
|
topics && topics.forEach((item) => {
|
|
8320
8405
|
if (trustedTopicIds.includes(item.topic_id || item.id)) {
|
|
@@ -8323,7 +8408,7 @@ const isTrustedRepo = (topics) => {
|
|
|
8323
8408
|
});
|
|
8324
8409
|
return isTrusted;
|
|
8325
8410
|
};
|
|
8326
|
-
const INCUBATION_TOPICS = layoutConfig$
|
|
8411
|
+
const INCUBATION_TOPICS = layoutConfig$5.VITE_INCUBATION_TOPIC || "";
|
|
8327
8412
|
const isIncubationRepo = (topics = []) => {
|
|
8328
8413
|
if (!topics) return false;
|
|
8329
8414
|
const incubationIds = INCUBATION_TOPICS.split(",");
|
|
@@ -8366,7 +8451,7 @@ const getLastTimeRepoId = () => {
|
|
|
8366
8451
|
};
|
|
8367
8452
|
const setUtmSourceSign = (utm_source) => {
|
|
8368
8453
|
const time = new Date((/* @__PURE__ */ new Date()).getTime() + 60 * 60 * 1e3);
|
|
8369
|
-
return api.set("utm_source_sign", utm_source, { expires: time, domain: layoutConfig$
|
|
8454
|
+
return api.set("utm_source_sign", utm_source, { expires: time, domain: layoutConfig$5.VITE_COOKIE_DOMAIN });
|
|
8370
8455
|
};
|
|
8371
8456
|
const getUtmSourceSign = () => {
|
|
8372
8457
|
return api.get("utm_source_sign") || "";
|
|
@@ -10926,7 +11011,7 @@ const getCommonHeadInfo = (isAiHub) => {
|
|
|
10926
11011
|
"X-Device-ID": "unknown"
|
|
10927
11012
|
};
|
|
10928
11013
|
};
|
|
10929
|
-
const layoutConfig$
|
|
11014
|
+
const layoutConfig$4 = useLayoutConfig();
|
|
10930
11015
|
const setPassportPrefix = (url, method) => {
|
|
10931
11016
|
const prefix = "/uc";
|
|
10932
11017
|
{
|
|
@@ -10950,7 +11035,7 @@ const setPassportPrefix = (url, method) => {
|
|
|
10950
11035
|
};
|
|
10951
11036
|
const proxyService = (params, customConfigs) => {
|
|
10952
11037
|
const service = axios.create({
|
|
10953
|
-
baseURL: layoutConfig$
|
|
11038
|
+
baseURL: layoutConfig$4.VITE_API_HOST,
|
|
10954
11039
|
timeout: (customConfigs == null ? void 0 : customConfigs.customTimeout) || 3e4,
|
|
10955
11040
|
withCredentials: true
|
|
10956
11041
|
});
|
|
@@ -10998,10 +11083,136 @@ const proxyService = (params, customConfigs) => {
|
|
|
10998
11083
|
);
|
|
10999
11084
|
return service(params);
|
|
11000
11085
|
};
|
|
11001
|
-
const
|
|
11002
|
-
|
|
11003
|
-
|
|
11004
|
-
|
|
11086
|
+
const transformUrl = (url) => {
|
|
11087
|
+
var _a;
|
|
11088
|
+
if (!url) return url;
|
|
11089
|
+
if (url.startsWith("/") && !url.startsWith("//")) return url;
|
|
11090
|
+
if (typeof window !== "undefined" && typeof location !== "undefined") {
|
|
11091
|
+
if (url == null ? void 0 : url.startsWith("https://cdn-")) {
|
|
11092
|
+
return url;
|
|
11093
|
+
}
|
|
11094
|
+
if (url == null ? void 0 : url.includes("myhuaweicloud.com")) {
|
|
11095
|
+
return url;
|
|
11096
|
+
}
|
|
11097
|
+
const host = (_a = location.host) == null ? void 0 : _a.replace(/^ai\./, "");
|
|
11098
|
+
if (host.includes("gitcode.host")) {
|
|
11099
|
+
return url == null ? void 0 : url.replace(/gitcode\.com/g, host);
|
|
11100
|
+
}
|
|
11101
|
+
if (url == null ? void 0 : url.includes("test.gitcode.net")) {
|
|
11102
|
+
return url == null ? void 0 : url.replace(/test\.gitcode\.net/g, host);
|
|
11103
|
+
}
|
|
11104
|
+
try {
|
|
11105
|
+
const urlObj = new URL(url);
|
|
11106
|
+
if (urlObj.host === host) {
|
|
11107
|
+
return url;
|
|
11108
|
+
}
|
|
11109
|
+
} catch (error) {
|
|
11110
|
+
console.error("transformUrl: URL 解析失败", error);
|
|
11111
|
+
}
|
|
11112
|
+
return transformUrlWithSpecialPrefix({ url, host });
|
|
11113
|
+
}
|
|
11114
|
+
return url;
|
|
11115
|
+
};
|
|
11116
|
+
const transformUrlWithSpecialPrefix = ({ url, host }) => {
|
|
11117
|
+
const specialPrefix = ["-tianqi", "-ai", "-news", "-competition"];
|
|
11118
|
+
const isTestEnv = /^(test|local)\./i.test(host);
|
|
11119
|
+
const isPreEnv = /^(pre|loc-pre)\./i.test(host);
|
|
11120
|
+
const isNonProdEnv = isTestEnv || isPreEnv;
|
|
11121
|
+
if (!isNonProdEnv) {
|
|
11122
|
+
return url == null ? void 0 : url.replace(/gitcode\.com/g, host);
|
|
11123
|
+
}
|
|
11124
|
+
if (specialPrefix.some((prefix) => url == null ? void 0 : url.includes(prefix))) {
|
|
11125
|
+
try {
|
|
11126
|
+
const urlObj = new URL(url);
|
|
11127
|
+
const urlHost = urlObj.host;
|
|
11128
|
+
const specialPrefixMatch = specialPrefix.find((prefix) => urlHost.includes(prefix));
|
|
11129
|
+
if (specialPrefixMatch) {
|
|
11130
|
+
const prefixPart = urlHost.split(".")[0];
|
|
11131
|
+
const mainDomain = host.replace(/^(test|pre|local|loc-pre)\./, "");
|
|
11132
|
+
urlObj.host = `${prefixPart}.${mainDomain}`;
|
|
11133
|
+
return urlObj.toString();
|
|
11134
|
+
}
|
|
11135
|
+
} catch (error) {
|
|
11136
|
+
return url == null ? void 0 : url.replace(/gitcode\.com/g, host);
|
|
11137
|
+
}
|
|
11138
|
+
}
|
|
11139
|
+
return url == null ? void 0 : url.replace(/gitcode\.com/g, host);
|
|
11140
|
+
};
|
|
11141
|
+
const transformNewsUrl = (url) => {
|
|
11142
|
+
if (url.startsWith("/") && !url.startsWith("//")) return url;
|
|
11143
|
+
if (url.includes("-news.")) return url;
|
|
11144
|
+
let transformedUrl = transformUrl(url);
|
|
11145
|
+
if (typeof window !== "undefined" && typeof location !== "undefined") {
|
|
11146
|
+
const host = location.host;
|
|
11147
|
+
const isGitcodeHost = host.includes("gitcode");
|
|
11148
|
+
if (host.includes("gitcode.host")) {
|
|
11149
|
+
try {
|
|
11150
|
+
const urlObj = new URL(url);
|
|
11151
|
+
const pathAndQuery = urlObj.pathname + urlObj.search + urlObj.hash;
|
|
11152
|
+
return `https://news.${host}${pathAndQuery}`;
|
|
11153
|
+
} catch (error) {
|
|
11154
|
+
return transformedUrl;
|
|
11155
|
+
}
|
|
11156
|
+
}
|
|
11157
|
+
let needAppendPath = false;
|
|
11158
|
+
if (host === "local.atomgit.com" || host === "local.gitcode.net" || transformedUrl.includes("news.local")) {
|
|
11159
|
+
transformedUrl = isGitcodeHost ? "https://test-news.gitcode.net" : "https://test-news.atomgit.com";
|
|
11160
|
+
needAppendPath = true;
|
|
11161
|
+
} else if (transformedUrl.includes("news.test")) {
|
|
11162
|
+
transformedUrl = isGitcodeHost ? "https://test-news.gitcode.net" : "https://test-news.atomgit.com";
|
|
11163
|
+
needAppendPath = true;
|
|
11164
|
+
} else if (transformedUrl.includes("news.pre")) {
|
|
11165
|
+
transformedUrl = isGitcodeHost ? "https://pre-news.gitcode.com" : "https://pre-news.atomgit.com";
|
|
11166
|
+
needAppendPath = true;
|
|
11167
|
+
}
|
|
11168
|
+
if (needAppendPath) {
|
|
11169
|
+
try {
|
|
11170
|
+
const originalUrlObj = new URL(url);
|
|
11171
|
+
const pathAndQuery = originalUrlObj.pathname + originalUrlObj.search + originalUrlObj.hash;
|
|
11172
|
+
if (pathAndQuery && pathAndQuery !== "/") {
|
|
11173
|
+
transformedUrl = transformedUrl + pathAndQuery;
|
|
11174
|
+
}
|
|
11175
|
+
} catch (error) {
|
|
11176
|
+
console.error("transformNewsUrl: URL 解析失败", error);
|
|
11177
|
+
}
|
|
11178
|
+
}
|
|
11179
|
+
}
|
|
11180
|
+
return transformedUrl;
|
|
11181
|
+
};
|
|
11182
|
+
const replaceHost = ({ url, customHost }) => {
|
|
11183
|
+
if (!url || !customHost) return url;
|
|
11184
|
+
try {
|
|
11185
|
+
const urlObj = new URL(url);
|
|
11186
|
+
let pureHost = customHost;
|
|
11187
|
+
if (customHost.includes("://")) {
|
|
11188
|
+
const customUrlObj = new URL(customHost);
|
|
11189
|
+
pureHost = customUrlObj.host;
|
|
11190
|
+
}
|
|
11191
|
+
urlObj.host = pureHost;
|
|
11192
|
+
return urlObj.toString();
|
|
11193
|
+
} catch (error) {
|
|
11194
|
+
return url;
|
|
11195
|
+
}
|
|
11196
|
+
};
|
|
11197
|
+
const getCurrentLogoMap = () => {
|
|
11198
|
+
if (typeof window === "undefined" || typeof location === "undefined") {
|
|
11199
|
+
console.warn("[getCurrentLogoMap] 在 SSR 环境中被调用,返回默认配置");
|
|
11200
|
+
return LOGO_MAP.gitcode;
|
|
11201
|
+
}
|
|
11202
|
+
const siteType = location.host.includes("atomgit") ? "atomgit" : "gitcode";
|
|
11203
|
+
return LOGO_MAP[siteType];
|
|
11204
|
+
};
|
|
11205
|
+
const isGitCodeHost = () => {
|
|
11206
|
+
if (typeof window === "undefined" || typeof location === "undefined") return false;
|
|
11207
|
+
return location.hostname.includes("gitcode");
|
|
11208
|
+
};
|
|
11209
|
+
const currentHelpDocsUrl = () => isGitCodeHost() ? HELP_DOCS_URL_GITCODE : HELP_DOCS_URL_ATOMGIT;
|
|
11210
|
+
const currentHelpDocsAboutUsUrl = () => isGitCodeHost() ? HELP_DOCS_URL_GITCODE + "/docs/help/home/aboutus/" : HELP_DOCS_URL_ATOMGIT + "/docs/help/home/aboutus/";
|
|
11211
|
+
const currentHelpDocsAiCommunityUrl = () => isGitCodeHost() ? HELP_DOCS_URL_GITCODE + "/docs/help/home/ai-community/" : HELP_DOCS_URL_ATOMGIT + "/docs/help/home/ai-community/";
|
|
11212
|
+
const _hoisted_1$v = { class: "home-nav-right" };
|
|
11213
|
+
const _hoisted_2$m = { class: "home-nav-item" };
|
|
11214
|
+
const _hoisted_3$l = { class: "tooltip-sign" };
|
|
11215
|
+
const _hoisted_4$g = { class: "home-nav-tooltip-wrapper" };
|
|
11005
11216
|
const _hoisted_5$a = { class: "home-nav-text" };
|
|
11006
11217
|
const _hoisted_6$9 = { class: "home-nav-tooltip-wrapper" };
|
|
11007
11218
|
const _hoisted_7$6 = { class: "home-nav-text" };
|
|
@@ -11052,7 +11263,7 @@ const _hoisted_30$1 = { class: "ml-2 font-[600] text-[var(--theme-aide-text)] te
|
|
|
11052
11263
|
const _hoisted_31$1 = { class: "home-nav-item collapse-tool" };
|
|
11053
11264
|
const _hoisted_32$1 = { class: "home-nav-item" };
|
|
11054
11265
|
const _hoisted_33$1 = ["src", "alt"];
|
|
11055
|
-
const _sfc_main$
|
|
11266
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
11056
11267
|
__name: "index",
|
|
11057
11268
|
props: {
|
|
11058
11269
|
sceneValue: { default: SceneValue.home },
|
|
@@ -11105,7 +11316,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11105
11316
|
emits("toggle-growth-center");
|
|
11106
11317
|
};
|
|
11107
11318
|
const handleInvite = () => {
|
|
11108
|
-
|
|
11319
|
+
const link = transformUrl("https://gitcode.com/setting/points?type=invite");
|
|
11320
|
+
window.open(link, "_blank");
|
|
11109
11321
|
};
|
|
11110
11322
|
const showDesk = () => {
|
|
11111
11323
|
if (window.ud) {
|
|
@@ -11284,13 +11496,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11284
11496
|
size: "18px"
|
|
11285
11497
|
})
|
|
11286
11498
|
])) : createCommentVNode("", true),
|
|
11287
|
-
createElementVNode("div", _hoisted_1$
|
|
11499
|
+
createElementVNode("div", _hoisted_1$v, [
|
|
11288
11500
|
createVNode(unref(Tooltip), {
|
|
11289
11501
|
position: "left",
|
|
11290
11502
|
"overlay-class": "tools-tag-tooltip"
|
|
11291
11503
|
}, {
|
|
11292
11504
|
content: withCtx(() => [
|
|
11293
|
-
createElementVNode("div", _hoisted_4$
|
|
11505
|
+
createElementVNode("div", _hoisted_4$g, [
|
|
11294
11506
|
createElementVNode("div", _hoisted_5$a, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1)
|
|
11295
11507
|
])
|
|
11296
11508
|
]),
|
|
@@ -11299,13 +11511,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11299
11511
|
class: "home-nav-link computing",
|
|
11300
11512
|
onClick: handleInvite
|
|
11301
11513
|
}, [
|
|
11302
|
-
createElementVNode("div", _hoisted_2$
|
|
11514
|
+
createElementVNode("div", _hoisted_2$m, [
|
|
11303
11515
|
_cache[5] || (_cache[5] = createElementVNode("img", {
|
|
11304
11516
|
class: "common-icon inline-block h-[20px] w-[20px]",
|
|
11305
11517
|
src: "https://cdn-static.gitcode.com/static/images/homeweb/invite.svg",
|
|
11306
11518
|
alt: ""
|
|
11307
11519
|
}, null, -1)),
|
|
11308
|
-
createElementVNode("div", _hoisted_3$
|
|
11520
|
+
createElementVNode("div", _hoisted_3$l, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1)
|
|
11309
11521
|
])
|
|
11310
11522
|
])
|
|
11311
11523
|
]),
|
|
@@ -11584,7 +11796,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11584
11796
|
};
|
|
11585
11797
|
}
|
|
11586
11798
|
});
|
|
11587
|
-
const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11799
|
+
const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
11588
11800
|
var repoTypeEnum = /* @__PURE__ */ ((repoTypeEnum2) => {
|
|
11589
11801
|
repoTypeEnum2["NORMAL"] = "0";
|
|
11590
11802
|
repoTypeEnum2["MODEL"] = "1";
|
|
@@ -11681,7 +11893,7 @@ var REPO_TYPE = /* @__PURE__ */ ((REPO_TYPE2) => {
|
|
|
11681
11893
|
REPO_TYPE2[REPO_TYPE2["HUGGINGFACE_MIRRORS"] = 2] = "HUGGINGFACE_MIRRORS";
|
|
11682
11894
|
return REPO_TYPE2;
|
|
11683
11895
|
})(REPO_TYPE || {});
|
|
11684
|
-
const layoutConfig$
|
|
11896
|
+
const layoutConfig$3 = useLayoutConfig();
|
|
11685
11897
|
const registerLoginMethodMap = {
|
|
11686
11898
|
[LoginMethodEnum.PHONE]: "短信",
|
|
11687
11899
|
[LoginMethodEnum.PASSWORD]: "密码",
|
|
@@ -11714,8 +11926,8 @@ const collectRegisterLoginEvent = ({ isRegister, registerLoginMethod, success, e
|
|
|
11714
11926
|
article_id: searchParams["from_id"] || "",
|
|
11715
11927
|
userid_fast_application: searchParams["uuid_tt_dd"] || "",
|
|
11716
11928
|
gitcode_utm_source: searchParams["utm_source"] || "",
|
|
11717
|
-
page_url: location.href || "",
|
|
11718
|
-
env: layoutConfig$
|
|
11929
|
+
page_url: (location == null ? void 0 : location.href) || "",
|
|
11930
|
+
env: layoutConfig$3.VITE_ENV,
|
|
11719
11931
|
namespace: extraData.namespace || "",
|
|
11720
11932
|
...extraData,
|
|
11721
11933
|
...searchParams
|
|
@@ -11725,8 +11937,8 @@ const collectRegisterLoginEvent = ({ isRegister, registerLoginMethod, success, e
|
|
|
11725
11937
|
delete reportData["utm_source"];
|
|
11726
11938
|
window.collectEvent("beconEvent", isRegister ? "register" : "login", reportData);
|
|
11727
11939
|
};
|
|
11728
|
-
const _hoisted_1$
|
|
11729
|
-
const _sfc_main$
|
|
11940
|
+
const _hoisted_1$u = ["href", "target", "disabled"];
|
|
11941
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
11730
11942
|
...{
|
|
11731
11943
|
name: "GLink"
|
|
11732
11944
|
},
|
|
@@ -11770,11 +11982,25 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11770
11982
|
disabled: _ctx.disabled || _ctx.noPointer
|
|
11771
11983
|
}, [
|
|
11772
11984
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
11773
|
-
], 10, _hoisted_1$
|
|
11985
|
+
], 10, _hoisted_1$u));
|
|
11774
11986
|
};
|
|
11775
11987
|
}
|
|
11776
11988
|
});
|
|
11777
|
-
const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11989
|
+
const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
11990
|
+
const headerHeight = ref(56);
|
|
11991
|
+
const useHeaderHeight = () => {
|
|
11992
|
+
const setHeaderHeight = (height) => {
|
|
11993
|
+
headerHeight.value = height;
|
|
11994
|
+
};
|
|
11995
|
+
const getHeaderHeight = () => {
|
|
11996
|
+
return headerHeight;
|
|
11997
|
+
};
|
|
11998
|
+
return {
|
|
11999
|
+
setHeaderHeight,
|
|
12000
|
+
getHeaderHeight,
|
|
12001
|
+
headerHeight
|
|
12002
|
+
};
|
|
12003
|
+
};
|
|
11778
12004
|
const black = {
|
|
11779
12005
|
"theme-stress-text": "#f0f6fc",
|
|
11780
12006
|
"theme-text": "#D2D8E4",
|
|
@@ -12189,14 +12415,6 @@ var ThemeType = /* @__PURE__ */ ((ThemeType2) => {
|
|
|
12189
12415
|
return ThemeType2;
|
|
12190
12416
|
})(ThemeType || {});
|
|
12191
12417
|
const THEME_KEY = "gitcode_theme";
|
|
12192
|
-
const COOKIE_DOMAIN = ".gitcode.com";
|
|
12193
|
-
const COOKIE_OPTIONS = {
|
|
12194
|
-
expires: 365,
|
|
12195
|
-
path: "/",
|
|
12196
|
-
secure: typeof window !== "undefined" && window.location.protocol === "https:",
|
|
12197
|
-
sameSite: "Lax",
|
|
12198
|
-
domain: COOKIE_DOMAIN
|
|
12199
|
-
};
|
|
12200
12418
|
const currentThemeStorage = ref(api.get(THEME_KEY) || "");
|
|
12201
12419
|
const themeColorMap = {
|
|
12202
12420
|
[ThemeType.BLACK]: black,
|
|
@@ -12210,7 +12428,7 @@ watch(currentThemeStorage, (newValue) => {
|
|
|
12210
12428
|
if (newValue) {
|
|
12211
12429
|
api.set(THEME_KEY, newValue, COOKIE_OPTIONS);
|
|
12212
12430
|
} else {
|
|
12213
|
-
api.remove(THEME_KEY, { domain: COOKIE_DOMAIN });
|
|
12431
|
+
api.remove(THEME_KEY, { domain: COOKIE_DOMAIN() });
|
|
12214
12432
|
}
|
|
12215
12433
|
});
|
|
12216
12434
|
const currentTheme = computed(() => {
|
|
@@ -12264,7 +12482,7 @@ class Theme {
|
|
|
12264
12482
|
}
|
|
12265
12483
|
stopAutoTheme(isInit = false) {
|
|
12266
12484
|
if (!isInit) {
|
|
12267
|
-
api.remove("AutoTheme", { domain: COOKIE_DOMAIN });
|
|
12485
|
+
api.remove("AutoTheme", { domain: COOKIE_DOMAIN() });
|
|
12268
12486
|
}
|
|
12269
12487
|
this.darkModeMediaQuery.onchange = null;
|
|
12270
12488
|
}
|
|
@@ -12326,7 +12544,7 @@ if (isBrowser) {
|
|
|
12326
12544
|
}
|
|
12327
12545
|
const sessionStorage$1 = sessionStorage;
|
|
12328
12546
|
const _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAmsSURBVHgB7VpdbxxnFT7nfccmRam6/gXZXIBy1y3qRe8YR6kUoUpdbhACJNtShFJUSCyBBFd2I1ClAoklVAE32BYXRAJqIwEyUOrNL4h70dtm+wvqNG7deGbe03PO+7Gzlr27/kpzsSeazO5kZvZ95jnnOR8TgLGNbWxjG9vYDjWEp8zyNjUg22lBiS1TuOeNo5YFbBgyTUMAFgz4PXYnDEzf3XimO+h+GTwFls9S43G5O2NLaLtqp2VKaJiSCB0yGEQEJAHFIMkwKXxMjl8AopwvXxl07y8V4EvXdnMo3cye+6xtK3jOVISmYCAlb/KZgTBT4Pd8TD+TfGegiApyiH0pAF+6vpvzOhegoNxUvNiSwZS88II32VcAniVhTIAya6AgeS9/AK0AFXKH2BMFmN+kxqfF4wVXwA0snQdUgQcXtwoFgLJk/T6xqG7Kx2w4xi5Mw37ziQF88fXd/NHe58scZxfYBdGzBQkYFkxVpSBQAXkXZJC8CYMUXTQCxZEU0sATsG/c+PwOL3/TVnhBY0vYqyABk7jjGJSnvc0L72qMeQaxB8gIWGGPgtjw+fRw2G+fKYMv/nQ3dwUuG2VNGfPMCagYd+yiWFGXH8Dcfzae7cRr2y/vzHJKuM3gGh4cX+tUXKAHHLvD1nDqAFuLnMc+ezyLlXnVFS5XN4ziUQpbAgySqGAF3Qmqpjc2prr1+6z/7/zK917e2XJg70eXtMFtmT3vtkDbw9ZzKon+0pvUnHhc5FTiDC+a8xg1AqAeuCIATIqpqUCUcva/G+dXD7v39y/v3WGtvGlDHhT2VGD4+zkwU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WctdQuh7lT3nH/t9mjTslFtaKKX/+Vgomv29pReK8euHczK2x1c7Lv5pNOXzCE1qFJpM5tRck3f97FqUjn/o99Mnpq4jASwnX/cCFVJlxN6B8m9n7lJjo9ShrGbCSgquLn91xumS1XReLc0me/5bOr54GNm+dbrS2YJzsgGAlzvTG2323Txr+v9b3Gu57vgaBJC4bx6EDi9eVZ9pNWo1pYI/eCwU1mc+8nSyevNQXbsfvC13K2xi24fBk5scZYaWUUfcgxOxZqT43Cbg3d+/nenG2uH2Zn/T6e3ZvdarCJrIjA8w181k9nS/NLw93pjG9vYxja2p8G+ADz7MtW/3lU1AAAAAElFTkSuQmCC";
|
|
12329
|
-
const _sfc_main$
|
|
12547
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
12330
12548
|
...{
|
|
12331
12549
|
name: "GAvatar"
|
|
12332
12550
|
},
|
|
@@ -12355,7 +12573,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
12355
12573
|
});
|
|
12356
12574
|
return (_ctx, _cache) => {
|
|
12357
12575
|
return openBlock(), createBlock(unref(Avatar), {
|
|
12358
|
-
"img-src": imgSrc.value,
|
|
12576
|
+
"img-src": unref(transformUrl)(imgSrc.value),
|
|
12359
12577
|
name: placeholderName.value,
|
|
12360
12578
|
width: _ctx.width,
|
|
12361
12579
|
height: _ctx.height,
|
|
@@ -12367,8 +12585,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
12367
12585
|
};
|
|
12368
12586
|
}
|
|
12369
12587
|
});
|
|
12370
|
-
const _hoisted_1$
|
|
12371
|
-
const _sfc_main$
|
|
12588
|
+
const _hoisted_1$t = ["src"];
|
|
12589
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
12372
12590
|
...{ name: "FlashTag" },
|
|
12373
12591
|
__name: "FlashTag",
|
|
12374
12592
|
props: {
|
|
@@ -12413,7 +12631,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
12413
12631
|
key: 0,
|
|
12414
12632
|
class: "w-[16px] h-[16px]",
|
|
12415
12633
|
src: iconUrl.value
|
|
12416
|
-
}, null, 8, _hoisted_1$
|
|
12634
|
+
}, null, 8, _hoisted_1$t)) : renderSlot(_ctx.$slots, "default", { key: 1 })
|
|
12417
12635
|
], 16)
|
|
12418
12636
|
]),
|
|
12419
12637
|
_: 3
|
|
@@ -13219,13 +13437,13 @@ const useTimeFormat = () => {
|
|
|
13219
13437
|
formatTime
|
|
13220
13438
|
};
|
|
13221
13439
|
};
|
|
13222
|
-
const _hoisted_1$
|
|
13440
|
+
const _hoisted_1$s = {
|
|
13223
13441
|
key: 0,
|
|
13224
13442
|
class: "org-layout-toolbar"
|
|
13225
13443
|
};
|
|
13226
|
-
const _hoisted_2$
|
|
13227
|
-
const _hoisted_3$
|
|
13228
|
-
const _hoisted_4$
|
|
13444
|
+
const _hoisted_2$l = { class: "org-layout-toolbar-title flex-1 ellipsis-two-line" };
|
|
13445
|
+
const _hoisted_3$k = { class: "text-xs" };
|
|
13446
|
+
const _hoisted_4$f = { class: "flex items-center w-full g-repo-breadcrumb-custom" };
|
|
13229
13447
|
const _hoisted_5$9 = {
|
|
13230
13448
|
key: 1,
|
|
13231
13449
|
class: "flex items-center min-w-[30px]"
|
|
@@ -13278,7 +13496,7 @@ const _hoisted_20$1 = {
|
|
|
13278
13496
|
};
|
|
13279
13497
|
const _hoisted_21$1 = { class: "user-layout-toolbar-title flex-1 ellipsis-two-line" };
|
|
13280
13498
|
const _hoisted_22$1 = { class: "text-xs" };
|
|
13281
|
-
const _sfc_main$
|
|
13499
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
13282
13500
|
__name: "HeaderCustom",
|
|
13283
13501
|
props: {
|
|
13284
13502
|
scene: { default: SceneValue.home },
|
|
@@ -13398,7 +13616,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
13398
13616
|
});
|
|
13399
13617
|
return (_ctx, _cache) => {
|
|
13400
13618
|
var _a, _b;
|
|
13401
|
-
return _ctx.scene === unref(SceneValue).org && !_ctx.errorCode ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13619
|
+
return _ctx.scene === unref(SceneValue).org && !_ctx.errorCode ? (openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
13402
13620
|
createVNode(GLink, {
|
|
13403
13621
|
to: { name: "homepage" },
|
|
13404
13622
|
class: "flex flex-1 items-center gap-[8px]"
|
|
@@ -13406,7 +13624,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
13406
13624
|
default: withCtx(() => {
|
|
13407
13625
|
var _a2, _b2, _c;
|
|
13408
13626
|
return [
|
|
13409
|
-
createVNode(_sfc_main$
|
|
13627
|
+
createVNode(_sfc_main$A, {
|
|
13410
13628
|
class: "g-border",
|
|
13411
13629
|
src: (_a2 = unref(orgInfo)) == null ? void 0 : _a2.avatar,
|
|
13412
13630
|
name: (_b2 = unref(orgInfo)) == null ? void 0 : _b2.name,
|
|
@@ -13414,7 +13632,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
13414
13632
|
height: 28,
|
|
13415
13633
|
is_round: false
|
|
13416
13634
|
}, null, 8, ["src", "name"]),
|
|
13417
|
-
createElementVNode("div", _hoisted_2$
|
|
13635
|
+
createElementVNode("div", _hoisted_2$l, toDisplayString$1((_c = unref(orgInfo)) == null ? void 0 : _c.name), 1)
|
|
13418
13636
|
];
|
|
13419
13637
|
}),
|
|
13420
13638
|
_: 1
|
|
@@ -13429,7 +13647,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
13429
13647
|
default: withCtx(() => {
|
|
13430
13648
|
var _a2;
|
|
13431
13649
|
return [
|
|
13432
|
-
createElementVNode("span", _hoisted_3$
|
|
13650
|
+
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)
|
|
13433
13651
|
];
|
|
13434
13652
|
}),
|
|
13435
13653
|
_: 1
|
|
@@ -13451,7 +13669,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
13451
13669
|
default: withCtx(() => {
|
|
13452
13670
|
var _a2, _b2, _c, _d, _e, _f, _g;
|
|
13453
13671
|
return [
|
|
13454
|
-
createElementVNode("h2", _hoisted_4$
|
|
13672
|
+
createElementVNode("h2", _hoisted_4$f, [
|
|
13455
13673
|
createVNode(GLink, {
|
|
13456
13674
|
href: (_a2 = unref(breadcrumb)[0]) == null ? void 0 : _a2.path,
|
|
13457
13675
|
class: "pr-[12px]"
|
|
@@ -13459,7 +13677,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
13459
13677
|
default: withCtx(() => {
|
|
13460
13678
|
var _a3, _b3, _c2, _d2;
|
|
13461
13679
|
return [
|
|
13462
|
-
!((_a3 = _ctx.repoProps) == null ? void 0 : _a3.isGhMirrors) ? (openBlock(), createBlock(_sfc_main$
|
|
13680
|
+
!((_a3 = _ctx.repoProps) == null ? void 0 : _a3.isGhMirrors) ? (openBlock(), createBlock(_sfc_main$A, {
|
|
13463
13681
|
key: 0,
|
|
13464
13682
|
class: normalizeClass({ "g-border": isOrg.value }),
|
|
13465
13683
|
src: (_c2 = (_b3 = unref(repoInfo)) == null ? void 0 : _b3.namespace) == null ? void 0 : _c2.avatar_url,
|
|
@@ -13527,7 +13745,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
13527
13745
|
_: 1
|
|
13528
13746
|
}, 8, ["to"]),
|
|
13529
13747
|
unref(isGstarRepo)(unref(repoInfo).topic_names) ? (openBlock(), createElementBlock("div", _hoisted_12$3, [
|
|
13530
|
-
createVNode(_sfc_main$
|
|
13748
|
+
createVNode(_sfc_main$z, {
|
|
13531
13749
|
origin: "repo",
|
|
13532
13750
|
icon: "",
|
|
13533
13751
|
type: "gstar",
|
|
@@ -13539,7 +13757,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
13539
13757
|
_: 1
|
|
13540
13758
|
}, 8, ["message"])
|
|
13541
13759
|
])) : unref(isIncubationRepo)(unref(repoInfo).topic_names) ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
|
|
13542
|
-
createVNode(_sfc_main$
|
|
13760
|
+
createVNode(_sfc_main$z, {
|
|
13543
13761
|
origin: "repo",
|
|
13544
13762
|
icon: "",
|
|
13545
13763
|
type: "incubation",
|
|
@@ -13552,7 +13770,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
13552
13770
|
}, 8, ["message"])
|
|
13553
13771
|
])) : createCommentVNode("", true),
|
|
13554
13772
|
unref(isTrustedRepo)(unref(repoInfo).topic_names) ? (openBlock(), createElementBlock("div", _hoisted_14$1, [
|
|
13555
|
-
createVNode(_sfc_main$
|
|
13773
|
+
createVNode(_sfc_main$z, {
|
|
13556
13774
|
trusted: "",
|
|
13557
13775
|
message: unref(t2)("gitCodeLayout.trusted.title"),
|
|
13558
13776
|
icon: "",
|
|
@@ -13601,7 +13819,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
13601
13819
|
default: withCtx(() => {
|
|
13602
13820
|
var _a2, _b2, _c, _d, _e;
|
|
13603
13821
|
return [
|
|
13604
|
-
createVNode(_sfc_main$
|
|
13822
|
+
createVNode(_sfc_main$A, {
|
|
13605
13823
|
src: (_a2 = unref(otherUserInfo)) == null ? void 0 : _a2.avatarUrl,
|
|
13606
13824
|
name: ((_b2 = unref(otherUserInfo)) == null ? void 0 : _b2.name) || ((_c = unref(otherUserInfo)) == null ? void 0 : _c.nickname),
|
|
13607
13825
|
width: 28,
|
|
@@ -13628,9 +13846,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
13628
13846
|
};
|
|
13629
13847
|
}
|
|
13630
13848
|
});
|
|
13631
|
-
const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13632
|
-
const _hoisted_1$
|
|
13633
|
-
const _sfc_main$
|
|
13849
|
+
const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
13850
|
+
const _hoisted_1$r = ["src"];
|
|
13851
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
13634
13852
|
__name: "ClaimPower",
|
|
13635
13853
|
props: {
|
|
13636
13854
|
config: {}
|
|
@@ -13653,14 +13871,14 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
13653
13871
|
createElementVNode("img", {
|
|
13654
13872
|
src: _ctx.config.logo_url,
|
|
13655
13873
|
alt: "claim power"
|
|
13656
|
-
}, null, 8, _hoisted_1$
|
|
13874
|
+
}, null, 8, _hoisted_1$r)
|
|
13657
13875
|
])) : createCommentVNode("", true);
|
|
13658
13876
|
};
|
|
13659
13877
|
}
|
|
13660
13878
|
});
|
|
13661
|
-
const ClaimPower = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13662
|
-
const _hoisted_1$
|
|
13663
|
-
const _sfc_main$
|
|
13879
|
+
const ClaimPower = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
13880
|
+
const _hoisted_1$q = { class: "devui-select__item g-option-link" };
|
|
13881
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
13664
13882
|
...{
|
|
13665
13883
|
name: "OptionLink"
|
|
13666
13884
|
},
|
|
@@ -13678,7 +13896,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
13678
13896
|
},
|
|
13679
13897
|
setup(__props) {
|
|
13680
13898
|
return (_ctx, _cache) => {
|
|
13681
|
-
return openBlock(), createElementBlock("li", _hoisted_1$
|
|
13899
|
+
return openBlock(), createElementBlock("li", _hoisted_1$q, [
|
|
13682
13900
|
createVNode(GLink, normalizeProps(guardReactiveProps(_ctx.$props)), {
|
|
13683
13901
|
default: withCtx(() => [
|
|
13684
13902
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
@@ -13689,7 +13907,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
13689
13907
|
};
|
|
13690
13908
|
}
|
|
13691
13909
|
});
|
|
13692
|
-
const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13910
|
+
const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
13693
13911
|
var aes = { exports: {} };
|
|
13694
13912
|
function commonjsRequire(path) {
|
|
13695
13913
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -15689,7 +15907,7 @@ var encUtf8 = { exports: {} };
|
|
|
15689
15907
|
})(encUtf8);
|
|
15690
15908
|
var encUtf8Exports = encUtf8.exports;
|
|
15691
15909
|
const Utf8 = /* @__PURE__ */ getDefaultExportFromCjs(encUtf8Exports);
|
|
15692
|
-
const layoutConfig$
|
|
15910
|
+
const layoutConfig$2 = useLayoutConfig();
|
|
15693
15911
|
function headRequest(request) {
|
|
15694
15912
|
return {
|
|
15695
15913
|
getSearchHot() {
|
|
@@ -15929,8 +16147,8 @@ function headRequest(request) {
|
|
|
15929
16147
|
},
|
|
15930
16148
|
// 密码登录
|
|
15931
16149
|
toLogin(data) {
|
|
15932
|
-
const key = Utf8.parse(layoutConfig$
|
|
15933
|
-
const iv = Utf8.parse(layoutConfig$
|
|
16150
|
+
const key = Utf8.parse(layoutConfig$2.VITE_SECRET_KEY);
|
|
16151
|
+
const iv = Utf8.parse(layoutConfig$2.VITE_SECRET_IV);
|
|
15934
16152
|
const cryptoCode = AES.encrypt(data.password, key, {
|
|
15935
16153
|
iv,
|
|
15936
16154
|
padding: Pkcs7
|
|
@@ -16059,7 +16277,7 @@ function headRequest(request) {
|
|
|
16059
16277
|
}
|
|
16060
16278
|
};
|
|
16061
16279
|
}
|
|
16062
|
-
const _sfc_main$
|
|
16280
|
+
const _sfc_main$v = /* @__PURE__ */ Object.assign({
|
|
16063
16281
|
name: "Create"
|
|
16064
16282
|
}, {
|
|
16065
16283
|
__name: "index",
|
|
@@ -16150,8 +16368,8 @@ const _sfc_main$u = /* @__PURE__ */ Object.assign({
|
|
|
16150
16368
|
};
|
|
16151
16369
|
}
|
|
16152
16370
|
});
|
|
16153
|
-
const Create = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16154
|
-
const _sfc_main$
|
|
16371
|
+
const Create = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16372
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
16155
16373
|
...{
|
|
16156
16374
|
name: "DocumentCenter"
|
|
16157
16375
|
},
|
|
@@ -16165,19 +16383,19 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
16165
16383
|
return openBlock(), createBlock(GLink, {
|
|
16166
16384
|
variant: "text",
|
|
16167
16385
|
class: normalizeClass(["g-toolbar-docs", _ctx.whiteColor ? "white" : "black"]),
|
|
16168
|
-
href:
|
|
16386
|
+
href: unref(currentHelpDocsAiCommunityUrl)(),
|
|
16169
16387
|
target: "_blank"
|
|
16170
16388
|
}, {
|
|
16171
16389
|
default: withCtx(() => [
|
|
16172
16390
|
createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.header.aihub.documentCenter")), 1)
|
|
16173
16391
|
]),
|
|
16174
16392
|
_: 1
|
|
16175
|
-
}, 8, ["class"]);
|
|
16393
|
+
}, 8, ["class", "href"]);
|
|
16176
16394
|
};
|
|
16177
16395
|
}
|
|
16178
16396
|
});
|
|
16179
|
-
const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16180
|
-
const _sfc_main$
|
|
16397
|
+
const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16398
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
16181
16399
|
...{
|
|
16182
16400
|
name: "Notice"
|
|
16183
16401
|
},
|
|
@@ -16212,7 +16430,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
16212
16430
|
});
|
|
16213
16431
|
return (_ctx, _cache) => {
|
|
16214
16432
|
return openBlock(), createBlock(GLink, {
|
|
16215
|
-
href: `${unref(layoutConfig2).VITE_HOST}/notice?message_sate=countNotRead`
|
|
16433
|
+
href: `${unref(transformUrl)(unref(layoutConfig2).VITE_HOST)}/notice?message_sate=countNotRead`
|
|
16216
16434
|
}, {
|
|
16217
16435
|
default: withCtx(() => [
|
|
16218
16436
|
createVNode(unref(Badge), {
|
|
@@ -16237,20 +16455,20 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
16237
16455
|
};
|
|
16238
16456
|
}
|
|
16239
16457
|
});
|
|
16240
|
-
const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16241
|
-
const _hoisted_1$
|
|
16458
|
+
const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16459
|
+
const _hoisted_1$p = {
|
|
16242
16460
|
key: 0,
|
|
16243
16461
|
class: "user-level-avatar-badge"
|
|
16244
16462
|
};
|
|
16245
|
-
const _hoisted_2$
|
|
16246
|
-
const _hoisted_3$
|
|
16247
|
-
const _hoisted_4$
|
|
16463
|
+
const _hoisted_2$k = { class: "flex items-center font-medium gap-[4px]" };
|
|
16464
|
+
const _hoisted_3$j = ["src"];
|
|
16465
|
+
const _hoisted_4$e = { class: "level-name" };
|
|
16248
16466
|
const _hoisted_5$8 = { class: "level-icon" };
|
|
16249
16467
|
const _hoisted_6$7 = ["src"];
|
|
16250
16468
|
const _hoisted_7$4 = { class: "custom-btn" };
|
|
16251
16469
|
const _hoisted_8$4 = { class: "flex items-center justify-center" };
|
|
16252
16470
|
const maxLevel = 3;
|
|
16253
|
-
const _sfc_main$
|
|
16471
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
16254
16472
|
...{ name: "UserLevel" },
|
|
16255
16473
|
__name: "UserLevel",
|
|
16256
16474
|
props: ["accountInfo"],
|
|
@@ -16286,7 +16504,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16286
16504
|
if (router2.hasRoute("settingPoints")) {
|
|
16287
16505
|
router2.push("/setting/points");
|
|
16288
16506
|
} else {
|
|
16289
|
-
location.href = `${layoutConfig2.VITE_HOST}/setting/points`;
|
|
16507
|
+
location.href = `${transformUrl(layoutConfig2.VITE_HOST)}/setting/points`;
|
|
16290
16508
|
}
|
|
16291
16509
|
};
|
|
16292
16510
|
const levelInfo = computed(() => {
|
|
@@ -16301,14 +16519,14 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16301
16519
|
class: normalizeClass(["user-level cursor-pointer", { [unref(ThemeType).BLACK]: unref(currentTheme) === unref(ThemeType).BLACK }]),
|
|
16302
16520
|
onClick: handleUpgrade
|
|
16303
16521
|
}, [
|
|
16304
|
-
__props.accountInfo.need_tips ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
16305
|
-
createElementVNode("div", _hoisted_2$
|
|
16522
|
+
__props.accountInfo.need_tips ? (openBlock(), createElementBlock("div", _hoisted_1$p)) : createCommentVNode("", true),
|
|
16523
|
+
createElementVNode("div", _hoisted_2$k, [
|
|
16306
16524
|
createElementVNode("img", {
|
|
16307
16525
|
class: "level-avatar",
|
|
16308
16526
|
src: levelInfo.value.avatar,
|
|
16309
16527
|
alt: ""
|
|
16310
|
-
}, null, 8, _hoisted_3$
|
|
16311
|
-
createElementVNode("div", _hoisted_4$
|
|
16528
|
+
}, null, 8, _hoisted_3$j),
|
|
16529
|
+
createElementVNode("div", _hoisted_4$e, [
|
|
16312
16530
|
createElementVNode("div", null, toDisplayString$1(levelInfo.value.name), 1),
|
|
16313
16531
|
createElementVNode("div", _hoisted_5$8, [
|
|
16314
16532
|
createElementVNode("img", {
|
|
@@ -16325,15 +16543,23 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16325
16543
|
};
|
|
16326
16544
|
}
|
|
16327
16545
|
});
|
|
16328
|
-
const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16329
|
-
const _hoisted_1$
|
|
16330
|
-
const _hoisted_2$
|
|
16331
|
-
const _hoisted_3$
|
|
16332
|
-
const _hoisted_4$
|
|
16333
|
-
const _sfc_main$
|
|
16546
|
+
const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16547
|
+
const _hoisted_1$o = { class: "g-user-drawer-info-list pl-[16px]" };
|
|
16548
|
+
const _hoisted_2$j = { class: "max-w-[200px]" };
|
|
16549
|
+
const _hoisted_3$i = ["title"];
|
|
16550
|
+
const _hoisted_4$d = ["title"];
|
|
16551
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
16334
16552
|
__name: "UserAvatarMenu",
|
|
16335
|
-
props:
|
|
16336
|
-
|
|
16553
|
+
props: {
|
|
16554
|
+
isChatBot: { type: Boolean },
|
|
16555
|
+
accountInfo: {},
|
|
16556
|
+
loginOutFinish: { type: Function },
|
|
16557
|
+
inAIHub: { type: Boolean },
|
|
16558
|
+
independence: { type: Boolean },
|
|
16559
|
+
userMenus: {}
|
|
16560
|
+
},
|
|
16561
|
+
emits: ["link-click"],
|
|
16562
|
+
setup(__props, { emit: __emit }) {
|
|
16337
16563
|
const layoutConfig2 = useLayoutConfig();
|
|
16338
16564
|
const API = headRequest(inject("request"));
|
|
16339
16565
|
const repoInfo = inject("repoInfo");
|
|
@@ -16341,9 +16567,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
16341
16567
|
const userInfo = inject("userInfo");
|
|
16342
16568
|
const { t: t2, locale: locale2 } = i18n.global;
|
|
16343
16569
|
const props = __props;
|
|
16570
|
+
const emit = __emit;
|
|
16344
16571
|
const router2 = useRouter();
|
|
16345
16572
|
const route = useRoute();
|
|
16346
16573
|
const haveVisited = ref(false);
|
|
16574
|
+
const menuContainerRef = ref(null);
|
|
16347
16575
|
const clearSurveyDelayStatus = () => {
|
|
16348
16576
|
const surveyDelay = localStorage$2.getItem(HARMONY_VISITED_DATE);
|
|
16349
16577
|
if (surveyDelay === "true") {
|
|
@@ -16351,7 +16579,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
16351
16579
|
}
|
|
16352
16580
|
localStorage$2.removeItem(HARMONY_SURVEY_DELAY);
|
|
16353
16581
|
};
|
|
16354
|
-
const
|
|
16582
|
+
const handleLogout = async () => {
|
|
16355
16583
|
var _a, _b;
|
|
16356
16584
|
const res = await API.toLogout();
|
|
16357
16585
|
clearSurveyDelayStatus();
|
|
@@ -16389,13 +16617,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
16389
16617
|
...params
|
|
16390
16618
|
};
|
|
16391
16619
|
};
|
|
16392
|
-
const
|
|
16393
|
-
if (props.independence) {
|
|
16394
|
-
return hrefList.value;
|
|
16395
|
-
}
|
|
16396
|
-
return routerHref.value;
|
|
16397
|
-
});
|
|
16398
|
-
const menueDataFormat = (data) => {
|
|
16620
|
+
const menuDataFormat = (data) => {
|
|
16399
16621
|
data.forEach((item) => {
|
|
16400
16622
|
if (Array.isArray(item)) {
|
|
16401
16623
|
item.forEach((item2) => {
|
|
@@ -16407,13 +16629,13 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
16407
16629
|
});
|
|
16408
16630
|
return data;
|
|
16409
16631
|
};
|
|
16410
|
-
const
|
|
16632
|
+
const userCustomMenus = computed(() => {
|
|
16411
16633
|
if (props.userMenus) {
|
|
16412
|
-
return
|
|
16634
|
+
return menuDataFormat(props.userMenus);
|
|
16413
16635
|
}
|
|
16414
16636
|
return [];
|
|
16415
16637
|
});
|
|
16416
|
-
const
|
|
16638
|
+
const baseRouterMenus = [
|
|
16417
16639
|
[
|
|
16418
16640
|
{ id: "dashboard", label: t2("gitCodeLayout.header.workbench"), icon: "gt-plane-user", to: getRouterLink("dashboard") },
|
|
16419
16641
|
{ id: "myOrg", label: t2("gitCodeLayout.header.myOrg"), icon: "gt-plane-organization", to: getRouterLink({ name: "settingOrganization" }) },
|
|
@@ -16424,20 +16646,20 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
16424
16646
|
],
|
|
16425
16647
|
[
|
|
16426
16648
|
{ id: "personalSetting", label: t2("gitCodeLayout.header.personSetting"), icon: "gt-plane-setting", to: getRouterLink("setting") },
|
|
16427
|
-
{ id: "news", label: t2("gitCodeLayout.home.informationCenter"), icon: "gt-plane-consulting", target: "_blank", href: `${INFORMATION_CENTER_URL}?lang=${(locale2 == null ? void 0 : locale2.value) || "zh"}` },
|
|
16428
|
-
{ id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", href:
|
|
16649
|
+
{ id: "news", label: t2("gitCodeLayout.home.informationCenter"), icon: "gt-plane-consulting", target: "_blank", href: `${transformNewsUrl(INFORMATION_CENTER_URL)}?lang=${(locale2 == null ? void 0 : locale2.value) || "zh"}` },
|
|
16650
|
+
{ id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", href: currentHelpDocsUrl() }
|
|
16429
16651
|
]
|
|
16430
16652
|
];
|
|
16431
|
-
const
|
|
16653
|
+
const routerMenuList = computed(() => {
|
|
16432
16654
|
var _a;
|
|
16433
16655
|
return [
|
|
16434
|
-
...((_a =
|
|
16656
|
+
...((_a = userCustomMenus.value) == null ? void 0 : _a.length) ? userCustomMenus.value : baseRouterMenus,
|
|
16435
16657
|
[
|
|
16436
|
-
{ id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action:
|
|
16658
|
+
{ id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action: handleLogout }
|
|
16437
16659
|
]
|
|
16438
16660
|
];
|
|
16439
16661
|
});
|
|
16440
|
-
const
|
|
16662
|
+
const baseHrefMenus = [
|
|
16441
16663
|
[
|
|
16442
16664
|
{ id: "dashboard", label: t2("gitCodeLayout.header.workbench"), icon: "gt-plane-user", link: "/dashboard" },
|
|
16443
16665
|
{ id: "myOrg", label: t2("gitCodeLayout.header.myOrg"), icon: "gt-plane-organization", link: "/setting/organization" },
|
|
@@ -16448,28 +16670,61 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
16448
16670
|
],
|
|
16449
16671
|
[
|
|
16450
16672
|
{ id: "personalSetting", label: t2("gitCodeLayout.header.personSetting"), icon: "gt-plane-setting", link: "/setting" },
|
|
16451
|
-
{ id: "news", label: t2("gitCodeLayout.home.informationCenter"), icon: "gt-plane-consulting", target: "_blank", href: `${INFORMATION_CENTER_URL}?lang=${(locale2 == null ? void 0 : locale2.value) || "zh"}` },
|
|
16452
|
-
{ id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", target: "_blank", href:
|
|
16673
|
+
{ id: "news", label: t2("gitCodeLayout.home.informationCenter"), icon: "gt-plane-consulting", target: "_blank", href: `${transformNewsUrl(INFORMATION_CENTER_URL)}?lang=${(locale2 == null ? void 0 : locale2.value) || "zh"}` },
|
|
16674
|
+
{ id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", target: "_blank", href: currentHelpDocsUrl() }
|
|
16453
16675
|
]
|
|
16454
16676
|
];
|
|
16455
16677
|
const hrefList = computed(() => {
|
|
16456
16678
|
var _a;
|
|
16457
16679
|
return [
|
|
16458
|
-
...((_a =
|
|
16680
|
+
...((_a = userCustomMenus.value) == null ? void 0 : _a.length) ? userCustomMenus.value : baseHrefMenus,
|
|
16459
16681
|
[
|
|
16460
|
-
{ id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action:
|
|
16682
|
+
{ id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action: handleLogout }
|
|
16461
16683
|
]
|
|
16462
16684
|
];
|
|
16463
16685
|
});
|
|
16686
|
+
const userMenuList = computed(() => {
|
|
16687
|
+
if (props.independence) {
|
|
16688
|
+
return hrefList.value;
|
|
16689
|
+
}
|
|
16690
|
+
return routerMenuList.value;
|
|
16691
|
+
});
|
|
16464
16692
|
function handleClick(item) {
|
|
16465
16693
|
if (item == null ? void 0 : item.action) {
|
|
16466
16694
|
item.action();
|
|
16467
16695
|
}
|
|
16468
16696
|
if (item == null ? void 0 : item.link) {
|
|
16469
16697
|
const link = `${layoutConfig2.VITE_HOST}${item.link}`;
|
|
16470
|
-
|
|
16698
|
+
emit("link-click");
|
|
16699
|
+
setTimeout(() => {
|
|
16700
|
+
window.open(link, "_self");
|
|
16701
|
+
}, 100);
|
|
16471
16702
|
}
|
|
16472
16703
|
}
|
|
16704
|
+
const handleLinkClick = (e) => {
|
|
16705
|
+
const target = e.target;
|
|
16706
|
+
const linkElement = target.closest("a.g-link, .g-link");
|
|
16707
|
+
if (!linkElement) return;
|
|
16708
|
+
const isDisabled = linkElement.hasAttribute("disabled") || linkElement.getAttribute("disabled") === "true" || linkElement.classList.contains("noPointer");
|
|
16709
|
+
if (isDisabled) return;
|
|
16710
|
+
const href = linkElement.getAttribute("href");
|
|
16711
|
+
const to = linkElement.getAttribute("to");
|
|
16712
|
+
const isValidHref = href && href !== "javascript:void(0)" && href !== "#" && href !== "";
|
|
16713
|
+
const isValidTo = to && to !== "";
|
|
16714
|
+
if (isValidHref || isValidTo) {
|
|
16715
|
+
emit("link-click");
|
|
16716
|
+
}
|
|
16717
|
+
};
|
|
16718
|
+
onMounted(() => {
|
|
16719
|
+
if (menuContainerRef.value) {
|
|
16720
|
+
menuContainerRef.value.addEventListener("click", handleLinkClick, true);
|
|
16721
|
+
}
|
|
16722
|
+
});
|
|
16723
|
+
onBeforeUnmount(() => {
|
|
16724
|
+
if (menuContainerRef.value) {
|
|
16725
|
+
menuContainerRef.value.removeEventListener("click", handleLinkClick, true);
|
|
16726
|
+
}
|
|
16727
|
+
});
|
|
16473
16728
|
const getVisit = async (value) => {
|
|
16474
16729
|
const visitedDate = localStorage$2.getItem(AVATAR_VISITED_DATE);
|
|
16475
16730
|
const nowDate = (/* @__PURE__ */ new Date()).toLocaleDateString("zh-CN");
|
|
@@ -16480,30 +16735,33 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
16480
16735
|
};
|
|
16481
16736
|
getVisit();
|
|
16482
16737
|
return (_ctx, _cache) => {
|
|
16483
|
-
return openBlock(), createElementBlock("div",
|
|
16738
|
+
return openBlock(), createElementBlock("div", {
|
|
16739
|
+
ref_key: "menuContainerRef",
|
|
16740
|
+
ref: menuContainerRef
|
|
16741
|
+
}, [
|
|
16484
16742
|
createVNode(GLink, {
|
|
16485
16743
|
class: "g-user-drawer-info pl-[32px] pr-[16px] cursor-pointer",
|
|
16486
|
-
href: `${unref(layoutConfig2).VITE_HOST}/${
|
|
16744
|
+
href: `${unref(layoutConfig2).VITE_HOST}/${_ctx.accountInfo.username}`,
|
|
16487
16745
|
key: "myPage",
|
|
16488
|
-
target:
|
|
16746
|
+
target: _ctx.isChatBot ? "_blank" : ""
|
|
16489
16747
|
}, {
|
|
16490
16748
|
default: withCtx(() => [
|
|
16491
|
-
createVNode(_sfc_main$
|
|
16492
|
-
name:
|
|
16493
|
-
src:
|
|
16749
|
+
createVNode(_sfc_main$A, {
|
|
16750
|
+
name: _ctx.accountInfo.nickname,
|
|
16751
|
+
src: _ctx.accountInfo.avatar,
|
|
16494
16752
|
width: 52,
|
|
16495
16753
|
height: 52
|
|
16496
16754
|
}, null, 8, ["name", "src"]),
|
|
16497
|
-
createElementVNode("div", _hoisted_1$
|
|
16498
|
-
createElementVNode("div", _hoisted_2$
|
|
16755
|
+
createElementVNode("div", _hoisted_1$o, [
|
|
16756
|
+
createElementVNode("div", _hoisted_2$j, [
|
|
16499
16757
|
createElementVNode("p", {
|
|
16500
16758
|
class: "g-user-drawer-info-list-name ellipsis",
|
|
16501
|
-
title:
|
|
16502
|
-
}, toDisplayString$1(
|
|
16759
|
+
title: _ctx.accountInfo.nickname
|
|
16760
|
+
}, toDisplayString$1(_ctx.accountInfo.nickname), 9, _hoisted_3$i),
|
|
16503
16761
|
createElementVNode("p", {
|
|
16504
16762
|
class: "g-user-drawer-info-list-id ellipsis",
|
|
16505
|
-
title:
|
|
16506
|
-
}, "@" + toDisplayString$1(
|
|
16763
|
+
title: _ctx.accountInfo.username
|
|
16764
|
+
}, "@" + toDisplayString$1(_ctx.accountInfo.username), 9, _hoisted_4$d)
|
|
16507
16765
|
]),
|
|
16508
16766
|
createVNode(GIcon, {
|
|
16509
16767
|
name: "gt-line-right",
|
|
@@ -16513,13 +16771,13 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
16513
16771
|
]),
|
|
16514
16772
|
_: 1
|
|
16515
16773
|
}, 8, ["href", "target"]),
|
|
16516
|
-
!
|
|
16774
|
+
!_ctx.inAIHub ? (openBlock(), createBlock(UserLevel, {
|
|
16517
16775
|
key: 0,
|
|
16518
|
-
accountInfo:
|
|
16776
|
+
accountInfo: _ctx.accountInfo
|
|
16519
16777
|
}, null, 8, ["accountInfo"])) : createCommentVNode("", true),
|
|
16520
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
16778
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(userMenuList.value, (block, index2) => {
|
|
16521
16779
|
return openBlock(), createElementBlock("div", {
|
|
16522
|
-
class: normalizeClass(["g-user-drawer-block", { "!pt-[0px]": index2 === 0 &&
|
|
16780
|
+
class: normalizeClass(["g-user-drawer-block", { "!pt-[0px]": index2 === 0 && _ctx.inAIHub }]),
|
|
16523
16781
|
key: index2
|
|
16524
16782
|
}, [
|
|
16525
16783
|
block.component ? (openBlock(), createBlock(resolveDynamicComponent(block.component), {
|
|
@@ -16530,7 +16788,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
16530
16788
|
ref_for: true
|
|
16531
16789
|
}, item, {
|
|
16532
16790
|
onClick: ($event) => handleClick(item),
|
|
16533
|
-
target:
|
|
16791
|
+
target: _ctx.isChatBot && !item.action ? "_blank" : item.target || ""
|
|
16534
16792
|
}), {
|
|
16535
16793
|
default: withCtx(() => [
|
|
16536
16794
|
item.icon ? (openBlock(), createBlock(GIcon, {
|
|
@@ -16545,24 +16803,24 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
16545
16803
|
}), 128))
|
|
16546
16804
|
], 2);
|
|
16547
16805
|
}), 128))
|
|
16548
|
-
]);
|
|
16806
|
+
], 512);
|
|
16549
16807
|
};
|
|
16550
16808
|
}
|
|
16551
16809
|
});
|
|
16552
|
-
const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16553
|
-
const _hoisted_1$
|
|
16554
|
-
const _hoisted_2$
|
|
16810
|
+
const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16811
|
+
const _hoisted_1$n = { class: "g-user-avatar flex-center ml-1" };
|
|
16812
|
+
const _hoisted_2$i = {
|
|
16555
16813
|
key: 0,
|
|
16556
16814
|
class: "g-user-avatar__badge"
|
|
16557
16815
|
};
|
|
16558
|
-
const _hoisted_3$
|
|
16559
|
-
const _hoisted_4$
|
|
16816
|
+
const _hoisted_3$h = { class: "g-user-avatar flex-center ml-1" };
|
|
16817
|
+
const _hoisted_4$c = {
|
|
16560
16818
|
key: 0,
|
|
16561
16819
|
class: "g-user-avatar__badge"
|
|
16562
16820
|
};
|
|
16563
16821
|
const _hoisted_5$7 = { class: "g-user-drawer" };
|
|
16564
16822
|
const _hoisted_6$6 = { class: "p-[16px] pt-[8px] pb-0 flex justify-end items-center h-[48px]" };
|
|
16565
|
-
const _sfc_main$
|
|
16823
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
16566
16824
|
...{
|
|
16567
16825
|
name: "UserAvatar"
|
|
16568
16826
|
},
|
|
@@ -16572,11 +16830,27 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
16572
16830
|
const { isMobile } = usePageResize();
|
|
16573
16831
|
const drawerVisible = ref(false);
|
|
16574
16832
|
const userInfo = inject("userInfo");
|
|
16575
|
-
const
|
|
16576
|
-
|
|
16577
|
-
|
|
16833
|
+
const getLocalStorageUserInfo = () => {
|
|
16834
|
+
try {
|
|
16835
|
+
return JSON.parse(localStorage$2.getItem("userInfo") || "{}");
|
|
16836
|
+
} catch {
|
|
16837
|
+
return {};
|
|
16838
|
+
}
|
|
16839
|
+
};
|
|
16840
|
+
const accountInfo = ref(userInfo.value || getLocalStorageUserInfo());
|
|
16578
16841
|
const haveVisited = ref(false);
|
|
16579
16842
|
const useReport2 = inject("useReport");
|
|
16843
|
+
watch(
|
|
16844
|
+
() => userInfo.value,
|
|
16845
|
+
(newValue) => {
|
|
16846
|
+
if (newValue) {
|
|
16847
|
+
accountInfo.value = newValue;
|
|
16848
|
+
} else {
|
|
16849
|
+
accountInfo.value = getLocalStorageUserInfo();
|
|
16850
|
+
}
|
|
16851
|
+
},
|
|
16852
|
+
{ immediate: true }
|
|
16853
|
+
);
|
|
16580
16854
|
const handleToggle = (status) => {
|
|
16581
16855
|
visitedClick();
|
|
16582
16856
|
const params = { need_tips: accountInfo.value.need_tips, prompt_style: accountInfo.value.style_tips };
|
|
@@ -16628,9 +16902,21 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
16628
16902
|
const appDom = getScrollDom();
|
|
16629
16903
|
appDom && (appDom.style.overflow = status ? "hidden" : "unset");
|
|
16630
16904
|
};
|
|
16905
|
+
const resetOverflow = () => {
|
|
16906
|
+
const appDom = getScrollDom();
|
|
16907
|
+
if (appDom && appDom.style.overflow === "hidden") {
|
|
16908
|
+
appDom.style.overflow = "unset";
|
|
16909
|
+
}
|
|
16910
|
+
};
|
|
16631
16911
|
const handleStorageChange = (e) => {
|
|
16632
16912
|
if (e.key === "userInfo") {
|
|
16633
|
-
|
|
16913
|
+
if (!userInfo.value) {
|
|
16914
|
+
try {
|
|
16915
|
+
accountInfo.value = JSON.parse(e.newValue || "{}");
|
|
16916
|
+
} catch {
|
|
16917
|
+
accountInfo.value = {};
|
|
16918
|
+
}
|
|
16919
|
+
}
|
|
16634
16920
|
}
|
|
16635
16921
|
};
|
|
16636
16922
|
onMounted(() => {
|
|
@@ -16638,6 +16924,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
16638
16924
|
});
|
|
16639
16925
|
onBeforeUnmount(() => {
|
|
16640
16926
|
window.removeEventListener("storage", handleStorageChange);
|
|
16927
|
+
resetOverflow();
|
|
16641
16928
|
});
|
|
16642
16929
|
return (_ctx, _cache) => {
|
|
16643
16930
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
@@ -16645,12 +16932,12 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
16645
16932
|
key: 0,
|
|
16646
16933
|
onClick: _cache[0] || (_cache[0] = ($event) => drawerVisible.value = true)
|
|
16647
16934
|
}, [
|
|
16648
|
-
createElementVNode("div", _hoisted_1$
|
|
16649
|
-
createVNode(_sfc_main$
|
|
16935
|
+
createElementVNode("div", _hoisted_1$n, [
|
|
16936
|
+
createVNode(_sfc_main$A, {
|
|
16650
16937
|
name: accountInfo.value.nickname,
|
|
16651
|
-
src: accountInfo.value.avatar
|
|
16938
|
+
src: unref(transformUrl)(accountInfo.value.avatar)
|
|
16652
16939
|
}, null, 8, ["name", "src"]),
|
|
16653
|
-
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
16940
|
+
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, _cache[4] || (_cache[4] = [
|
|
16654
16941
|
createElementVNode("div", null, null, -1)
|
|
16655
16942
|
]))) : createCommentVNode("", true)
|
|
16656
16943
|
])
|
|
@@ -16670,17 +16957,18 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
16670
16957
|
accountInfo: accountInfo.value,
|
|
16671
16958
|
isChatBot: __props.isChatBot,
|
|
16672
16959
|
inAIHub: __props.inAIHub,
|
|
16673
|
-
userMenus: __props.userMenus
|
|
16960
|
+
userMenus: __props.userMenus,
|
|
16961
|
+
onLinkClick: resetOverflow
|
|
16674
16962
|
}, null, 8, ["independence", "loginOutFinish", "accountInfo", "isChatBot", "inAIHub", "userMenus"])
|
|
16675
16963
|
])
|
|
16676
16964
|
]),
|
|
16677
16965
|
default: withCtx(() => [
|
|
16678
|
-
createElementVNode("div", _hoisted_3$
|
|
16679
|
-
createVNode(_sfc_main$
|
|
16966
|
+
createElementVNode("div", _hoisted_3$h, [
|
|
16967
|
+
createVNode(_sfc_main$A, {
|
|
16680
16968
|
name: accountInfo.value.nickname,
|
|
16681
|
-
src: accountInfo.value.avatar
|
|
16969
|
+
src: unref(transformUrl)(accountInfo.value.avatar)
|
|
16682
16970
|
}, null, 8, ["name", "src"]),
|
|
16683
|
-
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
16971
|
+
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$c, _cache[5] || (_cache[5] = [
|
|
16684
16972
|
createElementVNode("div", null, null, -1)
|
|
16685
16973
|
]))) : createCommentVNode("", true)
|
|
16686
16974
|
])
|
|
@@ -16711,7 +16999,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
16711
16999
|
isChatBot: __props.isChatBot,
|
|
16712
17000
|
inAIHub: __props.inAIHub,
|
|
16713
17001
|
userMenus: __props.userMenus,
|
|
16714
|
-
onClick: _cache[2] || (_cache[2] = ($event) => drawerVisible.value = false)
|
|
17002
|
+
onClick: _cache[2] || (_cache[2] = ($event) => drawerVisible.value = false),
|
|
17003
|
+
onLinkClick: resetOverflow
|
|
16715
17004
|
}, null, 8, ["independence", "loginOutFinish", "accountInfo", "isChatBot", "inAIHub", "userMenus"])
|
|
16716
17005
|
])
|
|
16717
17006
|
]),
|
|
@@ -16721,7 +17010,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
16721
17010
|
};
|
|
16722
17011
|
}
|
|
16723
17012
|
});
|
|
16724
|
-
const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17013
|
+
const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16725
17014
|
var EVENT_NAME = /* @__PURE__ */ ((EVENT_NAME2) => {
|
|
16726
17015
|
EVENT_NAME2["START_SEARCH"] = "开始搜索";
|
|
16727
17016
|
EVENT_NAME2["SEARCH"] = "搜索";
|
|
@@ -16809,16 +17098,16 @@ const setlocalVistHistory = (data, localType) => {
|
|
|
16809
17098
|
localStorage$2.setItem(storeName, JSON.stringify(cur));
|
|
16810
17099
|
return cur;
|
|
16811
17100
|
};
|
|
16812
|
-
const _hoisted_1$
|
|
16813
|
-
const _hoisted_2$
|
|
16814
|
-
const _hoisted_3$
|
|
16815
|
-
const _hoisted_4$
|
|
17101
|
+
const _hoisted_1$m = { class: "g-header-search-prefix" };
|
|
17102
|
+
const _hoisted_2$h = ["innerHTML"];
|
|
17103
|
+
const _hoisted_3$g = { class: "g-header-search-suffix-splitline" };
|
|
17104
|
+
const _hoisted_4$b = { class: "g-header-search-suffix-suffixIcon" };
|
|
16816
17105
|
const _hoisted_5$6 = { class: "history-list" };
|
|
16817
17106
|
const _hoisted_6$5 = {
|
|
16818
17107
|
key: 1,
|
|
16819
17108
|
class: "aireposearch flex-1"
|
|
16820
17109
|
};
|
|
16821
|
-
const _sfc_main$
|
|
17110
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
16822
17111
|
__name: "index",
|
|
16823
17112
|
props: {
|
|
16824
17113
|
inAIHub: { type: Boolean },
|
|
@@ -16829,13 +17118,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
16829
17118
|
var _a;
|
|
16830
17119
|
const layoutConfig2 = useLayoutConfig();
|
|
16831
17120
|
const { t: $t } = i18n.global;
|
|
16832
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
16833
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
16834
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
16835
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
16836
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
16837
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
16838
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
17121
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CQGr2sFM.js"));
|
|
17122
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-Dd-eQ3vt.js"));
|
|
17123
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-BKbD4E1Z.js"));
|
|
17124
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CEuItO_r.js"));
|
|
17125
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BTG0qdJ0.js"));
|
|
17126
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-CZqpX561.js"));
|
|
17127
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-awSwT-BI.js"));
|
|
16839
17128
|
const props = __props;
|
|
16840
17129
|
const repoInfo = inject("repoInfo");
|
|
16841
17130
|
const orgInfo = inject("orgInfo");
|
|
@@ -17073,7 +17362,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
17073
17362
|
} else {
|
|
17074
17363
|
hotUrl = `${hotUrl}?source_module=search_box_hot_word`;
|
|
17075
17364
|
}
|
|
17076
|
-
window.open(hotUrl, "_blank");
|
|
17365
|
+
window.open(transformUrl(hotUrl), "_blank");
|
|
17077
17366
|
return;
|
|
17078
17367
|
}
|
|
17079
17368
|
isSearchHistory.value = false;
|
|
@@ -17384,7 +17673,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
17384
17673
|
ref: inputRef
|
|
17385
17674
|
}, {
|
|
17386
17675
|
prefix: withCtx(() => [
|
|
17387
|
-
createElementVNode("div", _hoisted_1$
|
|
17676
|
+
createElementVNode("div", _hoisted_1$m, [
|
|
17388
17677
|
createVNode(GIcon, {
|
|
17389
17678
|
name: "gt-search",
|
|
17390
17679
|
class: "g-header-search-icon",
|
|
@@ -17407,7 +17696,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
17407
17696
|
class: "quick-tips",
|
|
17408
17697
|
innerHTML: unref(quickTips),
|
|
17409
17698
|
onClick: onInputClick
|
|
17410
|
-
}, null, 8, _hoisted_2$
|
|
17699
|
+
}, null, 8, _hoisted_2$h)), [
|
|
17411
17700
|
[vShow, placeholderVisible.value]
|
|
17412
17701
|
]),
|
|
17413
17702
|
withDirectives(createVNode(unref(SearchPrefixTag), {
|
|
@@ -17440,10 +17729,10 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
17440
17729
|
}, null, 512), [
|
|
17441
17730
|
[vShow, searchStr.value]
|
|
17442
17731
|
]),
|
|
17443
|
-
withDirectives(createElementVNode("span", _hoisted_3$
|
|
17732
|
+
withDirectives(createElementVNode("span", _hoisted_3$g, "|", 512), [
|
|
17444
17733
|
[vShow, searchStr.value]
|
|
17445
17734
|
]),
|
|
17446
|
-
createElementVNode("div", _hoisted_4$
|
|
17735
|
+
createElementVNode("div", _hoisted_4$b, [
|
|
17447
17736
|
createVNode(GIcon, {
|
|
17448
17737
|
name: "search",
|
|
17449
17738
|
class: "g-header-search-icon",
|
|
@@ -17481,7 +17770,86 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
17481
17770
|
};
|
|
17482
17771
|
}
|
|
17483
17772
|
});
|
|
17484
|
-
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17773
|
+
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
17774
|
+
const _hoisted_1$l = { class: "announce-content" };
|
|
17775
|
+
const _hoisted_2$g = { class: "text-left" };
|
|
17776
|
+
const _hoisted_3$f = ["href"];
|
|
17777
|
+
const _hoisted_4$a = { class: "announce-handle-wrapper" };
|
|
17778
|
+
const ANNOUNCE_STATUS_KEY = "site_announcement_status";
|
|
17779
|
+
const announcementWidth = "100%";
|
|
17780
|
+
const announcementLeft = "0";
|
|
17781
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
17782
|
+
...{ name: "SiteAnnouncement" },
|
|
17783
|
+
__name: "SiteAnnouncement",
|
|
17784
|
+
setup(__props) {
|
|
17785
|
+
const { t: t2 } = i18n.global;
|
|
17786
|
+
const isShow = ref(SITE_STATUS.DISABLE);
|
|
17787
|
+
const handleClose = (type) => {
|
|
17788
|
+
isShow.value = false;
|
|
17789
|
+
{
|
|
17790
|
+
const now2 = /* @__PURE__ */ new Date();
|
|
17791
|
+
const today = `${now2.getFullYear()}-${String(now2.getMonth() + 1).padStart(2, "0")}-${String(now2.getDate()).padStart(2, "0")}`;
|
|
17792
|
+
localStorage$2.setItem(ANNOUNCE_STATUS_KEY, today);
|
|
17793
|
+
}
|
|
17794
|
+
};
|
|
17795
|
+
const migrationAnnounceUrl = computed(() => {
|
|
17796
|
+
var _a, _b;
|
|
17797
|
+
return ((_b = (_a = window == null ? void 0 : window.location) == null ? void 0 : _a.hostname) == null ? void 0 : _b.includes("gitcode")) ? "https://gitcode.com/gitcode" : "https://atomgit.com/gitcode";
|
|
17798
|
+
});
|
|
17799
|
+
const initShowStatus = () => {
|
|
17800
|
+
if (!SITE_STATUS.DISABLE) {
|
|
17801
|
+
isShow.value = false;
|
|
17802
|
+
return;
|
|
17803
|
+
}
|
|
17804
|
+
const now2 = /* @__PURE__ */ new Date();
|
|
17805
|
+
const deadline = /* @__PURE__ */ new Date("2025-12-31");
|
|
17806
|
+
if (now2 >= deadline) {
|
|
17807
|
+
isShow.value = false;
|
|
17808
|
+
localStorage$2.removeItem(ANNOUNCE_STATUS_KEY);
|
|
17809
|
+
return;
|
|
17810
|
+
}
|
|
17811
|
+
const announceStatus = localStorage$2.getItem(ANNOUNCE_STATUS_KEY);
|
|
17812
|
+
if (announceStatus) {
|
|
17813
|
+
const today = `${now2.getFullYear()}-${String(now2.getMonth() + 1).padStart(2, "0")}-${String(now2.getDate()).padStart(2, "0")}`;
|
|
17814
|
+
if (announceStatus === today) {
|
|
17815
|
+
isShow.value = false;
|
|
17816
|
+
}
|
|
17817
|
+
}
|
|
17818
|
+
};
|
|
17819
|
+
onMounted(() => {
|
|
17820
|
+
initShowStatus();
|
|
17821
|
+
});
|
|
17822
|
+
return (_ctx, _cache) => {
|
|
17823
|
+
return isShow.value ? (openBlock(), createElementBlock("div", {
|
|
17824
|
+
key: 0,
|
|
17825
|
+
class: "announce-wrapper",
|
|
17826
|
+
style: normalizeStyle(`width: ${announcementWidth};margin-left: ${announcementLeft}`)
|
|
17827
|
+
}, [
|
|
17828
|
+
createElementVNode("div", _hoisted_1$l, [
|
|
17829
|
+
createElementVNode("div", _hoisted_2$g, [
|
|
17830
|
+
createVNode(GIcon, {
|
|
17831
|
+
name: "gt-plane-warningCircular-blue",
|
|
17832
|
+
size: "16",
|
|
17833
|
+
class: "mr-2"
|
|
17834
|
+
}),
|
|
17835
|
+
createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.content")), 1),
|
|
17836
|
+
createElementVNode("a", {
|
|
17837
|
+
class: "announce-detail",
|
|
17838
|
+
href: migrationAnnounceUrl.value
|
|
17839
|
+
}, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.viewDetail")), 9, _hoisted_3$f)
|
|
17840
|
+
])
|
|
17841
|
+
]),
|
|
17842
|
+
createElementVNode("div", _hoisted_4$a, [
|
|
17843
|
+
createElementVNode("span", {
|
|
17844
|
+
class: "announce-handle",
|
|
17845
|
+
onClick: _cache[0] || (_cache[0] = ($event) => handleClose())
|
|
17846
|
+
}, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.close")), 1)
|
|
17847
|
+
])
|
|
17848
|
+
], 4)) : createCommentVNode("", true);
|
|
17849
|
+
};
|
|
17850
|
+
}
|
|
17851
|
+
});
|
|
17852
|
+
const SiteAnnouncement = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
17485
17853
|
const vElementExposure = {
|
|
17486
17854
|
mounted(el, binding) {
|
|
17487
17855
|
let observer = new IntersectionObserver(function(entries2, observer2) {
|
|
@@ -17505,7 +17873,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
|
|
|
17505
17873
|
loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
|
|
17506
17874
|
}
|
|
17507
17875
|
};
|
|
17508
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
17876
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-BPASre1t.js"));
|
|
17509
17877
|
function clearNotice() {
|
|
17510
17878
|
if (localStorage$2.getItem("validator_email")) {
|
|
17511
17879
|
localStorage$2.removeItem("validator_email");
|
|
@@ -17533,12 +17901,12 @@ function useNotification() {
|
|
|
17533
17901
|
};
|
|
17534
17902
|
}
|
|
17535
17903
|
const _hoisted_1$k = { class: "g-toolbar-left items-center allow-click-stop flex-[1] min-w-0" };
|
|
17536
|
-
const _hoisted_2$
|
|
17537
|
-
const _hoisted_3$
|
|
17904
|
+
const _hoisted_2$f = { key: 0 };
|
|
17905
|
+
const _hoisted_3$e = {
|
|
17538
17906
|
key: 1,
|
|
17539
17907
|
class: "search-avatar flex-1 flex items-center justify-center"
|
|
17540
17908
|
};
|
|
17541
|
-
const _hoisted_4$
|
|
17909
|
+
const _hoisted_4$9 = { class: "flex items-center gap-[8px]" };
|
|
17542
17910
|
const _hoisted_5$5 = {
|
|
17543
17911
|
key: 1,
|
|
17544
17912
|
class: "g-header-body"
|
|
@@ -17637,7 +18005,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17637
18005
|
const { isMobile } = usePageResize();
|
|
17638
18006
|
const { widthType } = usePageResize();
|
|
17639
18007
|
const headerRef = ref(null);
|
|
17640
|
-
const { height
|
|
18008
|
+
const { height } = useElementSize(headerRef);
|
|
18009
|
+
const { setHeaderHeight } = useHeaderHeight();
|
|
18010
|
+
watch(height, (newHeight) => {
|
|
18011
|
+
if (newHeight) {
|
|
18012
|
+
setHeaderHeight(newHeight);
|
|
18013
|
+
}
|
|
18014
|
+
}, { immediate: true });
|
|
17641
18015
|
const GrayBgSceneValue = [SceneValue.repo, SceneValue.org, SceneValue.user];
|
|
17642
18016
|
const headerClassName = computed(() => {
|
|
17643
18017
|
var _a2, _b;
|
|
@@ -17884,10 +18258,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17884
18258
|
emit("resetPwdDirectlySuccess");
|
|
17885
18259
|
});
|
|
17886
18260
|
window.addEventListener("message", (event) => {
|
|
17887
|
-
var _a2, _b;
|
|
18261
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
17888
18262
|
const action = HandleParentWindowGetLoginInfo(props.request);
|
|
17889
|
-
if (
|
|
17890
|
-
|
|
18263
|
+
if (((_a2 = event == null ? void 0 : event.data) == null ? void 0 : _a2.type) === "main_report") {
|
|
18264
|
+
collectRegisterLoginEvent({ isRegister: (_b = event.data.report) == null ? void 0 : _b.isRegister, registerLoginMethod: (_c = event.data.report) == null ? void 0 : _c.registerLoginMethod, success: (_d = event.data.report) == null ? void 0 : _d.success });
|
|
18265
|
+
}
|
|
18266
|
+
if ([AuthResType.SUCCESS, AuthResType.FAIL].includes((_e = event.data) == null ? void 0 : _e.type)) {
|
|
18267
|
+
action[(_f = event.data) == null ? void 0 : _f.type](event);
|
|
17891
18268
|
}
|
|
17892
18269
|
});
|
|
17893
18270
|
});
|
|
@@ -17901,6 +18278,21 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17901
18278
|
const handleCloseStickyNotice = () => {
|
|
17902
18279
|
closeStickyNotice.value = true;
|
|
17903
18280
|
};
|
|
18281
|
+
const logoConfig = getCurrentLogoMap();
|
|
18282
|
+
const logoStyle = computed(() => {
|
|
18283
|
+
const isBlackTheme = currentTheme.value === "black";
|
|
18284
|
+
let logoUrl = isBlackTheme ? logoConfig.siteLogoWhite : logoConfig.siteLogoDark;
|
|
18285
|
+
if (inAIHub.value) {
|
|
18286
|
+
logoUrl = isBlackTheme ? logoConfig.aiLogoWhite : logoConfig.aiLogoDark;
|
|
18287
|
+
}
|
|
18288
|
+
const backgroundSize = isMobile.value ? "cover" : "contain";
|
|
18289
|
+
return {
|
|
18290
|
+
backgroundImage: `url(${logoUrl})`,
|
|
18291
|
+
backgroundRepeat: "no-repeat",
|
|
18292
|
+
backgroundPosition: "0 center",
|
|
18293
|
+
backgroundSize
|
|
18294
|
+
};
|
|
18295
|
+
});
|
|
17904
18296
|
return (_ctx, _cache) => {
|
|
17905
18297
|
var _a2, _b, _c, _d;
|
|
17906
18298
|
return openBlock(), createElementBlock("div", {
|
|
@@ -17928,6 +18320,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17928
18320
|
], 4)), [
|
|
17929
18321
|
[unref(vElementExposure), { trigger: (type) => handleStickyNoticeExpo() }]
|
|
17930
18322
|
]) : createCommentVNode("", true),
|
|
18323
|
+
createVNode(SiteAnnouncement),
|
|
17931
18324
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
17932
18325
|
class: "g-toolbar w-full overflow-hidden allow-click-stop",
|
|
17933
18326
|
onClick: withModifiers(handleToolbarClick, ["stop"])
|
|
@@ -17948,14 +18341,16 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17948
18341
|
})) : createCommentVNode("", true),
|
|
17949
18342
|
showNameAndIcon.value && _ctx.independence || inAIHub.value ? (openBlock(), createBlock(GLink, {
|
|
17950
18343
|
key: 1,
|
|
17951
|
-
class: normalizeClass(["g-toolbar-left-logo", [
|
|
18344
|
+
class: normalizeClass(["g-toolbar-left-logo", [inAIHub.value ? "ai-logo" : ""]]),
|
|
18345
|
+
style: normalizeStyle(logoStyle.value),
|
|
17952
18346
|
href: inAIHub.value ? `${unref(layoutConfig2).VITE_AI_HOST}` : `${unref(layoutConfig2).VITE_HOST}?p=seo`
|
|
17953
|
-
}, null, 8, ["class", "href"])) : createCommentVNode("", true),
|
|
18347
|
+
}, null, 8, ["class", "style", "href"])) : createCommentVNode("", true),
|
|
17954
18348
|
showNameAndIcon.value && !_ctx.independence ? (openBlock(), createBlock(GLink, {
|
|
17955
18349
|
key: 2,
|
|
17956
|
-
class: normalizeClass(["g-toolbar-left-logo", [
|
|
18350
|
+
class: normalizeClass(["g-toolbar-left-logo", [inAIHub.value ? "ai-logo" : ""]]),
|
|
18351
|
+
style: normalizeStyle(logoStyle.value),
|
|
17957
18352
|
to: { name: "home" }
|
|
17958
|
-
}, null, 8, ["class"])) : createCommentVNode("", true)
|
|
18353
|
+
}, null, 8, ["class", "style"])) : createCommentVNode("", true)
|
|
17959
18354
|
]),
|
|
17960
18355
|
isModuleVisible(unref(HeaderDisplayItem).CUSTOM_CONTENT) ? (openBlock(), createElementBlock("div", {
|
|
17961
18356
|
key: 0,
|
|
@@ -17979,10 +18374,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17979
18374
|
}, 8, ["scene", "isLogin", "errorCode", "orgProps", "repoProps", "userProps"])) : createCommentVNode("", true)
|
|
17980
18375
|
], 2)) : createCommentVNode("", true)
|
|
17981
18376
|
]),
|
|
17982
|
-
_ctx.$slots.headerMiddleRight ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
18377
|
+
_ctx.$slots.headerMiddleRight ? (openBlock(), createElementBlock("div", _hoisted_2$f, [
|
|
17983
18378
|
renderSlot(_ctx.$slots, "headerMiddleRight", {}, void 0, true)
|
|
17984
18379
|
])) : createCommentVNode("", true),
|
|
17985
|
-
!inAIHub.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
18380
|
+
!inAIHub.value ? (openBlock(), createElementBlock("div", _hoisted_3$e, [
|
|
17986
18381
|
isModuleVisible(unref(HeaderDisplayItem).SEARCH_BUTTON) ? renderSlot(_ctx.$slots, "search", { key: 0 }, () => [
|
|
17987
18382
|
(openBlock(), createBlock(Search, {
|
|
17988
18383
|
inAIHub: inAIHub.value,
|
|
@@ -18003,7 +18398,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18003
18398
|
createElementVNode("div", {
|
|
18004
18399
|
class: normalizeClass(["g-toolbar-right gap-[16px] flex-[1] justify-end max-md:gap-[12px] allow-click-stop", inAIHub.value ? "flex-none" : ""])
|
|
18005
18400
|
}, [
|
|
18006
|
-
createElementVNode("div", _hoisted_4$
|
|
18401
|
+
createElementVNode("div", _hoisted_4$9, [
|
|
18007
18402
|
createVNode(ClaimPower, { config: claimPowerConfig.value }, null, 8, ["config"])
|
|
18008
18403
|
]),
|
|
18009
18404
|
!_ctx.isLogin ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -18077,6 +18472,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18077
18472
|
}
|
|
18078
18473
|
});
|
|
18079
18474
|
const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
18475
|
+
const layoutConfig$1 = useLayoutConfig();
|
|
18080
18476
|
const useConfigSide = (request, sceneValue) => {
|
|
18081
18477
|
const API = asideRequest(request);
|
|
18082
18478
|
const route = useRoute();
|
|
@@ -18133,10 +18529,30 @@ const useConfigSide = (request, sceneValue) => {
|
|
|
18133
18529
|
return Object.values(grouped);
|
|
18134
18530
|
};
|
|
18135
18531
|
const fetchArea = async () => {
|
|
18136
|
-
var _a;
|
|
18532
|
+
var _a, _b;
|
|
18137
18533
|
sideLoading.value = true;
|
|
18138
18534
|
const res = await API.getAsideConfig();
|
|
18139
|
-
|
|
18535
|
+
let asideList = (((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.data) || []).map((item) => {
|
|
18536
|
+
let processedUrl = item.left_menu_url;
|
|
18537
|
+
if (processedUrl == null ? void 0 : processedUrl.startsWith("https://competition.")) {
|
|
18538
|
+
processedUrl = replaceHost({ url: processedUrl, customHost: transformUrl(layoutConfig$1.VITE_COMPETITION_HOST) });
|
|
18539
|
+
} else if (processedUrl == null ? void 0 : processedUrl.startsWith("https://ai.")) {
|
|
18540
|
+
processedUrl = replaceHost({ url: processedUrl, customHost: transformUrl(layoutConfig$1.VITE_AI_HOST) });
|
|
18541
|
+
} else {
|
|
18542
|
+
processedUrl = transformUrl(processedUrl);
|
|
18543
|
+
}
|
|
18544
|
+
return {
|
|
18545
|
+
...item,
|
|
18546
|
+
left_menu_url: processedUrl,
|
|
18547
|
+
left_menu_logo: transformUrl(item.left_menu_logo),
|
|
18548
|
+
left_menu_logo_black: transformUrl(item.left_menu_logo_black),
|
|
18549
|
+
left_menu_logo_hover: transformUrl(item.left_menu_logo_hover),
|
|
18550
|
+
left_menu_logo_hover_black: transformUrl(item.left_menu_logo_hover_black)
|
|
18551
|
+
};
|
|
18552
|
+
});
|
|
18553
|
+
if (typeof window !== "undefined" && GUI_YANG_GITCODE_HOST && ((_b = window.location) == null ? void 0 : _b.origin.includes(GUI_YANG_GITCODE_HOST))) {
|
|
18554
|
+
asideList = asideList.filter((item) => !(item.left_menu_url && item.left_menu_url.includes("https://competition.gitcode")));
|
|
18555
|
+
}
|
|
18140
18556
|
if (judgeIsShowAssetMenus(asideList)) {
|
|
18141
18557
|
area.value = groupByArea([...assetMenus.value, ...asideList]);
|
|
18142
18558
|
} else {
|
|
@@ -18206,8 +18622,8 @@ const loadUserProjectsInvolved = async (requestFn, params = {}) => {
|
|
|
18206
18622
|
var _a;
|
|
18207
18623
|
return {
|
|
18208
18624
|
key: item.name,
|
|
18209
|
-
web_url: item.web_url,
|
|
18210
|
-
avatar: item.avatar,
|
|
18625
|
+
web_url: transformUrl(item.web_url),
|
|
18626
|
+
avatar: transformUrl(item.avatar),
|
|
18211
18627
|
id: item.id,
|
|
18212
18628
|
label: item.name,
|
|
18213
18629
|
namespace: (_a = item.namespace_info) == null ? void 0 : _a.name
|
|
@@ -18244,7 +18660,7 @@ var SearchType = /* @__PURE__ */ ((SearchType2) => {
|
|
|
18244
18660
|
return SearchType2;
|
|
18245
18661
|
})(SearchType || {});
|
|
18246
18662
|
const _hoisted_1$j = { class: "area" };
|
|
18247
|
-
const _hoisted_2$
|
|
18663
|
+
const _hoisted_2$e = { class: "w-[208px] max-h-[240px]" };
|
|
18248
18664
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
18249
18665
|
__name: "Area",
|
|
18250
18666
|
props: {
|
|
@@ -18258,9 +18674,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18258
18674
|
const layoutConfig2 = useLayoutConfig();
|
|
18259
18675
|
const { t: t2 } = i18n.global;
|
|
18260
18676
|
const route = useRoute();
|
|
18261
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
18262
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
18263
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
18677
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-Ds8HpRek.js"));
|
|
18678
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-CBDop7_p.js"));
|
|
18679
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-wqov62hv.js"));
|
|
18264
18680
|
const props = __props;
|
|
18265
18681
|
console.log("slotKeys", props.slotKeys);
|
|
18266
18682
|
console.log("props", props);
|
|
@@ -18444,7 +18860,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18444
18860
|
return {
|
|
18445
18861
|
name: key,
|
|
18446
18862
|
fn: withCtx(() => [
|
|
18447
|
-
createElementVNode("div", _hoisted_2$
|
|
18863
|
+
createElementVNode("div", _hoisted_2$e, [
|
|
18448
18864
|
createVNode(unref(Menu), {
|
|
18449
18865
|
class: "menu",
|
|
18450
18866
|
onSelect: onMenuClick,
|
|
@@ -18488,7 +18904,7 @@ function useCookie(key, defaultValue, options = COOKIE_OPTIONS) {
|
|
|
18488
18904
|
api.set(key, newValue, options);
|
|
18489
18905
|
localStorage$2.setItem(key, newValue);
|
|
18490
18906
|
} else {
|
|
18491
|
-
api.remove(key, { domain: COOKIE_DOMAIN });
|
|
18907
|
+
api.remove(key, { domain: COOKIE_DOMAIN() });
|
|
18492
18908
|
}
|
|
18493
18909
|
},
|
|
18494
18910
|
{ flush: "sync" }
|
|
@@ -18497,8 +18913,8 @@ function useCookie(key, defaultValue, options = COOKIE_OPTIONS) {
|
|
|
18497
18913
|
return value;
|
|
18498
18914
|
}
|
|
18499
18915
|
const _hoisted_1$i = { class: "tools-item-wrapper" };
|
|
18500
|
-
const _hoisted_2$
|
|
18501
|
-
const _hoisted_3$
|
|
18916
|
+
const _hoisted_2$d = { class: "tools-item-wrapper-checkbox" };
|
|
18917
|
+
const _hoisted_3$d = ["onClick", "title"];
|
|
18502
18918
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
18503
18919
|
__name: "Lang",
|
|
18504
18920
|
setup(__props) {
|
|
@@ -18518,7 +18934,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18518
18934
|
return (_ctx, _cache) => {
|
|
18519
18935
|
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
18520
18936
|
createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.lang")), 1),
|
|
18521
|
-
createElementVNode("div", _hoisted_2$
|
|
18937
|
+
createElementVNode("div", _hoisted_2$d, [
|
|
18522
18938
|
(openBlock(true), createElementBlock(Fragment, null, renderList(linkList.value, (item) => {
|
|
18523
18939
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
18524
18940
|
key: item.label,
|
|
@@ -18534,7 +18950,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18534
18950
|
color: "var(--theme-icon-fill-weak)",
|
|
18535
18951
|
class: "checkbox-item-icon"
|
|
18536
18952
|
}, null, 8, ["name"])
|
|
18537
|
-
], 16, _hoisted_3$
|
|
18953
|
+
], 16, _hoisted_3$d);
|
|
18538
18954
|
}), 128))
|
|
18539
18955
|
])
|
|
18540
18956
|
]);
|
|
@@ -18542,8 +18958,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18542
18958
|
}
|
|
18543
18959
|
});
|
|
18544
18960
|
const _hoisted_1$h = { class: "tools-item-wrapper" };
|
|
18545
|
-
const _hoisted_2$
|
|
18546
|
-
const _hoisted_3$
|
|
18961
|
+
const _hoisted_2$c = { class: "tools-item-wrapper-checkbox" };
|
|
18962
|
+
const _hoisted_3$c = ["onClick", "title"];
|
|
18547
18963
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
18548
18964
|
__name: "Theme",
|
|
18549
18965
|
setup(__props) {
|
|
@@ -18571,7 +18987,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
18571
18987
|
return (_ctx, _cache) => {
|
|
18572
18988
|
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
18573
18989
|
createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.theme")), 1),
|
|
18574
|
-
createElementVNode("div", _hoisted_2$
|
|
18990
|
+
createElementVNode("div", _hoisted_2$c, [
|
|
18575
18991
|
(openBlock(true), createElementBlock(Fragment, null, renderList(themeList.value, (item) => {
|
|
18576
18992
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
18577
18993
|
key: item.value,
|
|
@@ -18587,7 +19003,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
18587
19003
|
color: "var(--theme-icon-fill-weak)",
|
|
18588
19004
|
class: "checkbox-item-icon"
|
|
18589
19005
|
}, null, 8, ["name"])
|
|
18590
|
-
], 16, _hoisted_3$
|
|
19006
|
+
], 16, _hoisted_3$c);
|
|
18591
19007
|
}), 128))
|
|
18592
19008
|
])
|
|
18593
19009
|
]);
|
|
@@ -18595,8 +19011,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
18595
19011
|
}
|
|
18596
19012
|
});
|
|
18597
19013
|
const _hoisted_1$g = { class: "leading-[16px]" };
|
|
18598
|
-
const _hoisted_2$
|
|
18599
|
-
const _hoisted_3$
|
|
19014
|
+
const _hoisted_2$b = { class: "aside-footer-tools-item-dropdown-item" };
|
|
19015
|
+
const _hoisted_3$b = { class: "aside-footer-tools-item-dropdown-item" };
|
|
18600
19016
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
18601
19017
|
__name: "Settings",
|
|
18602
19018
|
props: {
|
|
@@ -18613,12 +19029,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
18613
19029
|
"overlay-class": "footer-tools-setting-dropdown"
|
|
18614
19030
|
}, {
|
|
18615
19031
|
menu: withCtx(() => [
|
|
18616
|
-
withDirectives(createElementVNode("div", _hoisted_2$
|
|
19032
|
+
withDirectives(createElementVNode("div", _hoisted_2$b, [
|
|
18617
19033
|
createVNode(_sfc_main$k)
|
|
18618
19034
|
], 512), [
|
|
18619
19035
|
[vShow, _ctx.showThemeSetting]
|
|
18620
19036
|
]),
|
|
18621
|
-
withDirectives(createElementVNode("div", _hoisted_3$
|
|
19037
|
+
withDirectives(createElementVNode("div", _hoisted_3$b, [
|
|
18622
19038
|
createVNode(_sfc_main$l)
|
|
18623
19039
|
], 512), [
|
|
18624
19040
|
[vShow, _ctx.showLangSetting]
|
|
@@ -18650,6 +19066,7 @@ const FEEDBACK_CENTER_URL = "https://gitcode.com/Gitcode-offical-team/GitCode-Do
|
|
|
18650
19066
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
18651
19067
|
__name: "SubMenuList",
|
|
18652
19068
|
setup(__props) {
|
|
19069
|
+
const layoutConfig2 = useLayoutConfig();
|
|
18653
19070
|
const { t: t2 } = i18n.global;
|
|
18654
19071
|
const isEn = computed(() => {
|
|
18655
19072
|
return getLocaleLang() === LANG_EN;
|
|
@@ -18659,13 +19076,13 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18659
19076
|
{
|
|
18660
19077
|
name: t2("gitCodeLayout.header.helpDocument"),
|
|
18661
19078
|
icon: "gt-line-file",
|
|
18662
|
-
url:
|
|
19079
|
+
url: currentHelpDocsUrl(),
|
|
18663
19080
|
target: "_blank"
|
|
18664
19081
|
},
|
|
18665
19082
|
{
|
|
18666
19083
|
name: t2("gitCodeLayout.home.feedbackCenter"),
|
|
18667
19084
|
icon: "gt-line-Checks",
|
|
18668
|
-
url: FEEDBACK_CENTER_URL,
|
|
19085
|
+
url: replaceHost({ url: FEEDBACK_CENTER_URL, customHost: layoutConfig2.VITE_HOST }),
|
|
18669
19086
|
target: "_self"
|
|
18670
19087
|
}
|
|
18671
19088
|
];
|
|
@@ -18698,6 +19115,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18698
19115
|
const SubMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
18699
19116
|
const createSetting = () => {
|
|
18700
19117
|
const { t: t2 } = i18n.global;
|
|
19118
|
+
const isGitCodeHost2 = typeof window !== "undefined" && window.location.hostname.includes("gitcode");
|
|
18701
19119
|
const settings = {
|
|
18702
19120
|
slogan: t2("gitCodeLayout.home.slogon"),
|
|
18703
19121
|
copyright: {
|
|
@@ -18708,26 +19126,45 @@ const createSetting = () => {
|
|
|
18708
19126
|
phone: "400-6868-951",
|
|
18709
19127
|
serviceTime: "9:00-18:00",
|
|
18710
19128
|
publicSecurity: t2("gitCodeLayout.common.publicSecurity"),
|
|
19129
|
+
publicSecurity_url: "https://beian.mps.gov.cn/#/query/webSearch?code=11010502055713",
|
|
18711
19130
|
aboutUs: t2("gitCodeLayout.common.aboutUs"),
|
|
18712
19131
|
recruitment: t2("gitCodeLayout.common.recruitment"),
|
|
18713
|
-
price: t2("gitCodeLayout.common.prices")
|
|
19132
|
+
price: t2("gitCodeLayout.common.prices"),
|
|
19133
|
+
beian_url: "https://www.zhipin.com/gongsi/job/b1eccc6dba1cc0d41Hd60tW0GVc~.html?ka=company-jobs"
|
|
18714
19134
|
}
|
|
18715
19135
|
};
|
|
19136
|
+
if (!isGitCodeHost2) {
|
|
19137
|
+
settings.slogan = "";
|
|
19138
|
+
settings.copyright = {
|
|
19139
|
+
digest: (/* @__PURE__ */ new Date()).getFullYear() + " " + t2("gitCodeLayout.home.copyright_atomgit.digest"),
|
|
19140
|
+
digestAbbr: (/* @__PURE__ */ new Date()).getFullYear() + " " + t2("gitCodeLayout.home.copyright_atomgit.companyInformation"),
|
|
19141
|
+
icp: t2("gitCodeLayout.home.copyright_atomgit.recordInformation"),
|
|
19142
|
+
beian: "11010502030143",
|
|
19143
|
+
phone: "400-6868-951",
|
|
19144
|
+
serviceTime: "9:00-18:00",
|
|
19145
|
+
publicSecurity: t2("gitCodeLayout.home.copyright_atomgit.publicSecurity"),
|
|
19146
|
+
publicSecurity_url: "",
|
|
19147
|
+
aboutUs: t2("gitCodeLayout.common.aboutUs"),
|
|
19148
|
+
recruitment: t2("gitCodeLayout.common.recruitment"),
|
|
19149
|
+
price: t2("gitCodeLayout.common.prices"),
|
|
19150
|
+
beian_url: "https://www.zhipin.com/gongsi/job/b1eccc6dba1cc0d41Hd60tW0GVc~.html?ka=company-jobs"
|
|
19151
|
+
};
|
|
19152
|
+
}
|
|
18716
19153
|
return settings;
|
|
18717
19154
|
};
|
|
18718
19155
|
const _hoisted_1$f = { class: "aside-footer" };
|
|
18719
|
-
const _hoisted_2$
|
|
18720
|
-
const _hoisted_3$
|
|
18721
|
-
const _hoisted_4$
|
|
19156
|
+
const _hoisted_2$a = { class: "remake-message mt-[16px]" };
|
|
19157
|
+
const _hoisted_3$a = ["title"];
|
|
19158
|
+
const _hoisted_4$8 = { class: "whitespace-nowrap" };
|
|
18722
19159
|
const _hoisted_5$4 = {
|
|
18723
19160
|
href: "https://beian.miit.gov.cn/#/Integrated/index",
|
|
18724
19161
|
target: "_blank"
|
|
18725
19162
|
};
|
|
18726
|
-
const _hoisted_6$3 = {
|
|
18727
|
-
|
|
18728
|
-
|
|
18729
|
-
target: "_blank"
|
|
19163
|
+
const _hoisted_6$3 = {
|
|
19164
|
+
key: 0,
|
|
19165
|
+
class: "whitespace-nowrap public-security"
|
|
18730
19166
|
};
|
|
19167
|
+
const _hoisted_7$2 = ["href"];
|
|
18731
19168
|
const _hoisted_8$2 = {
|
|
18732
19169
|
href: "https://www.huaweicloud.com/",
|
|
18733
19170
|
target: "_blank",
|
|
@@ -18748,18 +19185,21 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
18748
19185
|
});
|
|
18749
19186
|
return (_ctx, _cache) => {
|
|
18750
19187
|
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
18751
|
-
createElementVNode("div", _hoisted_2$
|
|
19188
|
+
createElementVNode("div", _hoisted_2$a, [
|
|
18752
19189
|
createElementVNode("p", {
|
|
18753
19190
|
class: "break-all whitespace-normal",
|
|
18754
19191
|
title: unref(copyright).digestAbbr
|
|
18755
|
-
}, " © " + toDisplayString$1(unref(copyright).digestAbbr), 9, _hoisted_3$
|
|
18756
|
-
createElementVNode("p", _hoisted_4$
|
|
19192
|
+
}, " © " + toDisplayString$1(unref(copyright).digestAbbr), 9, _hoisted_3$a),
|
|
19193
|
+
createElementVNode("p", _hoisted_4$8, [
|
|
18757
19194
|
createElementVNode("a", _hoisted_5$4, toDisplayString$1(unref(copyright).icp), 1)
|
|
18758
19195
|
]),
|
|
18759
|
-
|
|
19196
|
+
unref(copyright).publicSecurity_url ? (openBlock(), createElementBlock("p", _hoisted_6$3, [
|
|
18760
19197
|
_cache[0] || (_cache[0] = createElementVNode("img", { src: "//g.csdnimg.cn/common/csdn-footer/images/badge.png" }, null, -1)),
|
|
18761
|
-
createElementVNode("a",
|
|
18762
|
-
|
|
19198
|
+
createElementVNode("a", {
|
|
19199
|
+
href: unref(copyright).publicSecurity_url,
|
|
19200
|
+
target: "_blank"
|
|
19201
|
+
}, toDisplayString$1(unref(copyright).publicSecurity), 9, _hoisted_7$2)
|
|
19202
|
+
])) : createCommentVNode("", true)
|
|
18763
19203
|
]),
|
|
18764
19204
|
createElementVNode("p", {
|
|
18765
19205
|
class: normalizeClass(["whitespace-nowrap mt-[16px] support", { en: isEn.value }])
|
|
@@ -18776,23 +19216,23 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
18776
19216
|
createElementVNode("p", _hoisted_9$2, [
|
|
18777
19217
|
createVNode(GLink, {
|
|
18778
19218
|
target: "_blank",
|
|
18779
|
-
href:
|
|
19219
|
+
href: unref(currentHelpDocsAboutUsUrl)()
|
|
18780
19220
|
}, {
|
|
18781
19221
|
default: withCtx(() => [
|
|
18782
19222
|
createTextVNode(toDisplayString$1(unref(copyright).aboutUs), 1)
|
|
18783
19223
|
]),
|
|
18784
19224
|
_: 1
|
|
18785
|
-
}),
|
|
19225
|
+
}, 8, ["href"]),
|
|
18786
19226
|
_cache[3] || (_cache[3] = createTextVNode(" | ")),
|
|
18787
19227
|
createVNode(GLink, {
|
|
18788
19228
|
target: "_blank",
|
|
18789
|
-
href:
|
|
19229
|
+
href: unref(copyright).beian_url
|
|
18790
19230
|
}, {
|
|
18791
19231
|
default: withCtx(() => [
|
|
18792
19232
|
createTextVNode(toDisplayString$1(unref(copyright).recruitment), 1)
|
|
18793
19233
|
]),
|
|
18794
19234
|
_: 1
|
|
18795
|
-
})
|
|
19235
|
+
}, 8, ["href"])
|
|
18796
19236
|
]),
|
|
18797
19237
|
createElementVNode("ul", _hoisted_10$2, [
|
|
18798
19238
|
_cache[4] || (_cache[4] = createElementVNode("li", { class: "flex items-center" }, [
|
|
@@ -18808,12 +19248,12 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
18808
19248
|
});
|
|
18809
19249
|
const ContactInfo = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
18810
19250
|
const _hoisted_1$e = { class: "flex-[1] flex flex-col justify-between min-h-0" };
|
|
18811
|
-
const _hoisted_2$
|
|
18812
|
-
const _hoisted_3$
|
|
19251
|
+
const _hoisted_2$9 = { key: 0 };
|
|
19252
|
+
const _hoisted_3$9 = {
|
|
18813
19253
|
key: 1,
|
|
18814
19254
|
class: "aside-menus"
|
|
18815
19255
|
};
|
|
18816
|
-
const _hoisted_4$
|
|
19256
|
+
const _hoisted_4$7 = {
|
|
18817
19257
|
key: 0,
|
|
18818
19258
|
class: "line mt-[16px] mb-[6px]"
|
|
18819
19259
|
};
|
|
@@ -18937,12 +19377,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
18937
19377
|
onScroll: handleScroll,
|
|
18938
19378
|
onMouseleave: handleMouseLeave
|
|
18939
19379
|
}, [
|
|
18940
|
-
unref(sideLoading) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
19380
|
+
unref(sideLoading) ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
18941
19381
|
createVNode(unref(Skeleton), {
|
|
18942
19382
|
loading: unref(sideLoading),
|
|
18943
19383
|
row: 4
|
|
18944
19384
|
}, null, 8, ["loading"])
|
|
18945
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
19385
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_3$9, [
|
|
18946
19386
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayArea.value, (item, index2) => {
|
|
18947
19387
|
return openBlock(), createElementBlock(Fragment, {
|
|
18948
19388
|
key: item.id
|
|
@@ -18963,7 +19403,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
18963
19403
|
};
|
|
18964
19404
|
})
|
|
18965
19405
|
]), 1032, ["list", "isLogin", "slotKeys", "sceneValue", "asideSetShowLittle"]),
|
|
18966
|
-
!_ctx.asideSetShowLittle && index2 !== displayArea.value.length - 1 ? (openBlock(), createElementBlock("hr", _hoisted_4$
|
|
19406
|
+
!_ctx.asideSetShowLittle && index2 !== displayArea.value.length - 1 ? (openBlock(), createElementBlock("hr", _hoisted_4$7)) : createCommentVNode("", true)
|
|
18967
19407
|
], 64);
|
|
18968
19408
|
}), 128)),
|
|
18969
19409
|
!_ctx.asideSetShowLittle && isModuleVisible(unref(AsideDisplayItem).LINK) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -19016,6 +19456,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19016
19456
|
setup(__props) {
|
|
19017
19457
|
const route = useRoute();
|
|
19018
19458
|
const layoutConfig2 = useLayoutConfig();
|
|
19459
|
+
const { headerHeight: headerHeight2 } = useHeaderHeight();
|
|
19019
19460
|
const props = __props;
|
|
19020
19461
|
const { useReport: useReport2 } = useRequestReport(props.request, props.globalStore);
|
|
19021
19462
|
provide(
|
|
@@ -19032,6 +19473,17 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19032
19473
|
if (route.meta.showBgColor) return true;
|
|
19033
19474
|
return false;
|
|
19034
19475
|
});
|
|
19476
|
+
const logoConfig = getCurrentLogoMap();
|
|
19477
|
+
const logoStyle = computed(() => {
|
|
19478
|
+
const isBlackTheme = currentTheme.value === "black";
|
|
19479
|
+
const logoUrl = isBlackTheme ? logoConfig.siteLogoWhite : logoConfig.siteLogoDark;
|
|
19480
|
+
return {
|
|
19481
|
+
backgroundImage: `url(${logoUrl})`,
|
|
19482
|
+
backgroundRepeat: "no-repeat",
|
|
19483
|
+
backgroundPosition: "0 center",
|
|
19484
|
+
backgroundSize: "contain"
|
|
19485
|
+
};
|
|
19486
|
+
});
|
|
19035
19487
|
const sizeStore = usePageResize();
|
|
19036
19488
|
const asideSetShow = computed(() => {
|
|
19037
19489
|
return (props.sceneValue === SceneValue.home && !sizeStore.isMobile.value || props.collapseMode) && !props.disableFlatMode;
|
|
@@ -19041,7 +19493,6 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19041
19493
|
const isHome = computed(() => {
|
|
19042
19494
|
return props.sceneValue === SceneValue.home && ["home", "issues", "kanban", "discussionCreated", "merge", "dashboard"].includes(route.name);
|
|
19043
19495
|
});
|
|
19044
|
-
usePageResize();
|
|
19045
19496
|
const asideSize = computed(() => {
|
|
19046
19497
|
if (props.collapseMode) {
|
|
19047
19498
|
return ASIDE_MENU_MODE.collapse;
|
|
@@ -19110,8 +19561,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19110
19561
|
return (_ctx, _cache) => {
|
|
19111
19562
|
return asideSetShow.value ? (openBlock(), createBlock(ConfigAideContent, {
|
|
19112
19563
|
key: 0,
|
|
19113
|
-
class: normalizeClass(["left-side-bar", { oldWhite: asideSetShowLittleMode.value }]),
|
|
19114
|
-
style: normalizeStyle({ width: mainMarginLeftWidth.value + "px" }),
|
|
19564
|
+
class: normalizeClass(["left-side-bar", { oldWhite: asideSetShowLittleMode.value, higherZIndex: unref(SITE_STATUS).DISABLE }]),
|
|
19565
|
+
style: normalizeStyle({ width: mainMarginLeftWidth.value + "px", top: unref(headerHeight2) + "px" }),
|
|
19115
19566
|
sceneValue: _ctx.sceneValue,
|
|
19116
19567
|
asideDefaultWidth: mainMarginLeftWidth.value,
|
|
19117
19568
|
asideSetShowLittle: asideSetShowLittleMode.value,
|
|
@@ -19144,10 +19595,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19144
19595
|
default: withCtx(() => [
|
|
19145
19596
|
createElementVNode("div", _hoisted_1$d, [
|
|
19146
19597
|
createVNode(GLink, {
|
|
19147
|
-
class:
|
|
19598
|
+
class: "g-toolbar-left-logo",
|
|
19599
|
+
style: normalizeStyle(logoStyle.value),
|
|
19148
19600
|
to: _ctx.independence ? "" : { name: "home" },
|
|
19149
|
-
href: _ctx.independence ? unref(layoutConfig2).VITE_HOST : ""
|
|
19150
|
-
}, null, 8, ["
|
|
19601
|
+
href: _ctx.independence ? unref(transformUrl)(unref(layoutConfig2).VITE_HOST) : ""
|
|
19602
|
+
}, null, 8, ["style", "to", "href"]),
|
|
19151
19603
|
createVNode(unref(Button), {
|
|
19152
19604
|
class: "cursor-pointer draw-side-bar-close",
|
|
19153
19605
|
icon: "close",
|
|
@@ -19679,9 +20131,9 @@ const headerCustomPropsData = {
|
|
|
19679
20131
|
}
|
|
19680
20132
|
};
|
|
19681
20133
|
const _hoisted_1$c = { class: "home-wrapper" };
|
|
19682
|
-
const _hoisted_2$
|
|
19683
|
-
const _hoisted_3$
|
|
19684
|
-
const _hoisted_4$
|
|
20134
|
+
const _hoisted_2$8 = { class: "home-content" };
|
|
20135
|
+
const _hoisted_3$8 = { class: "home-left-side" };
|
|
20136
|
+
const _hoisted_4$6 = { class: "home-main" };
|
|
19685
20137
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
19686
20138
|
__name: "home",
|
|
19687
20139
|
setup(__props) {
|
|
@@ -19771,8 +20223,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
19771
20223
|
onFollowDevCommunity: followDevCommunity,
|
|
19772
20224
|
onFollowUser: followUser
|
|
19773
20225
|
}, null, 8, ["sceneValue", "independence", "isLogin", "request", "globalStore", "userInfo", "repoInfo", "orgInfo", "otherUserInfo", "headerCustomProps"]),
|
|
19774
|
-
createElementVNode("div", _hoisted_2$
|
|
19775
|
-
createElementVNode("div", _hoisted_3$
|
|
20226
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
20227
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
19776
20228
|
createVNode(GitCodeAside, {
|
|
19777
20229
|
sceneValue: sceneSelected.value,
|
|
19778
20230
|
userInfo: userInfo.value,
|
|
@@ -19781,7 +20233,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
19781
20233
|
globalStore: globalStore.value,
|
|
19782
20234
|
independence: independence.value,
|
|
19783
20235
|
slotKeys: ["home", "issues"],
|
|
19784
|
-
collapseMode: sceneSelected.value == unref(SceneValue).repo
|
|
20236
|
+
collapseMode: sceneSelected.value == unref(SceneValue).repo,
|
|
20237
|
+
showLangSetting: "",
|
|
20238
|
+
showThemeSetting: ""
|
|
19785
20239
|
}, {
|
|
19786
20240
|
home: withCtx(() => _cache[2] || (_cache[2] = [
|
|
19787
20241
|
createElementVNode("div", null, "首页hover-插槽", -1)
|
|
@@ -19792,7 +20246,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
19792
20246
|
_: 1
|
|
19793
20247
|
}, 8, ["sceneValue", "userInfo", "isLogin", "request", "globalStore", "independence", "collapseMode"])
|
|
19794
20248
|
]),
|
|
19795
|
-
createElementVNode("div", _hoisted_4$
|
|
20249
|
+
createElementVNode("div", _hoisted_4$6, [
|
|
19796
20250
|
_cache[6] || (_cache[6] = createElementVNode("h1", null, "控制 Header 值传入", -1)),
|
|
19797
20251
|
_cache[7] || (_cache[7] = createElementVNode("h2", null, "场景值 SceneValue", -1)),
|
|
19798
20252
|
createVNode(unref(RadioGroup), {
|
|
@@ -20290,9 +20744,13 @@ async function checkUserRepositoryIssue(API, isRegister = false) {
|
|
|
20290
20744
|
async function successResolve(params, API, isRegister = false) {
|
|
20291
20745
|
var _a;
|
|
20292
20746
|
const { path, userInfo, type, loginMethod } = params;
|
|
20747
|
+
const transformUserInfo = {
|
|
20748
|
+
...userInfo,
|
|
20749
|
+
avatar: transformUrl(userInfo == null ? void 0 : userInfo.avatar)
|
|
20750
|
+
};
|
|
20293
20751
|
if (userInfo) {
|
|
20294
|
-
emitEvent("updateUserInfo",
|
|
20295
|
-
const { username, email } =
|
|
20752
|
+
emitEvent("updateUserInfo", transformUserInfo);
|
|
20753
|
+
const { username, email } = transformUserInfo;
|
|
20296
20754
|
setEmailValid(username, email);
|
|
20297
20755
|
}
|
|
20298
20756
|
saveLastLoginType(loginMethod);
|
|
@@ -20673,9 +21131,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
20673
21131
|
}
|
|
20674
21132
|
});
|
|
20675
21133
|
const _hoisted_1$9 = { class: "flex flex-1 g-input-select" };
|
|
20676
|
-
const _hoisted_2$
|
|
20677
|
-
const _hoisted_3$
|
|
20678
|
-
const _hoisted_4$
|
|
21134
|
+
const _hoisted_2$7 = { class: "login-phone" };
|
|
21135
|
+
const _hoisted_3$7 = { class: "flex justify-between gap-[8px] flex-wrap" };
|
|
21136
|
+
const _hoisted_4$5 = { class: "flex items-center justify-between" };
|
|
20679
21137
|
const _hoisted_5$3 = { class: "flex justify-between gap-[8px] flex-wrap" };
|
|
20680
21138
|
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
20681
21139
|
__name: "inputSelect",
|
|
@@ -20751,7 +21209,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
20751
21209
|
});
|
|
20752
21210
|
return (_ctx, _cache) => {
|
|
20753
21211
|
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
20754
|
-
createElementVNode("div", _hoisted_2$
|
|
21212
|
+
createElementVNode("div", _hoisted_2$7, [
|
|
20755
21213
|
(props == null ? void 0 : props.editableSelect) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
20756
21214
|
createVNode(unref(Select), {
|
|
20757
21215
|
class: "login-country-select",
|
|
@@ -20768,7 +21226,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
20768
21226
|
value: item.value
|
|
20769
21227
|
}, {
|
|
20770
21228
|
default: withCtx(() => [
|
|
20771
|
-
createElementVNode("div", _hoisted_3$
|
|
21229
|
+
createElementVNode("div", _hoisted_3$7, [
|
|
20772
21230
|
createElementVNode("span", null, toDisplayString$1(item.name), 1),
|
|
20773
21231
|
createElementVNode("span", null, toDisplayString$1(item.label), 1)
|
|
20774
21232
|
])
|
|
@@ -20792,7 +21250,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
20792
21250
|
class: "login-phone-select"
|
|
20793
21251
|
}), {
|
|
20794
21252
|
item: withCtx((slotProps) => [
|
|
20795
|
-
createElementVNode("div", _hoisted_4$
|
|
21253
|
+
createElementVNode("div", _hoisted_4$5, [
|
|
20796
21254
|
createElementVNode("div", null, toDisplayString$1(slotProps.option.label), 1),
|
|
20797
21255
|
createVNode(GIcon, {
|
|
20798
21256
|
name: "gt-line-delete",
|
|
@@ -21145,9 +21603,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
21145
21603
|
});
|
|
21146
21604
|
const recentLoginImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAoCAYAAAAIeF9DAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAfgSURBVHgB7ZtLbFRlFMfPnU4LhbaMgAJCdJpYImwoK7vgMSwkGDckQgwrARduJNREE4nykhhJMKGNblxIuzOEElcGAptiWeCKuoFIMYykCEoLpQ9eZWY8v9v52tvbOzP33mlLDPefTDtzn993/uf8z/nO3LGkDNxIphJPRVIxyW7MipXUTY0xySVyIgl5gWCJDOTESuu80yK532MS62xId3ZKCFgSAj3JVConuYOW5BpfNOMHQFrN21kp1uH6dGfa70mBCPkjmdqqJBxXL0hKhACw2v0S44sQlabkqOTalIiURAiLtNrv8Mp0V3uxg2JSAn8mN+x9JtnLERllI6n+33YtueF4sYOKRkhPcsNBzRGHJMI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HV7leAg7IuT5otX98HVEyHOD1b0y/Wuze2tEyHOB/UOeTV57Qq/UI4SGytSF5kI7owiZJfA7RJ7j9ZIpJ6IImR20xiV2qMHj9yBuRITMEMYiQlqrJNZS74MIg4iQacCY8a0B1X9tZ2e1R1PRHfZn0f8BoszztTsf3m0AAAAASUVORK5CYII=";
|
|
21147
21605
|
const _hoisted_1$8 = { class: "auth-container" };
|
|
21148
|
-
const _hoisted_2$
|
|
21149
|
-
const _hoisted_3$
|
|
21150
|
-
const _hoisted_4$
|
|
21606
|
+
const _hoisted_2$6 = { class: "tips text-[var(--devui-disabled-text)]" };
|
|
21607
|
+
const _hoisted_3$6 = { class: "icons" };
|
|
21608
|
+
const _hoisted_4$4 = ["src", "alt", "onClick"];
|
|
21151
21609
|
const _hoisted_5$2 = { class: "w-[50px] h-[20px] recent-login-img" };
|
|
21152
21610
|
const _hoisted_6$2 = ["src"];
|
|
21153
21611
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
@@ -21172,8 +21630,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
21172
21630
|
};
|
|
21173
21631
|
return (_ctx, _cache) => {
|
|
21174
21632
|
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
21175
|
-
createElementVNode("div", _hoisted_2$
|
|
21176
|
-
createElementVNode("div", _hoisted_3$
|
|
21633
|
+
createElementVNode("div", _hoisted_2$6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.otherLogin")), 1),
|
|
21634
|
+
createElementVNode("div", _hoisted_3$6, [
|
|
21177
21635
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.logos, (icon) => {
|
|
21178
21636
|
return openBlock(), createElementBlock("div", {
|
|
21179
21637
|
key: icon.alt,
|
|
@@ -21190,7 +21648,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
21190
21648
|
src: icon.src,
|
|
21191
21649
|
alt: icon.alt,
|
|
21192
21650
|
onClick: withModifiers(($event) => handleClick(icon), ["stop"])
|
|
21193
|
-
}, null, 8, _hoisted_4$
|
|
21651
|
+
}, null, 8, _hoisted_4$4)
|
|
21194
21652
|
]),
|
|
21195
21653
|
_: 2
|
|
21196
21654
|
}, 1032, ["content", "disabled"]),
|
|
@@ -21209,91 +21667,131 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
21209
21667
|
}
|
|
21210
21668
|
});
|
|
21211
21669
|
const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
21212
|
-
const _hoisted_1$7 = { class: "
|
|
21213
|
-
const _hoisted_2$
|
|
21670
|
+
const _hoisted_1$7 = { class: "flex-col items-center" };
|
|
21671
|
+
const _hoisted_2$5 = { class: "text-[var(--theme-placeholder)]" };
|
|
21672
|
+
const _hoisted_3$5 = { class: "text-[var(--theme-placeholder)]" };
|
|
21673
|
+
const _hoisted_4$3 = { class: "text-[var(--theme-placeholder)]" };
|
|
21214
21674
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
21215
21675
|
__name: "agreement",
|
|
21216
21676
|
props: {
|
|
21217
21677
|
modelValue: { type: Boolean },
|
|
21218
|
-
|
|
21678
|
+
dataShareChecked: { type: Boolean }
|
|
21219
21679
|
},
|
|
21220
|
-
emits: ["update:modelValue", "
|
|
21680
|
+
emits: ["declares", "update:modelValue", "update:dataShareChecked"],
|
|
21221
21681
|
setup(__props, { emit: __emit }) {
|
|
21222
21682
|
const { t: $t } = i18n.global;
|
|
21223
|
-
const props = __props;
|
|
21224
21683
|
const emits = __emit;
|
|
21225
|
-
const { vModels } = useModel(props, emits);
|
|
21226
21684
|
const handleClick = (type) => {
|
|
21227
21685
|
emits("declares", type);
|
|
21228
21686
|
};
|
|
21687
|
+
const dataShareName = computed(() => {
|
|
21688
|
+
var _a, _b;
|
|
21689
|
+
if ((_b = (_a = window == null ? void 0 : window.location) == null ? void 0 : _a.host) == null ? void 0 : _b.includes("gitcode")) {
|
|
21690
|
+
return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "AtomGit" });
|
|
21691
|
+
} else {
|
|
21692
|
+
return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "GitCode" });
|
|
21693
|
+
}
|
|
21694
|
+
});
|
|
21229
21695
|
return (_ctx, _cache) => {
|
|
21230
|
-
return openBlock(),
|
|
21231
|
-
|
|
21232
|
-
|
|
21233
|
-
|
|
21234
|
-
|
|
21235
|
-
|
|
21236
|
-
|
|
21237
|
-
|
|
21238
|
-
|
|
21239
|
-
|
|
21240
|
-
|
|
21241
|
-
|
|
21242
|
-
|
|
21243
|
-
|
|
21244
|
-
|
|
21245
|
-
|
|
21246
|
-
|
|
21247
|
-
|
|
21248
|
-
|
|
21696
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
21697
|
+
createVNode(unref(Checkbox), {
|
|
21698
|
+
"model-value": _ctx.modelValue,
|
|
21699
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = (val) => emits("update:modelValue", val)),
|
|
21700
|
+
size: "sm"
|
|
21701
|
+
}, {
|
|
21702
|
+
default: withCtx(() => [
|
|
21703
|
+
createElementVNode("span", _hoisted_2$5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.agree")), 1),
|
|
21704
|
+
createElementVNode("span", {
|
|
21705
|
+
class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
|
|
21706
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
|
|
21707
|
+
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 1),
|
|
21708
|
+
createElementVNode("span", _hoisted_3$5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
|
|
21709
|
+
createElementVNode("span", {
|
|
21710
|
+
class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
|
|
21711
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
|
|
21712
|
+
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 1)
|
|
21713
|
+
]),
|
|
21714
|
+
_: 1
|
|
21715
|
+
}, 8, ["model-value"]),
|
|
21716
|
+
createVNode(unref(Checkbox), {
|
|
21717
|
+
"model-value": _ctx.dataShareChecked,
|
|
21718
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = (val) => emits("update:dataShareChecked", val)),
|
|
21719
|
+
size: "sm"
|
|
21720
|
+
}, {
|
|
21721
|
+
default: withCtx(() => [
|
|
21722
|
+
createElementVNode("span", _hoisted_4$3, toDisplayString$1(dataShareName.value), 1)
|
|
21723
|
+
]),
|
|
21724
|
+
_: 1
|
|
21725
|
+
}, 8, ["model-value"])
|
|
21726
|
+
]);
|
|
21249
21727
|
};
|
|
21250
21728
|
}
|
|
21251
21729
|
});
|
|
21252
21730
|
const _hoisted_1$6 = { class: "text-[var(--devui-aide-text)] text-[12px]" };
|
|
21731
|
+
const _hoisted_2$4 = { class: "text-[var(--devui-aide-text)]" };
|
|
21732
|
+
const _hoisted_3$4 = { class: "text-[var(--devui-aide-text)] text-[12px]" };
|
|
21253
21733
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
21254
21734
|
__name: "agreements",
|
|
21255
21735
|
props: {
|
|
21256
21736
|
modelValue: { type: Boolean },
|
|
21257
|
-
|
|
21258
|
-
privacyText: {},
|
|
21259
|
-
"onUpdate:modelValue": { type: Function }
|
|
21737
|
+
dataShareChecked: { type: Boolean }
|
|
21260
21738
|
},
|
|
21261
|
-
emits: ["update:modelValue", "
|
|
21739
|
+
emits: ["declares", "update:modelValue", "update:dataShareChecked"],
|
|
21262
21740
|
setup(__props, { emit: __emit }) {
|
|
21263
21741
|
const { t: $t } = i18n.global;
|
|
21264
|
-
const props = __props;
|
|
21265
21742
|
const emits = __emit;
|
|
21266
|
-
const { vModels } = useModel(props, emits);
|
|
21267
21743
|
const handleClick = (type) => {
|
|
21268
21744
|
emits("declares", type);
|
|
21269
21745
|
};
|
|
21746
|
+
const dataShareName = computed(() => {
|
|
21747
|
+
var _a, _b;
|
|
21748
|
+
if ((_b = (_a = window == null ? void 0 : window.location) == null ? void 0 : _a.host) == null ? void 0 : _b.includes("gitcode")) {
|
|
21749
|
+
return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "AtomGit" });
|
|
21750
|
+
} else {
|
|
21751
|
+
return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "GitCode" });
|
|
21752
|
+
}
|
|
21753
|
+
});
|
|
21270
21754
|
return (_ctx, _cache) => {
|
|
21271
|
-
return openBlock(),
|
|
21272
|
-
|
|
21273
|
-
|
|
21274
|
-
|
|
21275
|
-
|
|
21276
|
-
|
|
21277
|
-
|
|
21278
|
-
|
|
21279
|
-
|
|
21280
|
-
|
|
21281
|
-
|
|
21282
|
-
|
|
21283
|
-
|
|
21284
|
-
|
|
21285
|
-
|
|
21286
|
-
|
|
21287
|
-
|
|
21288
|
-
|
|
21289
|
-
|
|
21290
|
-
|
|
21755
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
21756
|
+
createVNode(unref(Checkbox), {
|
|
21757
|
+
"model-value": _ctx.modelValue,
|
|
21758
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = (val) => emits("update:modelValue", val)),
|
|
21759
|
+
size: "sm",
|
|
21760
|
+
class: "mt-[6px] agree-module flex items-center"
|
|
21761
|
+
}, {
|
|
21762
|
+
default: withCtx(() => [
|
|
21763
|
+
createElementVNode("span", _hoisted_1$6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.readAgree")), 1),
|
|
21764
|
+
createElementVNode("a", {
|
|
21765
|
+
class: "text-[var(--devui-link)] cursor-pointer mx-[1px] text-[12px]",
|
|
21766
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
|
|
21767
|
+
}, toDisplayString$1("《" + unref($t)("gitCodeLayout.LoginModal.link.agreement") + "》"), 1),
|
|
21768
|
+
createElementVNode("span", _hoisted_2$4, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
|
|
21769
|
+
createElementVNode("a", {
|
|
21770
|
+
class: "text-[var(--devui-link)] cursor-pointer mx-[1px] text-[12px]",
|
|
21771
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
|
|
21772
|
+
}, toDisplayString$1("《" + unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy") + "》"), 1),
|
|
21773
|
+
renderSlot(_ctx.$slots, "default")
|
|
21774
|
+
]),
|
|
21775
|
+
_: 3
|
|
21776
|
+
}, 8, ["model-value"]),
|
|
21777
|
+
createVNode(unref(Checkbox), {
|
|
21778
|
+
"model-value": _ctx.dataShareChecked,
|
|
21779
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = (val) => emits("update:dataShareChecked", val)),
|
|
21780
|
+
size: "sm",
|
|
21781
|
+
class: "mb-[12px]"
|
|
21782
|
+
}, {
|
|
21783
|
+
default: withCtx(() => [
|
|
21784
|
+
createElementVNode("span", _hoisted_3$4, toDisplayString$1(dataShareName.value), 1)
|
|
21785
|
+
]),
|
|
21786
|
+
_: 1
|
|
21787
|
+
}, 8, ["model-value"])
|
|
21788
|
+
], 64);
|
|
21291
21789
|
};
|
|
21292
21790
|
}
|
|
21293
21791
|
});
|
|
21294
21792
|
const _hoisted_1$5 = { class: "text-center text-[18px] leading-[26px] font-bold mb-[24px] flex items-center justify-center relative" };
|
|
21295
21793
|
const _hoisted_2$3 = { class: "back-img absolute mr-[24px] left-0" };
|
|
21296
|
-
const _hoisted_3$
|
|
21794
|
+
const _hoisted_3$3 = ["src"];
|
|
21297
21795
|
const _hoisted_4$2 = {
|
|
21298
21796
|
key: 0,
|
|
21299
21797
|
class: "tracking-[.5px]"
|
|
@@ -21320,7 +21818,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
21320
21818
|
src: _ctx.icon,
|
|
21321
21819
|
class: "w-[24px] cursor-pointer",
|
|
21322
21820
|
onClick: withModifiers(handleClick, ["stop"])
|
|
21323
|
-
}, null, 8, _hoisted_3$
|
|
21821
|
+
}, null, 8, _hoisted_3$3)) : createCommentVNode("", true)
|
|
21324
21822
|
]),
|
|
21325
21823
|
_ctx.showTitle ? (openBlock(), createElementBlock("span", _hoisted_4$2, toDisplayString$1(_ctx.title), 1)) : createCommentVNode("", true)
|
|
21326
21824
|
]);
|
|
@@ -23653,14 +24151,17 @@ const isMobileEmail = (val) => {
|
|
|
23653
24151
|
return t$1("gitCodeLayout.common.phone") + "/" + t$1("gitCodeLayout.common.email");
|
|
23654
24152
|
};
|
|
23655
24153
|
const _hoisted_1$4 = { class: "modal-body" };
|
|
23656
|
-
const _hoisted_2$2 = { class: "
|
|
24154
|
+
const _hoisted_2$2 = { class: "text-[13px]" };
|
|
24155
|
+
const _hoisted_3$2 = { class: "flex items-center justify-end px-[24px] pb-[24px]" };
|
|
23657
24156
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
23658
24157
|
__name: "loginCheckModal",
|
|
23659
|
-
props: {
|
|
24158
|
+
props: /* @__PURE__ */ mergeModels({
|
|
24159
|
+
dataShareChecked: { type: Boolean }
|
|
24160
|
+
}, {
|
|
23660
24161
|
"visible": { type: Boolean },
|
|
23661
24162
|
"visibleModifiers": {}
|
|
23662
|
-
},
|
|
23663
|
-
emits: /* @__PURE__ */ mergeModels(["declares", "confirm"], ["update:visible"]),
|
|
24163
|
+
}),
|
|
24164
|
+
emits: /* @__PURE__ */ mergeModels(["declares", "confirm", "update:dataShareChecked"], ["update:visible"]),
|
|
23664
24165
|
setup(__props, { emit: __emit }) {
|
|
23665
24166
|
const { t: $t } = i18n.global;
|
|
23666
24167
|
const visible = useModel$1(__props, "visible");
|
|
@@ -23671,20 +24172,28 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
23671
24172
|
const handleConfirm = () => {
|
|
23672
24173
|
emits("confirm");
|
|
23673
24174
|
};
|
|
24175
|
+
const dataShareName = computed(() => {
|
|
24176
|
+
var _a;
|
|
24177
|
+
if ((_a = window == null ? void 0 : window.location) == null ? void 0 : _a.host.includes("gitcode")) {
|
|
24178
|
+
return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "AtomGit" });
|
|
24179
|
+
} else {
|
|
24180
|
+
return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "GitCode" });
|
|
24181
|
+
}
|
|
24182
|
+
});
|
|
23674
24183
|
const close = () => {
|
|
23675
24184
|
visible.value = false;
|
|
23676
24185
|
};
|
|
23677
24186
|
return (_ctx, _cache) => {
|
|
23678
24187
|
return openBlock(), createBlock(unref(Modal), {
|
|
23679
24188
|
modelValue: visible.value,
|
|
23680
|
-
"onUpdate:modelValue": _cache[
|
|
24189
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => visible.value = $event),
|
|
23681
24190
|
"close-on-click-overlay": false,
|
|
23682
24191
|
"show-overlay": true,
|
|
23683
24192
|
class: "second-sure-proto",
|
|
23684
24193
|
title: unref($t)("gitCodeLayout.LoginModal.subtitle.useAgrAndPriPolTip")
|
|
23685
24194
|
}, {
|
|
23686
24195
|
footer: withCtx(() => [
|
|
23687
|
-
createElementVNode("div",
|
|
24196
|
+
createElementVNode("div", _hoisted_3$2, [
|
|
23688
24197
|
createVNode(unref(Button), {
|
|
23689
24198
|
class: "mr-2",
|
|
23690
24199
|
onClick: close
|
|
@@ -23697,13 +24206,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
23697
24206
|
createVNode(unref(Button), {
|
|
23698
24207
|
variant: "solid",
|
|
23699
24208
|
class: "w-[126px]",
|
|
24209
|
+
disabled: !_ctx.dataShareChecked,
|
|
23700
24210
|
onClick: handleConfirm
|
|
23701
24211
|
}, {
|
|
23702
24212
|
default: withCtx(() => [
|
|
23703
24213
|
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.agrAndSigIn")), 1)
|
|
23704
24214
|
]),
|
|
23705
24215
|
_: 1
|
|
23706
|
-
})
|
|
24216
|
+
}, 8, ["disabled"])
|
|
23707
24217
|
])
|
|
23708
24218
|
]),
|
|
23709
24219
|
default: withCtx(() => [
|
|
@@ -23719,9 +24229,22 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
23719
24229
|
class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
|
|
23720
24230
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
|
|
23721
24231
|
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 1),
|
|
23722
|
-
createTextVNode(
|
|
24232
|
+
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.toUseGit")), 1)
|
|
24233
|
+
]),
|
|
24234
|
+
createElementVNode("div", null, [
|
|
24235
|
+
createElementVNode("span", null, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.ifYouDoNotAgrWe")), 1)
|
|
23723
24236
|
]),
|
|
23724
|
-
|
|
24237
|
+
createVNode(unref(Checkbox), {
|
|
24238
|
+
"model-value": _ctx.dataShareChecked,
|
|
24239
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = (val) => emits("update:dataShareChecked", val)),
|
|
24240
|
+
size: "sm",
|
|
24241
|
+
class: "mt-[12px]"
|
|
24242
|
+
}, {
|
|
24243
|
+
default: withCtx(() => [
|
|
24244
|
+
createElementVNode("span", _hoisted_2$2, toDisplayString$1(dataShareName.value), 1)
|
|
24245
|
+
]),
|
|
24246
|
+
_: 1
|
|
24247
|
+
}, 8, ["model-value"])
|
|
23725
24248
|
])
|
|
23726
24249
|
]),
|
|
23727
24250
|
_: 1
|
|
@@ -23729,7 +24252,6 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
23729
24252
|
};
|
|
23730
24253
|
}
|
|
23731
24254
|
});
|
|
23732
|
-
const GIT_CODE_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/0EZHS/y4IJfWF+rB0s/1CLQpcEXGanDWp5be2chSe1SwCDMVvzc+cEy3PN+Tvfd+ka5WeT9f17VVyz8TPzFrP2KNNYGFQTc2cA+h2GikRuCt5izrkQD44xbNBDJTpKbfR4U18qF4kMTWMxM/zmC3JWDR79VWAj+siRyCbRZtkg3JHvj0lM5D31f1dQQF6y1zoKORJZplXLXMSsg33YcDy4BTzElRxFszoSqaazmHOMqJ/4rtHlTxRxJOJDMDHn8CSNX3C9rzB61CYAxESQnfO8ap6OuQEviotEbgTBxVyGQzOpYy6uMR8XVtksoP4i0UuFrcW42iaOF0cikUgkEolEIs34P3h7TBmol5dNAAAAAElFTkSuQmCC";
|
|
23733
24255
|
const _hoisted_1$3 = { class: "mfa" };
|
|
23734
24256
|
const _hoisted_2$1 = ["src"];
|
|
23735
24257
|
const _hoisted_3$1 = { class: "text-[20px] font-[600] mb-[8px]" };
|
|
@@ -23757,7 +24279,6 @@ const _hoisted_9$1 = {
|
|
|
23757
24279
|
const _hoisted_10$1 = { class: "my-[32px]" };
|
|
23758
24280
|
const _hoisted_11$1 = { class: "flex items-center justify-between" };
|
|
23759
24281
|
const _hoisted_12$1 = { class: "cursor-pointer" };
|
|
23760
|
-
const GIT_CODE_LOGO_BLACK = "https://cdn-static.gitcode.com/static/images/gitcode-logo-dark.png";
|
|
23761
24282
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
23762
24283
|
__name: "MFA",
|
|
23763
24284
|
props: {
|
|
@@ -23767,11 +24288,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
23767
24288
|
},
|
|
23768
24289
|
emits: ["success", "back", "fail"],
|
|
23769
24290
|
setup(__props, { emit: __emit }) {
|
|
24291
|
+
const logoConfig = getCurrentLogoMap();
|
|
23770
24292
|
const currentLogo = computed(() => {
|
|
23771
|
-
|
|
23772
|
-
return GIT_CODE_LOGO_WHITE;
|
|
23773
|
-
}
|
|
23774
|
-
return GIT_CODE_LOGO_BLACK;
|
|
24293
|
+
return currentTheme.value === ThemeType.BLACK ? logoConfig.siteLogoWhite : logoConfig.siteLogoDark;
|
|
23775
24294
|
});
|
|
23776
24295
|
const { t: t2 } = i18n.global;
|
|
23777
24296
|
const emits = __emit;
|
|
@@ -23990,7 +24509,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
23990
24509
|
}
|
|
23991
24510
|
});
|
|
23992
24511
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
23993
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
24512
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-Bmrl92GJ.js"));
|
|
23994
24513
|
const useSlidCaptcha = () => {
|
|
23995
24514
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
23996
24515
|
const open = (config) => {
|
|
@@ -24009,7 +24528,7 @@ const useSlidCaptcha = () => {
|
|
|
24009
24528
|
close: unMount
|
|
24010
24529
|
};
|
|
24011
24530
|
};
|
|
24012
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
24531
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-DSR-pbwA.js"));
|
|
24013
24532
|
const useYunpianCaptcha = () => {
|
|
24014
24533
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
24015
24534
|
const open = (config) => {
|
|
@@ -24084,8 +24603,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
24084
24603
|
}
|
|
24085
24604
|
});
|
|
24086
24605
|
const DataPanel = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
24087
|
-
const AiLogoDark = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQgAAAAwCAYAAADtqOSLAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA98SURBVHgB7V1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|
24090
24607
|
const { interval = 1e4, immediate = true } = options;
|
|
24091
24608
|
const timer = ref(null);
|
|
@@ -24177,46 +24694,45 @@ const _hoisted_21 = { key: 2 };
|
|
|
24177
24694
|
const _hoisted_22 = { class: "flex items-center justify-between" };
|
|
24178
24695
|
const _hoisted_23 = { class: "text-[var(--devui-text-weak)] font-bold text-[16px]" };
|
|
24179
24696
|
const _hoisted_24 = { class: "text-[12px] leading-[32px]" };
|
|
24180
|
-
const _hoisted_25 = { class: "
|
|
24181
|
-
const _hoisted_26 = { class: "
|
|
24182
|
-
const _hoisted_27 =
|
|
24183
|
-
const _hoisted_28 =
|
|
24184
|
-
const _hoisted_29 = {
|
|
24697
|
+
const _hoisted_25 = { class: "qrcode-container flex flex-col items-center justify-center" };
|
|
24698
|
+
const _hoisted_26 = { class: "flex flex-col items-center justify-center w-[180px] h-[180px] relative" };
|
|
24699
|
+
const _hoisted_27 = ["src"];
|
|
24700
|
+
const _hoisted_28 = {
|
|
24185
24701
|
key: 0,
|
|
24186
24702
|
class: "mask"
|
|
24187
24703
|
};
|
|
24188
|
-
const
|
|
24189
|
-
const
|
|
24190
|
-
const
|
|
24191
|
-
const
|
|
24704
|
+
const _hoisted_29 = { class: "flex gap-1 items-center justify-center text-[16px] flex-wrap font-medium" };
|
|
24705
|
+
const _hoisted_30 = { class: "text-[#252B3A]" };
|
|
24706
|
+
const _hoisted_31 = { class: "text-[var(--theme-link)]" };
|
|
24707
|
+
const _hoisted_32 = {
|
|
24192
24708
|
key: 1,
|
|
24193
24709
|
class: "flex flex-col gap-3 items-center justify-center"
|
|
24194
24710
|
};
|
|
24195
|
-
const
|
|
24196
|
-
const
|
|
24197
|
-
const
|
|
24711
|
+
const _hoisted_33 = { class: "text-[var(--color-success)]" };
|
|
24712
|
+
const _hoisted_34 = { class: "text-center" };
|
|
24713
|
+
const _hoisted_35 = {
|
|
24198
24714
|
key: 0,
|
|
24199
24715
|
class: "text-center text-[16px] mt-[40px] text-[var(--devui-text-weak)] font-bold"
|
|
24200
24716
|
};
|
|
24201
|
-
const
|
|
24717
|
+
const _hoisted_36 = {
|
|
24202
24718
|
key: 0,
|
|
24203
24719
|
class: "login-modal-info h-[20px]"
|
|
24204
24720
|
};
|
|
24205
|
-
const
|
|
24206
|
-
const
|
|
24721
|
+
const _hoisted_37 = { class: "login-modal-info-left" };
|
|
24722
|
+
const _hoisted_38 = {
|
|
24207
24723
|
key: 0,
|
|
24208
24724
|
class: "mt-[18px]"
|
|
24209
24725
|
};
|
|
24210
|
-
const
|
|
24211
|
-
const
|
|
24212
|
-
const
|
|
24213
|
-
const
|
|
24214
|
-
const
|
|
24215
|
-
const
|
|
24216
|
-
const
|
|
24217
|
-
const
|
|
24218
|
-
const
|
|
24219
|
-
const
|
|
24726
|
+
const _hoisted_39 = { class: "flex justify-center" };
|
|
24727
|
+
const _hoisted_40 = { class: "flex items-center justify-center pr-[16px] mt-[16px]" };
|
|
24728
|
+
const _hoisted_41 = { class: "harmony-icon" };
|
|
24729
|
+
const _hoisted_42 = { class: "w-[50px] h-[20px] last-login-img" };
|
|
24730
|
+
const _hoisted_43 = ["src"];
|
|
24731
|
+
const _hoisted_44 = { class: "ml-[8px] text-[12px]" };
|
|
24732
|
+
const _hoisted_45 = { class: "login-modal-footer flex items-center justify-center" };
|
|
24733
|
+
const _hoisted_46 = { key: 2 };
|
|
24734
|
+
const _hoisted_47 = { class: "line-clamp-2" };
|
|
24735
|
+
const _hoisted_48 = { class: "absolute-btn" };
|
|
24220
24736
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
24221
24737
|
...{
|
|
24222
24738
|
name: "GLoginModal"
|
|
@@ -24265,13 +24781,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24265
24781
|
const IconW = TransAssetsUrl(IconSource, "logo-wechat");
|
|
24266
24782
|
const IconHb = TransAssetsUrl(IconSource, "logo-hb");
|
|
24267
24783
|
const IconHW = TransAssetsUrl(IconSource, "logo-huawei");
|
|
24784
|
+
const logoConfig = getCurrentLogoMap();
|
|
24268
24785
|
const logoType = {
|
|
24269
|
-
black:
|
|
24270
|
-
white:
|
|
24786
|
+
black: logoConfig.siteLogoWhite,
|
|
24787
|
+
white: logoConfig.siteLogoDark
|
|
24271
24788
|
};
|
|
24272
24789
|
const AiLogoType = {
|
|
24273
|
-
black:
|
|
24274
|
-
white:
|
|
24790
|
+
black: logoConfig.aiLogoWhite,
|
|
24791
|
+
white: logoConfig.aiLogoDark
|
|
24275
24792
|
};
|
|
24276
24793
|
const formErrors = reactive({});
|
|
24277
24794
|
const extraErrors = reactive({
|
|
@@ -24551,7 +25068,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24551
25068
|
...VerifyPassword
|
|
24552
25069
|
]);
|
|
24553
25070
|
const status = ref(false);
|
|
24554
|
-
const
|
|
25071
|
+
const dataShareChecked = ref(false);
|
|
25072
|
+
ref(true);
|
|
24555
25073
|
const FormRef = shallowRef(null);
|
|
24556
25074
|
const tabPanel = ref("miniProgram");
|
|
24557
25075
|
const formType = ref(props.defaultType);
|
|
@@ -24685,13 +25203,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24685
25203
|
const slidCaptcha = useSlidCaptcha();
|
|
24686
25204
|
const yunpianCaptcha = useYunpianCaptcha();
|
|
24687
25205
|
const LoginCheck = async () => {
|
|
24688
|
-
const formData = await FormRef.value.ValidateForm();
|
|
24689
25206
|
let agreementFlag = false;
|
|
24690
|
-
if (
|
|
24691
|
-
extraErrors.agreement = $t("gitCodeLayout.
|
|
24692
|
-
agreementFlag = true;
|
|
24693
|
-
}
|
|
24694
|
-
if (!status.value && !agreementFlag) {
|
|
25207
|
+
if (!status.value || !dataShareChecked.value) {
|
|
25208
|
+
extraErrors.agreement = $t("gitCodeLayout.common.tips.agreementTip");
|
|
24695
25209
|
agreementFlag = true;
|
|
24696
25210
|
showProtoCheck.value = true;
|
|
24697
25211
|
}
|
|
@@ -24702,6 +25216,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24702
25216
|
}, 500);
|
|
24703
25217
|
return false;
|
|
24704
25218
|
}
|
|
25219
|
+
const formData = await FormRef.value.ValidateForm();
|
|
24705
25220
|
extraErrors.agreement = "";
|
|
24706
25221
|
if (formData.type === "success") {
|
|
24707
25222
|
clearFormError();
|
|
@@ -24835,8 +25350,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24835
25350
|
}
|
|
24836
25351
|
};
|
|
24837
25352
|
const links = {
|
|
24838
|
-
agreement: "
|
|
24839
|
-
privacy: "
|
|
25353
|
+
agreement: currentHelpDocsUrl() + "/docs/help/home/protocol/terms-of-service",
|
|
25354
|
+
privacy: currentHelpDocsUrl() + "/docs/help/home/protocol/privacy-policy"
|
|
24840
25355
|
};
|
|
24841
25356
|
const links_hw = {
|
|
24842
25357
|
agreement: "https://www.huaweicloud.com/declaration/sa_cua.html",
|
|
@@ -25209,8 +25724,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25209
25724
|
}
|
|
25210
25725
|
);
|
|
25211
25726
|
function checkAgree() {
|
|
25212
|
-
if (!status.value) {
|
|
25213
|
-
extraErrors.agreement = $t("gitCodeLayout.common.tips.
|
|
25727
|
+
if (!status.value || !dataShareChecked.value) {
|
|
25728
|
+
extraErrors.agreement = $t("gitCodeLayout.common.tips.agreementTip");
|
|
25214
25729
|
AgreementWarn.value = true;
|
|
25215
25730
|
showProtoCheck.value = true;
|
|
25216
25731
|
setTimeout(() => {
|
|
@@ -25246,11 +25761,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25246
25761
|
}
|
|
25247
25762
|
};
|
|
25248
25763
|
watchEffect(() => {
|
|
25249
|
-
if (
|
|
25250
|
-
if (status.value && hwStatus.value && extraErrors.agreement) {
|
|
25251
|
-
extraErrors.agreement = "";
|
|
25252
|
-
}
|
|
25253
|
-
} else if (status.value && extraErrors.agreement) {
|
|
25764
|
+
if (status.value && dataShareChecked.value && extraErrors.agreement) {
|
|
25254
25765
|
extraErrors.agreement = "";
|
|
25255
25766
|
}
|
|
25256
25767
|
});
|
|
@@ -25421,7 +25932,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25421
25932
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
25422
25933
|
createVNode(unref(Modal), {
|
|
25423
25934
|
modelValue: unref(vModels),
|
|
25424
|
-
"onUpdate:modelValue": _cache[
|
|
25935
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => isRef(vModels) ? vModels.value = $event : null),
|
|
25425
25936
|
"show-close": false,
|
|
25426
25937
|
"lock-scroll": _ctx.lockScroll,
|
|
25427
25938
|
draggable: _ctx.draggable,
|
|
@@ -25539,8 +26050,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25539
26050
|
class: "text-[var(--theme-link)] cursor-pointer hover:underline"
|
|
25540
26051
|
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.backLogin")), 1)
|
|
25541
26052
|
])
|
|
25542
|
-
])
|
|
25543
|
-
createElementVNode("div", _hoisted_25, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.registerDesc")), 1)
|
|
26053
|
+
])
|
|
25544
26054
|
])) : createCommentVNode("", true),
|
|
25545
26055
|
formType.value === "login" && tabPanel.value === "miniProgram" ? (openBlock(), createBlock(DataPanel, {
|
|
25546
26056
|
key: 3,
|
|
@@ -25556,14 +26066,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25556
26066
|
})
|
|
25557
26067
|
}, {
|
|
25558
26068
|
default: withCtx(() => [
|
|
25559
|
-
createElementVNode("div",
|
|
25560
|
-
createElementVNode("div",
|
|
26069
|
+
createElementVNode("div", _hoisted_25, [
|
|
26070
|
+
createElementVNode("div", _hoisted_26, [
|
|
25561
26071
|
createElementVNode("img", {
|
|
25562
26072
|
src: miniProgramInfo.value.qrcode,
|
|
25563
26073
|
alt: "小程序二维码",
|
|
25564
26074
|
class: "w-[180px] h-[180px]"
|
|
25565
|
-
}, null, 8,
|
|
25566
|
-
miniProgramStatus.value !== "WAITING" ? (openBlock(), createElementBlock("div",
|
|
26075
|
+
}, null, 8, _hoisted_27),
|
|
26076
|
+
miniProgramStatus.value !== "WAITING" ? (openBlock(), createElementBlock("div", _hoisted_28, [
|
|
25567
26077
|
miniProgramStatus.value === "TIMEOUT" ? (openBlock(), createElementBlock("div", {
|
|
25568
26078
|
key: 0,
|
|
25569
26079
|
onClick: getMiniProgramQrCode,
|
|
@@ -25574,18 +26084,18 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25574
26084
|
size: "18",
|
|
25575
26085
|
color: "#3B3E55"
|
|
25576
26086
|
}),
|
|
25577
|
-
createElementVNode("div",
|
|
25578
|
-
createElementVNode("div",
|
|
25579
|
-
createElementVNode("button",
|
|
26087
|
+
createElementVNode("div", _hoisted_29, [
|
|
26088
|
+
createElementVNode("div", _hoisted_30, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip01")), 1),
|
|
26089
|
+
createElementVNode("button", _hoisted_31, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip02")), 1)
|
|
25580
26090
|
])
|
|
25581
26091
|
])) : createCommentVNode("", true),
|
|
25582
|
-
["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("div",
|
|
25583
|
-
createElementVNode("div",
|
|
25584
|
-
createElementVNode("div",
|
|
26092
|
+
["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("div", _hoisted_32, [
|
|
26093
|
+
createElementVNode("div", _hoisted_33, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip03")), 1),
|
|
26094
|
+
createElementVNode("div", _hoisted_34, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip04")), 1)
|
|
25585
26095
|
])) : createCommentVNode("", true)
|
|
25586
26096
|
])) : createCommentVNode("", true)
|
|
25587
26097
|
]),
|
|
25588
|
-
!["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p",
|
|
26098
|
+
!["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p", _hoisted_35, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip05")), 1)) : (openBlock(), createElementBlock("button", {
|
|
25589
26099
|
key: 1,
|
|
25590
26100
|
onClick: getMiniProgramQrCode,
|
|
25591
26101
|
class: "mt-2"
|
|
@@ -25617,8 +26127,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25617
26127
|
submit: withCtx(() => {
|
|
25618
26128
|
var _a2;
|
|
25619
26129
|
return [
|
|
25620
|
-
formType.value === "login" && tabPanel.value !== "miniProgram" ? (openBlock(), createElementBlock("div",
|
|
25621
|
-
createElementVNode("div",
|
|
26130
|
+
formType.value === "login" && tabPanel.value !== "miniProgram" ? (openBlock(), createElementBlock("div", _hoisted_36, [
|
|
26131
|
+
createElementVNode("div", _hoisted_37, [
|
|
25622
26132
|
createTextVNode(toDisplayString$1(errorMsg.value) + " ", 1),
|
|
25623
26133
|
errForRemoteLogin.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
25624
26134
|
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.unusualLogin")), 1),
|
|
@@ -25636,7 +26146,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25636
26146
|
])
|
|
25637
26147
|
])) : createCommentVNode("", true),
|
|
25638
26148
|
formType.value === "login" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
25639
|
-
tabPanel.value !== "miniProgram" ? (openBlock(), createElementBlock("div",
|
|
26149
|
+
tabPanel.value !== "miniProgram" ? (openBlock(), createElementBlock("div", _hoisted_38, [
|
|
25640
26150
|
createVNode(unref(Button), {
|
|
25641
26151
|
color: "primary",
|
|
25642
26152
|
variant: "solid",
|
|
@@ -25654,39 +26164,41 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25654
26164
|
createElementVNode("div", {
|
|
25655
26165
|
class: normalizeClass([["login-modal-footer-args", AgreementWarn.value ? "shaking-box" : ""], "mt-[16px]"])
|
|
25656
26166
|
}, [
|
|
25657
|
-
createElementVNode("div",
|
|
26167
|
+
createElementVNode("div", _hoisted_39, [
|
|
25658
26168
|
createVNode(_sfc_main$8, {
|
|
25659
26169
|
modelValue: status.value,
|
|
25660
26170
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => status.value = $event),
|
|
25661
|
-
|
|
25662
|
-
|
|
26171
|
+
dataShareChecked: dataShareChecked.value,
|
|
26172
|
+
"onUpdate:dataShareChecked": _cache[8] || (_cache[8] = ($event) => dataShareChecked.value = $event),
|
|
26173
|
+
onDeclares: _cache[9] || (_cache[9] = (typ) => handleDisplay(typ))
|
|
26174
|
+
}, null, 8, ["modelValue", "dataShareChecked"])
|
|
25663
26175
|
])
|
|
25664
26176
|
], 2),
|
|
25665
|
-
createElementVNode("div",
|
|
26177
|
+
createElementVNode("div", _hoisted_40, [
|
|
25666
26178
|
_ctx.openHarmonyGuide ? (openBlock(), createElementBlock("div", {
|
|
25667
26179
|
key: 0,
|
|
25668
26180
|
class: "text-[var(--theme-link)] flex items-center mt-[12px] cursor-pointer",
|
|
25669
26181
|
onClick: withModifiers(handleRegisterHarmony, ["stop"])
|
|
25670
26182
|
}, [
|
|
25671
|
-
createElementVNode("div",
|
|
26183
|
+
createElementVNode("div", _hoisted_41, [
|
|
25672
26184
|
_cache[18] || (_cache[18] = createElementVNode("img", {
|
|
25673
26185
|
src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
|
|
25674
26186
|
alt: "",
|
|
25675
26187
|
class: "w-[32px] h-[32px] inline-block harmony-icon-img"
|
|
25676
26188
|
}, null, -1)),
|
|
25677
|
-
createElementVNode("div",
|
|
26189
|
+
createElementVNode("div", _hoisted_42, [
|
|
25678
26190
|
recentLoginType.value === unref(LoginMethodEnum).HARMONY ? (openBlock(), createElementBlock("img", {
|
|
25679
26191
|
key: 0,
|
|
25680
26192
|
src: unref(recentLoginImg),
|
|
25681
26193
|
class: "w-[50px] h-[20px]"
|
|
25682
|
-
}, null, 8,
|
|
26194
|
+
}, null, 8, _hoisted_43)) : createCommentVNode("", true)
|
|
25683
26195
|
])
|
|
25684
26196
|
]),
|
|
25685
|
-
createElementVNode("span",
|
|
26197
|
+
createElementVNode("span", _hoisted_44, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.oh")), 1)
|
|
25686
26198
|
])) : createCommentVNode("", true)
|
|
25687
26199
|
])
|
|
25688
26200
|
])) : createCommentVNode("", true),
|
|
25689
|
-
createElementVNode("div",
|
|
26201
|
+
createElementVNode("div", _hoisted_45, [
|
|
25690
26202
|
createVNode(GAuth, {
|
|
25691
26203
|
logos,
|
|
25692
26204
|
onAuth: pcAuthLogin,
|
|
@@ -25695,36 +26207,28 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25695
26207
|
}, null, 8, ["logos", "recentLoginType"])
|
|
25696
26208
|
])
|
|
25697
26209
|
], 64)) : createCommentVNode("", true),
|
|
25698
|
-
formType.value === "register" || formType.value === "forget" ? (openBlock(), createElementBlock("div",
|
|
26210
|
+
formType.value === "register" || formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_46, [
|
|
25699
26211
|
createElementVNode("div", {
|
|
25700
26212
|
class: normalizeClass([
|
|
25701
26213
|
"text-[var(--devui-danger)] text-[14px] break-all box-border leading-[20px] h-[40px]",
|
|
25702
26214
|
formType.value === "register" ? "mt-[-8px]" : ((_a2 = formErrors == null ? void 0 : formErrors.username) == null ? void 0 : _a2.length) > 42 ? "cursor-pointer" : ""
|
|
25703
26215
|
])
|
|
25704
26216
|
}, [
|
|
25705
|
-
createElementVNode("span",
|
|
26217
|
+
createElementVNode("span", _hoisted_47, toDisplayString$1(errorMsg.value), 1)
|
|
25706
26218
|
], 2),
|
|
25707
26219
|
createElementVNode("div", {
|
|
25708
26220
|
class: normalizeClass(["register-agree mt-[16px]", [AgreementWarn.value ? "shaking-box" : ""]])
|
|
25709
26221
|
}, [
|
|
25710
|
-
createVNode(_sfc_main$7, {
|
|
25711
|
-
modelValue: hwStatus.value,
|
|
25712
|
-
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => hwStatus.value = $event),
|
|
25713
|
-
onDeclares: _cache[10] || (_cache[10] = (typ) => handleDisplay(typ, "huawei")),
|
|
25714
|
-
"agreement-text": `《${unref($t)("gitCodeLayout.LoginModal.link.huaweiCloudAgreement")}》`,
|
|
25715
|
-
"privacy-text": `《${unref($t)("gitCodeLayout.LoginModal.link.agreementPrivacy")}》`,
|
|
25716
|
-
onClick: _cache[11] || (_cache[11] = ($event) => agreementReport("signup_select", `hw${hwStatus.value ? 1 : 0}`))
|
|
25717
|
-
}, null, 8, ["modelValue", "agreement-text", "privacy-text"]),
|
|
25718
26222
|
createVNode(_sfc_main$7, {
|
|
25719
26223
|
modelValue: status.value,
|
|
25720
|
-
"onUpdate:modelValue": _cache[
|
|
25721
|
-
|
|
25722
|
-
"
|
|
25723
|
-
|
|
25724
|
-
onClick: _cache[
|
|
25725
|
-
}, null, 8, ["modelValue", "
|
|
26224
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => status.value = $event),
|
|
26225
|
+
dataShareChecked: dataShareChecked.value,
|
|
26226
|
+
"onUpdate:dataShareChecked": _cache[11] || (_cache[11] = ($event) => dataShareChecked.value = $event),
|
|
26227
|
+
onDeclares: _cache[12] || (_cache[12] = (typ) => handleDisplay(typ)),
|
|
26228
|
+
onClick: _cache[13] || (_cache[13] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
|
|
26229
|
+
}, null, 8, ["modelValue", "dataShareChecked"])
|
|
25726
26230
|
], 2),
|
|
25727
|
-
createElementVNode("div",
|
|
26231
|
+
createElementVNode("div", _hoisted_48, [
|
|
25728
26232
|
createVNode(unref(Button), {
|
|
25729
26233
|
color: "primary",
|
|
25730
26234
|
variant: "solid",
|
|
@@ -25776,12 +26280,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25776
26280
|
key: "0"
|
|
25777
26281
|
} : void 0
|
|
25778
26282
|
]), 1032, ["modelValue", "lock-scroll", "draggable", "escapable", "append-to-body", "class"]),
|
|
25779
|
-
|
|
26283
|
+
showProtoCheck.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
26284
|
+
key: 0,
|
|
25780
26285
|
visible: showProtoCheck.value,
|
|
25781
|
-
"onUpdate:visible": _cache[
|
|
26286
|
+
"onUpdate:visible": _cache[15] || (_cache[15] = ($event) => showProtoCheck.value = $event),
|
|
25782
26287
|
onConfirm: agreeAndLogin,
|
|
25783
|
-
onDeclares: _cache[
|
|
25784
|
-
|
|
26288
|
+
onDeclares: _cache[16] || (_cache[16] = (typ) => handleDisplay(typ)),
|
|
26289
|
+
dataShareChecked: dataShareChecked.value,
|
|
26290
|
+
"onUpdate:dataShareChecked": _cache[17] || (_cache[17] = ($event) => dataShareChecked.value = $event)
|
|
26291
|
+
}, null, 8, ["visible", "dataShareChecked"])) : createCommentVNode("", true)
|
|
25785
26292
|
], 64);
|
|
25786
26293
|
};
|
|
25787
26294
|
}
|
|
@@ -26028,52 +26535,54 @@ const index = {
|
|
|
26028
26535
|
}
|
|
26029
26536
|
};
|
|
26030
26537
|
export {
|
|
26031
|
-
|
|
26032
|
-
|
|
26033
|
-
|
|
26034
|
-
|
|
26538
|
+
currentTheme as A,
|
|
26539
|
+
LANG_EN as B,
|
|
26540
|
+
emitEvent as C,
|
|
26541
|
+
isHttps as D,
|
|
26035
26542
|
EVENT_NAME as E,
|
|
26036
|
-
|
|
26543
|
+
_sfc_main$A as F,
|
|
26037
26544
|
GIcon as G,
|
|
26038
|
-
|
|
26039
|
-
|
|
26040
|
-
|
|
26041
|
-
|
|
26545
|
+
loadAsideData as H,
|
|
26546
|
+
asideRequest as I,
|
|
26547
|
+
ToolsFloat as J,
|
|
26548
|
+
_sfc_main as K,
|
|
26042
26549
|
LANG_ZH as L,
|
|
26043
|
-
|
|
26044
|
-
|
|
26045
|
-
|
|
26046
|
-
|
|
26047
|
-
|
|
26550
|
+
GitCodeAside as M,
|
|
26551
|
+
GitCodeHeader as N,
|
|
26552
|
+
SiteAnnouncement as O,
|
|
26553
|
+
useLogin as P,
|
|
26554
|
+
setLayoutConfig as Q,
|
|
26048
26555
|
REPO_MODULE as R,
|
|
26049
26556
|
SceneValue as S,
|
|
26050
26557
|
TOPIC_TYPE as T,
|
|
26051
|
-
|
|
26558
|
+
GitCodeLayoutEmitter as U,
|
|
26559
|
+
setTheme as V,
|
|
26560
|
+
index as W,
|
|
26052
26561
|
_export_sfc as _,
|
|
26053
26562
|
i18n as a,
|
|
26054
26563
|
REPO_EVENT as b,
|
|
26055
26564
|
REPO_TYPE as c,
|
|
26056
|
-
|
|
26565
|
+
transferNumber as d,
|
|
26057
26566
|
extractRepoInfoWithURL as e,
|
|
26058
|
-
|
|
26059
|
-
|
|
26567
|
+
useRequestReport as f,
|
|
26568
|
+
useTimeFormat as g,
|
|
26060
26569
|
headRequest as h,
|
|
26061
26570
|
isPhone as i,
|
|
26062
|
-
|
|
26063
|
-
|
|
26571
|
+
useCookie as j,
|
|
26572
|
+
usePageResize as k,
|
|
26064
26573
|
localStorage$2 as l,
|
|
26065
|
-
|
|
26066
|
-
|
|
26067
|
-
|
|
26068
|
-
|
|
26069
|
-
|
|
26574
|
+
isGstarRepo as m,
|
|
26575
|
+
_sfc_main$z as n,
|
|
26576
|
+
isIncubationRepo as o,
|
|
26577
|
+
highlightWords as p,
|
|
26578
|
+
_frEventTrack as q,
|
|
26070
26579
|
reqCatch as r,
|
|
26071
26580
|
setLoginTriggerSource as s,
|
|
26072
|
-
|
|
26581
|
+
transformUrl as t,
|
|
26073
26582
|
useModel as u,
|
|
26074
26583
|
vElementExposure as v,
|
|
26075
|
-
|
|
26076
|
-
|
|
26077
|
-
|
|
26078
|
-
|
|
26584
|
+
LANG_KEY as w,
|
|
26585
|
+
getLocaleLang as x,
|
|
26586
|
+
useLayoutConfig as y,
|
|
26587
|
+
ThemeType as z
|
|
26079
26588
|
};
|