vue-layout-gitcode 1.12.39 → 1.12.41

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,6 +1,6 @@
1
1
  import { defineComponent, inject, createElementBlock, openBlock, Fragment, renderList, withDirectives, createBlock, unref, ref, watch, createElementVNode, createCommentVNode, createVNode, toDisplayString } from "vue";
2
- import { h as headRequest, R as REPO_MODULE, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL, a as i18n, G as GIcon } from "./index-DopYJtUq.js";
3
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./useReportRepo-DtcAFWsp.js";
2
+ import { h as headRequest, R as REPO_MODULE, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL, a as i18n, G as GIcon } from "./index-h_W8HYhU.js";
3
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./useReportRepo-CXlL6SCW.js";
4
4
  import "vue-devui-lal/icon";
5
5
  import "vue-devui-lal/icon/style.css";
6
6
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, inject, useSlots, computed, ref, createBlock, openBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, createCommentVNode, createTextVNode, toDisplayString, renderSlot } from "vue";
2
- import { a as i18n, z as useLayoutConfig, B as ThemeType, C as currentTheme, L as LANG_ZH, D as LANG_EN, F as getLocaleLang, G as GIcon, H as emitEvent, b as REPO_EVENT, I as ASIDE_MENU_REPO, J as isHttps, K as navigateWithMigrationGuard, _ as _export_sfc } from "./index-DopYJtUq.js";
2
+ import { a as i18n, z as useLayoutConfig, B as ThemeType, C as currentTheme, L as LANG_ZH, D as LANG_EN, F as getLocaleLang, G as GIcon, H as emitEvent, b as REPO_EVENT, I as ASIDE_MENU_REPO, J as isHttps, K as navigateWithMigrationGuard, _ as _export_sfc } from "./index-h_W8HYhU.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, z as useLayoutConfig, G as GIcon, t as transformUrl, N as _sfc_main$1, O as loadAsideData, K as navigateWithMigrationGuard, H as emitEvent, s as setLoginTriggerSource, f as useRequestReport, M as asideRequest, _ as _export_sfc } from "./index-DopYJtUq.js";
2
+ import { a as i18n, z as useLayoutConfig, G as GIcon, t as transformUrl, N as _sfc_main$1, O as loadAsideData, K as navigateWithMigrationGuard, H as emitEvent, s as setLoginTriggerSource, f as useRequestReport, M as asideRequest, _ as _export_sfc } from "./index-h_W8HYhU.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-CFXr9rT4.js";
4
+ import { t as transWebUrl } from "./transWebUrl-BczLVmeW.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, z as useLayoutConfig, t as transformUrl, M as asideRequest, G as GIcon, K as navigateWithMigrationGuard, H as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-DopYJtUq.js";
2
+ import { a as i18n, z as useLayoutConfig, t as transformUrl, M as asideRequest, G as GIcon, K as navigateWithMigrationGuard, H as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-h_W8HYhU.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-CFXr9rT4.js";
4
+ import { t as transWebUrl } from "./transWebUrl-BczLVmeW.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 { defineComponent, ref, inject, watch, 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-DopYJtUq.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-h_W8HYhU.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, n as normalizeSearchHistoryEntry, G as GIcon, _ as _export_sfc } from "./index-DopYJtUq.js";
2
+ import { a as i18n, n as normalizeSearchHistoryEntry, G as GIcon, _ as _export_sfc } from "./index-h_W8HYhU.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,6 +1,6 @@
1
1
  import { defineComponent, inject, ref, onMounted, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, renderSlot, createBlock, createVNode, withCtx } from "vue";
2
- import { u as useReportRepo, S as SearchRepoCard } from "./useReportRepo-DtcAFWsp.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-DopYJtUq.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./useReportRepo-CXlL6SCW.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-h_W8HYhU.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-DopYJtUq.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-h_W8HYhU.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 { defineComponent, inject, ref, watch, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-DopYJtUq.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-h_W8HYhU.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-project history-list-project--padded" };
@@ -8,7 +8,7 @@ import { Message } from "vue-devui-lal/message";
8
8
  import "vue-devui-lal/message/style.css";
9
9
  import { FixedOverlay } from "vue-devui-lal/overlay";
10
10
  import "vue-devui-lal/overlay/style.css";
11
- import { a as i18n, k as usePageResize, A as isZh, _ as _export_sfc } from "./index-DopYJtUq.js";
11
+ import { a as i18n, k as usePageResize, A as isZh, _ as _export_sfc } from "./index-h_W8HYhU.js";
12
12
  const _YunpianCaptchaManager = class _YunpianCaptchaManager {
13
13
  // eslint-disable-next-line no-useless-constructor
14
14
  constructor() {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, onMounted, nextTick, onUnmounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
2
- import { y as slidCaptchaManager, z as useLayoutConfig, A as isZh, _ as _export_sfc } from "./index-DopYJtUq.js";
2
+ import { y as slidCaptchaManager, z as useLayoutConfig, A as isZh, _ as _export_sfc } from "./index-h_W8HYhU.js";
3
3
  import { FixedOverlay } from "vue-devui-lal/overlay";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const TARGET_TEXT = "Click in order:";
@@ -11269,7 +11269,6 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11269
11269
  props: {
11270
11270
  dropdownVisible: { type: Boolean, default: false },
11271
11271
  isCreateOrg: { type: Boolean, default: true },
11272
- isCreateEnterprise: { type: Boolean, default: false },
11273
11272
  items: { default: void 0 },
11274
11273
  onNavigate: { type: Function, default: void 0 }
11275
11274
  },
@@ -11341,7 +11340,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11341
11340
  const menuItems = computed(() => {
11342
11341
  const baseItems = props.items || defaultMenuItems.value;
11343
11342
  const items = props.isCreateOrg ? baseItems : baseItems.filter((item) => item.key !== "organization");
11344
- return props.isCreateEnterprise ? [...items, enterpriseMenuItem] : items;
11343
+ return [...items, enterpriseMenuItem];
11345
11344
  });
11346
11345
  function getMenuItems() {
11347
11346
  var _a;
@@ -11409,6 +11408,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11409
11408
  if (event.currentTarget instanceof HTMLElement) event.currentTarget.click();
11410
11409
  }
11411
11410
  }
11411
+ function stripRouterBase(route2) {
11412
+ const base = router2.options.history.base;
11413
+ if (!base || base === "/") return route2;
11414
+ if (route2 === base) return "/";
11415
+ return route2.startsWith(`${base}/`) ? route2.slice(base.length) : route2;
11416
+ }
11412
11417
  function navigateTo(href) {
11413
11418
  const applicationHref = toApplicationUrl(layoutConfig2.VITE_HOST, href);
11414
11419
  const applicationRoute = toApplicationRoute(layoutConfig2.VITE_HOST, href);
@@ -11420,10 +11425,10 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11420
11425
  return;
11421
11426
  }
11422
11427
  } else {
11423
- void router2.push(applicationRoute);
11428
+ void router2.push(stripRouterBase(applicationRoute));
11424
11429
  return;
11425
11430
  }
11426
- void router2.push(applicationRoute);
11431
+ void router2.push(stripRouterBase(applicationRoute));
11427
11432
  }
11428
11433
  async function selectCreateItem(item) {
11429
11434
  closeMenu();
@@ -15952,12 +15957,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
15952
15957
  setup(__props) {
15953
15958
  const layoutConfig2 = useLayoutConfig();
15954
15959
  const { t: $t } = i18n.global;
15955
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-_5GDmfzm.js"));
15956
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-CfD2dGF1.js"));
15957
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DDO1PY6e.js"));
15958
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CLdymHCy.js"));
15959
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-Bm2E0v-n.js"));
15960
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-DYCQOIyY.js"));
15960
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-RPXFMu1R.js"));
15961
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-CfYdnSSt.js"));
15962
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-YilLmuv9.js"));
15963
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DLHiQxon.js"));
15964
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BcysuWPy.js"));
15965
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-Cdt_7uFd.js"));
15961
15966
  const props = __props;
15962
15967
  const repoInfo = inject("repoInfo", computed(() => void 0));
15963
15968
  const orgInfo = inject("orgInfo", computed(() => void 0));
@@ -17348,7 +17353,7 @@ const vElementExposure = {
17348
17353
  beforeUnmount() {
17349
17354
  }
17350
17355
  };
17351
- const NoticeModal = defineAsyncComponent(() => import("./notice-DdOHHuSY.js"));
17356
+ const NoticeModal = defineAsyncComponent(() => import("./notice-CHV_1LwE.js"));
17352
17357
  function clearNotice() {
17353
17358
  if (localStorage$2.getItem("validator_email")) {
17354
17359
  localStorage$2.removeItem("validator_email");
@@ -19512,7 +19517,6 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
19512
19517
  dropdownVisible: _ctx.openCreateDropdown,
19513
19518
  items: _ctx.createMenuItems,
19514
19519
  onNavigate: _ctx.createMenuNavigate,
19515
- "is-create-enterprise": "",
19516
19520
  "onUpdate:dropdownVisible": _cache[3] || (_cache[3] = ($event) => emit("update:openCreateDropdown", $event))
19517
19521
  }, null, 8, ["dropdownVisible", "items", "onNavigate"])) : createCommentVNode("", true),
19518
19522
  isModuleVisible(unref(HeaderDisplayItem).MESSAGE_CENTER) ? (openBlock(), createBlock(Notice, { key: 2 })) : createCommentVNode("", true),
@@ -19780,9 +19784,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19780
19784
  const layoutConfig2 = useLayoutConfig();
19781
19785
  const { t: t2 } = i18n.global;
19782
19786
  const route = useRoute();
19783
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-9_YDnl-1.js"));
19784
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-DKkAdHEv.js"));
19785
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-CiTAu8At.js"));
19787
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-C7ckVqSq.js"));
19788
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-Cy-_DEso.js"));
19789
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-B0Lg78cL.js"));
19786
19790
  const props = __props;
19787
19791
  const useReport2 = inject("useReport");
19788
19792
  const userInfo = inject("userInfo");
@@ -26235,7 +26239,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
26235
26239
  __publicField(_SlidCaptchaManager, "instance");
26236
26240
  let SlidCaptchaManager = _SlidCaptchaManager;
26237
26241
  const slidCaptchaManager = SlidCaptchaManager.getInstance();
26238
- const SlidCaptcha = defineAsyncComponent(() => import("./index-agRGDsKS.js"));
26242
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-COQDnVGm.js"));
26239
26243
  const useSlidCaptcha = () => {
26240
26244
  const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
26241
26245
  const open = (config) => {
@@ -26265,7 +26269,7 @@ const useSlidCaptcha = () => {
26265
26269
  close
26266
26270
  };
26267
26271
  };
26268
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-DeMKkL5I.js"));
26272
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-CCw22BCm.js"));
26269
26273
  const useYunpianCaptcha = () => {
26270
26274
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
26271
26275
  const open = (config) => {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a3, $, a1, U, V, X, a6, a8, a0, Y, Z, Q, S, W, a2, P, C, a9, a5, a7, a4 } from "./index-DopYJtUq.js";
1
+ import { a3, $, a1, U, V, X, a6, a8, a0, Y, Z, Q, S, W, a2, P, C, a9, a5, a7, a4 } from "./index-h_W8HYhU.js";
2
2
  export {
3
3
  a3 as AsideFooterTools,
4
4
  $ as AtomCodeLauncher,
@@ -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, _ as _export_sfc } from "./index-DopYJtUq.js";
2
+ import { i as isPhone, u as useModel, _ as _export_sfc } from "./index-h_W8HYhU.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.12.39",
3
+ "version": "1.12.41",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",
@@ -1,4 +1,4 @@
1
- import { z as useLayoutConfig } from "./index-DopYJtUq.js";
1
+ import { z as useLayoutConfig } from "./index-h_W8HYhU.js";
2
2
  const layoutConfig = useLayoutConfig();
3
3
  const transWebUrl = (url, params) => {
4
4
  if (!url) return url;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, toDisplayString, unref, mergeModels, useModel, ref, watch, createElementBlock, openBlock, createVNode, withDirectives, normalizeClass, createElementVNode, vShow, inject, withModifiers, createBlock, Fragment, computed, createCommentVNode, normalizeStyle, createTextVNode, renderList, withCtx, reactive, onMounted, watchEffect } from "vue";
2
- import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, j as useCookie, k as usePageResize, L as LANG_ZH, m as isGstarRepo, o as _sfc_main$b, p as isIncubationRepo, q as highlightWords, t as transformUrl, w as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, x as LANG_KEY } from "./index-DopYJtUq.js";
3
- import { t as transWebUrl } from "./transWebUrl-CFXr9rT4.js";
2
+ import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, j as useCookie, k as usePageResize, L as LANG_ZH, m as isGstarRepo, o as _sfc_main$b, p as isIncubationRepo, q as highlightWords, t as transformUrl, w as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, x as LANG_KEY } from "./index-h_W8HYhU.js";
3
+ import { t as transWebUrl } from "./transWebUrl-BczLVmeW.js";
4
4
  import { useRouter } from "vue-router";
5
5
  import { Row, Col } from "vue-devui-lal/grid";
6
6
  import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";