vue-layout-gitcode 1.5.69 → 1.5.71
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/{dist/GloabarSearch-BZb_AQ_p.js → GloabarSearch-BVc018QM.js} +3 -5
- package/{dist/ProjectSearch-10Vyr8h_.js → ProjectSearch-OYQR1jQ1.js} +1 -1
- package/SearchHistoryList-DcJLzYiO.js +99 -0
- package/{dist/SearchPrefixTag-t4kN1J7O.js → SearchPrefixTag-BFhDidRA.js} +2 -2
- package/{dist/SearchRecommed-D76hxxeA.js → SearchRecommed-c-THl16l.js} +5 -5
- package/{dist/SearchScopeList-B22z5UAY.js → SearchScopeList-BypAkGfx.js} +2 -2
- package/{dist/UserSearch-Bx0G5NV8.js → UserSearch-Dtgpli89.js} +1 -1
- package/{dist/index-Br6vcucJ.js → index-B5WuOGOg.js} +2 -2
- package/{dist/index-Bxhc6nCo.js → index-Ba99LRw5.js} +3508 -2019
- package/{dist/index-XjwMbIbJ.js → index-Cqo1SLWx.js} +9 -11
- package/{dist/index.d.ts → index.d.ts} +4 -45
- package/index.js +14 -0
- package/{dist/notice-DaYgpSkE.js → notice-BUVKdd9a.js} +1 -1
- package/package.json +11 -72
- package/style.css +1 -0
- package/README.md +0 -528
- package/dist/MenuItem-DzFWRd3i.js +0 -156
- package/dist/ProjectMenuList-DFZFG7Uj.js +0 -402
- package/dist/ProjectMenuListV2-wIv5Ewd6.js +0 -221
- package/dist/SearchHistoryList-sF4YL25O.js +0 -161
- package/dist/index.js +0 -14
- package/dist/package.json +0 -13
- package/dist/style.css +0 -1
- package/dist/transWebUrl-DTXUrWYK.js +0 -21
|
@@ -1,10 +1,8 @@
|
|
|
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-
|
|
5
|
-
import "
|
|
6
|
-
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-XjwMbIbJ.js";
|
|
7
|
-
import "./transWebUrl-DTXUrWYK.js";
|
|
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-Ba99LRw5.js";
|
|
5
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-Cqo1SLWx.js";
|
|
8
6
|
import "vue-devui-lal/tooltip";
|
|
9
7
|
import "vue-devui-lal/tooltip/style.css";
|
|
10
8
|
import "vue-router";
|
|
@@ -87,7 +85,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
87
85
|
};
|
|
88
86
|
}
|
|
89
87
|
});
|
|
90
|
-
const SearchRepoCardList = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
88
|
+
const SearchRepoCardList = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
91
89
|
const _hoisted_1 = {
|
|
92
90
|
key: 0,
|
|
93
91
|
class: "px-[8px] history-list-project pl-[8px]"
|
|
@@ -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-Ba99LRw5.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";
|
|
@@ -0,0 +1,99 @@
|
|
|
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-Ba99LRw5.js";
|
|
3
|
+
import "vue-devui-lal/icon";
|
|
4
|
+
import "vue-devui-lal/icon/style.css";
|
|
5
|
+
const _hoisted_1 = { class: "history-list" };
|
|
6
|
+
const _hoisted_2 = ["onClick", "onMouseenter"];
|
|
7
|
+
const _hoisted_3 = { class: "history-list-box__content flex items-center w-full" };
|
|
8
|
+
const _hoisted_4 = ["title"];
|
|
9
|
+
const _hoisted_5 = ["title"];
|
|
10
|
+
const _hoisted_6 = { class: "item-tx" };
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "SearchHistoryList",
|
|
13
|
+
props: {
|
|
14
|
+
searchHistoryList: {},
|
|
15
|
+
visitHistoryList: {},
|
|
16
|
+
activeIndex: {}
|
|
17
|
+
},
|
|
18
|
+
emits: [
|
|
19
|
+
"clearHistoryData",
|
|
20
|
+
"toSearch",
|
|
21
|
+
"onDeleteHistory",
|
|
22
|
+
"onDeleteVist",
|
|
23
|
+
"onVistPage",
|
|
24
|
+
"onSearchEnter",
|
|
25
|
+
"resetIndex"
|
|
26
|
+
],
|
|
27
|
+
setup(__props, { emit: __emit }) {
|
|
28
|
+
const { t } = i18n.global;
|
|
29
|
+
const props = __props;
|
|
30
|
+
const emits = __emit;
|
|
31
|
+
const historyList = computed(() => {
|
|
32
|
+
var _a;
|
|
33
|
+
return (_a = props.searchHistoryList) == null ? void 0 : _a.map((item) => {
|
|
34
|
+
const repoTitle = item.repo ? `${t("gitCodeLayout.header.repo")} ${decodeURIComponent(item.repo)}:` : "";
|
|
35
|
+
const namespaceTitle = item.namespace ? `${item.scope === "group" ? t("gitCodeLayout.header.org") : t("gitCodeLayout.header.user")} ${decodeURIComponent(item.namespace)}:` : "";
|
|
36
|
+
return { ...item, repoTitle, namespaceTitle };
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
computed(() => {
|
|
40
|
+
return props.visitHistoryList;
|
|
41
|
+
});
|
|
42
|
+
const resetIndex = () => {
|
|
43
|
+
emits("resetIndex");
|
|
44
|
+
};
|
|
45
|
+
const toSearch = (item) => {
|
|
46
|
+
emits("toSearch", item);
|
|
47
|
+
};
|
|
48
|
+
const onDeleteHistory = (index) => {
|
|
49
|
+
emits("onDeleteHistory", index);
|
|
50
|
+
};
|
|
51
|
+
const onSearchEnter = (index) => {
|
|
52
|
+
emits("onSearchEnter", index);
|
|
53
|
+
};
|
|
54
|
+
return (_ctx, _cache) => {
|
|
55
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
56
|
+
_ctx.searchHistoryList.length ? (openBlock(), createElementBlock("ul", {
|
|
57
|
+
key: 0,
|
|
58
|
+
class: "history-list-box mt-[16px]",
|
|
59
|
+
onMouseleave: resetIndex
|
|
60
|
+
}, [
|
|
61
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(historyList.value, (item, index) => {
|
|
62
|
+
return openBlock(), createElementBlock("li", {
|
|
63
|
+
key: item,
|
|
64
|
+
class: normalizeClass(_ctx.activeIndex === index ? "hoverbg" : ""),
|
|
65
|
+
onClick: ($event) => toSearch(item),
|
|
66
|
+
onMouseenter: ($event) => onSearchEnter(index)
|
|
67
|
+
}, [
|
|
68
|
+
createElementVNode("div", _hoisted_3, [
|
|
69
|
+
createVNode(GIcon, {
|
|
70
|
+
name: "gt-line-time",
|
|
71
|
+
color: "var(--devui-aide-text)",
|
|
72
|
+
class: "mr-[8px]"
|
|
73
|
+
}),
|
|
74
|
+
createElementVNode("span", {
|
|
75
|
+
class: "whitespace-nowrap overflow-hidden text-ellipsis",
|
|
76
|
+
title: item.repoTitle
|
|
77
|
+
}, toDisplayString(item.repoTitle), 9, _hoisted_4),
|
|
78
|
+
createElementVNode("span", {
|
|
79
|
+
class: "whitespace-nowrap overflow-hidden text-ellipsis",
|
|
80
|
+
title: item.namespaceTitle
|
|
81
|
+
}, toDisplayString(item.namespaceTitle), 9, _hoisted_5),
|
|
82
|
+
createElementVNode("span", _hoisted_6, toDisplayString(item.q || item), 1)
|
|
83
|
+
]),
|
|
84
|
+
createVNode(GIcon, {
|
|
85
|
+
name: "gt-line-close",
|
|
86
|
+
class: "itemClose",
|
|
87
|
+
onClick: withModifiers(($event) => onDeleteHistory(index), ["stop"])
|
|
88
|
+
}, null, 8, ["onClick"])
|
|
89
|
+
], 42, _hoisted_2);
|
|
90
|
+
}), 128))
|
|
91
|
+
], 32)) : createCommentVNode("", true)
|
|
92
|
+
]);
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
const SearchHistoryList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
97
|
+
export {
|
|
98
|
+
SearchHistoryList as default
|
|
99
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, createElementVNode, withDirectives, toDisplayString, withModifiers, createVNode, vShow } from "vue";
|
|
2
|
-
import { G as GIcon, _ as _export_sfc } from "./index-
|
|
2
|
+
import { G as GIcon, _ as _export_sfc } from "./index-Ba99LRw5.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = { class: "ellipsis" };
|
|
@@ -40,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
|
-
const SearchPrefixTag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
43
|
+
const SearchPrefixTag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
44
44
|
export {
|
|
45
45
|
SearchPrefixTag as default
|
|
46
46
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, inject, ref, onMounted, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, 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-Cqo1SLWx.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-Ba99LRw5.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";
|
|
@@ -64,9 +64,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
64
64
|
hover: "",
|
|
65
65
|
hideTopicTags: "",
|
|
66
66
|
onReport: (evt) => handleReport(item, index, evt),
|
|
67
|
-
cardType:
|
|
67
|
+
cardType: "repo",
|
|
68
68
|
"url-params": { source_module: "today_trending" }
|
|
69
|
-
}, null, 8, ["info", "onReport"
|
|
69
|
+
}, null, 8, ["info", "onReport"]);
|
|
70
70
|
}), 128))
|
|
71
71
|
])) : (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
72
72
|
(openBlock(), createElementBlock(Fragment, null, renderList(5, (item) => {
|
|
@@ -137,7 +137,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
139
|
});
|
|
140
|
-
const SearchRecommed = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
140
|
+
const SearchRecommed = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
141
141
|
export {
|
|
142
142
|
SearchRecommed as default
|
|
143
143
|
};
|
|
@@ -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-Ba99LRw5.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = ["onClick"];
|
|
@@ -55,7 +55,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
|
-
const SearchScopeList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
58
|
+
const SearchScopeList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
59
59
|
export {
|
|
60
60
|
SearchScopeList as default
|
|
61
61
|
};
|
|
@@ -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 } from "./index-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon } from "./index-Ba99LRw5.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = { class: "px-[8px] history-list-project pl-[8px]" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, onMounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
|
|
2
2
|
import { FixedOverlay } from "vue-devui-lal/overlay";
|
|
3
|
-
import {
|
|
3
|
+
import { x as useLayoutConfig, _ as _export_sfc } from "./index-Ba99LRw5.js";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "index",
|
|
@@ -55,7 +55,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
58
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
59
59
|
export {
|
|
60
60
|
index as default
|
|
61
61
|
};
|