vue-layout-gitcode 1.12.40 → 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-CoTmqqqd.js";
3
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./useReportRepo-6cg_fubT.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-CoTmqqqd.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-CoTmqqqd.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-BJOs3T2E.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-CoTmqqqd.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-BJOs3T2E.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-CoTmqqqd.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-CoTmqqqd.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-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";
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-CoTmqqqd.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-CoTmqqqd.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-CoTmqqqd.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-CoTmqqqd.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() {
@@ -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
  },
@@ -11336,12 +11335,13 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11336
11335
  key: "enterprise",
11337
11336
  icon: "gt-a-plane-enterprise",
11338
11337
  label: t2("gitCodeLayout.header.createMenuEnterprise"),
11339
- href: toApplicationUrl(layoutConfig2.VITE_HOST, HEADER_CREATE_ENTERPRISE_PATH)
11338
+ href: toApplicationUrl(layoutConfig2.VITE_HOST, HEADER_CREATE_ENTERPRISE_PATH),
11339
+ useHref: true
11340
11340
  };
11341
11341
  const menuItems = computed(() => {
11342
11342
  const baseItems = props.items || defaultMenuItems.value;
11343
11343
  const items = props.isCreateOrg ? baseItems : baseItems.filter((item) => item.key !== "organization");
11344
- return props.isCreateEnterprise ? [...items, enterpriseMenuItem] : items;
11344
+ return [...items, enterpriseMenuItem];
11345
11345
  });
11346
11346
  function getMenuItems() {
11347
11347
  var _a;
@@ -11434,6 +11434,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11434
11434
  async function selectCreateItem(item) {
11435
11435
  closeMenu();
11436
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
+ }
11437
11443
  if (props.onNavigate) {
11438
11444
  await props.onNavigate(item);
11439
11445
  return;
@@ -15958,12 +15964,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
15958
15964
  setup(__props) {
15959
15965
  const layoutConfig2 = useLayoutConfig();
15960
15966
  const { t: $t } = i18n.global;
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"));
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"));
15967
15973
  const props = __props;
15968
15974
  const repoInfo = inject("repoInfo", computed(() => void 0));
15969
15975
  const orgInfo = inject("orgInfo", computed(() => void 0));
@@ -17354,7 +17360,7 @@ const vElementExposure = {
17354
17360
  beforeUnmount() {
17355
17361
  }
17356
17362
  };
17357
- const NoticeModal = defineAsyncComponent(() => import("./notice-CjPGlCcz.js"));
17363
+ const NoticeModal = defineAsyncComponent(() => import("./notice-CX-y_BTW.js"));
17358
17364
  function clearNotice() {
17359
17365
  if (localStorage$2.getItem("validator_email")) {
17360
17366
  localStorage$2.removeItem("validator_email");
@@ -19518,7 +19524,6 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
19518
19524
  dropdownVisible: _ctx.openCreateDropdown,
19519
19525
  items: _ctx.createMenuItems,
19520
19526
  onNavigate: _ctx.createMenuNavigate,
19521
- "is-create-enterprise": "",
19522
19527
  "onUpdate:dropdownVisible": _cache[3] || (_cache[3] = ($event) => emit("update:openCreateDropdown", $event))
19523
19528
  }, null, 8, ["dropdownVisible", "items", "onNavigate"])) : createCommentVNode("", true),
19524
19529
  isModuleVisible(unref(HeaderDisplayItem).MESSAGE_CENTER) ? (openBlock(), createBlock(Notice, { key: 2 })) : createCommentVNode("", true),
@@ -19786,9 +19791,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19786
19791
  const layoutConfig2 = useLayoutConfig();
19787
19792
  const { t: t2 } = i18n.global;
19788
19793
  const route = useRoute();
19789
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-CWZ5KP6I.js"));
19790
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-CgD8Qw8R.js"));
19791
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-D0DTp4x5.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"));
19792
19797
  const props = __props;
19793
19798
  const useReport2 = inject("useReport");
19794
19799
  const userInfo = inject("userInfo");
@@ -26241,7 +26246,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
26241
26246
  __publicField(_SlidCaptchaManager, "instance");
26242
26247
  let SlidCaptchaManager = _SlidCaptchaManager;
26243
26248
  const slidCaptchaManager = SlidCaptchaManager.getInstance();
26244
- const SlidCaptcha = defineAsyncComponent(() => import("./index-Dq_QwsS1.js"));
26249
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-C2f5-zvH.js"));
26245
26250
  const useSlidCaptcha = () => {
26246
26251
  const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
26247
26252
  const open = (config) => {
@@ -26271,7 +26276,7 @@ const useSlidCaptcha = () => {
26271
26276
  close
26272
26277
  };
26273
26278
  };
26274
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-BsRXUfO7.js"));
26279
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-CQvft6bK.js"));
26275
26280
  const useYunpianCaptcha = () => {
26276
26281
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
26277
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-CoTmqqqd.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-CoTmqqqd.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.40",
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-CoTmqqqd.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-CoTmqqqd.js";
3
- import { t as transWebUrl } from "./transWebUrl-BJOs3T2E.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";