vue-layout-gitcode 1.12.15-beta.25 → 1.12.15-beta.26

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,10 +1,10 @@
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, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-CR7LuZ6k.js";
4
+ import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-B_T2V97k.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CU_uQ2Xm.js";
7
- import "./transWebUrl-dmuyyt1Z.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-ClxSV-6C.js";
7
+ import "./transWebUrl-C-UERlNj.js";
8
8
  import "vue-devui-lal/tooltip";
9
9
  import "vue-devui-lal/tooltip/style.css";
10
10
  import "vue-router";
@@ -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, y as useLayoutConfig, A as ThemeType, B as currentTheme, L as LANG_ZH, C as LANG_EN, D as getLocaleLang, G as GIcon, F as emitEvent, b as REPO_EVENT, H as ASIDE_MENU_REPO, I as isHttps, J as navigateWithMigrationGuard, _ as _export_sfc } from "./index-CR7LuZ6k.js";
2
+ import { a as i18n, y as useLayoutConfig, A as ThemeType, B as currentTheme, L as LANG_ZH, C as LANG_EN, D as getLocaleLang, G as GIcon, F as emitEvent, b as REPO_EVENT, H as ASIDE_MENU_REPO, I as isHttps, J as navigateWithMigrationGuard, _ as _export_sfc } from "./index-B_T2V97k.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, y as useLayoutConfig, G as GIcon, t as transformUrl, M as _sfc_main$1, N as loadAsideData, J as navigateWithMigrationGuard, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, K as asideRequest, _ as _export_sfc } from "./index-CR7LuZ6k.js";
2
+ import { a as i18n, y as useLayoutConfig, G as GIcon, t as transformUrl, M as _sfc_main$1, N as loadAsideData, J as navigateWithMigrationGuard, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, K as asideRequest, _ as _export_sfc } from "./index-B_T2V97k.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-dmuyyt1Z.js";
4
+ import { t as transWebUrl } from "./transWebUrl-C-UERlNj.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, y as useLayoutConfig, t as transformUrl, K as asideRequest, G as GIcon, J as navigateWithMigrationGuard, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-CR7LuZ6k.js";
2
+ import { a as i18n, y as useLayoutConfig, t as transformUrl, K as asideRequest, G as GIcon, J as navigateWithMigrationGuard, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-B_T2V97k.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-dmuyyt1Z.js";
4
+ import { t as transWebUrl } from "./transWebUrl-C-UERlNj.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 { 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-CR7LuZ6k.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-B_T2V97k.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-CR7LuZ6k.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-B_T2V97k.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 "./index-CU_uQ2Xm.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-CR7LuZ6k.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-ClxSV-6C.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-B_T2V97k.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-CR7LuZ6k.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-B_T2V97k.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, t as transformUrl } from "./index-CR7LuZ6k.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-B_T2V97k.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" };
@@ -15248,13 +15248,17 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
15248
15248
  const linkList = ref(LANGUAGE);
15249
15249
  const router2 = useRouter();
15250
15250
  const { t: t2 } = i18n.global;
15251
+ const setPageReloadFlag = () => {
15252
+ sessionStorage$1.setItem("page_reload", "changedLang");
15253
+ api.set("page_reload", "changedLang", { path: "/", sameSite: "Lax" });
15254
+ };
15251
15255
  const handleClick = (linkItem) => {
15252
15256
  var _a, _b;
15253
15257
  if (lang.value === linkItem.value) return;
15254
15258
  lang.value = linkItem.value;
15255
15259
  const isHomePage = ((_b = (_a = router2 == null ? void 0 : router2.currentRoute) == null ? void 0 : _a.value) == null ? void 0 : _b.name) === "home";
15256
15260
  if (isHomePage) {
15257
- sessionStorage$1.setItem("page_reload", "changedLang");
15261
+ setPageReloadFlag();
15258
15262
  }
15259
15263
  window.location.reload();
15260
15264
  };
@@ -15469,9 +15473,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
15469
15473
  });
15470
15474
  const baseRouterMenus = [
15471
15475
  [
15472
- // 工作台已迁移到新服务 /dashboard:SPA(independence=false routerMenuList)
15473
- // 也统一用 link 整页跳转(与 baseHrefMenus 一致),避免跳到旧工作台。
15474
- { id: "dashboard", label: t2("gitCodeLayout.header.workbench"), icon: "gt-plane-user", link: "/dashboard" },
15476
+ { id: "dashboard", label: t2("gitCodeLayout.header.workbench"), icon: "gt-plane-user", to: getRouterLink("dashboard") },
15475
15477
  { id: "myEnterprise", label: t2("gitCodeLayout.header.myEnterprise"), icon: "gt-a-plane-enterprise", to: getRouterLink({ path: "/setting/enterprise" }) },
15476
15478
  { id: "myOrg", label: t2("gitCodeLayout.header.myOrg"), icon: "gt-plane-organization", to: getRouterLink({ name: "settingOrganization" }) },
15477
15479
  { id: "myRepo", label: t2("gitCodeLayout.header.myRepo"), icon: "gt-plane-projectHome1", to: getRouterLink("settingRepo") },
@@ -16343,12 +16345,12 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
16343
16345
  setup(__props) {
16344
16346
  const layoutConfig2 = useLayoutConfig();
16345
16347
  const { t: $t } = i18n.global;
16346
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-C1KWIFYF.js"));
16347
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-CFD8CV5r.js"));
16348
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-BvNeU4Hz.js"));
16349
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-RtqJjRQQ.js"));
16350
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-XdI1zc0D.js"));
16351
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-0bn2rrNg.js"));
16348
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CSulM69L.js"));
16349
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-DyVpJ0tp.js"));
16350
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-wqsnpP2m.js"));
16351
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CBn618x7.js"));
16352
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DACIOE9u.js"));
16353
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-r1nKqpZj.js"));
16352
16354
  const props = __props;
16353
16355
  const repoInfo = inject("repoInfo");
16354
16356
  const orgInfo = inject("orgInfo");
@@ -17372,7 +17374,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
17372
17374
  loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
17373
17375
  }
17374
17376
  };
17375
- const NoticeModal = defineAsyncComponent(() => import("./notice-LHH_LW1T.js"));
17377
+ const NoticeModal = defineAsyncComponent(() => import("./notice-CM_TjS9s.js"));
17376
17378
  function clearNotice() {
17377
17379
  if (localStorage$2.getItem("validator_email")) {
17378
17380
  localStorage$2.removeItem("validator_email");
@@ -18586,9 +18588,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
18586
18588
  const layoutConfig2 = useLayoutConfig();
18587
18589
  const { t: t2 } = i18n.global;
18588
18590
  const route = useRoute();
18589
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-CkgnmiZF.js"));
18590
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-DDuP0S_u.js"));
18591
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-wn9lvxuG.js"));
18591
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-j7W1oMju.js"));
18592
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-BazzlsC_.js"));
18593
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-DHbbjGxo.js"));
18592
18594
  const props = __props;
18593
18595
  const useReport2 = inject("useReport");
18594
18596
  const userInfo = inject("userInfo");
@@ -26289,7 +26291,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
26289
26291
  __publicField(_SlidCaptchaManager, "instance");
26290
26292
  let SlidCaptchaManager = _SlidCaptchaManager;
26291
26293
  const slidCaptchaManager = SlidCaptchaManager.getInstance();
26292
- const SlidCaptcha = defineAsyncComponent(() => import("./index-vNz_3MMg.js"));
26294
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-C1SjxHTG.js"));
26293
26295
  const useSlidCaptcha = () => {
26294
26296
  const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
26295
26297
  const open = (config) => {
@@ -26319,7 +26321,7 @@ const useSlidCaptcha = () => {
26319
26321
  close
26320
26322
  };
26321
26323
  };
26322
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-Dqjzt9fA.js"));
26324
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-DSVBUinv.js"));
26323
26325
  const useYunpianCaptcha = () => {
26324
26326
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
26325
26327
  const open = (config) => {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, onMounted, nextTick, onUnmounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
2
- import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-CR7LuZ6k.js";
2
+ import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-B_T2V97k.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:";
@@ -1,7 +1,7 @@
1
1
  import { ref, watchEffect, defineComponent, toDisplayString, unref, mergeModels, useModel, watch, createElementBlock, openBlock, createVNode, withDirectives, normalizeClass, createElementVNode, vShow, inject, withModifiers, createBlock, Fragment, computed, createCommentVNode, normalizeStyle, createTextVNode, onMounted, onUnmounted, renderList, withCtx, reactive } from "vue";
2
2
  import debounce from "lodash/debounce";
3
- 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, n as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, w as LANG_KEY } from "./index-CR7LuZ6k.js";
4
- import { t as transWebUrl } from "./transWebUrl-dmuyyt1Z.js";
3
+ 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, n as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, w as LANG_KEY } from "./index-B_T2V97k.js";
4
+ import { t as transWebUrl } from "./transWebUrl-C-UERlNj.js";
5
5
  import { useRouter } from "vue-router";
6
6
  import { Row, Col } from "vue-devui-lal/grid";
7
7
  import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
@@ -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, z as isZh, _ as _export_sfc } from "./index-CR7LuZ6k.js";
11
+ import { a as i18n, k as usePageResize, z as isZh, _ as _export_sfc } from "./index-B_T2V97k.js";
12
12
  const _YunpianCaptchaManager = class _YunpianCaptchaManager {
13
13
  // eslint-disable-next-line no-useless-constructor
14
14
  constructor() {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $, Y, Q, U, W, a2, X, P, S, V, Z, O, B, a4, a1, a3, a0 } from "./index-CR7LuZ6k.js";
1
+ import { $, Y, Q, U, W, a2, X, P, S, V, Z, O, B, a4, a1, a3, a0 } from "./index-B_T2V97k.js";
2
2
  export {
3
3
  $ as AsideFooterTools,
4
4
  Y as EnterpriseHeader,
@@ -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-CR7LuZ6k.js";
2
+ import { i as isPhone, u as useModel, _ as _export_sfc } from "./index-B_T2V97k.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.15-beta.25",
3
+ "version": "1.12.15-beta.26",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",
@@ -1,4 +1,4 @@
1
- import { y as useLayoutConfig } from "./index-CR7LuZ6k.js";
1
+ import { y as useLayoutConfig } from "./index-B_T2V97k.js";
2
2
  const layoutConfig = useLayoutConfig();
3
3
  const transWebUrl = (url, params) => {
4
4
  if (!url) return url;