vue-layout-gitcode 1.12.36 → 1.12.38
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-CbyaXQ9_.js → GloabarSearch-DJ6iKp30.js} +2 -2
- package/{MenuItem-CpNGRzXl.js → MenuItem-xIMjCwZH.js} +1 -1
- package/{ProjectMenuList-i-DG-Lp_.js → ProjectMenuList-CUzk1aT1.js} +2 -2
- package/{ProjectMenuListV2-BWAcoaLB.js → ProjectMenuListV2-NUlc_WSF.js} +2 -2
- package/{ProjectSearch-BF6NwnUD.js → ProjectSearch-B1B_ylR5.js} +28 -7
- package/{SearchHistoryList-HPLScuap.js → SearchHistoryList-kUU1YE6C.js} +1 -1
- package/{SearchRecommed-CfoABOec.js → SearchRecommed-3QMNGnAW.js} +2 -2
- package/{SearchScopeList-MDfy39Wg.js → SearchScopeList-xTv1h5WH.js} +1 -1
- package/{UserSearch-B3OpNc8B.js → UserSearch-DXsK2ra4.js} +1 -1
- package/{index-BsMZ1sa2.js → index-BFQb7Dbz.js} +1 -1
- package/{index-BOa97Aot.js → index-C2Gk6MDV.js} +908 -813
- package/{index-CDZJ6srp.js → index-DoT6AhvJ.js} +1 -1
- package/index.d.ts +6 -0
- package/index.js +14 -13
- package/{notice-wiD3_kEI.js → notice-BHOroXPp.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-BjEWcV7K.js → transWebUrl-BgaQlhsg.js} +1 -1
- package/{useReportRepo-C61yRVsW.js → useReportRepo-BYxmZz75.js} +2 -2
|
@@ -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-
|
|
3
|
-
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./useReportRepo-
|
|
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-C2Gk6MDV.js";
|
|
3
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./useReportRepo-BYxmZz75.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-
|
|
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-C2Gk6MDV.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-
|
|
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-C2Gk6MDV.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-BgaQlhsg.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-
|
|
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-C2Gk6MDV.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-BgaQlhsg.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,8 +1,13 @@
|
|
|
1
|
-
import { defineComponent, 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-
|
|
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-C2Gk6MDV.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";
|
|
6
|
+
const extractSearchFileList = (response) => {
|
|
7
|
+
const responseData = Array.isArray(response) ? response : response == null ? void 0 : response.data;
|
|
8
|
+
const data = responseData && typeof responseData === "object" && !Array.isArray(responseData) && "data" in responseData ? responseData.data : responseData;
|
|
9
|
+
return Array.isArray(data) ? data.filter((item) => typeof item === "string") : [];
|
|
10
|
+
};
|
|
6
11
|
const _hoisted_1 = { class: "history-list-project history-list-project--padded" };
|
|
7
12
|
const _hoisted_2 = { class: "history-list-project-globartitle history-list-project-globartitle--gap" };
|
|
8
13
|
const _hoisted_3 = ["href"];
|
|
@@ -23,17 +28,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
28
|
const route = useRoute();
|
|
24
29
|
const router = useRouter();
|
|
25
30
|
const API = headRequest(inject("request", () => Promise.resolve({ data: {} })));
|
|
31
|
+
let fileListRequestId = 0;
|
|
26
32
|
const loadFileList = async () => {
|
|
27
|
-
var _a, _b
|
|
28
|
-
|
|
33
|
+
var _a, _b;
|
|
34
|
+
const searchScopeName = (_a = props == null ? void 0 : props.searchInfo) == null ? void 0 : _a.searchScopeName;
|
|
35
|
+
const requestId = ++fileListRequestId;
|
|
36
|
+
if (!searchScopeName) {
|
|
37
|
+
filedList.value = [];
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
29
40
|
const params = {
|
|
30
|
-
repoId: encodeURIComponent(
|
|
41
|
+
repoId: encodeURIComponent(searchScopeName),
|
|
31
42
|
ref_name: ((_b = props.searchInfo) == null ? void 0 : _b.branch) || ""
|
|
32
43
|
};
|
|
33
44
|
const res = await reqCatch(API.getRepoFileList, params);
|
|
34
|
-
|
|
45
|
+
if (requestId !== fileListRequestId) return;
|
|
46
|
+
filedList.value = extractSearchFileList(res == null ? void 0 : res.data);
|
|
35
47
|
};
|
|
36
|
-
|
|
48
|
+
watch(
|
|
49
|
+
() => {
|
|
50
|
+
var _a, _b;
|
|
51
|
+
return [(_a = props.searchInfo) == null ? void 0 : _a.searchScopeName, (_b = props.searchInfo) == null ? void 0 : _b.branch];
|
|
52
|
+
},
|
|
53
|
+
() => {
|
|
54
|
+
void loadFileList();
|
|
55
|
+
},
|
|
56
|
+
{ immediate: true }
|
|
57
|
+
);
|
|
37
58
|
const searchFileList = computed(() => {
|
|
38
59
|
return filedList.value.filter((item) => {
|
|
39
60
|
var _a;
|
|
@@ -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-
|
|
2
|
+
import { a as i18n, n as normalizeSearchHistoryEntry, G as GIcon, _ as _export_sfc } from "./index-C2Gk6MDV.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-
|
|
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 "./useReportRepo-BYxmZz75.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-C2Gk6MDV.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-C2Gk6MDV.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-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-C2Gk6MDV.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" };
|
|
@@ -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-
|
|
11
|
+
import { a as i18n, k as usePageResize, A as isZh, _ as _export_sfc } from "./index-C2Gk6MDV.js";
|
|
12
12
|
const _YunpianCaptchaManager = class _YunpianCaptchaManager {
|
|
13
13
|
// eslint-disable-next-line no-useless-constructor
|
|
14
14
|
constructor() {
|