vue-layout-gitcode 1.12.34 → 1.12.36
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 +154 -0
- package/{MenuItem-BJi1TIAW.js → MenuItem-CpNGRzXl.js} +5 -5
- package/{ProjectMenuList-B9ndArm7.js → ProjectMenuList-i-DG-Lp_.js} +20 -20
- package/{ProjectMenuListV2-C9gbFrMy.js → ProjectMenuListV2-BWAcoaLB.js} +10 -10
- package/{ProjectSearch-CKMlZXBZ.js → ProjectSearch-BF6NwnUD.js} +35 -22
- package/{SearchHistoryList-BI2TtBMA.js → SearchHistoryList-HPLScuap.js} +16 -13
- package/{SearchRecommed-D4IS58Qy.js → SearchRecommed-CfoABOec.js} +7 -7
- package/{SearchScopeList-DF4bvq2k.js → SearchScopeList-MDfy39Wg.js} +6 -6
- package/{UserSearch-DH9xxOrf.js → UserSearch-B3OpNc8B.js} +19 -16
- package/{index-BYIXHuOy.js → index-BOa97Aot.js} +4420 -2873
- package/{index-COV_1Ik6.js → index-BsMZ1sa2.js} +2 -2
- package/{index-2l6YPDov.js → index-CDZJ6srp.js} +4 -4
- package/index.d.ts +42 -673
- package/index.js +21 -14
- package/{notice-B3Mv74nx.js → notice-wiD3_kEI.js} +14 -13
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-C3zC-G_1.js → transWebUrl-BjEWcV7K.js} +1 -1
- package/{index-C0Ixjtci.js → useReportRepo-C61yRVsW.js} +157 -176
- package/GloabarSearch-DvgDMvgv.js +0 -202
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import { inject, ref, watch, withDirectives,
|
|
2
|
-
import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-
|
|
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-BOa97Aot.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
|
-
const _hoisted_1 = { class: "
|
|
6
|
-
const _hoisted_2 = { class: "history-list-project-globartitle
|
|
5
|
+
const _hoisted_1 = { class: "history-list-project history-list-project--padded" };
|
|
6
|
+
const _hoisted_2 = { class: "history-list-project-globartitle history-list-project-globartitle--gap" };
|
|
7
7
|
const _hoisted_3 = ["href"];
|
|
8
|
-
const _hoisted_4 = { class: "
|
|
9
|
-
const _hoisted_5 = { class: "
|
|
10
|
-
const _sfc_main = {
|
|
8
|
+
const _hoisted_4 = { class: "history-list-project-globarbox" };
|
|
9
|
+
const _hoisted_5 = { class: "ellipsis history-list-project__name" };
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
11
|
__name: "UserSearch",
|
|
12
|
-
props:
|
|
12
|
+
props: {
|
|
13
|
+
searchStr: {},
|
|
14
|
+
searchInfo: {}
|
|
15
|
+
},
|
|
13
16
|
setup(__props) {
|
|
14
17
|
const { t: $t } = i18n.global;
|
|
15
|
-
const API = headRequest(inject("request"));
|
|
18
|
+
const API = headRequest(inject("request", () => Promise.resolve({ data: {} })));
|
|
16
19
|
const props = __props;
|
|
17
20
|
const loading = ref(false);
|
|
18
21
|
const searchFileList = ref([]);
|
|
@@ -41,14 +44,14 @@ const _sfc_main = {
|
|
|
41
44
|
search: props.searchStr
|
|
42
45
|
}).then((res) => {
|
|
43
46
|
const data = res.data || {};
|
|
44
|
-
searchFileList.value = data.content.map((item) => {
|
|
47
|
+
searchFileList.value = (data.content || []).map((item) => {
|
|
45
48
|
return {
|
|
46
49
|
...item,
|
|
47
|
-
web_url: transformUrl(item.web_url),
|
|
48
|
-
ssh_url_to_repo: transformUrl(item.ssh_url_to_repo),
|
|
49
|
-
http_url_to_repo: transformUrl(item.http_url_to_repo),
|
|
50
|
-
readme_url: transformUrl(item.readme_url),
|
|
51
|
-
avatar_url: transformUrl(item.avatar_url)
|
|
50
|
+
web_url: transformUrl(item.web_url || ""),
|
|
51
|
+
ssh_url_to_repo: transformUrl(item.ssh_url_to_repo || ""),
|
|
52
|
+
http_url_to_repo: transformUrl(item.http_url_to_repo || ""),
|
|
53
|
+
readme_url: transformUrl(item.readme_url || ""),
|
|
54
|
+
avatar_url: transformUrl(item.avatar_url || "")
|
|
52
55
|
};
|
|
53
56
|
}) || [];
|
|
54
57
|
}).finally(() => {
|
|
@@ -88,7 +91,7 @@ const _sfc_main = {
|
|
|
88
91
|
]);
|
|
89
92
|
};
|
|
90
93
|
}
|
|
91
|
-
};
|
|
94
|
+
});
|
|
92
95
|
export {
|
|
93
96
|
_sfc_main as default
|
|
94
97
|
};
|