vue-layout-gitcode 1.12.15-beta.11 → 1.12.15-beta.13
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-DxJ6MLn8.js → GloabarSearch-BSUMYUzW.js} +9 -9
- package/{MenuItem-D4MiC6IG.js → MenuItem-CefgDmFt.js} +4 -4
- package/{ProjectMenuList-DZGYiODT.js → ProjectMenuList-xGbmwWo1.js} +12 -12
- package/{ProjectMenuListV2-EV89LR2x.js → ProjectMenuListV2-rrgesyEw.js} +8 -8
- package/{ProjectSearch-BEwuDaPM.js → ProjectSearch-CszXTel7.js} +27 -19
- package/{SearchHistoryList-DmaxAvK8.js → SearchHistoryList-C5zujbkh.js} +10 -10
- package/{SearchRecommed-DZluuC-H.js → SearchRecommed-Dvm2yhI1.js} +9 -8
- package/{SearchScopeList-BYE_KyGE.js → SearchScopeList-4o9trtLx.js} +5 -5
- package/{UserSearch-BzHQXmzE.js → UserSearch-D9EPiNuS.js} +6 -6
- package/{index-G58a172b.js → index-B0g-fO8C.js} +1048 -1547
- package/{index-BxHk52W8.js → index-Czj5JGlp.js} +2 -2
- package/{index-EOrZj5ss.js → index-DoRZNduQ.js} +2 -2
- package/{index-BOScKrtu.js → index-wRENjwm_.js} +33 -33
- package/index.d.ts +18 -0
- package/index.js +12 -11
- package/{notice-B43kh3GE.js → notice-DPikcGs4.js} +7 -6
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-C4Zf5RBI.js → transWebUrl-XFT5FU_d.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-B0g-fO8C.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-wRENjwm_.js";
|
|
7
|
+
import "./transWebUrl-XFT5FU_d.js";
|
|
8
8
|
import "vue-devui-lal/tooltip";
|
|
9
9
|
import "vue-devui-lal/tooltip/style.css";
|
|
10
10
|
import "vue-router";
|
|
@@ -14,7 +14,7 @@ import "vue-devui-lal/grid/style.css";
|
|
|
14
14
|
import "vue-devui-lal/skeleton/style.css";
|
|
15
15
|
import "vue-devui-lal/popover";
|
|
16
16
|
import "vue-devui-lal/popover/style.css";
|
|
17
|
-
const _hoisted_1$1 = { class: "
|
|
17
|
+
const _hoisted_1$1 = { class: "search-repo-list-header" };
|
|
18
18
|
const _hoisted_2$1 = { class: "title" };
|
|
19
19
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
20
20
|
__name: "SearchRepoCardList",
|
|
@@ -67,7 +67,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
67
67
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.dataList, (item, index) => {
|
|
68
68
|
return withDirectives((openBlock(), createBlock(SearchRepoCard, {
|
|
69
69
|
key: item.id,
|
|
70
|
-
class: "
|
|
70
|
+
class: "search-repo-list-card",
|
|
71
71
|
info: { ...item, index },
|
|
72
72
|
keyword: __props.searchStr,
|
|
73
73
|
hover: "",
|
|
@@ -89,15 +89,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
89
89
|
const SearchRepoCardList = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
90
90
|
const _hoisted_1 = {
|
|
91
91
|
key: 0,
|
|
92
|
-
class: "
|
|
92
|
+
class: "history-list-project history-list-project--padded"
|
|
93
93
|
};
|
|
94
94
|
const _hoisted_2 = {
|
|
95
95
|
key: 1,
|
|
96
|
-
class: "
|
|
96
|
+
class: "history-list-project history-list-project--padded"
|
|
97
97
|
};
|
|
98
98
|
const _hoisted_3 = {
|
|
99
99
|
key: 2,
|
|
100
|
-
class: "
|
|
100
|
+
class: "history-list-project history-list-project--padded"
|
|
101
101
|
};
|
|
102
102
|
const _sfc_main = {
|
|
103
103
|
__name: "GloabarSearch",
|
|
@@ -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, I as navigateWithMigrationGuard, b as REPO_EVENT, _ as _export_sfc } from "./index-
|
|
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, I as navigateWithMigrationGuard, b as REPO_EVENT, _ as _export_sfc } from "./index-B0g-fO8C.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";
|
|
@@ -8,10 +8,10 @@ const _hoisted_2 = {
|
|
|
8
8
|
key: 2,
|
|
9
9
|
class: "menu-item__badge"
|
|
10
10
|
};
|
|
11
|
-
const _hoisted_3 = { class: "
|
|
11
|
+
const _hoisted_3 = { class: "menu-item__name-wrap" };
|
|
12
12
|
const _hoisted_4 = {
|
|
13
13
|
key: 1,
|
|
14
|
-
class: "token-free-text
|
|
14
|
+
class: "token-free-text"
|
|
15
15
|
};
|
|
16
16
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
17
|
__name: "MenuItem",
|
|
@@ -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, K as _sfc_main$1, M as loadAsideData, I as navigateWithMigrationGuard, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, J as asideRequest, _ as _export_sfc } from "./index-
|
|
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, K as _sfc_main$1, M as loadAsideData, I as navigateWithMigrationGuard, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, J as asideRequest, _ as _export_sfc } from "./index-B0g-fO8C.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-XFT5FU_d.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";
|
|
@@ -12,25 +12,25 @@ import "vue-devui-lal/input/style.css";
|
|
|
12
12
|
import "vue-devui-lal/skeleton/style.css";
|
|
13
13
|
import "vue-devui-lal/menu/style.css";
|
|
14
14
|
import "vue-devui-lal/button/style.css";
|
|
15
|
-
const _hoisted_1 = { class: "devui-submenu layer_2 my-work-platform submenu-item relative" };
|
|
15
|
+
const _hoisted_1 = { class: "devui-submenu layer_2 my-work-platform submenu-item my-work-platform--relative" };
|
|
16
16
|
const _hoisted_2 = {
|
|
17
17
|
class: "devui-submenu-title layer_2",
|
|
18
18
|
style: { "padding": "0px 24px" }
|
|
19
19
|
};
|
|
20
|
-
const _hoisted_3 = { class: "devui-submenu-title-content
|
|
20
|
+
const _hoisted_3 = { class: "devui-submenu-title-content submenu-title-static" };
|
|
21
21
|
const _hoisted_4 = {
|
|
22
22
|
class: "devui-submenu-title layer_2",
|
|
23
23
|
style: { "padding": "0px 24px" }
|
|
24
24
|
};
|
|
25
|
-
const _hoisted_5 = { class: "devui-submenu-title-content
|
|
25
|
+
const _hoisted_5 = { class: "devui-submenu-title-content submenu-title-static" };
|
|
26
26
|
const _hoisted_6 = {
|
|
27
27
|
class: "devui-submenu-title layer_2",
|
|
28
28
|
style: { "padding": "0px 24px" }
|
|
29
29
|
};
|
|
30
|
-
const _hoisted_7 = { class: "devui-submenu-title-content
|
|
30
|
+
const _hoisted_7 = { class: "devui-submenu-title-content submenu-title-static" };
|
|
31
31
|
const _hoisted_8 = { key: 0 };
|
|
32
32
|
const _hoisted_9 = { class: "project-label" };
|
|
33
|
-
const _hoisted_10 = { class: "project-label
|
|
33
|
+
const _hoisted_10 = { class: "project-label project-label--ellipsis ellipsis" };
|
|
34
34
|
const _hoisted_11 = {
|
|
35
35
|
key: 1,
|
|
36
36
|
class: "project-label"
|
|
@@ -267,7 +267,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
267
267
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => showSearch.value = !showSearch.value, ["stop"]))
|
|
268
268
|
}),
|
|
269
269
|
createElementVNode("div", {
|
|
270
|
-
class: normalizeClass(["
|
|
270
|
+
class: normalizeClass(["my-work-platform-inputbox-wrap my-work-platform-inputbox", showSearch.value ? "" : "my-work-platform-hideInputBox"]),
|
|
271
271
|
onClick: _cache[6] || (_cache[6] = withModifiers(() => {
|
|
272
272
|
}, ["stop"]))
|
|
273
273
|
}, [
|
|
@@ -275,7 +275,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
275
275
|
"menu-class": "my-work-platform-select",
|
|
276
276
|
modelValue: nameSpace.value,
|
|
277
277
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => nameSpace.value = $event),
|
|
278
|
-
class: "
|
|
278
|
+
class: "my-work-platform-select-wrap",
|
|
279
279
|
placeholder: "",
|
|
280
280
|
filter: true,
|
|
281
281
|
onLoadMore: loadTeam,
|
|
@@ -328,7 +328,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
328
328
|
color: "var(--theme-menu-icon-fill)"
|
|
329
329
|
}),
|
|
330
330
|
createElementVNode("div", {
|
|
331
|
-
class: normalizeClass(["
|
|
331
|
+
class: normalizeClass(["my-work-platform-inputbox-wrap my-work-platform-inputbox", showSearch.value ? "" : "my-work-platform-hideInputBox"]),
|
|
332
332
|
onClick: _cache[11] || (_cache[11] = withModifiers(() => {
|
|
333
333
|
}, ["stop"]))
|
|
334
334
|
}, [
|
|
@@ -367,7 +367,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
367
367
|
color: "var(--theme-menu-icon-fill)"
|
|
368
368
|
}),
|
|
369
369
|
createElementVNode("div", {
|
|
370
|
-
class: normalizeClass(["
|
|
370
|
+
class: normalizeClass(["my-work-platform-inputbox my-work-platform-inputbox--enterprise", showSearch.value ? "" : "my-work-platform-hideInputBox"]),
|
|
371
371
|
onClick: _cache[16] || (_cache[16] = withModifiers(() => {
|
|
372
372
|
}, ["stop"]))
|
|
373
373
|
}, [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, inject, ref, reactive, computed, watch,
|
|
2
|
-
import { a as i18n, y as useLayoutConfig, t as transformUrl,
|
|
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, J as asideRequest, G as GIcon, I as navigateWithMigrationGuard, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-B0g-fO8C.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-XFT5FU_d.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";
|
|
@@ -10,14 +10,14 @@ import "vue-devui-lal/input/style.css";
|
|
|
10
10
|
import "vue-devui-lal/skeleton/style.css";
|
|
11
11
|
import "vue-devui-lal/menu/style.css";
|
|
12
12
|
import "vue-devui-lal/button/style.css";
|
|
13
|
-
const _hoisted_1 = { class: "devui-submenu layer_2 my-work-platform submenu-item relative" };
|
|
13
|
+
const _hoisted_1 = { class: "devui-submenu layer_2 my-work-platform submenu-item my-work-platform--relative" };
|
|
14
14
|
const _hoisted_2 = {
|
|
15
15
|
class: "devui-submenu-title layer_2",
|
|
16
16
|
style: { "padding": "0px 24px" }
|
|
17
17
|
};
|
|
18
|
-
const _hoisted_3 = { class: "devui-submenu-title-content
|
|
18
|
+
const _hoisted_3 = { class: "devui-submenu-title-content submenu-title-static" };
|
|
19
19
|
const _hoisted_4 = { class: "project-label" };
|
|
20
|
-
const _hoisted_5 = { class: "project-label
|
|
20
|
+
const _hoisted_5 = { class: "project-label project-label--ellipsis ellipsis" };
|
|
21
21
|
const _hoisted_6 = ["href"];
|
|
22
22
|
const INIT_SHOW_COUNT = 4;
|
|
23
23
|
const LOAD_MORE_COUNT = 10;
|
|
@@ -165,7 +165,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
165
165
|
onClick: withModifiers(handleOpenSearch, ["stop"])
|
|
166
166
|
}),
|
|
167
167
|
createElementVNode("div", {
|
|
168
|
-
class: normalizeClass(["
|
|
168
|
+
class: normalizeClass(["my-work-platform-inputbox-wrap my-work-platform-inputbox", showSearch.value ? "" : "my-work-platform-hideInputBox"]),
|
|
169
169
|
onClick: _cache[4] || (_cache[4] = withModifiers(() => {
|
|
170
170
|
}, ["stop"]))
|
|
171
171
|
}, [
|
|
@@ -241,7 +241,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
241
241
|
showTianqiRepo.value ? (openBlock(), createElementBlock("a", {
|
|
242
242
|
key: 2,
|
|
243
243
|
href: tianqiRepoUrl.value,
|
|
244
|
-
class: "
|
|
244
|
+
class: "more-btn more-btn--tianqi"
|
|
245
245
|
}, toDisplayString(unref(t)("gitCodeLayout.org.tianqiRepo")) + " >", 9, _hoisted_6)) : createCommentVNode("", true)
|
|
246
246
|
]);
|
|
247
247
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
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-B0g-fO8C.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 _hoisted_1 = { class: "
|
|
7
|
-
const _hoisted_2 = { class: "history-list-project-globartitle
|
|
6
|
+
const _hoisted_1 = { class: "history-list-project history-list-project--padded" };
|
|
7
|
+
const _hoisted_2 = { class: "history-list-project-globartitle history-list-project-globartitle--gap" };
|
|
8
8
|
const _hoisted_3 = ["href"];
|
|
9
|
-
const _hoisted_4 = { class: "
|
|
10
|
-
const _hoisted_5 = { class: "
|
|
9
|
+
const _hoisted_4 = { class: "history-list-project-globarbox" };
|
|
10
|
+
const _hoisted_5 = { class: "ellipsis history-list-project__name" };
|
|
11
11
|
const _sfc_main = /* @__PURE__ */ Object.assign({ name: "SearchFileList" }, {
|
|
12
12
|
__name: "ProjectSearch",
|
|
13
13
|
props: ["searchStr", "searchInfo", "isSearchPage"],
|
|
@@ -42,22 +42,30 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ name: "SearchFileList" }, {
|
|
|
42
42
|
params.namespace = namespace;
|
|
43
43
|
params.repoName = repoName;
|
|
44
44
|
} else {
|
|
45
|
-
params = route == null ? void 0 : route.params;
|
|
45
|
+
params = (route == null ? void 0 : route.params) || {};
|
|
46
46
|
}
|
|
47
47
|
const defaultBranch = props.searchInfo.branch;
|
|
48
48
|
const branchName = Array.isArray(defaultBranch) ? defaultBranch : defaultBranch == null ? void 0 : defaultBranch.split("/");
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
49
|
+
const filePathList = filePath.split("/");
|
|
50
|
+
if (router == null ? void 0 : router.hasRoute("repoFile")) {
|
|
51
|
+
return router.resolve({
|
|
52
|
+
name: "repoFile",
|
|
53
|
+
params: {
|
|
54
|
+
...params,
|
|
55
|
+
branchName,
|
|
56
|
+
filePath: filePathList
|
|
57
|
+
},
|
|
58
|
+
query: {
|
|
59
|
+
init: "initTree"
|
|
60
|
+
}
|
|
61
|
+
}).href;
|
|
62
|
+
}
|
|
63
|
+
const joinSegments = (value) => {
|
|
64
|
+
const segmentList = Array.isArray(value) ? value : [value];
|
|
65
|
+
return segmentList.filter((seg) => seg !== void 0 && seg !== null && seg !== "").map((seg) => encodeURIComponent(String(seg))).join("/");
|
|
66
|
+
};
|
|
67
|
+
const repoSegment = params.repo || params.repoName;
|
|
68
|
+
return `/${params.namespace}/${repoSegment}/blob/${joinSegments(branchName)}/${joinSegments(filePathList)}?init=initTree`;
|
|
61
69
|
};
|
|
62
70
|
return (_ctx, _cache) => {
|
|
63
71
|
return withDirectives((openBlock(), createElementBlock("div", _hoisted_1, [
|
|
@@ -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-B0g-fO8C.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
|
-
const _hoisted_3 = { class: "history-list-box__content
|
|
8
|
-
const _hoisted_4 = { class: "
|
|
7
|
+
const _hoisted_3 = { class: "history-list-box__content" };
|
|
8
|
+
const _hoisted_4 = { class: "history-list-box__row" };
|
|
9
9
|
const _hoisted_5 = ["title"];
|
|
10
10
|
const _hoisted_6 = ["title"];
|
|
11
11
|
const _hoisted_7 = { class: "item-tx" };
|
|
12
|
-
const _hoisted_8 = { class: "
|
|
12
|
+
const _hoisted_8 = { class: "history-list-box__type-row" };
|
|
13
13
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
14
|
__name: "SearchHistoryList",
|
|
15
15
|
props: {
|
|
@@ -119,7 +119,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
119
119
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
120
120
|
__props.searchHistoryList.length ? (openBlock(), createElementBlock("ul", {
|
|
121
121
|
key: 0,
|
|
122
|
-
class: "history-list-box mt
|
|
122
|
+
class: "history-list-box history-list-box--mt",
|
|
123
123
|
onMouseleave: resetIndex
|
|
124
124
|
}, [
|
|
125
125
|
(openBlock(true), createElementBlock(Fragment, null, renderList(historyList.value, (item, index) => {
|
|
@@ -134,21 +134,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
134
134
|
createVNode(GIcon, {
|
|
135
135
|
name: "gt-line-time",
|
|
136
136
|
color: "var(--devui-aide-text)",
|
|
137
|
-
class: "
|
|
137
|
+
class: "history-list-box__time-icon"
|
|
138
138
|
}),
|
|
139
139
|
createElementVNode("span", {
|
|
140
|
-
class: "
|
|
140
|
+
class: "history-list-box__ellipsis",
|
|
141
141
|
title: item.repoTitle
|
|
142
142
|
}, toDisplayString(item.repoTitle), 9, _hoisted_5),
|
|
143
143
|
createElementVNode("span", {
|
|
144
|
-
class: "
|
|
144
|
+
class: "history-list-box__ellipsis",
|
|
145
145
|
title: item.namespaceTitle
|
|
146
146
|
}, toDisplayString(item.namespaceTitle), 9, _hoisted_6),
|
|
147
147
|
createElementVNode("span", _hoisted_7, toDisplayString(item.q), 1)
|
|
148
148
|
]),
|
|
149
149
|
createElementVNode("div", _hoisted_8, [
|
|
150
150
|
createElementVNode("span", {
|
|
151
|
-
class: normalizeClass(__props.activeIndex === index ? "
|
|
151
|
+
class: normalizeClass(__props.activeIndex === index ? "history-list-box__type-text--active" : "history-list-box__type-text")
|
|
152
152
|
}, toDisplayString(getRepoType(item).text), 3),
|
|
153
153
|
createVNode(GIcon, {
|
|
154
154
|
name: __props.activeIndex === index ? getRepoType(item).hoverIcon : getRepoType(item).icon
|
|
@@ -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-wRENjwm_.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-B0g-fO8C.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";
|
|
@@ -57,12 +57,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
57
|
createElementVNode("div", _hoisted_3, toDisplayString(unref($t)("gitCodeLayout.search.trendingToday")), 1),
|
|
58
58
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendRepoList.value, (item, index) => {
|
|
59
59
|
return renderSlot(_ctx.$slots, "default", {
|
|
60
|
+
key: item.id,
|
|
60
61
|
item,
|
|
61
62
|
index
|
|
62
63
|
}, () => [
|
|
63
64
|
(openBlock(), createBlock(SearchRepoCard, {
|
|
64
65
|
key: item.id,
|
|
65
|
-
class: "
|
|
66
|
+
class: "g-header-search-recommed-card",
|
|
66
67
|
info: { ...item, index },
|
|
67
68
|
keyword: "",
|
|
68
69
|
hover: "",
|
|
@@ -71,12 +72,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
71
72
|
cardType: (item == null ? void 0 : item.repo_type) || "repo",
|
|
72
73
|
"url-params": { source_module: "search_box_discovery" }
|
|
73
74
|
}, null, 8, ["info", "onReport", "cardType"]))
|
|
74
|
-
], true
|
|
75
|
+
], true);
|
|
75
76
|
}), 128))
|
|
76
77
|
])) : (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
77
78
|
(openBlock(), createElementBlock(Fragment, null, renderList(5, (item) => {
|
|
78
79
|
return createElementVNode("div", {
|
|
79
|
-
class: "
|
|
80
|
+
class: "g-header-search-recommed-skel",
|
|
80
81
|
key: item
|
|
81
82
|
}, [
|
|
82
83
|
createVNode(unref(Row), {
|
|
@@ -100,7 +101,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
100
101
|
_: 1
|
|
101
102
|
}),
|
|
102
103
|
createVNode(unref(Row), {
|
|
103
|
-
class: "
|
|
104
|
+
class: "g-header-search-recommed-skel-row",
|
|
104
105
|
align: "middle",
|
|
105
106
|
gutter: 16
|
|
106
107
|
}, {
|
|
@@ -115,7 +116,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
115
116
|
_: 1
|
|
116
117
|
}),
|
|
117
118
|
createVNode(unref(Row), {
|
|
118
|
-
class: "
|
|
119
|
+
class: "g-header-search-recommed-skel-row",
|
|
119
120
|
align: "middle",
|
|
120
121
|
gutter: 16
|
|
121
122
|
}, {
|
|
@@ -1,13 +1,13 @@
|
|
|
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-B0g-fO8C.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = ["onClick"];
|
|
6
|
-
const _hoisted_2 = { class: "
|
|
6
|
+
const _hoisted_2 = { class: "linkItem" };
|
|
7
7
|
const _hoisted_3 = { class: "leftTx ellipsis" };
|
|
8
8
|
const _hoisted_4 = {
|
|
9
9
|
key: 0,
|
|
10
|
-
class: "
|
|
10
|
+
class: "g-header-search-scopechoose__label"
|
|
11
11
|
};
|
|
12
12
|
const _hoisted_5 = { key: 1 };
|
|
13
13
|
const _hoisted_6 = { class: "right-text" };
|
|
@@ -28,7 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.searchScopeList, (item, index) => {
|
|
29
29
|
return openBlock(), createElementBlock("li", {
|
|
30
30
|
key: index,
|
|
31
|
-
class: "g-header-search-scopechoose
|
|
31
|
+
class: "g-header-search-scopechoose",
|
|
32
32
|
onClick: ($event) => onScopeSearch(item)
|
|
33
33
|
}, [
|
|
34
34
|
createElementVNode("div", _hoisted_2, [
|
|
@@ -1,12 +1,12 @@
|
|
|
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-B0g-fO8C.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: "
|
|
8
|
+
const _hoisted_4 = { class: "history-list-project-globarbox" };
|
|
9
|
+
const _hoisted_5 = { class: "ellipsis history-list-project__name" };
|
|
10
10
|
const _sfc_main = {
|
|
11
11
|
__name: "UserSearch",
|
|
12
12
|
props: ["searchStr", "searchInfo"],
|