vue-layout-gitcode 1.12.41 → 1.12.42

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-h_W8HYhU.js";
3
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./useReportRepo-CXlL6SCW.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-xs_vbnzn.js";
3
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./useReportRepo-DeZOj1S_.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-h_W8HYhU.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-xs_vbnzn.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-h_W8HYhU.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-xs_vbnzn.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-BczLVmeW.js";
4
+ import { t as transWebUrl } from "./transWebUrl-Cb2G8lHL.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-h_W8HYhU.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-xs_vbnzn.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-BczLVmeW.js";
4
+ import { t as transWebUrl } from "./transWebUrl-Cb2G8lHL.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-h_W8HYhU.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-xs_vbnzn.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-h_W8HYhU.js";
2
+ import { a as i18n, n as normalizeSearchHistoryEntry, G as GIcon, _ as _export_sfc } from "./index-xs_vbnzn.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-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";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./useReportRepo-DeZOj1S_.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-xs_vbnzn.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-h_W8HYhU.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-xs_vbnzn.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-h_W8HYhU.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-xs_vbnzn.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" };
@@ -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-h_W8HYhU.js";
2
+ import { y as slidCaptchaManager, z as useLayoutConfig, A as isZh, _ as _export_sfc } from "./index-xs_vbnzn.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:";
@@ -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-h_W8HYhU.js";
11
+ import { a as i18n, k as usePageResize, A as isZh, _ as _export_sfc } from "./index-xs_vbnzn.js";
12
12
  const _YunpianCaptchaManager = class _YunpianCaptchaManager {
13
13
  // eslint-disable-next-line no-useless-constructor
14
14
  constructor() {
@@ -11335,7 +11335,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11335
11335
  key: "enterprise",
11336
11336
  icon: "gt-a-plane-enterprise",
11337
11337
  label: t2("gitCodeLayout.header.createMenuEnterprise"),
11338
- href: toApplicationUrl(layoutConfig2.VITE_HOST, HEADER_CREATE_ENTERPRISE_PATH)
11338
+ href: toApplicationUrl(layoutConfig2.VITE_HOST, HEADER_CREATE_ENTERPRISE_PATH),
11339
+ useHref: true
11339
11340
  };
11340
11341
  const menuItems = computed(() => {
11341
11342
  const baseItems = props.items || defaultMenuItems.value;
@@ -11433,6 +11434,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11433
11434
  async function selectCreateItem(item) {
11434
11435
  closeMenu();
11435
11436
  emit("navigate", item);
11437
+ if (item.useHref) {
11438
+ if (typeof window !== "undefined") {
11439
+ window.location.href = toApplicationUrl(layoutConfig2.VITE_HOST, item.href);
11440
+ }
11441
+ return;
11442
+ }
11436
11443
  if (props.onNavigate) {
11437
11444
  await props.onNavigate(item);
11438
11445
  return;
@@ -15957,12 +15964,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
15957
15964
  setup(__props) {
15958
15965
  const layoutConfig2 = useLayoutConfig();
15959
15966
  const { t: $t } = i18n.global;
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"));
15967
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-C6Fj67wo.js"));
15968
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-BkbD5mTj.js"));
15969
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-CLjwkajD.js"));
15970
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-D54eKxmc.js"));
15971
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-1mlm7X_W.js"));
15972
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BQbn_3a2.js"));
15966
15973
  const props = __props;
15967
15974
  const repoInfo = inject("repoInfo", computed(() => void 0));
15968
15975
  const orgInfo = inject("orgInfo", computed(() => void 0));
@@ -17353,7 +17360,7 @@ const vElementExposure = {
17353
17360
  beforeUnmount() {
17354
17361
  }
17355
17362
  };
17356
- const NoticeModal = defineAsyncComponent(() => import("./notice-CHV_1LwE.js"));
17363
+ const NoticeModal = defineAsyncComponent(() => import("./notice-CX-y_BTW.js"));
17357
17364
  function clearNotice() {
17358
17365
  if (localStorage$2.getItem("validator_email")) {
17359
17366
  localStorage$2.removeItem("validator_email");
@@ -19784,9 +19791,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19784
19791
  const layoutConfig2 = useLayoutConfig();
19785
19792
  const { t: t2 } = i18n.global;
19786
19793
  const route = useRoute();
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"));
19794
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-By6uwjQI.js"));
19795
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-CJMuAj_B.js"));
19796
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-Dh01UB9h.js"));
19790
19797
  const props = __props;
19791
19798
  const useReport2 = inject("useReport");
19792
19799
  const userInfo = inject("userInfo");
@@ -26239,7 +26246,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
26239
26246
  __publicField(_SlidCaptchaManager, "instance");
26240
26247
  let SlidCaptchaManager = _SlidCaptchaManager;
26241
26248
  const slidCaptchaManager = SlidCaptchaManager.getInstance();
26242
- const SlidCaptcha = defineAsyncComponent(() => import("./index-COQDnVGm.js"));
26249
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-C2f5-zvH.js"));
26243
26250
  const useSlidCaptcha = () => {
26244
26251
  const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
26245
26252
  const open = (config) => {
@@ -26269,7 +26276,7 @@ const useSlidCaptcha = () => {
26269
26276
  close
26270
26277
  };
26271
26278
  };
26272
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-CCw22BCm.js"));
26279
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-CQvft6bK.js"));
26273
26280
  const useYunpianCaptcha = () => {
26274
26281
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
26275
26282
  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-h_W8HYhU.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-xs_vbnzn.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-h_W8HYhU.js";
2
+ import { i as isPhone, u as useModel, _ as _export_sfc } from "./index-xs_vbnzn.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.41",
3
+ "version": "1.12.42",
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-h_W8HYhU.js";
1
+ import { z as useLayoutConfig } from "./index-xs_vbnzn.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-h_W8HYhU.js";
3
- import { t as transWebUrl } from "./transWebUrl-BczLVmeW.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-xs_vbnzn.js";
3
+ import { t as transWebUrl } from "./transWebUrl-Cb2G8lHL.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";