vue-layout-gitcode 1.3.2 → 1.3.4

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,4 +1,4 @@
1
- import { defineComponent, computed, createBlock, createElementBlock, openBlock, unref, normalizeProps, mergeProps, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, effectScope, ref, shallowRef, watch, isRef, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createCommentVNode, withCtx, toDisplayString as toDisplayString$1, renderList, createTextVNode, Transition, withModifiers, render, resolveComponent, watchEffect, guardReactiveProps, onBeforeUnmount, nextTick, defineAsyncComponent, withDirectives, vShow, withKeys, resolveDynamicComponent, toRaw, mergeModels, useModel as useModel$1, watchPostEffect, createSlots } from "vue";
1
+ import { defineComponent, computed, createBlock, createElementBlock, openBlock, unref, normalizeProps, mergeProps, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, effectScope, ref, shallowRef, watch, isRef, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createCommentVNode, withCtx, toDisplayString as toDisplayString$1, renderList, createTextVNode, Transition, withModifiers, render, resolveComponent, watchEffect, guardReactiveProps, onBeforeUnmount, nextTick, defineAsyncComponent, withDirectives, vShow, withKeys, useSlots, createSlots, resolveDynamicComponent, toRaw, mergeModels, useModel as useModel$1, watchPostEffect } from "vue";
2
2
  import { Button } from "vue-devui-lal/button";
3
3
  import { Popover } from "vue-devui-lal/popover";
4
4
  import { Tooltip } from "vue-devui-lal/tooltip";
@@ -385,6 +385,16 @@ const REPO_PAGE_SIZE = {
385
385
  // 仓库页面tabs菜单高度
386
386
  REPO_INFO_HEIGHT: 52
387
387
  };
388
+ const ASIDE_MENU_MODE = {
389
+ collapse: {
390
+ collapse: 0,
391
+ expand: 76
392
+ },
393
+ default: {
394
+ collapse: 76,
395
+ expand: 240
396
+ }
397
+ };
388
398
  var ToolsFloatDisplayItem = /* @__PURE__ */ ((ToolsFloatDisplayItem2) => {
389
399
  ToolsFloatDisplayItem2["GROWTH_CENTER"] = "0301";
390
400
  ToolsFloatDisplayItem2["ELSE"] = "0302";
@@ -10916,7 +10926,7 @@ const _hoisted_18$3 = {
10916
10926
  };
10917
10927
  const _hoisted_19$3 = { class: "font-[600] text-[var(--theme-aide-text)] mt-3 text-sm leading-[20px]" };
10918
10928
  const _hoisted_20$3 = { class: "flex gap-1 items-center mt-3" };
10919
- const _hoisted_21$2 = ["onMouseover", "onClick"];
10929
+ const _hoisted_21$3 = ["onMouseover", "onClick"];
10920
10930
  const _hoisted_22$2 = {
10921
10931
  key: 1,
10922
10932
  class: "Opinion relative overflow-hidden"
@@ -10935,21 +10945,6 @@ const _hoisted_27 = { class: "flex justify-center items-center w-[30px] h-[30px]
10935
10945
  const _hoisted_28 = { class: "ml-2 font-[600] text-[var(--theme-aide-text)] text-sm leading-[20px]" };
10936
10946
  const _hoisted_29 = { class: "home-nav-item" };
10937
10947
  const _hoisted_30 = ["src", "alt"];
10938
- const _hoisted_31 = {
10939
- class: "home-nav-link tools-questionnaire",
10940
- href: "https://wj.qq.com/s2/19601885/hha0/",
10941
- target: "_blank",
10942
- rel: "noopener noreferrer"
10943
- };
10944
- const _hoisted_32 = { class: "home-nav-item" };
10945
- const _hoisted_33 = { class: "home-nav-tooltip-wrapper" };
10946
- const _hoisted_34 = { class: "home-nav-text" };
10947
- const _hoisted_35 = {
10948
- class: "home-nav-link devui-link-light",
10949
- href: "https://wj.qq.com/s2/19601885/hha0/",
10950
- target: "_blank",
10951
- rel: "noopener noreferrer"
10952
- };
10953
10948
  const _sfc_main$A = /* @__PURE__ */ defineComponent({
10954
10949
  __name: "index",
10955
10950
  props: {
@@ -11248,7 +11243,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
11248
11243
  name: ico.name,
11249
11244
  size: "24px"
11250
11245
  }, null, 8, ["name"])
11251
- ], 42, _hoisted_21$2);
11246
+ ], 42, _hoisted_21$3);
11252
11247
  }), 64))
11253
11248
  ])
11254
11249
  ])) : createCommentVNode("", true),
@@ -11360,32 +11355,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
11360
11355
  src: activeAdItem.value.imgUrl,
11361
11356
  alt: activeAdItem.value.title
11362
11357
  }, null, 8, _hoisted_30)
11363
- ])) : createCommentVNode("", true),
11364
- isModuleVisible(unref(ToolsFloatDisplayItem).ELSE) ? (openBlock(), createBlock(unref(Tooltip), {
11365
- key: 3,
11366
- position: "left",
11367
- "overlay-class": "tools-tag-tooltip"
11368
- }, {
11369
- content: withCtx(() => [
11370
- createElementVNode("div", _hoisted_33, [
11371
- createElementVNode("div", _hoisted_34, [
11372
- createElementVNode("a", _hoisted_35, toDisplayString$1(unref(t2)("gitCodeLayout.home.surveyTipsTitle")), 1)
11373
- ])
11374
- ])
11375
- ]),
11376
- default: withCtx(() => [
11377
- createElementVNode("a", _hoisted_31, [
11378
- createElementVNode("div", _hoisted_32, [
11379
- createVNode(GIcon, {
11380
- name: "gt-a-plane-questionnaireinvestigation",
11381
- class: "home-nav-icon",
11382
- size: "20px"
11383
- })
11384
- ])
11385
- ])
11386
- ]),
11387
- _: 1
11388
- })) : createCommentVNode("", true)
11358
+ ])) : createCommentVNode("", true)
11389
11359
  ]);
11390
11360
  };
11391
11361
  }
@@ -16497,7 +16467,7 @@ const _hoisted_18$2 = {
16497
16467
  };
16498
16468
  const _hoisted_19$2 = { class: "ml-[4px] max-w-[120px] overflow-ellipsis overflow-hidden whitespace-nowrap" };
16499
16469
  const _hoisted_20$2 = { class: "flex items-center" };
16500
- const _hoisted_21$1 = {
16470
+ const _hoisted_21$2 = {
16501
16471
  key: 3,
16502
16472
  class: "user-layout-toolbar"
16503
16473
  };
@@ -16812,7 +16782,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16812
16782
  ];
16813
16783
  }),
16814
16784
  _: 1
16815
- }, 8, ["loading"])) : _ctx.scene === unref(SceneValue).user && ((_b = _ctx.userProps) == null ? void 0 : _b.isOtherUser) ? (openBlock(), createElementBlock("div", _hoisted_21$1, [
16785
+ }, 8, ["loading"])) : _ctx.scene === unref(SceneValue).user && ((_b = _ctx.userProps) == null ? void 0 : _b.isOtherUser) ? (openBlock(), createElementBlock("div", _hoisted_21$2, [
16816
16786
  createVNode(GLink, {
16817
16787
  to: { name: "homepage" },
16818
16788
  class: "flex flex-1 items-center gap-[8px]"
@@ -17778,13 +17748,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17778
17748
  setup(__props) {
17779
17749
  var _a;
17780
17750
  const { t: $t } = i18n.global;
17781
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-cRtWR1nm.js"));
17782
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-DxxVlIie.js"));
17783
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-BCQw3CFX.js"));
17784
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-Bq1GLhLn.js"));
17785
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DtNJJC9z.js"));
17786
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-BHBc4IHo.js"));
17787
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-DUEj-REF.js"));
17751
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BZRnJoQX.js"));
17752
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-BSgYNwv-.js"));
17753
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-CWp399rn.js"));
17754
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BpXxu789.js"));
17755
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BvcFcjUv.js"));
17756
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-b0VY74dd.js"));
17757
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-CR_zPDBu.js"));
17788
17758
  const props = __props;
17789
17759
  const repoInfo = inject("repoInfo");
17790
17760
  const orgInfo = inject("orgInfo");
@@ -18342,7 +18312,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18342
18312
  }
18343
18313
  });
18344
18314
  const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18345
- const NoticeModal = defineAsyncComponent(() => import("./notice-DyrJkOdX.js"));
18315
+ const NoticeModal = defineAsyncComponent(() => import("./notice-PGiT3J9W.js"));
18346
18316
  function clearNotice() {
18347
18317
  if (localStorage$2.getItem("validator_email")) {
18348
18318
  localStorage$2.removeItem("validator_email");
@@ -19474,47 +19444,48 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19474
19444
  });
19475
19445
  const ProjectMenuListV2 = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-gitcode-layout-lib"]]);
19476
19446
  const _hoisted_1$e = { class: "side-bar-label" };
19477
- const _hoisted_2$8 = {
19447
+ const _hoisted_2$8 = { class: "side-bar-label" };
19448
+ const _hoisted_3$5 = {
19478
19449
  key: 0,
19479
19450
  class: "line mt-[16px] mb-[6px]"
19480
19451
  };
19481
- const _hoisted_3$5 = { class: "side-bar-label" };
19482
- const _hoisted_4$4 = {
19452
+ const _hoisted_4$4 = { class: "side-bar-label" };
19453
+ const _hoisted_5$2 = {
19483
19454
  key: 1,
19484
19455
  class: "line mb-[16px] mt-[6px]"
19485
19456
  };
19486
- const _hoisted_5$2 = {
19457
+ const _hoisted_6$2 = {
19487
19458
  key: 0,
19488
19459
  class: "aside-footer"
19489
19460
  };
19490
- const _hoisted_6$2 = { class: "remake-message mt-[16px]" };
19491
- const _hoisted_7$2 = ["title"];
19492
- const _hoisted_8$2 = { class: "whitespace-nowrap" };
19493
- const _hoisted_9$2 = {
19461
+ const _hoisted_7$2 = { class: "remake-message mt-[16px]" };
19462
+ const _hoisted_8$2 = ["title"];
19463
+ const _hoisted_9$2 = { class: "whitespace-nowrap" };
19464
+ const _hoisted_10$2 = {
19494
19465
  href: "https://beian.miit.gov.cn/#/Integrated/index",
19495
19466
  target: "_blank"
19496
19467
  };
19497
- const _hoisted_10$2 = { class: "whitespace-nowrap public-security" };
19498
- const _hoisted_11$2 = {
19468
+ const _hoisted_11$2 = { class: "whitespace-nowrap public-security" };
19469
+ const _hoisted_12$2 = {
19499
19470
  href: "https://beian.mps.gov.cn/#/query/webSearch?code=11010502055713",
19500
19471
  target: "_blank"
19501
19472
  };
19502
- const _hoisted_12$2 = {
19473
+ const _hoisted_13$1 = {
19503
19474
  href: "https://www.huaweicloud.com/",
19504
19475
  target: "_blank",
19505
19476
  rel: "noopener noreferrer"
19506
19477
  };
19507
- const _hoisted_13$1 = { class: "whitespace-nowrap mt-[8px]" };
19508
- const _hoisted_14$1 = { class: "footer-work-info mt-[8px] text-[12px]" };
19509
- const _hoisted_15$1 = { class: "flex items-center mt-[8px]" };
19510
- const _hoisted_16$1 = { class: "" };
19511
- const _hoisted_17$1 = {
19478
+ const _hoisted_14$1 = { class: "whitespace-nowrap mt-[8px]" };
19479
+ const _hoisted_15$1 = { class: "footer-work-info mt-[8px] text-[12px]" };
19480
+ const _hoisted_16$1 = { class: "flex items-center mt-[8px]" };
19481
+ const _hoisted_17$1 = { class: "" };
19482
+ const _hoisted_18$1 = {
19512
19483
  key: 0,
19513
19484
  class: "aside-footer-tools"
19514
19485
  };
19515
- const _hoisted_18$1 = { class: "aside-footer-tools-item" };
19516
- const _hoisted_19$1 = { class: "aside-footer-tools-item-dropdown-item" };
19486
+ const _hoisted_19$1 = { class: "aside-footer-tools-item" };
19517
19487
  const _hoisted_20$1 = { class: "aside-footer-tools-item-dropdown-item" };
19488
+ const _hoisted_21$1 = { class: "aside-footer-tools-item-dropdown-item" };
19518
19489
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
19519
19490
  __name: "asideContent",
19520
19491
  props: {
@@ -19525,7 +19496,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19525
19496
  independence: { type: Boolean, default: false },
19526
19497
  showPreferencesSetting: { type: Boolean },
19527
19498
  showThemeSetting: { type: Boolean },
19528
- showLangSetting: { type: Boolean }
19499
+ showLangSetting: { type: Boolean },
19500
+ slotKeys: { default: () => [] },
19501
+ collapseMode: { type: Boolean, default: false }
19529
19502
  },
19530
19503
  emits: ["onMenuClick"],
19531
19504
  setup(__props, { emit: __emit }) {
@@ -19535,6 +19508,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19535
19508
  const { t: t2 } = i18n.global;
19536
19509
  const setting = createSetting();
19537
19510
  const { copyright } = setting;
19511
+ const slots = useSlots();
19538
19512
  const props = __props;
19539
19513
  const request = inject("request");
19540
19514
  const userInfo = inject("userInfo");
@@ -19553,9 +19527,19 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19553
19527
  case SceneValue.aiRepo:
19554
19528
  case SceneValue.active:
19555
19529
  case SceneValue.aiGuide:
19556
- return [AsideDisplayItem.LINK, AsideDisplayItem.REPO_AND_ORG, AsideDisplayItem.SITE_INFO, AsideDisplayItem.PREFERENCE];
19530
+ return [
19531
+ AsideDisplayItem.LINK,
19532
+ AsideDisplayItem.REPO_AND_ORG,
19533
+ AsideDisplayItem.SITE_INFO,
19534
+ AsideDisplayItem.PREFERENCE
19535
+ ];
19557
19536
  default:
19558
- return [AsideDisplayItem.LINK, AsideDisplayItem.REPO_AND_ORG, AsideDisplayItem.SITE_INFO, AsideDisplayItem.PREFERENCE];
19537
+ return [
19538
+ AsideDisplayItem.LINK,
19539
+ AsideDisplayItem.REPO_AND_ORG,
19540
+ AsideDisplayItem.SITE_INFO,
19541
+ AsideDisplayItem.PREFERENCE
19542
+ ];
19559
19543
  }
19560
19544
  });
19561
19545
  const isModuleVisible = (auth) => {
@@ -19810,10 +19794,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19810
19794
  }).then((res) => {
19811
19795
  defaultProject.value = res;
19812
19796
  });
19813
- loadAsideData((params) => API.getMyGroups(params), {
19814
- page: 1,
19815
- per_page: 10
19816
- }, "team").then((res) => {
19797
+ loadAsideData(
19798
+ (params) => API.getMyGroups(params),
19799
+ {
19800
+ page: 1,
19801
+ per_page: 10
19802
+ },
19803
+ "team"
19804
+ ).then((res) => {
19817
19805
  defaultOrg.value = res;
19818
19806
  });
19819
19807
  } else {
@@ -19844,34 +19832,74 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19844
19832
  }, {
19845
19833
  default: withCtx(() => [
19846
19834
  (openBlock(true), createElementBlock(Fragment, null, renderList(internalRoutes.value, (item) => {
19847
- return openBlock(), createBlock(unref(MenuItem), {
19848
- key: item.key,
19849
- "data-openBlank": item.openBlank,
19850
- "data-route": item.route ? JSON.stringify(item.route) : "",
19851
- "data-href": item.href,
19852
- "data-host": item.host
19853
- }, {
19854
- icon: withCtx(() => [
19855
- createVNode(GIcon, {
19856
- name: item.icon,
19857
- class: "default-icon",
19858
- size: "16",
19859
- color: "var(--theme-menu-icon-fill)"
19860
- }, null, 8, ["name"]),
19861
- createVNode(GIcon, {
19862
- name: item.activeIcon,
19863
- class: "active-icon",
19864
- size: "16",
19865
- color: "var(--theme-menu-icon-fill)"
19866
- }, null, 8, ["name"])
19867
- ]),
19868
- default: withCtx(() => [
19869
- createElementVNode("span", _hoisted_1$e, toDisplayString$1(item.label), 1)
19870
- ]),
19871
- _: 2
19872
- }, 1032, ["data-openBlank", "data-route", "data-href", "data-host"]);
19873
- }), 128)),
19874
- !_ctx.asideSetShowLittle ? (openBlock(), createElementBlock("hr", _hoisted_2$8)) : createCommentVNode("", true),
19835
+ return openBlock(), createElementBlock(Fragment, null, [
19836
+ _ctx.slotKeys.includes(item.key) && unref(slots)[item.key] && _ctx.collapseMode ? (openBlock(), createBlock(unref(Popover), {
19837
+ key: 0,
19838
+ class: "menu-item-popover",
19839
+ trigger: "hover",
19840
+ position: ["right-start"]
19841
+ }, {
19842
+ content: withCtx(() => [
19843
+ renderSlot(_ctx.$slots, item.key, {}, void 0, true)
19844
+ ]),
19845
+ default: withCtx(() => [
19846
+ (openBlock(), createBlock(unref(MenuItem), {
19847
+ key: item.key,
19848
+ "data-openBlank": item.openBlank,
19849
+ "data-route": item.route ? JSON.stringify(item.route) : "",
19850
+ "data-href": item.href,
19851
+ "data-host": item.host
19852
+ }, {
19853
+ icon: withCtx(() => [
19854
+ createVNode(GIcon, {
19855
+ name: item.icon,
19856
+ class: "default-icon",
19857
+ size: "16",
19858
+ color: "var(--theme-menu-icon-fill)"
19859
+ }, null, 8, ["name"]),
19860
+ createVNode(GIcon, {
19861
+ name: item.activeIcon,
19862
+ class: "active-icon",
19863
+ size: "16",
19864
+ color: "var(--theme-menu-icon-fill)"
19865
+ }, null, 8, ["name"])
19866
+ ]),
19867
+ default: withCtx(() => [
19868
+ createElementVNode("span", _hoisted_1$e, toDisplayString$1(item.label), 1)
19869
+ ]),
19870
+ _: 2
19871
+ }, 1032, ["data-openBlank", "data-route", "data-href", "data-host"]))
19872
+ ]),
19873
+ _: 2
19874
+ }, 1024)) : (openBlock(), createBlock(unref(MenuItem), {
19875
+ key: item.key,
19876
+ "data-openBlank": item.openBlank,
19877
+ "data-route": item.route ? JSON.stringify(item.route) : "",
19878
+ "data-href": item.href,
19879
+ "data-host": item.host
19880
+ }, {
19881
+ icon: withCtx(() => [
19882
+ createVNode(GIcon, {
19883
+ name: item.icon,
19884
+ class: "default-icon",
19885
+ size: "16",
19886
+ color: "var(--theme-menu-icon-fill)"
19887
+ }, null, 8, ["name"]),
19888
+ createVNode(GIcon, {
19889
+ name: item.activeIcon,
19890
+ class: "active-icon",
19891
+ size: "16",
19892
+ color: "var(--theme-menu-icon-fill)"
19893
+ }, null, 8, ["name"])
19894
+ ]),
19895
+ default: withCtx(() => [
19896
+ createElementVNode("span", _hoisted_2$8, toDisplayString$1(item.label), 1)
19897
+ ]),
19898
+ _: 2
19899
+ }, 1032, ["data-openBlank", "data-route", "data-href", "data-host"]))
19900
+ ], 64);
19901
+ }), 256)),
19902
+ !_ctx.asideSetShowLittle ? (openBlock(), createElementBlock("hr", _hoisted_3$5)) : createCommentVNode("", true),
19875
19903
  (openBlock(true), createElementBlock(Fragment, null, renderList(externalRoutes.value, (item) => {
19876
19904
  return openBlock(), createBlock(unref(MenuItem), {
19877
19905
  key: item.key,
@@ -19895,12 +19923,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19895
19923
  }, null, 8, ["name"])
19896
19924
  ]),
19897
19925
  default: withCtx(() => [
19898
- createElementVNode("span", _hoisted_3$5, toDisplayString$1(item.label), 1)
19926
+ createElementVNode("span", _hoisted_4$4, toDisplayString$1(item.label), 1)
19899
19927
  ]),
19900
19928
  _: 2
19901
19929
  }, 1032, ["data-route", "data-href", "data-host", "data-openBlank"]);
19902
19930
  }), 128)),
19903
- !_ctx.asideSetShowLittle ? (openBlock(), createElementBlock("hr", _hoisted_4$4)) : createCommentVNode("", true),
19931
+ !_ctx.asideSetShowLittle ? (openBlock(), createElementBlock("hr", _hoisted_5$2)) : createCommentVNode("", true),
19904
19932
  !_ctx.asideSetShowLittle ? (openBlock(), createBlock(ProjectMenuListV2, {
19905
19933
  subShow: subShow.value.project,
19906
19934
  key: "project",
@@ -19922,9 +19950,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19922
19950
  username: username.value
19923
19951
  }, null, 8, ["defaultSelectKeys", "subShow", "isLogin", "title", "buttonText", "defaultData", "username"])) : createCommentVNode("", true)
19924
19952
  ]),
19925
- _: 1
19953
+ _: 3
19926
19954
  }, 8, ["default-select-keys"]),
19927
- !_ctx.asideSetShowLittle ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
19955
+ !_ctx.asideSetShowLittle ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
19928
19956
  _cache[5] || (_cache[5] = createElementVNode("hr", { class: "line mb-[16px] mt-[16px]" }, null, -1)),
19929
19957
  createElementVNode("div", {
19930
19958
  class: normalizeClass(["menu-item-last flex-col", { en: isEn.value }])
@@ -19957,17 +19985,17 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19957
19985
  _: 1
19958
19986
  })
19959
19987
  ], 2),
19960
- createElementVNode("div", _hoisted_6$2, [
19988
+ createElementVNode("div", _hoisted_7$2, [
19961
19989
  createElementVNode("p", {
19962
19990
  class: "break-all",
19963
19991
  title: unref(copyright).digestAbbr
19964
- }, " © " + toDisplayString$1(unref(copyright).digestAbbr), 9, _hoisted_7$2),
19965
- createElementVNode("p", _hoisted_8$2, [
19966
- createElementVNode("a", _hoisted_9$2, toDisplayString$1(unref(copyright).icp), 1)
19992
+ }, " © " + toDisplayString$1(unref(copyright).digestAbbr), 9, _hoisted_8$2),
19993
+ createElementVNode("p", _hoisted_9$2, [
19994
+ createElementVNode("a", _hoisted_10$2, toDisplayString$1(unref(copyright).icp), 1)
19967
19995
  ]),
19968
- createElementVNode("p", _hoisted_10$2, [
19996
+ createElementVNode("p", _hoisted_11$2, [
19969
19997
  _cache[0] || (_cache[0] = createElementVNode("img", { src: "//g.csdnimg.cn/common/csdn-footer/images/badge.png" }, null, -1)),
19970
- createElementVNode("a", _hoisted_11$2, toDisplayString$1(unref(copyright).publicSecurity), 1)
19998
+ createElementVNode("a", _hoisted_12$2, toDisplayString$1(unref(copyright).publicSecurity), 1)
19971
19999
  ])
19972
20000
  ]),
19973
20001
  createElementVNode("p", {
@@ -19980,9 +20008,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19980
20008
  rel: "noopener noreferrer"
19981
20009
  }, "CSDN", -1)),
19982
20010
  _cache[2] || (_cache[2] = createTextVNode("  |  ")),
19983
- createElementVNode("a", _hoisted_12$2, toDisplayString$1(unref(t2)("gitCodeLayout.home.HWCloud")), 1)
20011
+ createElementVNode("a", _hoisted_13$1, toDisplayString$1(unref(t2)("gitCodeLayout.home.HWCloud")), 1)
19984
20012
  ], 2),
19985
- createElementVNode("p", _hoisted_13$1, [
20013
+ createElementVNode("p", _hoisted_14$1, [
19986
20014
  createVNode(GLink, {
19987
20015
  target: "_blank",
19988
20016
  href: "https://docs.gitcode.com/docs/help/home/aboutus/"
@@ -20003,36 +20031,36 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
20003
20031
  _: 1
20004
20032
  })
20005
20033
  ]),
20006
- createElementVNode("ul", _hoisted_14$1, [
20034
+ createElementVNode("ul", _hoisted_15$1, [
20007
20035
  _cache[4] || (_cache[4] = createElementVNode("li", { class: "flex items-center" }, [
20008
20036
  createElementVNode("span", { class: "" }, "400-6868-951")
20009
20037
  ], -1)),
20010
- createElementVNode("li", _hoisted_15$1, [
20011
- createElementVNode("span", _hoisted_16$1, "9:00-18:00 (" + toDisplayString$1(unref(t2)("gitCodeLayout.home.onWeekdays")) + ")", 1)
20038
+ createElementVNode("li", _hoisted_16$1, [
20039
+ createElementVNode("span", _hoisted_17$1, "9:00-18:00 (" + toDisplayString$1(unref(t2)("gitCodeLayout.home.onWeekdays")) + ")", 1)
20012
20040
  ])
20013
20041
  ])
20014
20042
  ])) : createCommentVNode("", true)
20015
20043
  ], 34),
20016
- showPreferencesSetting.value ? (openBlock(), createElementBlock("div", _hoisted_17$1, [
20044
+ showPreferencesSetting.value ? (openBlock(), createElementBlock("div", _hoisted_18$1, [
20017
20045
  createVNode(unref(Dropdown), {
20018
20046
  position: ["bottom-end"],
20019
20047
  align: "end",
20020
20048
  "overlay-class": "footer-tools-setting-dropdown"
20021
20049
  }, {
20022
20050
  menu: withCtx(() => [
20023
- withDirectives(createElementVNode("div", _hoisted_19$1, [
20051
+ withDirectives(createElementVNode("div", _hoisted_20$1, [
20024
20052
  createVNode(_sfc_main$j)
20025
20053
  ], 512), [
20026
20054
  [vShow, showThemeSetting.value]
20027
20055
  ]),
20028
- withDirectives(createElementVNode("div", _hoisted_20$1, [
20056
+ withDirectives(createElementVNode("div", _hoisted_21$1, [
20029
20057
  createVNode(_sfc_main$k)
20030
20058
  ], 512), [
20031
20059
  [vShow, showLangSetting.value]
20032
20060
  ])
20033
20061
  ]),
20034
20062
  default: withCtx(() => [
20035
- createElementVNode("div", _hoisted_18$1, [
20063
+ createElementVNode("div", _hoisted_19$1, [
20036
20064
  createVNode(GIcon, {
20037
20065
  name: "gt-line-setting",
20038
20066
  size: "16",
@@ -20069,7 +20097,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
20069
20097
  independence: { type: Boolean, default: false },
20070
20098
  showPreferencesSetting: { type: Boolean, default: void 0 },
20071
20099
  showThemeSetting: { type: Boolean, default: void 0 },
20072
- showLangSetting: { type: Boolean, default: void 0 }
20100
+ showLangSetting: { type: Boolean, default: void 0 },
20101
+ collapseMode: { type: Boolean, default: false },
20102
+ slotKeys: { default: () => [] }
20073
20103
  },
20074
20104
  setup(__props) {
20075
20105
  const route = useRoute();
@@ -20084,12 +20114,19 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
20084
20114
  return false;
20085
20115
  });
20086
20116
  const asideSetShow = computed(() => {
20087
- return props.sceneValue === SceneValue.home && !props.disableFlatMode;
20117
+ return (props.sceneValue === SceneValue.home || props.collapseMode) && !props.disableFlatMode;
20088
20118
  });
20089
20119
  const sizeStore = usePageResize();
20090
20120
  const { isMobile } = usePageResize();
20121
+ const asideSize = computed(() => {
20122
+ if (props.collapseMode) {
20123
+ return ASIDE_MENU_MODE.collapse;
20124
+ } else {
20125
+ return ASIDE_MENU_MODE.default;
20126
+ }
20127
+ });
20091
20128
  const asideSetShowLittle = useStorage("asideSetShowLittle", false);
20092
- const asideDefaultWidth = useStorage("asideDefaultWidth", sizeStore.isMobile.value ? 0 : 240);
20129
+ const asideDefaultWidth = useStorage("asideDefaultWidth", sizeStore.isMobile.value ? 0 : asideSize.value.expand);
20093
20130
  const mainMarginLeftWidth = computed(() => {
20094
20131
  if (!asideSetShow.value || sizeStore.isMobile.value) {
20095
20132
  return 0;
@@ -20107,18 +20144,17 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
20107
20144
  asideVisible.value = !asideVisible.value;
20108
20145
  emitEvent("handleAsideVisible", asideVisible.value);
20109
20146
  } else {
20110
- asideDefaultWidth.value = asideDefaultWidth.value >= 240 ? 76 : 240;
20111
- emitEvent("handleAsideVisible", asideDefaultWidth.value >= 240);
20112
- asideSetShowLittle.value = !(asideDefaultWidth.value >= 240);
20147
+ const { collapse, expand } = asideSize.value;
20148
+ asideDefaultWidth.value = asideDefaultWidth.value >= expand ? collapse : expand;
20149
+ emitEvent("handleAsideVisible", asideDefaultWidth.value >= expand);
20150
+ asideSetShowLittle.value = props.collapseMode || !(asideDefaultWidth.value >= expand);
20151
+ console.log(asideSetShowLittle.value, "asideSetShowLittle.value");
20113
20152
  }
20114
20153
  };
20115
20154
  onMounted(() => {
20116
- addEventListener(
20117
- "toggleAsideMenuByHamburger",
20118
- () => {
20119
- handleClickMenu();
20120
- }
20121
- );
20155
+ addEventListener("toggleAsideMenuByHamburger", () => {
20156
+ handleClickMenu();
20157
+ });
20122
20158
  });
20123
20159
  onBeforeUnmount(() => {
20124
20160
  offEvent("handleAsideVisible");
@@ -20141,10 +20177,21 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
20141
20177
  showPreferencesSetting: _ctx.showPreferencesSetting,
20142
20178
  showThemeSetting: _ctx.showThemeSetting,
20143
20179
  showLangSetting: _ctx.showLangSetting,
20144
- independence: _ctx.independence
20145
- }, null, 8, ["sceneValue", "asideDefaultWidth", "asideSetShowLittle", "isLogin", "showPreferencesSetting", "showThemeSetting", "showLangSetting", "independence"])) : createCommentVNode("", true)
20180
+ independence: _ctx.independence,
20181
+ slotKeys: _ctx.slotKeys,
20182
+ collapseMode: _ctx.collapseMode
20183
+ }, createSlots({ _: 2 }, [
20184
+ renderList(_ctx.slotKeys, (key) => {
20185
+ return {
20186
+ name: key,
20187
+ fn: withCtx(() => [
20188
+ renderSlot(_ctx.$slots, key, {}, void 0, true)
20189
+ ])
20190
+ };
20191
+ })
20192
+ ]), 1032, ["sceneValue", "asideDefaultWidth", "asideSetShowLittle", "isLogin", "showPreferencesSetting", "showThemeSetting", "showLangSetting", "independence", "slotKeys", "collapseMode"])) : createCommentVNode("", true)
20146
20193
  ]),
20147
- _: 1
20194
+ _: 3
20148
20195
  }, 8, ["class", "style"])) : createCommentVNode("", true),
20149
20196
  createVNode(unref(Drawer), {
20150
20197
  modelValue: asideVisible.value,
@@ -20794,12 +20841,22 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
20794
20841
  isLogin: isLogin.value,
20795
20842
  request: unref(proxyService),
20796
20843
  globalStore: globalStore.value,
20797
- independence: independence.value
20798
- }, null, 8, ["sceneValue", "userInfo", "isLogin", "request", "globalStore", "independence"])
20844
+ independence: independence.value,
20845
+ slotKeys: ["home", "issues"],
20846
+ collapseMode: true
20847
+ }, {
20848
+ home: withCtx(() => _cache[2] || (_cache[2] = [
20849
+ createElementVNode("div", null, "首页hover-插槽", -1)
20850
+ ])),
20851
+ issues: withCtx(() => _cache[3] || (_cache[3] = [
20852
+ createElementVNode("div", null, "issues hover-插槽", -1)
20853
+ ])),
20854
+ _: 1
20855
+ }, 8, ["sceneValue", "userInfo", "isLogin", "request", "globalStore", "independence"])
20799
20856
  ]),
20800
20857
  createElementVNode("div", _hoisted_4$3, [
20801
- _cache[4] || (_cache[4] = createElementVNode("h1", null, "控制 Header 值传入", -1)),
20802
- _cache[5] || (_cache[5] = createElementVNode("h2", null, "场景值 SceneValue", -1)),
20858
+ _cache[6] || (_cache[6] = createElementVNode("h1", null, "控制 Header 值传入", -1)),
20859
+ _cache[7] || (_cache[7] = createElementVNode("h2", null, "场景值 SceneValue", -1)),
20803
20860
  createVNode(unref(RadioGroup), {
20804
20861
  direction: "row",
20805
20862
  modelValue: sceneSelected.value,
@@ -20821,7 +20878,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
20821
20878
  ]),
20822
20879
  _: 1
20823
20880
  }, 8, ["modelValue"]),
20824
- _cache[6] || (_cache[6] = createElementVNode("h2", null, "是否独立部署", -1)),
20881
+ _cache[8] || (_cache[8] = createElementVNode("h2", null, "是否独立部署", -1)),
20825
20882
  createVNode(unref(RadioGroup), {
20826
20883
  direction: "row",
20827
20884
  modelValue: independence.value,
@@ -20832,21 +20889,21 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
20832
20889
  key: "是",
20833
20890
  value: true
20834
20891
  }, {
20835
- default: withCtx(() => _cache[2] || (_cache[2] = [
20892
+ default: withCtx(() => _cache[4] || (_cache[4] = [
20836
20893
  createTextVNode("是")
20837
20894
  ])),
20838
20895
  _: 1,
20839
- __: [2]
20896
+ __: [4]
20840
20897
  })),
20841
20898
  (openBlock(), createBlock(unref(Radio), {
20842
20899
  key: "否",
20843
20900
  value: false
20844
20901
  }, {
20845
- default: withCtx(() => _cache[3] || (_cache[3] = [
20902
+ default: withCtx(() => _cache[5] || (_cache[5] = [
20846
20903
  createTextVNode("否")
20847
20904
  ])),
20848
20905
  _: 1,
20849
- __: [3]
20906
+ __: [5]
20850
20907
  }))
20851
20908
  ]),
20852
20909
  _: 1
@@ -24734,7 +24791,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24734
24791
  }
24735
24792
  });
24736
24793
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
24737
- const SlidCaptcha = defineAsyncComponent(() => import("./index-DN4X76li.js"));
24794
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-C87NgTF6.js"));
24738
24795
  const useSlidCaptcha = () => {
24739
24796
  const { mount, unMount } = usePopup("slid-captcha-popup");
24740
24797
  const open = (config) => {
@@ -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 { w as useLayoutConfig, _ as _export_sfc } from "./index-BGQbIqtf.js";
3
+ import { w as useLayoutConfig, _ as _export_sfc } from "./index-C37aHH8x.js";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "index",
@@ -1,5 +1,5 @@
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, reactive, withCtx } from "vue";
2
- import { d as debounce, t as transferNumber, G as GIcon, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, L as LANG_KEY, j as LANG_ZH, k as usePageResize, m as isGstarRepo, n as _sfc_main$8, o as isIncubationRepo, p as highlightWords, q as transWebUrl, v as _frEventTrack, E as EVENT_NAME, b as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-BGQbIqtf.js";
2
+ import { d as debounce, t as transferNumber, G as GIcon, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, L as LANG_KEY, j as LANG_ZH, k as usePageResize, m as isGstarRepo, n as _sfc_main$8, o as isIncubationRepo, p as highlightWords, q as transWebUrl, v as _frEventTrack, E as EVENT_NAME, b as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-C37aHH8x.js";
3
3
  import { useRouter } from "vue-router";
4
4
  import { Row, Col } from "vue-devui-lal/grid";
5
5
  import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";