vue-layout-gitcode 1.3.35 → 1.3.37

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,8 +1,8 @@
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, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-Cr3bKdpI.js";
5
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-t0WPxKve.js";
4
+ import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-CGyHM1VW.js";
5
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-OCTZrkEB.js";
6
6
  import "vue-devui-lal/tooltip";
7
7
  import "vue-devui-lal/tooltip/style.css";
8
8
  import "vue-router";
@@ -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-Cr3bKdpI.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-CGyHM1VW.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-Cr3bKdpI.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CGyHM1VW.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-Cr3bKdpI.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-CGyHM1VW.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-t0WPxKve.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-Cr3bKdpI.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-OCTZrkEB.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-CGyHM1VW.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-Cr3bKdpI.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CGyHM1VW.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-Cr3bKdpI.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-CGyHM1VW.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 { w as useLayoutConfig, _ as _export_sfc } from "./index-Cr3bKdpI.js";
3
+ import { w as useLayoutConfig, _ as _export_sfc } from "./index-CGyHM1VW.js";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "index",
@@ -17449,6 +17449,12 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17449
17449
  });
17450
17450
  return data;
17451
17451
  };
17452
+ const userMenusFormat = computed(() => {
17453
+ if (props.userMenus) {
17454
+ return menueDataFormat(props.userMenus);
17455
+ }
17456
+ return [];
17457
+ });
17452
17458
  const baseRouterMeus = [
17453
17459
  [
17454
17460
  { id: "dashboard", label: t2("gitCodeLayout.header.workbench"), icon: "gt-plane-user", to: getRouterLink("dashboard") },
@@ -17466,12 +17472,15 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17466
17472
  { id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action: logout }
17467
17473
  ]
17468
17474
  ];
17469
- const routerHref = computed(() => [
17470
- ...props.userMenus ? menueDataFormat(props.userMenus) : baseRouterMeus,
17471
- [
17472
- { id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action: logout }
17473
- ]
17474
- ]);
17475
+ const routerHref = computed(() => {
17476
+ var _a;
17477
+ return [
17478
+ ...((_a = userMenusFormat.value) == null ? void 0 : _a.length) ? userMenusFormat.value : baseRouterMeus,
17479
+ [
17480
+ { id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action: logout }
17481
+ ]
17482
+ ];
17483
+ });
17475
17484
  const baseHrefMeus = [
17476
17485
  [
17477
17486
  { id: "dashboard", label: t2("gitCodeLayout.header.workbench"), icon: "gt-plane-user", link: "/dashboard" },
@@ -17486,12 +17495,15 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17486
17495
  { id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", target: "_blank", href: HELP_DOCS_URL }
17487
17496
  ]
17488
17497
  ];
17489
- const hrefList = computed(() => [
17490
- ...props.userMenus ? props.userMenus : baseHrefMeus,
17491
- [
17492
- { id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action: logout }
17493
- ]
17494
- ]);
17498
+ const hrefList = computed(() => {
17499
+ var _a;
17500
+ return [
17501
+ ...((_a = userMenusFormat.value) == null ? void 0 : _a.length) ? userMenusFormat.value : baseHrefMeus,
17502
+ [
17503
+ { id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action: logout }
17504
+ ]
17505
+ ];
17506
+ });
17495
17507
  function handleClick(item) {
17496
17508
  if (item == null ? void 0 : item.action) {
17497
17509
  item.action();
@@ -17915,13 +17927,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17915
17927
  var _a;
17916
17928
  const layoutConfig2 = useLayoutConfig();
17917
17929
  const { t: $t } = i18n.global;
17918
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BNrSMhdu.js"));
17919
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-BcvA5w6_.js"));
17920
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-CEMWMCK1.js"));
17921
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DEJ5U1BL.js"));
17922
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-D8THv6dg.js"));
17923
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-Cc9VUnNq.js"));
17924
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-B2UiJbaY.js"));
17930
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BGA2HpRX.js"));
17931
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-D85D_u4a.js"));
17932
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-B1k-OmsR.js"));
17933
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DxfKIzxA.js"));
17934
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-d22K-SQJ.js"));
17935
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DqUMt--r.js"));
17936
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BZxlt8p5.js"));
17925
17937
  const props = __props;
17926
17938
  const repoInfo = inject("repoInfo");
17927
17939
  const orgInfo = inject("orgInfo");
@@ -18525,7 +18537,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18525
18537
  }
18526
18538
  });
18527
18539
  const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18528
- const NoticeModal = defineAsyncComponent(() => import("./notice-YtZkV17M.js"));
18540
+ const NoticeModal = defineAsyncComponent(() => import("./notice-Bik_QH8o.js"));
18529
18541
  function clearNotice() {
18530
18542
  if (localStorage$2.getItem("validator_email")) {
18531
18543
  localStorage$2.removeItem("validator_email");
@@ -19866,7 +19878,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19866
19878
  });
19867
19879
  const showThemeSetting = computed(() => {
19868
19880
  if (props.showPreferencesSetting !== void 0 && props.showThemeSetting !== void 0) return props.showThemeSetting;
19869
- return ![SceneValue.aiHome, SceneValue.aiGuide].includes(props.sceneValue);
19881
+ return ![SceneValue.aiHome, SceneValue.aiRepo, SceneValue.aiGuide].includes(props.sceneValue);
19870
19882
  });
19871
19883
  const showLangSetting = computed(() => {
19872
19884
  if (props.showPreferencesSetting !== void 0 && props.showLangSetting !== void 0) return props.showLangSetting;
@@ -25159,7 +25171,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
25159
25171
  }
25160
25172
  });
25161
25173
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
25162
- const SlidCaptcha = defineAsyncComponent(() => import("./index-ErVr-3Lw.js"));
25174
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-Br7X1o9p.js"));
25163
25175
  const useSlidCaptcha = () => {
25164
25176
  const { mount, unMount } = usePopup("slid-captcha-popup");
25165
25177
  const open = (config) => {
@@ -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, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-Cr3bKdpI.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, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-CGyHM1VW.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";
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { z, A, D, y, S, x, F, I, C, H, B } from "./index-Cr3bKdpI.js";
1
+ import { z, A, D, y, S, x, F, I, C, H, B } from "./index-CGyHM1VW.js";
2
2
  export {
3
3
  z as GitCodeAside,
4
4
  A 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-Cr3bKdpI.js";
2
+ import { i as isPhone, u as useModel } from "./index-CGyHM1VW.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.3.35",
3
+ "version": "1.3.37",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",