vue-layout-gitcode 1.12.39 → 1.12.40

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-CoTmqqqd.js";
3
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./useReportRepo-6cg_fubT.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-CoTmqqqd.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-CoTmqqqd.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-CFXr9rT4.js";
4
+ import { t as transWebUrl } from "./transWebUrl-BJOs3T2E.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-CoTmqqqd.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-CFXr9rT4.js";
4
+ import { t as transWebUrl } from "./transWebUrl-BJOs3T2E.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-CoTmqqqd.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-CoTmqqqd.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-6cg_fubT.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-CoTmqqqd.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-CoTmqqqd.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-CoTmqqqd.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-CoTmqqqd.js";
12
12
  const _YunpianCaptchaManager = class _YunpianCaptchaManager {
13
13
  // eslint-disable-next-line no-useless-constructor
14
14
  constructor() {
@@ -11409,6 +11409,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11409
11409
  if (event.currentTarget instanceof HTMLElement) event.currentTarget.click();
11410
11410
  }
11411
11411
  }
11412
+ function stripRouterBase(route2) {
11413
+ const base = router2.options.history.base;
11414
+ if (!base || base === "/") return route2;
11415
+ if (route2 === base) return "/";
11416
+ return route2.startsWith(`${base}/`) ? route2.slice(base.length) : route2;
11417
+ }
11412
11418
  function navigateTo(href) {
11413
11419
  const applicationHref = toApplicationUrl(layoutConfig2.VITE_HOST, href);
11414
11420
  const applicationRoute = toApplicationRoute(layoutConfig2.VITE_HOST, href);
@@ -11420,10 +11426,10 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11420
11426
  return;
11421
11427
  }
11422
11428
  } else {
11423
- void router2.push(applicationRoute);
11429
+ void router2.push(stripRouterBase(applicationRoute));
11424
11430
  return;
11425
11431
  }
11426
- void router2.push(applicationRoute);
11432
+ void router2.push(stripRouterBase(applicationRoute));
11427
11433
  }
11428
11434
  async function selectCreateItem(item) {
11429
11435
  closeMenu();
@@ -15952,12 +15958,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
15952
15958
  setup(__props) {
15953
15959
  const layoutConfig2 = useLayoutConfig();
15954
15960
  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"));
15961
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-D7so4Y5b.js"));
15962
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-sYipfTC1.js"));
15963
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-8m-1kram.js"));
15964
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-E2zinsuS.js"));
15965
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-CsOUkAzu.js"));
15966
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-D7yqw2C4.js"));
15961
15967
  const props = __props;
15962
15968
  const repoInfo = inject("repoInfo", computed(() => void 0));
15963
15969
  const orgInfo = inject("orgInfo", computed(() => void 0));
@@ -17348,7 +17354,7 @@ const vElementExposure = {
17348
17354
  beforeUnmount() {
17349
17355
  }
17350
17356
  };
17351
- const NoticeModal = defineAsyncComponent(() => import("./notice-DdOHHuSY.js"));
17357
+ const NoticeModal = defineAsyncComponent(() => import("./notice-CjPGlCcz.js"));
17352
17358
  function clearNotice() {
17353
17359
  if (localStorage$2.getItem("validator_email")) {
17354
17360
  localStorage$2.removeItem("validator_email");
@@ -19780,9 +19786,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19780
19786
  const layoutConfig2 = useLayoutConfig();
19781
19787
  const { t: t2 } = i18n.global;
19782
19788
  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"));
19789
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-CWZ5KP6I.js"));
19790
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-CgD8Qw8R.js"));
19791
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-D0DTp4x5.js"));
19786
19792
  const props = __props;
19787
19793
  const useReport2 = inject("useReport");
19788
19794
  const userInfo = inject("userInfo");
@@ -26235,7 +26241,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
26235
26241
  __publicField(_SlidCaptchaManager, "instance");
26236
26242
  let SlidCaptchaManager = _SlidCaptchaManager;
26237
26243
  const slidCaptchaManager = SlidCaptchaManager.getInstance();
26238
- const SlidCaptcha = defineAsyncComponent(() => import("./index-agRGDsKS.js"));
26244
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-Dq_QwsS1.js"));
26239
26245
  const useSlidCaptcha = () => {
26240
26246
  const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
26241
26247
  const open = (config) => {
@@ -26265,7 +26271,7 @@ const useSlidCaptcha = () => {
26265
26271
  close
26266
26272
  };
26267
26273
  };
26268
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-DeMKkL5I.js"));
26274
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-BsRXUfO7.js"));
26269
26275
  const useYunpianCaptcha = () => {
26270
26276
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
26271
26277
  const open = (config) => {
@@ -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-CoTmqqqd.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:";
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-CoTmqqqd.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-CoTmqqqd.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.40",
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-CoTmqqqd.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-CoTmqqqd.js";
3
+ import { t as transWebUrl } from "./transWebUrl-BJOs3T2E.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";