vue-layout-gitcode 1.9.51 → 1.9.53

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, createBlock, createElementBlock, openBlock, unref, normalizeProps, mergeProps, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, effectScope, ref, shallowRef, watch, isRef, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createCommentVNode, withCtx, toDisplayString as toDisplayString$1, renderList, createTextVNode, Transition, withModifiers, resolveComponent, watchEffect, withDirectives, guardReactiveProps, onBeforeUnmount, resolveDynamicComponent, nextTick, defineAsyncComponent, vShow, withKeys, useCssVars, createSlots, render, toRaw, mergeModels, useModel as useModel$1, watchPostEffect, useSlots } from "vue";
1
+ import { defineComponent, computed, createBlock, createElementBlock, openBlock, unref, normalizeProps, mergeProps, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, effectScope, ref, shallowRef, watch, isRef, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createCommentVNode, withCtx, toDisplayString as toDisplayString$1, renderList, createTextVNode, Transition, withModifiers, resolveComponent, watchEffect, guardReactiveProps, onBeforeUnmount, resolveDynamicComponent, nextTick, defineAsyncComponent, withDirectives, vShow, withKeys, useCssVars, createSlots, render, toRaw, mergeModels, useModel as useModel$1, watchPostEffect, useSlots } from "vue";
2
2
  import { Button } from "vue-devui-lal/button";
3
3
  import { Popover } from "vue-devui-lal/popover";
4
4
  import { Tooltip } from "vue-devui-lal/tooltip";
@@ -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";
13
12
  import { useRouter, useRoute, createRouter, createWebHistory, createMemoryHistory } from "vue-router";
14
13
  import { useWindowSize, useEventListener, useElementSize, useStorage, useDebounceFn } from "@vueuse/core";
15
14
  import { Avatar } from "vue-devui-lal/avatar";
16
15
  import "vue-devui-lal/avatar/style.css";
17
16
  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$x = ["xlink:href"];
54
- const _hoisted_2$n = ["xlink:href"];
55
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
53
+ const _hoisted_1$v = ["xlink:href"];
54
+ const _hoisted_2$l = ["xlink:href"];
55
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
56
56
  __name: "index",
57
57
  props: {
58
58
  name: { default: "gt-run" },
@@ -81,7 +81,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
81
81
  }, [
82
82
  createElementVNode("use", {
83
83
  "xlink:href": `#${_ctx.name}`
84
- }, null, 8, _hoisted_1$x)
84
+ }, null, 8, _hoisted_1$v)
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$E = /* @__PURE__ */ defineComponent({
92
92
  }, [
93
93
  createElementVNode("use", {
94
94
  "xlink:href": `#${_ctx.name}`
95
- }, null, 8, _hoisted_2$n)
95
+ }, null, 8, _hoisted_2$l)
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$E, [["__scopeId", "data-v-vue-layout-gitcode"]]);
107
+ const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__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
- const layoutConfig$6 = reactive({ ...defaultConfig });
123
+ let layoutConfig$5 = reactive({ ...defaultConfig });
124
124
  function setLayoutConfig(customConfig) {
125
- Object.assign(layoutConfig$6, customConfig);
125
+ Object.assign(layoutConfig$5, customConfig);
126
126
  }
127
127
  function useLayoutConfig() {
128
- return readonly(layoutConfig$6);
128
+ return readonly(layoutConfig$5);
129
129
  }
130
130
  async function reqCatch(req, params) {
131
131
  try {
@@ -474,8 +474,7 @@ var AsideReportEvent = /* @__PURE__ */ ((AsideReportEvent2) => {
474
474
  return AsideReportEvent2;
475
475
  })(AsideReportEvent || {});
476
476
  const AICopilot_ROUTE_NAME = "aiCopilot";
477
- const HELP_DOCS_URL_GITCODE = "https://docs.gitcode.com";
478
- const HELP_DOCS_URL_ATOMGIT = "https://docs.atomgit.com";
477
+ const HELP_DOCS_URL = "https://docs.gitcode.com";
479
478
  const INFORMATION_CENTER_URL = "https://news.gitcode.com/news";
480
479
  const AVATAR_VISITED_DATE = "avatar-visitedDate";
481
480
  const AVATAR_VISITED_USERNAME = "avatar-visited-username";
@@ -495,12 +494,6 @@ const DEFAULT_COUNTRY = "CN_0086";
495
494
  const IMAGE_CDN_PREFIX = "https://cdn-static.gitcode.com";
496
495
  const HARMONY_VISITED_DATE = "harmony-visitedDate";
497
496
  const HARMONY_SURVEY_DELAY = "harmony-survey-delay";
498
- const SITE_STATUS = {
499
- DISABLE: true,
500
- // 是否维护中(true代表全站维护)
501
- COMMUNITY: false
502
- // 是否开启社区
503
- };
504
497
  const UTM_SOURCE = "utm_source";
505
498
  const PASSPORT_PREFIX = "/uc";
506
499
  const AUTH_WINDOW = "auth_window";
@@ -518,27 +511,6 @@ const TOOLS_FLOAT_COLLAPSE_STATUS = {
518
511
  const TOOLS_FLOAT_COLLAPSE_STATUS_KEY_FOR_REPO = "asideTool_collapse_status_repo";
519
512
  const TOOLS_FLOAT_COLLAPSE_STATUS_KEY = "asideTool_collapse_status";
520
513
  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
- };
542
514
  /*! @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 */
543
515
  const {
544
516
  entries,
@@ -7635,20 +7607,13 @@ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
7635
7607
  if (process.env.NODE_ENV !== "production") ;
7636
7608
  const gitCodeLayout$1 = {
7637
7609
  home: {
7638
- migrationAnnounce: {
7639
- preContent: "亲爱的 {siteName} 开发者:平台正在进行系统化融合与升级,预计将于10月28日12:00完成。之后,您将体验更强大、更稳定的平台。",
7640
- content: "亲爱的开发者:GitCode 与 AtomGit 已完成深度整合升级,您将体验更稳定、更精彩的开源社区服务!",
7641
- viewDetail: "【查看详情】",
7642
- closePermanently: "不再提醒",
7643
- close: "关闭"
7644
- },
7645
7610
  alreadyFollowed: "已关注",
7646
7611
  focusOn: "关注",
7647
7612
  star: "星标",
7648
7613
  informationCenter: "资讯中心",
7649
7614
  feedbackCenter: "反馈中心",
7650
7615
  companyInformation: "重庆开源共创",
7651
- recordInformation: "渝ICP备2023009037号-1",
7616
+ recordInformation: "渝ICP备2023009037",
7652
7617
  technicalSupport: "技术支持:",
7653
7618
  HWCloud: "华为云",
7654
7619
  userFeedback01: "在线客服",
@@ -7678,14 +7643,7 @@ const gitCodeLayout$1 = {
7678
7643
  channel: {},
7679
7644
  TianqiAI: "天启 AI",
7680
7645
  Tianqi: "天启",
7681
- topic: "热门主题",
7682
- copyright_atomgit: {
7683
- slogon: "共创GitCode,开发者的代码家园",
7684
- digest: "重庆开源共创科技有限公司版权所有",
7685
- companyInformation: "重庆开源共创",
7686
- recordInformation: "渝ICP备2023009037号-12",
7687
- publicSecurity: "xxxx"
7688
- }
7646
+ topic: "热门主题"
7689
7647
  },
7690
7648
  header: {
7691
7649
  create: "新建",
@@ -7783,12 +7741,11 @@ const gitCodeLayout$1 = {
7783
7741
  attention: "关注"
7784
7742
  },
7785
7743
  tips: {
7786
- notcieTitle: "GitCode 提示",
7744
+ notcieTitle: "Gitcode 提示",
7787
7745
  notcie1: "你的登录信息已过期,请重新登录!",
7788
7746
  notcie2: "登录之后才能开启全新体验哦",
7789
7747
  readPrivacyPolicy: "请阅读并同意用户协议以及其隐私政策",
7790
- welcome: "欢迎来到 GitCode",
7791
- agreementTip: "请阅读并同意用户协议、隐私政策和数据共享"
7748
+ welcome: "欢迎来到Gitcode"
7792
7749
  },
7793
7750
  foldup: "收起",
7794
7751
  iCreated: "我创建的",
@@ -7835,7 +7792,7 @@ const gitCodeLayout$1 = {
7835
7792
  },
7836
7793
  LoginModal: {
7837
7794
  title: {
7838
- login: "欢迎登录你的 GitCode 账号",
7795
+ login: "欢迎登录你的GitCode账号",
7839
7796
  register: "欢迎注册"
7840
7797
  },
7841
7798
  subtitle: {
@@ -7884,7 +7841,7 @@ const gitCodeLayout$1 = {
7884
7841
  SMSVerificationCode: "请输入{count}位有效的短信验证码",
7885
7842
  fillNecessaryInfo: "请输入有效的手机号码",
7886
7843
  youNeeToAgr: "您需要同意",
7887
- toUseGit: "才能使用。",
7844
+ toUseGit: "才能使用GitCode。",
7888
7845
  ifYouDoNotAgrWe: "如果您不同意,很遗憾我们无法为您提供服务。",
7889
7846
  disAndQui: "不同意并退出",
7890
7847
  agrAndSigIn: "同意并登录",
@@ -7896,13 +7853,7 @@ const gitCodeLayout$1 = {
7896
7853
  agreement: "用户协议",
7897
7854
  privacyPolicy: "隐私政策",
7898
7855
  huaweiCloudAgreement: "华为云用户协议",
7899
- agreementPrivacy: "华为云隐私政策声明",
7900
- gitCodeProtocol: "GitCode用户协议",
7901
- gitCodePrivacy: "GitCode隐私政策",
7902
- dataShare: "我同意将账号、组织、仓库等信息提供给{name}进行数据共享",
7903
- chiCloDevSerAgr: "华为云开发者服务协议",
7904
- chiCloDevPriPolSta: "华为云开发者隐私政策声明",
7905
- dataShareTip: "数据共享"
7856
+ agreementPrivacy: "华为云隐私政策声明"
7906
7857
  },
7907
7858
  registerDesc: "GitCode 与华为云共同为用户提供代码托管服务,在使用代码托管相关服务时,将同步授权并开通华为云服务,并与重庆开源共创科技有限公司(GitCode的运营主体)关联及共享。",
7908
7859
  rule: {
@@ -7960,13 +7911,6 @@ const zh = {
7960
7911
  };
7961
7912
  const gitCodeLayout = {
7962
7913
  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
- },
7970
7914
  veryGood: "Excellent",
7971
7915
  good: "Good",
7972
7916
  generally: "Average",
@@ -7995,7 +7939,7 @@ const gitCodeLayout = {
7995
7939
  slogon: "Co-create GitCode, the Code Home for Developers",
7996
7940
  digest: "ChongQingKaiYuanGongChuang Technology Co., Ltd. All Rights Reserved",
7997
7941
  companyInformation: "ChongQingKaiYuanGongChuang",
7998
- recordInformation: "Yu ICP No. 2023009037-1",
7942
+ recordInformation: "Yu ICP No. 2023009037",
7999
7943
  searchPlaceholder2: "Type <kbd>/</kbd> to search",
8000
7944
  searchPlaceholder: "Search",
8001
7945
  alreadyFollowed: "Followed",
@@ -8003,14 +7947,7 @@ const gitCodeLayout = {
8003
7947
  org: {},
8004
7948
  TianqiAI: "Tianqi AI",
8005
7949
  Tianqi: "Tianqi",
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
- }
7950
+ topic: "Hot topics"
8014
7951
  },
8015
7952
  header: {
8016
7953
  create: "New",
@@ -8112,8 +8049,7 @@ const gitCodeLayout = {
8112
8049
  notcie1: "Login has expired, please log in again!",
8113
8050
  notcie2: "Log in to unlock a brand new experience!",
8114
8051
  readPrivacyPolicy: "Please Read and Agree to the User Agreement and Privacy Policy",
8115
- welcome: "Welcome to GitCode",
8116
- agreementTip: "Please read and agree to the user agreement, privacy policy and data sharing"
8052
+ welcome: "Welcome to GitCode"
8117
8053
  },
8118
8054
  foldup: "Collapse",
8119
8055
  iCreated: "Yours",
@@ -8221,13 +8157,7 @@ const gitCodeLayout = {
8221
8157
  agreement: "User Agreement",
8222
8158
  privacyPolicy: "Privacy Policy",
8223
8159
  huaweiCloudAgreement: "Huawei Cloud User Agreement",
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"
8160
+ agreementPrivacy: "Huawei Cloud Privacy Policy Statement"
8231
8161
  },
8232
8162
  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).",
8233
8163
  rule: {
@@ -8292,24 +8222,9 @@ const LANGUAGE = [
8292
8222
  { label: "English", value: LANG_EN, language: LANGUAGE_EN, icon: "gt-line-English1" }
8293
8223
  ];
8294
8224
  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
- };
8310
8225
  const SUPPORT_LOCALES = [LANG_EN, LANG_ZH];
8311
8226
  const currentDomainCookie = api.get(LANG_KEY);
8312
- if (currentDomainCookie && "." + window.location.hostname !== COOKIE_DOMAIN() || !SUPPORT_LOCALES.includes(currentDomainCookie)) {
8227
+ if (currentDomainCookie && "." + window.location.hostname !== ".gitcode.com" || !SUPPORT_LOCALES.includes(currentDomainCookie)) {
8313
8228
  api.remove(LANG_KEY);
8314
8229
  }
8315
8230
  function isComposer(instance, mode) {
@@ -8326,7 +8241,7 @@ function setupI18n(options = { locale: LANG_EN }) {
8326
8241
  if (typeof document !== "undefined" && document.documentElement) {
8327
8242
  document.documentElement.lang = options.locale;
8328
8243
  }
8329
- const i18n2 = createI18n({ ...options });
8244
+ const i18n2 = createI18n(options);
8330
8245
  setI18nLanguage(i18n2, options.locale);
8331
8246
  return i18n2;
8332
8247
  }
@@ -8360,7 +8275,7 @@ const $i18n = setupI18n({
8360
8275
  }
8361
8276
  });
8362
8277
  const i18n = $i18n;
8363
- const layoutConfig$5 = useLayoutConfig();
8278
+ const layoutConfig$4 = useLayoutConfig();
8364
8279
  function scrollToTop() {
8365
8280
  if (typeof window !== "undefined" && window.pageYOffset) {
8366
8281
  const c = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;
@@ -8389,7 +8304,7 @@ function extractRepoInfoWithURL(repoUrl) {
8389
8304
  return parts.join("/");
8390
8305
  }
8391
8306
  const isGstarRepo = (topics) => {
8392
- const gstarTopicIds = layoutConfig$5.VITE_GSTAR_TOPIC.split(",");
8307
+ const gstarTopicIds = layoutConfig$4.VITE_GSTAR_TOPIC.split(",");
8393
8308
  let isGstar = false;
8394
8309
  topics && topics.forEach((item) => {
8395
8310
  if (gstarTopicIds.includes(item.topic_id || item.id)) {
@@ -8399,7 +8314,7 @@ const isGstarRepo = (topics) => {
8399
8314
  return isGstar;
8400
8315
  };
8401
8316
  const isTrustedRepo = (topics) => {
8402
- const trustedTopicIds = layoutConfig$5.VITE_TRUSTED_TOPIC.split(",");
8317
+ const trustedTopicIds = layoutConfig$4.VITE_TRUSTED_TOPIC.split(",");
8403
8318
  let isTrusted = false;
8404
8319
  topics && topics.forEach((item) => {
8405
8320
  if (trustedTopicIds.includes(item.topic_id || item.id)) {
@@ -8408,7 +8323,7 @@ const isTrustedRepo = (topics) => {
8408
8323
  });
8409
8324
  return isTrusted;
8410
8325
  };
8411
- const INCUBATION_TOPICS = layoutConfig$5.VITE_INCUBATION_TOPIC || "";
8326
+ const INCUBATION_TOPICS = layoutConfig$4.VITE_INCUBATION_TOPIC || "";
8412
8327
  const isIncubationRepo = (topics = []) => {
8413
8328
  if (!topics) return false;
8414
8329
  const incubationIds = INCUBATION_TOPICS.split(",");
@@ -8451,7 +8366,7 @@ const getLastTimeRepoId = () => {
8451
8366
  };
8452
8367
  const setUtmSourceSign = (utm_source) => {
8453
8368
  const time = new Date((/* @__PURE__ */ new Date()).getTime() + 60 * 60 * 1e3);
8454
- return api.set("utm_source_sign", utm_source, { expires: time, domain: layoutConfig$5.VITE_COOKIE_DOMAIN });
8369
+ return api.set("utm_source_sign", utm_source, { expires: time, domain: layoutConfig$4.VITE_COOKIE_DOMAIN });
8455
8370
  };
8456
8371
  const getUtmSourceSign = () => {
8457
8372
  return api.get("utm_source_sign") || "";
@@ -11011,7 +10926,7 @@ const getCommonHeadInfo = (isAiHub) => {
11011
10926
  "X-Device-ID": "unknown"
11012
10927
  };
11013
10928
  };
11014
- const layoutConfig$4 = useLayoutConfig();
10929
+ const layoutConfig$3 = useLayoutConfig();
11015
10930
  const setPassportPrefix = (url, method) => {
11016
10931
  const prefix = "/uc";
11017
10932
  {
@@ -11035,7 +10950,7 @@ const setPassportPrefix = (url, method) => {
11035
10950
  };
11036
10951
  const proxyService = (params, customConfigs) => {
11037
10952
  const service = axios.create({
11038
- baseURL: layoutConfig$4.VITE_API_HOST,
10953
+ baseURL: layoutConfig$3.VITE_API_HOST,
11039
10954
  timeout: (customConfigs == null ? void 0 : customConfigs.customTimeout) || 3e4,
11040
10955
  withCredentials: true
11041
10956
  });
@@ -11083,136 +10998,10 @@ const proxyService = (params, customConfigs) => {
11083
10998
  );
11084
10999
  return service(params);
11085
11000
  };
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$w = { 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" };
11001
+ const _hoisted_1$u = { class: "home-nav-right" };
11002
+ const _hoisted_2$k = { class: "home-nav-item" };
11003
+ const _hoisted_3$h = { class: "tooltip-sign" };
11004
+ const _hoisted_4$e = { class: "home-nav-tooltip-wrapper" };
11216
11005
  const _hoisted_5$a = { class: "home-nav-text" };
11217
11006
  const _hoisted_6$9 = { class: "home-nav-tooltip-wrapper" };
11218
11007
  const _hoisted_7$6 = { class: "home-nav-text" };
@@ -11263,7 +11052,7 @@ const _hoisted_30$1 = { class: "ml-2 font-[600] text-[var(--theme-aide-text)] te
11263
11052
  const _hoisted_31$1 = { class: "home-nav-item collapse-tool" };
11264
11053
  const _hoisted_32$1 = { class: "home-nav-item" };
11265
11054
  const _hoisted_33$1 = ["src", "alt"];
11266
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
11055
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11267
11056
  __name: "index",
11268
11057
  props: {
11269
11058
  sceneValue: { default: SceneValue.home },
@@ -11316,8 +11105,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11316
11105
  emits("toggle-growth-center");
11317
11106
  };
11318
11107
  const handleInvite = () => {
11319
- const link = transformUrl("https://gitcode.com/setting/points?type=invite");
11320
- window.open(link, "_blank");
11108
+ window.open("https://gitcode.com/setting/points?type=invite", "_blank");
11321
11109
  };
11322
11110
  const showDesk = () => {
11323
11111
  if (window.ud) {
@@ -11496,13 +11284,13 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11496
11284
  size: "18px"
11497
11285
  })
11498
11286
  ])) : createCommentVNode("", true),
11499
- createElementVNode("div", _hoisted_1$w, [
11287
+ createElementVNode("div", _hoisted_1$u, [
11500
11288
  createVNode(unref(Tooltip), {
11501
11289
  position: "left",
11502
11290
  "overlay-class": "tools-tag-tooltip"
11503
11291
  }, {
11504
11292
  content: withCtx(() => [
11505
- createElementVNode("div", _hoisted_4$g, [
11293
+ createElementVNode("div", _hoisted_4$e, [
11506
11294
  createElementVNode("div", _hoisted_5$a, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1)
11507
11295
  ])
11508
11296
  ]),
@@ -11511,13 +11299,13 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11511
11299
  class: "home-nav-link computing",
11512
11300
  onClick: handleInvite
11513
11301
  }, [
11514
- createElementVNode("div", _hoisted_2$m, [
11302
+ createElementVNode("div", _hoisted_2$k, [
11515
11303
  _cache[5] || (_cache[5] = createElementVNode("img", {
11516
11304
  class: "common-icon inline-block h-[20px] w-[20px]",
11517
11305
  src: "https://cdn-static.gitcode.com/static/images/homeweb/invite.svg",
11518
11306
  alt: ""
11519
11307
  }, null, -1)),
11520
- createElementVNode("div", _hoisted_3$l, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1)
11308
+ createElementVNode("div", _hoisted_3$h, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1)
11521
11309
  ])
11522
11310
  ])
11523
11311
  ]),
@@ -11796,7 +11584,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11796
11584
  };
11797
11585
  }
11798
11586
  });
11799
- const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-vue-layout-gitcode"]]);
11587
+ const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-vue-layout-gitcode"]]);
11800
11588
  var repoTypeEnum = /* @__PURE__ */ ((repoTypeEnum2) => {
11801
11589
  repoTypeEnum2["NORMAL"] = "0";
11802
11590
  repoTypeEnum2["MODEL"] = "1";
@@ -11893,7 +11681,7 @@ var REPO_TYPE = /* @__PURE__ */ ((REPO_TYPE2) => {
11893
11681
  REPO_TYPE2[REPO_TYPE2["HUGGINGFACE_MIRRORS"] = 2] = "HUGGINGFACE_MIRRORS";
11894
11682
  return REPO_TYPE2;
11895
11683
  })(REPO_TYPE || {});
11896
- const layoutConfig$3 = useLayoutConfig();
11684
+ const layoutConfig$2 = useLayoutConfig();
11897
11685
  const registerLoginMethodMap = {
11898
11686
  [LoginMethodEnum.PHONE]: "短信",
11899
11687
  [LoginMethodEnum.PASSWORD]: "密码",
@@ -11926,8 +11714,8 @@ const collectRegisterLoginEvent = ({ isRegister, registerLoginMethod, success, e
11926
11714
  article_id: searchParams["from_id"] || "",
11927
11715
  userid_fast_application: searchParams["uuid_tt_dd"] || "",
11928
11716
  gitcode_utm_source: searchParams["utm_source"] || "",
11929
- page_url: (location == null ? void 0 : location.href) || "",
11930
- env: layoutConfig$3.VITE_ENV,
11717
+ page_url: location.href || "",
11718
+ env: layoutConfig$2.VITE_ENV,
11931
11719
  namespace: extraData.namespace || "",
11932
11720
  ...extraData,
11933
11721
  ...searchParams
@@ -11937,8 +11725,8 @@ const collectRegisterLoginEvent = ({ isRegister, registerLoginMethod, success, e
11937
11725
  delete reportData["utm_source"];
11938
11726
  window.collectEvent("beconEvent", isRegister ? "register" : "login", reportData);
11939
11727
  };
11940
- const _hoisted_1$v = ["href", "target", "disabled"];
11941
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
11728
+ const _hoisted_1$t = ["href", "target", "disabled"];
11729
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
11942
11730
  ...{
11943
11731
  name: "GLink"
11944
11732
  },
@@ -11982,25 +11770,11 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11982
11770
  disabled: _ctx.disabled || _ctx.noPointer
11983
11771
  }, [
11984
11772
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
11985
- ], 10, _hoisted_1$v));
11773
+ ], 10, _hoisted_1$t));
11986
11774
  };
11987
11775
  }
11988
11776
  });
11989
- const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__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
- };
11777
+ const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-vue-layout-gitcode"]]);
12004
11778
  const black = {
12005
11779
  "theme-stress-text": "#f0f6fc",
12006
11780
  "theme-text": "#D2D8E4",
@@ -12415,6 +12189,14 @@ var ThemeType = /* @__PURE__ */ ((ThemeType2) => {
12415
12189
  return ThemeType2;
12416
12190
  })(ThemeType || {});
12417
12191
  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
+ };
12418
12200
  const currentThemeStorage = ref(api.get(THEME_KEY) || "");
12419
12201
  const themeColorMap = {
12420
12202
  [ThemeType.BLACK]: black,
@@ -12428,7 +12210,7 @@ watch(currentThemeStorage, (newValue) => {
12428
12210
  if (newValue) {
12429
12211
  api.set(THEME_KEY, newValue, COOKIE_OPTIONS);
12430
12212
  } else {
12431
- api.remove(THEME_KEY, { domain: COOKIE_DOMAIN() });
12213
+ api.remove(THEME_KEY, { domain: COOKIE_DOMAIN });
12432
12214
  }
12433
12215
  });
12434
12216
  const currentTheme = computed(() => {
@@ -12482,7 +12264,7 @@ class Theme {
12482
12264
  }
12483
12265
  stopAutoTheme(isInit = false) {
12484
12266
  if (!isInit) {
12485
- api.remove("AutoTheme", { domain: COOKIE_DOMAIN() });
12267
+ api.remove("AutoTheme", { domain: COOKIE_DOMAIN });
12486
12268
  }
12487
12269
  this.darkModeMediaQuery.onchange = null;
12488
12270
  }
@@ -12544,7 +12326,7 @@ if (isBrowser) {
12544
12326
  }
12545
12327
  const sessionStorage$1 = sessionStorage;
12546
12328
  const _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAmsSURBVHgB7VpdbxxnFT7n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zn/T6e3ZvdarCJrIjA8w181k9nS/NLw93pjG9vYxja2p8G+ADz7MtW/3lU1AAAAAElFTkSuQmCC";
12547
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
12329
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
12548
12330
  ...{
12549
12331
  name: "GAvatar"
12550
12332
  },
@@ -12573,7 +12355,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12573
12355
  });
12574
12356
  return (_ctx, _cache) => {
12575
12357
  return openBlock(), createBlock(unref(Avatar), {
12576
- "img-src": unref(transformUrl)(imgSrc.value),
12358
+ "img-src": imgSrc.value,
12577
12359
  name: placeholderName.value,
12578
12360
  width: _ctx.width,
12579
12361
  height: _ctx.height,
@@ -12585,8 +12367,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12585
12367
  };
12586
12368
  }
12587
12369
  });
12588
- const _hoisted_1$u = ["src"];
12589
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
12370
+ const _hoisted_1$s = ["src"];
12371
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
12590
12372
  ...{ name: "FlashTag" },
12591
12373
  __name: "FlashTag",
12592
12374
  props: {
@@ -12631,7 +12413,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
12631
12413
  key: 0,
12632
12414
  class: "w-[16px] h-[16px]",
12633
12415
  src: iconUrl.value
12634
- }, null, 8, _hoisted_1$u)) : renderSlot(_ctx.$slots, "default", { key: 1 })
12416
+ }, null, 8, _hoisted_1$s)) : renderSlot(_ctx.$slots, "default", { key: 1 })
12635
12417
  ], 16)
12636
12418
  ]),
12637
12419
  _: 3
@@ -13437,13 +13219,13 @@ const useTimeFormat = () => {
13437
13219
  formatTime
13438
13220
  };
13439
13221
  };
13440
- const _hoisted_1$t = {
13222
+ const _hoisted_1$r = {
13441
13223
  key: 0,
13442
13224
  class: "org-layout-toolbar"
13443
13225
  };
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" };
13226
+ const _hoisted_2$j = { class: "org-layout-toolbar-title flex-1 ellipsis-two-line" };
13227
+ const _hoisted_3$g = { class: "text-xs" };
13228
+ const _hoisted_4$d = { class: "flex items-center w-full g-repo-breadcrumb-custom" };
13447
13229
  const _hoisted_5$9 = {
13448
13230
  key: 1,
13449
13231
  class: "flex items-center min-w-[30px]"
@@ -13496,7 +13278,7 @@ const _hoisted_20$1 = {
13496
13278
  };
13497
13279
  const _hoisted_21$1 = { class: "user-layout-toolbar-title flex-1 ellipsis-two-line" };
13498
13280
  const _hoisted_22$1 = { class: "text-xs" };
13499
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
13281
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
13500
13282
  __name: "HeaderCustom",
13501
13283
  props: {
13502
13284
  scene: { default: SceneValue.home },
@@ -13616,7 +13398,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
13616
13398
  });
13617
13399
  return (_ctx, _cache) => {
13618
13400
  var _a, _b;
13619
- return _ctx.scene === unref(SceneValue).org && !_ctx.errorCode ? (openBlock(), createElementBlock("div", _hoisted_1$t, [
13401
+ return _ctx.scene === unref(SceneValue).org && !_ctx.errorCode ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
13620
13402
  createVNode(GLink, {
13621
13403
  to: { name: "homepage" },
13622
13404
  class: "flex flex-1 items-center gap-[8px]"
@@ -13624,7 +13406,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
13624
13406
  default: withCtx(() => {
13625
13407
  var _a2, _b2, _c;
13626
13408
  return [
13627
- createVNode(_sfc_main$B, {
13409
+ createVNode(_sfc_main$z, {
13628
13410
  class: "g-border",
13629
13411
  src: (_a2 = unref(orgInfo)) == null ? void 0 : _a2.avatar,
13630
13412
  name: (_b2 = unref(orgInfo)) == null ? void 0 : _b2.name,
@@ -13632,7 +13414,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
13632
13414
  height: 28,
13633
13415
  is_round: false
13634
13416
  }, null, 8, ["src", "name"]),
13635
- createElementVNode("div", _hoisted_2$l, toDisplayString$1((_c = unref(orgInfo)) == null ? void 0 : _c.name), 1)
13417
+ createElementVNode("div", _hoisted_2$j, toDisplayString$1((_c = unref(orgInfo)) == null ? void 0 : _c.name), 1)
13636
13418
  ];
13637
13419
  }),
13638
13420
  _: 1
@@ -13647,7 +13429,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
13647
13429
  default: withCtx(() => {
13648
13430
  var _a2;
13649
13431
  return [
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)
13432
+ createElementVNode("span", _hoisted_3$g, toDisplayString$1(((_a2 = _ctx.orgProps) == null ? void 0 : _a2.isOrgFollow) ? unref(t2)("gitCodeLayout.home.alreadyFollowed") : unref(t2)("gitCodeLayout.home.focusOn")), 1)
13651
13433
  ];
13652
13434
  }),
13653
13435
  _: 1
@@ -13669,7 +13451,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
13669
13451
  default: withCtx(() => {
13670
13452
  var _a2, _b2, _c, _d, _e, _f, _g;
13671
13453
  return [
13672
- createElementVNode("h2", _hoisted_4$f, [
13454
+ createElementVNode("h2", _hoisted_4$d, [
13673
13455
  createVNode(GLink, {
13674
13456
  href: (_a2 = unref(breadcrumb)[0]) == null ? void 0 : _a2.path,
13675
13457
  class: "pr-[12px]"
@@ -13677,7 +13459,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
13677
13459
  default: withCtx(() => {
13678
13460
  var _a3, _b3, _c2, _d2;
13679
13461
  return [
13680
- !((_a3 = _ctx.repoProps) == null ? void 0 : _a3.isGhMirrors) ? (openBlock(), createBlock(_sfc_main$B, {
13462
+ !((_a3 = _ctx.repoProps) == null ? void 0 : _a3.isGhMirrors) ? (openBlock(), createBlock(_sfc_main$z, {
13681
13463
  key: 0,
13682
13464
  class: normalizeClass({ "g-border": isOrg.value }),
13683
13465
  src: (_c2 = (_b3 = unref(repoInfo)) == null ? void 0 : _b3.namespace) == null ? void 0 : _c2.avatar_url,
@@ -13745,7 +13527,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
13745
13527
  _: 1
13746
13528
  }, 8, ["to"]),
13747
13529
  unref(isGstarRepo)(unref(repoInfo).topic_names) ? (openBlock(), createElementBlock("div", _hoisted_12$3, [
13748
- createVNode(_sfc_main$A, {
13530
+ createVNode(_sfc_main$y, {
13749
13531
  origin: "repo",
13750
13532
  icon: "",
13751
13533
  type: "gstar",
@@ -13757,7 +13539,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
13757
13539
  _: 1
13758
13540
  }, 8, ["message"])
13759
13541
  ])) : unref(isIncubationRepo)(unref(repoInfo).topic_names) ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
13760
- createVNode(_sfc_main$A, {
13542
+ createVNode(_sfc_main$y, {
13761
13543
  origin: "repo",
13762
13544
  icon: "",
13763
13545
  type: "incubation",
@@ -13770,7 +13552,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
13770
13552
  }, 8, ["message"])
13771
13553
  ])) : createCommentVNode("", true),
13772
13554
  unref(isTrustedRepo)(unref(repoInfo).topic_names) ? (openBlock(), createElementBlock("div", _hoisted_14$1, [
13773
- createVNode(_sfc_main$A, {
13555
+ createVNode(_sfc_main$y, {
13774
13556
  trusted: "",
13775
13557
  message: unref(t2)("gitCodeLayout.trusted.title"),
13776
13558
  icon: "",
@@ -13819,7 +13601,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
13819
13601
  default: withCtx(() => {
13820
13602
  var _a2, _b2, _c, _d, _e;
13821
13603
  return [
13822
- createVNode(_sfc_main$B, {
13604
+ createVNode(_sfc_main$z, {
13823
13605
  src: (_a2 = unref(otherUserInfo)) == null ? void 0 : _a2.avatarUrl,
13824
13606
  name: ((_b2 = unref(otherUserInfo)) == null ? void 0 : _b2.name) || ((_c = unref(otherUserInfo)) == null ? void 0 : _c.nickname),
13825
13607
  width: 28,
@@ -13846,115 +13628,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
13846
13628
  };
13847
13629
  }
13848
13630
  });
13849
- const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-vue-layout-gitcode"]]);
13850
- const vElementExposure = {
13851
- mounted(el, binding) {
13852
- let observer = new IntersectionObserver(function(entries2, observer2) {
13853
- entries2.forEach(function(entry) {
13854
- var _a;
13855
- if (entry.isIntersecting) {
13856
- (_a = binding.value) == null ? void 0 : _a.trigger("expo");
13857
- observer2.unobserve(entry.target);
13858
- }
13859
- });
13860
- }, { threshold: 0 });
13861
- observer.observe(el);
13862
- },
13863
- beforeUnmount() {
13864
- }
13865
- };
13866
- const _hoisted_1$s = ["src"];
13867
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
13868
- ...{
13869
- name: "ChatBot"
13870
- },
13871
- __name: "ChatBot",
13872
- setup(__props) {
13873
- const layoutConfig2 = useLayoutConfig();
13874
- const tianqiButtonConfig = ref({
13875
- img: "",
13876
- img_black: "",
13877
- url: ""
13878
- });
13879
- const request = inject("request");
13880
- const useReport2 = inject("useReport");
13881
- const API = asideRequest(request);
13882
- const loaded = ref(false);
13883
- const handleChatBotExpo = (type) => {
13884
- useReport2(REPO_EVENT.SHOW, { module_name: ASIDE_MENU_REPO.CHATBOTEXPO });
13885
- };
13886
- const getTianqiRouteConfig = async () => {
13887
- var _a;
13888
- try {
13889
- const res = await API.getTianqiRouteConfig();
13890
- const data = ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.data) || {};
13891
- const { top_button: topButton } = data;
13892
- if (topButton) {
13893
- tianqiButtonConfig.value = {
13894
- img: topButton.img,
13895
- img_black: topButton.img_black,
13896
- url: topButton.url
13897
- };
13898
- }
13899
- loaded.value = true;
13900
- } catch (error) {
13901
- console.error(error);
13902
- loaded.value = true;
13903
- }
13904
- };
13905
- getTianqiRouteConfig();
13906
- const logoConfig = getCurrentLogoMap();
13907
- const TIANQI_LOGO_WHITE = logoConfig.tianqiLogoLocalWhite;
13908
- const TIANQI_LOGO_BLACK = logoConfig.tianqiLogoLocalDark;
13909
- const logo = computed(() => {
13910
- var _a, _b;
13911
- if (tianqiButtonConfig.value.img && ((_b = (_a = window == null ? void 0 : window.location) == null ? void 0 : _a.host) == null ? void 0 : _b.includes("gitcode"))) {
13912
- return currentTheme.value === ThemeType.BLACK ? tianqiButtonConfig.value.img_black : tianqiButtonConfig.value.img;
13913
- }
13914
- return currentTheme.value === ThemeType.BLACK ? TIANQI_LOGO_BLACK : TIANQI_LOGO_WHITE;
13915
- });
13916
- const customClass = computed(() => {
13917
- return {
13918
- "custom": tianqiButtonConfig.value.img
13919
- };
13920
- });
13921
- function goPage() {
13922
- var _a, _b;
13923
- let url = "";
13924
- if (!tianqiButtonConfig.value.url) {
13925
- url = transformUrlWithSpecialPrefix({ url: layoutConfig2.VITE_HOST_TIANQI, host: layoutConfig2.VITE_HOST }) + "?utm_source=toolbar";
13926
- } else {
13927
- url = transformUrl(tianqiButtonConfig.value.url) + "?utm_source=toolbar";
13928
- }
13929
- const isGitcodeHost = (_b = (_a = window == null ? void 0 : window.location) == null ? void 0 : _a.host) == null ? void 0 : _b.includes("gitcode");
13930
- if (url.includes("tianqi.pre")) {
13931
- url = isGitcodeHost ? "https://pre-tianqi.gitcode.com" : "https://pre-tianqi.atomgit.com";
13932
- } else if (url.includes("tianqi.test")) {
13933
- url = isGitcodeHost ? "https://test-tianqi.gitcode.net" : "https://test-tianqi.atomgit.com";
13934
- }
13935
- useReport2(REPO_EVENT.CLICK, { module_name: ASIDE_MENU_REPO.CHATBOTCLICK });
13936
- window.open(url);
13937
- }
13938
- return (_ctx, _cache) => {
13939
- return withDirectives((openBlock(), createElementBlock("div", {
13940
- class: normalizeClass(["agent-tips", customClass.value]),
13941
- onClick: withModifiers(goPage, ["stop"])
13942
- }, [
13943
- loaded.value ? (openBlock(), createElementBlock("img", {
13944
- key: 0,
13945
- src: logo.value,
13946
- alt: "logo",
13947
- class: "w-[108px] cursor-pointer"
13948
- }, null, 8, _hoisted_1$s)) : createCommentVNode("", true)
13949
- ], 2)), [
13950
- [unref(vElementExposure), { trigger: (type) => handleChatBotExpo() }]
13951
- ]);
13952
- };
13953
- }
13954
- });
13955
- const ChatBot = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-vue-layout-gitcode"]]);
13956
- const _hoisted_1$r = ["src"];
13957
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
13631
+ const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-vue-layout-gitcode"]]);
13632
+ const _hoisted_1$q = ["src"];
13633
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
13958
13634
  __name: "ClaimPower",
13959
13635
  props: {
13960
13636
  config: {}
@@ -13977,14 +13653,14 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
13977
13653
  createElementVNode("img", {
13978
13654
  src: _ctx.config.logo_url,
13979
13655
  alt: "claim power"
13980
- }, null, 8, _hoisted_1$r)
13656
+ }, null, 8, _hoisted_1$q)
13981
13657
  ])) : createCommentVNode("", true);
13982
13658
  };
13983
13659
  }
13984
13660
  });
13985
- const ClaimPower = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-vue-layout-gitcode"]]);
13986
- const _hoisted_1$q = { class: "devui-select__item g-option-link" };
13987
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
13661
+ const ClaimPower = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-vue-layout-gitcode"]]);
13662
+ const _hoisted_1$p = { class: "devui-select__item g-option-link" };
13663
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
13988
13664
  ...{
13989
13665
  name: "OptionLink"
13990
13666
  },
@@ -14002,7 +13678,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
14002
13678
  },
14003
13679
  setup(__props) {
14004
13680
  return (_ctx, _cache) => {
14005
- return openBlock(), createElementBlock("li", _hoisted_1$q, [
13681
+ return openBlock(), createElementBlock("li", _hoisted_1$p, [
14006
13682
  createVNode(GLink, normalizeProps(guardReactiveProps(_ctx.$props)), {
14007
13683
  default: withCtx(() => [
14008
13684
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
@@ -14013,7 +13689,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
14013
13689
  };
14014
13690
  }
14015
13691
  });
14016
- const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-vue-layout-gitcode"]]);
13692
+ const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-vue-layout-gitcode"]]);
14017
13693
  var aes = { exports: {} };
14018
13694
  function commonjsRequire(path) {
14019
13695
  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.');
@@ -16013,7 +15689,7 @@ var encUtf8 = { exports: {} };
16013
15689
  })(encUtf8);
16014
15690
  var encUtf8Exports = encUtf8.exports;
16015
15691
  const Utf8 = /* @__PURE__ */ getDefaultExportFromCjs(encUtf8Exports);
16016
- const layoutConfig$2 = useLayoutConfig();
15692
+ const layoutConfig$1 = useLayoutConfig();
16017
15693
  function headRequest(request) {
16018
15694
  return {
16019
15695
  getSearchHot() {
@@ -16253,8 +15929,8 @@ function headRequest(request) {
16253
15929
  },
16254
15930
  // 密码登录
16255
15931
  toLogin(data) {
16256
- const key = Utf8.parse(layoutConfig$2.VITE_SECRET_KEY);
16257
- const iv = Utf8.parse(layoutConfig$2.VITE_SECRET_IV);
15932
+ const key = Utf8.parse(layoutConfig$1.VITE_SECRET_KEY);
15933
+ const iv = Utf8.parse(layoutConfig$1.VITE_SECRET_IV);
16258
15934
  const cryptoCode = AES.encrypt(data.password, key, {
16259
15935
  iv,
16260
15936
  padding: Pkcs7
@@ -16383,7 +16059,7 @@ function headRequest(request) {
16383
16059
  }
16384
16060
  };
16385
16061
  }
16386
- const _sfc_main$v = /* @__PURE__ */ Object.assign({
16062
+ const _sfc_main$u = /* @__PURE__ */ Object.assign({
16387
16063
  name: "Create"
16388
16064
  }, {
16389
16065
  __name: "index",
@@ -16474,8 +16150,8 @@ const _sfc_main$v = /* @__PURE__ */ Object.assign({
16474
16150
  };
16475
16151
  }
16476
16152
  });
16477
- const Create = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-vue-layout-gitcode"]]);
16478
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
16153
+ const Create = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-vue-layout-gitcode"]]);
16154
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
16479
16155
  ...{
16480
16156
  name: "DocumentCenter"
16481
16157
  },
@@ -16489,19 +16165,19 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
16489
16165
  return openBlock(), createBlock(GLink, {
16490
16166
  variant: "text",
16491
16167
  class: normalizeClass(["g-toolbar-docs", _ctx.whiteColor ? "white" : "black"]),
16492
- href: unref(currentHelpDocsAiCommunityUrl)(),
16168
+ href: "https://docs.gitcode.com/docs/help/home/ai-community/",
16493
16169
  target: "_blank"
16494
16170
  }, {
16495
16171
  default: withCtx(() => [
16496
16172
  createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.header.aihub.documentCenter")), 1)
16497
16173
  ]),
16498
16174
  _: 1
16499
- }, 8, ["class", "href"]);
16175
+ }, 8, ["class"]);
16500
16176
  };
16501
16177
  }
16502
16178
  });
16503
- const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-vue-layout-gitcode"]]);
16504
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
16179
+ const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-vue-layout-gitcode"]]);
16180
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
16505
16181
  ...{
16506
16182
  name: "Notice"
16507
16183
  },
@@ -16536,7 +16212,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
16536
16212
  });
16537
16213
  return (_ctx, _cache) => {
16538
16214
  return openBlock(), createBlock(GLink, {
16539
- href: `${unref(transformUrl)(unref(layoutConfig2).VITE_HOST)}/notice?message_sate=countNotRead`
16215
+ href: `${unref(layoutConfig2).VITE_HOST}/notice?message_sate=countNotRead`
16540
16216
  }, {
16541
16217
  default: withCtx(() => [
16542
16218
  createVNode(unref(Badge), {
@@ -16561,20 +16237,20 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
16561
16237
  };
16562
16238
  }
16563
16239
  });
16564
- const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-vue-layout-gitcode"]]);
16565
- const _hoisted_1$p = {
16240
+ const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-vue-layout-gitcode"]]);
16241
+ const _hoisted_1$o = {
16566
16242
  key: 0,
16567
16243
  class: "user-level-avatar-badge"
16568
16244
  };
16569
- const _hoisted_2$k = { class: "flex items-center font-medium gap-[4px]" };
16570
- const _hoisted_3$j = ["src"];
16571
- const _hoisted_4$e = { class: "level-name" };
16245
+ const _hoisted_2$i = { class: "flex items-center font-medium gap-[4px]" };
16246
+ const _hoisted_3$f = ["src"];
16247
+ const _hoisted_4$c = { class: "level-name" };
16572
16248
  const _hoisted_5$8 = { class: "level-icon" };
16573
16249
  const _hoisted_6$7 = ["src"];
16574
16250
  const _hoisted_7$4 = { class: "custom-btn" };
16575
16251
  const _hoisted_8$4 = { class: "flex items-center justify-center" };
16576
16252
  const maxLevel = 3;
16577
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
16253
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
16578
16254
  ...{ name: "UserLevel" },
16579
16255
  __name: "UserLevel",
16580
16256
  props: ["accountInfo"],
@@ -16610,7 +16286,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
16610
16286
  if (router2.hasRoute("settingPoints")) {
16611
16287
  router2.push("/setting/points");
16612
16288
  } else {
16613
- location.href = `${transformUrl(layoutConfig2.VITE_HOST)}/setting/points`;
16289
+ location.href = `${layoutConfig2.VITE_HOST}/setting/points`;
16614
16290
  }
16615
16291
  };
16616
16292
  const levelInfo = computed(() => {
@@ -16625,14 +16301,14 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
16625
16301
  class: normalizeClass(["user-level cursor-pointer", { [unref(ThemeType).BLACK]: unref(currentTheme) === unref(ThemeType).BLACK }]),
16626
16302
  onClick: handleUpgrade
16627
16303
  }, [
16628
- __props.accountInfo.need_tips ? (openBlock(), createElementBlock("div", _hoisted_1$p)) : createCommentVNode("", true),
16629
- createElementVNode("div", _hoisted_2$k, [
16304
+ __props.accountInfo.need_tips ? (openBlock(), createElementBlock("div", _hoisted_1$o)) : createCommentVNode("", true),
16305
+ createElementVNode("div", _hoisted_2$i, [
16630
16306
  createElementVNode("img", {
16631
16307
  class: "level-avatar",
16632
16308
  src: levelInfo.value.avatar,
16633
16309
  alt: ""
16634
- }, null, 8, _hoisted_3$j),
16635
- createElementVNode("div", _hoisted_4$e, [
16310
+ }, null, 8, _hoisted_3$f),
16311
+ createElementVNode("div", _hoisted_4$c, [
16636
16312
  createElementVNode("div", null, toDisplayString$1(levelInfo.value.name), 1),
16637
16313
  createElementVNode("div", _hoisted_5$8, [
16638
16314
  createElementVNode("img", {
@@ -16649,23 +16325,15 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
16649
16325
  };
16650
16326
  }
16651
16327
  });
16652
- const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-vue-layout-gitcode"]]);
16653
- const _hoisted_1$o = { class: "g-user-drawer-info-list pl-[16px]" };
16654
- const _hoisted_2$j = { class: "max-w-[200px]" };
16655
- const _hoisted_3$i = ["title"];
16656
- const _hoisted_4$d = ["title"];
16657
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
16328
+ const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-vue-layout-gitcode"]]);
16329
+ const _hoisted_1$n = { class: "g-user-drawer-info-list pl-[16px]" };
16330
+ const _hoisted_2$h = { class: "max-w-[200px]" };
16331
+ const _hoisted_3$e = ["title"];
16332
+ const _hoisted_4$b = ["title"];
16333
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
16658
16334
  __name: "UserAvatarMenu",
16659
- props: {
16660
- isChatBot: { type: Boolean },
16661
- accountInfo: {},
16662
- loginOutFinish: { type: Function },
16663
- inAIHub: { type: Boolean },
16664
- independence: { type: Boolean },
16665
- userMenus: {}
16666
- },
16667
- emits: ["link-click"],
16668
- setup(__props, { emit: __emit }) {
16335
+ props: ["isChatBot", "accountInfo", "loginOutFinish", "inAIHub", "independence", "userMenus"],
16336
+ setup(__props) {
16669
16337
  const layoutConfig2 = useLayoutConfig();
16670
16338
  const API = headRequest(inject("request"));
16671
16339
  const repoInfo = inject("repoInfo");
@@ -16673,11 +16341,9 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
16673
16341
  const userInfo = inject("userInfo");
16674
16342
  const { t: t2, locale: locale2 } = i18n.global;
16675
16343
  const props = __props;
16676
- const emit = __emit;
16677
16344
  const router2 = useRouter();
16678
16345
  const route = useRoute();
16679
16346
  const haveVisited = ref(false);
16680
- const menuContainerRef = ref(null);
16681
16347
  const clearSurveyDelayStatus = () => {
16682
16348
  const surveyDelay = localStorage$2.getItem(HARMONY_VISITED_DATE);
16683
16349
  if (surveyDelay === "true") {
@@ -16685,7 +16351,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
16685
16351
  }
16686
16352
  localStorage$2.removeItem(HARMONY_SURVEY_DELAY);
16687
16353
  };
16688
- const handleLogout = async () => {
16354
+ const logout = async () => {
16689
16355
  var _a, _b;
16690
16356
  const res = await API.toLogout();
16691
16357
  clearSurveyDelayStatus();
@@ -16723,7 +16389,13 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
16723
16389
  ...params
16724
16390
  };
16725
16391
  };
16726
- const menuDataFormat = (data) => {
16392
+ const blockList = computed(() => {
16393
+ if (props.independence) {
16394
+ return hrefList.value;
16395
+ }
16396
+ return routerHref.value;
16397
+ });
16398
+ const menueDataFormat = (data) => {
16727
16399
  data.forEach((item) => {
16728
16400
  if (Array.isArray(item)) {
16729
16401
  item.forEach((item2) => {
@@ -16735,13 +16407,13 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
16735
16407
  });
16736
16408
  return data;
16737
16409
  };
16738
- const userCustomMenus = computed(() => {
16410
+ const userMenusFormat = computed(() => {
16739
16411
  if (props.userMenus) {
16740
- return menuDataFormat(props.userMenus);
16412
+ return menueDataFormat(props.userMenus);
16741
16413
  }
16742
16414
  return [];
16743
16415
  });
16744
- const baseRouterMenus = [
16416
+ const baseRouterMeus = [
16745
16417
  [
16746
16418
  { id: "dashboard", label: t2("gitCodeLayout.header.workbench"), icon: "gt-plane-user", to: getRouterLink("dashboard") },
16747
16419
  { id: "myOrg", label: t2("gitCodeLayout.header.myOrg"), icon: "gt-plane-organization", to: getRouterLink({ name: "settingOrganization" }) },
@@ -16752,20 +16424,20 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
16752
16424
  ],
16753
16425
  [
16754
16426
  { id: "personalSetting", label: t2("gitCodeLayout.header.personSetting"), icon: "gt-plane-setting", to: getRouterLink("setting") },
16755
- { 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"}` },
16756
- { id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", href: currentHelpDocsUrl() }
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: HELP_DOCS_URL }
16757
16429
  ]
16758
16430
  ];
16759
- const routerMenuList = computed(() => {
16431
+ const routerHref = computed(() => {
16760
16432
  var _a;
16761
16433
  return [
16762
- ...((_a = userCustomMenus.value) == null ? void 0 : _a.length) ? userCustomMenus.value : baseRouterMenus,
16434
+ ...((_a = userMenusFormat.value) == null ? void 0 : _a.length) ? userMenusFormat.value : baseRouterMeus,
16763
16435
  [
16764
- { id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action: handleLogout }
16436
+ { id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action: logout }
16765
16437
  ]
16766
16438
  ];
16767
16439
  });
16768
- const baseHrefMenus = [
16440
+ const baseHrefMeus = [
16769
16441
  [
16770
16442
  { id: "dashboard", label: t2("gitCodeLayout.header.workbench"), icon: "gt-plane-user", link: "/dashboard" },
16771
16443
  { id: "myOrg", label: t2("gitCodeLayout.header.myOrg"), icon: "gt-plane-organization", link: "/setting/organization" },
@@ -16776,61 +16448,28 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
16776
16448
  ],
16777
16449
  [
16778
16450
  { id: "personalSetting", label: t2("gitCodeLayout.header.personSetting"), icon: "gt-plane-setting", link: "/setting" },
16779
- { 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"}` },
16780
- { id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", target: "_blank", href: currentHelpDocsUrl() }
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: HELP_DOCS_URL }
16781
16453
  ]
16782
16454
  ];
16783
16455
  const hrefList = computed(() => {
16784
16456
  var _a;
16785
16457
  return [
16786
- ...((_a = userCustomMenus.value) == null ? void 0 : _a.length) ? userCustomMenus.value : baseHrefMenus,
16458
+ ...((_a = userMenusFormat.value) == null ? void 0 : _a.length) ? userMenusFormat.value : baseHrefMeus,
16787
16459
  [
16788
- { id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action: handleLogout }
16460
+ { id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action: logout }
16789
16461
  ]
16790
16462
  ];
16791
16463
  });
16792
- const userMenuList = computed(() => {
16793
- if (props.independence) {
16794
- return hrefList.value;
16795
- }
16796
- return routerMenuList.value;
16797
- });
16798
16464
  function handleClick(item) {
16799
16465
  if (item == null ? void 0 : item.action) {
16800
16466
  item.action();
16801
16467
  }
16802
16468
  if (item == null ? void 0 : item.link) {
16803
16469
  const link = `${layoutConfig2.VITE_HOST}${item.link}`;
16804
- emit("link-click");
16805
- setTimeout(() => {
16806
- window.open(link, "_self");
16807
- }, 100);
16470
+ window.open(link, "_self");
16808
16471
  }
16809
16472
  }
16810
- const handleLinkClick = (e) => {
16811
- const target = e.target;
16812
- const linkElement = target.closest("a.g-link, .g-link");
16813
- if (!linkElement) return;
16814
- const isDisabled = linkElement.hasAttribute("disabled") || linkElement.getAttribute("disabled") === "true" || linkElement.classList.contains("noPointer");
16815
- if (isDisabled) return;
16816
- const href = linkElement.getAttribute("href");
16817
- const to = linkElement.getAttribute("to");
16818
- const isValidHref = href && href !== "javascript:void(0)" && href !== "#" && href !== "";
16819
- const isValidTo = to && to !== "";
16820
- if (isValidHref || isValidTo) {
16821
- emit("link-click");
16822
- }
16823
- };
16824
- onMounted(() => {
16825
- if (menuContainerRef.value) {
16826
- menuContainerRef.value.addEventListener("click", handleLinkClick, true);
16827
- }
16828
- });
16829
- onBeforeUnmount(() => {
16830
- if (menuContainerRef.value) {
16831
- menuContainerRef.value.removeEventListener("click", handleLinkClick, true);
16832
- }
16833
- });
16834
16473
  const getVisit = async (value) => {
16835
16474
  const visitedDate = localStorage$2.getItem(AVATAR_VISITED_DATE);
16836
16475
  const nowDate = (/* @__PURE__ */ new Date()).toLocaleDateString("zh-CN");
@@ -16841,33 +16480,30 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
16841
16480
  };
16842
16481
  getVisit();
16843
16482
  return (_ctx, _cache) => {
16844
- return openBlock(), createElementBlock("div", {
16845
- ref_key: "menuContainerRef",
16846
- ref: menuContainerRef
16847
- }, [
16483
+ return openBlock(), createElementBlock("div", null, [
16848
16484
  createVNode(GLink, {
16849
16485
  class: "g-user-drawer-info pl-[32px] pr-[16px] cursor-pointer",
16850
- href: `${unref(layoutConfig2).VITE_HOST}/${_ctx.accountInfo.username}`,
16486
+ href: `${unref(layoutConfig2).VITE_HOST}/${__props.accountInfo.username}`,
16851
16487
  key: "myPage",
16852
- target: _ctx.isChatBot ? "_blank" : ""
16488
+ target: __props.isChatBot ? "_blank" : ""
16853
16489
  }, {
16854
16490
  default: withCtx(() => [
16855
- createVNode(_sfc_main$B, {
16856
- name: _ctx.accountInfo.nickname,
16857
- src: _ctx.accountInfo.avatar,
16491
+ createVNode(_sfc_main$z, {
16492
+ name: __props.accountInfo.nickname,
16493
+ src: __props.accountInfo.avatar,
16858
16494
  width: 52,
16859
16495
  height: 52
16860
16496
  }, null, 8, ["name", "src"]),
16861
- createElementVNode("div", _hoisted_1$o, [
16862
- createElementVNode("div", _hoisted_2$j, [
16497
+ createElementVNode("div", _hoisted_1$n, [
16498
+ createElementVNode("div", _hoisted_2$h, [
16863
16499
  createElementVNode("p", {
16864
16500
  class: "g-user-drawer-info-list-name ellipsis",
16865
- title: _ctx.accountInfo.nickname
16866
- }, toDisplayString$1(_ctx.accountInfo.nickname), 9, _hoisted_3$i),
16501
+ title: __props.accountInfo.nickname
16502
+ }, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_3$e),
16867
16503
  createElementVNode("p", {
16868
16504
  class: "g-user-drawer-info-list-id ellipsis",
16869
- title: _ctx.accountInfo.username
16870
- }, "@" + toDisplayString$1(_ctx.accountInfo.username), 9, _hoisted_4$d)
16505
+ title: __props.accountInfo.username
16506
+ }, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_4$b)
16871
16507
  ]),
16872
16508
  createVNode(GIcon, {
16873
16509
  name: "gt-line-right",
@@ -16877,13 +16513,13 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
16877
16513
  ]),
16878
16514
  _: 1
16879
16515
  }, 8, ["href", "target"]),
16880
- !_ctx.inAIHub ? (openBlock(), createBlock(UserLevel, {
16516
+ !__props.inAIHub ? (openBlock(), createBlock(UserLevel, {
16881
16517
  key: 0,
16882
- accountInfo: _ctx.accountInfo
16518
+ accountInfo: __props.accountInfo
16883
16519
  }, null, 8, ["accountInfo"])) : createCommentVNode("", true),
16884
- (openBlock(true), createElementBlock(Fragment, null, renderList(userMenuList.value, (block, index2) => {
16520
+ (openBlock(true), createElementBlock(Fragment, null, renderList(blockList.value, (block, index2) => {
16885
16521
  return openBlock(), createElementBlock("div", {
16886
- class: normalizeClass(["g-user-drawer-block", { "!pt-[0px]": index2 === 0 && _ctx.inAIHub }]),
16522
+ class: normalizeClass(["g-user-drawer-block", { "!pt-[0px]": index2 === 0 && __props.inAIHub }]),
16887
16523
  key: index2
16888
16524
  }, [
16889
16525
  block.component ? (openBlock(), createBlock(resolveDynamicComponent(block.component), {
@@ -16894,7 +16530,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
16894
16530
  ref_for: true
16895
16531
  }, item, {
16896
16532
  onClick: ($event) => handleClick(item),
16897
- target: _ctx.isChatBot && !item.action ? "_blank" : item.target || ""
16533
+ target: __props.isChatBot && !item.action ? "_blank" : item.target || ""
16898
16534
  }), {
16899
16535
  default: withCtx(() => [
16900
16536
  item.icon ? (openBlock(), createBlock(GIcon, {
@@ -16909,24 +16545,24 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
16909
16545
  }), 128))
16910
16546
  ], 2);
16911
16547
  }), 128))
16912
- ], 512);
16548
+ ]);
16913
16549
  };
16914
16550
  }
16915
16551
  });
16916
- const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-vue-layout-gitcode"]]);
16917
- const _hoisted_1$n = { class: "g-user-avatar flex-center ml-1" };
16918
- const _hoisted_2$i = {
16552
+ const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-vue-layout-gitcode"]]);
16553
+ const _hoisted_1$m = { class: "g-user-avatar flex-center ml-1" };
16554
+ const _hoisted_2$g = {
16919
16555
  key: 0,
16920
16556
  class: "g-user-avatar__badge"
16921
16557
  };
16922
- const _hoisted_3$h = { class: "g-user-avatar flex-center ml-1" };
16923
- const _hoisted_4$c = {
16558
+ const _hoisted_3$d = { class: "g-user-avatar flex-center ml-1" };
16559
+ const _hoisted_4$a = {
16924
16560
  key: 0,
16925
16561
  class: "g-user-avatar__badge"
16926
16562
  };
16927
16563
  const _hoisted_5$7 = { class: "g-user-drawer" };
16928
16564
  const _hoisted_6$6 = { class: "p-[16px] pt-[8px] pb-0 flex justify-end items-center h-[48px]" };
16929
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
16565
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16930
16566
  ...{
16931
16567
  name: "UserAvatar"
16932
16568
  },
@@ -16936,27 +16572,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
16936
16572
  const { isMobile } = usePageResize();
16937
16573
  const drawerVisible = ref(false);
16938
16574
  const userInfo = inject("userInfo");
16939
- const getLocalStorageUserInfo = () => {
16940
- try {
16941
- return JSON.parse(localStorage$2.getItem("userInfo") || "{}");
16942
- } catch {
16943
- return {};
16944
- }
16945
- };
16946
- const accountInfo = ref(userInfo.value || getLocalStorageUserInfo());
16575
+ const accountInfo = computed(() => {
16576
+ return userInfo.value || JSON.parse(localStorage$2.getItem("userInfo") || "{}");
16577
+ });
16947
16578
  const haveVisited = ref(false);
16948
16579
  const useReport2 = inject("useReport");
16949
- watch(
16950
- () => userInfo.value,
16951
- (newValue) => {
16952
- if (newValue) {
16953
- accountInfo.value = newValue;
16954
- } else {
16955
- accountInfo.value = getLocalStorageUserInfo();
16956
- }
16957
- },
16958
- { immediate: true }
16959
- );
16960
16580
  const handleToggle = (status) => {
16961
16581
  visitedClick();
16962
16582
  const params = { need_tips: accountInfo.value.need_tips, prompt_style: accountInfo.value.style_tips };
@@ -17008,21 +16628,9 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
17008
16628
  const appDom = getScrollDom();
17009
16629
  appDom && (appDom.style.overflow = status ? "hidden" : "unset");
17010
16630
  };
17011
- const resetOverflow = () => {
17012
- const appDom = getScrollDom();
17013
- if (appDom && appDom.style.overflow === "hidden") {
17014
- appDom.style.overflow = "unset";
17015
- }
17016
- };
17017
16631
  const handleStorageChange = (e) => {
17018
16632
  if (e.key === "userInfo") {
17019
- if (!userInfo.value) {
17020
- try {
17021
- accountInfo.value = JSON.parse(e.newValue || "{}");
17022
- } catch {
17023
- accountInfo.value = {};
17024
- }
17025
- }
16633
+ accountInfo.value = JSON.parse(e.newValue || "{}");
17026
16634
  }
17027
16635
  };
17028
16636
  onMounted(() => {
@@ -17030,7 +16638,6 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
17030
16638
  });
17031
16639
  onBeforeUnmount(() => {
17032
16640
  window.removeEventListener("storage", handleStorageChange);
17033
- resetOverflow();
17034
16641
  });
17035
16642
  return (_ctx, _cache) => {
17036
16643
  return openBlock(), createElementBlock(Fragment, null, [
@@ -17038,12 +16645,12 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
17038
16645
  key: 0,
17039
16646
  onClick: _cache[0] || (_cache[0] = ($event) => drawerVisible.value = true)
17040
16647
  }, [
17041
- createElementVNode("div", _hoisted_1$n, [
17042
- createVNode(_sfc_main$B, {
16648
+ createElementVNode("div", _hoisted_1$m, [
16649
+ createVNode(_sfc_main$z, {
17043
16650
  name: accountInfo.value.nickname,
17044
- src: unref(transformUrl)(accountInfo.value.avatar)
16651
+ src: accountInfo.value.avatar
17045
16652
  }, null, 8, ["name", "src"]),
17046
- accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, _cache[4] || (_cache[4] = [
16653
+ accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, _cache[4] || (_cache[4] = [
17047
16654
  createElementVNode("div", null, null, -1)
17048
16655
  ]))) : createCommentVNode("", true)
17049
16656
  ])
@@ -17063,18 +16670,17 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
17063
16670
  accountInfo: accountInfo.value,
17064
16671
  isChatBot: __props.isChatBot,
17065
16672
  inAIHub: __props.inAIHub,
17066
- userMenus: __props.userMenus,
17067
- onLinkClick: resetOverflow
16673
+ userMenus: __props.userMenus
17068
16674
  }, null, 8, ["independence", "loginOutFinish", "accountInfo", "isChatBot", "inAIHub", "userMenus"])
17069
16675
  ])
17070
16676
  ]),
17071
16677
  default: withCtx(() => [
17072
- createElementVNode("div", _hoisted_3$h, [
17073
- createVNode(_sfc_main$B, {
16678
+ createElementVNode("div", _hoisted_3$d, [
16679
+ createVNode(_sfc_main$z, {
17074
16680
  name: accountInfo.value.nickname,
17075
- src: unref(transformUrl)(accountInfo.value.avatar)
16681
+ src: accountInfo.value.avatar
17076
16682
  }, null, 8, ["name", "src"]),
17077
- accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$c, _cache[5] || (_cache[5] = [
16683
+ accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$a, _cache[5] || (_cache[5] = [
17078
16684
  createElementVNode("div", null, null, -1)
17079
16685
  ]))) : createCommentVNode("", true)
17080
16686
  ])
@@ -17105,8 +16711,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
17105
16711
  isChatBot: __props.isChatBot,
17106
16712
  inAIHub: __props.inAIHub,
17107
16713
  userMenus: __props.userMenus,
17108
- onClick: _cache[2] || (_cache[2] = ($event) => drawerVisible.value = false),
17109
- onLinkClick: resetOverflow
16714
+ onClick: _cache[2] || (_cache[2] = ($event) => drawerVisible.value = false)
17110
16715
  }, null, 8, ["independence", "loginOutFinish", "accountInfo", "isChatBot", "inAIHub", "userMenus"])
17111
16716
  ])
17112
16717
  ]),
@@ -17116,7 +16721,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
17116
16721
  };
17117
16722
  }
17118
16723
  });
17119
- const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-vue-layout-gitcode"]]);
16724
+ const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-vue-layout-gitcode"]]);
17120
16725
  var EVENT_NAME = /* @__PURE__ */ ((EVENT_NAME2) => {
17121
16726
  EVENT_NAME2["START_SEARCH"] = "开始搜索";
17122
16727
  EVENT_NAME2["SEARCH"] = "搜索";
@@ -17204,16 +16809,16 @@ const setlocalVistHistory = (data, localType) => {
17204
16809
  localStorage$2.setItem(storeName, JSON.stringify(cur));
17205
16810
  return cur;
17206
16811
  };
17207
- const _hoisted_1$m = { class: "g-header-search-prefix" };
17208
- const _hoisted_2$h = ["innerHTML"];
17209
- const _hoisted_3$g = { class: "g-header-search-suffix-splitline" };
17210
- const _hoisted_4$b = { class: "g-header-search-suffix-suffixIcon" };
16812
+ const _hoisted_1$l = { class: "g-header-search-prefix" };
16813
+ const _hoisted_2$f = ["innerHTML"];
16814
+ const _hoisted_3$c = { class: "g-header-search-suffix-splitline" };
16815
+ const _hoisted_4$9 = { class: "g-header-search-suffix-suffixIcon" };
17211
16816
  const _hoisted_5$6 = { class: "history-list" };
17212
16817
  const _hoisted_6$5 = {
17213
16818
  key: 1,
17214
16819
  class: "aireposearch flex-1"
17215
16820
  };
17216
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
16821
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17217
16822
  __name: "index",
17218
16823
  props: {
17219
16824
  inAIHub: { type: Boolean },
@@ -17224,13 +16829,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17224
16829
  var _a;
17225
16830
  const layoutConfig2 = useLayoutConfig();
17226
16831
  const { t: $t } = i18n.global;
17227
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-dhOXEBLy.js"));
17228
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-CDMu92u8.js"));
17229
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DoZtNN-H.js"));
17230
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-czyMAOt3.js"));
17231
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BgFyK42o.js"));
17232
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-BTSgbs3N.js"));
17233
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-CVN-rtvs.js"));
16832
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BZpDrC6-.js"));
16833
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-jO_8UINd.js"));
16834
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-D7b4NrGu.js"));
16835
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-gD4XlWI-.js"));
16836
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-803XzJrl.js"));
16837
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DTDUKd0T.js"));
16838
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-DoFx6I6g.js"));
17234
16839
  const props = __props;
17235
16840
  const repoInfo = inject("repoInfo");
17236
16841
  const orgInfo = inject("orgInfo");
@@ -17468,7 +17073,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17468
17073
  } else {
17469
17074
  hotUrl = `${hotUrl}?source_module=search_box_hot_word`;
17470
17075
  }
17471
- window.open(transformUrl(hotUrl), "_blank");
17076
+ window.open(hotUrl, "_blank");
17472
17077
  return;
17473
17078
  }
17474
17079
  isSearchHistory.value = false;
@@ -17779,7 +17384,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17779
17384
  ref: inputRef
17780
17385
  }, {
17781
17386
  prefix: withCtx(() => [
17782
- createElementVNode("div", _hoisted_1$m, [
17387
+ createElementVNode("div", _hoisted_1$l, [
17783
17388
  createVNode(GIcon, {
17784
17389
  name: "gt-search",
17785
17390
  class: "g-header-search-icon",
@@ -17802,7 +17407,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17802
17407
  class: "quick-tips",
17803
17408
  innerHTML: unref(quickTips),
17804
17409
  onClick: onInputClick
17805
- }, null, 8, _hoisted_2$h)), [
17410
+ }, null, 8, _hoisted_2$f)), [
17806
17411
  [vShow, placeholderVisible.value]
17807
17412
  ]),
17808
17413
  withDirectives(createVNode(unref(SearchPrefixTag), {
@@ -17835,10 +17440,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17835
17440
  }, null, 512), [
17836
17441
  [vShow, searchStr.value]
17837
17442
  ]),
17838
- withDirectives(createElementVNode("span", _hoisted_3$g, "|", 512), [
17443
+ withDirectives(createElementVNode("span", _hoisted_3$c, "|", 512), [
17839
17444
  [vShow, searchStr.value]
17840
17445
  ]),
17841
- createElementVNode("div", _hoisted_4$b, [
17446
+ createElementVNode("div", _hoisted_4$9, [
17842
17447
  createVNode(GIcon, {
17843
17448
  name: "search",
17844
17449
  class: "g-header-search-icon",
@@ -17876,86 +17481,23 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17876
17481
  };
17877
17482
  }
17878
17483
  });
17879
- const Search = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-vue-layout-gitcode"]]);
17880
- const _hoisted_1$l = { class: "announce-content" };
17881
- const _hoisted_2$g = { class: "text-left" };
17882
- const _hoisted_3$f = ["href"];
17883
- const _hoisted_4$a = { class: "announce-handle-wrapper" };
17884
- const ANNOUNCE_STATUS_KEY = "site_announcement_status";
17885
- const announcementWidth = "100%";
17886
- const announcementLeft = "0";
17887
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
17888
- ...{ name: "SiteAnnouncement" },
17889
- __name: "SiteAnnouncement",
17890
- setup(__props) {
17891
- const { t: t2 } = i18n.global;
17892
- const isShow = ref(SITE_STATUS.DISABLE);
17893
- const handleClose = (type) => {
17894
- isShow.value = false;
17895
- {
17896
- const now2 = /* @__PURE__ */ new Date();
17897
- const today = `${now2.getFullYear()}-${String(now2.getMonth() + 1).padStart(2, "0")}-${String(now2.getDate()).padStart(2, "0")}`;
17898
- localStorage$2.setItem(ANNOUNCE_STATUS_KEY, today);
17899
- }
17900
- };
17901
- const migrationAnnounceUrl = computed(() => {
17902
- var _a, _b;
17903
- 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";
17904
- });
17905
- const initShowStatus = () => {
17906
- if (!SITE_STATUS.DISABLE) {
17907
- isShow.value = false;
17908
- return;
17909
- }
17910
- const now2 = /* @__PURE__ */ new Date();
17911
- const deadline = /* @__PURE__ */ new Date("2025-12-31");
17912
- if (now2 >= deadline) {
17913
- isShow.value = false;
17914
- localStorage$2.removeItem(ANNOUNCE_STATUS_KEY);
17915
- return;
17916
- }
17917
- const announceStatus = localStorage$2.getItem(ANNOUNCE_STATUS_KEY);
17918
- if (announceStatus) {
17919
- const today = `${now2.getFullYear()}-${String(now2.getMonth() + 1).padStart(2, "0")}-${String(now2.getDate()).padStart(2, "0")}`;
17920
- if (announceStatus === today) {
17921
- isShow.value = false;
17484
+ const Search = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-vue-layout-gitcode"]]);
17485
+ const vElementExposure = {
17486
+ mounted(el, binding) {
17487
+ let observer = new IntersectionObserver(function(entries2, observer2) {
17488
+ entries2.forEach(function(entry) {
17489
+ var _a;
17490
+ if (entry.isIntersecting) {
17491
+ (_a = binding.value) == null ? void 0 : _a.trigger("expo");
17492
+ observer2.unobserve(entry.target);
17922
17493
  }
17923
- }
17924
- };
17925
- onMounted(() => {
17926
- initShowStatus();
17927
- });
17928
- return (_ctx, _cache) => {
17929
- return isShow.value ? (openBlock(), createElementBlock("div", {
17930
- key: 0,
17931
- class: "announce-wrapper",
17932
- style: normalizeStyle(`width: ${announcementWidth};margin-left: ${announcementLeft}`)
17933
- }, [
17934
- createElementVNode("div", _hoisted_1$l, [
17935
- createElementVNode("div", _hoisted_2$g, [
17936
- createVNode(GIcon, {
17937
- name: "gt-plane-warningCircular-blue",
17938
- size: "16",
17939
- class: "mr-2"
17940
- }),
17941
- createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.content")), 1),
17942
- createElementVNode("a", {
17943
- class: "announce-detail",
17944
- href: migrationAnnounceUrl.value
17945
- }, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.viewDetail")), 9, _hoisted_3$f)
17946
- ])
17947
- ]),
17948
- createElementVNode("div", _hoisted_4$a, [
17949
- createElementVNode("span", {
17950
- class: "announce-handle",
17951
- onClick: _cache[0] || (_cache[0] = ($event) => handleClose())
17952
- }, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.close")), 1)
17953
- ])
17954
- ], 4)) : createCommentVNode("", true);
17955
- };
17494
+ });
17495
+ }, { threshold: 0 });
17496
+ observer.observe(el);
17497
+ },
17498
+ beforeUnmount() {
17956
17499
  }
17957
- });
17958
- const SiteAnnouncement = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-vue-layout-gitcode"]]);
17500
+ };
17959
17501
  const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, loginFuncOpts }) => {
17960
17502
  const urlParams = new URLSearchParams(window.location.search);
17961
17503
  const hasLoginParam = urlParams.get("isLogin") === "9";
@@ -17963,7 +17505,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
17963
17505
  loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
17964
17506
  }
17965
17507
  };
17966
- const NoticeModal = defineAsyncComponent(() => import("./notice-BejzcUzx.js"));
17508
+ const NoticeModal = defineAsyncComponent(() => import("./notice-BJPAGOXm.js"));
17967
17509
  function clearNotice() {
17968
17510
  if (localStorage$2.getItem("validator_email")) {
17969
17511
  localStorage$2.removeItem("validator_email");
@@ -17991,12 +17533,12 @@ function useNotification() {
17991
17533
  };
17992
17534
  }
17993
17535
  const _hoisted_1$k = { class: "g-toolbar-left items-center allow-click-stop flex-[1] min-w-0" };
17994
- const _hoisted_2$f = { key: 0 };
17995
- const _hoisted_3$e = {
17536
+ const _hoisted_2$e = { key: 0 };
17537
+ const _hoisted_3$b = {
17996
17538
  key: 1,
17997
17539
  class: "search-avatar flex-1 flex items-center justify-center"
17998
17540
  };
17999
- const _hoisted_4$9 = { class: "flex items-center gap-[8px]" };
17541
+ const _hoisted_4$8 = { class: "flex items-center gap-[8px]" };
18000
17542
  const _hoisted_5$5 = {
18001
17543
  key: 1,
18002
17544
  class: "g-header-body"
@@ -18095,13 +17637,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18095
17637
  const { isMobile } = usePageResize();
18096
17638
  const { widthType } = usePageResize();
18097
17639
  const headerRef = ref(null);
18098
- const { height } = useElementSize(headerRef);
18099
- const { setHeaderHeight } = useHeaderHeight();
18100
- watch(height, (newHeight) => {
18101
- if (newHeight) {
18102
- setHeaderHeight(newHeight);
18103
- }
18104
- }, { immediate: true });
17640
+ const { height = 56 } = useElementSize(headerRef);
18105
17641
  const GrayBgSceneValue = [SceneValue.repo, SceneValue.org, SceneValue.user];
18106
17642
  const headerClassName = computed(() => {
18107
17643
  var _a2, _b;
@@ -18348,13 +17884,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18348
17884
  emit("resetPwdDirectlySuccess");
18349
17885
  });
18350
17886
  window.addEventListener("message", (event) => {
18351
- var _a2, _b, _c, _d, _e, _f;
17887
+ var _a2, _b;
18352
17888
  const action = HandleParentWindowGetLoginInfo(props.request);
18353
- if (((_a2 = event == null ? void 0 : event.data) == null ? void 0 : _a2.type) === "main_report") {
18354
- 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 });
18355
- }
18356
- if ([AuthResType.SUCCESS, AuthResType.FAIL].includes((_e = event.data) == null ? void 0 : _e.type)) {
18357
- action[(_f = event.data) == null ? void 0 : _f.type](event);
17889
+ if ([AuthResType.SUCCESS, AuthResType.FAIL].includes((_a2 = event.data) == null ? void 0 : _a2.type)) {
17890
+ action[(_b = event.data) == null ? void 0 : _b.type](event);
18358
17891
  }
18359
17892
  });
18360
17893
  });
@@ -18368,21 +17901,6 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18368
17901
  const handleCloseStickyNotice = () => {
18369
17902
  closeStickyNotice.value = true;
18370
17903
  };
18371
- const logoConfig = getCurrentLogoMap();
18372
- const logoStyle = computed(() => {
18373
- const isBlackTheme = currentTheme.value === "black";
18374
- let logoUrl = isBlackTheme ? logoConfig.siteLogoWhite : logoConfig.siteLogoDark;
18375
- if (inAIHub.value) {
18376
- logoUrl = isBlackTheme ? logoConfig.aiLogoWhite : logoConfig.aiLogoDark;
18377
- }
18378
- const backgroundSize = isMobile.value ? "cover" : "contain";
18379
- return {
18380
- backgroundImage: `url(${logoUrl})`,
18381
- backgroundRepeat: "no-repeat",
18382
- backgroundPosition: "0 center",
18383
- backgroundSize
18384
- };
18385
- });
18386
17904
  return (_ctx, _cache) => {
18387
17905
  var _a2, _b, _c, _d;
18388
17906
  return openBlock(), createElementBlock("div", {
@@ -18410,7 +17928,6 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18410
17928
  ], 4)), [
18411
17929
  [unref(vElementExposure), { trigger: (type) => handleStickyNoticeExpo() }]
18412
17930
  ]) : createCommentVNode("", true),
18413
- createVNode(SiteAnnouncement),
18414
17931
  withDirectives((openBlock(), createElementBlock("div", {
18415
17932
  class: "g-toolbar w-full overflow-hidden allow-click-stop",
18416
17933
  onClick: withModifiers(handleToolbarClick, ["stop"])
@@ -18431,16 +17948,14 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18431
17948
  })) : createCommentVNode("", true),
18432
17949
  showNameAndIcon.value && _ctx.independence || inAIHub.value ? (openBlock(), createBlock(GLink, {
18433
17950
  key: 1,
18434
- class: normalizeClass(["g-toolbar-left-logo", [inAIHub.value ? "ai-logo" : ""]]),
18435
- style: normalizeStyle(logoStyle.value),
17951
+ class: normalizeClass(["g-toolbar-left-logo", [unref(currentTheme), inAIHub.value ? "ai-logo" : ""]]),
18436
17952
  href: inAIHub.value ? `${unref(layoutConfig2).VITE_AI_HOST}` : `${unref(layoutConfig2).VITE_HOST}?p=seo`
18437
- }, null, 8, ["class", "style", "href"])) : createCommentVNode("", true),
17953
+ }, null, 8, ["class", "href"])) : createCommentVNode("", true),
18438
17954
  showNameAndIcon.value && !_ctx.independence ? (openBlock(), createBlock(GLink, {
18439
17955
  key: 2,
18440
- class: normalizeClass(["g-toolbar-left-logo", [inAIHub.value ? "ai-logo" : ""]]),
18441
- style: normalizeStyle(logoStyle.value),
17956
+ class: normalizeClass(["g-toolbar-left-logo", [unref(currentTheme), inAIHub.value ? "ai-logo" : ""]]),
18442
17957
  to: { name: "home" }
18443
- }, null, 8, ["class", "style"])) : createCommentVNode("", true)
17958
+ }, null, 8, ["class"])) : createCommentVNode("", true)
18444
17959
  ]),
18445
17960
  isModuleVisible(unref(HeaderDisplayItem).CUSTOM_CONTENT) ? (openBlock(), createElementBlock("div", {
18446
17961
  key: 0,
@@ -18464,10 +17979,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18464
17979
  }, 8, ["scene", "isLogin", "errorCode", "orgProps", "repoProps", "userProps"])) : createCommentVNode("", true)
18465
17980
  ], 2)) : createCommentVNode("", true)
18466
17981
  ]),
18467
- _ctx.$slots.headerMiddleRight ? (openBlock(), createElementBlock("div", _hoisted_2$f, [
17982
+ _ctx.$slots.headerMiddleRight ? (openBlock(), createElementBlock("div", _hoisted_2$e, [
18468
17983
  renderSlot(_ctx.$slots, "headerMiddleRight", {}, void 0, true)
18469
17984
  ])) : createCommentVNode("", true),
18470
- !inAIHub.value ? (openBlock(), createElementBlock("div", _hoisted_3$e, [
17985
+ !inAIHub.value ? (openBlock(), createElementBlock("div", _hoisted_3$b, [
18471
17986
  isModuleVisible(unref(HeaderDisplayItem).SEARCH_BUTTON) ? renderSlot(_ctx.$slots, "search", { key: 0 }, () => [
18472
17987
  (openBlock(), createBlock(Search, {
18473
17988
  inAIHub: inAIHub.value,
@@ -18488,9 +18003,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18488
18003
  createElementVNode("div", {
18489
18004
  class: normalizeClass(["g-toolbar-right gap-[16px] flex-[1] justify-end max-md:gap-[12px] allow-click-stop", inAIHub.value ? "flex-none" : ""])
18490
18005
  }, [
18491
- createElementVNode("div", _hoisted_4$9, [
18492
- createVNode(ClaimPower, { config: claimPowerConfig.value }, null, 8, ["config"]),
18493
- isModuleVisible(unref(HeaderDisplayItem).DEEPSEEK_BUTTON) ? (openBlock(), createBlock(ChatBot, { key: 0 })) : createCommentVNode("", true)
18006
+ createElementVNode("div", _hoisted_4$8, [
18007
+ createVNode(ClaimPower, { config: claimPowerConfig.value }, null, 8, ["config"])
18494
18008
  ]),
18495
18009
  !_ctx.isLogin ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
18496
18010
  isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
@@ -18563,7 +18077,6 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18563
18077
  }
18564
18078
  });
18565
18079
  const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-vue-layout-gitcode"]]);
18566
- const layoutConfig$1 = useLayoutConfig();
18567
18080
  const useConfigSide = (request, sceneValue) => {
18568
18081
  const API = asideRequest(request);
18569
18082
  const route = useRoute();
@@ -18620,30 +18133,10 @@ const useConfigSide = (request, sceneValue) => {
18620
18133
  return Object.values(grouped);
18621
18134
  };
18622
18135
  const fetchArea = async () => {
18623
- var _a, _b;
18136
+ var _a;
18624
18137
  sideLoading.value = true;
18625
18138
  const res = await API.getAsideConfig();
18626
- let asideList = (((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.data) || []).map((item) => {
18627
- let processedUrl = item.left_menu_url;
18628
- if (processedUrl == null ? void 0 : processedUrl.startsWith("https://competition.")) {
18629
- processedUrl = replaceHost({ url: processedUrl, customHost: transformUrl(layoutConfig$1.VITE_COMPETITION_HOST) });
18630
- } else if (processedUrl == null ? void 0 : processedUrl.startsWith("https://ai.")) {
18631
- processedUrl = replaceHost({ url: processedUrl, customHost: transformUrl(layoutConfig$1.VITE_AI_HOST) });
18632
- } else {
18633
- processedUrl = transformUrl(processedUrl);
18634
- }
18635
- return {
18636
- ...item,
18637
- left_menu_url: processedUrl,
18638
- left_menu_logo: transformUrl(item.left_menu_logo),
18639
- left_menu_logo_black: transformUrl(item.left_menu_logo_black),
18640
- left_menu_logo_hover: transformUrl(item.left_menu_logo_hover),
18641
- left_menu_logo_hover_black: transformUrl(item.left_menu_logo_hover_black)
18642
- };
18643
- });
18644
- if (typeof window !== "undefined" && GUI_YANG_GITCODE_HOST && ((_b = window.location) == null ? void 0 : _b.origin.includes(GUI_YANG_GITCODE_HOST))) {
18645
- asideList = asideList.filter((item) => !(item.left_menu_url && item.left_menu_url.includes("https://competition.gitcode")));
18646
- }
18139
+ const asideList = ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.data) || [];
18647
18140
  if (judgeIsShowAssetMenus(asideList)) {
18648
18141
  area.value = groupByArea([...assetMenus.value, ...asideList]);
18649
18142
  } else {
@@ -18713,8 +18206,8 @@ const loadUserProjectsInvolved = async (requestFn, params = {}) => {
18713
18206
  var _a;
18714
18207
  return {
18715
18208
  key: item.name,
18716
- web_url: transformUrl(item.web_url),
18717
- avatar: transformUrl(item.avatar),
18209
+ web_url: item.web_url,
18210
+ avatar: item.avatar,
18718
18211
  id: item.id,
18719
18212
  label: item.name,
18720
18213
  namespace: (_a = item.namespace_info) == null ? void 0 : _a.name
@@ -18751,7 +18244,7 @@ var SearchType = /* @__PURE__ */ ((SearchType2) => {
18751
18244
  return SearchType2;
18752
18245
  })(SearchType || {});
18753
18246
  const _hoisted_1$j = { class: "area" };
18754
- const _hoisted_2$e = { class: "w-[208px] max-h-[240px]" };
18247
+ const _hoisted_2$d = { class: "w-[208px] max-h-[240px]" };
18755
18248
  const _sfc_main$m = /* @__PURE__ */ defineComponent({
18756
18249
  __name: "Area",
18757
18250
  props: {
@@ -18765,9 +18258,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18765
18258
  const layoutConfig2 = useLayoutConfig();
18766
18259
  const { t: t2 } = i18n.global;
18767
18260
  const route = useRoute();
18768
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-CqVzziHD.js"));
18769
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-Z99pJkPq.js"));
18770
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-UfLleVcc.js"));
18261
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-NXCr4K25.js"));
18262
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-g8GW_Fx8.js"));
18263
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-Fh5qV4eA.js"));
18771
18264
  const props = __props;
18772
18265
  console.log("slotKeys", props.slotKeys);
18773
18266
  console.log("props", props);
@@ -18951,7 +18444,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18951
18444
  return {
18952
18445
  name: key,
18953
18446
  fn: withCtx(() => [
18954
- createElementVNode("div", _hoisted_2$e, [
18447
+ createElementVNode("div", _hoisted_2$d, [
18955
18448
  createVNode(unref(Menu), {
18956
18449
  class: "menu",
18957
18450
  onSelect: onMenuClick,
@@ -18995,7 +18488,7 @@ function useCookie(key, defaultValue, options = COOKIE_OPTIONS) {
18995
18488
  api.set(key, newValue, options);
18996
18489
  localStorage$2.setItem(key, newValue);
18997
18490
  } else {
18998
- api.remove(key, { domain: COOKIE_DOMAIN() });
18491
+ api.remove(key, { domain: COOKIE_DOMAIN });
18999
18492
  }
19000
18493
  },
19001
18494
  { flush: "sync" }
@@ -19004,8 +18497,8 @@ function useCookie(key, defaultValue, options = COOKIE_OPTIONS) {
19004
18497
  return value;
19005
18498
  }
19006
18499
  const _hoisted_1$i = { class: "tools-item-wrapper" };
19007
- const _hoisted_2$d = { class: "tools-item-wrapper-checkbox" };
19008
- const _hoisted_3$d = ["onClick", "title"];
18500
+ const _hoisted_2$c = { class: "tools-item-wrapper-checkbox" };
18501
+ const _hoisted_3$a = ["onClick", "title"];
19009
18502
  const _sfc_main$l = /* @__PURE__ */ defineComponent({
19010
18503
  __name: "Lang",
19011
18504
  setup(__props) {
@@ -19025,7 +18518,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19025
18518
  return (_ctx, _cache) => {
19026
18519
  return openBlock(), createElementBlock("div", _hoisted_1$i, [
19027
18520
  createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.lang")), 1),
19028
- createElementVNode("div", _hoisted_2$d, [
18521
+ createElementVNode("div", _hoisted_2$c, [
19029
18522
  (openBlock(true), createElementBlock(Fragment, null, renderList(linkList.value, (item) => {
19030
18523
  return openBlock(), createElementBlock("div", mergeProps({
19031
18524
  key: item.label,
@@ -19041,7 +18534,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19041
18534
  color: "var(--theme-icon-fill-weak)",
19042
18535
  class: "checkbox-item-icon"
19043
18536
  }, null, 8, ["name"])
19044
- ], 16, _hoisted_3$d);
18537
+ ], 16, _hoisted_3$a);
19045
18538
  }), 128))
19046
18539
  ])
19047
18540
  ]);
@@ -19049,8 +18542,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19049
18542
  }
19050
18543
  });
19051
18544
  const _hoisted_1$h = { class: "tools-item-wrapper" };
19052
- const _hoisted_2$c = { class: "tools-item-wrapper-checkbox" };
19053
- const _hoisted_3$c = ["onClick", "title"];
18545
+ const _hoisted_2$b = { class: "tools-item-wrapper-checkbox" };
18546
+ const _hoisted_3$9 = ["onClick", "title"];
19054
18547
  const _sfc_main$k = /* @__PURE__ */ defineComponent({
19055
18548
  __name: "Theme",
19056
18549
  setup(__props) {
@@ -19078,7 +18571,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
19078
18571
  return (_ctx, _cache) => {
19079
18572
  return openBlock(), createElementBlock("div", _hoisted_1$h, [
19080
18573
  createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.theme")), 1),
19081
- createElementVNode("div", _hoisted_2$c, [
18574
+ createElementVNode("div", _hoisted_2$b, [
19082
18575
  (openBlock(true), createElementBlock(Fragment, null, renderList(themeList.value, (item) => {
19083
18576
  return openBlock(), createElementBlock("div", mergeProps({
19084
18577
  key: item.value,
@@ -19094,7 +18587,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
19094
18587
  color: "var(--theme-icon-fill-weak)",
19095
18588
  class: "checkbox-item-icon"
19096
18589
  }, null, 8, ["name"])
19097
- ], 16, _hoisted_3$c);
18590
+ ], 16, _hoisted_3$9);
19098
18591
  }), 128))
19099
18592
  ])
19100
18593
  ]);
@@ -19102,8 +18595,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
19102
18595
  }
19103
18596
  });
19104
18597
  const _hoisted_1$g = { class: "leading-[16px]" };
19105
- const _hoisted_2$b = { class: "aside-footer-tools-item-dropdown-item" };
19106
- const _hoisted_3$b = { class: "aside-footer-tools-item-dropdown-item" };
18598
+ const _hoisted_2$a = { class: "aside-footer-tools-item-dropdown-item" };
18599
+ const _hoisted_3$8 = { class: "aside-footer-tools-item-dropdown-item" };
19107
18600
  const _sfc_main$j = /* @__PURE__ */ defineComponent({
19108
18601
  __name: "Settings",
19109
18602
  props: {
@@ -19120,12 +18613,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
19120
18613
  "overlay-class": "footer-tools-setting-dropdown"
19121
18614
  }, {
19122
18615
  menu: withCtx(() => [
19123
- withDirectives(createElementVNode("div", _hoisted_2$b, [
18616
+ withDirectives(createElementVNode("div", _hoisted_2$a, [
19124
18617
  createVNode(_sfc_main$k)
19125
18618
  ], 512), [
19126
18619
  [vShow, _ctx.showThemeSetting]
19127
18620
  ]),
19128
- withDirectives(createElementVNode("div", _hoisted_3$b, [
18621
+ withDirectives(createElementVNode("div", _hoisted_3$8, [
19129
18622
  createVNode(_sfc_main$l)
19130
18623
  ], 512), [
19131
18624
  [vShow, _ctx.showLangSetting]
@@ -19157,7 +18650,6 @@ const FEEDBACK_CENTER_URL = "https://gitcode.com/Gitcode-offical-team/GitCode-Do
19157
18650
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
19158
18651
  __name: "SubMenuList",
19159
18652
  setup(__props) {
19160
- const layoutConfig2 = useLayoutConfig();
19161
18653
  const { t: t2 } = i18n.global;
19162
18654
  const isEn = computed(() => {
19163
18655
  return getLocaleLang() === LANG_EN;
@@ -19167,13 +18659,13 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
19167
18659
  {
19168
18660
  name: t2("gitCodeLayout.header.helpDocument"),
19169
18661
  icon: "gt-line-file",
19170
- url: currentHelpDocsUrl(),
18662
+ url: HELP_DOCS_URL,
19171
18663
  target: "_blank"
19172
18664
  },
19173
18665
  {
19174
18666
  name: t2("gitCodeLayout.home.feedbackCenter"),
19175
18667
  icon: "gt-line-Checks",
19176
- url: replaceHost({ url: FEEDBACK_CENTER_URL, customHost: layoutConfig2.VITE_HOST }),
18668
+ url: FEEDBACK_CENTER_URL,
19177
18669
  target: "_self"
19178
18670
  }
19179
18671
  ];
@@ -19206,7 +18698,6 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
19206
18698
  const SubMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-vue-layout-gitcode"]]);
19207
18699
  const createSetting = () => {
19208
18700
  const { t: t2 } = i18n.global;
19209
- const isGitCodeHost2 = typeof window !== "undefined" && window.location.hostname.includes("gitcode");
19210
18701
  const settings = {
19211
18702
  slogan: t2("gitCodeLayout.home.slogon"),
19212
18703
  copyright: {
@@ -19217,45 +18708,26 @@ const createSetting = () => {
19217
18708
  phone: "400-6868-951",
19218
18709
  serviceTime: "9:00-18:00",
19219
18710
  publicSecurity: t2("gitCodeLayout.common.publicSecurity"),
19220
- publicSecurity_url: "https://beian.mps.gov.cn/#/query/webSearch?code=11010502055713",
19221
18711
  aboutUs: t2("gitCodeLayout.common.aboutUs"),
19222
18712
  recruitment: t2("gitCodeLayout.common.recruitment"),
19223
- price: t2("gitCodeLayout.common.prices"),
19224
- beian_url: "https://www.zhipin.com/gongsi/job/b1eccc6dba1cc0d41Hd60tW0GVc~.html?ka=company-jobs"
18713
+ price: t2("gitCodeLayout.common.prices")
19225
18714
  }
19226
18715
  };
19227
- if (!isGitCodeHost2) {
19228
- settings.slogan = "";
19229
- settings.copyright = {
19230
- digest: (/* @__PURE__ */ new Date()).getFullYear() + " " + t2("gitCodeLayout.home.copyright_atomgit.digest"),
19231
- digestAbbr: (/* @__PURE__ */ new Date()).getFullYear() + " " + t2("gitCodeLayout.home.copyright_atomgit.companyInformation"),
19232
- icp: t2("gitCodeLayout.home.copyright_atomgit.recordInformation"),
19233
- beian: "11010502030143",
19234
- phone: "400-6868-951",
19235
- serviceTime: "9:00-18:00",
19236
- publicSecurity: t2("gitCodeLayout.home.copyright_atomgit.publicSecurity"),
19237
- publicSecurity_url: "",
19238
- aboutUs: t2("gitCodeLayout.common.aboutUs"),
19239
- recruitment: t2("gitCodeLayout.common.recruitment"),
19240
- price: t2("gitCodeLayout.common.prices"),
19241
- beian_url: "https://www.zhipin.com/gongsi/job/b1eccc6dba1cc0d41Hd60tW0GVc~.html?ka=company-jobs"
19242
- };
19243
- }
19244
18716
  return settings;
19245
18717
  };
19246
18718
  const _hoisted_1$f = { class: "aside-footer" };
19247
- const _hoisted_2$a = { class: "remake-message mt-[16px]" };
19248
- const _hoisted_3$a = ["title"];
19249
- const _hoisted_4$8 = { class: "whitespace-nowrap" };
18719
+ const _hoisted_2$9 = { class: "remake-message mt-[16px]" };
18720
+ const _hoisted_3$7 = ["title"];
18721
+ const _hoisted_4$7 = { class: "whitespace-nowrap" };
19250
18722
  const _hoisted_5$4 = {
19251
18723
  href: "https://beian.miit.gov.cn/#/Integrated/index",
19252
18724
  target: "_blank"
19253
18725
  };
19254
- const _hoisted_6$3 = {
19255
- key: 0,
19256
- class: "whitespace-nowrap public-security"
18726
+ const _hoisted_6$3 = { class: "whitespace-nowrap public-security" };
18727
+ const _hoisted_7$2 = {
18728
+ href: "https://beian.mps.gov.cn/#/query/webSearch?code=11010502055713",
18729
+ target: "_blank"
19257
18730
  };
19258
- const _hoisted_7$2 = ["href"];
19259
18731
  const _hoisted_8$2 = {
19260
18732
  href: "https://www.huaweicloud.com/",
19261
18733
  target: "_blank",
@@ -19276,21 +18748,18 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19276
18748
  });
19277
18749
  return (_ctx, _cache) => {
19278
18750
  return openBlock(), createElementBlock("div", _hoisted_1$f, [
19279
- createElementVNode("div", _hoisted_2$a, [
18751
+ createElementVNode("div", _hoisted_2$9, [
19280
18752
  createElementVNode("p", {
19281
18753
  class: "break-all whitespace-normal",
19282
18754
  title: unref(copyright).digestAbbr
19283
- }, " © " + toDisplayString$1(unref(copyright).digestAbbr), 9, _hoisted_3$a),
19284
- createElementVNode("p", _hoisted_4$8, [
18755
+ }, " © " + toDisplayString$1(unref(copyright).digestAbbr), 9, _hoisted_3$7),
18756
+ createElementVNode("p", _hoisted_4$7, [
19285
18757
  createElementVNode("a", _hoisted_5$4, toDisplayString$1(unref(copyright).icp), 1)
19286
18758
  ]),
19287
- unref(copyright).publicSecurity_url ? (openBlock(), createElementBlock("p", _hoisted_6$3, [
18759
+ createElementVNode("p", _hoisted_6$3, [
19288
18760
  _cache[0] || (_cache[0] = createElementVNode("img", { src: "//g.csdnimg.cn/common/csdn-footer/images/badge.png" }, null, -1)),
19289
- createElementVNode("a", {
19290
- href: unref(copyright).publicSecurity_url,
19291
- target: "_blank"
19292
- }, toDisplayString$1(unref(copyright).publicSecurity), 9, _hoisted_7$2)
19293
- ])) : createCommentVNode("", true)
18761
+ createElementVNode("a", _hoisted_7$2, toDisplayString$1(unref(copyright).publicSecurity), 1)
18762
+ ])
19294
18763
  ]),
19295
18764
  createElementVNode("p", {
19296
18765
  class: normalizeClass(["whitespace-nowrap mt-[16px] support", { en: isEn.value }])
@@ -19307,23 +18776,23 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19307
18776
  createElementVNode("p", _hoisted_9$2, [
19308
18777
  createVNode(GLink, {
19309
18778
  target: "_blank",
19310
- href: unref(currentHelpDocsAboutUsUrl)()
18779
+ href: "https://docs.gitcode.com/docs/help/home/aboutus/"
19311
18780
  }, {
19312
18781
  default: withCtx(() => [
19313
18782
  createTextVNode(toDisplayString$1(unref(copyright).aboutUs), 1)
19314
18783
  ]),
19315
18784
  _: 1
19316
- }, 8, ["href"]),
18785
+ }),
19317
18786
  _cache[3] || (_cache[3] = createTextVNode("  |   ")),
19318
18787
  createVNode(GLink, {
19319
18788
  target: "_blank",
19320
- href: unref(copyright).beian_url
18789
+ href: "https://www.zhipin.com/gongsi/job/b1eccc6dba1cc0d41Hd60tW0GVc~.html?ka=company-jobs"
19321
18790
  }, {
19322
18791
  default: withCtx(() => [
19323
18792
  createTextVNode(toDisplayString$1(unref(copyright).recruitment), 1)
19324
18793
  ]),
19325
18794
  _: 1
19326
- }, 8, ["href"])
18795
+ })
19327
18796
  ]),
19328
18797
  createElementVNode("ul", _hoisted_10$2, [
19329
18798
  _cache[4] || (_cache[4] = createElementVNode("li", { class: "flex items-center" }, [
@@ -19339,12 +18808,12 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19339
18808
  });
19340
18809
  const ContactInfo = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-vue-layout-gitcode"]]);
19341
18810
  const _hoisted_1$e = { class: "flex-[1] flex flex-col justify-between min-h-0" };
19342
- const _hoisted_2$9 = { key: 0 };
19343
- const _hoisted_3$9 = {
18811
+ const _hoisted_2$8 = { key: 0 };
18812
+ const _hoisted_3$6 = {
19344
18813
  key: 1,
19345
18814
  class: "aside-menus"
19346
18815
  };
19347
- const _hoisted_4$7 = {
18816
+ const _hoisted_4$6 = {
19348
18817
  key: 0,
19349
18818
  class: "line mt-[16px] mb-[6px]"
19350
18819
  };
@@ -19468,12 +18937,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19468
18937
  onScroll: handleScroll,
19469
18938
  onMouseleave: handleMouseLeave
19470
18939
  }, [
19471
- unref(sideLoading) ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
18940
+ unref(sideLoading) ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
19472
18941
  createVNode(unref(Skeleton), {
19473
18942
  loading: unref(sideLoading),
19474
18943
  row: 4
19475
18944
  }, null, 8, ["loading"])
19476
- ])) : (openBlock(), createElementBlock("div", _hoisted_3$9, [
18945
+ ])) : (openBlock(), createElementBlock("div", _hoisted_3$6, [
19477
18946
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayArea.value, (item, index2) => {
19478
18947
  return openBlock(), createElementBlock(Fragment, {
19479
18948
  key: item.id
@@ -19494,7 +18963,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19494
18963
  };
19495
18964
  })
19496
18965
  ]), 1032, ["list", "isLogin", "slotKeys", "sceneValue", "asideSetShowLittle"]),
19497
- !_ctx.asideSetShowLittle && index2 !== displayArea.value.length - 1 ? (openBlock(), createElementBlock("hr", _hoisted_4$7)) : createCommentVNode("", true)
18966
+ !_ctx.asideSetShowLittle && index2 !== displayArea.value.length - 1 ? (openBlock(), createElementBlock("hr", _hoisted_4$6)) : createCommentVNode("", true)
19498
18967
  ], 64);
19499
18968
  }), 128)),
19500
18969
  !_ctx.asideSetShowLittle && isModuleVisible(unref(AsideDisplayItem).LINK) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
@@ -19547,7 +19016,6 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19547
19016
  setup(__props) {
19548
19017
  const route = useRoute();
19549
19018
  const layoutConfig2 = useLayoutConfig();
19550
- const { headerHeight: headerHeight2 } = useHeaderHeight();
19551
19019
  const props = __props;
19552
19020
  const { useReport: useReport2 } = useRequestReport(props.request, props.globalStore);
19553
19021
  provide(
@@ -19564,17 +19032,6 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19564
19032
  if (route.meta.showBgColor) return true;
19565
19033
  return false;
19566
19034
  });
19567
- const logoConfig = getCurrentLogoMap();
19568
- const logoStyle = computed(() => {
19569
- const isBlackTheme = currentTheme.value === "black";
19570
- const logoUrl = isBlackTheme ? logoConfig.siteLogoWhite : logoConfig.siteLogoDark;
19571
- return {
19572
- backgroundImage: `url(${logoUrl})`,
19573
- backgroundRepeat: "no-repeat",
19574
- backgroundPosition: "0 center",
19575
- backgroundSize: "contain"
19576
- };
19577
- });
19578
19035
  const sizeStore = usePageResize();
19579
19036
  const asideSetShow = computed(() => {
19580
19037
  return (props.sceneValue === SceneValue.home && !sizeStore.isMobile.value || props.collapseMode) && !props.disableFlatMode;
@@ -19584,6 +19041,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19584
19041
  const isHome = computed(() => {
19585
19042
  return props.sceneValue === SceneValue.home && ["home", "issues", "kanban", "discussionCreated", "merge", "dashboard"].includes(route.name);
19586
19043
  });
19044
+ usePageResize();
19587
19045
  const asideSize = computed(() => {
19588
19046
  if (props.collapseMode) {
19589
19047
  return ASIDE_MENU_MODE.collapse;
@@ -19652,8 +19110,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19652
19110
  return (_ctx, _cache) => {
19653
19111
  return asideSetShow.value ? (openBlock(), createBlock(ConfigAideContent, {
19654
19112
  key: 0,
19655
- class: normalizeClass(["left-side-bar", { oldWhite: asideSetShowLittleMode.value, higherZIndex: unref(SITE_STATUS).DISABLE }]),
19656
- style: normalizeStyle({ width: mainMarginLeftWidth.value + "px", top: unref(headerHeight2) + "px" }),
19113
+ class: normalizeClass(["left-side-bar", { oldWhite: asideSetShowLittleMode.value }]),
19114
+ style: normalizeStyle({ width: mainMarginLeftWidth.value + "px" }),
19657
19115
  sceneValue: _ctx.sceneValue,
19658
19116
  asideDefaultWidth: mainMarginLeftWidth.value,
19659
19117
  asideSetShowLittle: asideSetShowLittleMode.value,
@@ -19686,11 +19144,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19686
19144
  default: withCtx(() => [
19687
19145
  createElementVNode("div", _hoisted_1$d, [
19688
19146
  createVNode(GLink, {
19689
- class: "g-toolbar-left-logo",
19690
- style: normalizeStyle(logoStyle.value),
19147
+ class: normalizeClass(["g-toolbar-left-logo", unref(currentTheme)]),
19691
19148
  to: _ctx.independence ? "" : { name: "home" },
19692
- href: _ctx.independence ? unref(transformUrl)(unref(layoutConfig2).VITE_HOST) : ""
19693
- }, null, 8, ["style", "to", "href"]),
19149
+ href: _ctx.independence ? unref(layoutConfig2).VITE_HOST : ""
19150
+ }, null, 8, ["class", "to", "href"]),
19694
19151
  createVNode(unref(Button), {
19695
19152
  class: "cursor-pointer draw-side-bar-close",
19696
19153
  icon: "close",
@@ -20222,9 +19679,9 @@ const headerCustomPropsData = {
20222
19679
  }
20223
19680
  };
20224
19681
  const _hoisted_1$c = { class: "home-wrapper" };
20225
- const _hoisted_2$8 = { class: "home-content" };
20226
- const _hoisted_3$8 = { class: "home-left-side" };
20227
- const _hoisted_4$6 = { class: "home-main" };
19682
+ const _hoisted_2$7 = { class: "home-content" };
19683
+ const _hoisted_3$5 = { class: "home-left-side" };
19684
+ const _hoisted_4$5 = { class: "home-main" };
20228
19685
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
20229
19686
  __name: "home",
20230
19687
  setup(__props) {
@@ -20314,8 +19771,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
20314
19771
  onFollowDevCommunity: followDevCommunity,
20315
19772
  onFollowUser: followUser
20316
19773
  }, null, 8, ["sceneValue", "independence", "isLogin", "request", "globalStore", "userInfo", "repoInfo", "orgInfo", "otherUserInfo", "headerCustomProps"]),
20317
- createElementVNode("div", _hoisted_2$8, [
20318
- createElementVNode("div", _hoisted_3$8, [
19774
+ createElementVNode("div", _hoisted_2$7, [
19775
+ createElementVNode("div", _hoisted_3$5, [
20319
19776
  createVNode(GitCodeAside, {
20320
19777
  sceneValue: sceneSelected.value,
20321
19778
  userInfo: userInfo.value,
@@ -20324,9 +19781,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
20324
19781
  globalStore: globalStore.value,
20325
19782
  independence: independence.value,
20326
19783
  slotKeys: ["home", "issues"],
20327
- collapseMode: sceneSelected.value == unref(SceneValue).repo,
20328
- showLangSetting: "",
20329
- showThemeSetting: ""
19784
+ collapseMode: sceneSelected.value == unref(SceneValue).repo
20330
19785
  }, {
20331
19786
  home: withCtx(() => _cache[2] || (_cache[2] = [
20332
19787
  createElementVNode("div", null, "首页hover-插槽", -1)
@@ -20337,7 +19792,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
20337
19792
  _: 1
20338
19793
  }, 8, ["sceneValue", "userInfo", "isLogin", "request", "globalStore", "independence", "collapseMode"])
20339
19794
  ]),
20340
- createElementVNode("div", _hoisted_4$6, [
19795
+ createElementVNode("div", _hoisted_4$5, [
20341
19796
  _cache[6] || (_cache[6] = createElementVNode("h1", null, "控制 Header 值传入", -1)),
20342
19797
  _cache[7] || (_cache[7] = createElementVNode("h2", null, "场景值 SceneValue", -1)),
20343
19798
  createVNode(unref(RadioGroup), {
@@ -20835,13 +20290,9 @@ async function checkUserRepositoryIssue(API, isRegister = false) {
20835
20290
  async function successResolve(params, API, isRegister = false) {
20836
20291
  var _a;
20837
20292
  const { path, userInfo, type, loginMethod } = params;
20838
- const transformUserInfo = {
20839
- ...userInfo,
20840
- avatar: transformUrl(userInfo == null ? void 0 : userInfo.avatar)
20841
- };
20842
20293
  if (userInfo) {
20843
- emitEvent("updateUserInfo", transformUserInfo);
20844
- const { username, email } = transformUserInfo;
20294
+ emitEvent("updateUserInfo", userInfo);
20295
+ const { username, email } = userInfo;
20845
20296
  setEmailValid(username, email);
20846
20297
  }
20847
20298
  saveLastLoginType(loginMethod);
@@ -21222,9 +20673,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
21222
20673
  }
21223
20674
  });
21224
20675
  const _hoisted_1$9 = { class: "flex flex-1 g-input-select" };
21225
- const _hoisted_2$7 = { class: "login-phone" };
21226
- const _hoisted_3$7 = { class: "flex justify-between gap-[8px] flex-wrap" };
21227
- const _hoisted_4$5 = { class: "flex items-center justify-between" };
20676
+ const _hoisted_2$6 = { class: "login-phone" };
20677
+ const _hoisted_3$4 = { class: "flex justify-between gap-[8px] flex-wrap" };
20678
+ const _hoisted_4$4 = { class: "flex items-center justify-between" };
21228
20679
  const _hoisted_5$3 = { class: "flex justify-between gap-[8px] flex-wrap" };
21229
20680
  const _sfc_main$b = /* @__PURE__ */ defineComponent({
21230
20681
  __name: "inputSelect",
@@ -21300,7 +20751,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
21300
20751
  });
21301
20752
  return (_ctx, _cache) => {
21302
20753
  return openBlock(), createElementBlock("div", _hoisted_1$9, [
21303
- createElementVNode("div", _hoisted_2$7, [
20754
+ createElementVNode("div", _hoisted_2$6, [
21304
20755
  (props == null ? void 0 : props.editableSelect) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
21305
20756
  createVNode(unref(Select), {
21306
20757
  class: "login-country-select",
@@ -21317,7 +20768,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
21317
20768
  value: item.value
21318
20769
  }, {
21319
20770
  default: withCtx(() => [
21320
- createElementVNode("div", _hoisted_3$7, [
20771
+ createElementVNode("div", _hoisted_3$4, [
21321
20772
  createElementVNode("span", null, toDisplayString$1(item.name), 1),
21322
20773
  createElementVNode("span", null, toDisplayString$1(item.label), 1)
21323
20774
  ])
@@ -21341,7 +20792,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
21341
20792
  class: "login-phone-select"
21342
20793
  }), {
21343
20794
  item: withCtx((slotProps) => [
21344
- createElementVNode("div", _hoisted_4$5, [
20795
+ createElementVNode("div", _hoisted_4$4, [
21345
20796
  createElementVNode("div", null, toDisplayString$1(slotProps.option.label), 1),
21346
20797
  createVNode(GIcon, {
21347
20798
  name: "gt-line-delete",
@@ -21694,9 +21145,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
21694
21145
  });
21695
21146
  const recentLoginImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAoCAYAAAAIeF9DAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAfgSURBVHgB7ZtLbFRlFMfPnU4LhbaMgAJCdJpYImwoK7vgMSwkGDckQgwrARduJNREE4nykhhJMKGNblxIuzO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MZuhw/ZxqP+Z5FHyDIoPATiOIbPEAlxNCOd/SIKAdO2YBvRseTY5/ZkMKSTGNN+B06iAWSyn3Mpvb1QqJ/mrgid3d/q/PcuzkWmqQDNy90pwAlYzxBNXh3sQsiIdZj/1rXkhuB9dw+YdQgELFePGtFSEW8yRiV6OAZdN14GUUiGs/EHMAQTp/vrLCs9J6LX78uvNTivssxOAo5gKiRDutMxcKIl3+4b316somIs/qLZal+ZvmDr3LQREiE00hmJbVqVf+43dFKPMF3IHV7leAg7IuT5otX98HVEyHOD1b0y/Wuze2tEyHOB/UOeTV57Qq/UI4SGytSF5kI7owiZJfA7RJ7j9ZIpJ6IImR20xiV2qMHj9yBuRITMEMYiQlqrJNZS74MIg4iQacCY8a0B1X9tZ2e1R1PRHfZn0f8BoszztTsf3m0AAAAASUVORK5CYII=";
21696
21147
  const _hoisted_1$8 = { class: "auth-container" };
21697
- const _hoisted_2$6 = { class: "tips text-[var(--devui-disabled-text)]" };
21698
- const _hoisted_3$6 = { class: "icons" };
21699
- const _hoisted_4$4 = ["src", "alt", "onClick"];
21148
+ const _hoisted_2$5 = { class: "tips text-[var(--devui-disabled-text)]" };
21149
+ const _hoisted_3$3 = { class: "icons" };
21150
+ const _hoisted_4$3 = ["src", "alt", "onClick"];
21700
21151
  const _hoisted_5$2 = { class: "w-[50px] h-[20px] recent-login-img" };
21701
21152
  const _hoisted_6$2 = ["src"];
21702
21153
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
@@ -21721,8 +21172,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
21721
21172
  };
21722
21173
  return (_ctx, _cache) => {
21723
21174
  return openBlock(), createElementBlock("div", _hoisted_1$8, [
21724
- createElementVNode("div", _hoisted_2$6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.otherLogin")), 1),
21725
- createElementVNode("div", _hoisted_3$6, [
21175
+ createElementVNode("div", _hoisted_2$5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.otherLogin")), 1),
21176
+ createElementVNode("div", _hoisted_3$3, [
21726
21177
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.logos, (icon) => {
21727
21178
  return openBlock(), createElementBlock("div", {
21728
21179
  key: icon.alt,
@@ -21739,7 +21190,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
21739
21190
  src: icon.src,
21740
21191
  alt: icon.alt,
21741
21192
  onClick: withModifiers(($event) => handleClick(icon), ["stop"])
21742
- }, null, 8, _hoisted_4$4)
21193
+ }, null, 8, _hoisted_4$3)
21743
21194
  ]),
21744
21195
  _: 2
21745
21196
  }, 1032, ["content", "disabled"]),
@@ -21758,10 +21209,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
21758
21209
  }
21759
21210
  });
21760
21211
  const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-vue-layout-gitcode"]]);
21761
- const _hoisted_1$7 = { class: "flex-col items-center" };
21762
- const _hoisted_2$5 = { class: "text-[var(--theme-placeholder)]" };
21763
- const _hoisted_3$5 = { class: "text-[var(--theme-placeholder)]" };
21764
- const _hoisted_4$3 = { class: "text-[var(--theme-placeholder)]" };
21212
+ const _hoisted_1$7 = { class: "text-[var(--theme-placeholder)]" };
21213
+ const _hoisted_2$4 = { class: "text-[var(--theme-placeholder)]" };
21765
21214
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
21766
21215
  __name: "agreement",
21767
21216
  props: {
@@ -21769,142 +21218,82 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
21769
21218
  "onUpdate:modelValue": { type: Function }
21770
21219
  },
21771
21220
  emits: ["update:modelValue", "declares"],
21772
- setup(__props, { expose: __expose, emit: __emit }) {
21221
+ setup(__props, { emit: __emit }) {
21773
21222
  const { t: $t } = i18n.global;
21223
+ const props = __props;
21774
21224
  const emits = __emit;
21775
- const agreementChecked = ref(false);
21776
- const dataShareChecked = ref(false);
21777
- const allAgreed = computed(() => {
21778
- return agreementChecked.value && dataShareChecked.value;
21779
- });
21780
- watch(allAgreed, (newVal) => {
21781
- emits("update:modelValue", newVal);
21782
- });
21225
+ const { vModels } = useModel(props, emits);
21783
21226
  const handleClick = (type) => {
21784
21227
  emits("declares", type);
21785
21228
  };
21786
- const dataShareName = computed(() => {
21787
- var _a, _b;
21788
- if ((_b = (_a = window == null ? void 0 : window.location) == null ? void 0 : _a.host) == null ? void 0 : _b.includes("gitcode")) {
21789
- return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "AtomGit" });
21790
- } else {
21791
- return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "GitCode" });
21792
- }
21793
- });
21794
- __expose({
21795
- dataShareChecked
21796
- });
21797
21229
  return (_ctx, _cache) => {
21798
- return openBlock(), createElementBlock("div", _hoisted_1$7, [
21799
- createVNode(unref(Checkbox), {
21800
- modelValue: agreementChecked.value,
21801
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => agreementChecked.value = $event),
21802
- size: "sm"
21803
- }, {
21804
- default: withCtx(() => [
21805
- createElementVNode("span", _hoisted_2$5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.agree")), 1),
21806
- createElementVNode("span", {
21807
- class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
21808
- onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
21809
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 1),
21810
- createElementVNode("span", _hoisted_3$5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
21811
- createElementVNode("span", {
21812
- class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
21813
- onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
21814
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 1)
21815
- ]),
21816
- _: 1
21817
- }, 8, ["modelValue"]),
21818
- createVNode(unref(Checkbox), {
21819
- modelValue: dataShareChecked.value,
21820
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => dataShareChecked.value = $event),
21821
- size: "sm"
21822
- }, {
21823
- default: withCtx(() => [
21824
- createElementVNode("span", _hoisted_4$3, toDisplayString$1(dataShareName.value), 1)
21825
- ]),
21826
- _: 1
21827
- }, 8, ["modelValue"])
21828
- ]);
21230
+ return openBlock(), createBlock(unref(Checkbox), {
21231
+ modelValue: unref(vModels),
21232
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(vModels) ? vModels.value = $event : null),
21233
+ size: "sm"
21234
+ }, {
21235
+ default: withCtx(() => [
21236
+ createElementVNode("span", _hoisted_1$7, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.agree")), 1),
21237
+ createElementVNode("span", {
21238
+ class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
21239
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
21240
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 1),
21241
+ createElementVNode("span", _hoisted_2$4, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
21242
+ createElementVNode("span", {
21243
+ class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
21244
+ onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
21245
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 1)
21246
+ ]),
21247
+ _: 1
21248
+ }, 8, ["modelValue"]);
21829
21249
  };
21830
21250
  }
21831
21251
  });
21832
21252
  const _hoisted_1$6 = { class: "text-[var(--devui-aide-text)] text-[12px]" };
21833
- const _hoisted_2$4 = { class: "text-[var(--devui-aide-text)]" };
21834
- const _hoisted_3$4 = { class: "text-[var(--devui-aide-text)] text-[12px]" };
21835
21253
  const _sfc_main$7 = /* @__PURE__ */ defineComponent({
21836
21254
  __name: "agreements",
21837
21255
  props: {
21838
21256
  modelValue: { type: Boolean },
21257
+ agreementText: {},
21258
+ privacyText: {},
21839
21259
  "onUpdate:modelValue": { type: Function }
21840
21260
  },
21841
21261
  emits: ["update:modelValue", "declares"],
21842
- setup(__props, { expose: __expose, emit: __emit }) {
21262
+ setup(__props, { emit: __emit }) {
21843
21263
  const { t: $t } = i18n.global;
21264
+ const props = __props;
21844
21265
  const emits = __emit;
21845
- const agreementChecked = ref(false);
21846
- const dataShareChecked = ref(false);
21847
- const allAgreed = computed(() => {
21848
- return agreementChecked.value && dataShareChecked.value;
21849
- });
21850
- watch(allAgreed, (newVal) => {
21851
- emits("update:modelValue", newVal);
21852
- });
21266
+ const { vModels } = useModel(props, emits);
21853
21267
  const handleClick = (type) => {
21854
21268
  emits("declares", type);
21855
21269
  };
21856
- const dataShareName = computed(() => {
21857
- var _a;
21858
- if ((_a = window == null ? void 0 : window.location) == null ? void 0 : _a.host.includes("gitcode")) {
21859
- return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "AtomGit" });
21860
- } else {
21861
- return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "GitCode" });
21862
- }
21863
- });
21864
- __expose({
21865
- dataShareChecked
21866
- });
21867
21270
  return (_ctx, _cache) => {
21868
- return openBlock(), createElementBlock(Fragment, null, [
21869
- createVNode(unref(Checkbox), {
21870
- modelValue: agreementChecked.value,
21871
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => agreementChecked.value = $event),
21872
- size: "sm",
21873
- class: "mt-[6px] agree-module flex items-center"
21874
- }, {
21875
- default: withCtx(() => [
21876
- createElementVNode("span", _hoisted_1$6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.readAgree")), 1),
21877
- createElementVNode("a", {
21878
- class: "text-[var(--devui-link)] cursor-pointer mx-[1px] text-[12px]",
21879
- onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
21880
- }, toDisplayString$1("" + unref($t)("gitCodeLayout.LoginModal.link.agreement") + "》"), 1),
21881
- createElementVNode("span", _hoisted_2$4, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
21882
- createElementVNode("a", {
21883
- class: "text-[var(--devui-link)] cursor-pointer mx-[1px] text-[12px]",
21884
- onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
21885
- }, toDisplayString$1("《" + unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy") + "》"), 1),
21886
- renderSlot(_ctx.$slots, "default")
21887
- ]),
21888
- _: 3
21889
- }, 8, ["modelValue"]),
21890
- createVNode(unref(Checkbox), {
21891
- modelValue: dataShareChecked.value,
21892
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => dataShareChecked.value = $event),
21893
- size: "sm",
21894
- class: "mb-[12px]"
21895
- }, {
21896
- default: withCtx(() => [
21897
- createElementVNode("span", _hoisted_3$4, toDisplayString$1(dataShareName.value), 1)
21898
- ]),
21899
- _: 1
21900
- }, 8, ["modelValue"])
21901
- ], 64);
21271
+ return openBlock(), createBlock(unref(Checkbox), {
21272
+ modelValue: unref(vModels),
21273
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(vModels) ? vModels.value = $event : null),
21274
+ size: "sm",
21275
+ class: "mb-[8px] agree-module flex items-center"
21276
+ }, {
21277
+ default: withCtx(() => [
21278
+ createElementVNode("span", _hoisted_1$6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.readAgree")), 1),
21279
+ createElementVNode("a", {
21280
+ class: "text-[var(--devui-link)] cursor-pointer mx-[1px] text-[12px]",
21281
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
21282
+ }, toDisplayString$1(_ctx.agreementText || unref($t)("gitCodeLayout.LoginModal.link.agreement")), 1),
21283
+ createElementVNode("a", {
21284
+ class: "text-[var(--devui-link)] cursor-pointer mx-[1px] text-[12px]",
21285
+ onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
21286
+ }, toDisplayString$1(_ctx.privacyText || unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 1),
21287
+ renderSlot(_ctx.$slots, "default")
21288
+ ]),
21289
+ _: 3
21290
+ }, 8, ["modelValue"]);
21902
21291
  };
21903
21292
  }
21904
21293
  });
21905
21294
  const _hoisted_1$5 = { class: "text-center text-[18px] leading-[26px] font-bold mb-[24px] flex items-center justify-center relative" };
21906
21295
  const _hoisted_2$3 = { class: "back-img absolute mr-[24px] left-0" };
21907
- const _hoisted_3$3 = ["src"];
21296
+ const _hoisted_3$2 = ["src"];
21908
21297
  const _hoisted_4$2 = {
21909
21298
  key: 0,
21910
21299
  class: "tracking-[.5px]"
@@ -21931,7 +21320,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
21931
21320
  src: _ctx.icon,
21932
21321
  class: "w-[24px] cursor-pointer",
21933
21322
  onClick: withModifiers(handleClick, ["stop"])
21934
- }, null, 8, _hoisted_3$3)) : createCommentVNode("", true)
21323
+ }, null, 8, _hoisted_3$2)) : createCommentVNode("", true)
21935
21324
  ]),
21936
21325
  _ctx.showTitle ? (openBlock(), createElementBlock("span", _hoisted_4$2, toDisplayString$1(_ctx.title), 1)) : createCommentVNode("", true)
21937
21326
  ]);
@@ -24264,51 +23653,38 @@ const isMobileEmail = (val) => {
24264
23653
  return t$1("gitCodeLayout.common.phone") + "/" + t$1("gitCodeLayout.common.email");
24265
23654
  };
24266
23655
  const _hoisted_1$4 = { class: "modal-body" };
24267
- const _hoisted_2$2 = { class: "text-[13px]" };
24268
- const _hoisted_3$2 = { class: "flex items-center justify-end px-[24px] pb-[24px]" };
23656
+ const _hoisted_2$2 = { class: "flex items-center justify-end px-[24px] pb-[24px]" };
24269
23657
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
24270
23658
  __name: "loginCheckModal",
24271
- props: /* @__PURE__ */ mergeModels({
24272
- dataShareChecked: { type: Boolean }
24273
- }, {
23659
+ props: {
24274
23660
  "visible": { type: Boolean },
24275
23661
  "visibleModifiers": {}
24276
- }),
23662
+ },
24277
23663
  emits: /* @__PURE__ */ mergeModels(["declares", "confirm"], ["update:visible"]),
24278
23664
  setup(__props, { emit: __emit }) {
24279
23665
  const { t: $t } = i18n.global;
24280
- const props = __props;
24281
23666
  const visible = useModel$1(__props, "visible");
24282
23667
  const emits = __emit;
24283
- const dataShareChecked = ref(props.dataShareChecked || false);
24284
23668
  const handleClick = (type) => {
24285
23669
  emits("declares", type);
24286
23670
  };
24287
23671
  const handleConfirm = () => {
24288
23672
  emits("confirm");
24289
23673
  };
24290
- const dataShareName = computed(() => {
24291
- var _a;
24292
- if ((_a = window == null ? void 0 : window.location) == null ? void 0 : _a.host.includes("gitcode")) {
24293
- return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "AtomGit" });
24294
- } else {
24295
- return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "GitCode" });
24296
- }
24297
- });
24298
23674
  const close = () => {
24299
23675
  visible.value = false;
24300
23676
  };
24301
23677
  return (_ctx, _cache) => {
24302
23678
  return openBlock(), createBlock(unref(Modal), {
24303
23679
  modelValue: visible.value,
24304
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => visible.value = $event),
23680
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => visible.value = $event),
24305
23681
  "close-on-click-overlay": false,
24306
23682
  "show-overlay": true,
24307
23683
  class: "second-sure-proto",
24308
23684
  title: unref($t)("gitCodeLayout.LoginModal.subtitle.useAgrAndPriPolTip")
24309
23685
  }, {
24310
23686
  footer: withCtx(() => [
24311
- createElementVNode("div", _hoisted_3$2, [
23687
+ createElementVNode("div", _hoisted_2$2, [
24312
23688
  createVNode(unref(Button), {
24313
23689
  class: "mr-2",
24314
23690
  onClick: close
@@ -24321,14 +23697,13 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
24321
23697
  createVNode(unref(Button), {
24322
23698
  variant: "solid",
24323
23699
  class: "w-[126px]",
24324
- disabled: !dataShareChecked.value,
24325
23700
  onClick: handleConfirm
24326
23701
  }, {
24327
23702
  default: withCtx(() => [
24328
23703
  createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.agrAndSigIn")), 1)
24329
23704
  ]),
24330
23705
  _: 1
24331
- }, 8, ["disabled"])
23706
+ })
24332
23707
  ])
24333
23708
  ]),
24334
23709
  default: withCtx(() => [
@@ -24344,22 +23719,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
24344
23719
  class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
24345
23720
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
24346
23721
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 1),
24347
- createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.toUseGit")), 1)
24348
- ]),
24349
- createElementVNode("div", null, [
24350
- createElementVNode("span", null, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.ifYouDoNotAgrWe")), 1)
23722
+ createTextVNode(" " + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.toUseGit")), 1)
24351
23723
  ]),
24352
- createVNode(unref(Checkbox), {
24353
- modelValue: dataShareChecked.value,
24354
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => dataShareChecked.value = $event),
24355
- size: "sm",
24356
- class: "mt-[12px]"
24357
- }, {
24358
- default: withCtx(() => [
24359
- createElementVNode("span", _hoisted_2$2, toDisplayString$1(dataShareName.value), 1)
24360
- ]),
24361
- _: 1
24362
- }, 8, ["modelValue"])
23724
+ createElementVNode("div", null, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.ifYouDoNotAgrWe")), 1)
24363
23725
  ])
24364
23726
  ]),
24365
23727
  _: 1
@@ -24367,6 +23729,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
24367
23729
  };
24368
23730
  }
24369
23731
  });
23732
+ const GIT_CODE_L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0EZHS/y4IJfWF+rB0s/1CLQpcEXGanDWp5be2chSe1SwCDMVvzc+cEy3PN+Tvfd+ka5WeT9f17VVyz8TPzFrP2KNNYGFQTc2cA+h2GikRuCt5izrkQD44xbNBDJTpKbfR4U18qF4kMTWMxM/zmC3JWDR79VWAj+siRyCbRZtkg3JHvj0lM5D31f1dQQF6y1zoKORJZplXLXMSsg33YcDy4BTzElRxFszoSqaazmHOMqJ/4rtHlTxRxJOJDMDHn8CSNX3C9rzB61CYAxESQnfO8ap6OuQEviotEbgTBxVyGQzOpYy6uMR8XVtksoP4i0UuFrcW42iaOF0cikUgkEolEIs34P3h7TBmol5dNAAAAAElFTkSuQmCC";
24370
23733
  const _hoisted_1$3 = { class: "mfa" };
24371
23734
  const _hoisted_2$1 = ["src"];
24372
23735
  const _hoisted_3$1 = { class: "text-[20px] font-[600] mb-[8px]" };
@@ -24394,6 +23757,7 @@ const _hoisted_9$1 = {
24394
23757
  const _hoisted_10$1 = { class: "my-[32px]" };
24395
23758
  const _hoisted_11$1 = { class: "flex items-center justify-between" };
24396
23759
  const _hoisted_12$1 = { class: "cursor-pointer" };
23760
+ const GIT_CODE_LOGO_BLACK = "https://cdn-static.gitcode.com/static/images/gitcode-logo-dark.png";
24397
23761
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24398
23762
  __name: "MFA",
24399
23763
  props: {
@@ -24403,9 +23767,11 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24403
23767
  },
24404
23768
  emits: ["success", "back", "fail"],
24405
23769
  setup(__props, { emit: __emit }) {
24406
- const logoConfig = getCurrentLogoMap();
24407
23770
  const currentLogo = computed(() => {
24408
- return currentTheme.value === ThemeType.BLACK ? logoConfig.siteLogoWhite : logoConfig.siteLogoDark;
23771
+ if (currentTheme.value === ThemeType.BLACK) {
23772
+ return GIT_CODE_LOGO_WHITE;
23773
+ }
23774
+ return GIT_CODE_LOGO_BLACK;
24409
23775
  });
24410
23776
  const { t: t2 } = i18n.global;
24411
23777
  const emits = __emit;
@@ -24624,7 +23990,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24624
23990
  }
24625
23991
  });
24626
23992
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
24627
- const SlidCaptcha = defineAsyncComponent(() => import("./index-CiLHExsI.js"));
23993
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-CTBLbh6u.js"));
24628
23994
  const useSlidCaptcha = () => {
24629
23995
  const { mount, unMount } = usePopup("slid-captcha-popup");
24630
23996
  const open = (config) => {
@@ -24643,7 +24009,7 @@ const useSlidCaptcha = () => {
24643
24009
  close: unMount
24644
24010
  };
24645
24011
  };
24646
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-DtBF5g8C.js"));
24012
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-lHH4eI3c.js"));
24647
24013
  const useYunpianCaptcha = () => {
24648
24014
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
24649
24015
  const open = (config) => {
@@ -24718,6 +24084,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
24718
24084
  }
24719
24085
  });
24720
24086
  const DataPanel = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-vue-layout-gitcode"]]);
24087
+ const AiLogoDark = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQgAAAAwCAYAAADtqOSLAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA98SURBVHgB7V1dcttGEu4ZUIqlpMrkCQJX7Sa7TysfYB3qBJZOIPkEUk5g6gS2TmDqBJJPIMo5gOmn1Ca1ZeQEpLZiySsS0+kegDRJYAYAAZCyar4qJrQADAaYmZ7ur38I4ODg4GCAgIrx0W/7dwA71HATQfmzxyTgEMDrNwD6T4LeEBwcHO41SgsIEgjNMQkEBDxAgLYA9HNeGtDtewLE2d+DXg8cHBzuHZYWEKwpjE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9+pqctO5YKeyS1xJcKhe23t6hAjMTFdfIDJzOd6XcHkagMVCYp/H+qt3WFoocA5/Wq4EgznJHACNowVIx93V0CrkgL9ocYf6wzHEgHCusJW9gLDjKxzmIVMCf2eXYVhCbdaTR3YNdI3WaB7XR2gn5DoO9/fs1wv0D3vtrYwmmelcbMWOSz9xvjufciPMkxqKkGRHdHkQy+VrnZ+ivZSpJJGP6g4ZYAEv+i+y1Ns6Ed0KO8kJEgqk2rIAp8T6HZEWyj16OBrBC4HKAH9TjncOzGb1MbbmeMe6mi1NuAzGNYq/jH8zKq/rmmsgBZQe+jmZLSonssRXhYl3IcRu7DVW5el1ZoC5nethVeJyGSuyGqp0Wc0Gp1sddrUZDfyNu9QOHQjpA44xfova5EQpI5SetKhNGyjfIEwP4AZtEGSNa5Tg38fmIcajut3Yq205o30umgHDFqYtdMsoZ3RCnTXNpghTQE9dy+q/6lMTaN0Lbx87FWhXa7NchD4k5L5bqh+K+M1togSDs8iLmsmEolAvAKCqI+NG3YyVHdIc1ArFgdJOCQS2yFIQBB0OtQ9vQTJsBmEslo829K0IpFIoIOAqPkPezLLuu8868oJraRs4ETrRCLhoLOAIEibmGBJgiLm7jTKTpmplYp+h+MmEonY9BIQNSQo7uNyTxkR9/0OTtYM0A7SU9oHkgRDInG7GCQgmmgbBS2f0Q7M1eEy00zZK5p+FBKZqI6Zm2dYfqIzKJJQSCQSiUQikUgk7hL/B8KPBQaviqFDAAAAAElFTkSuQmCC";
24721
24089
  function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
24722
24090
  const { interval = 1e4, immediate = true } = options;
24723
24091
  const timer = ref(null);
@@ -24809,45 +24177,46 @@ const _hoisted_21 = { key: 2 };
24809
24177
  const _hoisted_22 = { class: "flex items-center justify-between" };
24810
24178
  const _hoisted_23 = { class: "text-[var(--devui-text-weak)] font-bold text-[16px]" };
24811
24179
  const _hoisted_24 = { class: "text-[12px] leading-[32px]" };
24812
- const _hoisted_25 = { class: "qrcode-container flex flex-col items-center justify-center" };
24813
- const _hoisted_26 = { class: "flex flex-col items-center justify-center w-[180px] h-[180px] relative" };
24814
- const _hoisted_27 = ["src"];
24815
- const _hoisted_28 = {
24180
+ const _hoisted_25 = { class: "text-[12px] leading-[20px] mt-[16px] text-[var(--devui-placeholder)] font-normal" };
24181
+ const _hoisted_26 = { class: "qrcode-container flex flex-col items-center justify-center" };
24182
+ const _hoisted_27 = { class: "flex flex-col items-center justify-center w-[180px] h-[180px] relative" };
24183
+ const _hoisted_28 = ["src"];
24184
+ const _hoisted_29 = {
24816
24185
  key: 0,
24817
24186
  class: "mask"
24818
24187
  };
24819
- const _hoisted_29 = { class: "flex gap-1 items-center justify-center text-[16px] flex-wrap font-medium" };
24820
- const _hoisted_30 = { class: "text-[#252B3A]" };
24821
- const _hoisted_31 = { class: "text-[var(--theme-link)]" };
24822
- const _hoisted_32 = {
24188
+ const _hoisted_30 = { class: "flex gap-1 items-center justify-center text-[16px] flex-wrap font-medium" };
24189
+ const _hoisted_31 = { class: "text-[#252B3A]" };
24190
+ const _hoisted_32 = { class: "text-[var(--theme-link)]" };
24191
+ const _hoisted_33 = {
24823
24192
  key: 1,
24824
24193
  class: "flex flex-col gap-3 items-center justify-center"
24825
24194
  };
24826
- const _hoisted_33 = { class: "text-[var(--color-success)]" };
24827
- const _hoisted_34 = { class: "text-center" };
24828
- const _hoisted_35 = {
24195
+ const _hoisted_34 = { class: "text-[var(--color-success)]" };
24196
+ const _hoisted_35 = { class: "text-center" };
24197
+ const _hoisted_36 = {
24829
24198
  key: 0,
24830
24199
  class: "text-center text-[16px] mt-[40px] text-[var(--devui-text-weak)] font-bold"
24831
24200
  };
24832
- const _hoisted_36 = {
24201
+ const _hoisted_37 = {
24833
24202
  key: 0,
24834
24203
  class: "login-modal-info h-[20px]"
24835
24204
  };
24836
- const _hoisted_37 = { class: "login-modal-info-left" };
24837
- const _hoisted_38 = {
24205
+ const _hoisted_38 = { class: "login-modal-info-left" };
24206
+ const _hoisted_39 = {
24838
24207
  key: 0,
24839
24208
  class: "mt-[18px]"
24840
24209
  };
24841
- const _hoisted_39 = { class: "flex justify-center" };
24842
- const _hoisted_40 = { class: "flex items-center justify-center pr-[16px] mt-[16px]" };
24843
- const _hoisted_41 = { class: "harmony-icon" };
24844
- const _hoisted_42 = { class: "w-[50px] h-[20px] last-login-img" };
24845
- const _hoisted_43 = ["src"];
24846
- const _hoisted_44 = { class: "ml-[8px] text-[12px]" };
24847
- const _hoisted_45 = { class: "login-modal-footer flex items-center justify-center" };
24848
- const _hoisted_46 = { key: 2 };
24849
- const _hoisted_47 = { class: "line-clamp-2" };
24850
- const _hoisted_48 = { class: "absolute-btn" };
24210
+ const _hoisted_40 = { class: "flex justify-center" };
24211
+ const _hoisted_41 = { class: "flex items-center justify-center pr-[16px] mt-[16px]" };
24212
+ const _hoisted_42 = { class: "harmony-icon" };
24213
+ const _hoisted_43 = { class: "w-[50px] h-[20px] last-login-img" };
24214
+ const _hoisted_44 = ["src"];
24215
+ const _hoisted_45 = { class: "ml-[8px] text-[12px]" };
24216
+ const _hoisted_46 = { class: "login-modal-footer flex items-center justify-center" };
24217
+ const _hoisted_47 = { key: 2 };
24218
+ const _hoisted_48 = { class: "line-clamp-2" };
24219
+ const _hoisted_49 = { class: "absolute-btn" };
24851
24220
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24852
24221
  ...{
24853
24222
  name: "GLoginModal"
@@ -24879,18 +24248,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24879
24248
  var _a;
24880
24249
  return layoutConfig2.VITE_AI_HOST === ((_a = window == null ? void 0 : window.location) == null ? void 0 : _a.origin);
24881
24250
  });
24882
- const agreementDomRef = ref(null);
24883
- const agreementsDomRef = ref(null);
24884
- const dataShareChecked = computed(() => {
24885
- var _a, _b;
24886
- if (formType.value === "register") {
24887
- return ((_a = agreementsDomRef.value) == null ? void 0 : _a.dataShareChecked) || false;
24888
- }
24889
- if (formType.value === "login") {
24890
- return ((_b = agreementDomRef.value) == null ? void 0 : _b.dataShareChecked) || false;
24891
- }
24892
- return false;
24893
- });
24894
24251
  const props = __props;
24895
24252
  const request = props.request;
24896
24253
  provide("request", request);
@@ -24908,14 +24265,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24908
24265
  const IconW = TransAssetsUrl(IconSource, "logo-wechat");
24909
24266
  const IconHb = TransAssetsUrl(IconSource, "logo-hb");
24910
24267
  const IconHW = TransAssetsUrl(IconSource, "logo-huawei");
24911
- const logoConfig = getCurrentLogoMap();
24912
24268
  const logoType = {
24913
- black: logoConfig.siteLogoWhite,
24914
- white: logoConfig.siteLogoDark
24269
+ black: "https://cdn-static.gitcode.com/static/images/gitcode-logo-white.png",
24270
+ white: "https://cdn-static.gitcode.com/static/images/gitcode-logo-dark.png"
24915
24271
  };
24916
24272
  const AiLogoType = {
24917
- black: logoConfig.aiLogoWhite,
24918
- white: logoConfig.aiLogoDark
24273
+ black: AiLogoDark,
24274
+ white: AiLogoWhite
24919
24275
  };
24920
24276
  const formErrors = reactive({});
24921
24277
  const extraErrors = reactive({
@@ -25195,7 +24551,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25195
24551
  ...VerifyPassword
25196
24552
  ]);
25197
24553
  const status = ref(false);
25198
- const hwStatus = ref(true);
24554
+ const hwStatus = ref(false);
25199
24555
  const FormRef = shallowRef(null);
25200
24556
  const tabPanel = ref("miniProgram");
25201
24557
  const formType = ref(props.defaultType);
@@ -25329,13 +24685,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25329
24685
  const slidCaptcha = useSlidCaptcha();
25330
24686
  const yunpianCaptcha = useYunpianCaptcha();
25331
24687
  const LoginCheck = async () => {
24688
+ const formData = await FormRef.value.ValidateForm();
25332
24689
  let agreementFlag = false;
25333
24690
  if (formType.value === "register" && !hwStatus.value) {
25334
24691
  extraErrors.agreement = $t("gitCodeLayout.LoginModal.tips.pleaseReadHuaweiAgreement");
25335
24692
  agreementFlag = true;
25336
24693
  }
25337
24694
  if (!status.value && !agreementFlag) {
25338
- extraErrors.agreement = $t("gitCodeLayout.common.tips.agreementTip");
25339
24695
  agreementFlag = true;
25340
24696
  showProtoCheck.value = true;
25341
24697
  }
@@ -25346,7 +24702,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25346
24702
  }, 500);
25347
24703
  return false;
25348
24704
  }
25349
- const formData = await FormRef.value.ValidateForm();
25350
24705
  extraErrors.agreement = "";
25351
24706
  if (formData.type === "success") {
25352
24707
  clearFormError();
@@ -25480,8 +24835,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25480
24835
  }
25481
24836
  };
25482
24837
  const links = {
25483
- agreement: currentHelpDocsUrl() + "/docs/help/home/protocol/terms-of-service",
25484
- privacy: currentHelpDocsUrl() + "/docs/help/home/protocol/privacy-policy"
24838
+ agreement: "https://docs.gitcode.com/docs/help/home/protocol/terms-of-service",
24839
+ privacy: "https://docs.gitcode.com/docs/help/home/protocol/privacy-policy"
25485
24840
  };
25486
24841
  const links_hw = {
25487
24842
  agreement: "https://www.huaweicloud.com/declaration/sa_cua.html",
@@ -25855,7 +25210,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25855
25210
  );
25856
25211
  function checkAgree() {
25857
25212
  if (!status.value) {
25858
- extraErrors.agreement = $t("gitCodeLayout.common.tips.agreementTip");
25213
+ extraErrors.agreement = $t("gitCodeLayout.common.tips.readPrivacyPolicy");
25859
25214
  AgreementWarn.value = true;
25860
25215
  showProtoCheck.value = true;
25861
25216
  setTimeout(() => {
@@ -26066,7 +25421,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26066
25421
  return openBlock(), createElementBlock(Fragment, null, [
26067
25422
  createVNode(unref(Modal), {
26068
25423
  modelValue: unref(vModels),
26069
- "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => isRef(vModels) ? vModels.value = $event : null),
25424
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => isRef(vModels) ? vModels.value = $event : null),
26070
25425
  "show-close": false,
26071
25426
  "lock-scroll": _ctx.lockScroll,
26072
25427
  draggable: _ctx.draggable,
@@ -26184,7 +25539,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26184
25539
  class: "text-[var(--theme-link)] cursor-pointer hover:underline"
26185
25540
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.backLogin")), 1)
26186
25541
  ])
26187
- ])
25542
+ ]),
25543
+ createElementVNode("div", _hoisted_25, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.registerDesc")), 1)
26188
25544
  ])) : createCommentVNode("", true),
26189
25545
  formType.value === "login" && tabPanel.value === "miniProgram" ? (openBlock(), createBlock(DataPanel, {
26190
25546
  key: 3,
@@ -26200,14 +25556,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26200
25556
  })
26201
25557
  }, {
26202
25558
  default: withCtx(() => [
26203
- createElementVNode("div", _hoisted_25, [
26204
- createElementVNode("div", _hoisted_26, [
25559
+ createElementVNode("div", _hoisted_26, [
25560
+ createElementVNode("div", _hoisted_27, [
26205
25561
  createElementVNode("img", {
26206
25562
  src: miniProgramInfo.value.qrcode,
26207
25563
  alt: "小程序二维码",
26208
25564
  class: "w-[180px] h-[180px]"
26209
- }, null, 8, _hoisted_27),
26210
- miniProgramStatus.value !== "WAITING" ? (openBlock(), createElementBlock("div", _hoisted_28, [
25565
+ }, null, 8, _hoisted_28),
25566
+ miniProgramStatus.value !== "WAITING" ? (openBlock(), createElementBlock("div", _hoisted_29, [
26211
25567
  miniProgramStatus.value === "TIMEOUT" ? (openBlock(), createElementBlock("div", {
26212
25568
  key: 0,
26213
25569
  onClick: getMiniProgramQrCode,
@@ -26218,18 +25574,18 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26218
25574
  size: "18",
26219
25575
  color: "#3B3E55"
26220
25576
  }),
26221
- createElementVNode("div", _hoisted_29, [
26222
- createElementVNode("div", _hoisted_30, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip01")), 1),
26223
- createElementVNode("button", _hoisted_31, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip02")), 1)
25577
+ createElementVNode("div", _hoisted_30, [
25578
+ createElementVNode("div", _hoisted_31, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip01")), 1),
25579
+ createElementVNode("button", _hoisted_32, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip02")), 1)
26224
25580
  ])
26225
25581
  ])) : createCommentVNode("", true),
26226
- ["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("div", _hoisted_32, [
26227
- createElementVNode("div", _hoisted_33, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip03")), 1),
26228
- createElementVNode("div", _hoisted_34, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip04")), 1)
25582
+ ["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("div", _hoisted_33, [
25583
+ createElementVNode("div", _hoisted_34, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip03")), 1),
25584
+ createElementVNode("div", _hoisted_35, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip04")), 1)
26229
25585
  ])) : createCommentVNode("", true)
26230
25586
  ])) : createCommentVNode("", true)
26231
25587
  ]),
26232
- !["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p", _hoisted_35, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip05")), 1)) : (openBlock(), createElementBlock("button", {
25588
+ !["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p", _hoisted_36, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip05")), 1)) : (openBlock(), createElementBlock("button", {
26233
25589
  key: 1,
26234
25590
  onClick: getMiniProgramQrCode,
26235
25591
  class: "mt-2"
@@ -26261,8 +25617,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26261
25617
  submit: withCtx(() => {
26262
25618
  var _a2;
26263
25619
  return [
26264
- formType.value === "login" && tabPanel.value !== "miniProgram" ? (openBlock(), createElementBlock("div", _hoisted_36, [
26265
- createElementVNode("div", _hoisted_37, [
25620
+ formType.value === "login" && tabPanel.value !== "miniProgram" ? (openBlock(), createElementBlock("div", _hoisted_37, [
25621
+ createElementVNode("div", _hoisted_38, [
26266
25622
  createTextVNode(toDisplayString$1(errorMsg.value) + " ", 1),
26267
25623
  errForRemoteLogin.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
26268
25624
  createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.unusualLogin")), 1),
@@ -26280,7 +25636,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26280
25636
  ])
26281
25637
  ])) : createCommentVNode("", true),
26282
25638
  formType.value === "login" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
26283
- tabPanel.value !== "miniProgram" ? (openBlock(), createElementBlock("div", _hoisted_38, [
25639
+ tabPanel.value !== "miniProgram" ? (openBlock(), createElementBlock("div", _hoisted_39, [
26284
25640
  createVNode(unref(Button), {
26285
25641
  color: "primary",
26286
25642
  variant: "solid",
@@ -26298,41 +25654,39 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26298
25654
  createElementVNode("div", {
26299
25655
  class: normalizeClass([["login-modal-footer-args", AgreementWarn.value ? "shaking-box" : ""], "mt-[16px]"])
26300
25656
  }, [
26301
- createElementVNode("div", _hoisted_39, [
25657
+ createElementVNode("div", _hoisted_40, [
26302
25658
  createVNode(_sfc_main$8, {
26303
- ref_key: "agreementDomRef",
26304
- ref: agreementDomRef,
26305
25659
  modelValue: status.value,
26306
25660
  "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => status.value = $event),
26307
25661
  onDeclares: _cache[8] || (_cache[8] = (typ) => handleDisplay(typ))
26308
25662
  }, null, 8, ["modelValue"])
26309
25663
  ])
26310
25664
  ], 2),
26311
- createElementVNode("div", _hoisted_40, [
25665
+ createElementVNode("div", _hoisted_41, [
26312
25666
  _ctx.openHarmonyGuide ? (openBlock(), createElementBlock("div", {
26313
25667
  key: 0,
26314
25668
  class: "text-[var(--theme-link)] flex items-center mt-[12px] cursor-pointer",
26315
25669
  onClick: withModifiers(handleRegisterHarmony, ["stop"])
26316
25670
  }, [
26317
- createElementVNode("div", _hoisted_41, [
26318
- _cache[15] || (_cache[15] = createElementVNode("img", {
25671
+ createElementVNode("div", _hoisted_42, [
25672
+ _cache[18] || (_cache[18] = createElementVNode("img", {
26319
25673
  src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
26320
25674
  alt: "",
26321
25675
  class: "w-[32px] h-[32px] inline-block harmony-icon-img"
26322
25676
  }, null, -1)),
26323
- createElementVNode("div", _hoisted_42, [
25677
+ createElementVNode("div", _hoisted_43, [
26324
25678
  recentLoginType.value === unref(LoginMethodEnum).HARMONY ? (openBlock(), createElementBlock("img", {
26325
25679
  key: 0,
26326
25680
  src: unref(recentLoginImg),
26327
25681
  class: "w-[50px] h-[20px]"
26328
- }, null, 8, _hoisted_43)) : createCommentVNode("", true)
25682
+ }, null, 8, _hoisted_44)) : createCommentVNode("", true)
26329
25683
  ])
26330
25684
  ]),
26331
- createElementVNode("span", _hoisted_44, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.oh")), 1)
25685
+ createElementVNode("span", _hoisted_45, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.oh")), 1)
26332
25686
  ])) : createCommentVNode("", true)
26333
25687
  ])
26334
25688
  ])) : createCommentVNode("", true),
26335
- createElementVNode("div", _hoisted_45, [
25689
+ createElementVNode("div", _hoisted_46, [
26336
25690
  createVNode(GAuth, {
26337
25691
  logos,
26338
25692
  onAuth: pcAuthLogin,
@@ -26341,28 +25695,36 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26341
25695
  }, null, 8, ["logos", "recentLoginType"])
26342
25696
  ])
26343
25697
  ], 64)) : createCommentVNode("", true),
26344
- formType.value === "register" || formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_46, [
25698
+ formType.value === "register" || formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_47, [
26345
25699
  createElementVNode("div", {
26346
25700
  class: normalizeClass([
26347
25701
  "text-[var(--devui-danger)] text-[14px] break-all box-border leading-[20px] h-[40px]",
26348
25702
  formType.value === "register" ? "mt-[-8px]" : ((_a2 = formErrors == null ? void 0 : formErrors.username) == null ? void 0 : _a2.length) > 42 ? "cursor-pointer" : ""
26349
25703
  ])
26350
25704
  }, [
26351
- createElementVNode("span", _hoisted_47, toDisplayString$1(errorMsg.value), 1)
25705
+ createElementVNode("span", _hoisted_48, toDisplayString$1(errorMsg.value), 1)
26352
25706
  ], 2),
26353
25707
  createElementVNode("div", {
26354
25708
  class: normalizeClass(["register-agree mt-[16px]", [AgreementWarn.value ? "shaking-box" : ""]])
26355
25709
  }, [
26356
25710
  createVNode(_sfc_main$7, {
26357
- ref_key: "agreementsDomRef",
26358
- ref: agreementsDomRef,
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
+ createVNode(_sfc_main$7, {
26359
25719
  modelValue: status.value,
26360
- "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => status.value = $event),
26361
- onDeclares: _cache[10] || (_cache[10] = (typ) => handleDisplay(typ)),
26362
- onClick: _cache[11] || (_cache[11] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
26363
- }, null, 8, ["modelValue"])
25720
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => status.value = $event),
25721
+ onDeclares: _cache[13] || (_cache[13] = (typ) => handleDisplay(typ)),
25722
+ "agreement-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.agreement")}》`,
25723
+ "privacy-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")}》`,
25724
+ onClick: _cache[14] || (_cache[14] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
25725
+ }, null, 8, ["modelValue", "agreement-text", "privacy-text"])
26364
25726
  ], 2),
26365
- createElementVNode("div", _hoisted_48, [
25727
+ createElementVNode("div", _hoisted_49, [
26366
25728
  createVNode(unref(Button), {
26367
25729
  color: "primary",
26368
25730
  variant: "solid",
@@ -26414,14 +25776,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26414
25776
  key: "0"
26415
25777
  } : void 0
26416
25778
  ]), 1032, ["modelValue", "lock-scroll", "draggable", "escapable", "append-to-body", "class"]),
26417
- showProtoCheck.value ? (openBlock(), createBlock(_sfc_main$5, {
26418
- key: 0,
25779
+ createVNode(_sfc_main$5, {
26419
25780
  visible: showProtoCheck.value,
26420
- "onUpdate:visible": _cache[13] || (_cache[13] = ($event) => showProtoCheck.value = $event),
25781
+ "onUpdate:visible": _cache[16] || (_cache[16] = ($event) => showProtoCheck.value = $event),
26421
25782
  onConfirm: agreeAndLogin,
26422
- onDeclares: _cache[14] || (_cache[14] = (typ) => handleDisplay(typ)),
26423
- dataShareChecked: dataShareChecked.value
26424
- }, null, 8, ["visible", "dataShareChecked"])) : createCommentVNode("", true)
25783
+ onDeclares: _cache[17] || (_cache[17] = (typ) => handleDisplay(typ))
25784
+ }, null, 8, ["visible"])
26425
25785
  ], 64);
26426
25786
  };
26427
25787
  }
@@ -26668,54 +26028,52 @@ const index = {
26668
26028
  }
26669
26029
  };
26670
26030
  export {
26671
- currentTheme as A,
26672
- LANG_EN as B,
26673
- emitEvent as C,
26674
- isHttps as D,
26031
+ LANG_EN as A,
26032
+ emitEvent as B,
26033
+ isHttps as C,
26034
+ _sfc_main$z as D,
26675
26035
  EVENT_NAME as E,
26676
- _sfc_main$B as F,
26036
+ loadAsideData as F,
26677
26037
  GIcon as G,
26678
- loadAsideData as H,
26679
- asideRequest as I,
26680
- ToolsFloat as J,
26681
- _sfc_main as K,
26038
+ asideRequest as H,
26039
+ ToolsFloat as I,
26040
+ _sfc_main as J,
26041
+ GitCodeAside as K,
26682
26042
  LANG_ZH as L,
26683
- GitCodeAside as M,
26684
- GitCodeHeader as N,
26685
- SiteAnnouncement as O,
26686
- useLogin as P,
26687
- setLayoutConfig as Q,
26043
+ GitCodeHeader as M,
26044
+ useLogin as N,
26045
+ setLayoutConfig as O,
26046
+ GitCodeLayoutEmitter as P,
26047
+ setTheme as Q,
26688
26048
  REPO_MODULE as R,
26689
26049
  SceneValue as S,
26690
26050
  TOPIC_TYPE as T,
26691
- GitCodeLayoutEmitter as U,
26692
- setTheme as V,
26693
- index as W,
26051
+ index as U,
26694
26052
  _export_sfc as _,
26695
26053
  i18n as a,
26696
26054
  REPO_EVENT as b,
26697
26055
  REPO_TYPE as c,
26698
- transferNumber as d,
26056
+ useRequestReport as d,
26699
26057
  extractRepoInfoWithURL as e,
26700
- useRequestReport as f,
26701
- useTimeFormat as g,
26058
+ useTimeFormat as f,
26059
+ useCookie as g,
26702
26060
  headRequest as h,
26703
26061
  isPhone as i,
26704
- useCookie as j,
26705
- usePageResize as k,
26062
+ usePageResize as j,
26063
+ isGstarRepo as k,
26706
26064
  localStorage$2 as l,
26707
- isGstarRepo as m,
26708
- _sfc_main$A as n,
26709
- isIncubationRepo as o,
26710
- highlightWords as p,
26711
- _frEventTrack as q,
26065
+ _sfc_main$y as m,
26066
+ isIncubationRepo as n,
26067
+ highlightWords as o,
26068
+ _frEventTrack as p,
26069
+ LANG_KEY as q,
26712
26070
  reqCatch as r,
26713
26071
  setLoginTriggerSource as s,
26714
- transformUrl as t,
26072
+ transferNumber as t,
26715
26073
  useModel as u,
26716
26074
  vElementExposure as v,
26717
- LANG_KEY as w,
26718
- getLocaleLang as x,
26719
- useLayoutConfig as y,
26720
- ThemeType as z
26075
+ getLocaleLang as w,
26076
+ useLayoutConfig as x,
26077
+ ThemeType as y,
26078
+ currentTheme as z
26721
26079
  };