vue-layout-gitcode 1.0.0 → 1.0.2

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.
@@ -35,10 +35,11 @@ import { Badge } from "vue-devui-lal/badge";
35
35
  import "vue-devui-lal/badge/style.css";
36
36
  import { Tabs } from "vue-devui-lal/tabs";
37
37
  import "vue-devui-lal/tabs/style.css";
38
- import { RadioGroup, Radio } from "vue-devui-lal/radio";
39
- import "vue-devui-lal/radio/style.css";
40
38
  import { Form, FormItem } from "vue-devui-lal/form";
41
39
  import "vue-devui-lal/form/style.css";
40
+ import { RadioGroup, Radio } from "vue-devui-lal/radio";
41
+ import "@devui-design/icons/icomoon/devui-icon.css";
42
+ import "vue-devui-lal/radio/style.css";
42
43
  import { Checkbox } from "vue-devui-lal/checkbox";
43
44
  import "vue-devui-lal/checkbox/style.css";
44
45
  import { Modal } from "vue-devui-lal/modal";
@@ -101,6 +102,30 @@ const _export_sfc = (sfc, props) => {
101
102
  return target;
102
103
  };
103
104
  const Icon = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-2e3caaf8"]]);
105
+ const defaultConfig = {
106
+ VITE_ENV: "production",
107
+ VITE_HOST: "https://gitcode.com",
108
+ VITE_API_HOST: "https://web-api.gitcode.com",
109
+ VITE_AD_LINK: "https://cdn-static.gitcode.com/adList/active.json",
110
+ VITE_NEWS_HOST: "https://news.gitcode.com",
111
+ VITE_AI_HOST: "https://ai.gitcode.com",
112
+ VITE_INCUBATION_TOPIC: "6656c64efd46e722f6299761",
113
+ VITE_GSTAR_TOPIC: "6656c65ebacc215dac8b2d06",
114
+ VITE_TRUSTED_TOPIC: "6716255303226504db66d8d7",
115
+ VITE_SEARCH_REPO_CHANNEL_ID: "67bc3f5f97a0293d6bfebd01",
116
+ VITE_SECRET_KEY: "SA!nUNPZ5o!OSV&B",
117
+ VITE_SECRET_IV: "SA!nwwwZ5o!OSV&B"
118
+ };
119
+ let layoutConfig$5 = { ...defaultConfig };
120
+ function setLayoutConfig(customConfig) {
121
+ layoutConfig$5 = {
122
+ ...layoutConfig$5,
123
+ ...customConfig
124
+ };
125
+ }
126
+ function useLayoutConfig() {
127
+ return layoutConfig$5;
128
+ }
104
129
  function generateRandomString(length) {
105
130
  let result2 = "";
106
131
  const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
@@ -284,9 +309,6 @@ var AsideReportEvent = /* @__PURE__ */ ((AsideReportEvent2) => {
284
309
  AsideReportEvent2["AI_CLICK"] = "aihub_gitcode_toolbar";
285
310
  return AsideReportEvent2;
286
311
  })(AsideReportEvent || {});
287
- const SITE_HOST = "https://gitcode.com";
288
- const AI_HOST = "https://ai.gitcode.com";
289
- const NEWS_HOST = "https://news.gitcode.com";
290
312
  const AICopilot_ROUTE_NAME = "aiCopilot";
291
313
  const HELP_DOCS_URL = "https://docs.gitcode.com";
292
314
  const MENU_ITEM_ROUTE_NAME = ["home", "gStar", "trusted", "aiCopilot", "kanban", "contributed", "issues", "merge", "discussionCreated", "explore", "userFollowing", "userStars", "ai"];
@@ -1288,6 +1310,7 @@ function init(converter, defaultAttributes) {
1288
1310
  );
1289
1311
  }
1290
1312
  var api = init(defaultConverter, { path: "/" });
1313
+ const layoutConfig$4 = useLayoutConfig();
1291
1314
  function scrollToTop() {
1292
1315
  const c = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;
1293
1316
  if (c > 0) {
@@ -1311,7 +1334,7 @@ function extractRepoInfoWithURL(repoUrl) {
1311
1334
  return parts.join("/");
1312
1335
  }
1313
1336
  const isGstarRepo = (topics) => {
1314
- const gstarTopicIds = "6656c65ebacc215dac8b2d06".split(",");
1337
+ const gstarTopicIds = layoutConfig$4.VITE_GSTAR_TOPIC.split(",");
1315
1338
  let isGstar = false;
1316
1339
  topics && topics.forEach((item) => {
1317
1340
  if (gstarTopicIds.includes(item.topic_id || item.id)) {
@@ -1321,7 +1344,7 @@ const isGstarRepo = (topics) => {
1321
1344
  return isGstar;
1322
1345
  };
1323
1346
  const isTrustedRepo = (topics) => {
1324
- const trustedTopicIds = "6716255303226504db66d8d7".split(",");
1347
+ const trustedTopicIds = layoutConfig$4.VITE_TRUSTED_TOPIC.split(",");
1325
1348
  let isTrusted = false;
1326
1349
  topics && topics.forEach((item) => {
1327
1350
  if (trustedTopicIds.includes(item.topic_id || item.id)) {
@@ -1330,7 +1353,7 @@ const isTrustedRepo = (topics) => {
1330
1353
  });
1331
1354
  return isTrusted;
1332
1355
  };
1333
- const INCUBATION_TOPICS = "6656c64efd46e722f6299761";
1356
+ const INCUBATION_TOPICS = layoutConfig$4.VITE_INCUBATION_TOPIC || "";
1334
1357
  const isIncubationRepo = (topics = []) => {
1335
1358
  if (!topics)
1336
1359
  return false;
@@ -1355,17 +1378,17 @@ function formatTimeDifference(targetDate) {
1355
1378
  const years = Math.floor(months / 12);
1356
1379
  let formatLabel = "";
1357
1380
  if (years > 0) {
1358
- formatLabel = years === 1 ? t2("common.time.oneYearAgo") : t2("common.time.yearsAgo", { num: years });
1381
+ formatLabel = years === 1 ? t2("gitCodeLayout.common.time.oneYearAgo") : t2("gitCodeLayout.common.time.yearsAgo", { num: years });
1359
1382
  } else if (months > 0) {
1360
- formatLabel = months === 1 ? t2("common.time.oneMonthAgo") : t2("common.time.monthsAgo", { num: months });
1383
+ formatLabel = months === 1 ? t2("gitCodeLayout.common.time.oneMonthAgo") : t2("gitCodeLayout.common.time.monthsAgo", { num: months });
1361
1384
  } else if (days > 0) {
1362
- formatLabel = days === 1 ? t2("common.time.oneDayAgo") : t2("common.time.daysAgo", { num: days });
1385
+ formatLabel = days === 1 ? t2("gitCodeLayout.common.time.oneDayAgo") : t2("gitCodeLayout.common.time.daysAgo", { num: days });
1363
1386
  } else if (hours > 0) {
1364
- formatLabel = hours === 1 ? t2("common.time.oneHourAgo") : t2("common.time.hoursAgo", { num: hours });
1387
+ formatLabel = hours === 1 ? t2("gitCodeLayout.common.time.oneHourAgo") : t2("gitCodeLayout.common.time.hoursAgo", { num: hours });
1365
1388
  } else if (minutes > 0) {
1366
- formatLabel = minutes === 1 ? t2("common.time.oneMinuteAgo") : t2("common.time.minutesAgo", { num: minutes });
1389
+ formatLabel = minutes === 1 ? t2("gitCodeLayout.common.time.oneMinuteAgo") : t2("gitCodeLayout.common.time.minutesAgo", { num: minutes });
1367
1390
  } else {
1368
- formatLabel = t2("common.time.justNow");
1391
+ formatLabel = t2("gitCodeLayout.common.time.justNow");
1369
1392
  }
1370
1393
  return formatLabel + " ";
1371
1394
  }
@@ -1374,7 +1397,7 @@ const getLastTimeRepoId = () => {
1374
1397
  };
1375
1398
  const setUtmSourceSign = (utm_source) => {
1376
1399
  const time = new Date((/* @__PURE__ */ new Date()).getTime() + 60 * 60 * 1e3);
1377
- return api.set("utm_source_sign", utm_source, { expires: time, domain: {}.VITE_COOKIE_DOMAIN });
1400
+ return api.set("utm_source_sign", utm_source, { expires: time, domain: layoutConfig$4.VITE_COOKIE_DOMAIN });
1378
1401
  };
1379
1402
  const getUtmSourceSign = () => {
1380
1403
  return api.get("utm_source_sign") || "";
@@ -1539,6 +1562,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
1539
1562
  },
1540
1563
  emits: ["toggle-growth-center"],
1541
1564
  setup(__props, { emit: __emit }) {
1565
+ const layoutConfig2 = useLayoutConfig();
1542
1566
  const { t: t2 } = useI18n();
1543
1567
  const props = __props;
1544
1568
  provide("globalStore", computed(() => props.globalStore));
@@ -1581,11 +1605,11 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
1581
1605
  const process2 = ref(true);
1582
1606
  const opinionText = ref("");
1583
1607
  const rateIcon = [
1584
- { name: "gt-nps-1", title: t2("home.veryGood"), index: 0 },
1585
- { name: "gt-nps-2", title: t2("home.good"), index: 1 },
1586
- { name: "gt-nps-3", title: t2("home.generally"), index: 2 },
1587
- { name: "gt-nps-4", title: t2("home.bad"), index: 3 },
1588
- { name: "gt-nps-5", title: t2("home.veryBad"), index: 4 }
1608
+ { name: "gt-nps-1", title: t2("gitCodeLayout.home.veryGood"), index: 0 },
1609
+ { name: "gt-nps-2", title: t2("gitCodeLayout.home.good"), index: 1 },
1610
+ { name: "gt-nps-3", title: t2("gitCodeLayout.home.generally"), index: 2 },
1611
+ { name: "gt-nps-4", title: t2("gitCodeLayout.home.bad"), index: 3 },
1612
+ { name: "gt-nps-5", title: t2("gitCodeLayout.home.veryBad"), index: 4 }
1589
1613
  ];
1590
1614
  const store = localStorage.getItem("spmStatus");
1591
1615
  const status = store ? JSON.parse(store) : null;
@@ -1638,7 +1662,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
1638
1662
  if (closeActive && closeActive === "1" && closeDate === nowDate) {
1639
1663
  return false;
1640
1664
  }
1641
- const adLink = "https://cdn-static.gitcode.com/adList/active.json?timestamp=" + (/* @__PURE__ */ new Date()).getTime();
1665
+ const adLink = layoutConfig2.VITE_AD_LINK + "?timestamp=" + (/* @__PURE__ */ new Date()).getTime();
1642
1666
  const response = await fetch(adLink);
1643
1667
  activeAdJson.value = await response.json();
1644
1668
  };
@@ -1692,7 +1716,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
1692
1716
  }, {
1693
1717
  content: withCtx(() => [
1694
1718
  createElementVNode("div", _hoisted_2$j, [
1695
- createElementVNode("div", _hoisted_3$g, toDisplayString(_ctx.$t("userSetting.menu.growthCenter")), 1)
1719
+ createElementVNode("div", _hoisted_3$g, toDisplayString(_ctx.$t("gitCodeLayout.userSetting.menu.growthCenter")), 1)
1696
1720
  ])
1697
1721
  ]),
1698
1722
  default: withCtx(() => [
@@ -1719,8 +1743,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
1719
1743
  content: withCtx(() => [
1720
1744
  createElementVNode("div", _hoisted_5$a, [
1721
1745
  createElementVNode("div", _hoisted_6$9, [
1722
- createElementVNode("p", null, toDisplayString(_ctx.$t("home.userFeedback01")), 1),
1723
- createElementVNode("p", _hoisted_7$8, toDisplayString(_ctx.$t("home.userFeedback02")), 1)
1746
+ createElementVNode("p", null, toDisplayString(_ctx.$t("gitCodeLayout.home.userFeedback01")), 1),
1747
+ createElementVNode("p", _hoisted_7$8, toDisplayString(_ctx.$t("gitCodeLayout.home.userFeedback02")), 1)
1724
1748
  ])
1725
1749
  ])
1726
1750
  ]),
@@ -1751,7 +1775,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
1751
1775
  }, {
1752
1776
  content: withCtx(() => [
1753
1777
  createElementVNode("div", _hoisted_8$6, [
1754
- createElementVNode("div", _hoisted_9$5, toDisplayString(_ctx.$t("home.followUs")), 1),
1778
+ createElementVNode("div", _hoisted_9$5, toDisplayString(_ctx.$t("gitCodeLayout.home.followUs")), 1),
1755
1779
  _cache[5] || (_cache[5] = createElementVNode("img", {
1756
1780
  class: "qrcode",
1757
1781
  src: "https://cdn-static.gitcode.com/static/images/points/wx_gitcode.png"
@@ -1804,7 +1828,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
1804
1828
  createElementVNode("span", null, toDisplayString(rateIcon[rateActive.value === null ? rateNow.value : rateActive.value].title), 1)
1805
1829
  ])) : createCommentVNode("", true),
1806
1830
  createElementVNode("div", _hoisted_17$3, [
1807
- createElementVNode("span", null, toDisplayString(_ctx.$t("home.rateExperience")), 1)
1831
+ createElementVNode("span", null, toDisplayString(_ctx.$t("gitCodeLayout.home.rateExperience")), 1)
1808
1832
  ]),
1809
1833
  createElementVNode("div", _hoisted_18$3, [
1810
1834
  (openBlock(), createElementBlock(Fragment, null, renderList(rateIcon, (ico) => {
@@ -1828,14 +1852,14 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
1828
1852
  createElementVNode("span", null, toDisplayString(rateIcon[rateNow.value].title), 1)
1829
1853
  ])) : createCommentVNode("", true),
1830
1854
  createElementVNode("div", _hoisted_22$2, [
1831
- createElementVNode("span", null, toDisplayString(_ctx.$t("home.improveQuestion")) + "?", 1)
1855
+ createElementVNode("span", null, toDisplayString(_ctx.$t("gitCodeLayout.home.improveQuestion")) + "?", 1)
1832
1856
  ]),
1833
1857
  createElementVNode("div", _hoisted_23$2, [
1834
1858
  createVNode(unref(Textarea), {
1835
1859
  modelValue: opinionText.value,
1836
1860
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => opinionText.value = $event),
1837
1861
  rows: 4,
1838
- placeholder: _ctx.$t("home.facebackPlaceholder"),
1862
+ placeholder: _ctx.$t("gitCodeLayout.home.facebackPlaceholder"),
1839
1863
  "show-count": "",
1840
1864
  maxlength: "200"
1841
1865
  }, null, 8, ["modelValue", "placeholder"])
@@ -1847,7 +1871,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
1847
1871
  onClick: handleNpsSubmit
1848
1872
  }, {
1849
1873
  default: withCtx(() => [
1850
- createTextVNode(toDisplayString(_ctx.$t("repo.pr.commit")), 1)
1874
+ createTextVNode(toDisplayString(_ctx.$t("gitCodeLayout.repo.pr.commit")), 1)
1851
1875
  ]),
1852
1876
  _: 1
1853
1877
  })
@@ -1863,7 +1887,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
1863
1887
  })
1864
1888
  ]),
1865
1889
  createElementVNode("div", _hoisted_26, [
1866
- createElementVNode("span", null, toDisplayString(_ctx.$t("home.thankFaceback")) + "!", 1)
1890
+ createElementVNode("span", null, toDisplayString(_ctx.$t("gitCodeLayout.home.thankFaceback")) + "!", 1)
1867
1891
  ])
1868
1892
  ]))
1869
1893
  ])
@@ -1873,7 +1897,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
1873
1897
  createVNode(unref(Popover), {
1874
1898
  class: "custom-popover-feedback",
1875
1899
  position: ["left"],
1876
- content: _ctx.$t("home.userFeedbackProductRecommendations"),
1900
+ content: _ctx.$t("gitCodeLayout.home.userFeedbackProductRecommendations"),
1877
1901
  trigger: "hover",
1878
1902
  offset: { mainAxis: 22, crossAxis: 0 }
1879
1903
  }, {
@@ -1935,9 +1959,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
1935
1959
  };
1936
1960
  }
1937
1961
  });
1938
- const index_vue_vue_type_style_index_0_scoped_62be445e_lang = "";
1962
+ const index_vue_vue_type_style_index_0_scoped_0c66acaa_lang = "";
1939
1963
  const index_vue_vue_type_style_index_1_lang$3 = "";
1940
- const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-62be445e"]]);
1964
+ const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-0c66acaa"]]);
1941
1965
  const { width } = useWindowSize();
1942
1966
  const usePageResize = () => {
1943
1967
  const widthConfig = {
@@ -2018,18 +2042,18 @@ const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-0e
2018
2042
  const createSetting = () => {
2019
2043
  const { t: t2 } = useI18n();
2020
2044
  const settings = {
2021
- slogan: t2("home.slogon"),
2045
+ slogan: t2("gitCodeLayout.home.slogon"),
2022
2046
  copyright: {
2023
- digest: (/* @__PURE__ */ new Date()).getFullYear() + " " + t2("home.digest"),
2024
- digestAbbr: (/* @__PURE__ */ new Date()).getFullYear() + " " + t2("home.companyInformation"),
2025
- icp: t2("home.recordInformation"),
2047
+ digest: (/* @__PURE__ */ new Date()).getFullYear() + " " + t2("gitCodeLayout.home.digest"),
2048
+ digestAbbr: (/* @__PURE__ */ new Date()).getFullYear() + " " + t2("gitCodeLayout.home.companyInformation"),
2049
+ icp: t2("gitCodeLayout.home.recordInformation"),
2026
2050
  beian: "11010502030143",
2027
2051
  phone: "400-6868-951",
2028
2052
  serviceTime: "9:00-18:00",
2029
- publicSecurity: t2("common.publicSecurity"),
2030
- aboutUs: t2("common.aboutUs"),
2031
- recruitment: t2("common.recruitment"),
2032
- price: t2("common.prices")
2053
+ publicSecurity: t2("gitCodeLayout.common.publicSecurity"),
2054
+ aboutUs: t2("gitCodeLayout.common.aboutUs"),
2055
+ recruitment: t2("gitCodeLayout.common.recruitment"),
2056
+ price: t2("gitCodeLayout.common.prices")
2033
2057
  }
2034
2058
  };
2035
2059
  return settings;
@@ -2064,7 +2088,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
2064
2088
  };
2065
2089
  return (_ctx, _cache) => {
2066
2090
  return openBlock(), createElementBlock("div", _hoisted_1$p, [
2067
- createElementVNode("div", null, toDisplayString(_ctx.$t("common.footerSetting.lang")), 1),
2091
+ createElementVNode("div", null, toDisplayString(_ctx.$t("gitCodeLayout.common.footerSetting.lang")), 1),
2068
2092
  createElementVNode("div", _hoisted_2$i, [
2069
2093
  (openBlock(true), createElementBlock(Fragment, null, renderList(linkList.value, (item) => {
2070
2094
  return openBlock(), createElementBlock("div", mergeProps({
@@ -2595,7 +2619,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
2595
2619
  };
2596
2620
  return (_ctx, _cache) => {
2597
2621
  return openBlock(), createElementBlock("div", _hoisted_1$o, [
2598
- createElementVNode("div", null, toDisplayString(_ctx.$t("common.footerSetting.theme")), 1),
2622
+ createElementVNode("div", null, toDisplayString(_ctx.$t("gitCodeLayout.common.footerSetting.theme")), 1),
2599
2623
  createElementVNode("div", _hoisted_2$h, [
2600
2624
  (openBlock(true), createElementBlock(Fragment, null, renderList(themeList.value, (item) => {
2601
2625
  return openBlock(), createElementBlock("div", mergeProps({
@@ -2704,10 +2728,16 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
2704
2728
  }
2705
2729
  });
2706
2730
  const index_vue_vue_type_style_index_0_lang$1 = "";
2731
+ const layoutConfig$3 = useLayoutConfig();
2707
2732
  const transWebUrl = (url, params) => {
2708
2733
  if (!url)
2709
2734
  return url;
2710
2735
  let processedUrl = url;
2736
+ if (layoutConfig$3.VITE_ENV !== "production") {
2737
+ const regex = /^(?:https?:\/\/)?(?:www\.)?([^\/]+)(\/.*)$/;
2738
+ const match = url.match(regex);
2739
+ processedUrl = match ? match[2] : url || "/";
2740
+ }
2711
2741
  if (!params)
2712
2742
  return processedUrl;
2713
2743
  const separator = processedUrl.includes("?") ? "&" : "?";
@@ -2865,9 +2895,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
2865
2895
  if (props.defaultOrg.list) {
2866
2896
  loadMoreTotal = props.defaultOrg.totalNum;
2867
2897
  const propStoreData = ((_a = props.defaultOrg) == null ? void 0 : _a.storeData) || [];
2868
- return [{ id: 0, label: t2("common.all") }, ...props.defaultOrg.list, ...propStoreData, ...moreOrgData.value];
2898
+ return [{ id: 0, label: t2("gitCodeLayout.common.all") }, ...props.defaultOrg.list, ...propStoreData, ...moreOrgData.value];
2869
2899
  }
2870
- return [{ id: 0, label: t2("common.all") }, ...moreOrgData.value];
2900
+ return [{ id: 0, label: t2("gitCodeLayout.common.all") }, ...moreOrgData.value];
2871
2901
  });
2872
2902
  const fastToLink = (type) => {
2873
2903
  if (type === "project") {
@@ -2935,7 +2965,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
2935
2965
  createElementVNode("div", {
2936
2966
  class: "fast-click-button",
2937
2967
  onClick: _cache[0] || (_cache[0] = ($event) => fastToLink("project"))
2938
- }, toDisplayString(_ctx.$t("org.project")), 1)
2968
+ }, toDisplayString(_ctx.$t("gitCodeLayout.org.project")), 1)
2939
2969
  ])
2940
2970
  ]),
2941
2971
  createVNode(Icon, {
@@ -2974,7 +3004,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
2974
3004
  createVNode(unref(Input), {
2975
3005
  modelValue: searchKey.value,
2976
3006
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => searchKey.value = $event),
2977
- placeholder: _ctx.$t("common.search"),
3007
+ placeholder: _ctx.$t("gitCodeLayout.common.search"),
2978
3008
  onInput: valChange,
2979
3009
  onCompositionstart: _cache[4] || (_cache[4] = ($event) => inputIng.value = true),
2980
3010
  onCompositionend: _cache[5] || (_cache[5] = ($event) => inputIng.value = false)
@@ -2996,7 +3026,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
2996
3026
  createElementVNode("div", {
2997
3027
  class: "fast-click-button",
2998
3028
  onClick: _cache[7] || (_cache[7] = ($event) => fastToLink("team"))
2999
- }, toDisplayString(_ctx.$t("common.organize")), 1)
3029
+ }, toDisplayString(_ctx.$t("gitCodeLayout.common.organize")), 1)
3000
3030
  ])
3001
3031
  ]),
3002
3032
  createVNode(Icon, {
@@ -3013,7 +3043,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
3013
3043
  createVNode(unref(Input), {
3014
3044
  modelValue: searchKey.value,
3015
3045
  "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => searchKey.value = $event),
3016
- placeholder: _ctx.$t("common.search"),
3046
+ placeholder: _ctx.$t("gitCodeLayout.common.search"),
3017
3047
  onInput: valChange,
3018
3048
  onCompositionstart: _cache[10] || (_cache[10] = ($event) => inputIng.value = true),
3019
3049
  onCompositionend: _cache[11] || (_cache[11] = ($event) => inputIng.value = false)
@@ -3087,7 +3117,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
3087
3117
  disabled: loading.value
3088
3118
  }, {
3089
3119
  default: withCtx(() => [
3090
- createTextVNode(toDisplayString(_ctx.$t("org.expand_more")), 1)
3120
+ createTextVNode(toDisplayString(_ctx.$t("gitCodeLayout.org.expand_more")), 1)
3091
3121
  ]),
3092
3122
  _: 1
3093
3123
  }, 8, ["loading", "disabled"]), [
@@ -3097,9 +3127,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
3097
3127
  };
3098
3128
  }
3099
3129
  });
3100
- const ProjectMenuList_vue_vue_type_style_index_0_scoped_615b6d22_lang = "";
3130
+ const ProjectMenuList_vue_vue_type_style_index_0_scoped_4304b963_lang = "";
3101
3131
  const ProjectMenuList_vue_vue_type_style_index_1_lang = "";
3102
- const ProjectMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-615b6d22"]]);
3132
+ const ProjectMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-4304b963"]]);
3103
3133
  const _hoisted_1$m = { class: "side-bar-label" };
3104
3134
  const _hoisted_2$f = {
3105
3135
  key: 0,
@@ -3152,6 +3182,9 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3152
3182
  },
3153
3183
  emits: ["onSelect"],
3154
3184
  setup(__props, { emit: __emit }) {
3185
+ const layoutConfig2 = useLayoutConfig();
3186
+ const AI_HOST = layoutConfig2.VITE_AI_HOST;
3187
+ const NEWS_HOST = layoutConfig2.VITE_NEWS_HOST;
3155
3188
  const router2 = useRouter();
3156
3189
  const route = useRoute();
3157
3190
  const { t: t2, locale: locale2 } = useI18n();
@@ -3200,8 +3233,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3200
3233
  key: "home",
3201
3234
  icon: "gt-line-home-2",
3202
3235
  activeIcon: "gt-plane-home-2",
3203
- label: t2("header.home"),
3204
- host: SITE_HOST,
3236
+ label: t2("gitCodeLayout.header.home"),
3237
+ host: layoutConfig2.VITE_HOST,
3205
3238
  // 跳转的域名
3206
3239
  route: { name: "home", microApp: HOMEWEB_APP_NAME }
3207
3240
  // 跳转的路径
@@ -3211,7 +3244,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3211
3244
  icon: "gt-line-issues",
3212
3245
  activeIcon: "gt-plane-issues-2",
3213
3246
  label: "Issues",
3214
- host: SITE_HOST,
3247
+ host: layoutConfig2.VITE_HOST,
3215
3248
  route: { name: "issues", login: true }
3216
3249
  },
3217
3250
  {
@@ -3219,15 +3252,15 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3219
3252
  icon: "gt-line-pullRequest",
3220
3253
  activeIcon: "gt-plane-pullRequest-2",
3221
3254
  label: props.asideSetShowLittle ? "PR" : "Pull Requests",
3222
- host: SITE_HOST,
3255
+ host: layoutConfig2.VITE_HOST,
3223
3256
  route: { name: "merge", login: true }
3224
3257
  },
3225
3258
  {
3226
3259
  key: "kanban",
3227
3260
  icon: "gt-line-table",
3228
3261
  activeIcon: "gt-plane-table-2",
3229
- label: t2("org.board"),
3230
- host: SITE_HOST,
3262
+ label: t2("gitCodeLayout.org.board"),
3263
+ host: layoutConfig2.VITE_HOST,
3231
3264
  // 跳转的域名
3232
3265
  route: { name: "kanban", login: true },
3233
3266
  // 跳转的路径
@@ -3237,8 +3270,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3237
3270
  key: "discussionCreated",
3238
3271
  icon: "gt-line-discussions",
3239
3272
  activeIcon: "gt-plane-discussions-2",
3240
- label: t2("repo.pr.discussion"),
3241
- host: SITE_HOST,
3273
+ label: t2("gitCodeLayout.repo.pr.discussion"),
3274
+ host: layoutConfig2.VITE_HOST,
3242
3275
  route: { name: "discussionCreated", login: true }
3243
3276
  }
3244
3277
  // {
@@ -3246,8 +3279,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3246
3279
  // openBlank: true,
3247
3280
  // icon: 'gt-a-watchshuxing1guan5',
3248
3281
  // activeIcon: 'gt-a-watchshuxing1kai8',
3249
- // label: t('home.focusOn'),
3250
- // host: SITE_HOST,
3282
+ // label: t('gitCodeLayout.home.focusOn'),
3283
+ // host: layoutConfig.VITE_HOST,
3251
3284
  // route: { name: 'userFollowing', microApp: 'user-center', params: { namespace: username }, login: true }
3252
3285
  // },
3253
3286
  // {
@@ -3255,8 +3288,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3255
3288
  // openBlank: true,
3256
3289
  // icon: 'gt-a-Star_Navigation_Defaults_16px1',
3257
3290
  // activeIcon: 'gt-a-Star_Navigation_Select_16px1',
3258
- // label: t('home.star'),
3259
- // host: SITE_HOST,
3291
+ // label: t('gitCodeLayout.home.star'),
3292
+ // host: layoutConfig.VITE_HOST,
3260
3293
  // route: { name: 'userStars', microApp: 'user-center', params: { namespace: username }, login: true }
3261
3294
  // }
3262
3295
  ];
@@ -3273,8 +3306,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3273
3306
  activeIcon: "gt-plane-GitCodeAI",
3274
3307
  label: props.asideSetShowLittle ? "AI" : "GitCode AI",
3275
3308
  openBlank: true,
3276
- host: SITE_HOST,
3277
- href: `${SITE_HOST}/ai?utm_source=sidebar`
3309
+ host: layoutConfig2.VITE_HOST,
3310
+ href: `${layoutConfig2.VITE_HOST}/ai?utm_source=sidebar`
3278
3311
  },
3279
3312
  /* {
3280
3313
  key: 'ai',
@@ -3291,14 +3324,14 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3291
3324
  icon: 'gt-plane-GStar',
3292
3325
  activeIcon: 'gt-plane-GStar-red',
3293
3326
  label: 'G-Star',
3294
- host: SITE_HOST,
3327
+ host: layoutConfig.VITE_HOST,
3295
3328
  route: { name: 'gStar', microApp: HOMEWEB_APP_NAME }
3296
3329
  }, */
3297
3330
  {
3298
3331
  key: "news",
3299
3332
  icon: "gt-line-consulting",
3300
3333
  activeIcon: "gt-plane-consulting-2",
3301
- label: t2("home.informationCenter"),
3334
+ label: t2("gitCodeLayout.home.informationCenter"),
3302
3335
  openBlank: true,
3303
3336
  host: NEWS_HOST,
3304
3337
  href: `${NEWS_HOST}/news?lang=${locale2.value}`
@@ -3307,7 +3340,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3307
3340
  key: "competition",
3308
3341
  icon: "gt-a-line-AICompetition1",
3309
3342
  activeIcon: "gt-a-plane-AICompetition2",
3310
- label: t2("home.competition"),
3343
+ label: t2("gitCodeLayout.home.competition"),
3311
3344
  openBlank: true,
3312
3345
  host: AI_HOST,
3313
3346
  href: `${AI_HOST}/competition/?utm_source=toolbar`
@@ -3316,8 +3349,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3316
3349
  key: 'trusted',
3317
3350
  icon: 'gt-a-Property1Default5',
3318
3351
  activeIcon: 'gt-a-Property1red5',
3319
- label: asideSetShowLittle ? t('trusted.shortName') : t('trusted.menu'),
3320
- host: SITE_HOST,
3352
+ label: asideSetShowLittle ? t('gitCodeLayout.trusted.shortName') : t('gitCodeLayout.trusted.menu'),
3353
+ host: layoutConfig.VITE_HOST,
3321
3354
  route: { name: 'trusted', microApp: HOMEWEB_APP_NAME }
3322
3355
  } */
3323
3356
  ];
@@ -3521,8 +3554,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3521
3554
  subShow: subShow.value.project,
3522
3555
  key: "project",
3523
3556
  type: "project",
3524
- title: _ctx.$t("common.project"),
3525
- buttonText: _ctx.$t("dashboard.repo.createRepo"),
3557
+ title: _ctx.$t("gitCodeLayout.common.project"),
3558
+ buttonText: _ctx.$t("gitCodeLayout.dashboard.repo.createRepo"),
3526
3559
  isLogin: _ctx.isLogin,
3527
3560
  query: {
3528
3561
  user_name: username.value,
@@ -3539,8 +3572,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3539
3572
  isLogin: _ctx.isLogin,
3540
3573
  key: "team",
3541
3574
  type: "team",
3542
- title: _ctx.$t("common.organize"),
3543
- buttonText: _ctx.$t("orgSetting.creOrg"),
3575
+ title: _ctx.$t("gitCodeLayout.common.organize"),
3576
+ buttonText: _ctx.$t("gitCodeLayout.orgSetting.creOrg"),
3544
3577
  query: {},
3545
3578
  defaultData: defaultOrg.value,
3546
3579
  username: username.value
@@ -3563,7 +3596,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3563
3596
  name: "gt-line-file",
3564
3597
  color: "var(--theme-placeholder)"
3565
3598
  }),
3566
- createTextVNode(" " + toDisplayString(_ctx.$t("header.helpDocument")), 1)
3599
+ createTextVNode(" " + toDisplayString(_ctx.$t("gitCodeLayout.header.helpDocument")), 1)
3567
3600
  ]),
3568
3601
  _: 1
3569
3602
  }, 8, ["href"]),
@@ -3576,7 +3609,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3576
3609
  name: "gt-line-Checks",
3577
3610
  color: "var(--theme-placeholder)"
3578
3611
  }),
3579
- createTextVNode(" " + toDisplayString(_ctx.$t("home.feedbackCenter")), 1)
3612
+ createTextVNode(" " + toDisplayString(_ctx.$t("gitCodeLayout.home.feedbackCenter")), 1)
3580
3613
  ]),
3581
3614
  _: 1
3582
3615
  })
@@ -3597,14 +3630,14 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3597
3630
  createElementVNode("p", {
3598
3631
  class: normalizeClass(["whitespace-nowrap mt-[16px] support", { en: isEn.value }])
3599
3632
  }, [
3600
- createElementVNode("span", null, toDisplayString(_ctx.$t("home.technicalSupport")), 1),
3633
+ createElementVNode("span", null, toDisplayString(_ctx.$t("gitCodeLayout.home.technicalSupport")), 1),
3601
3634
  _cache[1] || (_cache[1] = createElementVNode("a", {
3602
3635
  href: "https://www.csdn.net/",
3603
3636
  target: "_blank",
3604
3637
  rel: "noopener noreferrer"
3605
3638
  }, "CSDN", -1)),
3606
3639
  _cache[2] || (_cache[2] = createTextVNode("  |  ")),
3607
- createElementVNode("a", _hoisted_12$3, toDisplayString(_ctx.$t("home.HWCloud")), 1)
3640
+ createElementVNode("a", _hoisted_12$3, toDisplayString(_ctx.$t("gitCodeLayout.home.HWCloud")), 1)
3608
3641
  ], 2),
3609
3642
  createElementVNode("p", _hoisted_13$2, [
3610
3643
  createVNode(GLink, {
@@ -3632,7 +3665,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3632
3665
  createElementVNode("span", { class: "" }, "400-6868-951")
3633
3666
  ], -1)),
3634
3667
  createElementVNode("li", _hoisted_15$2, [
3635
- createElementVNode("span", _hoisted_16$2, "9:00-18:00 (" + toDisplayString(_ctx.$t("home.onWeekdays")) + ")", 1)
3668
+ createElementVNode("span", _hoisted_16$2, "9:00-18:00 (" + toDisplayString(_ctx.$t("gitCodeLayout.home.onWeekdays")) + ")", 1)
3636
3669
  ])
3637
3670
  ])
3638
3671
  ])) : createCommentVNode("", true)
@@ -3665,7 +3698,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3665
3698
  size: "16",
3666
3699
  class: "active-icon min-w-[16px]"
3667
3700
  }),
3668
- createTextVNode(toDisplayString(_ctx.$t("common.footerSetting.preSetting")), 1)
3701
+ createTextVNode(toDisplayString(_ctx.$t("gitCodeLayout.common.footerSetting.preSetting")), 1)
3669
3702
  ])
3670
3703
  ]),
3671
3704
  _: 1
@@ -3675,9 +3708,9 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3675
3708
  };
3676
3709
  }
3677
3710
  });
3678
- const asideContent_vue_vue_type_style_index_0_scoped_88405bc6_lang = "";
3711
+ const asideContent_vue_vue_type_style_index_0_scoped_2ad08b34_lang = "";
3679
3712
  const asideContent_vue_vue_type_style_index_1_lang = "";
3680
- const AsideContent = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-88405bc6"]]);
3713
+ const AsideContent = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-2ad08b34"]]);
3681
3714
  const _hoisted_1$l = { class: "p-[16px] flex justify-between items-center h-[60px]" };
3682
3715
  const _sfc_main$q = /* @__PURE__ */ defineComponent({
3683
3716
  __name: "index",
@@ -5841,6 +5874,7 @@ var encUtf8 = { exports: {} };
5841
5874
  })(encUtf8);
5842
5875
  var encUtf8Exports = encUtf8.exports;
5843
5876
  const Utf8 = /* @__PURE__ */ getDefaultExportFromCjs(encUtf8Exports);
5877
+ const layoutConfig$2 = useLayoutConfig();
5844
5878
  function headRequest(request) {
5845
5879
  return {
5846
5880
  // 获取用户是否可以创建组织 checkUserCreateOrg
@@ -6065,8 +6099,8 @@ function headRequest(request) {
6065
6099
  },
6066
6100
  // 密码登录
6067
6101
  toLogin(data) {
6068
- const key = Utf8.parse("SA!nUNPZ5o!OSV&B");
6069
- const iv = Utf8.parse("SA!nwwwZ5o!OSV&B");
6102
+ const key = Utf8.parse(layoutConfig$2.VITE_SECRET_KEY);
6103
+ const iv = Utf8.parse(layoutConfig$2.VITE_SECRET_IV);
6070
6104
  const cryptoCode = AES.encrypt(data.password, key, {
6071
6105
  iv,
6072
6106
  padding: Pkcs7
@@ -6183,19 +6217,21 @@ const _hoisted_7$5 = { class: "flex items-center min-w-[90px] gap-[8px] font-sem
6183
6217
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
6184
6218
  __name: "AiHubMenus",
6185
6219
  setup(__props) {
6220
+ const layoutConfig2 = useLayoutConfig();
6221
+ const AI_HOST = layoutConfig2.VITE_AI_HOST;
6186
6222
  const { t: t2 } = useI18n();
6187
6223
  const API = headRequest(inject("request"));
6188
6224
  const repoInfo = inject("repoInfo");
6189
6225
  const menus = [
6190
6226
  {
6191
- label: t2("aihub.model"),
6227
+ label: t2("gitCodeLayout.aihub.model"),
6192
6228
  icon: "gt-model_default",
6193
6229
  activeIcon: "gt-model_red",
6194
6230
  url: `${AI_HOST}/models`,
6195
6231
  repoType: RepoType.model
6196
6232
  },
6197
6233
  {
6198
- label: t2("aihub.dataSet"),
6234
+ label: t2("gitCodeLayout.aihub.dataSet"),
6199
6235
  icon: "gt-dataset_default",
6200
6236
  activeIcon: "gt-dataset_red",
6201
6237
  url: `${AI_HOST}/datasets`,
@@ -6341,9 +6377,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
6341
6377
  };
6342
6378
  }
6343
6379
  });
6344
- const AiHubMenus_vue_vue_type_style_index_0_scoped_c0b694e7_lang = "";
6380
+ const AiHubMenus_vue_vue_type_style_index_0_scoped_369af3b6_lang = "";
6345
6381
  const AiHubMenus_vue_vue_type_style_index_1_lang = "";
6346
- const AiHubMenus = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-c0b694e7"]]);
6382
+ const AiHubMenus = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-369af3b6"]]);
6347
6383
  const _hoisted_1$j = ["src"];
6348
6384
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
6349
6385
  ...{ name: "FlashTag" },
@@ -8258,6 +8294,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
8258
8294
  },
8259
8295
  emits: ["followDevCommunity", "followUser"],
8260
8296
  setup(__props, { emit: __emit }) {
8297
+ const layoutConfig2 = useLayoutConfig();
8298
+ const AI_HOST = layoutConfig2.VITE_AI_HOST;
8261
8299
  const breadcrumb = useBreadcrumb();
8262
8300
  console.log("breadcrumb", breadcrumb);
8263
8301
  const breadcrumbRef = ref(null);
@@ -8320,7 +8358,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
8320
8358
  return;
8321
8359
  if (!topicTag.value)
8322
8360
  return;
8323
- const aiUrl = `${"https://ai.gitcode.com"}${topicTag.value.linkUrl}`;
8361
+ const aiUrl = `${AI_HOST}${topicTag.value.linkUrl}`;
8324
8362
  location.href = aiUrl;
8325
8363
  };
8326
8364
  const showTimeTopic = computed(() => {
@@ -8354,7 +8392,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
8354
8392
  }, {
8355
8393
  default: withCtx(() => [
8356
8394
  _cache[1] || (_cache[1] = createElementVNode("img", { src: _imports_0 }, null, -1)),
8357
- createElementVNode("span", null, toDisplayString(_ctx.$t("aihub.header.aihub")), 1)
8395
+ createElementVNode("span", null, toDisplayString(_ctx.$t("gitCodeLayout.aihub.header.aihub")), 1)
8358
8396
  ]),
8359
8397
  _: 1
8360
8398
  }, 8, ["href"]),
@@ -8390,7 +8428,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
8390
8428
  default: withCtx(() => {
8391
8429
  var _a2;
8392
8430
  return [
8393
- createElementVNode("span", _hoisted_4$8, toDisplayString(((_a2 = _ctx.orgProps) == null ? void 0 : _a2.isOrgFollow) ? _ctx.$t("home.alreadyFollowed") : _ctx.$t("home.focusOn")), 1)
8431
+ createElementVNode("span", _hoisted_4$8, toDisplayString(((_a2 = _ctx.orgProps) == null ? void 0 : _a2.isOrgFollow) ? _ctx.$t("gitCodeLayout.home.alreadyFollowed") : _ctx.$t("gitCodeLayout.home.focusOn")), 1)
8394
8432
  ];
8395
8433
  }),
8396
8434
  _: 1
@@ -8492,7 +8530,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
8492
8530
  origin: "repo",
8493
8531
  icon: "",
8494
8532
  type: "gstar",
8495
- message: `G-Star ${_ctx.$t("GStar.project.graduation")}`
8533
+ message: `G-Star ${_ctx.$t("gitCodeLayout.GStar.project.graduation")}`
8496
8534
  }, {
8497
8535
  default: withCtx(() => _cache[3] || (_cache[3] = [
8498
8536
  createTextVNode("G-Star ")
@@ -8504,7 +8542,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
8504
8542
  origin: "repo",
8505
8543
  icon: "",
8506
8544
  type: "incubation",
8507
- message: `G-Star ${_ctx.$t("GStar.project.incubation")}`
8545
+ message: `G-Star ${_ctx.$t("gitCodeLayout.GStar.project.incubation")}`
8508
8546
  }, {
8509
8547
  default: withCtx(() => _cache[4] || (_cache[4] = [
8510
8548
  createTextVNode(" G-Star ")
@@ -8515,7 +8553,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
8515
8553
  unref(isTrustedRepo)(unref(repoInfo).topic_names) ? (openBlock(), createElementBlock("div", _hoisted_15$1, [
8516
8554
  createVNode(_sfc_main$o, {
8517
8555
  trusted: "",
8518
- message: _ctx.$t("trusted.title"),
8556
+ message: _ctx.$t("gitCodeLayout.trusted.title"),
8519
8557
  icon: "",
8520
8558
  type: "trusted",
8521
8559
  href: "/trusted"
@@ -8546,7 +8584,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
8546
8584
  color: "var(--devui-shape-icon-fill)",
8547
8585
  class: "inline-block min-w-[16px]"
8548
8586
  }),
8549
- createElementVNode("span", _hoisted_19$1, toDisplayString(formatTime.value) + toDisplayString(_ctx.$t("repo.code.syncText")), 1)
8587
+ createElementVNode("span", _hoisted_19$1, toDisplayString(formatTime.value) + toDisplayString(_ctx.$t("gitCodeLayout.repo.code.syncText")), 1)
8550
8588
  ])) : createCommentVNode("", true)
8551
8589
  ], 2)) : createCommentVNode("", true)
8552
8590
  ])
@@ -8580,7 +8618,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
8580
8618
  default: withCtx(() => {
8581
8619
  var _a2;
8582
8620
  return [
8583
- createElementVNode("span", _hoisted_23$1, toDisplayString(((_a2 = unref(otherUserInfo)) == null ? void 0 : _a2.isFollow) ? _ctx.$t("org.following") : _ctx.$t("common.topic.attention")), 1)
8621
+ createElementVNode("span", _hoisted_23$1, toDisplayString(((_a2 = unref(otherUserInfo)) == null ? void 0 : _a2.isFollow) ? _ctx.$t("gitCodeLayout.org.following") : _ctx.$t("gitCodeLayout.common.topic.attention")), 1)
8584
8622
  ];
8585
8623
  }),
8586
8624
  _: 1
@@ -8589,9 +8627,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
8589
8627
  };
8590
8628
  }
8591
8629
  });
8592
- const HeaderCustom_vue_vue_type_style_index_0_scoped_dca99be3_lang = "";
8630
+ const HeaderCustom_vue_vue_type_style_index_0_scoped_fe3d30e3_lang = "";
8593
8631
  const HeaderCustom_vue_vue_type_style_index_1_lang = "";
8594
- const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-dca99be3"]]);
8632
+ const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-fe3d30e3"]]);
8595
8633
  const logo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAAAkCAYAAADrcPSPAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA8USURBVHgB7V1NbCRHFX6vemx+DmQWIgJc0j5kQ4RQvGeUeHyE2LteEJwixY4EydomthGIG7YvKEIRa7P2ZgEpHitXBLP2rpAipJ1NDjnaOUE2SG6iiEuQcASbLJ7pKt6r7p6p7unf8exidvuT2jPTXf26+lW9V6++et0GKFGixF0DQh84sGvVFsAUgnxSAtq0a9QQ6CiAQzp2dQis5ojTdKBEiQcUhQzsll2bBlDP0VbLfxY2AeT2aeetOpQo8YAhl4G9a9dotFIXybBs6B80somlx51mA0qUeECQamAcCrZBbSlQUzA4rJ123lyCe4SpRVWFdjeEBQmHjcu4DyXuK5ydd1eUwuXODiFndi9V6vA/hkg6QMZlt0DtDdi4GIvv2mN/gHuENhmXq9SNYFMoF6BEiXuEWAPzjevGMUPCRFC4OfWeXatBiRL3OXoMzGMIB2Fc2CRDSgwFFbg2lChxn6PHwNogl+OMCwGJnEAHUkATukOPNVQzp52b4xWw6sllLQdKlLjPUTF/EA0/qkAuxhVsAy49QWtaHNrROpft794/7TQTCQNaAzu8ZY81Y2h95zGn2YQTCE2KHIHtBmt7Ag4tchyNDXYcfcibVaOuIH1JqPJvS4BDWt9vrOFh4jkvKpvOqQW/6fr7ATGj5Zl1k+D0Q9rQfdoukz9+vYL7zKpbgqzB6ywiq596nQRUwj+Zik9HUcNwAWdIQUbIiU3eBwPC1LyquQjnwCX56HcWgjWEM9QgTiE5Si27LTVqyqFYlu4BYHJO8o+6NSRWs+Ryh5NHsKBQLbpAnY9kBHyty99bWl4TlNzevdzLdGnjQrUV/JaoVql+VarflmtGF1w31LIcVFgXw7CeabhDsABSTdN9eveI4fvMqltIXldntRAf3dUZ1UU1cunMrBuoHv0H9bIULg2CBT47qxYQZYddlkIc7l7CTHZ7ck59DRF+Tl8v7Gzg37PKd0JEj3QosoCcDzzqUbg4MgRCbxw6PjGA7A72cqRwzQxSoyxSAzPbWTO23GBlazneedXkksgd84DKL6fVi8uQca2ky2IjElvUYJlOjelnv352QhGbr0fX3eORKa6A7sCW2tO6Sq9Xp25p9zlBxwydJaHq62zv7BwnKMSDj+WsGzlTkpVSrzzgupO+1iTVLdjIkG9mnXduXn2dWPXfKameoM/ffntRfTnrnI6BKUhWAME5rlFwytSg0qZ0J8bMxs2FyVk1zcoucg53Zvbe0f26E3v1yurAprTFyQvuIgwGNnXmG3EHqAP31MubM1PIitDUn9GaJdwn6ww9B5IXVepf9W9Ru0UPsM74GBTQGderX52xMUfrTr9XdzcwMwGCRtJvCISHgP4oBV9pt+BXZxfUI2nnmCRHLakQjdLbcIJAnZjX0ToNojsKdRJBDRVs4HWebGDYG5IsCj/UEoUiZyjMHOFPatEZjHRADtd66mXBcrRe1BlWQ7IQz/sduguBy3oekwlVV4jjJOvU7qbAhLrZk3PhzjfhGYlt7pN0jzubguWM7G6Icf60XBzx7r8LIr2meqoR0Zm+H6qHvkfauI5xOrOwd7Qmw98KiwKnR2csC8P1yq+zLnxjDjlTNq6dDWslz/nXNvCKVPgKjbR0eeRB6Uvgyl+cf1F9MekcPQcjan60BdJOKOM87ry5AicE7D0hPA9piGE93yo8AZ6cb0/R+bYpa+eyOB9TlBu3ziEpdB2Rzd49mMjr0Qu4bh64o4ghHN9ZE06MrMbEvLuC3cyDqmxrcmkFEhDXEfy5yD5duylphOqST3iO/nQ6EkqwQ3MkMojrG1bPqN24gg4Z4xJ1HdOAQnqN6p+MYf3ahhUdTRz+QwbQkC1dr2DkqnH00SFsPJ3VutXSOjtDOou2pdY/6WyNdBYkClTdlpw27zMNfogcHsVJD3mNK8C1TfwljZ4tqdTzyOOTgkdcIVe/+UP1sz9ewg+j5bWBuXpNKilrKj8TxMnAZNXcuKFQwA9FdDiCIN8hX7bfN4uI3VCWGyTBIPKJAmRGtANrOH2SSx71PIVg/wx++969yd/dijsKqhsQkIdLJVmoU66QwY6Bb7A0zxqDxHrSfaZ0BDYMGrXWqWQwQtTYuyc6HQWjkFgv3d7NpOPUp86B6tbLqoiVpKJ8fTKoGZ43BftclDXwR0mTKdWiySGlOcoKXYsM9jnlGwlp+0nIAdaFHzrbwT5tzBXsq+/svmpdmpx1j6gvPqvoDyI+XJHyp5M/UC/v/gb/YZbVPUIlT565E+YKD4mOJyXKLc7SoM02N7rCqEeg0HyHOgEtBdy4ZT99cMt+ahoKAg3jVUquwjFAnbrbQAquZjFdfuM3O3WRaHfrhWanzUVRk/c3J9aJnZ6cVhMyQExdPbTjqNum1jBE5xfViTm5NznbnuZRWG9EjuQJudAcvaheWZEDj1ZmeGcaBQppPua0n0v/qDr9kciJGuSAe6TDUNu4lpNlzFnYvWz9WqF8jfSBUu8RD6th+dJ3l9TnzXIVv6LVpPGrEonJ4+CHmKNQDDbd6hYZ5hgxi7lpe2UM8ZY43mI1NXxVBd5YqM596jAIe+dYPRA04e1WzO4K7urMD00OYs9XoV/VlHr+DTLAneUs0eId/YiuPD5G4dW6EV55joqYQjdQQMv70NS6Yicir8bR9OSUqkbF3wm+9CTbhs7pfqc5zKnOfhCPBrKoTOceec6IKp6sUTl11pHFjCOG82mFwvNFlnCScG2jwkzrEXEeU1JJGsjgC/85ki88c+HwyvVXqzrSERkymPnLtPI7eQmFWKhpGs0yqWoGd9bQjkov81XoyrqzHEdA8sh/0sDzJJ4v5Sha1UseeglBHiTR/hpCFW930ymZu7EbehdA9oiL8qPoPr3wPyhYeiQn4xLa9BXCnduPPPRJcFiPYDRZc3gc6xdM4dP8a4YfxuRwE4vnMS7S+dtpWSEanyZDbsHAQMTBYeARpdlYAkKhYBKEUk6sXBVpeMyWdVz484zUDsdGRk5qrV2RixTSPuk7CDvlFLvd0oztmdijsuuglKQ+JLJDWVJ6p41RyY+UP/c3R7aKhEMygiYMALub1ho5CuYFap2dxACTvvaPO4pNzLdnlITv0dfbZMjU7cUHHw7DlbdX8E5QRhuYAPdQJpIc+UDGUaePevCbM/Lb4bi3ygm+FBYsxOU6Ko8wSDWwaBjkes95OWnnUCOOJhE4SudWemszaMzH/DWRBhSA8ur+nP/dDkgGJiBo1zjcZbhttxYKSCrxuvTrsxh3zAvNmJlDk0gaNdlS0ymZbOXuZayD0f65gHDYiTYROiSPzzIOTGe0/DBDLOueMb1gZ7R1nGsQyfECDVfPkj5ua30oeF+1YP3tTfzELKcNzAKrKeNHMJuz6/OEiVH4i8pOdD/Jq7dBHaieRU98FHLA78g174fiOUWGIeBCsiz5Dl03iM/1RD/Nq/kkgFnvw2CirFDsY7fnVd0jl+XW+5HVF5TohNk+YVBYVsAgkhM7Z7YP9Y0adEZ0JmY6hM5oUZ2ZZWnU2+fh3kfVNOQ8siCnznyWddVgWRk1XqwmRnANCoLmdfPky56n/sfGRZG3cu58Vrz8xiZ+HC2rXZ5nQPE31k5ht/oBX4tGjh7vSgufp/KcH2Heamkr+hNeSo0NiRBN8xdTuampRi21x2lQwQZGY1doxEBzLoriYlzmgpbF4RwxW6Ys3yALgzulvz5nB/tovr1t1puOK3NjQiJNpkqZU0sQpkOrcghZRGdm2Si76XqhW7ws0hld60ZIZ+38mTwcKgLELvDbUAATc+6PSEMvKZrAg+af1MFDnxXLb7yCt+PKd5J9yRBvYkw2h/IWHZswIHgPc2qPGIKAfIQFrYWskXKNR8Px4uQsryfJqwGr6Hph4bms3Er22Dqx1Vg85oYjb1cHZsgULXiirDK17HpPdocWKU1vbDB1ncVji9Z/qG4NYKeg/MVTi2S1mKUMZXw4YtjKFZJGjIkTgCORAMn6VLfjsvcOsYugyZ0Fougdily6Wfr+qxU4eRciTkkYjoh1RvKcYGmHQ0h2TKSzpqkz8oRjLkafhlf1hrHwzjqj87aNkNTTf4LOMJwlQ2uDmEtnAY4bKj4z514gNuPHdPF/cwY2sYfvfe4z+JPXE4yL0TGwYRBrLf0sWBSq9hf7qcWvOm8VHkrj0E7M2I+s4yTAb5Sl0HCvE33FVIdyLjCf5Oxs0tWNcMiK096HlwYfDZ55pKJFyp6lBTZ+fyHUDteNwlDssilR8HpeY62SM6RDGxJIJF2vGAqanGQ0PKpqip6OeE8J6NEbEmQ60bCNCOmZCI1uR3UWbQJv7Un0rFvS+t0i6WysqM64DlAQOlScVzOkcPOVFblDRVER16GtneMpEPKW+li89PpmsnHpc4Iv/jxrPb4QXmQjg2OC1rwSXqCD9UwG0QAP95yvlqdsTw5bBOzBqVOOY84RVHcUpRcpe8qz8Qu3kKxDzgnMeiwkFzgXcwjPxD3KUURfMTJ7vLueqyGeL6SzocHpjK99rc9nzTSBpSLz9pyh4u46vj8k8DsUHv4JPxbf33kN/5V1TmgdbAjECibE32xkbCAc4kFB8KMwXqZHN1fPhAtYuPE51YiTU0nmdmzjUOfgpFNiRzOf8dFG5noJqnGUepBMzEnASZ24I4u85M6mGAlkJehTJ7SSrJHrm0Un2XKd8xKDzU+yPcUJu1mpWawvXgvLcDqO8JOK02RyRw10FievR2cpdYvqLK4MXyPQ2W7B0DAKa1gnIpvtEoSKmfj9Jfzg2qY1m8e4GD2x1F/t2hSxRqlvfSKSosFv7uWcwriRx3vdG5Mj7ijR8qlzIQoCVgeRTBxhmELsUsQ75WKezHOOu15S9PrRTJIiGd8F62XqbKD3ea9lFWUYY8ofu85xiJ2svGs/zSPZMuSEMt7VQd6vqnI+28Pv+XjMudl3su79intlYCXuPmJTpXhE4ZEFcsJM7M1rXHTWfmWArw4oUeIkIjEXsaiRFQPuDwGO97OAXaLE/xNSk329uZGgUWagsen6aefmmdK4SjwIyLVg9GdiDi3vdW7HeO00v4gUV0/q69pKlLgbyL8iC4GhcdZDvn9hpN9JAUA0umiUhlXiQUQhA4uC17eCLHl+aNMTKGgdRb8scr/853slSpQoUeKu4b/VMDt15riwZwAAAABJRU5ErkJggg==";
8596
8634
  const _hoisted_1$h = ["src"];
8597
8635
  const _sfc_main$m = /* @__PURE__ */ defineComponent({
@@ -8600,8 +8638,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
8600
8638
  },
8601
8639
  __name: "ChatBot",
8602
8640
  setup(__props) {
8641
+ const layoutConfig2 = useLayoutConfig();
8603
8642
  function goPage() {
8604
- window.open(`${SITE_HOST}/ai?utm_source=toolbar`);
8643
+ window.open(`${layoutConfig2.VITE_HOST}/ai?utm_source=toolbar`);
8605
8644
  }
8606
8645
  return (_ctx, _cache) => {
8607
8646
  return openBlock(), createElementBlock("div", {
@@ -8617,8 +8656,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
8617
8656
  };
8618
8657
  }
8619
8658
  });
8620
- const ChatBot_vue_vue_type_style_index_0_scoped_17539e42_lang = "";
8621
- const ChatBot = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-17539e42"]]);
8659
+ const ChatBot_vue_vue_type_style_index_0_scoped_e951add8_lang = "";
8660
+ const ChatBot = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-e951add8"]]);
8622
8661
  const _hoisted_1$g = { class: "devui-select__item g-option-link" };
8623
8662
  const _sfc_main$l = /* @__PURE__ */ defineComponent({
8624
8663
  ...{
@@ -8651,716 +8690,700 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
8651
8690
  });
8652
8691
  const index_vue_vue_type_style_index_0_scoped_7967a280_lang = "";
8653
8692
  const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-7967a280"]]);
8654
- const home$1 = {
8655
- comprehensiveSorting: "综合排序",
8656
- starTotalSort: "Star总数排序",
8657
- starNum: "Star",
8658
- fork: "Fork数",
8659
- updateTime: "更新时间",
8660
- recommend: "推荐",
8661
- all: "全部",
8662
- Gproject: "G-Star 项目",
8663
- milions: "让千万开发者发现你的开源项目,卓越就此发生",
8664
- showMore: "查看更多",
8665
- recommendation: "全球开源推荐",
8666
- loading: "加载中",
8667
- loadAll: "数据已加载完毕,是时候添加你的代码了~",
8668
- applyJoin: "申请加入",
8669
- organizations: "开源组织推荐",
8670
- noMore: "没有更多了",
8671
- alreadyFollowed: "已关注",
8672
- focusList: "关注列表",
8673
- focusOn: "关注",
8674
- unsubscribe: "取消关注",
8675
- noDescroption: "暂无描述",
8676
- noIntroduction: "暂无简介",
8677
- searchHistory: "搜索历史",
8678
- homePage: "首页",
8679
- star: "星标",
8680
- aiCommunity: "AI-社区",
8681
- informationCenter: "资讯中心",
8682
- expandMore: "展开更多",
8683
- helpDoc: "帮助文档",
8684
- feedbackCenter: "反馈中心",
8685
- companyInformation: "重庆开源共创",
8686
- recordInformation: "渝ICP备2023009037号",
8687
- technicalSupport: "技术支持:",
8688
- HWCloud: "华为云",
8689
- userFeedback01: "在线客服",
8690
- userFeedbackProductRecommendations: "参与产品建议反馈",
8691
- userFeedbackBr: "在线<br/>客服",
8692
- userFeedback02: "用心答复您的每一次提问。",
8693
- contactUs: "联系我们",
8694
- serviceHours: "服务时间",
8695
- onWeekdays: "工作日",
8696
- settlementMsg: "如需组织入驻支持可邮件联系",
8697
- settlementMsgContact: "请在正文附带组织介绍及联系方式哦",
8698
- followUs: "关注我们,了解更多",
8699
- rateExperience: "评价您对我们产品的体验",
8700
- veryGood: "非常好",
8701
- good: "",
8702
- generally: "一般",
8703
- bad: "不好",
8704
- veryBad: "非常不好",
8705
- thankFaceback: "谢谢您的反馈",
8706
- improveQuestion: "有什么可以改进的吗",
8707
- facebackPlaceholder: "请输入反馈(可选)",
8708
- org: {
8709
- gstarTips: "G-Star 官方认证组织"
8710
- },
8711
- searchPlaceholder: "「开搜」:一搜即达",
8712
- searchPlaceholder2: "按下<kbd>/</kbd>快速开启搜索",
8713
- surveyTipsTitle: "填问卷必得200积分+抽取限量周边",
8714
- webDescription: "GitCode - 全球开发者的开源社区,开源代码托管平台",
8715
- slogon: "共创GitCode,开发者的代码家园",
8716
- digest: "重庆开源共创科技有限公司版权所有",
8717
- shotName: {
8718
- AI: "AI 社区"
8719
- },
8720
- hotSelection: "热门精选项目",
8721
- projectRecom: "开源项目推荐",
8722
- competition: "大赛平台",
8723
- channel: {
8724
- forkProject: "点此处fork此项目",
8725
- submitDynamic: "提交推荐",
8726
- latestDynamics: "行业最新动态",
8727
- dynamics: "行业动态"
8728
- },
8729
- changeBatch: "换一换"
8730
- };
8731
- const header$1 = {
8732
- create: "新建",
8733
- createRepo: "新建项目",
8734
- importRepo: "导入项目",
8735
- migrationProject: "迁移项目",
8736
- createOrg: "新建组织",
8737
- home: "首页",
8738
- applicationMarket: "应用市场",
8739
- recentlyActiveProject: "最近活跃项目",
8740
- joinOrganization: "加入组织",
8741
- noData: "暂无数据",
8742
- orgOrPerson: "组织/个人",
8743
- login: "登录",
8744
- register: "注册",
8745
- activeRegister: "主动注册",
8746
- file: "文件",
8747
- language: "语言",
8748
- underSearch: "下搜索:",
8749
- searchRecord: "搜索记录",
8750
- clear: "清空",
8751
- repo: "项目",
8752
- org: "组织",
8753
- user: "用户",
8754
- recentlyVisited: "最近访问",
8755
- platformSearch: "全平台搜索:",
8756
- searchPlaceholder: "「开搜」:一搜即达,开发者的AI搜索",
8757
- workbench: "工作台",
8758
- myOrg: "我的组织",
8759
- myRepo: "我的项目",
8760
- myStar: "我的 Star",
8761
- personSetting: "个人设置",
8762
- helpDocument: "帮助文档",
8763
- logout: "退出登录",
8764
- goUpgrade: "去升级",
8765
- openSourceExplorer: "开源探索者",
8766
- openSourcePioneer: "开源先锋",
8767
- contributingStar: "贡献之星",
8768
- createSpace: "新建 Space",
8769
- myNotebook: "我的 Notebook",
8770
- mySpace: "我的 Spaces",
8771
- aihub: {
8772
- documentCenter: "文档中心"
8773
- },
8774
- getPoints: "攒积分"
8775
- };
8776
- const userSetting$1 = {
8777
- tips: {
8778
- youCanCreOrManUp: "你最多可以创建或管理 {num} 个组织,无法创建新的组织。"
8779
- },
8780
- menu: {
8781
- growthCenter: "成长中心"
8782
- },
8783
- account: {
8784
- phone: "手机号",
8785
- passwordSetting: "密码设置",
8786
- bindPhoneVerification: "绑定手机号校验",
8787
- enterBoundPhone: "请输入当前绑定手机号",
8788
- enterVerificationCode: "请输入获取验证码",
8789
- getVerificationCode: "获取验证码",
8790
- changePassword: "修改密码",
8791
- oldPassword: "旧密码",
8792
- newPassword: "新密码",
8793
- confirmPassword: "确认新密码",
8794
- unbindSMSVerification: "解绑短信验证",
8795
- deactivateAccount: "注销账号",
8796
- untie: "解绑",
8797
- yourTypeAccountIs: "您绑定的 {type} 账号为",
8798
- "switch": "更换",
8799
- mfaManage: "管理多因素认证(MFA)",
8800
- mfa: "多因素认证(MFA)",
8801
- mfaEnable: "已启用",
8802
- mfatip1: "在你的移动设备或计算机上使用一次性密码验证器来启用多因素验证 (Multi-Factor Authentication),防止未经授权的访问,并帮助保护你的帐户免受潜在的安全威胁。",
8803
- mfaManageBtn: "管理",
8804
- mfatip2: "我们建议使用基于云的身份验证器应用程序,如果你不幸丢失了硬件设备,此类应用程序也可以恢复访问 (比如:谷歌验证器、腾讯令牌小程序等)。",
8805
- mfatip3: "无法扫描二维码?",
8806
- mfatip4: "如需手动添加条目,请在手机应用中提供以下信息。",
8807
- mfaAccount: "账户:",
8808
- mfaAccountPlaceholder: "输入当前账号的密码",
8809
- mfatip5: "需要当前登录账号的密码来注册多因素验证程序。",
8810
- mfatip6: '当前账户没有配置密码,请先 <a class="text-[var(--devui-link)] cursor-pointer">配置密码</a>',
8811
- mfatip7: "请输入正确的账户密码。",
8812
- mfatip8: "请输入身份验证器中生成的6位数字验证码",
8813
- mfaCodeInput: "输入验证码",
8814
- mfatip9: "如果你丢失手机或无法获取一次性密码,可以使用下面的恢复码进行多因素认证(每个恢复码只能使用一次),以重新获得帐户的访问权限。请务必将恢复码妥善保存在安全的地方,否则你将无法访问你的帐户。",
8815
- mfatip10: "在进行下一步操作之前,请务必妥善保管你的回复码",
8816
- mfaSave: "保存恢复码",
8817
- mfatip11: "你已经使用一次密码验证器启用了多因素验证。如果你要注册不同的设备,请先禁用多因素验证。",
8818
- mfatip12: "禁用多因素认证",
8819
- mfatip13: "请输入当前登录账号的密码来禁用多因素验证程序",
8820
- mfaRecover1: "重新生成恢复码",
8821
- mfatip14: "请输入当前登录账号的密码来重新生成恢复码",
8822
- mfaBan: "禁用",
8823
- mfaRecover2: "重新生成",
8824
- mfaView: "查看恢复码",
8825
- mfatip15: "点击下方按钮,查看已生成的恢复码",
8826
- mfaValid: "已失效",
8827
- mfatip17: "当前账户没有配置密码,请先 ",
8828
- mfatip18: "配置密码",
8829
- mfatip16: "已妥善保管恢复码"
8830
- }
8831
- };
8832
- const repo$1 = {
8833
- pr: {
8834
- commit: "提交",
8835
- discussion: "讨论"
8836
- },
8837
- code: {
8838
- syncText: "同步"
8839
- }
8840
- };
8841
- const common$1 = {
8842
- footerSetting: {
8843
- lang: "语言",
8844
- theme: "主题",
8845
- preSetting: "偏好设置"
8846
- },
8847
- search: "搜索",
8848
- organize: "组织",
8849
- all: "全部",
8850
- project: "项目",
8851
- publicSecurity: "京公网安备11010502055713号",
8852
- aboutUs: "关于我们",
8853
- recruitment: "招贤纳士",
8854
- prices: "价格",
8855
- save: "保存",
8856
- wechat: "微信",
8857
- email: "邮箱",
8858
- phone: "手机",
8859
- hasBeenSent: "已发送",
8860
- time: {
8861
- oneYearAgo: "一年前",
8862
- yearsAgo: "{num} 年前",
8863
- oneMonthAgo: "1 个月前",
8864
- monthsAgo: "{num} 个月前",
8865
- justNow: "刚刚",
8866
- oneDayAgo: "1 天前",
8867
- daysAgo: "{num} 天前",
8868
- hoursAgo: "{num} 小时前",
8869
- minutesAgo: "{num} 分钟前",
8870
- oneHourAgo: "1 小时前",
8871
- oneMinuteAgo: "1 分钟前"
8693
+ const gitCodeLayout$1 = {
8694
+ home: {
8695
+ comprehensiveSorting: "综合排序",
8696
+ starTotalSort: "Star总数排序",
8697
+ starNum: "Star数",
8698
+ fork: "Fork数",
8699
+ updateTime: "更新时间",
8700
+ recommend: "推荐",
8701
+ all: "全部",
8702
+ Gproject: "G-Star 项目",
8703
+ milions: "让千万开发者发现你的开源项目,卓越就此发生",
8704
+ showMore: "查看更多",
8705
+ recommendation: "全球开源推荐",
8706
+ loading: "加载中",
8707
+ loadAll: "数据已加载完毕,是时候添加你的代码了~",
8708
+ applyJoin: "申请加入",
8709
+ organizations: "开源组织推荐",
8710
+ noMore: "没有更多了",
8711
+ alreadyFollowed: "已关注",
8712
+ focusList: "关注列表",
8713
+ focusOn: "关注",
8714
+ unsubscribe: "取消关注",
8715
+ noDescroption: "暂无描述",
8716
+ noIntroduction: "暂无简介",
8717
+ searchHistory: "搜索历史",
8718
+ homePage: "首页",
8719
+ star: "星标",
8720
+ aiCommunity: "AI-社区",
8721
+ informationCenter: "资讯中心",
8722
+ expandMore: "展开更多",
8723
+ helpDoc: "帮助文档",
8724
+ feedbackCenter: "反馈中心",
8725
+ companyInformation: "重庆开源共创",
8726
+ recordInformation: "渝ICP备2023009037号",
8727
+ technicalSupport: "技术支持:",
8728
+ HWCloud: "华为云",
8729
+ userFeedback01: "在线客服",
8730
+ userFeedbackProductRecommendations: "参与产品建议反馈",
8731
+ userFeedbackBr: "在线<br/>客服",
8732
+ userFeedback02: "用心答复您的每一次提问。",
8733
+ contactUs: "联系我们",
8734
+ serviceHours: "服务时间",
8735
+ onWeekdays: "工作日",
8736
+ settlementMsg: "如需组织入驻支持可邮件联系",
8737
+ settlementMsgContact: "请在正文附带组织介绍及联系方式哦",
8738
+ followUs: "关注我们,了解更多",
8739
+ rateExperience: "评价您对我们产品的体验",
8740
+ veryGood: "非常好",
8741
+ good: "",
8742
+ generally: "一般",
8743
+ bad: "不好",
8744
+ veryBad: "非常不好",
8745
+ thankFaceback: "谢谢您的反馈",
8746
+ improveQuestion: "有什么可以改进的吗",
8747
+ facebackPlaceholder: "请输入反馈(可选)",
8748
+ org: {
8749
+ gstarTips: "G-Star 官方认证组织"
8750
+ },
8751
+ searchPlaceholder: "「开搜」:一搜即达",
8752
+ searchPlaceholder2: "按下<kbd>/</kbd>快速开启搜索",
8753
+ surveyTipsTitle: "填问卷必得200积分+抽取限量周边",
8754
+ webDescription: "GitCode - 全球开发者的开源社区,开源代码托管平台",
8755
+ slogon: "共创GitCode,开发者的代码家园",
8756
+ digest: "重庆开源共创科技有限公司版权所有",
8757
+ shotName: {
8758
+ AI: "AI 社区"
8759
+ },
8760
+ hotSelection: "热门精选项目",
8761
+ projectRecom: "开源项目推荐",
8762
+ competition: "大赛平台",
8763
+ channel: {
8764
+ forkProject: "点此处fork此项目",
8765
+ submitDynamic: "提交推荐",
8766
+ latestDynamics: "行业最新动态",
8767
+ dynamics: "行业动态"
8768
+ },
8769
+ changeBatch: "换一换"
8872
8770
  },
8873
- topic: {
8874
- attention: "关注"
8875
- }
8876
- };
8877
- const org$1 = {
8878
- project: "项目",
8879
- expand_more: "展开更多",
8880
- board: "看板",
8881
- following: "已关注"
8882
- };
8883
- const dashboard$1 = {
8884
- repo: {
8885
- createRepo: "创建项目"
8886
- }
8887
- };
8888
- const orgSetting$1 = {
8889
- creOrg: "创建组织"
8890
- };
8891
- const trusted$1 = {
8892
- shortName: "可信开源",
8893
- menu: "可信开源频道",
8894
- title: "可信开源频道"
8895
- };
8896
- const aihub$1 = {
8897
8771
  header: {
8898
- aihub: "AI 社区"
8772
+ create: "新建",
8773
+ createRepo: "新建项目",
8774
+ importRepo: "导入项目",
8775
+ migrationProject: "迁移项目",
8776
+ createOrg: "新建组织",
8777
+ home: "首页",
8778
+ applicationMarket: "应用市场",
8779
+ recentlyActiveProject: "最近活跃项目",
8780
+ joinOrganization: "加入组织",
8781
+ noData: "暂无数据",
8782
+ orgOrPerson: "组织/个人",
8783
+ login: "登录",
8784
+ register: "注册",
8785
+ activeRegister: "主动注册",
8786
+ file: "文件",
8787
+ language: "语言",
8788
+ underSearch: "下搜索:",
8789
+ searchRecord: "搜索记录",
8790
+ clear: "清空",
8791
+ repo: "项目",
8792
+ org: "组织",
8793
+ user: "用户",
8794
+ recentlyVisited: "最近访问",
8795
+ platformSearch: "全平台搜索:",
8796
+ searchPlaceholder: "「开搜」:一搜即达,开发者的AI搜索",
8797
+ workbench: "工作台",
8798
+ myOrg: "我的组织",
8799
+ myRepo: "我的项目",
8800
+ myStar: "我的 Star",
8801
+ personSetting: "个人设置",
8802
+ helpDocument: "帮助文档",
8803
+ logout: "退出登录",
8804
+ goUpgrade: "去升级",
8805
+ openSourceExplorer: "开源探索者",
8806
+ openSourcePioneer: "开源先锋",
8807
+ contributingStar: "贡献之星",
8808
+ createSpace: "新建 Space",
8809
+ myNotebook: "我的 Notebook",
8810
+ mySpace: "我的 Spaces",
8811
+ aihub: {
8812
+ documentCenter: "文档中心"
8813
+ },
8814
+ getPoints: "攒积分"
8899
8815
  },
8900
- model: "模型",
8901
- dataSet: "数据集"
8902
- };
8903
- const GStar$1 = {
8904
- project: {
8905
- graduation: "毕业项目",
8906
- incubation: "孵化项目"
8907
- }
8908
- };
8909
- const LoginModal$2 = {
8910
- title: {
8911
- login: "欢迎登录你的GitCode账号",
8912
- register: "欢迎注册"
8816
+ userSetting: {
8817
+ tips: {
8818
+ youCanCreOrManUp: "你最多可以创建或管理 {num} 个组织,无法创建新的组织。",
8819
+ getPoints: "攒积分"
8820
+ },
8821
+ menu: {
8822
+ growthCenter: "成长中心"
8823
+ },
8824
+ account: {
8825
+ phone: "手机号",
8826
+ passwordSetting: "密码设置",
8827
+ bindPhoneVerification: "绑定手机号校验",
8828
+ enterBoundPhone: "请输入当前绑定手机号",
8829
+ enterVerificationCode: "请输入获取验证码",
8830
+ getVerificationCode: "获取验证码",
8831
+ changePassword: "修改密码",
8832
+ oldPassword: "旧密码",
8833
+ newPassword: "新密码",
8834
+ confirmPassword: "确认新密码",
8835
+ unbindSMSVerification: "解绑短信验证",
8836
+ deactivateAccount: "注销账号",
8837
+ untie: "解绑",
8838
+ yourTypeAccountIs: "您绑定的 {type} 账号为",
8839
+ "switch": "更换",
8840
+ mfaManage: "管理多因素认证(MFA)",
8841
+ mfa: "多因素认证(MFA)",
8842
+ mfaEnable: "已启用",
8843
+ mfatip1: "在你的移动设备或计算机上使用一次性密码验证器来启用多因素验证 (Multi-Factor Authentication),防止未经授权的访问,并帮助保护你的帐户免受潜在的安全威胁。",
8844
+ mfaManageBtn: "管理",
8845
+ mfatip2: "我们建议使用基于云的身份验证器应用程序,如果你不幸丢失了硬件设备,此类应用程序也可以恢复访问 (比如:谷歌验证器、腾讯令牌小程序等)。",
8846
+ mfatip3: "无法扫描二维码?",
8847
+ mfatip4: "如需手动添加条目,请在手机应用中提供以下信息。",
8848
+ mfaAccount: "账户:",
8849
+ mfaAccountPlaceholder: "输入当前账号的密码",
8850
+ mfatip5: "需要当前登录账号的密码来注册多因素验证程序。",
8851
+ mfatip6: '当前账户没有配置密码,请先 <a class="text-[var(--devui-link)] cursor-pointer">配置密码</a>',
8852
+ mfatip7: "请输入正确的账户密码。",
8853
+ mfatip8: "请输入身份验证器中生成的6位数字验证码",
8854
+ mfaCodeInput: "输入验证码",
8855
+ mfatip9: "如果你丢失手机或无法获取一次性密码,可以使用下面的恢复码进行多因素认证(每个恢复码只能使用一次),以重新获得帐户的访问权限。请务必将恢复码妥善保存在安全的地方,否则你将无法访问你的帐户。",
8856
+ mfatip10: "在进行下一步操作之前,请务必妥善保管你的回复码",
8857
+ mfaSave: "保存恢复码",
8858
+ mfatip11: "你已经使用一次密码验证器启用了多因素验证。如果你要注册不同的设备,请先禁用多因素验证。",
8859
+ mfatip12: "禁用多因素认证",
8860
+ mfatip13: "请输入当前登录账号的密码来禁用多因素验证程序",
8861
+ mfaRecover1: "重新生成恢复码",
8862
+ mfatip14: "请输入当前登录账号的密码来重新生成恢复码",
8863
+ mfaBan: "禁用",
8864
+ mfaRecover2: "重新生成",
8865
+ mfaView: "查看恢复码",
8866
+ mfatip15: "点击下方按钮,查看已生成的恢复码",
8867
+ mfaValid: "已失效",
8868
+ mfatip17: "当前账户没有配置密码,请先 ",
8869
+ mfatip18: "配置密码",
8870
+ mfatip16: "已妥善保管恢复码"
8871
+ }
8913
8872
  },
8914
- subtitle: {
8915
- sms: "短信登录",
8916
- password: "密码登录",
8917
- name: "用户名",
8918
- phone: "手机号码",
8919
- cipher: "密码",
8920
- otherLogin: "其他登录方式",
8921
- useAgrAndPriPolTip: "用户协议与隐私政策提示"
8873
+ repo: {
8874
+ pr: {
8875
+ commit: "提交",
8876
+ discussion: "讨论"
8877
+ },
8878
+ code: {
8879
+ syncText: "同步"
8880
+ }
8922
8881
  },
8923
- action: {
8924
- getcode: "获取验证码",
8925
- oh: "鸿蒙开发者登录",
8926
- login: "登 录",
8927
- registerAgain: "注册新账号",
8928
- phone: "手机验证码",
8929
- readAgree: "我已阅读并同意",
8930
- verify: "确 认",
8931
- confirmPassword: "确认密码",
8932
- wechatScanCodeLogin: "微信扫码登录",
8933
- AccountLogin: "帐号登录",
8934
- resetPassword: "重置密码"
8882
+ common: {
8883
+ footerSetting: {
8884
+ lang: "语言",
8885
+ theme: "主题",
8886
+ preSetting: "偏好设置"
8887
+ },
8888
+ search: "搜索",
8889
+ organize: "组织",
8890
+ all: "全部",
8891
+ project: "项目",
8892
+ publicSecurity: "京公网安备11010502055713号",
8893
+ aboutUs: "关于我们",
8894
+ recruitment: "招贤纳士",
8895
+ prices: "价格",
8896
+ save: "保存",
8897
+ wechat: "微信",
8898
+ email: "邮箱",
8899
+ phone: "手机",
8900
+ hasBeenSent: "已发送",
8901
+ time: {
8902
+ oneYearAgo: "一年前",
8903
+ yearsAgo: "{num} 年前",
8904
+ oneMonthAgo: "1 个月前",
8905
+ monthsAgo: "{num} 个月前",
8906
+ justNow: "刚刚",
8907
+ oneDayAgo: "1 天前",
8908
+ daysAgo: "{num} 天前",
8909
+ hoursAgo: "{num} 小时前",
8910
+ minutesAgo: "{num} 分钟前",
8911
+ oneHourAgo: "1 小时前",
8912
+ oneMinuteAgo: "1 分钟前"
8913
+ },
8914
+ topic: {
8915
+ attention: "关注"
8916
+ }
8935
8917
  },
8936
- tips: {
8937
- forgotPassword: "忘记密码?",
8938
- registerAgain: "其它登录方式",
8939
- agree: "登录或注册完成代表你同意",
8940
- and: "",
8941
- updatePassword: "修改密码成功, 正在为你跳转登录",
8942
- pleaseReadHuaweiAgreement: "请阅读并同意华为云用户协议以及其隐私政策",
8943
- gotoTipsAtNophone: "该手机号尚未注册, 即将为你自动跳转到注册页面",
8944
- codeSentToYou: "验证码已发送到你的",
8945
- pleaseCheck: "请注意查收",
8946
- bindMobileWithAccount: "请通过账号绑定手机号",
8947
- resetYourPassword: "邮箱重置你的账号密码",
8948
- hwAuthorizationService: "华为云授权服务",
8949
- pleaseAccreditHWBeforeUse: "GitCode与华为云共同为用户提供代码托管服务, 在使用代码托管相关服务前, 请先授权并开通华为云服务.",
8950
- phoneNumberVerification: "手机号验证",
8951
- authorizationAndBinding: "授权并绑定",
8952
- cancelAuthorization: "取消授权",
8953
- IHaveRead: "我已阅读",
8954
- descOfHWCloud: "华为云隐私政策说明",
8955
- agreeShareToHWCloud: "同意将我的手机号和帐号名共享给华为云用于创建帐号和委托",
8956
- associatedAndShared: "并与重庆开源共创科技有限公司(Gitcode的运营主体)关联及共享。",
8957
- createContinue: "创建账号并继续",
8958
- create: "创建账号",
8959
- pleaseReadAgreementAndPrivacy: "请阅读并同意相关协议以及隐私政策声明",
8960
- confirmThirdBinding: "第三方账号绑定确认",
8961
- checkCode: "验证码已经发送, 请注意查收",
8962
- pleaseReauthorize: "请重新授权",
8963
- readAndAgreeAgreementAndPrivacy: "请阅读并同意相关协议以及隐私政策声明",
8964
- verificationCode: "验证码",
8965
- verifyMobilePhoneNumber: "验证手机号",
8966
- setUserName: "设置用户名",
8967
- nameAlreadyExists: "用户名已存在",
8968
- cannotBeEmpty: "用户名不能为空",
8969
- passwordIsInconsistent: "验证密码与密码不一致",
8970
- necessaryInfo: "请填写必要信息",
8971
- fillvalidPhoneNumEmail: "请填写有效的手机号或者邮箱",
8972
- passwordLength: "请确保密码的长度范围在8~30之间",
8973
- validEmail: "或者有效的邮箱地址",
8974
- SMSVerificationCode: "请输入{count}位有效的短信验证码",
8975
- fillNecessaryInfo: "请输入有效的手机号码",
8976
- youNeeToAgr: "您需要同意",
8977
- toUseGit: "才能使用GitCode。",
8978
- ifYouDoNotAgrWe: "如果您不同意,很遗憾我们无法为您提供服务。",
8979
- disAndQui: "不同意并退出",
8980
- agrAndSigIn: "同意并登录"
8918
+ org: {
8919
+ project: "项目",
8920
+ expand_more: "展开更多",
8921
+ board: "看板",
8922
+ following: "已关注"
8981
8923
  },
8982
- link: {
8983
- agreement: "用户协议",
8984
- privacyPolicy: "隐私政策",
8985
- huaweiCloudAgreement: "华为云用户协议",
8986
- agreementPrivacy: "华为云隐私政策声明",
8987
- gitCodeProtocol: "GitCode用户协议",
8988
- gitCodePrivacy: "GitCode隐私政策",
8989
- chiCloDevSerAgr: "华为云开发者服务协议",
8990
- chiCloDevPriPolSta: "华为云开发者隐私政策声明"
8924
+ dashboard: {
8925
+ repo: {
8926
+ createRepo: "创建项目"
8927
+ }
8991
8928
  },
8992
- registerDesc: "GitCode 与华为云共同为用户提供代码托管服务,在使用代码托管相关服务时,将同步授权并开通华为云服务,并与重庆开源共创科技有限公司(GitCode的运营主体)关联及共享。",
8993
- rule: {
8994
- username: "只允许字母、数字或者下划线(_)、中划线(-),3到20个字符,必须以字母开头,不能以特殊字符结尾",
8995
- pleaseFill: "请填写{label}",
8996
- enterUsername: "请填写用户名",
8997
- passwordLetter: "密码最少包含一个大写字母、一个小写字母、一个数字",
8998
- passwordLength: "密码最少包含一个大写字母、一个小写字母、一个数字, 长度为8~30之间"
8929
+ orgSetting: {
8930
+ creOrg: "创建组织"
8999
8931
  },
9000
- miniProgram: {
9001
- title: "小程序登录",
9002
- tip01: "二维码失效",
9003
- tip02: "点击重试",
9004
- tip03: "扫码完成",
9005
- tip04: "请在手机上确认操作",
9006
- tip05: "打开微信扫一扫,快速登录/注册",
9007
- tip06: "重新扫码"
8932
+ trusted: {
8933
+ shortName: "可信开源",
8934
+ menu: "可信开源频道",
8935
+ title: "可信开源频道"
9008
8936
  },
9009
- mfatip5: "为了确保你的账户安全,请完成多因素身份验证",
9010
- mfatip1: "请打开你的身份验证器应用程序,查看并输入身份验证码",
9011
- mfatip2: "如果目前无法使用身份验证应用或移动设备,请输入尚未使用的恢复码进行身份验证。恢复码是一组备用代码,用于在无法使用身份验证器或移动设备时进行身份验证。",
9012
- mfatip7: "使用验证码 ",
9013
- mfatip6: "使用恢复码",
9014
- mfatip3: "多因素身份验证-验证码",
9015
- mfatip4: "多因素身份验证-恢复码"
9016
- };
9017
- const zhLocale = {
9018
- home: home$1,
9019
- header: header$1,
9020
- userSetting: userSetting$1,
9021
- repo: repo$1,
9022
- common: common$1,
9023
- org: org$1,
9024
- dashboard: dashboard$1,
9025
- orgSetting: orgSetting$1,
9026
- trusted: trusted$1,
9027
- aihub: aihub$1,
9028
- GStar: GStar$1,
9029
- LoginModal: LoginModal$2
9030
- };
9031
- const home = {
9032
- veryGood: "Excellent",
9033
- good: "Good",
9034
- generally: "Average",
9035
- bad: "Bad",
9036
- veryBad: "Terrible",
9037
- userFeedback01: "Consult Online",
9038
- userFeedback02: "Every question receives an answer.",
9039
- settlementMsg: "For organizational support, please contact via email",
9040
- settlementMsgContact: "Please include the organization introduction and contact information in the email",
9041
- followUs: "Follow Us to Learn More",
9042
- userFeedbackProductRecommendations: "Feedback",
9043
- improveQuestion: "Any Suggestions for Improvement?",
9044
- facebackPlaceholder: "Feedback (Optional)",
9045
- thankFaceback: "Thank You for Your Feedback",
9046
- surveyTipsTitle: "Guaranteed 200 points & enter to win limited merch!",
9047
- rateExperience: "Rate Your Experience with Our Product",
9048
- feedbackCenter: "Feedback Center",
9049
- technicalSupport: "Powered by",
9050
- HWCloud: "Huawei Cloud",
9051
- onWeekdays: "Weekdays",
9052
- focusOn: "Follow",
9053
- star: "Starred",
9054
- shotName: {
9055
- AI: "AI"
9056
- },
9057
- aiCommunity: "AI Community",
9058
- informationCenter: "News",
9059
- competition: "Competition",
9060
- slogon: "Co-create GitCode, the Code Home for Developers",
9061
- digest: "ChongQingKaiYuanGongChuang Technology Co., Ltd. All Rights Reserved",
9062
- companyInformation: "ChongQingKaiYuanGongChuang",
9063
- recordInformation: "Yu ICP No. 2023009037"
9064
- };
9065
- const header = {
9066
- create: "New",
9067
- createRepo: "New Repository",
9068
- importRepo: "Import Project",
9069
- migrationProject: "Migrate Repos",
9070
- createOrg: "New organization",
9071
- home: "Home",
9072
- applicationMarket: "Application Market",
9073
- recentlyActiveProject: "Recently Active Projects",
9074
- joinOrganization: "Join Organization",
9075
- noData: "No Data",
9076
- orgOrPerson: "Organization/Individual",
9077
- login: "Login",
9078
- register: "Register",
9079
- activeRegister: "Proactive Registration",
9080
- file: "Files",
9081
- language: "Language",
9082
- underSearch: "Search",
9083
- searchRecord: "Search Records",
9084
- clear: "Clear",
9085
- repo: "Repositories",
9086
- org: "Organizations",
9087
- user: "Users",
9088
- recentlyVisited: "Recent Visits",
9089
- platformSearch: "Full Platform Search",
9090
- searchPlaceholder: "Search",
9091
- workbench: "Dashboard",
9092
- myOrg: "Your organizations",
9093
- myRepo: "Your repositories",
9094
- myStar: "Your stars",
9095
- personSetting: "Settings",
9096
- helpDocument: "GitCode Docs",
9097
- logout: "Logout",
9098
- goUpgrade: "Upgrade",
9099
- openSourceExplorer: "Open Source Explorer",
9100
- openSourcePioneer: "Open Source Pioneer",
9101
- contributingStar: "Star Contributor",
9102
- createSpace: "New Space",
9103
- myNotebook: "Your Notebook",
9104
- mySpace: "Your Spaces",
9105
8937
  aihub: {
9106
- documentCenter: "Docs"
9107
- },
9108
- getPoints: "Points"
9109
- };
9110
- const userSetting = {
9111
- tips: {
9112
- youCanCreOrManUp: "You can create or manage up to {num} organizations, unable to create new ones."
8938
+ header: {
8939
+ aihub: "AI 社区"
8940
+ },
8941
+ model: "模型",
8942
+ dataSet: "数据集"
9113
8943
  },
9114
- menu: {
9115
- growthCenter: "Growth Center"
8944
+ GStar: {
8945
+ project: {
8946
+ graduation: "毕业项目",
8947
+ incubation: "孵化项目"
8948
+ }
9116
8949
  },
9117
- account: {
9118
- phone: "Phone Number",
9119
- passwordSetting: "Password",
9120
- bindPhoneVerification: "Phone Number Verification",
9121
- enterBoundPhone: "Please Enter the Current Bound Phone Number",
9122
- enterVerificationCode: "Please Enter the Verification Code",
9123
- getVerificationCode: "Get verification code",
9124
- changePassword: "Change Password",
9125
- oldPassword: "Old password",
9126
- newPassword: "New password",
9127
- confirmPassword: "Confirm New Password",
9128
- unbindSMSVerification: "Unbind SMS Verification",
9129
- deactivateAccount: "Delete account",
9130
- untie: "untie",
9131
- yourTypeAccountIs: "The {type} account you bind is",
9132
- "switch": "Replace",
9133
- mfaManage: "Manage Multi-Factor Authentication (MFA)",
9134
- mfa: "Multi-Factor Authentication (MFA)",
9135
- mfaEnable: "Enabled",
9136
- mfatip1: "Enable Multi-Factor Authentication (MFA) using a one-time password authenticator on your mobile device or computer to prevent unauthorized access and help protect your account from potential security threats.",
9137
- mfaManageBtn: "Manage",
9138
- mfatip2: "We recommend using cloud-based authenticator apps that can also help recover access in case of hardware device loss (e.g., Google Authenticator, Tencent Token Mini Program).",
9139
- mfatip3: "Unable to scan the QR code?",
9140
- mfatip4: "If you need to manually add an entry, provide the following information in your mobile app.",
9141
- mfaAccount: "Account:",
9142
- mfaAccountPlaceholder: "Enter the password for the current account.",
9143
- mfatip5: "You need the password of the current logged-in account to register the multi-factor authentication program.",
9144
- mfatip6: 'The password for the current account is not configured. <a class="text-[var(--devui-link)] cursor-pointer">Configure the password</a>.',
9145
- mfatip7: "Enter the correct account password.",
9146
- mfatip8: "Enter the 6-digit verification code generated by the authenticator.",
9147
- mfaCodeInput: "Enter verification code",
9148
- mfatip9: "If you lose your phone or cannot obtain a one-time password, you can use the recovery code below for multi-factor authentication (each recovery code can only be used once) to regain access to your account. Be sure to keep the recovery code in a secure place, as you will be unable to access your account without it.",
9149
- mfatip10: "Please securely store your recovery code before proceeding to the next step.",
9150
- mfaSave: "Save Recovery Code",
9151
- mfatip11: "You have already enabled multi-factor authentication using a one-time password authenticator. If you wish to register a different device, please disable multi-factor authentication first.",
9152
- mfatip12: "Disable Multi-Factor Authentication",
9153
- mfatip13: "Enter the password for the current account to disable the multi-factor authentication program.",
9154
- mfaRecover1: "Regenerate Recovery Code",
9155
- mfatip14: "Enter the password for the current account to regenerate the recovery code.",
9156
- mfaBan: "Disable",
9157
- mfaRecover2: "Regenerate",
9158
- mfaView: "Recovery Code",
9159
- mfatip15: "Click the button below to view the generated recovery code.",
9160
- mfaValid: "Expired",
9161
- mfatip17: "The password for the current account is not configured. ",
9162
- mfatip18: "Configure the password",
9163
- mfatip16: "Recovery codes have been stored securely."
8950
+ LoginModal: {
8951
+ title: {
8952
+ login: "欢迎登录你的GitCode账号",
8953
+ register: "欢迎注册"
8954
+ },
8955
+ subtitle: {
8956
+ sms: "短信登录",
8957
+ password: "密码登录",
8958
+ name: "用户名",
8959
+ phone: "手机号码",
8960
+ cipher: "密码",
8961
+ otherLogin: "其他登录方式",
8962
+ useAgrAndPriPolTip: "用户协议与隐私政策提示"
8963
+ },
8964
+ action: {
8965
+ getcode: "获取验证码",
8966
+ oh: "鸿蒙开发者登录",
8967
+ login: " ",
8968
+ registerAgain: "注册新账号",
8969
+ phone: "手机验证码",
8970
+ readAgree: "我已阅读并同意",
8971
+ verify: " ",
8972
+ confirmPassword: "确认密码",
8973
+ wechatScanCodeLogin: "微信扫码登录",
8974
+ AccountLogin: "帐号登录",
8975
+ resetPassword: "重置密码"
8976
+ },
8977
+ tips: {
8978
+ forgotPassword: "忘记密码?",
8979
+ registerAgain: "其它登录方式",
8980
+ agree: "登录或注册完成代表你同意",
8981
+ and: "",
8982
+ updatePassword: "修改密码成功, 正在为你跳转登录",
8983
+ pleaseReadHuaweiAgreement: "请阅读并同意华为云用户协议以及其隐私政策",
8984
+ gotoTipsAtNophone: "该手机号尚未注册, 即将为你自动跳转到注册页面",
8985
+ codeSentToYou: "验证码已发送到你的",
8986
+ pleaseCheck: "请注意查收",
8987
+ bindMobileWithAccount: "请通过账号绑定手机号",
8988
+ resetYourPassword: "邮箱重置你的账号密码",
8989
+ hwAuthorizationService: "华为云授权服务",
8990
+ pleaseAccreditHWBeforeUse: "GitCode与华为云共同为用户提供代码托管服务, 在使用代码托管相关服务前, 请先授权并开通华为云服务.",
8991
+ phoneNumberVerification: "手机号验证",
8992
+ authorizationAndBinding: "授权并绑定",
8993
+ cancelAuthorization: "取消授权",
8994
+ IHaveRead: "我已阅读",
8995
+ descOfHWCloud: "华为云隐私政策说明",
8996
+ agreeShareToHWCloud: "同意将我的手机号和帐号名共享给华为云用于创建帐号和委托",
8997
+ associatedAndShared: "并与重庆开源共创科技有限公司(Gitcode的运营主体)关联及共享。",
8998
+ createContinue: "创建账号并继续",
8999
+ create: "创建账号",
9000
+ pleaseReadAgreementAndPrivacy: "请阅读并同意相关协议以及隐私政策声明",
9001
+ confirmThirdBinding: "第三方账号绑定确认",
9002
+ checkCode: "验证码已经发送, 请注意查收",
9003
+ pleaseReauthorize: "请重新授权",
9004
+ readAndAgreeAgreementAndPrivacy: "请阅读并同意相关协议以及隐私政策声明",
9005
+ verificationCode: "验证码",
9006
+ verifyMobilePhoneNumber: "验证手机号",
9007
+ setUserName: "设置用户名",
9008
+ nameAlreadyExists: "用户名已存在",
9009
+ cannotBeEmpty: "用户名不能为空",
9010
+ passwordIsInconsistent: "验证密码与密码不一致",
9011
+ necessaryInfo: "请填写必要信息",
9012
+ fillvalidPhoneNumEmail: "请填写有效的手机号或者邮箱",
9013
+ passwordLength: "请确保密码的长度范围在8~30之间",
9014
+ validEmail: "或者有效的邮箱地址",
9015
+ SMSVerificationCode: "请输入{count}位有效的短信验证码",
9016
+ fillNecessaryInfo: "请输入有效的手机号码",
9017
+ youNeeToAgr: "您需要同意",
9018
+ toUseGit: "才能使用GitCode。",
9019
+ ifYouDoNotAgrWe: "如果您不同意,很遗憾我们无法为您提供服务。",
9020
+ disAndQui: "不同意并退出",
9021
+ agrAndSigIn: "同意并登录"
9022
+ },
9023
+ link: {
9024
+ agreement: "用户协议",
9025
+ privacyPolicy: "隐私政策",
9026
+ huaweiCloudAgreement: "华为云用户协议",
9027
+ agreementPrivacy: "华为云隐私政策声明",
9028
+ gitCodeProtocol: "GitCode用户协议",
9029
+ gitCodePrivacy: "GitCode隐私政策",
9030
+ chiCloDevSerAgr: "华为云开发者服务协议",
9031
+ chiCloDevPriPolSta: "华为云开发者隐私政策声明"
9032
+ },
9033
+ registerDesc: "GitCode 与华为云共同为用户提供代码托管服务,在使用代码托管相关服务时,将同步授权并开通华为云服务,并与重庆开源共创科技有限公司(GitCode的运营主体)关联及共享。",
9034
+ rule: {
9035
+ username: "只允许字母、数字或者下划线(_)、中划线(-),3到20个字符,必须以字母开头,不能以特殊字符结尾",
9036
+ pleaseFill: "请填写{label}",
9037
+ enterUsername: "请填写用户名",
9038
+ passwordLetter: "密码最少包含一个大写字母、一个小写字母、一个数字",
9039
+ passwordLength: "密码最少包含一个大写字母、一个小写字母、一个数字, 长度为8~30之间"
9040
+ },
9041
+ miniProgram: {
9042
+ title: "小程序登录",
9043
+ tip01: "二维码失效",
9044
+ tip02: "点击重试",
9045
+ tip03: "扫码完成",
9046
+ tip04: "请在手机上确认操作",
9047
+ tip05: "打开微信扫一扫,快速登录/注册",
9048
+ tip06: "重新扫码"
9049
+ },
9050
+ mfatip5: "为了确保你的账户安全,请完成多因素身份验证",
9051
+ mfatip1: "请打开你的身份验证器应用程序,查看并输入身份验证码",
9052
+ mfatip2: "如果目前无法使用身份验证应用或移动设备,请输入尚未使用的恢复码进行身份验证。恢复码是一组备用代码,用于在无法使用身份验证器或移动设备时进行身份验证。",
9053
+ mfatip7: "使用验证码 ",
9054
+ mfatip6: "使用恢复码",
9055
+ mfatip3: "多因素身份验证-验证码",
9056
+ mfatip4: "多因素身份验证-恢复码"
9164
9057
  }
9165
9058
  };
9166
- const repo = {
9167
- pr: {
9168
- commit: "Commit",
9169
- discussion: "Discussion"
9170
- },
9171
- code: {
9172
- syncText: "Update branch"
9173
- }
9059
+ const zhLocale = {
9060
+ gitCodeLayout: gitCodeLayout$1
9174
9061
  };
9175
- const common = {
9176
- footerSetting: {
9177
- lang: "Language",
9178
- theme: "Theme",
9179
- preSetting: "Preferences"
9062
+ const gitCodeLayout = {
9063
+ home: {
9064
+ veryGood: "Excellent",
9065
+ good: "Good",
9066
+ generally: "Average",
9067
+ bad: "Bad",
9068
+ veryBad: "Terrible",
9069
+ userFeedback01: "Consult Online",
9070
+ userFeedback02: "Every question receives an answer.",
9071
+ settlementMsg: "For organizational support, please contact via email",
9072
+ settlementMsgContact: "Please include the organization introduction and contact information in the email",
9073
+ followUs: "Follow Us to Learn More",
9074
+ userFeedbackProductRecommendations: "Feedback",
9075
+ improveQuestion: "Any Suggestions for Improvement?",
9076
+ facebackPlaceholder: "Feedback (Optional)",
9077
+ thankFaceback: "Thank You for Your Feedback",
9078
+ surveyTipsTitle: "Guaranteed 200 points & enter to win limited merch!",
9079
+ rateExperience: "Rate Your Experience with Our Product",
9080
+ feedbackCenter: "Feedback Center",
9081
+ technicalSupport: "Powered by",
9082
+ HWCloud: "Huawei Cloud",
9083
+ onWeekdays: "Weekdays",
9084
+ focusOn: "Follow",
9085
+ star: "Starred",
9086
+ shotName: {
9087
+ AI: "AI"
9088
+ },
9089
+ aiCommunity: "AI Community",
9090
+ informationCenter: "News",
9091
+ competition: "Competition",
9092
+ slogon: "Co-create GitCode, the Code Home for Developers",
9093
+ digest: "ChongQingKaiYuanGongChuang Technology Co., Ltd. All Rights Reserved",
9094
+ companyInformation: "ChongQingKaiYuanGongChuang",
9095
+ recordInformation: "Yu ICP No. 2023009037"
9180
9096
  },
9181
- search: "Search",
9182
- organize: "Organizations",
9183
- all: "All",
9184
- project: "Repositories",
9185
- publicSecurity: "京公网安备11010502055713号",
9186
- aboutUs: "About us",
9187
- recruitment: "Recruitment",
9188
- prices: "Price",
9189
- save: "Save",
9190
- wechat: "Wechat",
9191
- email: "Email",
9192
- phone: "Phone",
9193
- hasBeenSent: "Sent",
9194
- time: {
9195
- oneYearAgo: "1 year ago",
9196
- yearsAgo: "{num} years ago",
9197
- oneMonthAgo: "1 month ago",
9198
- monthsAgo: "{num} months ago",
9199
- justNow: "Just Now",
9200
- oneDayAgo: "1 day ago",
9201
- daysAgo: "{num} days ago",
9202
- hoursAgo: "{num} hours ago",
9203
- minutesAgo: "{num} minutes ago",
9204
- oneHourAgo: "1 hour ago",
9205
- oneMinuteAgo: "1 minute ago"
9097
+ header: {
9098
+ create: "New",
9099
+ createRepo: "New Repository",
9100
+ importRepo: "Import Project",
9101
+ migrationProject: "Migrate Repos",
9102
+ createOrg: "New organization",
9103
+ home: "Home",
9104
+ applicationMarket: "Application Market",
9105
+ recentlyActiveProject: "Recently Active Projects",
9106
+ joinOrganization: "Join Organization",
9107
+ noData: "No Data",
9108
+ orgOrPerson: "Organization/Individual",
9109
+ login: "Login",
9110
+ register: "Register",
9111
+ activeRegister: "Proactive Registration",
9112
+ file: "Files",
9113
+ language: "Language",
9114
+ underSearch: "Search",
9115
+ searchRecord: "Search Records",
9116
+ clear: "Clear",
9117
+ repo: "Repositories",
9118
+ org: "Organizations",
9119
+ user: "Users",
9120
+ recentlyVisited: "Recent Visits",
9121
+ platformSearch: "Full Platform Search",
9122
+ searchPlaceholder: "Search",
9123
+ workbench: "Dashboard",
9124
+ myOrg: "Your organizations",
9125
+ myRepo: "Your repositories",
9126
+ myStar: "Your stars",
9127
+ personSetting: "Settings",
9128
+ helpDocument: "GitCode Docs",
9129
+ logout: "Logout",
9130
+ goUpgrade: "Upgrade",
9131
+ openSourceExplorer: "Open Source Explorer",
9132
+ openSourcePioneer: "Open Source Pioneer",
9133
+ contributingStar: "Star Contributor",
9134
+ createSpace: "New Space",
9135
+ myNotebook: "Your Notebook",
9136
+ mySpace: "Your Spaces",
9137
+ aihub: {
9138
+ documentCenter: "Docs"
9139
+ },
9140
+ getPoints: "Points"
9141
+ },
9142
+ userSetting: {
9143
+ tips: {
9144
+ youCanCreOrManUp: "You can create or manage up to {num} organizations, unable to create new ones.",
9145
+ getPoints: "Points"
9146
+ },
9147
+ menu: {
9148
+ growthCenter: "Growth Center"
9149
+ },
9150
+ account: {
9151
+ phone: "Phone Number",
9152
+ passwordSetting: "Password",
9153
+ bindPhoneVerification: "Phone Number Verification",
9154
+ enterBoundPhone: "Please Enter the Current Bound Phone Number",
9155
+ enterVerificationCode: "Please Enter the Verification Code",
9156
+ getVerificationCode: "Get verification code",
9157
+ changePassword: "Change Password",
9158
+ oldPassword: "Old password",
9159
+ newPassword: "New password",
9160
+ confirmPassword: "Confirm New Password",
9161
+ unbindSMSVerification: "Unbind SMS Verification",
9162
+ deactivateAccount: "Delete account",
9163
+ untie: "untie",
9164
+ yourTypeAccountIs: "The {type} account you bind is",
9165
+ "switch": "Replace",
9166
+ mfaManage: "Manage Multi-Factor Authentication (MFA)",
9167
+ mfa: "Multi-Factor Authentication (MFA)",
9168
+ mfaEnable: "Enabled",
9169
+ mfatip1: "Enable Multi-Factor Authentication (MFA) using a one-time password authenticator on your mobile device or computer to prevent unauthorized access and help protect your account from potential security threats.",
9170
+ mfaManageBtn: "Manage",
9171
+ mfatip2: "We recommend using cloud-based authenticator apps that can also help recover access in case of hardware device loss (e.g., Google Authenticator, Tencent Token Mini Program).",
9172
+ mfatip3: "Unable to scan the QR code?",
9173
+ mfatip4: "If you need to manually add an entry, provide the following information in your mobile app.",
9174
+ mfaAccount: "Account:",
9175
+ mfaAccountPlaceholder: "Enter the password for the current account.",
9176
+ mfatip5: "You need the password of the current logged-in account to register the multi-factor authentication program.",
9177
+ mfatip6: 'The password for the current account is not configured. <a class="text-[var(--devui-link)] cursor-pointer">Configure the password</a>.',
9178
+ mfatip7: "Enter the correct account password.",
9179
+ mfatip8: "Enter the 6-digit verification code generated by the authenticator.",
9180
+ mfaCodeInput: "Enter verification code",
9181
+ mfatip9: "If you lose your phone or cannot obtain a one-time password, you can use the recovery code below for multi-factor authentication (each recovery code can only be used once) to regain access to your account. Be sure to keep the recovery code in a secure place, as you will be unable to access your account without it.",
9182
+ mfatip10: "Please securely store your recovery code before proceeding to the next step.",
9183
+ mfaSave: "Save Recovery Code",
9184
+ mfatip11: "You have already enabled multi-factor authentication using a one-time password authenticator. If you wish to register a different device, please disable multi-factor authentication first.",
9185
+ mfatip12: "Disable Multi-Factor Authentication",
9186
+ mfatip13: "Enter the password for the current account to disable the multi-factor authentication program.",
9187
+ mfaRecover1: "Regenerate Recovery Code",
9188
+ mfatip14: "Enter the password for the current account to regenerate the recovery code.",
9189
+ mfaBan: "Disable",
9190
+ mfaRecover2: "Regenerate",
9191
+ mfaView: "Recovery Code",
9192
+ mfatip15: "Click the button below to view the generated recovery code.",
9193
+ mfaValid: "Expired",
9194
+ mfatip17: "The password for the current account is not configured. ",
9195
+ mfatip18: "Configure the password",
9196
+ mfatip16: "Recovery codes have been stored securely."
9197
+ }
9206
9198
  },
9207
- topic: {
9208
- attention: "Follow"
9209
- }
9210
- };
9211
- const org = {
9212
- project: "Repositories",
9213
- expand_more: "More",
9214
- board: "Kanban ",
9215
- following: "Followed"
9216
- };
9217
- const dashboard = {
9218
9199
  repo: {
9219
- createRepo: "Create repo"
9220
- }
9221
- };
9222
- const orgSetting = {
9223
- creOrg: "New Organization"
9224
- };
9225
- const trusted = {
9226
- shortName: "TOSC",
9227
- menu: "Trusted Open Source",
9228
- title: "Trusted Open Source Channel"
9229
- };
9230
- const aihub = {
9231
- header: {
9232
- aihub: "AI Hub"
9200
+ pr: {
9201
+ commit: "Commit",
9202
+ discussion: "Discussion"
9203
+ },
9204
+ code: {
9205
+ syncText: "Update branch"
9206
+ }
9233
9207
  },
9234
- model: "Models",
9235
- dataSet: "Datasets"
9236
- };
9237
- const GStar = {
9238
- project: {
9239
- graduation: "Graduated",
9240
- incubation: "Incubation"
9241
- }
9242
- };
9243
- const LoginModal$1 = {
9244
- title: {
9245
- login: "Welcome to GitCode ",
9246
- register: "Welcome to register"
9208
+ common: {
9209
+ footerSetting: {
9210
+ lang: "Language",
9211
+ theme: "Theme",
9212
+ preSetting: "Preferences"
9213
+ },
9214
+ search: "Search",
9215
+ organize: "Organizations",
9216
+ all: "All",
9217
+ project: "Repositories",
9218
+ publicSecurity: "京公网安备11010502055713号",
9219
+ aboutUs: "About us",
9220
+ recruitment: "Recruitment",
9221
+ prices: "Price",
9222
+ save: "Save",
9223
+ wechat: "Wechat",
9224
+ email: "Email",
9225
+ phone: "Phone",
9226
+ hasBeenSent: "Sent",
9227
+ time: {
9228
+ oneYearAgo: "1 year ago",
9229
+ yearsAgo: "{num} years ago",
9230
+ oneMonthAgo: "1 month ago",
9231
+ monthsAgo: "{num} months ago",
9232
+ justNow: "Just Now",
9233
+ oneDayAgo: "1 day ago",
9234
+ daysAgo: "{num} days ago",
9235
+ hoursAgo: "{num} hours ago",
9236
+ minutesAgo: "{num} minutes ago",
9237
+ oneHourAgo: "1 hour ago",
9238
+ oneMinuteAgo: "1 minute ago"
9239
+ },
9240
+ topic: {
9241
+ attention: "Follow"
9242
+ }
9247
9243
  },
9248
- subtitle: {
9249
- sms: "SMS Login ",
9250
- password: "Password login",
9251
- name: "Username",
9252
- phone: "Phone number",
9253
- cipher: "Password",
9254
- otherLogin: "Other login methods",
9255
- useAgrAndPriPolTip: "User Agreement and Privacy Policy Notice"
9244
+ org: {
9245
+ project: "Repositories",
9246
+ expand_more: "More",
9247
+ board: "Kanban ",
9248
+ following: "Followed"
9256
9249
  },
9257
- action: {
9258
- getcode: "Get verification code",
9259
- oh: "OpenHarmony Developers",
9260
- login: "Log In",
9261
- registerAgain: "Sign up",
9262
- phone: "SMS code",
9263
- readAgree: "I have read and agree to",
9264
- verify: "Confirm",
9265
- confirmPassword: "Confirm password",
9266
- wechatScanCodeLogin: "WeChat QR code login",
9267
- AccountLogin: "Account login",
9268
- resetPassword: "Reset password"
9250
+ dashboard: {
9251
+ repo: {
9252
+ createRepo: "Create repo"
9253
+ }
9269
9254
  },
9270
- tips: {
9271
- forgotPassword: "Forgot password?",
9272
- registerAgain: "Other login methods",
9273
- agree: "By logging in or registering, you agree to",
9274
- and: "and",
9275
- updatePassword: "Password successfully changed, redirecting to login",
9276
- pleaseReadHuaweiAgreement: "Please read and agree to the Huawei Cloud User Agreement and Privacy Policy",
9277
- gotoTipsAtNophone: "The phone number is not registered, redirecting to the registration page",
9278
- codeSentToYou: "Verification code sent to your ",
9279
- pleaseCheck: " Please check",
9280
- bindMobileWithAccount: "Please bind your phone number through your account",
9281
- resetYourPassword: "Reset your account password via email",
9282
- hwAuthorizationService: "Huawei Cloud authorization service",
9283
- pleaseAccreditHWBeforeUse: "GitCode and Huawei Cloud jointly provide code hosting services for users. Please authorize and activate Huawei Cloud services before using related services.",
9284
- phoneNumberVerification: "Phone number verification",
9285
- authorizationAndBinding: "Authorize and bind",
9286
- cancelAuthorization: "Cancel authorization",
9287
- IHaveRead: "I have read",
9288
- descOfHWCloud: "Huawei Cloud Privacy Policy Explanation",
9289
- agreeShareToHWCloud: "Agree to share my phone number and account name with Huawei Cloud for account creation and authorization",
9290
- associatedAndShared: "and share with Chongqing Open Source Co-Creation Technology Co., Ltd. (the operator of GitCode).",
9291
- createContinue: "Create account and continue",
9292
- create: "Create account",
9293
- pleaseReadAgreementAndPrivacy: "Please read and agree to the relevant agreements and privacy policy statements",
9294
- confirmThirdBinding: "Third-party account binding confirmation",
9295
- checkCode: "Verification code sent, please check",
9296
- pleaseReauthorize: "Please re-authorize",
9297
- readAndAgreeAgreementAndPrivacy: "Please read and agree to the relevant agreements and privacy policy statements",
9298
- verificationCode: "Verification code",
9299
- verifyMobilePhoneNumber: "Verify phone number",
9300
- setUserName: "Set username",
9301
- nameAlreadyExists: "Username already exists",
9302
- cannotBeEmpty: "Username cannot be empty",
9303
- passwordIsInconsistent: "Verification password does not match password",
9304
- necessaryInfo: "Please fill in the necessary information",
9305
- fillvalidPhoneNumEmail: "Please fill in a valid mobile phone number or email address",
9306
- passwordLength: "Ensure that the password contains 8 to 30 characters",
9307
- validEmail: "Or a valid email address",
9308
- SMSVerificationCode: "Please enter a valid SMS verification code with {count} digits",
9309
- fillNecessaryInfo: "Please enter a valid mobile number",
9310
- youNeeToAgr: "You need to agree",
9311
- toUseGit: "to use GitCode.",
9312
- ifYouDoNotAgrWe: "If you do not agree, unfortunately, we cannot provide you with services.",
9313
- disAndQui: "Disagree and Exit",
9314
- agrAndSigIn: "Agree and Login"
9255
+ orgSetting: {
9256
+ creOrg: "New Organization"
9315
9257
  },
9316
- link: {
9317
- agreement: "User Agreement",
9318
- privacyPolicy: "Privacy Policy",
9319
- huaweiCloudAgreement: "Huawei Cloud User Agreement",
9320
- agreementPrivacy: "Huawei Cloud Privacy Policy Statement",
9321
- gitCodeProtocol: "GitCode User Agreement",
9322
- gitCodePrivacy: "GitCode Privacy Policy",
9323
- chiCloDevSerAgr: "Huawei Cloud Developer Service Agreement",
9324
- chiCloDevPriPolSta: "Huawei Cloud Developer Privacy Policy Statement"
9258
+ trusted: {
9259
+ shortName: "TOSC",
9260
+ menu: "Trusted Open Source",
9261
+ title: "Trusted Open Source Channel"
9325
9262
  },
9326
- 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).",
9327
- rule: {
9328
- username: "Only letters, numbers, underscores (_), hyphens (-) are allowed, 3 to 20 characters, must start with a letter, cannot end with a special character",
9329
- pleaseFill: "Please fill in {label}",
9330
- enterUsername: "Please enter a username",
9331
- passwordLetter: "Password must contain at least one uppercase letter, one lowercase letter, and one number",
9332
- passwordLength: "Password must contain at least one uppercase letter, one lowercase letter, and one number, length 8-30 characters"
9263
+ aihub: {
9264
+ header: {
9265
+ aihub: "AI Hub"
9266
+ },
9267
+ model: "Models",
9268
+ dataSet: "Datasets"
9333
9269
  },
9334
- miniProgram: {
9335
- title: "Miniprogram",
9336
- tip01: "The QR code is invalid",
9337
- tip02: "Retry",
9338
- tip03: "Scan completed",
9339
- tip04: "Please confirm the action on your phone",
9340
- tip05: "Scan QR Code via WeChat to quickly log in or sign up",
9341
- tip06: "Refresh QR Code"
9270
+ GStar: {
9271
+ project: {
9272
+ graduation: "Graduated",
9273
+ incubation: "Incubation"
9274
+ }
9342
9275
  },
9343
- mfatip5: "To ensure the security of your account, please complete the multi-factor authentication.",
9344
- mfatip1: "Open your authentication app and enter the verification code.",
9345
- mfatip2: "If you are currently unable to use the authentication app or mobile device, please enter an unused recovery code for authentication. Recovery codes are a set of backup codes used for authentication when the authentication app or mobile device is unavailable.",
9346
- mfatip7: "Verification Code",
9347
- mfatip6: "Recovery Code",
9348
- mfatip3: "MFA - Verification Code",
9349
- mfatip4: "MFA - Recovery Code"
9276
+ LoginModal: {
9277
+ title: {
9278
+ login: "Welcome to GitCode ",
9279
+ register: "Welcome to register"
9280
+ },
9281
+ subtitle: {
9282
+ sms: "SMS Login ",
9283
+ password: "Password login",
9284
+ name: "Username",
9285
+ phone: "Phone number",
9286
+ cipher: "Password",
9287
+ otherLogin: "Other login methods",
9288
+ useAgrAndPriPolTip: "User Agreement and Privacy Policy Notice"
9289
+ },
9290
+ action: {
9291
+ getcode: "Get verification code",
9292
+ oh: "OpenHarmony Developers",
9293
+ login: "Log In",
9294
+ registerAgain: "Sign up",
9295
+ phone: "SMS code",
9296
+ readAgree: "I have read and agree to",
9297
+ verify: "Confirm",
9298
+ confirmPassword: "Confirm password",
9299
+ wechatScanCodeLogin: "WeChat QR code login",
9300
+ AccountLogin: "Account login",
9301
+ resetPassword: "Reset password"
9302
+ },
9303
+ tips: {
9304
+ forgotPassword: "Forgot password?",
9305
+ registerAgain: "Other login methods",
9306
+ agree: "By logging in or registering, you agree to",
9307
+ and: "and",
9308
+ updatePassword: "Password successfully changed, redirecting to login",
9309
+ pleaseReadHuaweiAgreement: "Please read and agree to the Huawei Cloud User Agreement and Privacy Policy",
9310
+ gotoTipsAtNophone: "The phone number is not registered, redirecting to the registration page",
9311
+ codeSentToYou: "Verification code sent to your ",
9312
+ pleaseCheck: " Please check",
9313
+ bindMobileWithAccount: "Please bind your phone number through your account",
9314
+ resetYourPassword: "Reset your account password via email",
9315
+ hwAuthorizationService: "Huawei Cloud authorization service",
9316
+ pleaseAccreditHWBeforeUse: "GitCode and Huawei Cloud jointly provide code hosting services for users. Please authorize and activate Huawei Cloud services before using related services.",
9317
+ phoneNumberVerification: "Phone number verification",
9318
+ authorizationAndBinding: "Authorize and bind",
9319
+ cancelAuthorization: "Cancel authorization",
9320
+ IHaveRead: "I have read",
9321
+ descOfHWCloud: "Huawei Cloud Privacy Policy Explanation",
9322
+ agreeShareToHWCloud: "Agree to share my phone number and account name with Huawei Cloud for account creation and authorization",
9323
+ associatedAndShared: "and share with Chongqing Open Source Co-Creation Technology Co., Ltd. (the operator of GitCode).",
9324
+ createContinue: "Create account and continue",
9325
+ create: "Create account",
9326
+ pleaseReadAgreementAndPrivacy: "Please read and agree to the relevant agreements and privacy policy statements",
9327
+ confirmThirdBinding: "Third-party account binding confirmation",
9328
+ checkCode: "Verification code sent, please check",
9329
+ pleaseReauthorize: "Please re-authorize",
9330
+ readAndAgreeAgreementAndPrivacy: "Please read and agree to the relevant agreements and privacy policy statements",
9331
+ verificationCode: "Verification code",
9332
+ verifyMobilePhoneNumber: "Verify phone number",
9333
+ setUserName: "Set username",
9334
+ nameAlreadyExists: "Username already exists",
9335
+ cannotBeEmpty: "Username cannot be empty",
9336
+ passwordIsInconsistent: "Verification password does not match password",
9337
+ necessaryInfo: "Please fill in the necessary information",
9338
+ fillvalidPhoneNumEmail: "Please fill in a valid mobile phone number or email address",
9339
+ passwordLength: "Ensure that the password contains 8 to 30 characters",
9340
+ validEmail: "Or a valid email address",
9341
+ SMSVerificationCode: "Please enter a valid SMS verification code with {count} digits",
9342
+ fillNecessaryInfo: "Please enter a valid mobile number",
9343
+ youNeeToAgr: "You need to agree",
9344
+ toUseGit: "to use GitCode.",
9345
+ ifYouDoNotAgrWe: "If you do not agree, unfortunately, we cannot provide you with services.",
9346
+ disAndQui: "Disagree and Exit",
9347
+ agrAndSigIn: "Agree and Login"
9348
+ },
9349
+ link: {
9350
+ agreement: "User Agreement",
9351
+ privacyPolicy: "Privacy Policy",
9352
+ huaweiCloudAgreement: "Huawei Cloud User Agreement",
9353
+ agreementPrivacy: "Huawei Cloud Privacy Policy Statement",
9354
+ gitCodeProtocol: "GitCode User Agreement",
9355
+ gitCodePrivacy: "GitCode Privacy Policy",
9356
+ chiCloDevSerAgr: "Huawei Cloud Developer Service Agreement",
9357
+ chiCloDevPriPolSta: "Huawei Cloud Developer Privacy Policy Statement"
9358
+ },
9359
+ 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).",
9360
+ rule: {
9361
+ username: "Only letters, numbers, underscores (_), hyphens (-) are allowed, 3 to 20 characters, must start with a letter, cannot end with a special character",
9362
+ pleaseFill: "Please fill in {label}",
9363
+ enterUsername: "Please enter a username",
9364
+ passwordLetter: "Password must contain at least one uppercase letter, one lowercase letter, and one number",
9365
+ passwordLength: "Password must contain at least one uppercase letter, one lowercase letter, and one number, length 8-30 characters"
9366
+ },
9367
+ miniProgram: {
9368
+ title: "Miniprogram",
9369
+ tip01: "The QR code is invalid",
9370
+ tip02: "Retry",
9371
+ tip03: "Scan completed",
9372
+ tip04: "Please confirm the action on your phone",
9373
+ tip05: "Scan QR Code via WeChat to quickly log in or sign up",
9374
+ tip06: "Refresh QR Code"
9375
+ },
9376
+ mfatip5: "To ensure the security of your account, please complete the multi-factor authentication.",
9377
+ mfatip1: "Open your authentication app and enter the verification code.",
9378
+ mfatip2: "If you are currently unable to use the authentication app or mobile device, please enter an unused recovery code for authentication. Recovery codes are a set of backup codes used for authentication when the authentication app or mobile device is unavailable.",
9379
+ mfatip7: "Verification Code",
9380
+ mfatip6: "Recovery Code",
9381
+ mfatip3: "MFA - Verification Code",
9382
+ mfatip4: "MFA - Recovery Code"
9383
+ }
9350
9384
  };
9351
9385
  const enLocale = {
9352
- home,
9353
- header,
9354
- userSetting,
9355
- repo,
9356
- common,
9357
- org,
9358
- dashboard,
9359
- orgSetting,
9360
- trusted,
9361
- aihub,
9362
- GStar,
9363
- LoginModal: LoginModal$1
9386
+ gitCodeLayout
9364
9387
  };
9365
9388
  function isComposer(instance, mode) {
9366
9389
  return mode === "composition" && isRef(instance.locale);
@@ -9401,7 +9424,7 @@ const $i18n = setupI18n({
9401
9424
  }
9402
9425
  });
9403
9426
  const i18n = $i18n;
9404
- const index_vue_vue_type_style_index_0_scoped_bf664cc6_lang = "";
9427
+ const index_vue_vue_type_style_index_0_scoped_4bd4e5e2_lang = "";
9405
9428
  const _sfc_main$k = /* @__PURE__ */ Object.assign({
9406
9429
  name: "Create"
9407
9430
  }, {
@@ -9413,6 +9436,7 @@ const _sfc_main$k = /* @__PURE__ */ Object.assign({
9413
9436
  }
9414
9437
  },
9415
9438
  setup(__props) {
9439
+ const layoutConfig2 = useLayoutConfig();
9416
9440
  const API = headRequest(inject("request"));
9417
9441
  const getUserCreateOrg = async (user) => {
9418
9442
  var _a, _b, _c, _d, _e, _f;
@@ -9428,9 +9452,9 @@ const _sfc_main$k = /* @__PURE__ */ Object.assign({
9428
9452
  };
9429
9453
  const { t: $t } = i18n.global;
9430
9454
  const linkList = ref([
9431
- { label: $t("header.createRepo"), href: `${SITE_HOST}/create?position=nav_top` },
9432
- { label: $t("header.importRepo"), href: `${SITE_HOST}/migrate?type=3` },
9433
- { label: $t("header.createOrg"), linkName: "newOrg" }
9455
+ { label: $t("gitCodeLayout.header.createRepo"), href: `${layoutConfig2.VITE_HOST}/create?position=nav_top` },
9456
+ { label: $t("gitCodeLayout.header.importRepo"), href: `${layoutConfig2.VITE_HOST}/migrate?type=3` },
9457
+ { label: $t("gitCodeLayout.header.createOrg"), linkName: "newOrg" }
9434
9458
  ]);
9435
9459
  useRoute();
9436
9460
  useRouter();
@@ -9439,13 +9463,13 @@ const _sfc_main$k = /* @__PURE__ */ Object.assign({
9439
9463
  const userInfo = JSON.parse(localStorage.getItem("userInfo") || "{}");
9440
9464
  const flag = await getUserCreateOrg(userInfo == null ? void 0 : userInfo.username);
9441
9465
  if (!flag) {
9442
- Message.warning($t("userSetting.tips.youCanCreOrManUp", { num: 5 }));
9466
+ Message.warning($t("gitCodeLayout.userSetting.tips.youCanCreOrManUp", { num: 5 }));
9443
9467
  return;
9444
9468
  } else {
9445
- window.location.href = `${SITE_HOST}/org/create`;
9469
+ window.location.href = `${layoutConfig2.VITE_HOST}/org/create`;
9446
9470
  }
9447
9471
  }
9448
- if (window.location.href.includes("create") && linkItem.href === `${SITE_HOST}/create?position=nav_top`) {
9472
+ if (window.location.href.includes("create") && linkItem.href === `${layoutConfig2.VITE_HOST}/create?position=nav_top`) {
9449
9473
  window.location.reload();
9450
9474
  event.stopPropagation();
9451
9475
  }
@@ -9482,7 +9506,7 @@ const _sfc_main$k = /* @__PURE__ */ Object.assign({
9482
9506
  variant: "solid"
9483
9507
  }, {
9484
9508
  default: withCtx(() => [
9485
- createTextVNode(toDisplayString(unref($t)("header.create")), 1)
9509
+ createTextVNode(toDisplayString(unref($t)("gitCodeLayout.header.create")), 1)
9486
9510
  ]),
9487
9511
  _: 1
9488
9512
  })
@@ -9492,7 +9516,7 @@ const _sfc_main$k = /* @__PURE__ */ Object.assign({
9492
9516
  };
9493
9517
  }
9494
9518
  });
9495
- const Create = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-bf664cc6"]]);
9519
+ const Create = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-4bd4e5e2"]]);
9496
9520
  const _sfc_main$j = /* @__PURE__ */ defineComponent({
9497
9521
  ...{
9498
9522
  name: "DocumentCenter"
@@ -9511,15 +9535,15 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
9511
9535
  target: "_blank"
9512
9536
  }, {
9513
9537
  default: withCtx(() => [
9514
- createTextVNode(toDisplayString(_ctx.$t("header.aihub.documentCenter")), 1)
9538
+ createTextVNode(toDisplayString(_ctx.$t("gitCodeLayout.header.aihub.documentCenter")), 1)
9515
9539
  ]),
9516
9540
  _: 1
9517
9541
  }, 8, ["class"]);
9518
9542
  };
9519
9543
  }
9520
9544
  });
9521
- const DocumentCenter_vue_vue_type_style_index_0_scoped_8b213dbf_lang = "";
9522
- const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-8b213dbf"]]);
9545
+ const DocumentCenter_vue_vue_type_style_index_0_scoped_4457af86_lang = "";
9546
+ const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-4457af86"]]);
9523
9547
  var root = _root;
9524
9548
  var now$1 = function() {
9525
9549
  return root.Date.now();
@@ -9662,6 +9686,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
9662
9686
  },
9663
9687
  __name: "Notice",
9664
9688
  setup(__props) {
9689
+ const layoutConfig2 = useLayoutConfig();
9665
9690
  const API = headRequest(inject("request"));
9666
9691
  const counts = ref(0);
9667
9692
  const getCounts = () => {
@@ -9690,7 +9715,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
9690
9715
  });
9691
9716
  return (_ctx, _cache) => {
9692
9717
  return openBlock(), createBlock(GLink, {
9693
- href: `${unref(SITE_HOST)}/notice?message_sate=countNotRead`
9718
+ href: `${unref(layoutConfig2).VITE_HOST}/notice?message_sate=countNotRead`
9694
9719
  }, {
9695
9720
  default: withCtx(() => [
9696
9721
  createVNode(unref(Badge), {
@@ -9715,9 +9740,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
9715
9740
  };
9716
9741
  }
9717
9742
  });
9718
- const Notice_vue_vue_type_style_index_0_scoped_bff7016f_lang = "";
9719
- const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-bff7016f"]]);
9720
- const UserLevel_vue_vue_type_style_index_0_scoped_09a9832c_lang = "";
9743
+ const Notice_vue_vue_type_style_index_0_scoped_061b58d4_lang = "";
9744
+ const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-061b58d4"]]);
9745
+ const UserLevel_vue_vue_type_style_index_0_scoped_decf23ff_lang = "";
9721
9746
  const _hoisted_1$f = {
9722
9747
  key: 0,
9723
9748
  class: "user-level-avatar-badge"
@@ -9738,17 +9763,17 @@ const _sfc_main$h = /* @__PURE__ */ Object.assign({ name: "UserLevel" }, {
9738
9763
  const props = __props;
9739
9764
  const levelMap = {
9740
9765
  v1: {
9741
- name: t2("header.openSourceExplorer"),
9766
+ name: t2("gitCodeLayout.header.openSourceExplorer"),
9742
9767
  avatar: "https://cdn-static.gitcode.com/static/images/points/ava-v1.png",
9743
9768
  level: "https://cdn-static.gitcode.com/static/images/points/l-v1.png"
9744
9769
  },
9745
9770
  v2: {
9746
- name: t2("header.openSourcePioneer"),
9771
+ name: t2("gitCodeLayout.header.openSourcePioneer"),
9747
9772
  avatar: "https://cdn-static.gitcode.com/static/images/points/ava-v2.png",
9748
9773
  level: "https://cdn-static.gitcode.com/static/images/points/l-v2.png"
9749
9774
  },
9750
9775
  v3: {
9751
- name: t2("header.contributingStar"),
9776
+ name: t2("gitCodeLayout.header.contributingStar"),
9752
9777
  avatar: "https://cdn-static.gitcode.com/static/images/points/ava-v3.png",
9753
9778
  level: "https://cdn-static.gitcode.com/static/images/points/l-v3.png"
9754
9779
  }
@@ -9793,13 +9818,13 @@ const _sfc_main$h = /* @__PURE__ */ Object.assign({ name: "UserLevel" }, {
9793
9818
  ])
9794
9819
  ]),
9795
9820
  createElementVNode("div", _hoisted_7$3, [
9796
- createElementVNode("div", _hoisted_8$2, toDisplayString(_ctx.$t("header.getPoints")), 1)
9821
+ createElementVNode("div", _hoisted_8$2, toDisplayString(_ctx.$t("gitCodeLayout.userSetting.tips.getPoints")), 1)
9797
9822
  ])
9798
9823
  ], 2);
9799
9824
  };
9800
9825
  }
9801
9826
  });
9802
- const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-09a9832c"]]);
9827
+ const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-decf23ff"]]);
9803
9828
  const _hoisted_1$e = { class: "g-user-drawer-info-list pl-[16px]" };
9804
9829
  const _hoisted_2$b = { class: "max-w-[200px]" };
9805
9830
  const _hoisted_3$8 = ["title"];
@@ -9814,6 +9839,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
9814
9839
  __name: "UserAvatarMenu",
9815
9840
  props: ["isChatBot", "accountInfo", "loginOutFinish", "inAIHub"],
9816
9841
  setup(__props) {
9842
+ const layoutConfig2 = useLayoutConfig();
9817
9843
  const API = headRequest(inject("request"));
9818
9844
  const repoInfo = inject("repoInfo");
9819
9845
  const orgInfo = inject("orgInfo");
@@ -9877,19 +9903,19 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
9877
9903
  };
9878
9904
  const blockList = computed(() => [
9879
9905
  [
9880
- { id: "dashboard", label: t2("header.workbench"), icon: "gt-plane-user", to: getRouterLink("dashboard") },
9881
- { id: "myOrg", label: t2("header.myOrg"), icon: "gt-plane-organization", to: getRouterLink({ name: "settingOrganization" }) },
9882
- { id: "myRepo", label: t2("header.myRepo"), icon: "gt-plane-projectHome1", to: getRouterLink("settingRepo") },
9883
- { id: "myNotebook", label: t2("header.myNotebook"), icon: "gt-plane-Notebook", to: getRouterLink("myNotebook"), show: props.inAIHub },
9884
- { id: "mySpaces", label: t2("header.mySpace"), icon: "gt-plane-Space", to: getRouterLink("userSpaces"), show: props.inAIHub },
9885
- { id: "myStar", label: t2("header.myStar"), icon: "gt-plane-star", to: getRouterLink("userStars") }
9906
+ { id: "dashboard", label: t2("gitCodeLayout.header.workbench"), icon: "gt-plane-user", to: getRouterLink("dashboard") },
9907
+ { id: "myOrg", label: t2("gitCodeLayout.header.myOrg"), icon: "gt-plane-organization", to: getRouterLink({ name: "settingOrganization" }) },
9908
+ { id: "myRepo", label: t2("gitCodeLayout.header.myRepo"), icon: "gt-plane-projectHome1", to: getRouterLink("settingRepo") },
9909
+ { id: "myNotebook", label: t2("gitCodeLayout.header.myNotebook"), icon: "gt-plane-Notebook", to: getRouterLink("myNotebook"), show: props.inAIHub },
9910
+ { id: "mySpaces", label: t2("gitCodeLayout.header.mySpace"), icon: "gt-plane-Space", to: getRouterLink("userSpaces"), show: props.inAIHub },
9911
+ { id: "myStar", label: t2("gitCodeLayout.header.myStar"), icon: "gt-plane-star", to: getRouterLink("userStars") }
9886
9912
  ],
9887
9913
  [
9888
- { id: "personalSetting", label: t2("header.personSetting"), icon: "gt-plane-setting", to: getRouterLink("setting") },
9889
- { id: "help", label: t2("header.helpDocument"), icon: "gt-plane-project-opened", href: HELP_DOCS_URL }
9914
+ { id: "personalSetting", label: t2("gitCodeLayout.header.personSetting"), icon: "gt-plane-setting", to: getRouterLink("setting") },
9915
+ { id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", href: HELP_DOCS_URL }
9890
9916
  ],
9891
9917
  [
9892
- { id: "logout", label: t2("header.logout"), icon: "gt-default", action: logout }
9918
+ { id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action: logout }
9893
9919
  ]
9894
9920
  ]);
9895
9921
  const getVisit = async (value) => {
@@ -9906,7 +9932,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
9906
9932
  return openBlock(), createElementBlock("div", null, [
9907
9933
  createVNode(GLink, {
9908
9934
  class: "g-user-drawer-info pl-[32px] pr-[16px] cursor-pointer",
9909
- href: `${unref(SITE_HOST)}/${__props.accountInfo.username}`,
9935
+ href: `${unref(layoutConfig2).VITE_HOST}/${__props.accountInfo.username}`,
9910
9936
  key: "myPage",
9911
9937
  target: __props.isChatBot ? "_blank" : ""
9912
9938
  }, {
@@ -10003,8 +10029,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
10003
10029
  };
10004
10030
  }
10005
10031
  });
10006
- const UserAvatarMenu_vue_vue_type_style_index_0_scoped_b9e9b9d6_lang = "";
10007
- const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-b9e9b9d6"]]);
10032
+ const UserAvatarMenu_vue_vue_type_style_index_0_scoped_488040dd_lang = "";
10033
+ const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-488040dd"]]);
10008
10034
  const _hoisted_1$d = { class: "g-user-avatar flex-center ml-1" };
10009
10035
  const _hoisted_2$a = {
10010
10036
  key: 0,
@@ -10274,13 +10300,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
10274
10300
  setup(__props) {
10275
10301
  var _a;
10276
10302
  const { t: $t } = i18n.global;
10277
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-cbd30a7b.js"));
10278
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-f7f1ff0d.js"));
10279
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-37405ec8.js"));
10280
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-6fa78d5b.js"));
10281
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-6eba07a3.js"));
10282
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-d6298d77.js"));
10283
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-bbea8abe.js"));
10303
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-2735465f.js"));
10304
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-c2065a9a.js"));
10305
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-17e77b1e.js"));
10306
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-df38eb3e.js"));
10307
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-f8827003.js"));
10308
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-6487df83.js"));
10309
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-30ce741b.js"));
10284
10310
  const props = __props;
10285
10311
  const repoInfo = inject("repoInfo");
10286
10312
  const orgInfo = inject("orgInfo");
@@ -10304,7 +10330,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
10304
10330
  }
10305
10331
  });
10306
10332
  const showRecommend = computed(() => {
10307
- return props.sceneValue === SceneValue.home;
10333
+ return props.sceneValue === SceneValue.home || props.sceneValue === SceneValue.repo;
10308
10334
  });
10309
10335
  const isFocus = ref(false);
10310
10336
  const searchDropDownVisible = ref(false);
@@ -10334,7 +10360,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
10334
10360
  });
10335
10361
  let quickTips = "";
10336
10362
  try {
10337
- quickTips = $t("home.searchPlaceholder2") || "";
10363
+ quickTips = $t("gitCodeLayout.home.searchPlaceholder2") || "";
10338
10364
  } catch (error) {
10339
10365
  quickTips = "";
10340
10366
  }
@@ -10360,7 +10386,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
10360
10386
  const projectTagVisible = computed(() => {
10361
10387
  return (isSearchPage.value || isFocus.value) && localSearchInfo.value.searchScopeName;
10362
10388
  });
10363
- const cnScopeMap = { repo: $t("header.repo"), group: $t("header.org"), user: $t("header.user") };
10389
+ const cnScopeMap = { repo: $t("gitCodeLayout.header.repo"), group: $t("gitCodeLayout.header.org"), user: $t("gitCodeLayout.header.user") };
10364
10390
  const languageTagVisible = computed(() => {
10365
10391
  return (isSearchPage.value || isFocus.value) && searchStr && language.value;
10366
10392
  });
@@ -10377,25 +10403,25 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
10377
10403
  value: localSearchInfo.value.searchScopeName
10378
10404
  },
10379
10405
  {
10380
- label: localSearchInfo.value.projectType === "user" ? $t("header.user") : $t("header.org"),
10406
+ label: localSearchInfo.value.projectType === "user" ? $t("gitCodeLayout.header.user") : $t("gitCodeLayout.header.org"),
10381
10407
  enLabel: localSearchInfo.value.projectType === "user" ? "user" : "group",
10382
10408
  value: localSearchInfo.value.nameOrOrg
10383
10409
  },
10384
- { title: $t("header.platformSearch") }
10410
+ { title: $t("gitCodeLayout.header.platformSearch") }
10385
10411
  ];
10386
10412
  case "group":
10387
10413
  return [
10388
10414
  { label: cnScopeMap.group, enLabel: "group", value: localSearchInfo.value.searchScopeName },
10389
- { title: $t("header.platformSearch") }
10415
+ { title: $t("gitCodeLayout.header.platformSearch") }
10390
10416
  ];
10391
10417
  case "user":
10392
10418
  return [
10393
10419
  { label: cnScopeMap.user, enLabel: "user", value: localSearchInfo.value.searchScopeName },
10394
- { title: $t("header.platformSearch") }
10420
+ { title: $t("gitCodeLayout.header.platformSearch") }
10395
10421
  ];
10396
10422
  }
10397
10423
  }
10398
- return [{ title: $t("header.platformSearch") }];
10424
+ return [{ title: $t("gitCodeLayout.header.platformSearch") }];
10399
10425
  });
10400
10426
  let localSearchText = localStorage.getItem("localSearchText");
10401
10427
  if (localSearchText) {
@@ -10680,92 +10706,97 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
10680
10706
  ])
10681
10707
  ]),
10682
10708
  default: withCtx(() => [
10683
- (openBlock(), createBlock(unref(Input), {
10684
- key: _ctx.$route.fullPath,
10685
- id: "golbalSearch",
10686
- class: "g-header-search custom-h-searchinput",
10687
- modelValue: searchStr.value,
10688
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchStr.value = $event),
10689
- modelModifiers: { trim: true },
10690
- onKeydown: [
10691
- withKeys(onSearchBefore, ["enter"]),
10692
- _cache[1] || (_cache[1] = withKeys(($event) => changeHoverIndex("del"), ["up"])),
10693
- _cache[2] || (_cache[2] = withKeys(($event) => changeHoverIndex("add"), ["down"])),
10694
- withKeys(onBackspaceHandle, ["backspace"])
10695
- ],
10696
- onFocus,
10697
- onCompositionstart: _cache[3] || (_cache[3] = ($event) => inputIng.value = true),
10698
- onCompositionend: _cache[4] || (_cache[4] = ($event) => inputIng.value = false),
10699
- autocomplete: "off",
10700
- ref_key: "inputRef",
10701
- ref: inputRef
10702
- }, {
10703
- prefix: withCtx(() => [
10704
- createElementVNode("div", _hoisted_1$c, [
10705
- createVNode(Icon, {
10706
- name: "gt-search",
10707
- class: "g-header-search-icon",
10708
- onClick: onInputClick
10709
- })
10710
- ]),
10711
- withDirectives(createElementVNode("span", {
10712
- class: "quick-tips",
10713
- innerHTML: unref(quickTips),
10714
- onClick: onInputClick
10715
- }, null, 8, _hoisted_2$9), [
10716
- [vShow, placeholderVisible.value]
10717
- ]),
10718
- withDirectives(createVNode(unref(SearchPrefixTag), {
10719
- tag: cnScopeMap[localSearchInfo.value.searchScope] + ":" + localSearchInfo.value.searchScopeName,
10720
- closeVisible: isFocus.value,
10721
- onInputClick,
10722
- onCloseTag
10723
- }, null, 8, ["tag", "closeVisible"]), [
10724
- [vShow, projectTagVisible.value]
10725
- ]),
10726
- withDirectives(createVNode(unref(SearchPrefixTag), {
10727
- tag: unref($t)("header.language") + ":" + language.value,
10728
- closeVisible: isFocus.value,
10729
- onInputClick,
10730
- onCloseTag: onCloseLanguageTag
10731
- }, null, 8, ["tag", "closeVisible"]), [
10732
- [vShow, languageTagVisible.value]
10733
- ])
10734
- ]),
10735
- suffix: withCtx(() => [
10736
- isFocus.value ? (openBlock(), createElementBlock("div", {
10737
- key: 0,
10738
- class: "g-header-search-suffix",
10739
- onClick: onSearch
10740
- }, [
10741
- withDirectives(createVNode(Icon, {
10742
- name: "gt-line-close",
10743
- class: "g-header-search-suffix-close",
10744
- onClick: withModifiers(onClearSearch, ["stop"])
10745
- }, null, 512), [
10746
- [vShow, searchStr.value]
10709
+ createVNode(unref(Form), null, {
10710
+ default: withCtx(() => [
10711
+ (openBlock(), createBlock(unref(Input), {
10712
+ key: _ctx.$route.fullPath,
10713
+ id: "golbalSearch",
10714
+ class: "g-header-search custom-h-searchinput",
10715
+ modelValue: searchStr.value,
10716
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchStr.value = $event),
10717
+ modelModifiers: { trim: true },
10718
+ onKeydown: [
10719
+ withKeys(onSearchBefore, ["enter"]),
10720
+ _cache[1] || (_cache[1] = withKeys(($event) => changeHoverIndex("del"), ["up"])),
10721
+ _cache[2] || (_cache[2] = withKeys(($event) => changeHoverIndex("add"), ["down"])),
10722
+ withKeys(onBackspaceHandle, ["backspace"])
10723
+ ],
10724
+ onFocus,
10725
+ onCompositionstart: _cache[3] || (_cache[3] = ($event) => inputIng.value = true),
10726
+ onCompositionend: _cache[4] || (_cache[4] = ($event) => inputIng.value = false),
10727
+ autocomplete: "off",
10728
+ ref_key: "inputRef",
10729
+ ref: inputRef
10730
+ }, {
10731
+ prefix: withCtx(() => [
10732
+ createElementVNode("div", _hoisted_1$c, [
10733
+ createVNode(Icon, {
10734
+ name: "gt-search",
10735
+ class: "g-header-search-icon",
10736
+ onClick: onInputClick
10737
+ })
10738
+ ]),
10739
+ withDirectives(createElementVNode("span", {
10740
+ class: "quick-tips",
10741
+ innerHTML: unref(quickTips),
10742
+ onClick: onInputClick
10743
+ }, null, 8, _hoisted_2$9), [
10744
+ [vShow, placeholderVisible.value]
10745
+ ]),
10746
+ withDirectives(createVNode(unref(SearchPrefixTag), {
10747
+ tag: cnScopeMap[localSearchInfo.value.searchScope] + ":" + localSearchInfo.value.searchScopeName,
10748
+ closeVisible: isFocus.value,
10749
+ onInputClick,
10750
+ onCloseTag
10751
+ }, null, 8, ["tag", "closeVisible"]), [
10752
+ [vShow, projectTagVisible.value]
10753
+ ]),
10754
+ withDirectives(createVNode(unref(SearchPrefixTag), {
10755
+ tag: unref($t)("gitCodeLayout.header.language") + ":" + language.value,
10756
+ closeVisible: isFocus.value,
10757
+ onInputClick,
10758
+ onCloseTag: onCloseLanguageTag
10759
+ }, null, 8, ["tag", "closeVisible"]), [
10760
+ [vShow, languageTagVisible.value]
10761
+ ])
10747
10762
  ]),
10748
- withDirectives(createElementVNode("span", _hoisted_3$6, "|", 512), [
10749
- [vShow, searchStr.value]
10763
+ suffix: withCtx(() => [
10764
+ isFocus.value ? (openBlock(), createElementBlock("div", {
10765
+ key: 0,
10766
+ class: "g-header-search-suffix",
10767
+ onClick: onSearch
10768
+ }, [
10769
+ withDirectives(createVNode(Icon, {
10770
+ name: "gt-line-close",
10771
+ class: "g-header-search-suffix-close",
10772
+ onClick: withModifiers(onClearSearch, ["stop"])
10773
+ }, null, 512), [
10774
+ [vShow, searchStr.value]
10775
+ ]),
10776
+ withDirectives(createElementVNode("span", _hoisted_3$6, "|", 512), [
10777
+ [vShow, searchStr.value]
10778
+ ]),
10779
+ createElementVNode("div", _hoisted_4$5, [
10780
+ createVNode(Icon, {
10781
+ name: "search",
10782
+ class: "g-header-search-icon",
10783
+ color: "#fff"
10784
+ })
10785
+ ])
10786
+ ])) : createCommentVNode("", true)
10750
10787
  ]),
10751
- createElementVNode("div", _hoisted_4$5, [
10752
- createVNode(Icon, {
10753
- name: "search",
10754
- class: "g-header-search-icon",
10755
- color: "#fff"
10756
- })
10757
- ])
10758
- ])) : createCommentVNode("", true)
10788
+ _: 1
10789
+ }, 8, ["modelValue"]))
10759
10790
  ]),
10760
10791
  _: 1
10761
- }, 8, ["modelValue"]))
10792
+ })
10762
10793
  ]),
10763
10794
  _: 1
10764
10795
  }, 8, ["visible"])
10765
10796
  ], 2)) : createCommentVNode("", true),
10766
10797
  _ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
10767
10798
  createVNode(unref(Input), {
10768
- placeholder: unref($t)("home.searchPlaceholder"),
10799
+ placeholder: unref($t)("gitCodeLayout.home.searchPlaceholder"),
10769
10800
  onKeydown: withKeys(searchResult, ["enter"]),
10770
10801
  modelValue: searchStr.value,
10771
10802
  "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => searchStr.value = $event)
@@ -10783,9 +10814,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
10783
10814
  };
10784
10815
  }
10785
10816
  });
10786
- const index_vue_vue_type_style_index_0_scoped_658a1614_lang = "";
10817
+ const index_vue_vue_type_style_index_0_scoped_ac54e615_lang = "";
10787
10818
  const index_vue_vue_type_style_index_1_lang$1 = "";
10788
- const Search = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-658a1614"]]);
10819
+ const Search = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-ac54e615"]]);
10789
10820
  function usePopup(className, rootElement) {
10790
10821
  const root2 = rootElement || document.getElementById("app");
10791
10822
  let cacheClass = "popup-container";
@@ -11777,8 +11808,8 @@ const parseHeaders = (rawHeaders) => {
11777
11808
  return parsed;
11778
11809
  };
11779
11810
  const $internals = Symbol("internals");
11780
- function normalizeHeader(header2) {
11781
- return header2 && String(header2).trim().toLowerCase();
11811
+ function normalizeHeader(header) {
11812
+ return header && String(header).trim().toLowerCase();
11782
11813
  }
11783
11814
  function normalizeValue(value) {
11784
11815
  if (value === false || value == null) {
@@ -11796,12 +11827,12 @@ function parseTokens(str) {
11796
11827
  return tokens;
11797
11828
  }
11798
11829
  const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
11799
- function matchHeaderValue(context, value, header2, filter2, isHeaderNameFilter) {
11830
+ function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
11800
11831
  if (utils$1.isFunction(filter2)) {
11801
- return filter2.call(this, value, header2);
11832
+ return filter2.call(this, value, header);
11802
11833
  }
11803
11834
  if (isHeaderNameFilter) {
11804
- value = header2;
11835
+ value = header;
11805
11836
  }
11806
11837
  if (!utils$1.isString(value))
11807
11838
  return;
@@ -11812,17 +11843,17 @@ function matchHeaderValue(context, value, header2, filter2, isHeaderNameFilter)
11812
11843
  return filter2.test(value);
11813
11844
  }
11814
11845
  }
11815
- function formatHeader(header2) {
11816
- return header2.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
11846
+ function formatHeader(header) {
11847
+ return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
11817
11848
  return char.toUpperCase() + str;
11818
11849
  });
11819
11850
  }
11820
- function buildAccessors(obj, header2) {
11821
- const accessorName = utils$1.toCamelCase(" " + header2);
11851
+ function buildAccessors(obj, header) {
11852
+ const accessorName = utils$1.toCamelCase(" " + header);
11822
11853
  ["get", "set", "has"].forEach((methodName) => {
11823
11854
  Object.defineProperty(obj, methodName + accessorName, {
11824
11855
  value: function(arg1, arg2, arg3) {
11825
- return this[methodName].call(this, header2, arg1, arg2, arg3);
11856
+ return this[methodName].call(this, header, arg1, arg2, arg3);
11826
11857
  },
11827
11858
  configurable: true
11828
11859
  });
@@ -11832,7 +11863,7 @@ class AxiosHeaders {
11832
11863
  constructor(headers) {
11833
11864
  headers && this.set(headers);
11834
11865
  }
11835
- set(header2, valueOrRewrite, rewrite) {
11866
+ set(header, valueOrRewrite, rewrite) {
11836
11867
  const self2 = this;
11837
11868
  function setHeader(_value, _header, _rewrite) {
11838
11869
  const lHeader = normalizeHeader(_header);
@@ -11845,23 +11876,23 @@ class AxiosHeaders {
11845
11876
  }
11846
11877
  }
11847
11878
  const setHeaders = (headers, _rewrite) => utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
11848
- if (utils$1.isPlainObject(header2) || header2 instanceof this.constructor) {
11849
- setHeaders(header2, valueOrRewrite);
11850
- } else if (utils$1.isString(header2) && (header2 = header2.trim()) && !isValidHeaderName(header2)) {
11851
- setHeaders(parseHeaders(header2), valueOrRewrite);
11852
- } else if (utils$1.isHeaders(header2)) {
11853
- for (const [key, value] of header2.entries()) {
11879
+ if (utils$1.isPlainObject(header) || header instanceof this.constructor) {
11880
+ setHeaders(header, valueOrRewrite);
11881
+ } else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
11882
+ setHeaders(parseHeaders(header), valueOrRewrite);
11883
+ } else if (utils$1.isHeaders(header)) {
11884
+ for (const [key, value] of header.entries()) {
11854
11885
  setHeader(value, key, rewrite);
11855
11886
  }
11856
11887
  } else {
11857
- header2 != null && setHeader(valueOrRewrite, header2, rewrite);
11888
+ header != null && setHeader(valueOrRewrite, header, rewrite);
11858
11889
  }
11859
11890
  return this;
11860
11891
  }
11861
- get(header2, parser) {
11862
- header2 = normalizeHeader(header2);
11863
- if (header2) {
11864
- const key = utils$1.findKey(this, header2);
11892
+ get(header, parser) {
11893
+ header = normalizeHeader(header);
11894
+ if (header) {
11895
+ const key = utils$1.findKey(this, header);
11865
11896
  if (key) {
11866
11897
  const value = this[key];
11867
11898
  if (!parser) {
@@ -11880,15 +11911,15 @@ class AxiosHeaders {
11880
11911
  }
11881
11912
  }
11882
11913
  }
11883
- has(header2, matcher) {
11884
- header2 = normalizeHeader(header2);
11885
- if (header2) {
11886
- const key = utils$1.findKey(this, header2);
11914
+ has(header, matcher) {
11915
+ header = normalizeHeader(header);
11916
+ if (header) {
11917
+ const key = utils$1.findKey(this, header);
11887
11918
  return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
11888
11919
  }
11889
11920
  return false;
11890
11921
  }
11891
- delete(header2, matcher) {
11922
+ delete(header, matcher) {
11892
11923
  const self2 = this;
11893
11924
  let deleted = false;
11894
11925
  function deleteHeader(_header) {
@@ -11901,10 +11932,10 @@ class AxiosHeaders {
11901
11932
  }
11902
11933
  }
11903
11934
  }
11904
- if (utils$1.isArray(header2)) {
11905
- header2.forEach(deleteHeader);
11935
+ if (utils$1.isArray(header)) {
11936
+ header.forEach(deleteHeader);
11906
11937
  } else {
11907
- deleteHeader(header2);
11938
+ deleteHeader(header);
11908
11939
  }
11909
11940
  return deleted;
11910
11941
  }
@@ -11924,16 +11955,16 @@ class AxiosHeaders {
11924
11955
  normalize(format) {
11925
11956
  const self2 = this;
11926
11957
  const headers = {};
11927
- utils$1.forEach(this, (value, header2) => {
11928
- const key = utils$1.findKey(headers, header2);
11958
+ utils$1.forEach(this, (value, header) => {
11959
+ const key = utils$1.findKey(headers, header);
11929
11960
  if (key) {
11930
11961
  self2[key] = normalizeValue(value);
11931
- delete self2[header2];
11962
+ delete self2[header];
11932
11963
  return;
11933
11964
  }
11934
- const normalized = format ? formatHeader(header2) : String(header2).trim();
11935
- if (normalized !== header2) {
11936
- delete self2[header2];
11965
+ const normalized = format ? formatHeader(header) : String(header).trim();
11966
+ if (normalized !== header) {
11967
+ delete self2[header];
11937
11968
  }
11938
11969
  self2[normalized] = normalizeValue(value);
11939
11970
  headers[normalized] = true;
@@ -11945,8 +11976,8 @@ class AxiosHeaders {
11945
11976
  }
11946
11977
  toJSON(asStrings) {
11947
11978
  const obj = /* @__PURE__ */ Object.create(null);
11948
- utils$1.forEach(this, (value, header2) => {
11949
- value != null && value !== false && (obj[header2] = asStrings && utils$1.isArray(value) ? value.join(", ") : value);
11979
+ utils$1.forEach(this, (value, header) => {
11980
+ value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(", ") : value);
11950
11981
  });
11951
11982
  return obj;
11952
11983
  }
@@ -11954,7 +11985,7 @@ class AxiosHeaders {
11954
11985
  return Object.entries(this.toJSON())[Symbol.iterator]();
11955
11986
  }
11956
11987
  toString() {
11957
- return Object.entries(this.toJSON()).map(([header2, value]) => header2 + ": " + value).join("\n");
11988
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
11958
11989
  }
11959
11990
  get [Symbol.toStringTag]() {
11960
11991
  return "AxiosHeaders";
@@ -11967,7 +11998,7 @@ class AxiosHeaders {
11967
11998
  targets.forEach((target) => computed2.set(target));
11968
11999
  return computed2;
11969
12000
  }
11970
- static accessor(header2) {
12001
+ static accessor(header) {
11971
12002
  const internals = this[$internals] = this[$internals] = {
11972
12003
  accessors: {}
11973
12004
  };
@@ -11980,7 +12011,7 @@ class AxiosHeaders {
11980
12011
  accessors[lHeader] = true;
11981
12012
  }
11982
12013
  }
11983
- utils$1.isArray(header2) ? header2.forEach(defineAccessor) : defineAccessor(header2);
12014
+ utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
11984
12015
  return this;
11985
12016
  }
11986
12017
  }
@@ -13193,13 +13224,13 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
13193
13224
  HttpStatusCode[value] = key;
13194
13225
  });
13195
13226
  const HttpStatusCode$1 = HttpStatusCode;
13196
- function createInstance(defaultConfig) {
13197
- const context = new Axios$1(defaultConfig);
13227
+ function createInstance(defaultConfig2) {
13228
+ const context = new Axios$1(defaultConfig2);
13198
13229
  const instance = bind(Axios$1.prototype.request, context);
13199
13230
  utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
13200
13231
  utils$1.extend(instance, context, null, { allOwnKeys: true });
13201
13232
  instance.create = function create2(instanceConfig) {
13202
- return createInstance(mergeConfig(defaultConfig, instanceConfig));
13233
+ return createInstance(mergeConfig(defaultConfig2, instanceConfig));
13203
13234
  };
13204
13235
  return instance;
13205
13236
  }
@@ -13320,6 +13351,7 @@ const getCommonHeadInfo = (isAiHub) => {
13320
13351
  "X-Device-ID": "unknown"
13321
13352
  };
13322
13353
  };
13354
+ const layoutConfig$1 = useLayoutConfig();
13323
13355
  const setPassportPrefix = (url, method) => {
13324
13356
  const prefix = "/uc";
13325
13357
  {
@@ -13341,7 +13373,7 @@ const setPassportPrefix = (url, method) => {
13341
13373
  }
13342
13374
  return url;
13343
13375
  };
13344
- const baseURL = "https://web-api.gitcode.com";
13376
+ const baseURL = layoutConfig$1.VITE_API_HOST;
13345
13377
  const proxyService = (params, customConfigs) => {
13346
13378
  const baseUrl = baseURL;
13347
13379
  const service = axios$1.create({
@@ -13392,7 +13424,6 @@ const proxyService = (params, customConfigs) => {
13392
13424
  );
13393
13425
  return service(params);
13394
13426
  };
13395
- const devuiIcon = "";
13396
13427
  const repoInfoData = {
13397
13428
  "star_count": 0,
13398
13429
  "forks_count": 0,
@@ -13906,6 +13937,20 @@ const _hoisted_4$4 = { class: "home-main" };
13906
13937
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
13907
13938
  __name: "home",
13908
13939
  setup(__props) {
13940
+ setLayoutConfig({
13941
+ VITE_ENV: "development",
13942
+ VITE_HOST: "https://test.gitcode.net",
13943
+ VITE_API_HOST: "https://test.gitcode.net",
13944
+ VITE_AD_LINK: "https://cdn-static.gitcode.com/adList/test-active.json",
13945
+ VITE_NEWS_HOST: "https://test-news.gitcode.net",
13946
+ VITE_AI_HOST: "https://test-ai.gitcode.net",
13947
+ VITE_INCUBATION_TOPIC: "6653f7a191a72b11f2478e93",
13948
+ VITE_GSTAR_TOPIC: "6653f80e91a72b11f2478e99",
13949
+ VITE_TRUSTED_TOPIC: "6715c49554670a12f26fb08d",
13950
+ VITE_SEARCH_REPO_CHANNEL_ID: "67b45f4dbfd0c85476fd8b84",
13951
+ VITE_SECRET_KEY: "SA!nUNPZ5o!OSV&B",
13952
+ VITE_SECRET_IV: "SA!nwwwZ5o!OSV&B"
13953
+ });
13909
13954
  const isLogin = ref(false);
13910
13955
  const userInfo = ref({});
13911
13956
  const repoInfo = ref({});
@@ -13927,9 +13972,6 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
13927
13972
  localStorage.removeItem("xauth_token");
13928
13973
  localStorage.removeItem("userInfo");
13929
13974
  };
13930
- const openHarmonyGuide = () => {
13931
- alert("鸿蒙开发者登录,在这里登录不了");
13932
- };
13933
13975
  const sceneSelected = ref(SceneValue.home);
13934
13976
  const directionRowList = ref(Object.values(SceneValue));
13935
13977
  const handleSceneChange = (val) => {
@@ -13988,7 +14030,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
13988
14030
  orgInfo: orgInfo.value,
13989
14031
  otherUserInfo: otherUserInfo.value,
13990
14032
  headerFunctions: [],
13991
- openHarmonyGuide,
14033
+ openHarmonyGuide: true,
13992
14034
  headerCustomProps: headerCustomProps.value,
13993
14035
  onFollowDevCommunity: followDevCommunity,
13994
14036
  onFollowUser: followUser
@@ -14129,8 +14171,9 @@ async function csdnloginCheck(route, loginCallback, request) {
14129
14171
  }
14130
14172
  return false;
14131
14173
  }
14132
- const cookieDomain = {}.VITE_COOKIE_DOMAIN;
14133
- const { VITE_API_HOST } = { "VITE_APP_TITLE": "新gitcode", "VITE_TEST_REPOID": "34", "VITE_SECRET_KEY": "SA!nUNPZ5o!OSV&B", "VITE_SECRET_IV": "SA!nwwwZ5o!OSV&B", "VITE_PASSPORT_PREFIX": "/uc", "VITE_ENV": "production", "VITE_HOST": "https://gitcode.com", "VITE_API_HOST": "https://web-api.gitcode.com", "VITE_AD_LINK": "https://cdn-static.gitcode.com/adList/active.json", "VITE_NEWS_HOST": "https://news.gitcode.com", "VITE_AI_HOST": "https://ai.gitcode.com", "VITE_INCUBATION_TOPIC": "6656c64efd46e722f6299761", "VITE_GSTAR_TOPIC": "6656c65ebacc215dac8b2d06", "VITE_TRUSTED_TOPIC": "6716255303226504db66d8d7", "VITE_SEARCH_REPO_CHANNEL_ID": "67bc3f5f97a0293d6bfebd01", "BASE_URL": "/", "MODE": "production", "DEV": false, "PROD": true, "SSR": false };
14174
+ const layoutConfig = useLayoutConfig();
14175
+ const cookieDomain = layoutConfig.VITE_COOKIE_DOMAIN;
14176
+ const VITE_API_HOST = layoutConfig.VITE_API_HOST;
14134
14177
  const { t: t$2 } = i18n.global;
14135
14178
  const GRAPH_CODE = 400007;
14136
14179
  const createLoginConfig = (request) => {
@@ -14366,7 +14409,7 @@ async function successResolve(params, API) {
14366
14409
  return;
14367
14410
  }
14368
14411
  Message.success({
14369
- message: t$2("common.tips.welcome"),
14412
+ message: t$2("gitCodeLayout.common.tips.welcome"),
14370
14413
  onClose: () => {
14371
14414
  emitEvent("notice");
14372
14415
  }
@@ -14401,7 +14444,7 @@ function cancelAuth(params) {
14401
14444
  var _a;
14402
14445
  const { noTip = false } = params;
14403
14446
  if (isAuthWindow()) {
14404
- !noTip && ((_a = window.opener) == null ? void 0 : _a.postMessage({ type: AuthResType.FAIL, message: t$2("oauth.revokedAuthorization") }, "*"));
14447
+ !noTip && ((_a = window.opener) == null ? void 0 : _a.postMessage({ type: AuthResType.FAIL, message: t$2("gitCodeLayout.oauth.revokedAuthorization") }, "*"));
14405
14448
  window == null ? void 0 : window.close();
14406
14449
  return;
14407
14450
  }
@@ -14412,7 +14455,7 @@ function cancelAuth(params) {
14412
14455
  function failResolve(params) {
14413
14456
  var _a;
14414
14457
  const { errorInfo } = params;
14415
- const msg = errorInfo || t$2("userSetting.tips.autFai");
14458
+ const msg = errorInfo || t$2("gitCodeLayout.userSetting.tips.autFai");
14416
14459
  if (isAuthWindow()) {
14417
14460
  (_a = window.opener) == null ? void 0 : _a.postMessage({ type: AuthResType.FAIL, message: msg }, "*");
14418
14461
  window == null ? void 0 : window.close();
@@ -14565,7 +14608,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
14565
14608
  }
14566
14609
  const BtnText = computed(() => {
14567
14610
  if (DisabledBtn.value) {
14568
- return `${$t("common.hasBeenSent")} ${CountDown.value}`;
14611
+ return `${$t("gitCodeLayout.common.hasBeenSent")} ${CountDown.value}`;
14569
14612
  } else {
14570
14613
  return props.text;
14571
14614
  }
@@ -14611,7 +14654,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
14611
14654
  createVNode(unref(Input), mergeProps({
14612
14655
  modelValue: unref(vModels),
14613
14656
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(vModels) ? vModels.value = $event : null),
14614
- placeholder: unref($t)("LoginModal.rule.pleaseFill", { label: _ctx.placeholder })
14657
+ placeholder: unref($t)("gitCodeLayout.LoginModal.rule.pleaseFill", { label: _ctx.placeholder })
14615
14658
  }, _ctx.prop, {
14616
14659
  onChange: handleChange,
14617
14660
  onFocus: handleInputFocus,
@@ -14750,7 +14793,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
14750
14793
  return {
14751
14794
  required: true,
14752
14795
  trigger: "change",
14753
- message: target.label ? $t("LoginModal.rule.pleaseFill", { label: target.label }) : $t("LoginModal.tips.fillNecessaryInfo")
14796
+ message: target.label ? $t("gitCodeLayout.LoginModal.rule.pleaseFill", { label: target.label }) : $t("gitCodeLayout.LoginModal.tips.fillNecessaryInfo")
14754
14797
  };
14755
14798
  };
14756
14799
  const initData = () => {
@@ -14948,7 +14991,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
14948
14991
  key: 0,
14949
14992
  modelValue: Data[formItem.key],
14950
14993
  "onUpdate:modelValue": ($event) => Data[formItem.key] = $event,
14951
- placeholder: unref($t)("LoginModal.rule.pleaseFill", { label: formItem.label }),
14994
+ placeholder: unref($t)("gitCodeLayout.LoginModal.rule.pleaseFill", { label: formItem.label }),
14952
14995
  onChange: () => handleChange(formItem.key),
14953
14996
  ref_for: true
14954
14997
  }, formItem.props, {
@@ -14964,7 +15007,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
14964
15007
  ref_for: true
14965
15008
  }, formItem.props, {
14966
15009
  hasMobile: !!Data[(_a = formItem.props) == null ? void 0 : _a.aliasKey],
14967
- text: unref($t)("userSetting.account.getVerificationCode"),
15010
+ text: unref($t)("gitCodeLayout.userSetting.account.getVerificationCode"),
14968
15011
  error: _ctx.errors.msgError
14969
15012
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onClick", "placeholder", "hasMobile", "text", "error"])) : formItem.type === "inputSelect" ? (openBlock(), createBlock(_sfc_main$b, mergeProps({
14970
15013
  key: 2,
@@ -14973,7 +15016,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
14973
15016
  "onUpdate:modelValue": ($event) => Data[formItem.key] = $event,
14974
15017
  onSelectChange: _cache[0] || (_cache[0] = (evt) => handleSelectChange("country", evt)),
14975
15018
  onChange: ($event) => handleChange(formItem.key),
14976
- placeholder: unref($t)("LoginModal.rule.pleaseFill", { label: formItem.label }),
15019
+ placeholder: unref($t)("gitCodeLayout.LoginModal.rule.pleaseFill", { label: formItem.label }),
14977
15020
  ref_for: true
14978
15021
  }, formItem.props), null, 16, ["country", "modelValue", "onUpdate:modelValue", "onChange", "placeholder"])) : (openBlock(), createBlock(resolveDynamicComponent(formItem.render), mergeProps({
14979
15022
  key: formItem.key,
@@ -15015,7 +15058,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
15015
15058
  };
15016
15059
  return (_ctx, _cache) => {
15017
15060
  return openBlock(), createElementBlock(Fragment, null, [
15018
- createElementVNode("div", _hoisted_1$8, " —— " + toDisplayString(unref($t)("LoginModal.subtitle.otherLogin")) + " —— ", 1),
15061
+ createElementVNode("div", _hoisted_1$8, " —— " + toDisplayString(unref($t)("gitCodeLayout.LoginModal.subtitle.otherLogin")) + " —— ", 1),
15019
15062
  createElementVNode("div", _hoisted_2$6, [
15020
15063
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.logos, (icon) => {
15021
15064
  return openBlock(), createElementBlock("div", {
@@ -15044,8 +15087,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
15044
15087
  };
15045
15088
  }
15046
15089
  });
15047
- const auth_vue_vue_type_style_index_0_scoped_f74a9e76_lang = "";
15048
- const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-f74a9e76"]]);
15090
+ const auth_vue_vue_type_style_index_0_scoped_f0a207bc_lang = "";
15091
+ const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-f0a207bc"]]);
15049
15092
  const _hoisted_1$7 = { class: "text-[var(--theme-placeholder)]" };
15050
15093
  const _hoisted_2$5 = { class: "text-[var(--theme-placeholder)]" };
15051
15094
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
@@ -15070,16 +15113,16 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
15070
15113
  size: "sm"
15071
15114
  }, {
15072
15115
  default: withCtx(() => [
15073
- createElementVNode("span", _hoisted_1$7, toDisplayString(unref($t)("LoginModal.tips.agree")), 1),
15116
+ createElementVNode("span", _hoisted_1$7, toDisplayString(unref($t)("gitCodeLayout.LoginModal.tips.agree")), 1),
15074
15117
  createElementVNode("span", {
15075
15118
  class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
15076
15119
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
15077
- }, toDisplayString(unref($t)("LoginModal.link.agreement")), 1),
15078
- createElementVNode("span", _hoisted_2$5, toDisplayString(unref($t)("LoginModal.tips.and")), 1),
15120
+ }, toDisplayString(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 1),
15121
+ createElementVNode("span", _hoisted_2$5, toDisplayString(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
15079
15122
  createElementVNode("span", {
15080
15123
  class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
15081
15124
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
15082
- }, toDisplayString(unref($t)("LoginModal.link.privacyPolicy")), 1)
15125
+ }, toDisplayString(unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 1)
15083
15126
  ]),
15084
15127
  _: 1
15085
15128
  }, 8, ["modelValue"]);
@@ -15112,15 +15155,15 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
15112
15155
  class: "mt-[6px] mb-[12px] agree-module flex items-center"
15113
15156
  }, {
15114
15157
  default: withCtx(() => [
15115
- createElementVNode("span", _hoisted_1$6, toDisplayString(unref($t)("LoginModal.action.readAgree")), 1),
15158
+ createElementVNode("span", _hoisted_1$6, toDisplayString(unref($t)("gitCodeLayout.LoginModal.action.readAgree")), 1),
15116
15159
  createElementVNode("a", {
15117
15160
  class: "text-[var(--devui-link)] cursor-pointer mx-[1px] text-[12px]",
15118
15161
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
15119
- }, toDisplayString(_ctx.agreementText || unref($t)("LoginModal.link.agreement")), 1),
15162
+ }, toDisplayString(_ctx.agreementText || unref($t)("gitCodeLayout.LoginModal.link.agreement")), 1),
15120
15163
  createElementVNode("a", {
15121
15164
  class: "text-[var(--devui-link)] cursor-pointer mx-[1px] text-[12px]",
15122
15165
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
15123
- }, toDisplayString(_ctx.privacyText || unref($t)("LoginModal.link.privacyPolicy")), 1),
15166
+ }, toDisplayString(_ctx.privacyText || unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 1),
15124
15167
  renderSlot(_ctx.$slots, "default")
15125
15168
  ]),
15126
15169
  _: 3
@@ -17564,7 +17607,7 @@ const mobilePhoneValidator = (rule, value, cb, country) => {
17564
17607
  const getFormRules = () => ({
17565
17608
  mobile: [
17566
17609
  {
17567
- message: t$1("LoginModal.tips.fillNecessaryInfo"),
17610
+ message: t$1("gitCodeLayout.LoginModal.tips.fillNecessaryInfo"),
17568
17611
  trigger: "change",
17569
17612
  validator: (rule, value, cb) => {
17570
17613
  getRegexRule(rule, value, cb, mobileRegExp);
@@ -17573,7 +17616,7 @@ const getFormRules = () => ({
17573
17616
  ],
17574
17617
  code: [
17575
17618
  {
17576
- message: t$1("LoginModal.tips.SMSVerificationCode", { count: 4 }),
17619
+ message: t$1("gitCodeLayout.LoginModal.tips.SMSVerificationCode", { count: 4 }),
17577
17620
  trigger: "change",
17578
17621
  validator: (rule, value, cb) => {
17579
17622
  getRegexRule(rule, value, cb, verifyCodeRegExp4);
@@ -17582,7 +17625,7 @@ const getFormRules = () => ({
17582
17625
  ],
17583
17626
  codes: [
17584
17627
  {
17585
- message: t$1("LoginModal.tips.SMSVerificationCode", { count: 6 }),
17628
+ message: t$1("gitCodeLayout.LoginModal.tips.SMSVerificationCode", { count: 6 }),
17586
17629
  trigger: "change",
17587
17630
  validator: (rule, value, cb) => {
17588
17631
  getRegexRule(rule, value, cb, verifyCodeRegExp6);
@@ -17610,7 +17653,7 @@ const getFormRules = () => ({
17610
17653
  ],
17611
17654
  name: [
17612
17655
  {
17613
- message: t$1("LoginModal.rule.username"),
17656
+ message: t$1("gitCodeLayout.LoginModal.rule.username"),
17614
17657
  trigger: "change",
17615
17658
  validator: (rule, value, cb) => {
17616
17659
  getRegexRule(rule, value, cb, usernameRegExp);
@@ -17619,7 +17662,7 @@ const getFormRules = () => ({
17619
17662
  ],
17620
17663
  password: [
17621
17664
  {
17622
- message: t$1("LoginModal.tips.passwordLength"),
17665
+ message: t$1("gitCodeLayout.LoginModal.tips.passwordLength"),
17623
17666
  trigger: "change",
17624
17667
  validator: (_rule, value, cb) => {
17625
17668
  if (value.length < 8 || value.length > 30) {
@@ -17630,7 +17673,7 @@ const getFormRules = () => ({
17630
17673
  }
17631
17674
  },
17632
17675
  {
17633
- message: t$1("LoginModal.rule.passwordLetter"),
17676
+ message: t$1("gitCodeLayout.LoginModal.rule.passwordLetter"),
17634
17677
  trigger: "change",
17635
17678
  validator: (rule, value, cb) => {
17636
17679
  getRegexRule(rule, value, cb, passwordRegExp);
@@ -17652,12 +17695,12 @@ const getFormRules = () => ({
17652
17695
  });
17653
17696
  const isMobileEmail = (val) => {
17654
17697
  if (mobileRegExp.test(val)) {
17655
- return t$1("common.phone");
17698
+ return t$1("gitCodeLayout.common.phone");
17656
17699
  }
17657
17700
  if (emailRegExp.test(val)) {
17658
- return t$1("common.email");
17701
+ return t$1("gitCodeLayout.common.email");
17659
17702
  }
17660
- return t$1("common.phone") + "/" + t$1("common.email");
17703
+ return t$1("gitCodeLayout.common.phone") + "/" + t$1("gitCodeLayout.common.email");
17661
17704
  };
17662
17705
  const _hoisted_1$4 = { class: "modal-body" };
17663
17706
  const _hoisted_2$3 = { class: "flex items-center justify-end px-[24px] pb-[24px]" };
@@ -17688,7 +17731,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
17688
17731
  "close-on-click-overlay": false,
17689
17732
  "show-overlay": true,
17690
17733
  class: "second-sure-proto",
17691
- title: unref($t)("LoginModal.subtitle.useAgrAndPriPolTip")
17734
+ title: unref($t)("gitCodeLayout.LoginModal.subtitle.useAgrAndPriPolTip")
17692
17735
  }, {
17693
17736
  footer: withCtx(() => [
17694
17737
  createElementVNode("div", _hoisted_2$3, [
@@ -17697,7 +17740,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
17697
17740
  onClick: close
17698
17741
  }, {
17699
17742
  default: withCtx(() => [
17700
- createTextVNode(toDisplayString(unref($t)("LoginModal.tips.disAndQui")), 1)
17743
+ createTextVNode(toDisplayString(unref($t)("gitCodeLayout.LoginModal.tips.disAndQui")), 1)
17701
17744
  ]),
17702
17745
  _: 1
17703
17746
  }),
@@ -17707,7 +17750,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
17707
17750
  onClick: handleConfirm
17708
17751
  }, {
17709
17752
  default: withCtx(() => [
17710
- createTextVNode(toDisplayString(unref($t)("LoginModal.tips.agrAndSigIn")), 1)
17753
+ createTextVNode(toDisplayString(unref($t)("gitCodeLayout.LoginModal.tips.agrAndSigIn")), 1)
17711
17754
  ]),
17712
17755
  _: 1
17713
17756
  })
@@ -17716,19 +17759,19 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
17716
17759
  default: withCtx(() => [
17717
17760
  createElementVNode("div", _hoisted_1$4, [
17718
17761
  createElementVNode("div", null, [
17719
- createTextVNode(toDisplayString(unref($t)("LoginModal.tips.youNeeToAgr")) + " ", 1),
17762
+ createTextVNode(toDisplayString(unref($t)("gitCodeLayout.LoginModal.tips.youNeeToAgr")) + " ", 1),
17720
17763
  createElementVNode("span", {
17721
17764
  class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
17722
17765
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
17723
- }, toDisplayString(unref($t)("LoginModal.link.agreement")), 1),
17724
- createTextVNode(" " + toDisplayString(unref($t)("LoginModal.tips.and")) + " ", 1),
17766
+ }, toDisplayString(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 1),
17767
+ createTextVNode(" " + toDisplayString(unref($t)("gitCodeLayout.LoginModal.tips.and")) + " ", 1),
17725
17768
  createElementVNode("span", {
17726
17769
  class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
17727
17770
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
17728
- }, toDisplayString(unref($t)("LoginModal.link.privacyPolicy")), 1),
17729
- createTextVNode(" " + toDisplayString(unref($t)("LoginModal.tips.toUseGit")), 1)
17771
+ }, toDisplayString(unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 1),
17772
+ createTextVNode(" " + toDisplayString(unref($t)("gitCodeLayout.LoginModal.tips.toUseGit")), 1)
17730
17773
  ]),
17731
- createElementVNode("div", null, toDisplayString(unref($t)("LoginModal.tips.ifYouDoNotAgrWe")), 1)
17774
+ createElementVNode("div", null, toDisplayString(unref($t)("gitCodeLayout.LoginModal.tips.ifYouDoNotAgrWe")), 1)
17732
17775
  ])
17733
17776
  ]),
17734
17777
  _: 1
@@ -17788,7 +17831,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
17788
17831
  const coverCode = ref("");
17789
17832
  const loading = ref(false);
17790
17833
  const modeTitle = computed(() => {
17791
- return mode.value === "code" ? t2("LoginModal.mfatip3") : t2("LoginModal.mfatip4");
17834
+ return mode.value === "code" ? t2("gitCodeLayout.LoginModal.mfatip3") : t2("gitCodeLayout.LoginModal.mfatip4");
17792
17835
  });
17793
17836
  const inputList = ref([
17794
17837
  {
@@ -17896,10 +17939,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
17896
17939
  code
17897
17940
  };
17898
17941
  const loginFunc = mode.value === "code" ? props.API.postMfaLogin : props.API.postMfaRecover;
17899
- const header2 = {
17942
+ const header = {
17900
17943
  "content-type": "application/x-www-form-urlencoded"
17901
17944
  };
17902
- const { error, data } = await loginFunc(params, header2);
17945
+ const { error, data } = await loginFunc(params, header);
17903
17946
  loading.value = false;
17904
17947
  if (error) {
17905
17948
  errorMsg.value = error.error_message;
@@ -17929,7 +17972,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
17929
17972
  alt: ""
17930
17973
  }, null, 8, _hoisted_2$2),
17931
17974
  createElementVNode("p", _hoisted_3$2, toDisplayString(modeTitle.value), 1),
17932
- createElementVNode("p", _hoisted_4$2, toDisplayString(unref(t2)("LoginModal.mfatip5")), 1),
17975
+ createElementVNode("p", _hoisted_4$2, toDisplayString(unref(t2)("gitCodeLayout.LoginModal.mfatip5")), 1),
17933
17976
  mode.value === "code" ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
17934
17977
  (openBlock(true), createElementBlock(Fragment, null, renderList(inputList.value, (item, index2) => {
17935
17978
  return openBlock(), createElementBlock("div", {
@@ -17956,8 +17999,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
17956
17999
  }, null, 8, ["modelValue"])
17957
18000
  ])) : createCommentVNode("", true),
17958
18001
  errorMsg.value ? (openBlock(), createElementBlock("p", _hoisted_7$1, toDisplayString(errorMsg.value), 1)) : createCommentVNode("", true),
17959
- mode.value === "code" ? (openBlock(), createElementBlock("p", _hoisted_8$1, toDisplayString(unref(t2)("LoginModal.mfatip1")), 1)) : createCommentVNode("", true),
17960
- mode.value === "recover" ? (openBlock(), createElementBlock("p", _hoisted_9$1, toDisplayString(unref(t2)("LoginModal.mfatip2")), 1)) : createCommentVNode("", true),
18002
+ mode.value === "code" ? (openBlock(), createElementBlock("p", _hoisted_8$1, toDisplayString(unref(t2)("gitCodeLayout.LoginModal.mfatip1")), 1)) : createCommentVNode("", true),
18003
+ mode.value === "recover" ? (openBlock(), createElementBlock("p", _hoisted_9$1, toDisplayString(unref(t2)("gitCodeLayout.LoginModal.mfatip2")), 1)) : createCommentVNode("", true),
17961
18004
  createElementVNode("div", _hoisted_10$1, [
17962
18005
  createVNode(unref(Button), {
17963
18006
  class: "w-[100%]",
@@ -17968,7 +18011,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
17968
18011
  disabled: confirmDisabled.value || loading.value
17969
18012
  }, {
17970
18013
  default: withCtx(() => [
17971
- createTextVNode(toDisplayString(unref(t2)("repoSetting.submit.verify")), 1)
18014
+ createTextVNode(toDisplayString(unref(t2)("gitCodeLayout.repoSetting.submit.verify")), 1)
17972
18015
  ]),
17973
18016
  _: 1
17974
18017
  }, 8, ["loading", "disabled"])
@@ -17984,28 +18027,28 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
17984
18027
  name: "gt-line-left",
17985
18028
  class: "mr-[8px]"
17986
18029
  }),
17987
- createTextVNode(toDisplayString(unref(t2)("pipeline.goBack")), 1)
18030
+ createTextVNode(toDisplayString(unref(t2)("gitCodeLayout.pipeline.goBack")), 1)
17988
18031
  ])) : createCommentVNode("", true)
17989
18032
  ]),
17990
18033
  mode.value === "recover" ? (openBlock(), createElementBlock("p", {
17991
18034
  key: 0,
17992
18035
  class: "cursor-pointer text-[var(--devui-link)] hover:underline",
17993
18036
  onClick: _cache[2] || (_cache[2] = ($event) => modChange("code"))
17994
- }, toDisplayString(unref(t2)("LoginModal.mfatip7")), 1)) : createCommentVNode("", true),
18037
+ }, toDisplayString(unref(t2)("gitCodeLayout.LoginModal.mfatip7")), 1)) : createCommentVNode("", true),
17995
18038
  mode.value === "code" ? (openBlock(), createElementBlock("p", {
17996
18039
  key: 1,
17997
18040
  class: "cursor-pointer text-[var(--devui-link)] hover:underline",
17998
18041
  onClick: _cache[3] || (_cache[3] = ($event) => modChange("recover"))
17999
- }, toDisplayString(unref(t2)("LoginModal.mfatip6")), 1)) : createCommentVNode("", true)
18042
+ }, toDisplayString(unref(t2)("gitCodeLayout.LoginModal.mfatip6")), 1)) : createCommentVNode("", true)
18000
18043
  ])
18001
18044
  ]);
18002
18045
  };
18003
18046
  }
18004
18047
  });
18005
18048
  const MFA_vue_vue_type_style_index_0_lang = "";
18006
- const MFA_vue_vue_type_style_index_1_scoped_680ead8e_lang = "";
18007
- const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-680ead8e"]]);
18008
- const SlidCaptcha = defineAsyncComponent(() => import("./index-a06332e6.js"));
18049
+ const MFA_vue_vue_type_style_index_1_scoped_3e0f827f_lang = "";
18050
+ const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-3e0f827f"]]);
18051
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-76454ee2.js"));
18009
18052
  const useSlidCaptcha = () => {
18010
18053
  const { mount, unMount } = usePopup("slid-captcha-popup");
18011
18054
  const open = (config) => {
@@ -18204,10 +18247,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18204
18247
  triggerType: { default: "" },
18205
18248
  route: {},
18206
18249
  request: { default: () => Promise.resolve({ data: null }) },
18207
- openHarmonyGuide: {},
18250
+ openHarmonyGuide: { type: Boolean },
18208
18251
  loginSuccess: {}
18209
18252
  },
18210
- emits: ["update:modelValue", "login", "close", "link"],
18253
+ emits: ["update:modelValue", "login", "close", "link", "openHarmonyGuide"],
18211
18254
  setup(__props, { emit: __emit }) {
18212
18255
  const props = __props;
18213
18256
  const request = props.request;
@@ -18249,27 +18292,27 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18249
18292
  {
18250
18293
  src: IconC,
18251
18294
  alt: "csdn",
18252
- describe: "csdn" + $t("LoginModal.action.AccountLogin")
18295
+ describe: "csdn" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
18253
18296
  },
18254
18297
  {
18255
18298
  src: IconHb,
18256
18299
  alt: "hbuilder",
18257
- describe: "Hbuilder" + $t("LoginModal.action.AccountLogin")
18300
+ describe: "Hbuilder" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
18258
18301
  },
18259
18302
  {
18260
18303
  src: currentTheme.value === ThemeType.WHITE ? IconG : IconGW,
18261
18304
  alt: "github",
18262
- describe: "github" + $t("LoginModal.action.AccountLogin")
18305
+ describe: "github" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
18263
18306
  },
18264
18307
  {
18265
18308
  src: IconH,
18266
18309
  alt: "gitee",
18267
- describe: "gitee" + $t("LoginModal.action.AccountLogin")
18310
+ describe: "gitee" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
18268
18311
  },
18269
18312
  {
18270
18313
  src: IconW,
18271
18314
  alt: "wechat_open",
18272
- describe: $t("LoginModal.action.wechatScanCodeLogin")
18315
+ describe: $t("gitCodeLayout.LoginModal.action.wechatScanCodeLogin")
18273
18316
  }
18274
18317
  ]);
18275
18318
  const emits = __emit;
@@ -18278,10 +18321,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18278
18321
  {
18279
18322
  type: "inputSelect",
18280
18323
  key: "mobile",
18281
- label: $t("userSetting.account.phone"),
18324
+ label: $t("gitCodeLayout.userSetting.account.phone"),
18282
18325
  required: true,
18283
18326
  rules: [{
18284
- message: $t("LoginModal.tips.fillNecessaryInfo"),
18327
+ message: $t("gitCodeLayout.LoginModal.tips.fillNecessaryInfo"),
18285
18328
  trigger: "change",
18286
18329
  validator: (rule, value, cb) => {
18287
18330
  var _a;
@@ -18293,7 +18336,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18293
18336
  {
18294
18337
  type: "inputButton",
18295
18338
  key: "code",
18296
- label: $t("LoginModal.action.phone"),
18339
+ label: $t("gitCodeLayout.LoginModal.action.phone"),
18297
18340
  required: true,
18298
18341
  rules: FormRules.codes,
18299
18342
  props: {
@@ -18308,13 +18351,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18308
18351
  {
18309
18352
  type: "input",
18310
18353
  key: "username",
18311
- label: $t("LoginModal.subtitle.name") + "/" + $t("common.email"),
18354
+ label: $t("gitCodeLayout.LoginModal.subtitle.name") + "/" + $t("gitCodeLayout.common.email"),
18312
18355
  required: true
18313
18356
  },
18314
18357
  {
18315
18358
  type: "input",
18316
18359
  key: "password",
18317
- label: $t("LoginModal.subtitle.cipher"),
18360
+ label: $t("gitCodeLayout.LoginModal.subtitle.cipher"),
18318
18361
  required: true,
18319
18362
  props: {
18320
18363
  "show-password": true,
@@ -18327,10 +18370,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18327
18370
  {
18328
18371
  type: "input",
18329
18372
  key: "password",
18330
- label: $t("LoginModal.subtitle.cipher"),
18373
+ label: $t("gitCodeLayout.LoginModal.subtitle.cipher"),
18331
18374
  required: true,
18332
18375
  rules: FormRules.password,
18333
- help: $t("LoginModal.rule.passwordLength"),
18376
+ help: $t("gitCodeLayout.LoginModal.rule.passwordLength"),
18334
18377
  props: {
18335
18378
  "show-password": true,
18336
18379
  autocomplete: true,
@@ -18340,12 +18383,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18340
18383
  {
18341
18384
  type: "input",
18342
18385
  key: "pwd",
18343
- label: $t("LoginModal.action.confirmPassword"),
18386
+ label: $t("gitCodeLayout.LoginModal.action.confirmPassword"),
18344
18387
  required: true,
18345
18388
  rules: [
18346
18389
  {
18347
18390
  trigger: "change",
18348
- message: $t("LoginModal.tips.passwordIsInconsistent"),
18391
+ message: $t("gitCodeLayout.LoginModal.tips.passwordIsInconsistent"),
18349
18392
  validator: (_rule, value, cb) => {
18350
18393
  FormRef.value.ValidateFormKeys(["password"]).then((fromData) => {
18351
18394
  var _a, _b;
@@ -18356,15 +18399,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18356
18399
  return cb();
18357
18400
  } else {
18358
18401
  setFormErrorKey({
18359
- pwd: $t("LoginModal.tips.passwordIsInconsistent")
18402
+ pwd: $t("gitCodeLayout.LoginModal.tips.passwordIsInconsistent")
18360
18403
  });
18361
- return cb(new Error($t("LoginModal.tips.passwordIsInconsistent")));
18404
+ return cb(new Error($t("gitCodeLayout.LoginModal.tips.passwordIsInconsistent")));
18362
18405
  }
18363
18406
  } else {
18364
18407
  setFormErrorKey({
18365
- password: $t("LoginModal.rule.passwordLetter")
18408
+ password: $t("gitCodeLayout.LoginModal.rule.passwordLetter")
18366
18409
  });
18367
- return cb(new Error($t("LoginModal.rule.passwordLetter")));
18410
+ return cb(new Error($t("gitCodeLayout.LoginModal.rule.passwordLetter")));
18368
18411
  }
18369
18412
  });
18370
18413
  }
@@ -18388,7 +18431,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18388
18431
  return;
18389
18432
  }
18390
18433
  if (!usernameRegExp2.test(val)) {
18391
- cb(new Error($t("LoginModal.rule.username")));
18434
+ cb(new Error($t("gitCodeLayout.LoginModal.rule.username")));
18392
18435
  return;
18393
18436
  }
18394
18437
  if (usernameCheckLoading.value)
@@ -18398,8 +18441,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18398
18441
  const res = await API.checkUsername(val);
18399
18442
  if (!res.error) {
18400
18443
  if ((_b = (_a = res.data) == null ? void 0 : _a.data) == null ? void 0 : _b.result) {
18401
- setFormErrorKey({ name: $t("LoginModal.tips.nameAlreadyExists") });
18402
- cb(new Error($t("LoginModal.tips.nameAlreadyExists")));
18444
+ setFormErrorKey({ name: $t("gitCodeLayout.LoginModal.tips.nameAlreadyExists") });
18445
+ cb(new Error($t("gitCodeLayout.LoginModal.tips.nameAlreadyExists")));
18403
18446
  return;
18404
18447
  }
18405
18448
  } else {
@@ -18424,10 +18467,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18424
18467
  {
18425
18468
  type: "input",
18426
18469
  key: "username",
18427
- label: $t("LoginModal.subtitle.name"),
18470
+ label: $t("gitCodeLayout.LoginModal.subtitle.name"),
18428
18471
  required: true,
18429
18472
  rules: [usernameValidator],
18430
- help: $t("LoginModal.rule.username"),
18473
+ help: $t("gitCodeLayout.LoginModal.rule.username"),
18431
18474
  props: {
18432
18475
  maxLength: 20
18433
18476
  }
@@ -18440,10 +18483,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18440
18483
  {
18441
18484
  type: "inputSelect",
18442
18485
  key: "mobile",
18443
- label: $t("LoginModal.subtitle.phone"),
18486
+ label: $t("gitCodeLayout.LoginModal.subtitle.phone"),
18444
18487
  required: true,
18445
18488
  rules: [{
18446
- message: $t("LoginModal.tips.fillNecessaryInfo"),
18489
+ message: $t("gitCodeLayout.LoginModal.tips.fillNecessaryInfo"),
18447
18490
  trigger: "change",
18448
18491
  validator: (rule, value, cb) => {
18449
18492
  var _a;
@@ -18455,7 +18498,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18455
18498
  {
18456
18499
  type: "inputButton",
18457
18500
  key: "verificationcode",
18458
- label: $t("LoginModal.action.phone"),
18501
+ label: $t("gitCodeLayout.LoginModal.action.phone"),
18459
18502
  required: true,
18460
18503
  rules: FormRules.codes,
18461
18504
  props: {
@@ -18471,14 +18514,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18471
18514
  {
18472
18515
  type: "input",
18473
18516
  key: "mobile_email",
18474
- label: `${$t("common.phone")}/${$t("common.email")}`,
18517
+ label: `${$t("gitCodeLayout.common.phone")}/${$t("gitCodeLayout.common.email")}`,
18475
18518
  required: true,
18476
18519
  rules: FormRules.mobile_email
18477
18520
  },
18478
18521
  {
18479
18522
  type: "inputButton",
18480
18523
  key: "code",
18481
- label: $t("LoginModal.tips.verificationCode"),
18524
+ label: $t("gitCodeLayout.LoginModal.tips.verificationCode"),
18482
18525
  required: true,
18483
18526
  rules: FormRules.codes,
18484
18527
  props: {
@@ -18517,7 +18560,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18517
18560
  }),
18518
18561
  showLabel: true,
18519
18562
  layout: "horizontal",
18520
- title: `🎉${$t("LoginModal.title.register")}`,
18563
+ title: `🎉${$t("gitCodeLayout.LoginModal.title.register")}`,
18521
18564
  showBack: true
18522
18565
  };
18523
18566
  }
@@ -18526,7 +18569,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18526
18569
  dict: ForgetPasswordForm,
18527
18570
  showLabel: true,
18528
18571
  layout: "horizontal",
18529
- title: $t("LoginModal.action.resetPassword"),
18572
+ title: $t("gitCodeLayout.LoginModal.action.resetPassword"),
18530
18573
  showBack: true
18531
18574
  };
18532
18575
  }
@@ -18540,7 +18583,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18540
18583
  }),
18541
18584
  showLabel: false,
18542
18585
  layout: "vertical",
18543
- title: `🎉${$t("LoginModal.title.login")}`,
18586
+ title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
18544
18587
  showBack: false
18545
18588
  };
18546
18589
  } else if (tabPanel.value === "password") {
@@ -18548,7 +18591,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18548
18591
  dict: PasswordForm,
18549
18592
  showLabel: false,
18550
18593
  layout: "vertical",
18551
- title: `🎉${$t("LoginModal.title.login")}`,
18594
+ title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
18552
18595
  showBack: false
18553
18596
  };
18554
18597
  } else {
@@ -18556,7 +18599,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18556
18599
  dict: MiniProgramForm,
18557
18600
  showLabel: false,
18558
18601
  layout: "vertical",
18559
- title: `🎉${$t("LoginModal.title.login")}`,
18602
+ title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
18560
18603
  showBack: false
18561
18604
  };
18562
18605
  }
@@ -18583,7 +18626,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18583
18626
  };
18584
18627
  const result2 = await API.resetUserPassword(data);
18585
18628
  if (!result2.error) {
18586
- dealLog($t("LoginModal.tips.updatePassword"), "success", "login");
18629
+ dealLog($t("gitCodeLayout.LoginModal.tips.updatePassword"), "success", "login");
18587
18630
  }
18588
18631
  setTimeout(() => {
18589
18632
  loading.value = false;
@@ -18602,7 +18645,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18602
18645
  const formData = await FormRef.value.ValidateForm();
18603
18646
  let agreementFlag = false;
18604
18647
  if (formType.value === "register" && !hwStatus.value) {
18605
- extraErrors.agreement = $t("LoginModal.tips.pleaseReadHuaweiAgreement");
18648
+ extraErrors.agreement = $t("gitCodeLayout.LoginModal.tips.pleaseReadHuaweiAgreement");
18606
18649
  agreementFlag = true;
18607
18650
  }
18608
18651
  if (!status.value && !agreementFlag) {
@@ -18781,12 +18824,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18781
18824
  if (Number((res == null ? void 0 : res.data.data.type) === 1)) {
18782
18825
  formType.value = "register";
18783
18826
  isRegister.value = true;
18784
- dealLog($t("LoginModal.tips.gotoTipsAtNophone"), "success", "register");
18827
+ dealLog($t("gitCodeLayout.LoginModal.tips.gotoTipsAtNophone"), "success", "register");
18785
18828
  } else {
18786
18829
  isRegister.value = false;
18787
18830
  const message = isMobileEmail(conf.value);
18788
18831
  dealLog(
18789
- `${$t("LoginModal.tips.codeSentToYou")}${message}, ${$t("LoginModal.tips.pleaseCheck")}`,
18832
+ `${$t("gitCodeLayout.LoginModal.tips.codeSentToYou")}${message}, ${$t("gitCodeLayout.LoginModal.tips.pleaseCheck")}`,
18790
18833
  "success"
18791
18834
  );
18792
18835
  }
@@ -18931,7 +18974,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18931
18974
  );
18932
18975
  function checkAgree() {
18933
18976
  if (!status.value) {
18934
- extraErrors.agreement = $t("common.tips.readPrivacyPolicy");
18977
+ extraErrors.agreement = $t("gitCodeLayout.common.tips.readPrivacyPolicy");
18935
18978
  AgreementWarn.value = true;
18936
18979
  showProtoCheck.value = true;
18937
18980
  setTimeout(() => {
@@ -19009,7 +19052,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19009
19052
  formType.value = "register";
19010
19053
  };
19011
19054
  const handleRegisterHarmony = () => {
19012
- props.openHarmonyGuide && props.openHarmonyGuide();
19055
+ emits("openHarmonyGuide");
19013
19056
  };
19014
19057
  const handleBack = () => {
19015
19058
  mfaCheck.value = false;
@@ -19127,23 +19170,23 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19127
19170
  tabPanel.value === "miniProgram" ? "login-modal-tab-active" : "login-modal-tab-inactive"
19128
19171
  ]),
19129
19172
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleTabPanelChange("miniProgram"), ["stop"]))
19130
- }, toDisplayString(unref($t)("LoginModal.miniProgram.title")), 3),
19173
+ }, toDisplayString(unref($t)("gitCodeLayout.LoginModal.miniProgram.title")), 3),
19131
19174
  createElementVNode("div", {
19132
19175
  class: normalizeClass([
19133
19176
  "login-modal-tab mr-[18px] ml-[18px]",
19134
19177
  tabPanel.value === "verifyCode" ? "login-modal-tab-active" : "login-modal-tab-inactive"
19135
19178
  ]),
19136
19179
  onClick: _cache[2] || (_cache[2] = withModifiers(($event) => handleTabPanelChange("verifyCode"), ["stop"]))
19137
- }, toDisplayString(unref($t)("LoginModal.subtitle.sms")), 3),
19180
+ }, toDisplayString(unref($t)("gitCodeLayout.LoginModal.subtitle.sms")), 3),
19138
19181
  createElementVNode("div", {
19139
19182
  class: normalizeClass([
19140
19183
  "login-modal-tab ml-[18px]",
19141
19184
  tabPanel.value === "password" ? "login-modal-tab-active" : "login-modal-tab-inactive"
19142
19185
  ]),
19143
19186
  onClick: _cache[3] || (_cache[3] = withModifiers(($event) => handleTabPanelChange("password"), ["stop"]))
19144
- }, toDisplayString(unref($t)("LoginModal.subtitle.password")), 3)
19187
+ }, toDisplayString(unref($t)("gitCodeLayout.LoginModal.subtitle.password")), 3)
19145
19188
  ])) : createCommentVNode("", true),
19146
- formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_5$1, toDisplayString(unref($t)("LoginModal.tips.bindMobileWithAccount")) + "/" + toDisplayString(unref($t)("LoginModal.tips.resetYourPassword")), 1)) : createCommentVNode("", true),
19189
+ formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_5$1, toDisplayString(unref($t)("gitCodeLayout.LoginModal.tips.bindMobileWithAccount")) + "/" + toDisplayString(unref($t)("gitCodeLayout.LoginModal.tips.resetYourPassword")), 1)) : createCommentVNode("", true),
19147
19190
  formType.value === "login" && tabPanel.value === "miniProgram" ? (openBlock(), createBlock(DataPanel, {
19148
19191
  key: 2,
19149
19192
  loading: miniProgramLoading.value,
@@ -19166,19 +19209,19 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19166
19209
  name: "gt-line-Refresh",
19167
19210
  size: "18"
19168
19211
  }),
19169
- createElementVNode("div", null, toDisplayString(unref($t)("LoginModal.miniProgram.tip01")), 1),
19170
- createElementVNode("button", { onClick: getMiniProgramQrCode }, toDisplayString(unref($t)("LoginModal.miniProgram.tip02")), 1)
19212
+ createElementVNode("div", null, toDisplayString(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip01")), 1),
19213
+ createElementVNode("button", { onClick: getMiniProgramQrCode }, toDisplayString(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip02")), 1)
19171
19214
  ])) : createCommentVNode("", true),
19172
19215
  ["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("div", _hoisted_10, [
19173
- createElementVNode("div", _hoisted_11, toDisplayString(unref($t)("LoginModal.miniProgram.tip03")), 1),
19174
- createElementVNode("div", _hoisted_12, toDisplayString(unref($t)("LoginModal.miniProgram.tip04")), 1)
19216
+ createElementVNode("div", _hoisted_11, toDisplayString(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip03")), 1),
19217
+ createElementVNode("div", _hoisted_12, toDisplayString(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip04")), 1)
19175
19218
  ])) : createCommentVNode("", true)
19176
19219
  ])) : createCommentVNode("", true),
19177
- !["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p", _hoisted_13, toDisplayString(unref($t)("LoginModal.miniProgram.tip05")), 1)) : (openBlock(), createElementBlock("button", {
19220
+ !["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p", _hoisted_13, toDisplayString(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip05")), 1)) : (openBlock(), createElementBlock("button", {
19178
19221
  key: 2,
19179
19222
  onClick: getMiniProgramQrCode,
19180
19223
  class: "mt-2"
19181
- }, toDisplayString(unref($t)("LoginModal.miniProgram.tip06")), 1))
19224
+ }, toDisplayString(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip06")), 1))
19182
19225
  ])
19183
19226
  ]),
19184
19227
  _: 1
@@ -19206,7 +19249,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19206
19249
  withDirectives(createElementVNode("div", {
19207
19250
  class: "login-modal-info-right",
19208
19251
  onClick: _cache[4] || (_cache[4] = withModifiers(($event) => formType.value = "forget", ["stop"]))
19209
- }, toDisplayString(unref($t)("LoginModal.tips.forgotPassword")), 513), [
19252
+ }, toDisplayString(unref($t)("gitCodeLayout.LoginModal.tips.forgotPassword")), 513), [
19210
19253
  [vShow, tabPanel.value === "password" && formType.value === "login"]
19211
19254
  ])
19212
19255
  ])) : createCommentVNode("", true),
@@ -19221,7 +19264,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19221
19264
  class: "login-modal-button"
19222
19265
  }, {
19223
19266
  default: withCtx(() => [
19224
- createTextVNode(toDisplayString(unref($t)("LoginModal.action.login")), 1)
19267
+ createTextVNode(toDisplayString(unref($t)("gitCodeLayout.LoginModal.action.login")), 1)
19225
19268
  ]),
19226
19269
  _: 1
19227
19270
  }, 8, ["loading", "disabled"]),
@@ -19236,12 +19279,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19236
19279
  alt: "",
19237
19280
  class: "mr-[16px] inline-block"
19238
19281
  }, null, -1)),
19239
- createElementVNode("span", _hoisted_18, toDisplayString(unref($t)("LoginModal.action.oh")), 1)
19282
+ createElementVNode("span", _hoisted_18, toDisplayString(unref($t)("gitCodeLayout.LoginModal.action.oh")), 1)
19240
19283
  ])) : createCommentVNode("", true),
19241
19284
  createElementVNode("div", {
19242
19285
  class: "text-[var(--theme-link)] text-center mt-[12px] cursor-pointer leading-[32px] hover:underline",
19243
19286
  onClick: withModifiers(clickRegister, ["stop"])
19244
- }, toDisplayString(unref($t)("LoginModal.action.registerAgain")), 1)
19287
+ }, toDisplayString(unref($t)("gitCodeLayout.LoginModal.action.registerAgain")), 1)
19245
19288
  ])
19246
19289
  ])) : createCommentVNode("", true)
19247
19290
  ]),
@@ -19271,7 +19314,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19271
19314
  })) : createCommentVNode("", true)
19272
19315
  ])
19273
19316
  ]),
19274
- formType.value === "register" ? (openBlock(), createElementBlock("div", _hoisted_3$1, toDisplayString(unref($t)("LoginModal.registerDesc")), 1)) : createCommentVNode("", true)
19317
+ formType.value === "register" ? (openBlock(), createElementBlock("div", _hoisted_3$1, toDisplayString(unref($t)("gitCodeLayout.LoginModal.registerDesc")), 1)) : createCommentVNode("", true)
19275
19318
  ]),
19276
19319
  key: "0"
19277
19320
  } : void 0,
@@ -19310,16 +19353,16 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19310
19353
  modelValue: hwStatus.value,
19311
19354
  "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => hwStatus.value = $event),
19312
19355
  onDeclares: _cache[8] || (_cache[8] = (typ) => handleDisplay(typ, "huawei")),
19313
- "agreement-text": `《${unref($t)("LoginModal.link.huaweiCloudAgreement")}》`,
19314
- "privacy-text": `《${unref($t)("LoginModal.link.agreementPrivacy")}》`,
19356
+ "agreement-text": `《${unref($t)("gitCodeLayout.LoginModal.link.huaweiCloudAgreement")}》`,
19357
+ "privacy-text": `《${unref($t)("gitCodeLayout.LoginModal.link.agreementPrivacy")}》`,
19315
19358
  onClick: _cache[9] || (_cache[9] = ($event) => agreementReport("signup_select", `hw${hwStatus.value ? 1 : 0}`))
19316
19359
  }, null, 8, ["modelValue", "agreement-text", "privacy-text"]),
19317
19360
  createVNode(_sfc_main$7, {
19318
19361
  modelValue: status.value,
19319
19362
  "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => status.value = $event),
19320
19363
  onDeclares: _cache[11] || (_cache[11] = (typ) => handleDisplay(typ)),
19321
- "agreement-text": `《GitCode ${unref($t)("LoginModal.link.agreement")}》`,
19322
- "privacy-text": `《GitCode ${unref($t)("LoginModal.link.privacyPolicy")}》`,
19364
+ "agreement-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.agreement")}》`,
19365
+ "privacy-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")}》`,
19323
19366
  onClick: _cache[12] || (_cache[12] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
19324
19367
  }, null, 8, ["modelValue", "agreement-text", "privacy-text"])
19325
19368
  ], 2)) : createCommentVNode("", true),
@@ -19334,7 +19377,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19334
19377
  class: "w-[100%]"
19335
19378
  }, {
19336
19379
  default: withCtx(() => [
19337
- createTextVNode(toDisplayString(formType.value === "forget" ? unref($t)("userSetting.account.changePassword") : unref($t)("LoginModal.action.verify")), 1)
19380
+ createTextVNode(toDisplayString(formType.value === "forget" ? unref($t)("gitCodeLayout.userSetting.account.changePassword") : unref($t)("gitCodeLayout.LoginModal.action.verify")), 1)
19338
19381
  ]),
19339
19382
  _: 1
19340
19383
  }, 8, ["disabled", "loading"])
@@ -19355,12 +19398,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19355
19398
  };
19356
19399
  }
19357
19400
  });
19358
- const index_vue_vue_type_style_index_0_scoped_c4c87611_lang = "";
19401
+ const index_vue_vue_type_style_index_0_scoped_4c0b3116_lang = "";
19359
19402
  const index_vue_vue_type_style_index_1_lang = "";
19360
- const LoginModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-c4c87611"]]);
19403
+ const LoginModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-4c0b3116"]]);
19361
19404
  const { t } = i18n.global;
19362
19405
  function useLogin(request) {
19363
- const successMsg = t("common.tips.welcome");
19406
+ const successMsg = t("gitCodeLayout.common.tips.welcome");
19364
19407
  const { mount, unMount, isMounted, closeModal, refreshModal } = usePopup();
19365
19408
  const router2 = useRouter();
19366
19409
  const route = useRoute();
@@ -19436,7 +19479,7 @@ function useLogin(request) {
19436
19479
  isMounted
19437
19480
  };
19438
19481
  }
19439
- const NoticeModal = defineAsyncComponent(() => import("./notice-425401c1.js"));
19482
+ const NoticeModal = defineAsyncComponent(() => import("./notice-868a1c83.js"));
19440
19483
  function clearNotice() {
19441
19484
  if (localStorage.getItem("validator_email")) {
19442
19485
  localStorage.removeItem("validator_email");
@@ -19492,10 +19535,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19492
19535
  userInfo: { default: () => ({}) },
19493
19536
  headerFunctions: {},
19494
19537
  headerCustomProps: {},
19495
- openHarmonyGuide: {}
19538
+ openHarmonyGuide: { type: Boolean }
19496
19539
  },
19497
19540
  emits: ["followDevCommunity", "followUser"],
19498
19541
  setup(__props, { emit: __emit }) {
19542
+ const layoutConfig2 = useLayoutConfig();
19543
+ const VITE_HOST = layoutConfig2.VITE_HOST;
19499
19544
  const route = useRoute();
19500
19545
  const props = __props;
19501
19546
  const emit = __emit;
@@ -19590,7 +19635,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19590
19635
  notice();
19591
19636
  }
19592
19637
  };
19593
- const { VITE_HOST } = { "VITE_APP_TITLE": "新gitcode", "VITE_TEST_REPOID": "34", "VITE_SECRET_KEY": "SA!nUNPZ5o!OSV&B", "VITE_SECRET_IV": "SA!nwwwZ5o!OSV&B", "VITE_PASSPORT_PREFIX": "/uc", "VITE_ENV": "production", "VITE_HOST": "https://gitcode.com", "VITE_API_HOST": "https://web-api.gitcode.com", "VITE_AD_LINK": "https://cdn-static.gitcode.com/adList/active.json", "VITE_NEWS_HOST": "https://news.gitcode.com", "VITE_AI_HOST": "https://ai.gitcode.com", "VITE_INCUBATION_TOPIC": "6656c64efd46e722f6299761", "VITE_GSTAR_TOPIC": "6656c65ebacc215dac8b2d06", "VITE_TRUSTED_TOPIC": "6716255303226504db66d8d7", "VITE_SEARCH_REPO_CHANNEL_ID": "67bc3f5f97a0293d6bfebd01", "BASE_URL": "/", "MODE": "production", "DEV": false, "PROD": true, "SSR": false };
19594
19638
  onMounted(() => {
19595
19639
  toNotice();
19596
19640
  addEventListener("logout", (options) => {
@@ -19604,8 +19648,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19604
19648
  } else {
19605
19649
  NotificationService.open({
19606
19650
  type: "success",
19607
- title: t2("common.tips.notcieTitle"),
19608
- content: token ? t2("common.tips.notcie1") : t2("common.tips.notcie2"),
19651
+ title: t2("gitCodeLayout.common.tips.notcieTitle"),
19652
+ content: token ? t2("gitCodeLayout.common.tips.notcie1") : t2("gitCodeLayout.common.tips.notcie2"),
19609
19653
  onClose: () => {
19610
19654
  status.value = false;
19611
19655
  }
@@ -19624,9 +19668,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19624
19668
  props.loginSuccess(options);
19625
19669
  });
19626
19670
  addEventListener("notice", toNotice);
19627
- addEventListener("openHarmonyGuide", () => {
19628
- props.openHarmonyGuide();
19629
- });
19630
19671
  window.addEventListener("message", (event) => {
19631
19672
  if (event.origin !== VITE_HOST)
19632
19673
  return;
@@ -19637,7 +19678,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19637
19678
  });
19638
19679
  });
19639
19680
  onBeforeUnmount(() => {
19640
- offEvent("openHarmonyGuide");
19641
19681
  offEvent("notice");
19642
19682
  offEvent("updateUserInfo");
19643
19683
  offEvent("login");
@@ -19672,7 +19712,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19672
19712
  showNameAndIcon.value ? (openBlock(), createBlock(GLink, {
19673
19713
  key: 1,
19674
19714
  class: normalizeClass(["g-toolbar-left-logo", unref(currentTheme)]),
19675
- href: unref(SITE_HOST)
19715
+ href: unref(VITE_HOST)
19676
19716
  }, null, 8, ["class", "href"])) : createCommentVNode("", true)
19677
19717
  ]),
19678
19718
  isModuleVisible(unref(HeaderDisplayItem).CUSTOM_CONTENT) ? (openBlock(), createElementBlock("div", {
@@ -19724,7 +19764,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19724
19764
  onClick: _cache[4] || (_cache[4] = ($event) => handleLogin("login"))
19725
19765
  }, {
19726
19766
  default: withCtx(() => [
19727
- createTextVNode(toDisplayString(_ctx.$t("header.login")), 1)
19767
+ createTextVNode(toDisplayString(_ctx.$t("gitCodeLayout.header.login")), 1)
19728
19768
  ]),
19729
19769
  _: 1
19730
19770
  }),
@@ -19733,7 +19773,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19733
19773
  class: "min-w-[64px]"
19734
19774
  }, {
19735
19775
  default: withCtx(() => [
19736
- createTextVNode(toDisplayString(_ctx.$t("header.register")), 1)
19776
+ createTextVNode(toDisplayString(_ctx.$t("gitCodeLayout.header.register")), 1)
19737
19777
  ]),
19738
19778
  _: 1
19739
19779
  })
@@ -19769,8 +19809,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19769
19809
  };
19770
19810
  }
19771
19811
  });
19772
- const index_vue_vue_type_style_index_0_scoped_831a966a_lang = "";
19773
- const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-831a966a"]]);
19812
+ const index_vue_vue_type_style_index_0_scoped_bc49236b_lang = "";
19813
+ const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bc49236b"]]);
19774
19814
  const GitCodeLayoutLibLocales = {
19775
19815
  zh: zhLocale,
19776
19816
  en: enLocale
@@ -19801,13 +19841,15 @@ export {
19801
19841
  isPhone as i,
19802
19842
  highlightWords as j,
19803
19843
  _frEventTrack as k,
19804
- debounce$1 as l,
19805
- baseURL as m,
19806
- ToolsFloat as n,
19807
- GitCodeHeader as o,
19808
- GitCodeLayoutLibLocales as p,
19809
- index as q,
19844
+ useLayoutConfig as l,
19845
+ debounce$1 as m,
19846
+ baseURL as n,
19847
+ ToolsFloat as o,
19848
+ GitCodeHeader as p,
19849
+ GitCodeLayoutLibLocales as q,
19810
19850
  reqCatch as r,
19851
+ setLayoutConfig as s,
19811
19852
  transWebUrl as t,
19812
- useModel as u
19853
+ useModel as u,
19854
+ index as v
19813
19855
  };