vue-layout-gitcode 1.5.111 → 1.5.112
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-sQ0_jORQ.js → GloabarSearch-mTj6ixhi.js} +4 -3
- package/{MenuItem-DuXBZbdz.js → MenuItem-DEcrAXX0.js} +1 -1
- package/{ProjectMenuList-CesKjKF9.js → ProjectMenuList-2pG60grl.js} +2 -2
- package/{ProjectMenuListV2-DmMJaEOP.js → ProjectMenuListV2-BFTD-Q3v.js} +2 -2
- package/{ProjectSearch-RFBhGYJb.js → ProjectSearch-BXEQK0UA.js} +1 -1
- package/{SearchHistoryList-DoM2kjJH.js → SearchHistoryList-D4qq8FVr.js} +1 -1
- package/{SearchPrefixTag-BUk04Tdo.js → SearchPrefixTag-BKSxfBxY.js} +1 -1
- package/{SearchRecommed-BcuFhr_i.js → SearchRecommed-B25uFJe6.js} +2 -2
- package/{SearchScopeList-C2UM_gG6.js → SearchScopeList-CAvuzWQD.js} +1 -1
- package/{UserSearch-_KVddMk1.js → UserSearch-BkVZWZc0.js} +1 -1
- package/{index-UvnhvFqQ.js → index-BQBGERIC.js} +74 -219
- package/{index-CM4nDgD8.js → index-BzHF7Wl-.js} +3 -2
- package/{index-DaH4b1LG.js → index-DxGju-SH.js} +146 -113
- package/index.js +1 -1
- package/{notice-pHYG13JP.js → notice-CctphYxn.js} +5 -3
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-ClNoIckT.js → transWebUrl-8--56Hx_.js} +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
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-DxGju-SH.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-BQBGERIC.js";
|
|
7
|
+
import "./transWebUrl-8--56Hx_.js";
|
|
8
8
|
import "vue-devui-lal/tooltip";
|
|
9
9
|
import "vue-devui-lal/tooltip/style.css";
|
|
10
10
|
import "vue-router";
|
|
@@ -164,6 +164,7 @@ const _sfc_main = {
|
|
|
164
164
|
}
|
|
165
165
|
);
|
|
166
166
|
onMounted(() => {
|
|
167
|
+
console.log("GloabarSearch");
|
|
167
168
|
});
|
|
168
169
|
return (_ctx, _cache) => {
|
|
169
170
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, inject, useSlots, ref, computed, createBlock, openBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, createTextVNode, createCommentVNode, toDisplayString, renderSlot } from "vue";
|
|
2
|
-
import { q as useLayoutConfig, w as ThemeType, x as currentTheme, g as LANG_ZH, y as LANG_EN, z as getLocaleLang, G as GIcon, A as emitEvent, B as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-
|
|
2
|
+
import { q as useLayoutConfig, w as ThemeType, x as currentTheme, g as LANG_ZH, y as LANG_EN, z as getLocaleLang, G as GIcon, A as emitEvent, B as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-DxGju-SH.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, q as useLayoutConfig, G as GIcon, C as _sfc_main$1, D as loadAsideData, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, F as asideRequest, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, q as useLayoutConfig, G as GIcon, C as _sfc_main$1, D as loadAsideData, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, F as asideRequest, _ as _export_sfc } from "./index-DxGju-SH.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-8--56Hx_.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, q as useLayoutConfig, G as GIcon, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, q as useLayoutConfig, G as GIcon, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, _ as _export_sfc } from "./index-DxGju-SH.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-8--56Hx_.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,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-DxGju-SH.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,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, G as GIcon, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-DxGju-SH.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,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-DxGju-SH.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = { class: "ellipsis" };
|
|
@@ -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-BQBGERIC.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-DxGju-SH.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-DxGju-SH.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 { 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-DxGju-SH.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,7 +1,7 @@
|
|
|
1
|
-
import { ref, watchEffect, defineComponent, toDisplayString, unref,
|
|
1
|
+
import { ref, watchEffect, defineComponent, toDisplayString, unref, inject, createElementBlock, openBlock, normalizeClass, createElementVNode, withModifiers, withDirectives, vShow, createVNode, computed, createCommentVNode, normalizeStyle, createTextVNode, onMounted, onUnmounted, Fragment, createBlock, renderList, withCtx, reactive } from "vue";
|
|
2
2
|
import debounce from "lodash/debounce";
|
|
3
|
-
import { t as transferNumber, G as GIcon,
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
3
|
+
import { t as transferNumber, G as GIcon, s as setLoginTriggerSource, d as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, f as useTimeFormat, L as LANG_KEY, g as LANG_ZH, j as usePageResize, k as isGstarRepo, m as _sfc_main$9, n as isIncubationRepo, o as highlightWords, p as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-DxGju-SH.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-8--56Hx_.js";
|
|
5
5
|
import { useRouter } from "vue-router";
|
|
6
6
|
import { Row, Col } from "vue-devui-lal/grid";
|
|
7
7
|
import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
|
|
@@ -78,7 +78,7 @@ const useReportRepo = (reportParams, viewReport) => {
|
|
|
78
78
|
const formatNameSpace = (content) => {
|
|
79
79
|
return content.trim().replace(/\s+/g, "").replace(/^(GitHub加速计划\/|HuggingFace镜像\/)/, "").split("/").filter(Boolean);
|
|
80
80
|
};
|
|
81
|
-
const _sfc_main$
|
|
81
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
82
82
|
__name: "index",
|
|
83
83
|
props: {
|
|
84
84
|
number: {},
|
|
@@ -92,77 +92,19 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
|
-
const _hoisted_1$
|
|
96
|
-
const _hoisted_2$6 = { class: "absolute w-full h-full left-0 top-0" };
|
|
97
|
-
const ANIM_END = "animEnd";
|
|
98
|
-
const activeLikeIcon = "gt-plane-like";
|
|
99
|
-
const unActiveLikeIcon = "gt-line-like";
|
|
100
|
-
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
101
|
-
__name: "index",
|
|
102
|
-
props: /* @__PURE__ */ mergeModels({
|
|
103
|
-
runAnimation: { type: Boolean }
|
|
104
|
-
}, {
|
|
105
|
-
"modelValue": { type: Boolean },
|
|
106
|
-
"modelModifiers": {}
|
|
107
|
-
}),
|
|
108
|
-
emits: ["update:modelValue"],
|
|
109
|
-
setup(__props, { emit: __emit }) {
|
|
110
|
-
const props = __props;
|
|
111
|
-
const emits = __emit;
|
|
112
|
-
const active = useModel(__props, "modelValue");
|
|
113
|
-
const animRunning = ref(false);
|
|
114
|
-
watch(
|
|
115
|
-
() => props.runAnimation,
|
|
116
|
-
(newValue) => {
|
|
117
|
-
if (animRunning.value) {
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
animRunning.value = newValue;
|
|
121
|
-
}
|
|
122
|
-
);
|
|
123
|
-
function animationend() {
|
|
124
|
-
animRunning.value = false;
|
|
125
|
-
active.value = true;
|
|
126
|
-
emits(ANIM_END);
|
|
127
|
-
}
|
|
128
|
-
return (_ctx, _cache) => {
|
|
129
|
-
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
130
|
-
createVNode(GIcon, {
|
|
131
|
-
class: normalizeClass({ "!text-red-500": active.value }),
|
|
132
|
-
name: active.value ? activeLikeIcon : unActiveLikeIcon
|
|
133
|
-
}, null, 8, ["class", "name"]),
|
|
134
|
-
withDirectives(createElementVNode("div", _hoisted_2$6, [
|
|
135
|
-
createElementVNode("div", {
|
|
136
|
-
class: "like",
|
|
137
|
-
onAnimationend: animationend
|
|
138
|
-
}, [
|
|
139
|
-
createVNode(GIcon, {
|
|
140
|
-
class: "!text-red-500",
|
|
141
|
-
name: activeLikeIcon
|
|
142
|
-
})
|
|
143
|
-
], 32)
|
|
144
|
-
], 512), [
|
|
145
|
-
[vShow, animRunning.value]
|
|
146
|
-
])
|
|
147
|
-
]);
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
const Like = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
152
|
-
const _hoisted_1$7 = {
|
|
95
|
+
const _hoisted_1$6 = {
|
|
153
96
|
class: "mr-[4px]",
|
|
154
97
|
style: { "width": "15px", "height": "15px" }
|
|
155
98
|
};
|
|
156
|
-
const _hoisted_2$
|
|
157
|
-
const _sfc_main$
|
|
99
|
+
const _hoisted_2$4 = { class: "i-star-tag__text" };
|
|
100
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
158
101
|
__name: "index",
|
|
159
102
|
props: {
|
|
160
103
|
starInfo: { default: () => ({
|
|
161
104
|
starred: false,
|
|
162
105
|
starCount: 0
|
|
163
106
|
}) },
|
|
164
|
-
loginTriggerSource: { default: "search_star_repo_recommend" }
|
|
165
|
-
isLike: { type: Boolean, default: false }
|
|
107
|
+
loginTriggerSource: { default: "search_star_repo_recommend" }
|
|
166
108
|
},
|
|
167
109
|
emits: ["report"],
|
|
168
110
|
setup(__props, { emit: __emit }) {
|
|
@@ -211,9 +153,6 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
211
153
|
running.value = false;
|
|
212
154
|
}, 100);
|
|
213
155
|
};
|
|
214
|
-
const animationendLike = () => {
|
|
215
|
-
running.value = false;
|
|
216
|
-
};
|
|
217
156
|
return (_ctx, _cache) => {
|
|
218
157
|
return openBlock(), createElementBlock("div", {
|
|
219
158
|
class: normalizeClass(["i-star", {
|
|
@@ -226,34 +165,25 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
226
165
|
}]),
|
|
227
166
|
onClick: withModifiers(handleStar, ["stop", "prevent"])
|
|
228
167
|
}, [
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
]),
|
|
243
|
-
|
|
244
|
-
withDirectives(createVNode(GIcon, {
|
|
245
|
-
size: "15",
|
|
246
|
-
name: starred.value ? "gt-a-star_open_16px1" : "gt-line-new-star",
|
|
247
|
-
style: {
|
|
248
|
-
transition: "all 0.2s"
|
|
249
|
-
}
|
|
250
|
-
}, null, 8, ["name"]), [
|
|
251
|
-
[vShow, !running.value]
|
|
252
|
-
])
|
|
168
|
+
withDirectives(createElementVNode("div", {
|
|
169
|
+
class: "star",
|
|
170
|
+
onAnimationend: animationend
|
|
171
|
+
}, null, 544), [
|
|
172
|
+
[vShow, running.value]
|
|
173
|
+
]),
|
|
174
|
+
createElementVNode("div", _hoisted_1$6, [
|
|
175
|
+
withDirectives(createVNode(GIcon, {
|
|
176
|
+
size: "15",
|
|
177
|
+
name: starred.value ? "gt-a-star_open_16px1" : "gt-line-new-star",
|
|
178
|
+
style: {
|
|
179
|
+
transition: "all 0.2s"
|
|
180
|
+
}
|
|
181
|
+
}, null, 8, ["name"]), [
|
|
182
|
+
[vShow, !running.value]
|
|
253
183
|
])
|
|
254
|
-
]
|
|
255
|
-
createElementVNode("span", _hoisted_2$
|
|
256
|
-
createVNode(_sfc_main$
|
|
184
|
+
]),
|
|
185
|
+
createElementVNode("span", _hoisted_2$4, [
|
|
186
|
+
createVNode(_sfc_main$8, {
|
|
257
187
|
number: Number(starCount.value || 0)
|
|
258
188
|
}, null, 8, ["number"])
|
|
259
189
|
])
|
|
@@ -262,16 +192,16 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
262
192
|
};
|
|
263
193
|
}
|
|
264
194
|
});
|
|
265
|
-
const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
266
|
-
const _hoisted_1$
|
|
267
|
-
const _sfc_main$
|
|
195
|
+
const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
196
|
+
const _hoisted_1$5 = { class: "fork-tag" };
|
|
197
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
268
198
|
__name: "index",
|
|
269
199
|
props: {
|
|
270
200
|
count: {}
|
|
271
201
|
},
|
|
272
202
|
setup(__props) {
|
|
273
203
|
return (_ctx, _cache) => {
|
|
274
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
204
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
275
205
|
createVNode(GIcon, {
|
|
276
206
|
class: "mr-[4px]",
|
|
277
207
|
name: "gt-line-fork",
|
|
@@ -279,7 +209,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
279
209
|
size: "14"
|
|
280
210
|
}),
|
|
281
211
|
createElementVNode("span", null, [
|
|
282
|
-
createVNode(_sfc_main$
|
|
212
|
+
createVNode(_sfc_main$8, {
|
|
283
213
|
number: _ctx.count || 0
|
|
284
214
|
}, null, 8, ["number"])
|
|
285
215
|
])
|
|
@@ -287,8 +217,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
287
217
|
};
|
|
288
218
|
}
|
|
289
219
|
});
|
|
290
|
-
const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
291
|
-
const _sfc_main$
|
|
220
|
+
const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
221
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
292
222
|
__name: "index",
|
|
293
223
|
props: {
|
|
294
224
|
tagInfo: { default: [] },
|
|
@@ -333,10 +263,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
333
263
|
};
|
|
334
264
|
}
|
|
335
265
|
});
|
|
336
|
-
const LanguageTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
337
|
-
const _hoisted_1$
|
|
338
|
-
const _hoisted_2$
|
|
339
|
-
const _sfc_main$
|
|
266
|
+
const LanguageTag = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
267
|
+
const _hoisted_1$4 = { class: "star-count-one" };
|
|
268
|
+
const _hoisted_2$3 = { key: 0 };
|
|
269
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
340
270
|
...{ name: "star-count-one" },
|
|
341
271
|
__name: "index",
|
|
342
272
|
props: {
|
|
@@ -346,27 +276,27 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
346
276
|
setup(__props) {
|
|
347
277
|
const { t: $t } = i18n.global;
|
|
348
278
|
return (_ctx, _cache) => {
|
|
349
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
279
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
350
280
|
createVNode(GIcon, {
|
|
351
281
|
name: "gt-line-new-star",
|
|
352
282
|
color: "var(--theme-home-card-color-placeholder)",
|
|
353
283
|
size: "14"
|
|
354
284
|
}),
|
|
355
|
-
!_ctx.hideText ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
356
|
-
createVNode(_sfc_main$
|
|
285
|
+
!_ctx.hideText ? (openBlock(), createElementBlock("span", _hoisted_2$3, toDisplayString(unref($t)("gitCodeLayout.components.repo.today")), 1)) : createCommentVNode("", true),
|
|
286
|
+
createVNode(_sfc_main$8, {
|
|
357
287
|
number: _ctx.starCountOne || 0
|
|
358
288
|
}, null, 8, ["number"])
|
|
359
289
|
]);
|
|
360
290
|
};
|
|
361
291
|
}
|
|
362
292
|
});
|
|
363
|
-
const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
364
|
-
const _hoisted_1$
|
|
293
|
+
const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
294
|
+
const _hoisted_1$3 = {
|
|
365
295
|
key: 0,
|
|
366
296
|
class: "github-star-num"
|
|
367
297
|
};
|
|
368
|
-
const _hoisted_2$
|
|
369
|
-
const _sfc_main$
|
|
298
|
+
const _hoisted_2$2 = { class: "leading-none" };
|
|
299
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
370
300
|
...{ name: "GithubStarNum" },
|
|
371
301
|
__name: "index",
|
|
372
302
|
props: {
|
|
@@ -378,15 +308,15 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
378
308
|
return props.count && props.count >= 100;
|
|
379
309
|
});
|
|
380
310
|
return (_ctx, _cache) => {
|
|
381
|
-
return starVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
311
|
+
return starVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
382
312
|
createVNode(GIcon, {
|
|
383
313
|
name: "gt-line-github",
|
|
384
314
|
color: "var(--theme-home-card-color-placeholder)",
|
|
385
315
|
size: "14"
|
|
386
316
|
}),
|
|
387
|
-
createElementVNode("span", _hoisted_2$
|
|
317
|
+
createElementVNode("span", _hoisted_2$2, [
|
|
388
318
|
_cache[0] || (_cache[0] = createTextVNode("Star ")),
|
|
389
|
-
createVNode(_sfc_main$
|
|
319
|
+
createVNode(_sfc_main$8, {
|
|
390
320
|
number: _ctx.count || 0,
|
|
391
321
|
gt100: true
|
|
392
322
|
}, null, 8, ["number"])
|
|
@@ -395,18 +325,18 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
395
325
|
};
|
|
396
326
|
}
|
|
397
327
|
});
|
|
398
|
-
const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
399
|
-
const _hoisted_1$
|
|
400
|
-
const _hoisted_2$
|
|
328
|
+
const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
329
|
+
const _hoisted_1$2 = { class: "repo-card-footer mt-[4px]" };
|
|
330
|
+
const _hoisted_2$1 = {
|
|
401
331
|
key: 3,
|
|
402
332
|
class: "line-separator"
|
|
403
333
|
};
|
|
404
|
-
const _hoisted_3$
|
|
334
|
+
const _hoisted_3$1 = {
|
|
405
335
|
key: 4,
|
|
406
336
|
class: "repo-card-footer-timer"
|
|
407
337
|
};
|
|
408
|
-
const _hoisted_4$
|
|
409
|
-
const _sfc_main$
|
|
338
|
+
const _hoisted_4$1 = ["onClick"];
|
|
339
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
410
340
|
__name: "index",
|
|
411
341
|
props: {
|
|
412
342
|
repoInfo: {},
|
|
@@ -430,9 +360,6 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
430
360
|
ref(topicNames.value);
|
|
431
361
|
const visibleCount = ref(0);
|
|
432
362
|
ref(false);
|
|
433
|
-
const showUpdateTimeDot = computed(() => {
|
|
434
|
-
return !props.hideUpdateTime && (!props.hideStarCount || props.tagInfo && props.tagInfo[0] || props.repoInfo.forks_count);
|
|
435
|
-
});
|
|
436
363
|
computed(() => {
|
|
437
364
|
return topicNames.value.length - visibleCount.value + 1;
|
|
438
365
|
});
|
|
@@ -446,7 +373,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
446
373
|
return (_ctx, _cache) => {
|
|
447
374
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
448
375
|
createElementVNode("div", null, [
|
|
449
|
-
createElementVNode("div", _hoisted_1$
|
|
376
|
+
createElementVNode("div", _hoisted_1$2, [
|
|
450
377
|
_ctx.tagInfo ? (openBlock(), createBlock(LanguageTag, {
|
|
451
378
|
key: 0,
|
|
452
379
|
"tag-info": _ctx.tagInfo
|
|
@@ -460,8 +387,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
460
387
|
key: 2,
|
|
461
388
|
count: _ctx.repoInfo.forks_count
|
|
462
389
|
}, null, 8, ["count"])) : createCommentVNode("", true),
|
|
463
|
-
|
|
464
|
-
!_ctx.hideUpdateTime ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
390
|
+
!_ctx.hideUpdateTime ? (openBlock(), createElementBlock("div", _hoisted_2$1)) : createCommentVNode("", true),
|
|
391
|
+
!_ctx.hideUpdateTime ? (openBlock(), createElementBlock("div", _hoisted_3$1, toDisplayString(unref(formatTimeFromNow)((_ctx.searchCard ? _ctx.repoInfo.last_repository_updated_at : _ctx.repoInfo.last_activity_at) || _ctx.repoInfo.last_activity_at)), 1)) : createCommentVNode("", true),
|
|
465
392
|
!_ctx.hideStarIncrease && _ctx.repoInfo.star_count_one ? (openBlock(), createBlock(StarCountOne, {
|
|
466
393
|
key: 5,
|
|
467
394
|
starCountOne: _ctx.repoInfo.star_count_one
|
|
@@ -483,16 +410,16 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
483
410
|
class: "topic-tag",
|
|
484
411
|
key: topic.topic_id,
|
|
485
412
|
onClick: withModifiers(($event) => handleTopicClick(topic), ["stop"])
|
|
486
|
-
}, toDisplayString(topic.name), 9, _hoisted_4$
|
|
413
|
+
}, toDisplayString(topic.name), 9, _hoisted_4$1);
|
|
487
414
|
}), 128))
|
|
488
415
|
], 512)) : createCommentVNode("", true)
|
|
489
416
|
], 64);
|
|
490
417
|
};
|
|
491
418
|
}
|
|
492
419
|
});
|
|
493
|
-
const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
494
|
-
const _hoisted_1$
|
|
495
|
-
const _sfc_main$
|
|
420
|
+
const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
421
|
+
const _hoisted_1$1 = { class: "new-tag-content" };
|
|
422
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
496
423
|
__name: "index",
|
|
497
424
|
props: {
|
|
498
425
|
repoType: {},
|
|
@@ -531,84 +458,18 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
531
458
|
trigger: "hover"
|
|
532
459
|
}, {
|
|
533
460
|
content: withCtx(() => [
|
|
534
|
-
createElementVNode("span", _hoisted_1$
|
|
461
|
+
createElementVNode("span", _hoisted_1$1, toDisplayString(tagTipsText.value), 1)
|
|
535
462
|
]),
|
|
536
463
|
default: withCtx(() => [
|
|
537
464
|
_cache[0] || (_cache[0] = createElementVNode("div", { class: "new-tag w-[32px] h-[15px] text-[9px] text-[#ffffff] flex items-center justify-center leading-[1]" }, "New", -1))
|
|
538
465
|
]),
|
|
539
|
-
_: 1
|
|
466
|
+
_: 1,
|
|
467
|
+
__: [0]
|
|
540
468
|
})) : createCommentVNode("", true);
|
|
541
469
|
};
|
|
542
470
|
}
|
|
543
471
|
});
|
|
544
|
-
const NewTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
545
|
-
const _hoisted_1$1 = { class: "model-card-footer h-[22px] mt-[4px] flex items-center overflow-hidden whitespace-nowrap text-[12px] leading-[14px] text-[var(--theme-release-card-text-color)]" };
|
|
546
|
-
const _hoisted_2$1 = {
|
|
547
|
-
key: 1,
|
|
548
|
-
class: "ellipsis max-150 ml-[6px]"
|
|
549
|
-
};
|
|
550
|
-
const _hoisted_3$1 = { class: "ml-[6px]" };
|
|
551
|
-
const _hoisted_4$1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis" };
|
|
552
|
-
const _hoisted_5$1 = { class: "ml-[6px]" };
|
|
553
|
-
const _hoisted_6$1 = {
|
|
554
|
-
key: 2,
|
|
555
|
-
class: "w-[4px] h-[4px] ml-[6px] mr-[6px] rounded-[2px] bg-[var(--theme-placeholder)]"
|
|
556
|
-
};
|
|
557
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
558
|
-
__name: "ModelCardFooter",
|
|
559
|
-
props: {
|
|
560
|
-
repoInfo: {}
|
|
561
|
-
},
|
|
562
|
-
setup(__props) {
|
|
563
|
-
const { formatTimeFromNow } = useTimeFormat();
|
|
564
|
-
const props = __props;
|
|
565
|
-
const projectData = computed(() => {
|
|
566
|
-
return props.repoInfo;
|
|
567
|
-
});
|
|
568
|
-
return (_ctx, _cache) => {
|
|
569
|
-
return openBlock(), createElementBlock("section", _hoisted_1$1, [
|
|
570
|
-
projectData.value.task && projectData.value.task.length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
571
|
-
projectData.value.task[0].icon ? (openBlock(), createBlock(GIcon, {
|
|
572
|
-
key: 0,
|
|
573
|
-
name: projectData.value.task[0].icon,
|
|
574
|
-
color: "var(--theme-release-card-text-color)",
|
|
575
|
-
size: "12px"
|
|
576
|
-
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
577
|
-
projectData.value.task[0].name ? (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(projectData.value.task[0].name), 1)) : createCommentVNode("", true),
|
|
578
|
-
_cache[0] || (_cache[0] = createElementVNode("div", { class: "w-[4px] h-[4px] ml-[6px] mr-[6px] rounded-[2px] bg-[var(--theme-placeholder)]" }, null, -1))
|
|
579
|
-
], 64)) : createCommentVNode("", true),
|
|
580
|
-
projectData.value.model_param_size ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
581
|
-
createVNode(GIcon, {
|
|
582
|
-
name: "gt-a-line-modelsize",
|
|
583
|
-
size: "16px",
|
|
584
|
-
color: "var(--theme-release-card-text-color)"
|
|
585
|
-
}),
|
|
586
|
-
createElementVNode("span", _hoisted_3$1, toDisplayString(projectData.value.model_param_size), 1),
|
|
587
|
-
_cache[1] || (_cache[1] = createElementVNode("div", { class: "w-[4px] h-[4px] ml-[6px] mr-[6px] rounded-[2px] bg-[var(--theme-placeholder)]" }, null, -1))
|
|
588
|
-
], 64)) : createCommentVNode("", true),
|
|
589
|
-
createElementVNode("span", _hoisted_4$1, toDisplayString(unref(formatTimeFromNow)(projectData.value.updated_at)), 1),
|
|
590
|
-
_cache[2] || (_cache[2] = createElementVNode("div", { class: "w-[4px] h-[4px] ml-[6px] mr-[6px] rounded-[2px] bg-[var(--theme-placeholder)]" }, null, -1)),
|
|
591
|
-
createVNode(GIcon, {
|
|
592
|
-
name: "gt-line-upload",
|
|
593
|
-
size: "12px",
|
|
594
|
-
color: "var(--theme-release-card-text-color)"
|
|
595
|
-
}),
|
|
596
|
-
createElementVNode("span", _hoisted_5$1, [
|
|
597
|
-
createVNode(_sfc_main$a, {
|
|
598
|
-
number: projectData.value.download_count || 0
|
|
599
|
-
}, null, 8, ["number"])
|
|
600
|
-
]),
|
|
601
|
-
projectData.value.is_online ? (openBlock(), createElementBlock("div", _hoisted_6$1)) : createCommentVNode("", true),
|
|
602
|
-
projectData.value.is_online ? (openBlock(), createBlock(GIcon, {
|
|
603
|
-
key: 3,
|
|
604
|
-
name: "gt-a-plane-Canexperience1",
|
|
605
|
-
size: "14px",
|
|
606
|
-
color: "#DA203E"
|
|
607
|
-
})) : createCommentVNode("", true)
|
|
608
|
-
]);
|
|
609
|
-
};
|
|
610
|
-
}
|
|
611
|
-
});
|
|
472
|
+
const NewTag = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
612
473
|
const _hoisted_1 = ["innerHTML"];
|
|
613
474
|
const _hoisted_2 = {
|
|
614
475
|
key: 0,
|
|
@@ -649,9 +510,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
649
510
|
emits("report", "starReport");
|
|
650
511
|
};
|
|
651
512
|
const rowSpan = reactive({ xxl: 8, xl: 12, md: 12, lg: 24, sm: 24 });
|
|
652
|
-
const repoIcon = { repo: "gt-line-repositories", model: "gt-
|
|
513
|
+
const repoIcon = { repo: "gt-line-repositories", model: "gt-line-Models", dataset: "gt-line-Datasets" };
|
|
653
514
|
const props = __props;
|
|
654
|
-
console.log("i-search-projects-card", props.info, props.cardType);
|
|
655
515
|
const iconName = computed(() => {
|
|
656
516
|
var _a;
|
|
657
517
|
if ((_a = props.info) == null ? void 0 : _a.is_gh_mirrors) {
|
|
@@ -659,9 +519,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
659
519
|
}
|
|
660
520
|
return repoIcon[props.cardType] || "gt-line-repositories";
|
|
661
521
|
});
|
|
662
|
-
const isModel = computed(() => {
|
|
663
|
-
return props.cardType === "model";
|
|
664
|
-
});
|
|
665
522
|
const description = computed(() => {
|
|
666
523
|
if (lang.value === LANG_ZH) {
|
|
667
524
|
return props.info.description_cn || props.info.description;
|
|
@@ -719,7 +576,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
719
576
|
});
|
|
720
577
|
return (_ctx, _cache) => {
|
|
721
578
|
return openBlock(), createElementBlock("a", {
|
|
722
|
-
class: normalizeClass(["i-search-projects-card
|
|
579
|
+
class: normalizeClass(["i-search-projects-card", { noborder: _ctx.noborder, "full-hover": _ctx.hover }]),
|
|
723
580
|
onClick: handleClick
|
|
724
581
|
}, [
|
|
725
582
|
createVNode(unref(Row), { class: "i-search-projects-card-title" }, {
|
|
@@ -742,7 +599,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
742
599
|
}, null, 8, _hoisted_1),
|
|
743
600
|
_ctx.info.show_recommend_icon ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref($t)("gitCodeLayout.search.recommendTag")), 1)) : createCommentVNode("", true),
|
|
744
601
|
unref(isGstarRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
745
|
-
createVNode(_sfc_main$
|
|
602
|
+
createVNode(_sfc_main$9, {
|
|
746
603
|
origin: "repo",
|
|
747
604
|
icon: "",
|
|
748
605
|
type: "gstar",
|
|
@@ -751,11 +608,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
751
608
|
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
752
609
|
createTextVNode("G-Star ")
|
|
753
610
|
])),
|
|
754
|
-
_: 1
|
|
611
|
+
_: 1,
|
|
612
|
+
__: [0]
|
|
755
613
|
}, 8, ["message"])
|
|
756
614
|
])) : createCommentVNode("", true),
|
|
757
615
|
unref(isIncubationRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
758
|
-
createVNode(_sfc_main$
|
|
616
|
+
createVNode(_sfc_main$9, {
|
|
759
617
|
origin: "repo",
|
|
760
618
|
icon: "",
|
|
761
619
|
type: "incubation",
|
|
@@ -764,7 +622,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
764
622
|
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
765
623
|
createTextVNode(" G-Star ")
|
|
766
624
|
])),
|
|
767
|
-
_: 1
|
|
625
|
+
_: 1,
|
|
626
|
+
__: [1]
|
|
768
627
|
}, 8, ["message"])
|
|
769
628
|
])) : createCommentVNode("", true),
|
|
770
629
|
createVNode(NewTag, {
|
|
@@ -779,10 +638,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
779
638
|
default: withCtx(() => [
|
|
780
639
|
!_ctx.hideStarBtn ? (openBlock(), createBlock(StarTag, {
|
|
781
640
|
key: 0,
|
|
782
|
-
isLike: isModel.value,
|
|
783
641
|
"star-info": starInfo.value,
|
|
784
642
|
onReport: handleStarReport
|
|
785
|
-
}, null, 8, ["
|
|
643
|
+
}, null, 8, ["star-info"])) : createCommentVNode("", true)
|
|
786
644
|
]),
|
|
787
645
|
_: 1
|
|
788
646
|
})
|
|
@@ -832,10 +690,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
832
690
|
]),
|
|
833
691
|
_: 1
|
|
834
692
|
})) : createCommentVNode("", true)
|
|
835
|
-
])) :
|
|
836
|
-
key: 2,
|
|
837
|
-
repoInfo: _ctx.info
|
|
838
|
-
}, null, 8, ["repoInfo"])) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
693
|
+
])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
839
694
|
!_ctx.hideFooter ? (openBlock(), createBlock(RepoCardFooter, {
|
|
840
695
|
key: 0,
|
|
841
696
|
hideTopicTags: _ctx.hideTopicTags,
|
|
@@ -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 { q as useLayoutConfig, _ as _export_sfc } from "./index-
|
|
3
|
+
import { q as useLayoutConfig, _ as _export_sfc } from "./index-DxGju-SH.js";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "index",
|
|
@@ -49,7 +49,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
49
49
|
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
50
50
|
createElementVNode("div", { id: "captcha-box" }, null, -1)
|
|
51
51
|
])),
|
|
52
|
-
_: 1
|
|
52
|
+
_: 1,
|
|
53
|
+
__: [0]
|
|
53
54
|
});
|
|
54
55
|
};
|
|
55
56
|
}
|