vue-layout-gitcode 1.12.15-beta.3 → 1.12.15-beta.30
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-CehDLm5e.js → GloabarSearch-p_l4B9Iv.js} +4 -4
- package/{MenuItem-C3jP0hIF.js → MenuItem-D3r9OiuI.js} +15 -11
- package/{ProjectMenuList-CYBu-6UI.js → ProjectMenuList-DEu7YX5x.js} +6 -6
- package/{ProjectMenuListV2-BNO8Oa9f.js → ProjectMenuListV2-B-yYLbRH.js} +5 -5
- package/{ProjectSearch-DqTXNeuA.js → ProjectSearch-DC73LI8G.js} +2 -2
- package/{SearchHistoryList-08Q75qyT.js → SearchHistoryList-BO8w56wQ.js} +5 -5
- package/{SearchRecommed-BP1gksCD.js → SearchRecommed-C6CwyeCO.js} +3 -3
- package/{SearchScopeList-jaI05Znk.js → SearchScopeList-CSfeBSyx.js} +2 -2
- package/{UserSearch-p1c5YRt2.js → UserSearch-O9bInbNg.js} +2 -2
- package/{index-CtgqGX_c.js → index-CqNMIElC.js} +2785 -911
- package/{index-Vmx0G7Nd.js → index-CuEGmOjr.js} +2 -2
- package/{index-CY16HldM.js → index-DzdeRe6N.js} +3 -3
- package/{index-BniudX3d.js → index-RtiZu2AA.js} +2 -2
- package/index.d.ts +455 -470
- package/index.js +18 -12
- package/{notice-9BqsHOHE.js → notice-DJaG6UOc.js} +2 -2
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-Di5i1eNa.js → transWebUrl-C4jzAU6I.js} +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent, inject,
|
|
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-CqNMIElC.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-DzdeRe6N.js";
|
|
7
|
+
import "./transWebUrl-C4jzAU6I.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
|
-
import { defineComponent, inject, useSlots, computed, ref,
|
|
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,
|
|
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-CqNMIElC.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
|
-
import { defineComponent, inject, ref, reactive, watch, computed, openBlock,
|
|
2
|
-
import { a as i18n, y as useLayoutConfig, G as GIcon, t as transformUrl,
|
|
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-CqNMIElC.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-C4jzAU6I.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
|
-
import { defineComponent, inject, ref, reactive, computed, watch,
|
|
2
|
-
import { a as i18n, y as useLayoutConfig, t as transformUrl, G as GIcon,
|
|
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-CqNMIElC.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-C4jzAU6I.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
|
-
import { ref, inject, computed, withDirectives,
|
|
2
|
-
import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-
|
|
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-CqNMIElC.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
|
-
import { defineComponent, computed, openBlock,
|
|
2
|
-
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-
|
|
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-CqNMIElC.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
|
-
import { defineComponent, inject, ref, onMounted,
|
|
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-
|
|
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-DzdeRe6N.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-CqNMIElC.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
|
-
import { defineComponent,
|
|
2
|
-
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-
|
|
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-CqNMIElC.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
|
-
import { inject, ref, watch, withDirectives,
|
|
2
|
-
import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-
|
|
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-CqNMIElC.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" };
|