vue-layout-gitcode 1.12.15-beta.4 → 1.12.15-beta.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,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-BrPuridR.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-B2tTxiDn.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-gvYv2gFy.js";
7
- import "./transWebUrl-T7vm749H.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-aIOMr3am.js";
7
+ import "./transWebUrl-Cqh6Rico.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, H as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-BrPuridR.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-B2tTxiDn.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";
@@ -93,7 +93,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
93
93
  useReport(REPO_EVENT.CLICK, { module_name: `侧边栏_${reportName}` });
94
94
  }
95
95
  };
96
- const handleMenuClick = () => {
96
+ const handleMenuClick = async () => {
97
97
  var _a, _b;
98
98
  const currentHref = window.location.href;
99
99
  if (!props.item.left_menu_url) {
@@ -106,6 +106,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
106
106
  emitEvent("login", { loginTriggerSource: `aside_${props.item.left_menu_url}` });
107
107
  return;
108
108
  }
109
+ if (props.item.left_menu_url === "/dashboard/downloads?tab=view") {
110
+ useReport(REPO_EVENT.CLICK, { module_name: ASIDE_MENU_REPO.BROWSEHISTORYCLICK });
111
+ window.open(props.item.left_menu_url, "_blank");
112
+ return;
113
+ }
109
114
  if (props.item.left_menu_url === "/dashboard/downloads") {
110
115
  (_b = (_a = globalStore.value) == null ? void 0 : _a.downloadClickRequest) == null ? void 0 : _b.call(_a);
111
116
  }
@@ -113,14 +118,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
113
118
  window.open(props.item.left_menu_url, "_blank");
114
119
  } else if (isHttps(props.item.left_menu_url || "")) {
115
120
  window.open(props.item.left_menu_url, "_self");
121
+ } else if (independence) {
122
+ window.open(layoutConfig.VITE_HOST + props.item.left_menu_url, "_self");
123
+ return;
116
124
  } else {
117
- if (independence) {
118
- window.open(layoutConfig.VITE_HOST + props.item.left_menu_url, "_self");
119
- return;
120
- }
121
- router.push({
122
- path: props.item.left_menu_url
123
- });
125
+ clickMenuReport();
126
+ await navigateWithMigrationGuard(router, { path: props.item.left_menu_url });
127
+ return;
124
128
  }
125
129
  clickMenuReport();
126
130
  };
@@ -145,7 +149,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
145
149
  ]),
146
150
  default: withCtx(() => [
147
151
  createElementVNode("div", {
148
- class: normalizeClass(["menu-item", { "menu-item__selected": isSelected.value, "menu-item__aihub": isAIHub.value }]),
152
+ class: normalizeClass(["menu-item", { "menu-item__selected": isSelected.value }]),
149
153
  onMouseenter: handleMouseEnter,
150
154
  onMouseleave: handleMouseLeave,
151
155
  onClick: handleMenuClick
@@ -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, J as _sfc_main$1, K as loadAsideData, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-BrPuridR.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-B2tTxiDn.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-T7vm749H.js";
4
+ import { t as transWebUrl } from "./transWebUrl-Cqh6Rico.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";
@@ -170,13 +170,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
170
170
  }
171
171
  return [...DEFAULT_ORG_FILTER_OPTIONS, ...moreOrgData.value];
172
172
  });
173
- const fastToLink = (type) => {
173
+ const fastToLink = async (type) => {
174
174
  if (type === "project") {
175
- router.push({ name: "userRepos", params: { namespace: props.username } });
175
+ await navigateWithMigrationGuard(router, { name: "userRepos", params: { namespace: props.username } });
176
176
  } else if (type === "enterprise") {
177
177
  window.location.href = transformUrl(`${layoutConfig.VITE_HOST}/setting/enterprise`);
178
178
  } else {
179
- router.push({ name: "settingOrganization" });
179
+ await navigateWithMigrationGuard(router, { name: "settingOrganization" });
180
180
  }
181
181
  };
182
182
  const loadMoreTeams = () => {
@@ -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, I as asideRequest, G as GIcon, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-BrPuridR.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-B2tTxiDn.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-T7vm749H.js";
4
+ import { t as transWebUrl } from "./transWebUrl-Cqh6Rico.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";
@@ -113,8 +113,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
113
113
  }, 200);
114
114
  };
115
115
  const router = useRouter();
116
- const fastToLink = () => {
117
- router.push({ name: "userRepos", params: { namespace: props.username } });
116
+ const fastToLink = async () => {
117
+ await navigateWithMigrationGuard(router, { name: "userRepos", params: { namespace: props.username } });
118
118
  };
119
119
  const handleOpenSearch = () => {
120
120
  if (!props.isLogin) {
@@ -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-BrPuridR.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-B2tTxiDn.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,15 +1,15 @@
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-BrPuridR.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-B2tTxiDn.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" };
6
6
  const _hoisted_2 = ["onClick", "onMouseenter"];
7
7
  const _hoisted_3 = { class: "history-list-box__content" };
8
- const _hoisted_4 = { class: "history-list-box__row" };
8
+ const _hoisted_4 = { class: "history-list-box__prefix" };
9
9
  const _hoisted_5 = ["title"];
10
10
  const _hoisted_6 = ["title"];
11
- const _hoisted_7 = { class: "item-tx" };
12
- const _hoisted_8 = { class: "history-list-box__type-row" };
11
+ const _hoisted_7 = { class: "history-list-box__keyword item-tx" };
12
+ const _hoisted_8 = { class: "history-list-box__type" };
13
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  __name: "SearchHistoryList",
15
15
  props: {
@@ -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-gvYv2gFy.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-BrPuridR.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-aIOMr3am.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-B2tTxiDn.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-BrPuridR.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-B2tTxiDn.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-BrPuridR.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-B2tTxiDn.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" };