vue-layout-gitcode 1.5.97 → 1.5.98

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-CfIXnorS.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-DQdDCiSm.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-BqiHHJ72.js";
7
- import "./transWebUrl-D_GO9ZG3.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-BKrn7naS.js";
7
+ import "./transWebUrl-B5xLSPRg.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-CfIXnorS.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-DQdDCiSm.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-CfIXnorS.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-DQdDCiSm.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-D_GO9ZG3.js";
4
+ import { t as transWebUrl } from "./transWebUrl-B5xLSPRg.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-CfIXnorS.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-DQdDCiSm.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-D_GO9ZG3.js";
4
+ import { t as transWebUrl } from "./transWebUrl-B5xLSPRg.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-CfIXnorS.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-DQdDCiSm.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-CfIXnorS.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-DQdDCiSm.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-CfIXnorS.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-DQdDCiSm.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-BqiHHJ72.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-CfIXnorS.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-BKrn7naS.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-DQdDCiSm.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-CfIXnorS.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-DQdDCiSm.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-CfIXnorS.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-DQdDCiSm.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,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-CfIXnorS.js";
3
+ import { q as useLayoutConfig, _ as _export_sfc } from "./index-DQdDCiSm.js";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "index",
@@ -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-CfIXnorS.js";
4
- import { t as transWebUrl } from "./transWebUrl-D_GO9ZG3.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-DQdDCiSm.js";
4
+ import { t as transWebUrl } from "./transWebUrl-B5xLSPRg.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";
@@ -11022,7 +11022,7 @@ const _hoisted_3$k = {
11022
11022
  class: "tooltip-sign"
11023
11023
  };
11024
11024
  const _hoisted_4$g = { class: "home-nav-tooltip-wrapper" };
11025
- const _hoisted_5$c = { class: "home-nav-text" };
11025
+ const _hoisted_5$d = { class: "home-nav-text" };
11026
11026
  const _hoisted_6$9 = {
11027
11027
  key: 1,
11028
11028
  class: "tools-list"
@@ -11290,7 +11290,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
11290
11290
  }, {
11291
11291
  content: withCtx(() => [
11292
11292
  createElementVNode("div", _hoisted_4$g, [
11293
- createElementVNode("div", _hoisted_5$c, toDisplayString$1(unref(t2)("gitCodeLayout.userSetting.menu.growthCenter")), 1)
11293
+ createElementVNode("div", _hoisted_5$d, toDisplayString$1(unref(t2)("gitCodeLayout.userSetting.menu.growthCenter")), 1)
11294
11294
  ])
11295
11295
  ]),
11296
11296
  default: withCtx(() => [
@@ -14641,26 +14641,8 @@ function headRequest(request) {
14641
14641
  }
14642
14642
  };
14643
14643
  }
14644
- const aiThemeMenuId = "ai-theme";
14645
- var RouteNameEnum = /* @__PURE__ */ ((RouteNameEnum2) => {
14646
- RouteNameEnum2["HOME"] = "AiHubHome";
14647
- RouteNameEnum2["AI_MODELS"] = "ai-models";
14648
- RouteNameEnum2["AI_DATASETS"] = "ai-datasets";
14649
- RouteNameEnum2["AI_ZONE"] = "ai-zone";
14650
- RouteNameEnum2["AI_SPACE"] = "ai-space";
14651
- RouteNameEnum2["AI_THEME_DETAIL"] = "ai-theme-detail";
14652
- RouteNameEnum2["AI_INVITE"] = "ai-invite";
14653
- RouteNameEnum2["RACE_DETAIL"] = "race-detail";
14654
- RouteNameEnum2["AI_COMPETITION"] = "ai-competition";
14655
- RouteNameEnum2["WORK_MANAGEMENT"] = "work-management";
14656
- RouteNameEnum2["COMPETITION_RANKING"] = "ranking";
14657
- RouteNameEnum2["AI_THEME"] = "theme";
14658
- RouteNameEnum2["AI_COLLECTIONS"] = "collections";
14659
- RouteNameEnum2["AI_PAPERS"] = "paper";
14660
- return RouteNameEnum2;
14661
- })(RouteNameEnum || {});
14662
14644
  const ICON_VECTOR = "data:image/svg+xml,%3csvg%20width='16'%20height='14'%20viewBox='0%200%2016%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.72%204.02443C14.704%204.00843%2014.704%203.97643%2014.704%203.96043C14.544%202.15243%2014.112%201.03243%2013.904%200.568434C13.84%200.440434%2013.68%200.408434%2013.584%200.504434C13.184%200.872434%2012.224%201.75243%2011.408%202.64843C11.344%202.71243%2011.264%202.72843%2011.184%202.69643C10.64%202.50443%208.75201%202.12043%205.39201%202.50443C5.32801%202.50443%205.26401%202.48843%205.23201%202.45643C4.99201%202.23243%204.11201%201.40043%202.94401%200.296434C2.84801%200.200434%202.70401%200.216434%202.62401%200.328434C2.33601%200.792434%201.52001%202.39243%201.44001%203.46443C1.44001%203.48043%201.44001%203.49643%201.42401%203.52843C1.21601%203.96043%20-1.58399%209.46443%201.29601%2011.6404L1.32801%2011.6724C1.48801%2011.7844%201.66401%2011.8964%201.85601%2011.9924C2.00001%2012.0724%202.16001%2012.1204%202.32001%2012.1684C2.56001%2012.2804%202.83201%2012.3764%203.10401%2012.4404V12.6004C3.10401%2012.6004%202.97601%2013.6564%204.08001%2013.7524C5.00801%2013.8324%205.07201%2013.1444%205.07201%2012.7124H10.864C10.864%2013.1604%2010.928%2013.8324%2011.856%2013.7524C12.96%2013.6564%2012.832%2012.6004%2012.832%2012.6004V12.4404C13.344%2012.3284%2013.856%2012.2004%2014.256%2012.0084H14.272C17.744%2010.4564%2014.96%204.50443%2014.72%204.02443ZM4.22401%209.28843C2.75201%209.28843%201.56801%208.08843%201.56801%206.63243C1.56801%205.16043%202.76801%203.97643%204.22401%203.97643C5.68001%203.97643%206.88001%205.14443%206.88001%206.61643C6.88001%208.08843%205.69601%209.28843%204.22401%209.28843ZM7.69601%2010.3124C7.40801%2010.3124%207.18401%209.92843%207.18401%209.44843C7.18401%208.96843%207.40801%208.58443%207.69601%208.58443C7.98401%208.58443%208.20801%208.96843%208.20801%209.44843C8.20801%209.92843%207.98401%2010.3124%207.69601%2010.3124ZM12.064%209.44843C10.688%209.44843%209.55201%208.32843%209.55201%206.93643C9.55201%205.54443%2010.688%204.44043%2012.064%204.44043C13.44%204.44043%2014.576%205.56043%2014.576%206.95243C14.576%208.34443%2013.456%209.44843%2012.064%209.44843Z'%20fill='%23105EF5'/%3e%3c/svg%3e";
14663
- const _hoisted_1$v = { class: "flex items-center justify-center gap-[6px] px-[8px]" };
14645
+ const _hoisted_1$v = { class: "flex items-center justify-center gap-[6px] px-[8px] cursor-pointer" };
14664
14646
  const _hoisted_2$l = ["src"];
14665
14647
  const _hoisted_3$j = ["src"];
14666
14648
  const _sfc_main$B = /* @__PURE__ */ defineComponent({
@@ -14700,7 +14682,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
14700
14682
  onMouseenter: ($event) => handleMouseEnter(item),
14701
14683
  onMouseleave: handleMouseLeave,
14702
14684
  key: item.label,
14703
- class: ["w-[172px] p-[6px] flex items-center gap-[6px] cursor-pointer", ((_a = activeItem.value) == null ? void 0 : _a.repoType) === item.repoType ? "bg-[var(--theme-overlay-hover-bg)]" : ""]
14685
+ class: ["w-[172px] p-[6px] flex items-center gap-[6px]", ((_a = activeItem.value) == null ? void 0 : _a.repoType) === item.repoType ? "bg-[var(--theme-overlay-hover-bg)]" : ""]
14704
14686
  }, { ref_for: true }, __props.isRouterLink ? { to: item.to } : { href: item.url }), {
14705
14687
  default: withCtx(() => {
14706
14688
  var _a2, _b, _c;
@@ -14743,6 +14725,23 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
14743
14725
  };
14744
14726
  }
14745
14727
  });
14728
+ var RouteNameEnum = /* @__PURE__ */ ((RouteNameEnum2) => {
14729
+ RouteNameEnum2["HOME"] = "AiHubHome";
14730
+ RouteNameEnum2["AI_MODELS"] = "ai-models";
14731
+ RouteNameEnum2["AI_DATASETS"] = "ai-datasets";
14732
+ RouteNameEnum2["AI_ZONE"] = "ai-zone";
14733
+ RouteNameEnum2["AI_SPACE"] = "ai-space";
14734
+ RouteNameEnum2["AI_THEME_DETAIL"] = "ai-theme-detail";
14735
+ RouteNameEnum2["AI_INVITE"] = "ai-invite";
14736
+ RouteNameEnum2["RACE_DETAIL"] = "race-detail";
14737
+ RouteNameEnum2["AI_COMPETITION"] = "ai-competition";
14738
+ RouteNameEnum2["WORK_MANAGEMENT"] = "work-management";
14739
+ RouteNameEnum2["COMPETITION_RANKING"] = "ranking";
14740
+ RouteNameEnum2["AI_THEME"] = "theme";
14741
+ RouteNameEnum2["AI_COLLECTIONS"] = "collections";
14742
+ RouteNameEnum2["AI_PAPERS"] = "paper";
14743
+ return RouteNameEnum2;
14744
+ })(RouteNameEnum || {});
14746
14745
  const _hoisted_1$u = {
14747
14746
  key: 0,
14748
14747
  class: "ai-home-mb-menu-wrap md:!hidden"
@@ -14750,7 +14749,7 @@ const _hoisted_1$u = {
14750
14749
  const _hoisted_2$k = ["src"];
14751
14750
  const _hoisted_3$i = { class: "right-content cursor-pointer text-black dark:text-white text-[16px]" };
14752
14751
  const _hoisted_4$f = { class: "pl-[10px]" };
14753
- const _hoisted_5$b = { class: "list-menu-ai-home p-[12px]" };
14752
+ const _hoisted_5$c = { class: "list-menu-ai-home p-[12px]" };
14754
14753
  const _hoisted_6$8 = ["src"];
14755
14754
  const _sfc_main$A = /* @__PURE__ */ defineComponent({
14756
14755
  __name: "AiHubMenusMobile",
@@ -14778,7 +14777,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
14778
14777
  class: "bg-white dark:bg-gray-900"
14779
14778
  }, {
14780
14779
  menu: withCtx(() => [
14781
- createElementVNode("ul", _hoisted_5$b, [
14780
+ createElementVNode("ul", _hoisted_5$c, [
14782
14781
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.menuList, (item) => {
14783
14782
  var _a;
14784
14783
  return openBlock(), createElementBlock("li", {
@@ -14835,8 +14834,12 @@ const PLANE_PAPER = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no
14835
14834
  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";
14836
14835
  const _hoisted_1$t = ["src"];
14837
14836
  const _hoisted_2$j = { class: "ai-hub-menus-item_label" };
14838
- const _hoisted_3$h = { class: "flex items-center gap-[8px] font-semibold" };
14839
- const _hoisted_4$e = { class: "w-[32px] h-[32px] flex items-center justify-center" };
14837
+ const _hoisted_3$h = {
14838
+ key: 0,
14839
+ class: "w-[2px] h-[20px] bg-[#F3F4F6]"
14840
+ };
14841
+ const _hoisted_4$e = { class: "flex items-center gap-[8px] font-semibold" };
14842
+ const _hoisted_5$b = { class: "w-[32px] h-[32px] flex items-center justify-center" };
14840
14843
  const _sfc_main$z = /* @__PURE__ */ defineComponent({
14841
14844
  __name: "AiHubMenus",
14842
14845
  props: ["scene"],
@@ -14851,7 +14854,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
14851
14854
  const { t: t2 } = i18n.global;
14852
14855
  const API = headRequest(inject("request"));
14853
14856
  const repoInfo = inject("repoInfo");
14854
- const { isMobile } = usePageResize();
14857
+ const { isMobile, widthType } = usePageResize();
14855
14858
  const menus = computed(() => {
14856
14859
  const list = [
14857
14860
  {
@@ -14910,7 +14913,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
14910
14913
  // hoverClass:'hover:!text-blue-700'
14911
14914
  // },
14912
14915
  {
14913
- id: aiThemeMenuId
14916
+ type: "dropdownMenu",
14917
+ // 代表下拉菜单
14918
+ repoType: "community"
14914
14919
  },
14915
14920
  // {
14916
14921
  // label: t('gitCodeLayout.aihub.competition'),
@@ -14932,7 +14937,18 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
14932
14937
  repoType: "tianqi"
14933
14938
  }
14934
14939
  ];
14935
- return list.filter((item) => !item.onlyMobile || isMobile.value && isRouterLink.value);
14940
+ return list.filter((item) => {
14941
+ if (item.onlyMobile && !(isMobile.value && isRouterLink.value)) {
14942
+ return false;
14943
+ }
14944
+ if (item.repoType === "tianqi" && !["xl", "xxl"].includes(widthType.value)) {
14945
+ return false;
14946
+ }
14947
+ if (item.repoType === "community" && !["md", "xl", "xxl"].includes(widthType.value)) {
14948
+ return false;
14949
+ }
14950
+ return true;
14951
+ });
14936
14952
  });
14937
14953
  const activeMenu = computed(() => {
14938
14954
  return menus.value.find((item) => {
@@ -14942,6 +14958,17 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
14942
14958
  });
14943
14959
  const collapseMenus = computed(() => {
14944
14960
  return [
14961
+ {
14962
+ label: t2("gitCodeLayout.aihub.competition"),
14963
+ icon: "gt-a-plane-GrowthCenter2",
14964
+ activeIcon: "gt-plane-GrowthCenter-color",
14965
+ whiteIcon: "gt-a-plane-GrowthCenter-2",
14966
+ to: "/competition",
14967
+ url: `${layoutConfig2.VITE_AI_HOST}/competition`,
14968
+ menueKey: RouteNameEnum.AI_COMPETITION,
14969
+ repoType: "competition",
14970
+ hoverClass: "hover:!text-[#00BC7D]"
14971
+ },
14945
14972
  {
14946
14973
  label: t2("gitCodeLayout.aihub.papers"),
14947
14974
  img: PLANE_PAPER,
@@ -14989,7 +15016,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
14989
15016
  }, [
14990
15017
  (openBlock(true), createElementBlock(Fragment, null, renderList(menus.value, (menu, index2) => {
14991
15018
  return openBlock(), createElementBlock(Fragment, { key: index2 }, [
14992
- menu.id !== unref(aiThemeMenuId) ? (openBlock(), createBlock(GLink, {
15019
+ menu.type !== "dropdownMenu" ? (openBlock(), createBlock(GLink, {
14993
15020
  key: 0,
14994
15021
  class: normalizeClass(["ai-hub-menus-item flex items-center gap-[6px] dark:hover:!text-gray-100", menu.hoverClass]),
14995
15022
  href: isRouterLink.value && menu.to ? void 0 : menu.url,
@@ -15017,7 +15044,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
15017
15044
  }, null, 8, ["collapseMenus", "isRouterLink"]))
15018
15045
  ], 64);
15019
15046
  }), 128)),
15020
- _cache[1] || (_cache[1] = createElementVNode("div", { class: "w-[2px] h-[20px] bg-[#F3F4F6]" }, null, -1))
15047
+ ["md", "xl", "xxl"].includes(unref(widthType)) ? (openBlock(), createElementBlock("div", _hoisted_3$h)) : createCommentVNode("", true)
15021
15048
  ], 2),
15022
15049
  isRouterLink.value ? (openBlock(), createBlock(AiHubMenusMobile, {
15023
15050
  key: 0,
@@ -15033,14 +15060,14 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
15033
15060
  href: activeMenu.value.url
15034
15061
  }, {
15035
15062
  default: withCtx(() => [
15036
- createElementVNode("span", _hoisted_3$h, [
15063
+ createElementVNode("span", _hoisted_4$e, [
15037
15064
  createVNode(GIcon, {
15038
15065
  size: "24px",
15039
15066
  name: activeMenu.value.icon
15040
15067
  }, null, 8, ["name"]),
15041
15068
  createTextVNode(" " + toDisplayString$1(activeMenu.value.label), 1)
15042
15069
  ]),
15043
- createElementVNode("div", _hoisted_4$e, [
15070
+ createElementVNode("div", _hoisted_5$b, [
15044
15071
  createVNode(GIcon, {
15045
15072
  size: "18px",
15046
15073
  name: "gt-line-down",
@@ -17284,13 +17311,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17284
17311
  var _a;
17285
17312
  const layoutConfig2 = useLayoutConfig();
17286
17313
  const { t: $t } = i18n.global;
17287
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DQlTiWPI.js"));
17288
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-BnZqNNbU.js"));
17289
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DEfm8K9s.js"));
17290
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-IQtO4MvC.js"));
17291
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DQMGm1f3.js"));
17292
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-CFGSvoOc.js"));
17293
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-CkmTIwUU.js"));
17314
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BYWfdlXT.js"));
17315
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-DdmMuNnw.js"));
17316
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-BT7YPOMY.js"));
17317
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-3aGq_QLG.js"));
17318
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BQRyzjjr.js"));
17319
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-feJVtNy6.js"));
17320
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-GJZDI3JF.js"));
17294
17321
  const props = __props;
17295
17322
  const repoInfo = inject("repoInfo");
17296
17323
  const orgInfo = inject("orgInfo");
@@ -17933,7 +17960,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
17933
17960
  loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
17934
17961
  }
17935
17962
  };
17936
- const NoticeModal = defineAsyncComponent(() => import("./notice-Cb92kHHi.js"));
17963
+ const NoticeModal = defineAsyncComponent(() => import("./notice-lsHNoS4w.js"));
17937
17964
  function clearNotice() {
17938
17965
  if (localStorage$2.getItem("validator_email")) {
17939
17966
  localStorage$2.removeItem("validator_email");
@@ -18607,9 +18634,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18607
18634
  const layoutConfig2 = useLayoutConfig();
18608
18635
  const { t: t2 } = i18n.global;
18609
18636
  const route = useRoute();
18610
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-BeEmY5jv.js"));
18611
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-ChFIWWOY.js"));
18612
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-fTLPAVbm.js"));
18637
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-qDDK3Slc.js"));
18638
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-pztlufe-.js"));
18639
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-D1TU78NI.js"));
18613
18640
  const props = __props;
18614
18641
  const useReport2 = inject("useReport");
18615
18642
  const userInfo = inject("userInfo");
@@ -24152,7 +24179,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24152
24179
  }
24153
24180
  });
24154
24181
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
24155
- const SlidCaptcha = defineAsyncComponent(() => import("./index-BiBwC_-O.js"));
24182
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-4leI2cYC.js"));
24156
24183
  const useSlidCaptcha = () => {
24157
24184
  const { mount, unMount } = usePopup("slid-captcha-popup");
24158
24185
  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-CfIXnorS.js";
1
+ import { J, K, O, I, S, H, x, Q, N, P, M } from "./index-DQdDCiSm.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-CfIXnorS.js";
2
+ import { i as isPhone, u as useModel } from "./index-DQdDCiSm.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.97",
3
+ "version": "1.5.98",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",