vue-layout-gitcode 1.9.36 → 1.9.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  import { defineComponent, inject, createElementBlock, openBlock, Fragment, createElementVNode, toDisplayString, createVNode, unref, renderList, withDirectives, createBlock, ref, watch, onMounted, createCommentVNode } from "vue";
2
2
  import "vue-devui-lal/icon";
3
3
  import "vue-devui-lal/icon/style.css";
4
- import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-BndB1s6z.js";
4
+ import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-BiWnren8.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-rMp1wHqF.js";
7
- import "./transWebUrl-DN3ZUbw_.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-B14l1zxW.js";
7
+ import "./transWebUrl-D-MLvrzi.js";
8
8
  import "vue-devui-lal/tooltip";
9
9
  import "vue-devui-lal/tooltip/style.css";
10
10
  import "vue-router";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, inject, useSlots, ref, computed, createBlock, openBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, createTextVNode, createCommentVNode, toDisplayString, renderSlot } from "vue";
2
- import { a as i18n, y as useLayoutConfig, z as ThemeType, A as currentTheme, L as LANG_ZH, B as LANG_EN, x as getLocaleLang, G as GIcon, C as emitEvent, D as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-BndB1s6z.js";
2
+ import { a as i18n, y as useLayoutConfig, z as ThemeType, A as currentTheme, L as LANG_ZH, B as LANG_EN, x as getLocaleLang, G as GIcon, C as emitEvent, D as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-BiWnren8.js";
3
3
  import { useRouter } from "vue-router";
4
4
  import { Popover } from "vue-devui-lal/popover";
5
5
  import "vue-devui-lal/popover/style.css";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, inject, ref, reactive, watch, computed, createElementBlock, openBlock, createCommentVNode, createBlock, withDirectives, Fragment, createElementVNode, createVNode, toDisplayString, unref, withModifiers, normalizeClass, withCtx, renderList, createTextVNode, vShow } from "vue";
2
- import { a as i18n, y as useLayoutConfig, G as GIcon, t as transformUrl, F as _sfc_main$1, H as loadAsideData, C as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-BndB1s6z.js";
2
+ import { a as i18n, y as useLayoutConfig, G as GIcon, t as transformUrl, F as _sfc_main$1, H as loadAsideData, C as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-BiWnren8.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-DN3ZUbw_.js";
4
+ import { t as transWebUrl } from "./transWebUrl-D-MLvrzi.js";
5
5
  import { Select, Option } from "vue-devui-lal/select";
6
6
  import { Input } from "vue-devui-lal/input";
7
7
  import { Skeleton } from "vue-devui-lal/skeleton";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, inject, ref, reactive, computed, watch, createElementBlock, openBlock, createElementVNode, createVNode, createBlock, createCommentVNode, withDirectives, toDisplayString, unref, withModifiers, normalizeClass, withCtx, Fragment, renderList, createTextVNode, vShow } from "vue";
2
- import { a as i18n, y as useLayoutConfig, G as GIcon, C as emitEvent, s as setLoginTriggerSource, f as useRequestReport, t as transformUrl, _ as _export_sfc } from "./index-BndB1s6z.js";
2
+ import { a as i18n, y as useLayoutConfig, G as GIcon, C as emitEvent, s as setLoginTriggerSource, f as useRequestReport, t as transformUrl, _ as _export_sfc } from "./index-BiWnren8.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-DN3ZUbw_.js";
4
+ import { t as transWebUrl } from "./transWebUrl-D-MLvrzi.js";
5
5
  import { Input } from "vue-devui-lal/input";
6
6
  import { Skeleton } from "vue-devui-lal/skeleton";
7
7
  import { MenuItem } from "vue-devui-lal/menu";
@@ -1,5 +1,5 @@
1
1
  import { ref, inject, computed, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-BndB1s6z.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-BiWnren8.js";
3
3
  import { useRoute, useRouter } from "vue-router";
4
4
  import "vue-devui-lal/icon";
5
5
  import "vue-devui-lal/icon/style.css";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, createElementBlock, openBlock, createCommentVNode, Fragment, renderList, normalizeClass, createElementVNode, createVNode, toDisplayString, withModifiers } from "vue";
2
- import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-BndB1s6z.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-BiWnren8.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = { class: "history-list" };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createElementBlock, openBlock, createElementVNode, withDirectives, toDisplayString, withModifiers, createVNode, vShow } from "vue";
2
- import { G as GIcon, _ as _export_sfc } from "./index-BndB1s6z.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-BiWnren8.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = { class: "ellipsis" };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, inject, ref, onMounted, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, renderSlot, createBlock, createVNode, withCtx } from "vue";
2
- import { u as useReportRepo, S as SearchRepoCard } from "./index-rMp1wHqF.js";
3
- import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-BndB1s6z.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-B14l1zxW.js";
3
+ import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-BiWnren8.js";
4
4
  import { Row, Col } from "vue-devui-lal/grid";
5
5
  import { SkeletonItem } from "vue-devui-lal/skeleton";
6
6
  import "vue-devui-lal/grid/style.css";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createElementBlock, openBlock, Fragment, renderList, createElementVNode, createVNode, createCommentVNode, toDisplayString, unref } from "vue";
2
- import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-BndB1s6z.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-BiWnren8.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = ["onClick"];
@@ -1,5 +1,5 @@
1
1
  import { inject, ref, watch, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-BndB1s6z.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-BiWnren8.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = { class: "px-[8px] history-list-project pl-[8px]" };
@@ -1,7 +1,7 @@
1
1
  import { ref, watchEffect, defineComponent, toDisplayString, unref, mergeModels, useModel, watch, createElementBlock, openBlock, createVNode, withDirectives, normalizeClass, createElementVNode, vShow, inject, withModifiers, createBlock, Fragment, computed, createCommentVNode, normalizeStyle, createTextVNode, onMounted, onUnmounted, renderList, withCtx, reactive } from "vue";
2
2
  import debounce from "lodash/debounce";
3
- import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, j as useCookie, k as usePageResize, L as LANG_ZH, m as isGstarRepo, n as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, w as LANG_KEY } from "./index-BndB1s6z.js";
4
- import { t as transWebUrl } from "./transWebUrl-DN3ZUbw_.js";
3
+ import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, j as useCookie, k as usePageResize, L as LANG_ZH, m as isGstarRepo, n as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, w as LANG_KEY } from "./index-BiWnren8.js";
4
+ import { t as transWebUrl } from "./transWebUrl-D-MLvrzi.js";
5
5
  import { useRouter } from "vue-router";
6
6
  import { Row, Col } from "vue-devui-lal/grid";
7
7
  import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
@@ -8,7 +8,7 @@ import { Message } from "vue-devui-lal/message";
8
8
  import "vue-devui-lal/message/style.css";
9
9
  import { FixedOverlay } from "vue-devui-lal/overlay";
10
10
  import "vue-devui-lal/overlay/style.css";
11
- import { a as i18n, k as usePageResize, x as getLocaleLang, L as LANG_ZH, _ as _export_sfc } from "./index-BndB1s6z.js";
11
+ import { a as i18n, k as usePageResize, x as getLocaleLang, L as LANG_ZH, _ as _export_sfc } from "./index-BiWnren8.js";
12
12
  const _YunpianCaptchaManager = class _YunpianCaptchaManager {
13
13
  constructor() {
14
14
  __publicField(this, "ypRiddlerInstance", null);
@@ -474,7 +474,8 @@ var AsideReportEvent = /* @__PURE__ */ ((AsideReportEvent2) => {
474
474
  return AsideReportEvent2;
475
475
  })(AsideReportEvent || {});
476
476
  const AICopilot_ROUTE_NAME = "aiCopilot";
477
- const HELP_DOCS_URL = "https://docs.gitcode.com";
477
+ const HELP_DOCS_URL_GITCODE = "https://docs.gitcode.com";
478
+ const HELP_DOCS_URL_ATOMGIT = "https://docs.atomgit.com";
478
479
  const INFORMATION_CENTER_URL = "https://news.gitcode.com/news";
479
480
  const AVATAR_VISITED_DATE = "avatar-visitedDate";
480
481
  const AVATAR_VISITED_USERNAME = "avatar-visited-username";
@@ -525,8 +526,8 @@ const LOGO_MAP = {
525
526
  siteLogoWhite: "https://cdn-static.gitcode.com/static/images/bind-logo-white.png",
526
527
  tianqiLogoLocalWhite: "https://cdn-static.gitcode.com/static/images/tianqi-white-bind.png",
527
528
  tianqiLogoLocalDark: "https://cdn-static.gitcode.com/static/images/tianqi-black-bind.png",
528
- aiLogoWhite: "https://cdn-static.gitcode.com/static/images/gitcode-ai-logo-white.png",
529
- aiLogoDark: "https://cdn-static.gitcode.com/static/images/gitcode-ai-logo-dark.png"
529
+ aiLogoWhite: "https://cdn-static.gitcode.com/static/images/gitcode-ai-logo-white_atomgit.png",
530
+ aiLogoDark: "https://cdn-static.gitcode.com/static/images/gitcode-ai-logo-dark_atomgit.png"
530
531
  },
531
532
  atomgit: {
532
533
  favicon: "https://cdn-static.gitcode.com/static/images/logo-favicon.png",
@@ -12530,6 +12531,13 @@ const getCurrentLogoMap = () => {
12530
12531
  const siteType = location.host.includes("atomgit") ? "atomgit" : "gitcode";
12531
12532
  return LOGO_MAP[siteType];
12532
12533
  };
12534
+ const isGitCodeHost = () => {
12535
+ if (typeof window === "undefined" || typeof location === "undefined") return false;
12536
+ return location.hostname.includes("gitcode");
12537
+ };
12538
+ const currentHelpDocsUrl = () => isGitCodeHost() ? HELP_DOCS_URL_GITCODE : HELP_DOCS_URL_ATOMGIT;
12539
+ const currentHelpDocsAboutUsUrl = () => isGitCodeHost() ? HELP_DOCS_URL_GITCODE + "/docs/help/home/aboutus/" : HELP_DOCS_URL_ATOMGIT + "/docs/help/home/aboutus/";
12540
+ const currentHelpDocsAiCommunityUrl = () => isGitCodeHost() ? HELP_DOCS_URL_GITCODE + "/docs/help/home/ai-community/" : HELP_DOCS_URL_ATOMGIT + "/docs/help/home/ai-community/";
12533
12541
  const _sfc_main$B = /* @__PURE__ */ defineComponent({
12534
12542
  ...{
12535
12543
  name: "GAvatar"
@@ -16478,14 +16486,14 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
16478
16486
  return openBlock(), createBlock(GLink, {
16479
16487
  variant: "text",
16480
16488
  class: normalizeClass(["g-toolbar-docs", _ctx.whiteColor ? "white" : "black"]),
16481
- href: "https://docs.gitcode.com/docs/help/home/ai-community/",
16489
+ href: unref(currentHelpDocsAiCommunityUrl)(),
16482
16490
  target: "_blank"
16483
16491
  }, {
16484
16492
  default: withCtx(() => [
16485
16493
  createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.header.aihub.documentCenter")), 1)
16486
16494
  ]),
16487
16495
  _: 1
16488
- }, 8, ["class"]);
16496
+ }, 8, ["class", "href"]);
16489
16497
  };
16490
16498
  }
16491
16499
  });
@@ -16741,7 +16749,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
16741
16749
  [
16742
16750
  { id: "personalSetting", label: t2("gitCodeLayout.header.personSetting"), icon: "gt-plane-setting", to: getRouterLink("setting") },
16743
16751
  { id: "news", label: t2("gitCodeLayout.home.informationCenter"), icon: "gt-plane-consulting", target: "_blank", href: `${transformNewsUrl(INFORMATION_CENTER_URL)}?lang=${(locale2 == null ? void 0 : locale2.value) || "zh"}` },
16744
- { id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", href: HELP_DOCS_URL }
16752
+ { id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", href: currentHelpDocsUrl() }
16745
16753
  ]
16746
16754
  ];
16747
16755
  const routerHref = computed(() => {
@@ -16765,7 +16773,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
16765
16773
  [
16766
16774
  { id: "personalSetting", label: t2("gitCodeLayout.header.personSetting"), icon: "gt-plane-setting", link: "/setting" },
16767
16775
  { id: "news", label: t2("gitCodeLayout.home.informationCenter"), icon: "gt-plane-consulting", target: "_blank", href: `${transformNewsUrl(INFORMATION_CENTER_URL)}?lang=${(locale2 == null ? void 0 : locale2.value) || "zh"}` },
16768
- { id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", target: "_blank", href: HELP_DOCS_URL }
16776
+ { id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", target: "_blank", href: currentHelpDocsUrl() }
16769
16777
  ]
16770
16778
  ];
16771
16779
  const hrefList = computed(() => {
@@ -17204,13 +17212,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17204
17212
  var _a;
17205
17213
  const layoutConfig2 = useLayoutConfig();
17206
17214
  const { t: $t } = i18n.global;
17207
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-D_0Svi4M.js"));
17208
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-Cc0QFpZu.js"));
17209
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-BkOmQ4X4.js"));
17210
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-D38wIxCU.js"));
17211
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DUnoVtYa.js"));
17212
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-4zDyQZ1F.js"));
17213
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BZHHWi6z.js"));
17215
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-ekmfo018.js"));
17216
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-BlV94GMN.js"));
17217
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DZvlk0oj.js"));
17218
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BNaEyfCr.js"));
17219
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-D47vDru4.js"));
17220
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-BvFufnUh.js"));
17221
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BFKsXmH1.js"));
17214
17222
  const props = __props;
17215
17223
  const repoInfo = inject("repoInfo");
17216
17224
  const orgInfo = inject("orgInfo");
@@ -17951,7 +17959,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
17951
17959
  loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
17952
17960
  }
17953
17961
  };
17954
- const NoticeModal = defineAsyncComponent(() => import("./notice-CL48LQhr.js"));
17962
+ const NoticeModal = defineAsyncComponent(() => import("./notice-Cy4JZT0O.js"));
17955
17963
  function clearNotice() {
17956
17964
  if (localStorage$2.getItem("validator_email")) {
17957
17965
  localStorage$2.removeItem("validator_email");
@@ -18754,9 +18762,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18754
18762
  const layoutConfig2 = useLayoutConfig();
18755
18763
  const { t: t2 } = i18n.global;
18756
18764
  const route = useRoute();
18757
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-D78Tk2td.js"));
18758
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-Cur3Om51.js"));
18759
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-B6t8MGa5.js"));
18765
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-BqcPovSb.js"));
18766
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-BXHKvJpR.js"));
18767
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-eEmKYXv7.js"));
18760
18768
  const props = __props;
18761
18769
  console.log("slotKeys", props.slotKeys);
18762
18770
  console.log("props", props);
@@ -19156,7 +19164,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
19156
19164
  {
19157
19165
  name: t2("gitCodeLayout.header.helpDocument"),
19158
19166
  icon: "gt-line-file",
19159
- url: HELP_DOCS_URL,
19167
+ url: currentHelpDocsUrl(),
19160
19168
  target: "_blank"
19161
19169
  },
19162
19170
  {
@@ -19195,7 +19203,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
19195
19203
  const SubMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-vue-layout-gitcode"]]);
19196
19204
  const createSetting = () => {
19197
19205
  const { t: t2 } = i18n.global;
19198
- const isGitCodeHost = window.location.hostname.includes("gitcode");
19206
+ const isGitCodeHost2 = window.location.hostname.includes("gitcode");
19199
19207
  const settings = {
19200
19208
  slogan: t2("gitCodeLayout.home.slogon"),
19201
19209
  copyright: {
@@ -19213,7 +19221,7 @@ const createSetting = () => {
19213
19221
  beian_url: "https://www.zhipin.com/gongsi/job/b1eccc6dba1cc0d41Hd60tW0GVc~.html?ka=company-jobs"
19214
19222
  }
19215
19223
  };
19216
- if (!isGitCodeHost) {
19224
+ if (!isGitCodeHost2) {
19217
19225
  settings.slogan = "";
19218
19226
  settings.copyright = {
19219
19227
  digest: (/* @__PURE__ */ new Date()).getFullYear() + " " + t2("gitCodeLayout.home.copyright_atomgit.digest"),
@@ -19296,13 +19304,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19296
19304
  createElementVNode("p", _hoisted_9$2, [
19297
19305
  createVNode(GLink, {
19298
19306
  target: "_blank",
19299
- href: "https://docs.gitcode.com/docs/help/home/aboutus/"
19307
+ href: unref(currentHelpDocsAboutUsUrl)()
19300
19308
  }, {
19301
19309
  default: withCtx(() => [
19302
19310
  createTextVNode(toDisplayString$1(unref(copyright).aboutUs), 1)
19303
19311
  ]),
19304
19312
  _: 1
19305
- }),
19313
+ }, 8, ["href"]),
19306
19314
  _cache[3] || (_cache[3] = createTextVNode("  |   ")),
19307
19315
  createVNode(GLink, {
19308
19316
  target: "_blank",
@@ -24245,7 +24253,7 @@ const isMobileEmail = (val) => {
24245
24253
  return t$1("gitCodeLayout.common.phone") + "/" + t$1("gitCodeLayout.common.email");
24246
24254
  };
24247
24255
  const _hoisted_1$4 = { class: "modal-body" };
24248
- const _hoisted_2$2 = { class: "mx-[1px]" };
24256
+ const _hoisted_2$2 = { class: "text-[13px]" };
24249
24257
  const _hoisted_3$2 = { class: "flex items-center justify-end px-[24px] pb-[24px]" };
24250
24258
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
24251
24259
  __name: "loginCheckModal",
@@ -24258,19 +24266,27 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
24258
24266
  const { t: $t } = i18n.global;
24259
24267
  const visible = useModel$1(__props, "visible");
24260
24268
  const emits = __emit;
24269
+ const dataShareChecked = ref(false);
24261
24270
  const handleClick = (type) => {
24262
24271
  emits("declares", type);
24263
24272
  };
24264
24273
  const handleConfirm = () => {
24265
24274
  emits("confirm");
24266
24275
  };
24276
+ const dataShareName = computed(() => {
24277
+ if (window.location.host.includes("gitcode")) {
24278
+ return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "AtomGit" });
24279
+ } else {
24280
+ return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "GitCode" });
24281
+ }
24282
+ });
24267
24283
  const close = () => {
24268
24284
  visible.value = false;
24269
24285
  };
24270
24286
  return (_ctx, _cache) => {
24271
24287
  return openBlock(), createBlock(unref(Modal), {
24272
24288
  modelValue: visible.value,
24273
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => visible.value = $event),
24289
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => visible.value = $event),
24274
24290
  "close-on-click-overlay": false,
24275
24291
  "show-overlay": true,
24276
24292
  class: "second-sure-proto",
@@ -24290,33 +24306,45 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
24290
24306
  createVNode(unref(Button), {
24291
24307
  variant: "solid",
24292
24308
  class: "w-[126px]",
24309
+ disabled: !dataShareChecked.value,
24293
24310
  onClick: handleConfirm
24294
24311
  }, {
24295
24312
  default: withCtx(() => [
24296
24313
  createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.agrAndSigIn")), 1)
24297
24314
  ]),
24298
24315
  _: 1
24299
- })
24316
+ }, 8, ["disabled"])
24300
24317
  ])
24301
24318
  ]),
24302
24319
  default: withCtx(() => [
24303
24320
  createElementVNode("div", _hoisted_1$4, [
24304
24321
  createElementVNode("div", null, [
24305
- createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.youNeeToAgr")), 1),
24322
+ createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.youNeeToAgr")) + " ", 1),
24306
24323
  createElementVNode("span", {
24307
24324
  class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
24308
24325
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
24309
24326
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 1),
24310
- _cache[3] || (_cache[3] = createTextVNode("")),
24327
+ createTextVNode(" " + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")) + " ", 1),
24311
24328
  createElementVNode("span", {
24312
24329
  class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
24313
24330
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
24314
24331
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 1),
24315
- createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
24316
- createElementVNode("span", _hoisted_2$2, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.dataShareTip")), 1),
24317
24332
  createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.toUseGit")), 1)
24318
24333
  ]),
24319
- createElementVNode("div", null, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.ifYouDoNotAgrWe")), 1)
24334
+ createElementVNode("div", null, [
24335
+ createElementVNode("span", null, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.ifYouDoNotAgrWe")), 1)
24336
+ ]),
24337
+ createVNode(unref(Checkbox), {
24338
+ modelValue: dataShareChecked.value,
24339
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => dataShareChecked.value = $event),
24340
+ size: "sm",
24341
+ class: "mt-[12px]"
24342
+ }, {
24343
+ default: withCtx(() => [
24344
+ createElementVNode("span", _hoisted_2$2, toDisplayString$1(dataShareName.value), 1)
24345
+ ]),
24346
+ _: 1
24347
+ }, 8, ["modelValue"])
24320
24348
  ])
24321
24349
  ]),
24322
24350
  _: 1
@@ -24581,7 +24609,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24581
24609
  }
24582
24610
  });
24583
24611
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
24584
- const SlidCaptcha = defineAsyncComponent(() => import("./index-BPioS039.js"));
24612
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-VnV9_L78.js"));
24585
24613
  const useSlidCaptcha = () => {
24586
24614
  const { mount, unMount } = usePopup("slid-captcha-popup");
24587
24615
  const open = (config) => {
@@ -24600,7 +24628,7 @@ const useSlidCaptcha = () => {
24600
24628
  close: unMount
24601
24629
  };
24602
24630
  };
24603
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-Ny8xZMKD.js"));
24631
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-BPy8zOU4.js"));
24604
24632
  const useYunpianCaptcha = () => {
24605
24633
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
24606
24634
  const open = (config) => {
@@ -25431,8 +25459,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25431
25459
  }
25432
25460
  };
25433
25461
  const links = {
25434
- agreement: "https://docs.gitcode.com/docs/help/home/protocol/terms-of-service",
25435
- privacy: "https://docs.gitcode.com/docs/help/home/protocol/privacy-policy"
25462
+ agreement: currentHelpDocsUrl() + "/docs/help/home/protocol/terms-of-service",
25463
+ privacy: currentHelpDocsUrl() + "/docs/help/home/protocol/privacy-policy"
25436
25464
  };
25437
25465
  const links_hw = {
25438
25466
  agreement: "https://www.huaweicloud.com/declaration/sa_cua.html",
@@ -25806,8 +25834,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25806
25834
  );
25807
25835
  function checkAgree() {
25808
25836
  if (!status.value) {
25809
- extraErrors.agreement = $t("gitCodeLayout.common.tips.readPrivacyPolicy");
25837
+ extraErrors.agreement = $t("gitCodeLayout.common.tips.agreementTip");
25810
25838
  AgreementWarn.value = true;
25839
+ showProtoCheck.value = true;
25811
25840
  setTimeout(() => {
25812
25841
  AgreementWarn.value = false;
25813
25842
  }, 500);
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, onMounted, onUnmounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
2
- import { x as getLocaleLang, L as LANG_ZH, y as useLayoutConfig, _ as _export_sfc } from "./index-BndB1s6z.js";
2
+ import { x as getLocaleLang, L as LANG_ZH, y as useLayoutConfig, _ as _export_sfc } from "./index-BiWnren8.js";
3
3
  import { FixedOverlay } from "vue-devui-lal/overlay";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const TARGET_TEXT = "Click in order:";
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { M, N, Q, K, S, J, A, V, P, U, O } from "./index-BndB1s6z.js";
1
+ import { M, N, Q, K, S, J, A, V, P, U, O } from "./index-BiWnren8.js";
2
2
  export {
3
3
  M as GitCodeAside,
4
4
  N as GitCodeHeader,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, createBlock, openBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
2
- import { i as isPhone, u as useModel } from "./index-BndB1s6z.js";
2
+ import { i as isPhone, u as useModel } from "./index-BiWnren8.js";
3
3
  import { Notification } from "vue-devui-lal/notification";
4
4
  import { Button } from "vue-devui-lal/button";
5
5
  import "vue-devui-lal/notification/style.css";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-layout-gitcode",
3
- "version": "1.9.36",
3
+ "version": "1.9.38",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",