vue-layout-gitcode 1.9.32 → 1.9.34

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-cnkFQ4gP.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-CjLnDEWk.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-QZ1Cxk1e.js";
7
- import "./transWebUrl-CqOvYb8I.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-DsCaMUwQ.js";
7
+ import "./transWebUrl-DPNZr3QH.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-cnkFQ4gP.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-CjLnDEWk.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-cnkFQ4gP.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-CjLnDEWk.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-CqOvYb8I.js";
4
+ import { t as transWebUrl } from "./transWebUrl-DPNZr3QH.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-cnkFQ4gP.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-CjLnDEWk.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-CqOvYb8I.js";
4
+ import { t as transWebUrl } from "./transWebUrl-DPNZr3QH.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-cnkFQ4gP.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-CjLnDEWk.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-cnkFQ4gP.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CjLnDEWk.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-cnkFQ4gP.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-CjLnDEWk.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-QZ1Cxk1e.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-cnkFQ4gP.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-DsCaMUwQ.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-CjLnDEWk.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-cnkFQ4gP.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CjLnDEWk.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-cnkFQ4gP.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-CjLnDEWk.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]" };
@@ -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-cnkFQ4gP.js";
11
+ import { a as i18n, k as usePageResize, x as getLocaleLang, L as LANG_ZH, _ as _export_sfc } from "./index-CjLnDEWk.js";
12
12
  const _YunpianCaptchaManager = class _YunpianCaptchaManager {
13
13
  constructor() {
14
14
  __publicField(this, "ypRiddlerInstance", null);
@@ -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-cnkFQ4gP.js";
2
+ import { x as getLocaleLang, L as LANG_ZH, y as useLayoutConfig, _ as _export_sfc } from "./index-CjLnDEWk.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:";
@@ -484,13 +484,6 @@ var CLICK_TIME_MODULE = /* @__PURE__ */ ((CLICK_TIME_MODULE2) => {
484
484
  CLICK_TIME_MODULE2["GROWTH_CENTER"] = "growthCenter";
485
485
  return CLICK_TIME_MODULE2;
486
486
  })(CLICK_TIME_MODULE || {});
487
- var RepoType = /* @__PURE__ */ ((RepoType2) => {
488
- RepoType2["repo"] = "0";
489
- RepoType2["model"] = "1";
490
- RepoType2["dataset"] = "2";
491
- RepoType2["spaces"] = "3";
492
- return RepoType2;
493
- })(RepoType || {});
494
487
  const OSS_IMAGES = {
495
488
  gstar: "/static/images/homeweb/gstar-tag-twinkle.gif",
496
489
  trusted: "/static/images/homeweb/trusted-tag.png",
@@ -532,8 +525,8 @@ const LOGO_MAP = {
532
525
  siteLogoWhite: "https://cdn-static.gitcode.com/static/images/bind-logo-white.png",
533
526
  tianqiLogoLocalWhite: "https://cdn-static.gitcode.com/static/images/tianqi-white-bind.png",
534
527
  tianqiLogoLocalDark: "https://cdn-static.gitcode.com/static/images/tianqi-black-bind.png",
535
- aiLogoWhite: "https://cdn-static.gitcode.com/static/images/logo/gitcode-logo-white.png",
536
- aiLogoDark: "https://cdn-static.gitcode.com/static/images/logo/gitcode-logo-dark.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"
537
530
  },
538
531
  atomgit: {
539
532
  favicon: "https://cdn-static.gitcode.com/static/images/logo-favicon.png",
@@ -541,8 +534,8 @@ const LOGO_MAP = {
541
534
  siteLogoWhite: "https://cdn-static.gitcode.com/static/images/bind-logo-white.png",
542
535
  tianqiLogoLocalWhite: "https://cdn-static.gitcode.com/static/images/tianqi-white-bind.png",
543
536
  tianqiLogoLocalDark: "https://cdn-static.gitcode.com/static/images/tianqi-black-bind.png",
544
- aiLogoWhite: "https://cdn-static.gitcode.com/static/images/logo/gitcode-logo-white_atomgit.png",
545
- aiLogoDark: "https://cdn-static.gitcode.com/static/images/logo/gitcode-logo-dark_atomgit.png"
537
+ aiLogoWhite: "https://cdn-static.gitcode.com/static/images/gitcode-ai-logo-white_atomgit.png",
538
+ aiLogoDark: "https://cdn-static.gitcode.com/static/images/gitcode-ai-logo-dark_atomgit.png"
546
539
  }
547
540
  };
548
541
  /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
@@ -7636,7 +7629,7 @@ const gitCodeLayout$1 = {
7636
7629
  home: {
7637
7630
  migrationAnnounce: {
7638
7631
  preContent: "亲爱的 {siteName} 开发者:平台正在进行系统化融合与升级,预计将于10月28日12:00完成。之后,您将体验更强大、更稳定的平台。",
7639
- content: "亲爱的开发者:平台已经完成了系统化的融合与升级,您可以体验更强大、更稳定的 {siteName} 平台。",
7632
+ content: "亲爱的开发者:{siteName} 与 AtomGit 已完成深度整合升级,您将体验更稳定、更精彩的开源社区服务!",
7640
7633
  viewDetail: "【查看详情】",
7641
7634
  closePermanently: "不再提醒",
7642
7635
  close: "关闭"
@@ -7961,7 +7954,7 @@ const gitCodeLayout = {
7961
7954
  home: {
7962
7955
  migrationAnnounce: {
7963
7956
  preContent: "Dear {siteName} developer, the platform is undergoing integration, expected to be completed on October 28, 12:00. You will experience a more powerful platform.",
7964
- content: "Dear developer, the platform has completed integration, you can experience a more powerful {siteName} platform.",
7957
+ content: "GitCode and AtomGit are now fully integrated. Enjoy a more stable and vibrant open source community!",
7965
7958
  viewDetail: "[View detail]",
7966
7959
  closePermanently: "Don't remind again",
7967
7960
  close: "Close"
@@ -11897,6 +11890,20 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11897
11890
  }
11898
11891
  });
11899
11892
  const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-vue-layout-gitcode"]]);
11893
+ const headerHeight = ref(56);
11894
+ const useHeaderHeight = () => {
11895
+ const setHeaderHeight = (height) => {
11896
+ headerHeight.value = height;
11897
+ };
11898
+ const getHeaderHeight = () => {
11899
+ return headerHeight;
11900
+ };
11901
+ return {
11902
+ setHeaderHeight,
11903
+ getHeaderHeight,
11904
+ headerHeight
11905
+ };
11906
+ };
11900
11907
  const black = {
11901
11908
  "theme-stress-text": "#f0f6fc",
11902
11909
  "theme-text": "#D2D8E4",
@@ -17241,13 +17248,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17241
17248
  var _a;
17242
17249
  const layoutConfig2 = useLayoutConfig();
17243
17250
  const { t: $t } = i18n.global;
17244
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CwE0X-fG.js"));
17245
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-DFi18QrE.js"));
17246
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-BqJrvSqv.js"));
17247
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-C-7ZTqq8.js"));
17248
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-pN4Q5kAF.js"));
17249
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DP4FC5gu.js"));
17250
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-B4ve7t7p.js"));
17251
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-E7AMUAXX.js"));
17252
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-CuXnBrFc.js"));
17253
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-B55yDFVH.js"));
17254
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DyPxcKjP.js"));
17255
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-83zJzZ4h.js"));
17256
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-oOlByI4G.js"));
17257
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BKmq_ScB.js"));
17251
17258
  const props = __props;
17252
17259
  const repoInfo = inject("repoInfo");
17253
17260
  const orgInfo = inject("orgInfo");
@@ -17899,6 +17906,8 @@ const _hoisted_2$g = { class: "text-left" };
17899
17906
  const _hoisted_3$f = ["href"];
17900
17907
  const _hoisted_4$a = { class: "announce-handle-wrapper" };
17901
17908
  const ANNOUNCE_STATUS_KEY = "site_announcement_status";
17909
+ const announcementWidth = "100%";
17910
+ const announcementLeft = "0";
17902
17911
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
17903
17912
  ...{ name: "SiteAnnouncement" },
17904
17913
  __name: "SiteAnnouncement",
@@ -17907,31 +17916,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17907
17916
  },
17908
17917
  setup(__props) {
17909
17918
  const { t: t2 } = i18n.global;
17910
- const props = __props;
17911
- const { isMobile } = usePageResize();
17912
- const repoInfo = inject("repoInfo");
17913
17919
  const isShow = ref(SITE_STATUS.DISABLE);
17914
- const asideSize = computed(() => {
17915
- if (props.asideCollapseMode) {
17916
- return ASIDE_MENU_MODE.collapse;
17917
- } else {
17918
- return ASIDE_MENU_MODE.default;
17919
- }
17920
- });
17921
- const route = useRoute();
17922
17920
  const asideShow = ref(true);
17923
- const announcementWidth = computed(() => {
17924
- if (route.meta.asideMenu !== "flat" || [RepoType.model, RepoType.dataset, RepoType.spaces].includes(repoInfo == null ? void 0 : repoInfo.value.repo_type) || isMobile.value) {
17925
- return "100vw";
17926
- }
17927
- return asideShow.value ? `calc(100vw - ${asideSize.value.expand}px)` : "100vw";
17928
- });
17929
- const announcementLeft = computed(() => {
17930
- if (route.meta.asideMenu !== "flat" || [RepoType.model, RepoType.dataset, RepoType.spaces].includes(repoInfo == null ? void 0 : repoInfo.value.repo_type) || isMobile.value) {
17931
- return "0";
17932
- }
17933
- return asideShow.value ? `${asideSize.value.expand}px` : "0";
17934
- });
17935
17921
  const handleClose = (type) => {
17936
17922
  isShow.value = false;
17937
17923
  if (type === "today") {
@@ -17941,7 +17927,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17941
17927
  }
17942
17928
  };
17943
17929
  const migrationAnnounceUrl = computed(() => {
17944
- return window.location.hostname.includes("gitcode") ? "https://gitcode.com/gitcode" : "https://atomgit.com/gitcode";
17930
+ return window.location.hostname.includes("gitcode") ? "https://gitcode.com/gitcode" : "https://gitcode.com/gitcode";
17945
17931
  });
17946
17932
  addEventListener("handleAsideVisible", (value) => {
17947
17933
  asideShow.value = value;
@@ -17949,6 +17935,10 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17949
17935
  onMounted(() => {
17950
17936
  const asideDefaultWidth = Number(localStorage$2.getItem("asideDefaultWidth") || 0);
17951
17937
  asideShow.value = asideDefaultWidth > 0;
17938
+ if (!SITE_STATUS.DISABLE) {
17939
+ isShow.value = false;
17940
+ return;
17941
+ }
17952
17942
  const now2 = /* @__PURE__ */ new Date();
17953
17943
  const deadline = /* @__PURE__ */ new Date("2025-12-31");
17954
17944
  if (now2 >= deadline) {
@@ -17956,9 +17946,6 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17956
17946
  localStorage$2.removeItem(ANNOUNCE_STATUS_KEY);
17957
17947
  return;
17958
17948
  }
17959
- if (window.location.hostname.includes("gitcode")) {
17960
- isShow.value = false;
17961
- }
17962
17949
  const announceStatus = localStorage$2.getItem(ANNOUNCE_STATUS_KEY);
17963
17950
  if (announceStatus) {
17964
17951
  const today = `${now2.getFullYear()}-${String(now2.getMonth() + 1).padStart(2, "0")}-${String(now2.getDate()).padStart(2, "0")}`;
@@ -17974,7 +17961,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17974
17961
  return isShow.value ? (openBlock(), createElementBlock("div", {
17975
17962
  key: 0,
17976
17963
  class: "announce-wrapper",
17977
- style: normalizeStyle(`width: ${announcementWidth.value};margin-left: ${announcementLeft.value}`)
17964
+ style: normalizeStyle(`width: ${announcementWidth};margin-left: ${announcementLeft}`)
17978
17965
  }, [
17979
17966
  createElementVNode("div", _hoisted_1$l, [
17980
17967
  createElementVNode("div", _hoisted_2$g, [
@@ -17983,22 +17970,22 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17983
17970
  size: "16",
17984
17971
  class: "mr-2"
17985
17972
  }),
17986
- createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.preContent", { siteName: "GitCode" })), 1),
17973
+ createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.content", { siteName: "GitCode" })), 1),
17987
17974
  createElementVNode("a", {
17988
17975
  class: "announce-detail",
17989
17976
  href: migrationAnnounceUrl.value
17990
17977
  }, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.viewDetail")), 9, _hoisted_3$f)
17991
- ]),
17992
- createElementVNode("div", _hoisted_4$a, [
17993
- createElementVNode("span", {
17994
- class: "announce-handle mr-4",
17995
- onClick: _cache[0] || (_cache[0] = ($event) => handleClose("today"))
17996
- }, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.closePermanently")), 1),
17997
- createElementVNode("span", {
17998
- class: "announce-handle",
17999
- onClick: _cache[1] || (_cache[1] = ($event) => handleClose("temporary"))
18000
- }, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.close")), 1)
18001
17978
  ])
17979
+ ]),
17980
+ createElementVNode("div", _hoisted_4$a, [
17981
+ createElementVNode("span", {
17982
+ class: "announce-handle mr-4",
17983
+ onClick: _cache[0] || (_cache[0] = ($event) => handleClose("today"))
17984
+ }, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.closePermanently")), 1),
17985
+ createElementVNode("span", {
17986
+ class: "announce-handle",
17987
+ onClick: _cache[1] || (_cache[1] = ($event) => handleClose("temporary"))
17988
+ }, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.close")), 1)
18002
17989
  ])
18003
17990
  ], 4)) : createCommentVNode("", true);
18004
17991
  };
@@ -18012,7 +17999,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
18012
17999
  loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
18013
18000
  }
18014
18001
  };
18015
- const NoticeModal = defineAsyncComponent(() => import("./notice-BiSOHLC-.js"));
18002
+ const NoticeModal = defineAsyncComponent(() => import("./notice-DYRKKl_O.js"));
18016
18003
  function clearNotice() {
18017
18004
  if (localStorage$2.getItem("validator_email")) {
18018
18005
  localStorage$2.removeItem("validator_email");
@@ -18145,7 +18132,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18145
18132
  const { isMobile } = usePageResize();
18146
18133
  const { widthType } = usePageResize();
18147
18134
  const headerRef = ref(null);
18148
- const { height = 56 } = useElementSize(headerRef);
18135
+ const { height } = useElementSize(headerRef);
18136
+ const { setHeaderHeight } = useHeaderHeight();
18137
+ watch(height, (newHeight) => {
18138
+ if (newHeight) {
18139
+ setHeaderHeight(newHeight);
18140
+ }
18141
+ }, { immediate: true });
18149
18142
  const GrayBgSceneValue = [SceneValue.repo, SceneValue.org, SceneValue.user];
18150
18143
  const headerClassName = computed(() => {
18151
18144
  var _a2, _b;
@@ -18454,6 +18447,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18454
18447
  ], 4)), [
18455
18448
  [unref(vElementExposure), { trigger: (type) => handleStickyNoticeExpo() }]
18456
18449
  ]) : createCommentVNode("", true),
18450
+ createVNode(SiteAnnouncement, { asideCollapseMode: _ctx.asideCollapseMode }, null, 8, ["asideCollapseMode"]),
18457
18451
  withDirectives((openBlock(), createElementBlock("div", {
18458
18452
  class: "g-toolbar w-full overflow-hidden allow-click-stop",
18459
18453
  onClick: withModifiers(handleToolbarClick, ["stop"])
@@ -18587,7 +18581,6 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18587
18581
  ])), [
18588
18582
  [unref(vElementExposure), { trigger: (type) => handleToolbarExpo() }]
18589
18583
  ]),
18590
- createVNode(SiteAnnouncement, { asideCollapseMode: _ctx.asideCollapseMode }, null, 8, ["asideCollapseMode"]),
18591
18584
  _ctx.$slots.info || _ctx.$slots.menu || _ctx.$slots.bodyHeader ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
18592
18585
  renderSlot(_ctx.$slots, "bodyHeader", {}, () => [
18593
18586
  createElementVNode("div", _hoisted_6$4, [
@@ -18809,9 +18802,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18809
18802
  const layoutConfig2 = useLayoutConfig();
18810
18803
  const { t: t2 } = i18n.global;
18811
18804
  const route = useRoute();
18812
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-8_iF9QIA.js"));
18813
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-CGVi2Bxb.js"));
18814
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-BMHfBYfQ.js"));
18805
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-CR2KVxhy.js"));
18806
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-mS_Ka4f5.js"));
18807
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-Cdytkizl.js"));
18815
18808
  const props = __props;
18816
18809
  console.log("slotKeys", props.slotKeys);
18817
18810
  console.log("props", props);
@@ -19588,6 +19581,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19588
19581
  setup(__props) {
19589
19582
  const route = useRoute();
19590
19583
  const layoutConfig2 = useLayoutConfig();
19584
+ const { headerHeight: headerHeight2 } = useHeaderHeight();
19591
19585
  const props = __props;
19592
19586
  const { useReport: useReport2 } = useRequestReport(props.request, props.globalStore);
19593
19587
  provide(
@@ -19693,7 +19687,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19693
19687
  return asideSetShow.value ? (openBlock(), createBlock(ConfigAideContent, {
19694
19688
  key: 0,
19695
19689
  class: normalizeClass(["left-side-bar", { oldWhite: asideSetShowLittleMode.value, higherZIndex: unref(SITE_STATUS).DISABLE }]),
19696
- style: normalizeStyle({ width: mainMarginLeftWidth.value + "px" }),
19690
+ style: normalizeStyle({ width: mainMarginLeftWidth.value + "px", top: unref(headerHeight2) + "px" }),
19697
19691
  sceneValue: _ctx.sceneValue,
19698
19692
  asideDefaultWidth: mainMarginLeftWidth.value,
19699
19693
  asideSetShowLittle: asideSetShowLittleMode.value,
@@ -24630,7 +24624,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24630
24624
  }
24631
24625
  });
24632
24626
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
24633
- const SlidCaptcha = defineAsyncComponent(() => import("./index-CMF2XiQh.js"));
24627
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-BaFyAC9E.js"));
24634
24628
  const useSlidCaptcha = () => {
24635
24629
  const { mount, unMount } = usePopup("slid-captcha-popup");
24636
24630
  const open = (config) => {
@@ -24649,7 +24643,7 @@ const useSlidCaptcha = () => {
24649
24643
  close: unMount
24650
24644
  };
24651
24645
  };
24652
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-DCFq1yYx.js"));
24646
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-9zCtm1lw.js"));
24653
24647
  const useYunpianCaptcha = () => {
24654
24648
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
24655
24649
  const open = (config) => {
@@ -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-cnkFQ4gP.js";
4
- import { t as transWebUrl } from "./transWebUrl-CqOvYb8I.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-CjLnDEWk.js";
4
+ import { t as transWebUrl } from "./transWebUrl-DPNZr3QH.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";
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { M, N, Q, K, S, J, A, V, P, U, O } from "./index-cnkFQ4gP.js";
1
+ import { M, N, Q, K, S, J, A, V, P, U, O } from "./index-CjLnDEWk.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-cnkFQ4gP.js";
2
+ import { i as isPhone, u as useModel } from "./index-CjLnDEWk.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.32",
3
+ "version": "1.9.34",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",