vue-layout-gitcode 1.12.15-beta.4 → 1.12.15-beta.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.
- package/{GloabarSearch-B0WY0LM0.js → GloabarSearch-C_9DCgBO.js} +3 -3
- package/{MenuItem-50wS5d0K.js → MenuItem-rfZ7rZLk.js} +14 -10
- package/{ProjectMenuList-Dt87wbdD.js → ProjectMenuList-GH5QI2vv.js} +5 -5
- package/{ProjectMenuListV2-01WosZfk.js → ProjectMenuListV2-K0UZQT0i.js} +4 -4
- package/{ProjectSearch-Bz-0eShp.js → ProjectSearch-CbGG8ZM5.js} +1 -1
- package/{SearchHistoryList-CayQ_mmg.js → SearchHistoryList-CbTcP9up.js} +4 -4
- package/{SearchRecommed-B5qHaSKG.js → SearchRecommed-CRylxgJt.js} +2 -2
- package/{SearchScopeList-BwUgP4-r.js → SearchScopeList-B5VEEYol.js} +1 -1
- package/{UserSearch-B-P5V1aZ.js → UserSearch-3g2INLUM.js} +1 -1
- package/{index-gvYv2gFy.js → index-BRtCOc3k.js} +2 -2
- package/{index-CmoNc1hd.js → index-VzGrf9GZ.js} +1 -1
- package/{index-CjHihoOG.js → index-YNG-Nuzr.js} +1 -1
- package/{index-BrPuridR.js → index-n_xtMOlM.js} +3085 -996
- package/index.d.ts +608 -765
- package/index.js +19 -12
- package/{notice-BPjjYgjY.js → notice-DuMmdjTG.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-T7vm749H.js → transWebUrl-CELFuPl2.js} +1 -1
|
@@ -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-
|
|
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-n_xtMOlM.js";
|
|
5
5
|
import "lodash/debounce";
|
|
6
|
-
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-
|
|
7
|
-
import "./transWebUrl-
|
|
6
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-BRtCOc3k.js";
|
|
7
|
+
import "./transWebUrl-CELFuPl2.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,
|
|
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-n_xtMOlM.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
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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
|
|
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,
|
|
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-n_xtMOlM.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-CELFuPl2.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
|
|
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
|
|
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,
|
|
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-n_xtMOlM.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-CELFuPl2.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
|
|
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-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-n_xtMOlM.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-
|
|
2
|
+
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-n_xtMOlM.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-
|
|
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
|
|
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-
|
|
3
|
-
import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-
|
|
2
|
+
import { u as useReportRepo, S as SearchRepoCard } from "./index-BRtCOc3k.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-n_xtMOlM.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-
|
|
2
|
+
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-n_xtMOlM.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-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-n_xtMOlM.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,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-
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
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-n_xtMOlM.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-CELFuPl2.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-
|
|
11
|
+
import { a as i18n, k as usePageResize, z as isZh, _ as _export_sfc } from "./index-n_xtMOlM.js";
|
|
12
12
|
const _YunpianCaptchaManager = class _YunpianCaptchaManager {
|
|
13
13
|
// eslint-disable-next-line no-useless-constructor
|
|
14
14
|
constructor() {
|
|
@@ -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-
|
|
2
|
+
import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-n_xtMOlM.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:";
|