vue-layout-gitcode 1.5.114 → 1.5.116

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-DgUmjla4.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-mYwm68Jr.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-D-CF6T1_.js";
7
- import "./transWebUrl-AAFCAHRx.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-B2lmaS1O.js";
7
+ import "./transWebUrl-CHU5kGN5.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 { q as useLayoutConfig, w as ThemeType, x as currentTheme, g as LANG_ZH, y as LANG_EN, z as getLocaleLang, G as GIcon, A as emitEvent, B as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-DgUmjla4.js";
2
+ import { q as useLayoutConfig, w as ThemeType, x as currentTheme, g as LANG_ZH, y as LANG_EN, z as getLocaleLang, G as GIcon, A as emitEvent, B as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-mYwm68Jr.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, q as useLayoutConfig, G as GIcon, C as _sfc_main$1, D as loadAsideData, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, F as asideRequest, _ as _export_sfc } from "./index-DgUmjla4.js";
2
+ import { a as i18n, q as useLayoutConfig, G as GIcon, C as _sfc_main$1, D as loadAsideData, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, F as asideRequest, _ as _export_sfc } from "./index-mYwm68Jr.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-AAFCAHRx.js";
4
+ import { t as transWebUrl } from "./transWebUrl-CHU5kGN5.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, q as useLayoutConfig, G as GIcon, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, _ as _export_sfc } from "./index-DgUmjla4.js";
2
+ import { a as i18n, q as useLayoutConfig, G as GIcon, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, _ as _export_sfc } from "./index-mYwm68Jr.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-AAFCAHRx.js";
4
+ import { t as transWebUrl } from "./transWebUrl-CHU5kGN5.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-DgUmjla4.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-mYwm68Jr.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-DgUmjla4.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-mYwm68Jr.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-DgUmjla4.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-mYwm68Jr.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, createBlock, createVNode, withCtx } from "vue";
2
- import { u as useReportRepo, S as SearchRepoCard } from "./index-D-CF6T1_.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-DgUmjla4.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-B2lmaS1O.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-mYwm68Jr.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-DgUmjla4.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-mYwm68Jr.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 } from "./index-DgUmjla4.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-mYwm68Jr.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, inject, createElementBlock, openBlock, normalizeClass, createElementVNode, withModifiers, withDirectives, vShow, createVNode, computed, createCommentVNode, normalizeStyle, createTextVNode, onMounted, onUnmounted, Fragment, createBlock, renderList, withCtx, reactive } from "vue";
2
2
  import debounce from "lodash/debounce";
3
- import { t as transferNumber, G as GIcon, s as setLoginTriggerSource, d as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, f as useTimeFormat, L as LANG_KEY, g as LANG_ZH, j as usePageResize, k as isGstarRepo, m as _sfc_main$9, n as isIncubationRepo, o as highlightWords, p as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-DgUmjla4.js";
4
- import { t as transWebUrl } from "./transWebUrl-AAFCAHRx.js";
3
+ import { t as transferNumber, G as GIcon, s as setLoginTriggerSource, d as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, f as useTimeFormat, L as LANG_KEY, g as LANG_ZH, j as usePageResize, k as isGstarRepo, m as _sfc_main$9, n as isIncubationRepo, o as highlightWords, p as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-mYwm68Jr.js";
4
+ import { t as transWebUrl } from "./transWebUrl-CHU5kGN5.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";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, onMounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
2
2
  import { FixedOverlay } from "vue-devui-lal/overlay";
3
- import { q as useLayoutConfig, _ as _export_sfc } from "./index-DgUmjla4.js";
3
+ import { q as useLayoutConfig, _ as _export_sfc } from "./index-mYwm68Jr.js";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "index",
@@ -10981,11 +10981,11 @@ const _hoisted_6$9 = {
10981
10981
  key: 1,
10982
10982
  class: "tools-list"
10983
10983
  };
10984
- const _hoisted_7$6 = { class: "home-nav-tooltip-wrapper" };
10985
- const _hoisted_8$5 = { class: "home-nav-text" };
10986
- const _hoisted_9$4 = { class: "text-[var(--theme-placeholder)] text-[10px]" };
10987
- const _hoisted_10$4 = { class: "qrcode-wrapper" };
10988
- const _hoisted_11$4 = { class: "pl-[8px]" };
10984
+ const _hoisted_7$7 = { class: "home-nav-tooltip-wrapper" };
10985
+ const _hoisted_8$6 = { class: "home-nav-text" };
10986
+ const _hoisted_9$5 = { class: "text-[var(--theme-placeholder)] text-[10px]" };
10987
+ const _hoisted_10$5 = { class: "qrcode-wrapper" };
10988
+ const _hoisted_11$5 = { class: "pl-[8px]" };
10989
10989
  const _hoisted_12$4 = { class: "tools-list-item" };
10990
10990
  const _hoisted_13$2 = { class: "g-card px-5 pt-4 pb-5 w-[410px]" };
10991
10991
  const _hoisted_14$2 = {
@@ -11270,10 +11270,10 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
11270
11270
  "overlay-class": "tools-tag-tooltip"
11271
11271
  }, {
11272
11272
  content: withCtx(() => [
11273
- createElementVNode("div", _hoisted_7$6, [
11274
- createElementVNode("div", _hoisted_8$5, [
11273
+ createElementVNode("div", _hoisted_7$7, [
11274
+ createElementVNode("div", _hoisted_8$6, [
11275
11275
  createElementVNode("p", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.userFeedback01")), 1),
11276
- createElementVNode("p", _hoisted_9$4, toDisplayString$1(unref(t2)("gitCodeLayout.home.userFeedback02")), 1)
11276
+ createElementVNode("p", _hoisted_9$5, toDisplayString$1(unref(t2)("gitCodeLayout.home.userFeedback02")), 1)
11277
11277
  ])
11278
11278
  ])
11279
11279
  ]),
@@ -11303,8 +11303,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
11303
11303
  "overlay-class": "tools-tag-tooltip"
11304
11304
  }, {
11305
11305
  content: withCtx(() => [
11306
- createElementVNode("div", _hoisted_10$4, [
11307
- createElementVNode("div", _hoisted_11$4, toDisplayString$1(unref(t2)("gitCodeLayout.home.followUs")), 1),
11306
+ createElementVNode("div", _hoisted_10$5, [
11307
+ createElementVNode("div", _hoisted_11$5, toDisplayString$1(unref(t2)("gitCodeLayout.home.followUs")), 1),
11308
11308
  _cache[7] || (_cache[7] = createElementVNode("img", {
11309
11309
  class: "qrcode",
11310
11310
  src: "https://cdn-static.gitcode.com/static/images/points/wx_gitcode.png"
@@ -14706,15 +14706,27 @@ const _hoisted_2$k = ["src"];
14706
14706
  const _hoisted_3$i = { class: "right-content cursor-pointer text-black dark:text-white text-[16px]" };
14707
14707
  const _hoisted_4$f = { class: "pl-[10px]" };
14708
14708
  const _hoisted_5$c = { class: "list-menu-ai-home p-[12px]" };
14709
- const _hoisted_6$8 = ["src"];
14709
+ const _hoisted_6$8 = {
14710
+ key: 0,
14711
+ class: "ai-menu-item"
14712
+ };
14713
+ const _hoisted_7$6 = ["src"];
14714
+ const _hoisted_8$5 = { class: "flex items-center gap-[10px] w-full py-[12px] dark:text-white text-black" };
14715
+ const _hoisted_9$4 = ["src"];
14716
+ const _hoisted_10$4 = ["src"];
14717
+ const _hoisted_11$4 = { class: "text-[16px]" };
14710
14718
  const _sfc_main$A = /* @__PURE__ */ defineComponent({
14711
14719
  __name: "AiHubMenusMobile",
14712
- props: ["activeMenu", "menuList", "isRouterLink", "scene"],
14720
+ props: ["activeMenu", "menuList", "isRouterLink", "scene", "collapseMenus"],
14713
14721
  setup(__props) {
14714
14722
  const changeIcon = ref(false);
14715
14723
  const rotateIcon = computed(() => {
14716
14724
  return changeIcon.value ? "gt-line-up" : "gt-line-down";
14717
14725
  });
14726
+ const showExpand = ref(false);
14727
+ function handleExpand() {
14728
+ showExpand.value = !showExpand.value;
14729
+ }
14718
14730
  return (_ctx, _cache) => {
14719
14731
  return __props.activeMenu.menueKey ? (openBlock(), createElementBlock("section", _hoisted_1$u, [
14720
14732
  __props.activeMenu.icon || __props.activeMenu.img ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
@@ -14736,12 +14748,63 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
14736
14748
  createElementVNode("ul", _hoisted_5$c, [
14737
14749
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.menuList, (item) => {
14738
14750
  var _a;
14739
- return openBlock(), createElementBlock("li", {
14751
+ return openBlock(), createElementBlock(Fragment, {
14752
+ key: item.label
14753
+ }, [
14754
+ item.type !== "dropdownMenu" ? (openBlock(), createElementBlock("li", _hoisted_6$8, [
14755
+ createVNode(GLink, {
14756
+ class: "icon-title-wrap gap-[10px] w-full py-[12px] dark:text-white text-black",
14757
+ href: __props.isRouterLink && item.to ? void 0 : item.url,
14758
+ to: __props.isRouterLink && item.to ? item.to : void 0
14759
+ }, {
14760
+ default: withCtx(() => [
14761
+ item.img ? (openBlock(), createElementBlock("img", {
14762
+ key: 0,
14763
+ src: item.img,
14764
+ class: "w-[16px]"
14765
+ }, null, 8, _hoisted_7$6)) : (openBlock(), createBlock(GIcon, {
14766
+ key: 1,
14767
+ class: "menue-icon",
14768
+ name: item.icon
14769
+ }, null, 8, ["name"])),
14770
+ createElementVNode("span", null, toDisplayString$1(item.label), 1)
14771
+ ]),
14772
+ _: 2
14773
+ }, 1032, ["href", "to"]),
14774
+ withDirectives(createVNode(GIcon, {
14775
+ name: "gt-line-ok1",
14776
+ class: "ml-[10px]"
14777
+ }, null, 512), [
14778
+ [vShow, ((_a = __props.activeMenu) == null ? void 0 : _a.url) === item.url]
14779
+ ])
14780
+ ])) : (openBlock(), createElementBlock("li", {
14781
+ key: 1,
14782
+ class: "ai-menu-item",
14783
+ onClick: withModifiers(handleExpand, ["stop"])
14784
+ }, [
14785
+ createElementVNode("div", _hoisted_8$5, [
14786
+ createElementVNode("img", {
14787
+ src: item.img,
14788
+ class: "w-[14px]"
14789
+ }, null, 8, _hoisted_9$4),
14790
+ createElementVNode("span", null, toDisplayString$1(item.label), 1)
14791
+ ]),
14792
+ createVNode(GIcon, {
14793
+ name: "gt-line-down",
14794
+ class: "ml-[10px]",
14795
+ style: normalizeStyle({ transform: showExpand.value ? "rotate(180deg)" : "rotate(0deg)" })
14796
+ }, null, 8, ["style"])
14797
+ ]))
14798
+ ], 64);
14799
+ }), 128)),
14800
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.collapseMenus, (item) => {
14801
+ var _a;
14802
+ return withDirectives((openBlock(), createElementBlock("li", {
14740
14803
  key: item.label,
14741
14804
  class: "ai-menu-item"
14742
14805
  }, [
14743
14806
  createVNode(GLink, {
14744
- class: "icon-title-wrap w-full py-[12px] dark:text-white text-black",
14807
+ class: "flex items-center gap-[10px] w-full py-[12px] dark:text-white text-black",
14745
14808
  href: __props.isRouterLink && item.to ? void 0 : item.url,
14746
14809
  to: __props.isRouterLink && item.to ? item.to : void 0
14747
14810
  }, {
@@ -14750,12 +14813,12 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
14750
14813
  key: 0,
14751
14814
  src: item.img,
14752
14815
  class: "w-[16px]"
14753
- }, null, 8, _hoisted_6$8)) : (openBlock(), createBlock(GIcon, {
14816
+ }, null, 8, _hoisted_10$4)) : (openBlock(), createBlock(GIcon, {
14754
14817
  key: 1,
14755
14818
  class: "menue-icon",
14756
14819
  name: item.icon
14757
14820
  }, null, 8, ["name"])),
14758
- createElementVNode("span", null, toDisplayString$1(item.label), 1)
14821
+ createElementVNode("span", _hoisted_11$4, toDisplayString$1(item.label), 1)
14759
14822
  ]),
14760
14823
  _: 2
14761
14824
  }, 1032, ["href", "to"]),
@@ -14765,6 +14828,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
14765
14828
  }, null, 512), [
14766
14829
  [vShow, ((_a = __props.activeMenu) == null ? void 0 : _a.url) === item.url]
14767
14830
  ])
14831
+ ])), [
14832
+ [vShow, showExpand.value]
14768
14833
  ]);
14769
14834
  }), 128))
14770
14835
  ])
@@ -14786,6 +14851,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
14786
14851
  });
14787
14852
  const AiHubMenusMobile = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-vue-layout-gitcode"]]);
14788
14853
  const TianQiLogo = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.30092%202.27987C8.28135%201.69577%2010.1198%202.03026%2011.7932%203.243C12.3951%203.67891%2012.5486%204.40313%2012.1951%204.99446C11.9008%205.48728%2011.3547%205.71063%2010.7754%205.57549C10.3794%205.48294%2010.0999%205.07196%2010.0488%204.51328C10.0424%204.44895%2010.0291%204.38384%2010.0129%204.30469C10.0037%204.25983%209.99358%204.21033%209.98321%204.15364C9.89703%204.20281%209.81722%204.24768%209.74173%204.29013C9.62114%204.35794%209.51127%204.41973%209.40322%204.48337C8.9703%204.75662%208.46098%204.88171%207.95143%204.83996C7.63501%204.80585%207.31511%204.82644%207.0056%204.90081C6.46142%205.04964%205.96663%204.95714%205.46392%204.75438C5.3347%204.71172%205.20322%204.67626%205.0701%204.64819C5.07491%204.74687%205.07874%204.84048%205.08242%204.93074C5.08934%205.10033%205.09578%205.25817%205.10741%205.41581C5.12683%205.67588%205.0839%205.91926%204.99446%206.15433C3.67934%207.26749%203.03659%209.02618%203.48693%2010.7454C3.7999%2011.9402%204.58237%2012.8928%205.59851%2013.472C4.86676%2013.1546%204.19657%2012.6851%203.60035%2012.0492C0.569753%208.81687%202.03082%203.54584%206.30092%202.27987Z'%20fill='url(%23paint0_linear_33_582)'/%3e%3cpath%20d='M5.02758%206.09912C4.98592%206.22217%204.93135%206.34278%204.86591%206.46205C4.46961%207.16211%204.26613%207.95564%204.27642%208.76097C4.30395%2010.0668%205.08751%2011.0368%206.40182%2011.4535C7.55603%2011.8198%208.7168%2011.8038%209.8764%2011.5186C10.5117%2011.3654%2011.0864%2011.0238%2011.5259%2010.5381C11.634%2010.4206%2011.73%2010.2924%2011.8123%2010.1554C12.1483%209.58547%2011.924%209.05279%2011.2707%208.94431C11.0417%208.90629%2010.8073%208.90393%2010.5724%208.90157C10.4088%208.89992%209.68673%208.87741%209.5243%208.86369C8.96315%208.81737%208.73264%208.79986%208.40345%208.70009C8.107%208.61024%207.86691%208.42956%207.83888%208.16143C7.7975%207.76561%207.94103%207.49749%208.22909%207.337C8.50679%207.18641%208.81167%207.09322%209.12579%207.0629C10.1312%206.96587%2011.1331%207.03782%2011.9503%207.24211C13.5748%207.577%2014.4194%209.19023%2013.639%2010.6644C12.5384%2012.7421%2010.8142%2013.9409%208.42024%2013.9974C7.42684%2014.0214%206.4963%2013.8641%205.64774%2013.5037C4.59858%2012.9018%203.80713%2011.9507%203.49578%2010.7621C3.05136%209.06548%203.6966%207.31096%205.02758%206.09912Z'%20fill='url(%23paint1_linear_33_582)'/%3e%3cpath%20d='M7.98853%207.54053C7.96659%207.6126%207.95782%207.69036%207.96658%207.77415C7.99462%208.04228%208.35961%208.23333%208.65607%208.32319C8.98526%208.42296%209.29614%208.4367%209.85729%208.48301C10.0197%208.49674%2010.7418%208.51925%2010.9054%208.52089C11.1403%208.52326%2011.3383%208.54053%2011.5672%208.57855C12.1418%208.67396%2012.5632%209.15313%2012.295%209.88092C12.244%2010.0469%2012.1035%2010.3278%2011.8865%2010.5449C11.4233%2011.008%2010.7373%2011.5008%209.85729%2011.694C8.69437%2011.9494%207.56305%2011.8688%206.40885%2011.5025C6.19202%2011.4338%205.99853%2011.3382%205.82642%2011.2208C6.00502%2011.3121%206.19745%2011.3908%206.40284%2011.4559C7.55704%2011.8222%208.71781%2011.8062%209.87741%2011.521C10.5127%2011.3678%2011.0874%2011.0262%2011.5269%2010.5405C11.6351%2010.423%2011.731%2010.2947%2011.8134%2010.1577C12.1494%209.58785%2011.925%209.05517%2011.2717%208.94669C11.0428%208.90867%2010.8083%208.90631%2010.5735%208.90394C10.4098%208.9023%209.68775%208.87979%209.52531%208.86606C8.96417%208.81975%208.73366%208.80224%208.40447%208.70247C8.10801%208.61262%207.86793%208.43194%207.83989%208.16381C7.81254%207.90219%207.86598%207.69637%207.98853%207.54053Z'%20fill='url(%23paint2_linear_33_582)'/%3e%3cpath%20d='M4.63091%206.49365C3.7169%207.69769%203.39534%209.31585%203.91292%2010.8533C4.46284%2012.4867%205.8223%2013.6199%207.39672%2013.9591C6.77982%2013.8906%206.1924%2013.742%205.63976%2013.5073C4.59067%2012.9054%203.79928%2011.9543%203.48795%2010.7658C3.08928%209.24381%203.51435%207.68111%204.63091%206.49365Z'%20fill='url(%23paint3_linear_33_582)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_33_582'%20x1='10.677'%20y1='2'%20x2='1.99512'%20y2='11.2246'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%230554C8'/%3e%3cstop%20offset='1'%20stop-color='%2300C0FF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_33_582'%20x1='5.52241'%20y1='10.6817'%20x2='9.86338'%20y2='6.61207'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%230067D4'/%3e%3cstop%20offset='1'%20stop-color='%2300B8FB'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_33_582'%20x1='9.32139'%20y1='8.78262'%20x2='9.32139'%20y2='12.0383'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%230167D4'/%3e%3cstop%20offset='0.432762'%20stop-color='%23018BE5'/%3e%3cstop%20offset='1'%20stop-color='%23016CD6'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_33_582'%20x1='4.16541'%20y1='8.51152'%20x2='7.03841'%20y2='13.9503'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2342C6F9'/%3e%3cstop%20offset='1'%20stop-color='%236DDDFE'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
14854
+ const PLANE_PAPER = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1756973138034'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='46941'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M204.8%20640V166.4a38.4%2038.4%200%200%201%2038.4-38.4h614.4a38.4%2038.4%200%200%201%2038.4%2038.4v614.4a115.2%20115.2%200%200%201-115.2%20115.2H243.2A115.2%20115.2%200%200%201%20128%20780.8V704h614.4v76.8a38.4%2038.4%200%200%200%2076.8%200V640H204.8z'%20fill='%2399A1AF'%20opacity='.5'%20p-id='46942'%3e%3c/path%3e%3cpath%20d='M320%20256m32%200l256%200q32%200%2032%2032l0%200q0%2032-32%2032l-256%200q-32%200-32-32l0%200q0-32%2032-32Z'%20fill='%2399A1AF'%20p-id='46943'%3e%3c/path%3e%3cpath%20d='M320%20384m32%200l320%200q32%200%2032%2032l0%200q0%2032-32%2032l-320%200q-32%200-32-32l0%200q0-32%2032-32Z'%20fill='%2399A1AF'%20p-id='46944'%3e%3c/path%3e%3c/svg%3e";
14855
+ const PLANE_PAPER_BLUE = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20opacity='0.5'%20d='M3.2%2010V2.6C3.2%202.44087%203.26321%202.28826%203.37574%202.17574C3.48826%202.06321%203.64087%202%203.8%202H13.4C13.5591%202%2013.7117%202.06321%2013.8243%202.17574C13.9368%202.28826%2014%202.44087%2014%202.6V12.2C14%2012.6774%2013.8104%2013.1352%2013.4728%2013.4728C13.1352%2013.8104%2012.6774%2014%2012.2%2014H3.8C3.32261%2014%202.86477%2013.8104%202.52721%2013.4728C2.18964%2013.1352%202%2012.6774%202%2012.2V11H11.6V12.2C11.6%2012.3591%2011.6632%2012.5117%2011.7757%2012.6243C11.8883%2012.7368%2012.0409%2012.8%2012.2%2012.8C12.3591%2012.8%2012.5117%2012.7368%2012.6243%2012.6243C12.7368%2012.5117%2012.8%2012.3591%2012.8%2012.2V10H3.2Z'%20fill='%232B7FFF'/%3e%3crect%20x='5'%20y='4'%20width='5'%20height='1'%20rx='0.5'%20fill='%232B7FFF'/%3e%3crect%20x='5'%20y='6'%20width='6'%20height='1'%20rx='0.5'%20fill='%232B7FFF'/%3e%3c/svg%3e";
14789
14856
  const _hoisted_1$t = ["src"];
14790
14857
  const _hoisted_2$j = { class: "ai-hub-menus-item_label" };
14791
14858
  const _hoisted_3$h = {
@@ -14869,7 +14936,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
14869
14936
  {
14870
14937
  type: "dropdownMenu",
14871
14938
  // 代表下拉菜单
14872
- repoType: "community"
14939
+ repoType: "community",
14940
+ img: ICON_VECTOR,
14941
+ label: t2("gitCodeLayout.aihub.community")
14873
14942
  },
14874
14943
  // {
14875
14944
  // label: t('gitCodeLayout.aihub.competition'),
@@ -14898,7 +14967,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
14898
14967
  if (item.repoType === "tianqi" && !["xl", "xxl"].includes(widthType.value)) {
14899
14968
  return false;
14900
14969
  }
14901
- if (item.repoType === "community" && !["md", "xl", "xxl"].includes(widthType.value)) {
14970
+ if (item.repoType === "community" && !["sm", "md", "xl", "xxl"].includes(widthType.value)) {
14902
14971
  return false;
14903
14972
  }
14904
14973
  return true;
@@ -14923,18 +14992,18 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
14923
14992
  // repoType: 'competition',
14924
14993
  // hoverClass: 'hover:!text-[#00BC7D]',
14925
14994
  // },
14926
- // {
14927
- // label: t('gitCodeLayout.aihub.papers'),
14928
- // img: PLANE_PAPER,
14929
- // activeImg: PLANE_PAPER_BLUE,
14930
- // activeIcon: 'gt-plane-collection-color',
14931
- // whiteIcon: 'gt-a-plane-ModelArea',
14932
- // to: '/papers',
14933
- // url: `${layoutConfig.VITE_AI_HOST}/papers`,
14934
- // menueKey: RouteNameEnum.AI_PAPERS,
14935
- // repoType: 'paper',
14936
- // hoverClass:'hover:!text-[#2B7FFF]'
14937
- // },
14995
+ {
14996
+ label: t2("gitCodeLayout.aihub.papers"),
14997
+ img: PLANE_PAPER,
14998
+ activeImg: PLANE_PAPER_BLUE,
14999
+ activeIcon: "gt-plane-collection-color",
15000
+ whiteIcon: "gt-a-plane-ModelArea",
15001
+ to: "/papers",
15002
+ url: `${layoutConfig2.VITE_AI_HOST}/papers`,
15003
+ menueKey: RouteNameEnum.AI_PAPERS,
15004
+ repoType: "paper",
15005
+ hoverClass: "hover:!text-[#2B7FFF]"
15006
+ },
14938
15007
  {
14939
15008
  label: t2("gitCodeLayout.aihub.modelGuide"),
14940
15009
  icon: "gt-plane-guidebook",
@@ -15014,10 +15083,11 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
15014
15083
  key: 0,
15015
15084
  activeMenu: activeMenu.value,
15016
15085
  menuList: menus.value,
15086
+ collapseMenus: collapseMenus.value,
15017
15087
  isRouterLink: isRouterLink.value,
15018
15088
  scene: __props.scene,
15019
15089
  class: "md:hidden"
15020
- }, null, 8, ["activeMenu", "menuList", "isRouterLink", "scene"])) : createCommentVNode("", true),
15090
+ }, null, 8, ["activeMenu", "menuList", "collapseMenus", "isRouterLink", "scene"])) : createCommentVNode("", true),
15021
15091
  activeMenu.value.menueKey && !isRouterLink.value ? (openBlock(), createBlock(GLink, {
15022
15092
  key: 1,
15023
15093
  class: "flex items-center gap-[12px] md:!hidden",
@@ -17275,13 +17345,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17275
17345
  var _a;
17276
17346
  const layoutConfig2 = useLayoutConfig();
17277
17347
  const { t: $t } = i18n.global;
17278
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BGV4onUa.js"));
17279
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-CBfLv_x3.js"));
17280
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-kLw7nX9s.js"));
17281
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CT3itRrj.js"));
17282
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-B7vsMp47.js"));
17283
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DuzGmVL9.js"));
17284
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-pgMoeT39.js"));
17348
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DzK6XGPc.js"));
17349
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-hDgI-KC_.js"));
17350
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-C2Z3BcBc.js"));
17351
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BTvq6gnw.js"));
17352
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-C-oAGiya.js"));
17353
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-B1rUd6Nt.js"));
17354
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-ansAJ3uE.js"));
17285
17355
  const props = __props;
17286
17356
  const repoInfo = inject("repoInfo");
17287
17357
  const orgInfo = inject("orgInfo");
@@ -17924,7 +17994,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
17924
17994
  loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
17925
17995
  }
17926
17996
  };
17927
- const NoticeModal = defineAsyncComponent(() => import("./notice-CO2iOgY2.js"));
17997
+ const NoticeModal = defineAsyncComponent(() => import("./notice-CONmPGoj.js"));
17928
17998
  function clearNotice() {
17929
17999
  if (localStorage$2.getItem("validator_email")) {
17930
18000
  localStorage$2.removeItem("validator_email");
@@ -18598,9 +18668,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18598
18668
  const layoutConfig2 = useLayoutConfig();
18599
18669
  const { t: t2 } = i18n.global;
18600
18670
  const route = useRoute();
18601
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-DQ3Jy4TO.js"));
18602
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-t6GisqhR.js"));
18603
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-CygCCqel.js"));
18671
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-DzfmfwBb.js"));
18672
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-CYmS-tWQ.js"));
18673
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-CWlYKWFt.js"));
18604
18674
  const props = __props;
18605
18675
  const useReport2 = inject("useReport");
18606
18676
  const userInfo = inject("userInfo");
@@ -24146,7 +24216,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24146
24216
  }
24147
24217
  });
24148
24218
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
24149
- const SlidCaptcha = defineAsyncComponent(() => import("./index-UDyxMHYL.js"));
24219
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-By5_lquh.js"));
24150
24220
  const useSlidCaptcha = () => {
24151
24221
  const { mount, unMount } = usePopup("slid-captcha-popup");
24152
24222
  const open = (config) => {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { J, K, O, I, S, H, x, Q, N, P, M } from "./index-DgUmjla4.js";
1
+ import { J, K, O, I, S, H, x, Q, N, P, M } from "./index-mYwm68Jr.js";
2
2
  export {
3
3
  J as GitCodeAside,
4
4
  K 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-DgUmjla4.js";
2
+ import { i as isPhone, u as useModel } from "./index-mYwm68Jr.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.5.114",
3
+ "version": "1.5.116",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",