vue-layout-gitcode 1.3.39 → 1.3.41
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-B1k-OmsR.js → GloabarSearch-C7LAcV05.js} +4 -18
- package/{ProjectSearch-BGA2HpRX.js → ProjectSearch-B1zrQyDQ.js} +1 -1
- package/{SearchHistoryList-DxfKIzxA.js → SearchHistoryList-BuhqGED9.js} +1 -1
- package/{SearchPrefixTag-DqUMt--r.js → SearchPrefixTag-BCkplaHZ.js} +1 -1
- package/{SearchRecommed-BZxlt8p5.js → SearchRecommed-Bh1LqtOt.js} +2 -2
- package/{SearchScopeList-d22K-SQJ.js → SearchScopeList-Cgw8fkxu.js} +1 -1
- package/{UserSearch-D85D_u4a.js → UserSearch-BQX10OlD.js} +1 -1
- package/{index-Br7X1o9p.js → index-BhrxF7Ye.js} +1 -1
- package/{index-OCTZrkEB.js → index-CwV2bsrg.js} +130 -69
- package/{index-CGyHM1VW.js → index-Z1okzjC5.js} +845 -506
- package/index.js +11 -11
- package/{notice-Bik_QH8o.js → notice-CR0msS92.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,8 +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, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-
|
|
5
|
-
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } 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-Z1okzjC5.js";
|
|
5
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CwV2bsrg.js";
|
|
6
6
|
import "vue-devui-lal/tooltip";
|
|
7
7
|
import "vue-devui-lal/tooltip/style.css";
|
|
8
8
|
import "vue-router";
|
|
@@ -11,22 +11,8 @@ import "vue-devui-lal/skeleton";
|
|
|
11
11
|
import "vue-devui-lal/grid/style.css";
|
|
12
12
|
import "vue-devui-lal/skeleton/style.css";
|
|
13
13
|
import "@vueuse/core";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
let observer = new IntersectionObserver(function(entries, observer2) {
|
|
17
|
-
entries.forEach(function(entry) {
|
|
18
|
-
var _a;
|
|
19
|
-
if (entry.isIntersecting) {
|
|
20
|
-
(_a = binding.value) == null ? void 0 : _a.trigger("expo");
|
|
21
|
-
observer2.unobserve(entry.target);
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
}, { threshold: 0 });
|
|
25
|
-
observer.observe(el);
|
|
26
|
-
},
|
|
27
|
-
beforeUnmount() {
|
|
28
|
-
}
|
|
29
|
-
};
|
|
14
|
+
import "vue-devui-lal/popover";
|
|
15
|
+
import "vue-devui-lal/popover/style.css";
|
|
30
16
|
const _hoisted_1$1 = { class: "mb-[4px] mt-[16px] flex justify-between" };
|
|
31
17
|
const _hoisted_2$1 = { class: "title" };
|
|
32
18
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
@@ -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-Z1okzjC5.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-Z1okzjC5.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-Z1okzjC5.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-CwV2bsrg.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-Z1okzjC5.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-Z1okzjC5.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-Z1okzjC5.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-Z1okzjC5.js";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "index",
|
|
@@ -1,11 +1,13 @@
|
|
|
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,
|
|
2
|
-
import { d as debounce, t as transferNumber, G as GIcon, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, L as LANG_KEY, j as LANG_ZH, k as usePageResize, m as isGstarRepo, n as _sfc_main$
|
|
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
|
+
import { d as debounce, t as transferNumber, G as GIcon, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, L as LANG_KEY, j as LANG_ZH, k as usePageResize, m as isGstarRepo, n as _sfc_main$9, o as isIncubationRepo, p as highlightWords, q as transWebUrl, w as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-Z1okzjC5.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
4
|
import { Row, Col } from "vue-devui-lal/grid";
|
|
5
5
|
import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
|
|
6
6
|
import "vue-devui-lal/grid/style.css";
|
|
7
7
|
import "vue-devui-lal/skeleton/style.css";
|
|
8
8
|
import { useLocalStorage } from "@vueuse/core";
|
|
9
|
+
import { Popover } from "vue-devui-lal/popover";
|
|
10
|
+
import "vue-devui-lal/popover/style.css";
|
|
9
11
|
const useReportRepo = (reportParams, viewReport) => {
|
|
10
12
|
const list = ref([]);
|
|
11
13
|
const pageRef = ref((window == null ? void 0 : window.page_ref) || "");
|
|
@@ -74,7 +76,7 @@ const useReportRepo = (reportParams, viewReport) => {
|
|
|
74
76
|
const formatNameSpace = (content) => {
|
|
75
77
|
return content.trim().replace(/\s+/g, "").replace(/^(GitHub加速计划\/|HuggingFace镜像\/)/, "").split("/").filter(Boolean);
|
|
76
78
|
};
|
|
77
|
-
const _sfc_main$
|
|
79
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
78
80
|
__name: "index",
|
|
79
81
|
props: {
|
|
80
82
|
number: {},
|
|
@@ -88,12 +90,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
88
90
|
};
|
|
89
91
|
}
|
|
90
92
|
});
|
|
91
|
-
const _hoisted_1$
|
|
93
|
+
const _hoisted_1$6 = {
|
|
92
94
|
class: "mr-[4px]",
|
|
93
95
|
style: { "width": "15px", "height": "15px" }
|
|
94
96
|
};
|
|
95
97
|
const _hoisted_2$4 = { class: "i-star-tag__text" };
|
|
96
|
-
const _sfc_main$
|
|
98
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
97
99
|
__name: "index",
|
|
98
100
|
props: {
|
|
99
101
|
starInfo: { default: () => ({
|
|
@@ -167,7 +169,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
167
169
|
}, null, 544), [
|
|
168
170
|
[vShow, running.value]
|
|
169
171
|
]),
|
|
170
|
-
createElementVNode("div", _hoisted_1$
|
|
172
|
+
createElementVNode("div", _hoisted_1$6, [
|
|
171
173
|
withDirectives(createVNode(GIcon, {
|
|
172
174
|
size: "15",
|
|
173
175
|
name: starred.value ? "gt-a-star_open_16px1" : "gt-line-new-star",
|
|
@@ -179,7 +181,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
179
181
|
])
|
|
180
182
|
]),
|
|
181
183
|
createElementVNode("span", _hoisted_2$4, [
|
|
182
|
-
createVNode(_sfc_main$
|
|
184
|
+
createVNode(_sfc_main$8, {
|
|
183
185
|
number: Number(starCount.value || 0)
|
|
184
186
|
}, null, 8, ["number"])
|
|
185
187
|
])
|
|
@@ -188,16 +190,16 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
188
190
|
};
|
|
189
191
|
}
|
|
190
192
|
});
|
|
191
|
-
const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
192
|
-
const _hoisted_1$
|
|
193
|
-
const _sfc_main$
|
|
193
|
+
const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
194
|
+
const _hoisted_1$5 = { class: "fork-tag" };
|
|
195
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
194
196
|
__name: "index",
|
|
195
197
|
props: {
|
|
196
198
|
count: {}
|
|
197
199
|
},
|
|
198
200
|
setup(__props) {
|
|
199
201
|
return (_ctx, _cache) => {
|
|
200
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
202
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
201
203
|
createVNode(GIcon, {
|
|
202
204
|
class: "mr-[4px]",
|
|
203
205
|
name: "gt-line-fork",
|
|
@@ -205,7 +207,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
205
207
|
size: "14"
|
|
206
208
|
}),
|
|
207
209
|
createElementVNode("span", null, [
|
|
208
|
-
createVNode(_sfc_main$
|
|
210
|
+
createVNode(_sfc_main$8, {
|
|
209
211
|
number: _ctx.count || 0
|
|
210
212
|
}, null, 8, ["number"])
|
|
211
213
|
])
|
|
@@ -213,8 +215,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
213
215
|
};
|
|
214
216
|
}
|
|
215
217
|
});
|
|
216
|
-
const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
217
|
-
const _sfc_main$
|
|
218
|
+
const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
219
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
218
220
|
__name: "index",
|
|
219
221
|
props: {
|
|
220
222
|
tagInfo: { default: [] },
|
|
@@ -259,10 +261,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
259
261
|
};
|
|
260
262
|
}
|
|
261
263
|
});
|
|
262
|
-
const LanguageTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
263
|
-
const _hoisted_1$
|
|
264
|
+
const LanguageTag = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
265
|
+
const _hoisted_1$4 = { class: "star-count-one" };
|
|
264
266
|
const _hoisted_2$3 = { key: 0 };
|
|
265
|
-
const _sfc_main$
|
|
267
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
266
268
|
...{ name: "star-count-one" },
|
|
267
269
|
__name: "index",
|
|
268
270
|
props: {
|
|
@@ -272,27 +274,27 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
272
274
|
setup(__props) {
|
|
273
275
|
const { t: $t } = i18n.global;
|
|
274
276
|
return (_ctx, _cache) => {
|
|
275
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
277
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
276
278
|
createVNode(GIcon, {
|
|
277
279
|
name: "gt-line-new-star",
|
|
278
280
|
color: "var(--theme-home-card-color-placeholder)",
|
|
279
281
|
size: "14"
|
|
280
282
|
}),
|
|
281
283
|
!_ctx.hideText ? (openBlock(), createElementBlock("span", _hoisted_2$3, toDisplayString(unref($t)("gitCodeLayout.components.repo.today")), 1)) : createCommentVNode("", true),
|
|
282
|
-
createVNode(_sfc_main$
|
|
284
|
+
createVNode(_sfc_main$8, {
|
|
283
285
|
number: _ctx.starCountOne || 0
|
|
284
286
|
}, null, 8, ["number"])
|
|
285
287
|
]);
|
|
286
288
|
};
|
|
287
289
|
}
|
|
288
290
|
});
|
|
289
|
-
const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
290
|
-
const _hoisted_1$
|
|
291
|
+
const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
292
|
+
const _hoisted_1$3 = {
|
|
291
293
|
key: 0,
|
|
292
294
|
class: "github-star-num"
|
|
293
295
|
};
|
|
294
296
|
const _hoisted_2$2 = { class: "leading-none" };
|
|
295
|
-
const _sfc_main$
|
|
297
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
296
298
|
...{ name: "GithubStarNum" },
|
|
297
299
|
__name: "index",
|
|
298
300
|
props: {
|
|
@@ -304,7 +306,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
304
306
|
return props.count && props.count >= 100;
|
|
305
307
|
});
|
|
306
308
|
return (_ctx, _cache) => {
|
|
307
|
-
return starVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
309
|
+
return starVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
308
310
|
createVNode(GIcon, {
|
|
309
311
|
name: "gt-line-github",
|
|
310
312
|
color: "var(--theme-home-card-color-placeholder)",
|
|
@@ -312,7 +314,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
312
314
|
}),
|
|
313
315
|
createElementVNode("span", _hoisted_2$2, [
|
|
314
316
|
_cache[0] || (_cache[0] = createTextVNode("Star ")),
|
|
315
|
-
createVNode(_sfc_main$
|
|
317
|
+
createVNode(_sfc_main$8, {
|
|
316
318
|
number: _ctx.count || 0,
|
|
317
319
|
gt100: true
|
|
318
320
|
}, null, 8, ["number"])
|
|
@@ -321,8 +323,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
321
323
|
};
|
|
322
324
|
}
|
|
323
325
|
});
|
|
324
|
-
const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
325
|
-
const _hoisted_1$
|
|
326
|
+
const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
327
|
+
const _hoisted_1$2 = { class: "repo-card-footer mt-[4px]" };
|
|
326
328
|
const _hoisted_2$1 = {
|
|
327
329
|
key: 3,
|
|
328
330
|
class: "line-separator"
|
|
@@ -332,7 +334,7 @@ const _hoisted_3$1 = {
|
|
|
332
334
|
class: "repo-card-footer-timer"
|
|
333
335
|
};
|
|
334
336
|
const _hoisted_4$1 = ["onClick"];
|
|
335
|
-
const _sfc_main$
|
|
337
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
336
338
|
__name: "index",
|
|
337
339
|
props: {
|
|
338
340
|
repoInfo: {},
|
|
@@ -369,7 +371,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
369
371
|
return (_ctx, _cache) => {
|
|
370
372
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
371
373
|
createElementVNode("div", null, [
|
|
372
|
-
createElementVNode("div", _hoisted_1$
|
|
374
|
+
createElementVNode("div", _hoisted_1$2, [
|
|
373
375
|
_ctx.tagInfo ? (openBlock(), createBlock(LanguageTag, {
|
|
374
376
|
key: 0,
|
|
375
377
|
"tag-info": _ctx.tagInfo
|
|
@@ -413,7 +415,59 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
413
415
|
};
|
|
414
416
|
}
|
|
415
417
|
});
|
|
416
|
-
const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
418
|
+
const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
419
|
+
const _hoisted_1$1 = { class: "new-tag-content" };
|
|
420
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
421
|
+
__name: "index",
|
|
422
|
+
props: {
|
|
423
|
+
repoType: {},
|
|
424
|
+
isNew: { type: Boolean }
|
|
425
|
+
},
|
|
426
|
+
setup(__props) {
|
|
427
|
+
const props = __props;
|
|
428
|
+
const tagTipsText = computed(() => {
|
|
429
|
+
if ([
|
|
430
|
+
"model",
|
|
431
|
+
"1"
|
|
432
|
+
/* model */
|
|
433
|
+
].includes(props.repoType)) {
|
|
434
|
+
return "本月新增模型";
|
|
435
|
+
}
|
|
436
|
+
if ([
|
|
437
|
+
"dataset",
|
|
438
|
+
"2"
|
|
439
|
+
/* dataset */
|
|
440
|
+
].includes(props.repoType)) {
|
|
441
|
+
return "本月新增数据集";
|
|
442
|
+
}
|
|
443
|
+
return "本月新增项目";
|
|
444
|
+
});
|
|
445
|
+
const isShowTag = computed(() => {
|
|
446
|
+
return [
|
|
447
|
+
"model",
|
|
448
|
+
"1"
|
|
449
|
+
/* model */
|
|
450
|
+
].includes(props.repoType) && props.isNew;
|
|
451
|
+
});
|
|
452
|
+
return (_ctx, _cache) => {
|
|
453
|
+
return isShowTag.value ? (openBlock(), createBlock(unref(Popover), {
|
|
454
|
+
key: 0,
|
|
455
|
+
position: ["top"],
|
|
456
|
+
trigger: "hover"
|
|
457
|
+
}, {
|
|
458
|
+
content: withCtx(() => [
|
|
459
|
+
createElementVNode("span", _hoisted_1$1, toDisplayString(tagTipsText.value), 1)
|
|
460
|
+
]),
|
|
461
|
+
default: withCtx(() => [
|
|
462
|
+
_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))
|
|
463
|
+
]),
|
|
464
|
+
_: 1,
|
|
465
|
+
__: [0]
|
|
466
|
+
})) : createCommentVNode("", true);
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
const NewTag = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
417
471
|
const _hoisted_1 = ["innerHTML"];
|
|
418
472
|
const _hoisted_2 = {
|
|
419
473
|
key: 0,
|
|
@@ -529,46 +583,53 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
529
583
|
class: "ellipsis flex items-center gap-[8px]",
|
|
530
584
|
flex: "auto"
|
|
531
585
|
}, {
|
|
532
|
-
default: withCtx(() =>
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
586
|
+
default: withCtx(() => {
|
|
587
|
+
var _a;
|
|
588
|
+
return [
|
|
589
|
+
createVNode(GIcon, {
|
|
590
|
+
name: iconName.value,
|
|
591
|
+
class: normalizeClass({ "align-middle": _ctx.info.is_gh_mirrors }),
|
|
592
|
+
color: "var(--theme-placeholder)"
|
|
593
|
+
}, null, 8, ["name", "class"]),
|
|
594
|
+
createElementVNode("span", {
|
|
595
|
+
class: "repo-title",
|
|
596
|
+
innerHTML: preHandWord()
|
|
597
|
+
}, null, 8, _hoisted_1),
|
|
598
|
+
_ctx.info.show_recommend_icon ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref($t)("gitCodeLayout.search.recommendTag")), 1)) : createCommentVNode("", true),
|
|
599
|
+
unref(isGstarRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
600
|
+
createVNode(_sfc_main$9, {
|
|
601
|
+
origin: "repo",
|
|
602
|
+
icon: "",
|
|
603
|
+
type: "gstar",
|
|
604
|
+
message: `G-Star ${unref($t)("gitCodeLayout.GStar.project.graduation")}`
|
|
605
|
+
}, {
|
|
606
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
607
|
+
createTextVNode("G-Star ")
|
|
608
|
+
])),
|
|
609
|
+
_: 1,
|
|
610
|
+
__: [0]
|
|
611
|
+
}, 8, ["message"])
|
|
612
|
+
])) : createCommentVNode("", true),
|
|
613
|
+
unref(isIncubationRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
614
|
+
createVNode(_sfc_main$9, {
|
|
615
|
+
origin: "repo",
|
|
616
|
+
icon: "",
|
|
617
|
+
type: "incubation",
|
|
618
|
+
message: `G-Star ${unref($t)("gitCodeLayout.GStar.project.incubation")}`
|
|
619
|
+
}, {
|
|
620
|
+
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
621
|
+
createTextVNode(" G-Star ")
|
|
622
|
+
])),
|
|
623
|
+
_: 1,
|
|
624
|
+
__: [1]
|
|
625
|
+
}, 8, ["message"])
|
|
626
|
+
])) : createCommentVNode("", true),
|
|
627
|
+
createVNode(NewTag, {
|
|
628
|
+
repoType: _ctx.cardType,
|
|
629
|
+
isNew: ((_a = _ctx.info) == null ? void 0 : _a.is_new) || false
|
|
630
|
+
}, null, 8, ["repoType", "isNew"])
|
|
631
|
+
];
|
|
632
|
+
}),
|
|
572
633
|
_: 1
|
|
573
634
|
}),
|
|
574
635
|
createVNode(unref(Col), { flex: "none" }, {
|