vue-layout-gitcode 1.11.9 → 1.12.1-beta
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/README.md +533 -0
- package/{GloabarSearch-91A6wrvj.js → dist/GloabarSearch-BVSCbbUb.js} +8 -8
- package/{MenuItem-BVINvSGW.js → dist/MenuItem-DjuP8f45.js} +7 -20
- package/{ProjectMenuList-DUu1KMLN.js → dist/ProjectMenuList-DkKK-NLS.js} +13 -13
- package/{ProjectMenuListV2-CdEFG8K2.js → dist/ProjectMenuListV2-Cy-mDopT.js} +7 -7
- package/{ProjectSearch-BH18p9pb.js → dist/ProjectSearch-DJmX8Vkw.js} +5 -5
- package/{SearchHistoryList-BdEzvpAl.js → dist/SearchHistoryList-DcxGIVKV.js} +12 -12
- package/{SearchPrefixTag-TgEVgvvw.js → dist/SearchPrefixTag-wGBoyYuN.js} +5 -5
- package/{SearchRecommed-DMc_cpwA.js → dist/SearchRecommed-Bj4rOU-E.js} +6 -6
- package/{SearchScopeList-3_8o-XH5.js → dist/SearchScopeList-DXkCgNHW.js} +7 -7
- package/{UserSearch-dVyT-g5X.js → dist/UserSearch-B3LLBuMp.js} +5 -5
- package/{index-DElXrUuD.js → dist/index-BO5ZxPlJ.js} +3 -3
- package/{index-BkKz6ul1.js → dist/index-BZtPjJo6.js} +69 -69
- package/{index-C6Lx-tXg.js → dist/index-CYtl2kxU.js} +1 -1
- package/{index-DJFGf8D7.js → dist/index-NfMFRNgz.js} +1196 -1176
- package/dist/index.d.ts +109 -0
- package/{index.js → dist/index.js} +1 -1
- package/{notice-ZZODW7f-.js → dist/notice-NzYRRupc.js} +13 -12
- package/dist/package.json +13 -0
- package/dist/style.css +1 -0
- package/{transWebUrl-5tFpNBo4.js → dist/transWebUrl-Cvy6Fboe.js} +1 -1
- package/package.json +71 -11
- package/index.d.ts +0 -571
- package/style.css +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref, watchEffect, defineComponent, toDisplayString, unref, useModel, watch, openBlock, createElementBlock, createVNode, normalizeClass, withDirectives, createElementVNode, vShow, mergeModels, inject, withModifiers, createBlock, Fragment, computed, normalizeStyle, createCommentVNode, createTextVNode, onMounted, onUnmounted, renderList, withCtx, reactive } from "vue";
|
|
2
2
|
import debounce from "lodash/debounce";
|
|
3
|
-
import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, r as reqCatch, f as useRequestReport, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, j as useCookie, k as usePageResize, L as LANG_ZH, m as isGstarRepo, n as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, w as LANG_KEY } from "./index-
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
3
|
+
import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, r as reqCatch, f as useRequestReport, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, j as useCookie, k as usePageResize, L as LANG_ZH, m as isGstarRepo, n as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, w as LANG_KEY } from "./index-NfMFRNgz.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-Cvy6Fboe.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";
|
|
@@ -87,12 +87,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
87
87
|
},
|
|
88
88
|
setup(__props) {
|
|
89
89
|
return (_ctx, _cache) => {
|
|
90
|
-
return toDisplayString(unref(transferNumber)({ number:
|
|
90
|
+
return toDisplayString(unref(transferNumber)({ number: _ctx.number, fixed: _ctx.fixed, byte: _ctx.byte, gt100: _ctx.gt100 }));
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
|
-
const _hoisted_1$8 = { class: "
|
|
95
|
-
const _hoisted_2$6 = { class: "
|
|
94
|
+
const _hoisted_1$8 = { class: "g-like" };
|
|
95
|
+
const _hoisted_2$6 = { class: "g-like__overlay" };
|
|
96
96
|
const ANIM_END = "animEnd";
|
|
97
97
|
const activeLikeIcon = "gt-plane-like";
|
|
98
98
|
const unActiveLikeIcon = "gt-line-like";
|
|
@@ -127,7 +127,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
127
127
|
return (_ctx, _cache) => {
|
|
128
128
|
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
129
129
|
createVNode(GIcon, {
|
|
130
|
-
class: normalizeClass({ "
|
|
130
|
+
class: normalizeClass({ "g-like__active": active.value }),
|
|
131
131
|
name: active.value ? activeLikeIcon : unActiveLikeIcon
|
|
132
132
|
}, null, 8, ["class", "name"]),
|
|
133
133
|
withDirectives(createElementVNode("div", _hoisted_2$6, [
|
|
@@ -136,7 +136,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
136
136
|
onAnimationend: animationend
|
|
137
137
|
}, [
|
|
138
138
|
createVNode(GIcon, {
|
|
139
|
-
class: "
|
|
139
|
+
class: "g-like__active",
|
|
140
140
|
name: activeLikeIcon
|
|
141
141
|
})
|
|
142
142
|
], 32)
|
|
@@ -149,7 +149,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
149
149
|
});
|
|
150
150
|
const Like = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
151
151
|
const _hoisted_1$7 = {
|
|
152
|
-
class: "
|
|
152
|
+
class: "i-star-tag__icon-wrap",
|
|
153
153
|
style: { "width": "15px", "height": "15px" }
|
|
154
154
|
};
|
|
155
155
|
const _hoisted_2$5 = { class: "i-star-tag__text" };
|
|
@@ -220,14 +220,14 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
220
220
|
}])
|
|
221
221
|
}, [
|
|
222
222
|
createElementVNode("span", {
|
|
223
|
-
class: normalizeClass(["i-star-tag
|
|
223
|
+
class: normalizeClass(["i-star-tag", {
|
|
224
224
|
"i-star-tag__active": starred.value
|
|
225
225
|
}]),
|
|
226
226
|
onClick: withModifiers(handleStar, ["stop", "prevent"])
|
|
227
227
|
}, [
|
|
228
|
-
|
|
228
|
+
_ctx.isLike ? (openBlock(), createBlock(Like, {
|
|
229
229
|
key: 0,
|
|
230
|
-
class: "mr
|
|
230
|
+
class: "i-star-tag__icon-mr",
|
|
231
231
|
modelValue: starred.value,
|
|
232
232
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => starred.value = $event),
|
|
233
233
|
runAnimation: running.value,
|
|
@@ -272,14 +272,14 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
272
272
|
return (_ctx, _cache) => {
|
|
273
273
|
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
274
274
|
createVNode(GIcon, {
|
|
275
|
-
class: "
|
|
275
|
+
class: "fork-tag__icon",
|
|
276
276
|
name: "gt-line-fork",
|
|
277
277
|
color: "var(--theme-home-card-color-placeholder)",
|
|
278
278
|
size: "14"
|
|
279
279
|
}),
|
|
280
280
|
createElementVNode("span", null, [
|
|
281
281
|
createVNode(_sfc_main$a, {
|
|
282
|
-
number:
|
|
282
|
+
number: _ctx.count || 0
|
|
283
283
|
}, null, 8, ["number"])
|
|
284
284
|
])
|
|
285
285
|
]);
|
|
@@ -324,7 +324,6 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
324
324
|
style: normalizeStyle({ background: unref(tagColor), opacity: 0.1 })
|
|
325
325
|
}, null, 4)) : createCommentVNode("", true),
|
|
326
326
|
createElementVNode("i", {
|
|
327
|
-
class: "mr-[4px]",
|
|
328
327
|
style: normalizeStyle({ background: unref(tagColor) })
|
|
329
328
|
}, null, 4),
|
|
330
329
|
createTextVNode(toDisplayString(unref(languageTag)), 1)
|
|
@@ -351,9 +350,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
351
350
|
color: "var(--theme-home-card-color-placeholder)",
|
|
352
351
|
size: "14"
|
|
353
352
|
}),
|
|
354
|
-
!
|
|
353
|
+
!_ctx.hideText ? (openBlock(), createElementBlock("span", _hoisted_2$4, toDisplayString(unref($t)("gitCodeLayout.components.repo.today")), 1)) : createCommentVNode("", true),
|
|
355
354
|
createVNode(_sfc_main$a, {
|
|
356
|
-
number:
|
|
355
|
+
number: _ctx.starCountOne || 0
|
|
357
356
|
}, null, 8, ["number"])
|
|
358
357
|
]);
|
|
359
358
|
};
|
|
@@ -384,9 +383,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
384
383
|
size: "14"
|
|
385
384
|
}),
|
|
386
385
|
createElementVNode("span", _hoisted_2$3, [
|
|
387
|
-
_cache[0] || (_cache[0] = createTextVNode("Star "
|
|
386
|
+
_cache[0] || (_cache[0] = createTextVNode("Star ")),
|
|
388
387
|
createVNode(_sfc_main$a, {
|
|
389
|
-
number:
|
|
388
|
+
number: _ctx.count || 0,
|
|
390
389
|
gt100: true
|
|
391
390
|
}, null, 8, ["number"])
|
|
392
391
|
])
|
|
@@ -395,7 +394,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
395
394
|
}
|
|
396
395
|
});
|
|
397
396
|
const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
398
|
-
const _hoisted_1$3 = { class: "repo-card-footer
|
|
397
|
+
const _hoisted_1$3 = { class: "repo-card-footer" };
|
|
399
398
|
const _hoisted_2$2 = {
|
|
400
399
|
key: 3,
|
|
401
400
|
class: "line-separator"
|
|
@@ -446,32 +445,32 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
446
445
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
447
446
|
createElementVNode("div", null, [
|
|
448
447
|
createElementVNode("div", _hoisted_1$3, [
|
|
449
|
-
|
|
448
|
+
_ctx.tagInfo ? (openBlock(), createBlock(LanguageTag, {
|
|
450
449
|
key: 0,
|
|
451
|
-
"tag-info":
|
|
450
|
+
"tag-info": _ctx.tagInfo
|
|
452
451
|
}, null, 8, ["tag-info"])) : createCommentVNode("", true),
|
|
453
|
-
!
|
|
452
|
+
!_ctx.hideStarCount ? (openBlock(), createBlock(StarCountOne, {
|
|
454
453
|
key: 1,
|
|
455
454
|
hideText: "",
|
|
456
|
-
starCountOne:
|
|
455
|
+
starCountOne: _ctx.repoInfo.star_count
|
|
457
456
|
}, null, 8, ["starCountOne"])) : createCommentVNode("", true),
|
|
458
|
-
|
|
457
|
+
_ctx.repoInfo.forks_count ? (openBlock(), createBlock(ForkTag, {
|
|
459
458
|
key: 2,
|
|
460
|
-
count:
|
|
459
|
+
count: _ctx.repoInfo.forks_count
|
|
461
460
|
}, null, 8, ["count"])) : createCommentVNode("", true),
|
|
462
461
|
showUpdateTimeDot.value ? (openBlock(), createElementBlock("div", _hoisted_2$2)) : createCommentVNode("", true),
|
|
463
|
-
!
|
|
464
|
-
!
|
|
462
|
+
!_ctx.hideUpdateTime ? (openBlock(), createElementBlock("div", _hoisted_3$2, toDisplayString(unref(formatTimeFromNow)((_ctx.searchCard ? _ctx.repoInfo.last_repository_updated_at : _ctx.repoInfo.last_activity_at) || _ctx.repoInfo.last_activity_at)), 1)) : createCommentVNode("", true),
|
|
463
|
+
!_ctx.hideStarIncrease && _ctx.repoInfo.star_count_one ? (openBlock(), createBlock(StarCountOne, {
|
|
465
464
|
key: 5,
|
|
466
|
-
starCountOne:
|
|
465
|
+
starCountOne: _ctx.repoInfo.star_count_one
|
|
467
466
|
}, null, 8, ["starCountOne"])) : createCommentVNode("", true),
|
|
468
|
-
|
|
467
|
+
_ctx.repoInfo.is_gh_mirrors ? (openBlock(), createBlock(GithubStarNum, {
|
|
469
468
|
key: 6,
|
|
470
|
-
count:
|
|
469
|
+
count: _ctx.repoInfo.import_star_count
|
|
471
470
|
}, null, 8, ["count"])) : createCommentVNode("", true)
|
|
472
471
|
])
|
|
473
472
|
]),
|
|
474
|
-
!
|
|
473
|
+
!_ctx.hideTopicTags && topicNames.value.length && _ctx.searchCard ? (openBlock(), createElementBlock("div", {
|
|
475
474
|
key: 0,
|
|
476
475
|
class: "topic-tags",
|
|
477
476
|
ref_key: "topicTagsRef",
|
|
@@ -533,7 +532,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
533
532
|
createElementVNode("span", _hoisted_1$2, toDisplayString(tagTipsText.value), 1)
|
|
534
533
|
]),
|
|
535
534
|
default: withCtx(() => [
|
|
536
|
-
_cache[0] || (_cache[0] = createElementVNode("div", { class: "new-tag
|
|
535
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "new-tag" }, "New", -1))
|
|
537
536
|
]),
|
|
538
537
|
_: 1
|
|
539
538
|
})) : createCommentVNode("", true);
|
|
@@ -541,17 +540,17 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
541
540
|
}
|
|
542
541
|
});
|
|
543
542
|
const NewTag = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
544
|
-
const _hoisted_1$1 = { class: "model-card-footer
|
|
543
|
+
const _hoisted_1$1 = { class: "model-card-footer" };
|
|
545
544
|
const _hoisted_2$1 = {
|
|
546
545
|
key: 1,
|
|
547
|
-
class: "ellipsis max-150
|
|
546
|
+
class: "ellipsis max-150 model-card-footer__text"
|
|
548
547
|
};
|
|
549
|
-
const _hoisted_3$1 = { class: "
|
|
550
|
-
const _hoisted_4$1 = { class: "
|
|
551
|
-
const _hoisted_5$1 = { class: "
|
|
548
|
+
const _hoisted_3$1 = { class: "model-card-footer__text" };
|
|
549
|
+
const _hoisted_4$1 = { class: "model-card-footer__time" };
|
|
550
|
+
const _hoisted_5$1 = { class: "model-card-footer__text" };
|
|
552
551
|
const _hoisted_6$1 = {
|
|
553
552
|
key: 2,
|
|
554
|
-
class: "
|
|
553
|
+
class: "model-card-footer__dot"
|
|
555
554
|
};
|
|
556
555
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
557
556
|
__name: "ModelCardFooter",
|
|
@@ -574,7 +573,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
574
573
|
size: "12px"
|
|
575
574
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
576
575
|
projectData.value.task[0].name ? (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(projectData.value.task[0].name), 1)) : createCommentVNode("", true),
|
|
577
|
-
_cache[0] || (_cache[0] = createElementVNode("div", { class: "
|
|
576
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "model-card-footer__dot" }, null, -1))
|
|
578
577
|
], 64)) : createCommentVNode("", true),
|
|
579
578
|
projectData.value.model_param_size ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
580
579
|
createVNode(GIcon, {
|
|
@@ -583,10 +582,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
583
582
|
color: "var(--theme-release-card-text-color)"
|
|
584
583
|
}),
|
|
585
584
|
createElementVNode("span", _hoisted_3$1, toDisplayString(projectData.value.model_param_size), 1),
|
|
586
|
-
_cache[1] || (_cache[1] = createElementVNode("div", { class: "
|
|
585
|
+
_cache[1] || (_cache[1] = createElementVNode("div", { class: "model-card-footer__dot" }, null, -1))
|
|
587
586
|
], 64)) : createCommentVNode("", true),
|
|
588
587
|
createElementVNode("span", _hoisted_4$1, toDisplayString(unref(formatTimeFromNow)(projectData.value.updated_at)), 1),
|
|
589
|
-
_cache[2] || (_cache[2] = createElementVNode("div", { class: "
|
|
588
|
+
_cache[2] || (_cache[2] = createElementVNode("div", { class: "model-card-footer__dot" }, null, -1)),
|
|
590
589
|
createVNode(GIcon, {
|
|
591
590
|
name: "gt-line-upload",
|
|
592
591
|
size: "14px",
|
|
@@ -608,10 +607,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
608
607
|
};
|
|
609
608
|
}
|
|
610
609
|
});
|
|
610
|
+
const ModelCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
611
611
|
const _hoisted_1 = ["innerHTML"];
|
|
612
612
|
const _hoisted_2 = {
|
|
613
613
|
key: 0,
|
|
614
|
-
class: "is-recommend
|
|
614
|
+
class: "is-recommend"
|
|
615
615
|
};
|
|
616
616
|
const _hoisted_3 = { key: 1 };
|
|
617
617
|
const _hoisted_4 = { key: 2 };
|
|
@@ -718,13 +718,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
718
718
|
});
|
|
719
719
|
return (_ctx, _cache) => {
|
|
720
720
|
return openBlock(), createElementBlock("a", {
|
|
721
|
-
class: normalizeClass(["i-search-projects-card
|
|
721
|
+
class: normalizeClass(["i-search-projects-card", { noborder: _ctx.noborder, "full-hover": _ctx.hover }]),
|
|
722
722
|
onClick: handleClick
|
|
723
723
|
}, [
|
|
724
724
|
createVNode(unref(Row), { class: "i-search-projects-card-title" }, {
|
|
725
725
|
default: withCtx(() => [
|
|
726
726
|
createVNode(unref(Col), {
|
|
727
|
-
class: "ellipsis
|
|
727
|
+
class: "ellipsis i-search-projects-card-title__col",
|
|
728
728
|
flex: "auto"
|
|
729
729
|
}, {
|
|
730
730
|
default: withCtx(() => {
|
|
@@ -732,43 +732,43 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
732
732
|
return [
|
|
733
733
|
createVNode(GIcon, {
|
|
734
734
|
name: iconName.value,
|
|
735
|
-
class: normalizeClass({ "align-middle":
|
|
735
|
+
class: normalizeClass({ "align-middle": _ctx.info.is_gh_mirrors }),
|
|
736
736
|
color: "var(--theme-placeholder)"
|
|
737
737
|
}, null, 8, ["name", "class"]),
|
|
738
738
|
createElementVNode("span", {
|
|
739
739
|
class: "repo-title",
|
|
740
740
|
innerHTML: preHandWord()
|
|
741
741
|
}, null, 8, _hoisted_1),
|
|
742
|
-
|
|
743
|
-
unref(isGstarRepo)(
|
|
742
|
+
_ctx.info.show_recommend_icon ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref($t)("gitCodeLayout.search.recommendTag")), 1)) : createCommentVNode("", true),
|
|
743
|
+
unref(isGstarRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
744
744
|
createVNode(_sfc_main$b, {
|
|
745
745
|
origin: "repo",
|
|
746
746
|
icon: "",
|
|
747
747
|
type: "gstar",
|
|
748
748
|
message: `G-Star ${unref($t)("gitCodeLayout.GStar.project.graduation")}`
|
|
749
749
|
}, {
|
|
750
|
-
default: withCtx(() =>
|
|
751
|
-
createTextVNode("G-Star "
|
|
752
|
-
])
|
|
750
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
751
|
+
createTextVNode("G-Star ")
|
|
752
|
+
])),
|
|
753
753
|
_: 1
|
|
754
754
|
}, 8, ["message"])
|
|
755
755
|
])) : createCommentVNode("", true),
|
|
756
|
-
unref(isIncubationRepo)(
|
|
756
|
+
unref(isIncubationRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
757
757
|
createVNode(_sfc_main$b, {
|
|
758
758
|
origin: "repo",
|
|
759
759
|
icon: "",
|
|
760
760
|
type: "incubation",
|
|
761
761
|
message: `G-Star ${unref($t)("gitCodeLayout.GStar.project.incubation")}`
|
|
762
762
|
}, {
|
|
763
|
-
default: withCtx(() =>
|
|
764
|
-
createTextVNode(" G-Star "
|
|
765
|
-
])
|
|
763
|
+
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
764
|
+
createTextVNode(" G-Star ")
|
|
765
|
+
])),
|
|
766
766
|
_: 1
|
|
767
767
|
}, 8, ["message"])
|
|
768
768
|
])) : createCommentVNode("", true),
|
|
769
769
|
createVNode(NewTag, {
|
|
770
|
-
repoType:
|
|
771
|
-
isNew: ((_a =
|
|
770
|
+
repoType: _ctx.cardType,
|
|
771
|
+
isNew: ((_a = _ctx.info) == null ? void 0 : _a.is_new) || false
|
|
772
772
|
}, null, 8, ["repoType", "isNew"])
|
|
773
773
|
];
|
|
774
774
|
}),
|
|
@@ -776,7 +776,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
776
776
|
}),
|
|
777
777
|
createVNode(unref(Col), { flex: "none" }, {
|
|
778
778
|
default: withCtx(() => [
|
|
779
|
-
!
|
|
779
|
+
!_ctx.hideStarBtn ? (openBlock(), createBlock(StarTag, {
|
|
780
780
|
key: 0,
|
|
781
781
|
isLike: isModel.value,
|
|
782
782
|
"star-info": starInfo.value,
|
|
@@ -788,12 +788,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
788
788
|
]),
|
|
789
789
|
_: 1
|
|
790
790
|
}),
|
|
791
|
-
!
|
|
791
|
+
!_ctx.hideDescription ? (openBlock(), createElementBlock("div", {
|
|
792
792
|
key: 0,
|
|
793
793
|
innerHTML: unref(highlightWords)("", description.value),
|
|
794
|
-
class: "i-search-projects-card-desc ellipsis
|
|
794
|
+
class: "i-search-projects-card-desc ellipsis"
|
|
795
795
|
}, null, 8, _hoisted_5)) : createCommentVNode("", true),
|
|
796
|
-
|
|
796
|
+
_ctx.info.index === 0 && _ctx.info.is_recommend ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
797
797
|
queryLoading.value ? (openBlock(), createBlock(unref(Skeleton), { key: 0 }, {
|
|
798
798
|
placeholder: withCtx(() => [
|
|
799
799
|
createVNode(unref(Row), {
|
|
@@ -805,7 +805,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
805
805
|
span: rowSpan[unref(widthType)]
|
|
806
806
|
}, {
|
|
807
807
|
default: withCtx(() => [
|
|
808
|
-
createVNode(unref(SkeletonItem), { class: "
|
|
808
|
+
createVNode(unref(SkeletonItem), { class: "i-search-projects-card-skel" })
|
|
809
809
|
]),
|
|
810
810
|
_: 1
|
|
811
811
|
}, 8, ["span"]),
|
|
@@ -813,7 +813,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
813
813
|
span: rowSpan[unref(widthType)]
|
|
814
814
|
}, {
|
|
815
815
|
default: withCtx(() => [
|
|
816
|
-
createVNode(unref(SkeletonItem), { class: "
|
|
816
|
+
createVNode(unref(SkeletonItem), { class: "i-search-projects-card-skel" })
|
|
817
817
|
]),
|
|
818
818
|
_: 1
|
|
819
819
|
}, 8, ["span"]),
|
|
@@ -821,7 +821,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
821
821
|
span: rowSpan[unref(widthType)]
|
|
822
822
|
}, {
|
|
823
823
|
default: withCtx(() => [
|
|
824
|
-
createVNode(unref(SkeletonItem), { class: "
|
|
824
|
+
createVNode(unref(SkeletonItem), { class: "i-search-projects-card-skel" })
|
|
825
825
|
]),
|
|
826
826
|
_: 1
|
|
827
827
|
}, 8, ["span"])
|
|
@@ -831,18 +831,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
831
831
|
]),
|
|
832
832
|
_: 1
|
|
833
833
|
})) : createCommentVNode("", true)
|
|
834
|
-
])) : isModel.value ? (openBlock(), createBlock(
|
|
834
|
+
])) : isModel.value ? (openBlock(), createBlock(ModelCardFooter, {
|
|
835
835
|
key: 2,
|
|
836
|
-
repoInfo:
|
|
836
|
+
repoInfo: _ctx.info
|
|
837
837
|
}, null, 8, ["repoInfo"])) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
838
|
-
!
|
|
838
|
+
!_ctx.hideFooter ? (openBlock(), createBlock(RepoCardFooter, {
|
|
839
839
|
key: 0,
|
|
840
|
-
hideTopicTags:
|
|
840
|
+
hideTopicTags: _ctx.hideTopicTags,
|
|
841
841
|
hideStarCount: "",
|
|
842
842
|
tagInfo: tagInfo.value,
|
|
843
|
-
repoInfo:
|
|
843
|
+
repoInfo: _ctx.info,
|
|
844
844
|
searchCard: "",
|
|
845
|
-
class: "i-search-projects-card-bottom
|
|
845
|
+
class: "i-search-projects-card-bottom",
|
|
846
846
|
onTopicClick: handleTopicClick
|
|
847
847
|
}, null, 8, ["hideTopicTags", "tagInfo", "repoInfo"])) : createCommentVNode("", true)
|
|
848
848
|
], 64))
|
|
@@ -8,7 +8,7 @@ import { Message } from "vue-devui-lal/message";
|
|
|
8
8
|
import "vue-devui-lal/message/style.css";
|
|
9
9
|
import { FixedOverlay } from "vue-devui-lal/overlay";
|
|
10
10
|
import "vue-devui-lal/overlay/style.css";
|
|
11
|
-
import { a as i18n, k as usePageResize, z as isZh, _ as _export_sfc } from "./index-
|
|
11
|
+
import { a as i18n, k as usePageResize, z as isZh, _ as _export_sfc } from "./index-NfMFRNgz.js";
|
|
12
12
|
const _YunpianCaptchaManager = class _YunpianCaptchaManager {
|
|
13
13
|
// eslint-disable-next-line no-useless-constructor
|
|
14
14
|
constructor() {
|