vue-layout-gitcode 1.12.4-beta.1 → 1.12.5
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-tjtKRn4s.js → GloabarSearch-CukOAgTo.js} +8 -8
- package/{dist/MenuItem-CoaSUCFy.js → MenuItem-06Rq855P.js} +5 -5
- package/{dist/ProjectMenuList-BAXqNRVP.js → ProjectMenuList-xIdLvmjq.js} +15 -15
- package/{dist/ProjectMenuListV2-BGVRt_X4.js → ProjectMenuListV2-Bu41GGHt.js} +7 -7
- package/{dist/ProjectSearch-D5xGsnbH.js → ProjectSearch-CIi3JH1h.js} +5 -5
- package/{dist/SearchHistoryList-68-SB0cR.js → SearchHistoryList-C2mMqVdb.js} +12 -12
- package/{dist/SearchPrefixTag-DqJBn6SG.js → SearchPrefixTag-CeGsuTXE.js} +5 -5
- package/{dist/SearchRecommed-CPRTlK1B.js → SearchRecommed-99KHpk88.js} +6 -6
- package/{dist/SearchScopeList-BaUjDyX8.js → SearchScopeList-BpRbqorU.js} +7 -7
- package/{dist/UserSearch-Q_WWRGr-.js → UserSearch-FHKuwbwr.js} +5 -5
- package/{dist/index-BcnUJLVC.js → index-BiTt6a2X.js} +1192 -1221
- package/{dist/index-D5DgBNFl.js → index-DRL3Ps-Z.js} +3 -3
- package/{dist/index-DYTgrwrQ.js → index-QAd-FUxM.js} +69 -69
- package/{dist/index-ZQgRQcS2.js → index-TymWDtBm.js} +1 -1
- package/index.d.ts +703 -0
- package/{dist/index.js → index.js} +1 -1
- package/{dist/notice-BRkcgE_x.js → notice-DRwXAViT.js} +12 -13
- package/package.json +11 -73
- package/style.css +1 -0
- package/{dist/transWebUrl-BLQZLXla.js → transWebUrl-BqYE_WVQ.js} +1 -1
- package/README.md +0 -533
- package/dist/index.d.ts +0 -113
- package/dist/package.json +0 -13
- package/dist/style.css +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, onMounted, nextTick, onUnmounted, openBlock, createBlock, unref, withCtx, createElementVNode } from "vue";
|
|
2
|
-
import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-
|
|
2
|
+
import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-BiTt6a2X.js";
|
|
3
3
|
import { FixedOverlay } from "vue-devui-lal/overlay";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
const TARGET_TEXT = "Click in order:";
|
|
@@ -105,9 +105,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
105
105
|
});
|
|
106
106
|
return (_ctx, _cache) => {
|
|
107
107
|
return openBlock(), createBlock(unref(FixedOverlay), { class: "captcha-overlay-slid" }, {
|
|
108
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
108
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
109
109
|
createElementVNode("div", { id: "captcha-box" }, null, -1)
|
|
110
|
-
])),
|
|
110
|
+
])]),
|
|
111
111
|
_: 1
|
|
112
112
|
});
|
|
113
113
|
};
|
|
@@ -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-BiTt6a2X.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-BqYE_WVQ.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: __props.number, fixed: __props.fixed, byte: __props.byte, gt100: __props.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: "relative flex" };
|
|
95
|
+
const _hoisted_2$6 = { class: "absolute w-full h-full left-0 top-0" };
|
|
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({ "!text-red-500": 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: "!text-red-500",
|
|
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: "mr-[4px]",
|
|
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 hover:bg-[var(--theme-btn-default-hover)]", {
|
|
224
224
|
"i-star-tag__active": starred.value
|
|
225
225
|
}]),
|
|
226
226
|
onClick: withModifiers(handleStar, ["stop", "prevent"])
|
|
227
227
|
}, [
|
|
228
|
-
|
|
228
|
+
__props.isLike ? (openBlock(), createBlock(Like, {
|
|
229
229
|
key: 0,
|
|
230
|
-
class: "
|
|
230
|
+
class: "mr-[4px]",
|
|
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: "mr-[4px]",
|
|
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: __props.count || 0
|
|
283
283
|
}, null, 8, ["number"])
|
|
284
284
|
])
|
|
285
285
|
]);
|
|
@@ -324,6 +324,7 @@ 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]",
|
|
327
328
|
style: normalizeStyle({ background: unref(tagColor) })
|
|
328
329
|
}, null, 4),
|
|
329
330
|
createTextVNode(toDisplayString(unref(languageTag)), 1)
|
|
@@ -350,9 +351,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
350
351
|
color: "var(--theme-home-card-color-placeholder)",
|
|
351
352
|
size: "14"
|
|
352
353
|
}),
|
|
353
|
-
!
|
|
354
|
+
!__props.hideText ? (openBlock(), createElementBlock("span", _hoisted_2$4, toDisplayString(unref($t)("gitCodeLayout.components.repo.today")), 1)) : createCommentVNode("", true),
|
|
354
355
|
createVNode(_sfc_main$a, {
|
|
355
|
-
number:
|
|
356
|
+
number: __props.starCountOne || 0
|
|
356
357
|
}, null, 8, ["number"])
|
|
357
358
|
]);
|
|
358
359
|
};
|
|
@@ -383,9 +384,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
383
384
|
size: "14"
|
|
384
385
|
}),
|
|
385
386
|
createElementVNode("span", _hoisted_2$3, [
|
|
386
|
-
_cache[0] || (_cache[0] = createTextVNode("Star ")),
|
|
387
|
+
_cache[0] || (_cache[0] = createTextVNode("Star ", -1)),
|
|
387
388
|
createVNode(_sfc_main$a, {
|
|
388
|
-
number:
|
|
389
|
+
number: __props.count || 0,
|
|
389
390
|
gt100: true
|
|
390
391
|
}, null, 8, ["number"])
|
|
391
392
|
])
|
|
@@ -394,7 +395,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
394
395
|
}
|
|
395
396
|
});
|
|
396
397
|
const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
397
|
-
const _hoisted_1$3 = { class: "repo-card-footer" };
|
|
398
|
+
const _hoisted_1$3 = { class: "repo-card-footer mt-[4px]" };
|
|
398
399
|
const _hoisted_2$2 = {
|
|
399
400
|
key: 3,
|
|
400
401
|
class: "line-separator"
|
|
@@ -445,32 +446,32 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
445
446
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
446
447
|
createElementVNode("div", null, [
|
|
447
448
|
createElementVNode("div", _hoisted_1$3, [
|
|
448
|
-
|
|
449
|
+
__props.tagInfo ? (openBlock(), createBlock(LanguageTag, {
|
|
449
450
|
key: 0,
|
|
450
|
-
"tag-info":
|
|
451
|
+
"tag-info": __props.tagInfo
|
|
451
452
|
}, null, 8, ["tag-info"])) : createCommentVNode("", true),
|
|
452
|
-
!
|
|
453
|
+
!__props.hideStarCount ? (openBlock(), createBlock(StarCountOne, {
|
|
453
454
|
key: 1,
|
|
454
455
|
hideText: "",
|
|
455
|
-
starCountOne:
|
|
456
|
+
starCountOne: __props.repoInfo.star_count
|
|
456
457
|
}, null, 8, ["starCountOne"])) : createCommentVNode("", true),
|
|
457
|
-
|
|
458
|
+
__props.repoInfo.forks_count ? (openBlock(), createBlock(ForkTag, {
|
|
458
459
|
key: 2,
|
|
459
|
-
count:
|
|
460
|
+
count: __props.repoInfo.forks_count
|
|
460
461
|
}, null, 8, ["count"])) : createCommentVNode("", true),
|
|
461
462
|
showUpdateTimeDot.value ? (openBlock(), createElementBlock("div", _hoisted_2$2)) : createCommentVNode("", true),
|
|
462
|
-
!
|
|
463
|
-
!
|
|
463
|
+
!__props.hideUpdateTime ? (openBlock(), createElementBlock("div", _hoisted_3$2, toDisplayString(unref(formatTimeFromNow)((__props.searchCard ? __props.repoInfo.last_repository_updated_at : __props.repoInfo.last_activity_at) || __props.repoInfo.last_activity_at)), 1)) : createCommentVNode("", true),
|
|
464
|
+
!__props.hideStarIncrease && __props.repoInfo.star_count_one ? (openBlock(), createBlock(StarCountOne, {
|
|
464
465
|
key: 5,
|
|
465
|
-
starCountOne:
|
|
466
|
+
starCountOne: __props.repoInfo.star_count_one
|
|
466
467
|
}, null, 8, ["starCountOne"])) : createCommentVNode("", true),
|
|
467
|
-
|
|
468
|
+
__props.repoInfo.is_gh_mirrors ? (openBlock(), createBlock(GithubStarNum, {
|
|
468
469
|
key: 6,
|
|
469
|
-
count:
|
|
470
|
+
count: __props.repoInfo.import_star_count
|
|
470
471
|
}, null, 8, ["count"])) : createCommentVNode("", true)
|
|
471
472
|
])
|
|
472
473
|
]),
|
|
473
|
-
!
|
|
474
|
+
!__props.hideTopicTags && topicNames.value.length && __props.searchCard ? (openBlock(), createElementBlock("div", {
|
|
474
475
|
key: 0,
|
|
475
476
|
class: "topic-tags",
|
|
476
477
|
ref_key: "topicTagsRef",
|
|
@@ -532,7 +533,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
532
533
|
createElementVNode("span", _hoisted_1$2, toDisplayString(tagTipsText.value), 1)
|
|
533
534
|
]),
|
|
534
535
|
default: withCtx(() => [
|
|
535
|
-
_cache[0] || (_cache[0] = createElementVNode("div", { class: "new-tag" }, "New", -1))
|
|
536
|
+
_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))
|
|
536
537
|
]),
|
|
537
538
|
_: 1
|
|
538
539
|
})) : createCommentVNode("", true);
|
|
@@ -540,17 +541,17 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
540
541
|
}
|
|
541
542
|
});
|
|
542
543
|
const NewTag = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
543
|
-
const _hoisted_1$1 = { class: "model-card-footer" };
|
|
544
|
+
const _hoisted_1$1 = { class: "model-card-footer h-[22px] mt-[4px] flex items-center overflow-hidden whitespace-nowrap text-[14px] leading-[14px] text-[var(--theme-release-card-text-color)]" };
|
|
544
545
|
const _hoisted_2$1 = {
|
|
545
546
|
key: 1,
|
|
546
|
-
class: "ellipsis max-150
|
|
547
|
+
class: "ellipsis max-150 ml-[6px]"
|
|
547
548
|
};
|
|
548
|
-
const _hoisted_3$1 = { class: "
|
|
549
|
-
const _hoisted_4$1 = { class: "
|
|
550
|
-
const _hoisted_5$1 = { class: "
|
|
549
|
+
const _hoisted_3$1 = { class: "ml-[6px]" };
|
|
550
|
+
const _hoisted_4$1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis" };
|
|
551
|
+
const _hoisted_5$1 = { class: "ml-[6px]" };
|
|
551
552
|
const _hoisted_6$1 = {
|
|
552
553
|
key: 2,
|
|
553
|
-
class: "
|
|
554
|
+
class: "w-[4px] h-[4px] ml-[6px] mr-[6px] rounded-[2px] bg-[var(--theme-placeholder)]"
|
|
554
555
|
};
|
|
555
556
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
556
557
|
__name: "ModelCardFooter",
|
|
@@ -573,7 +574,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
573
574
|
size: "12px"
|
|
574
575
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
575
576
|
projectData.value.task[0].name ? (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(projectData.value.task[0].name), 1)) : createCommentVNode("", true),
|
|
576
|
-
_cache[0] || (_cache[0] = createElementVNode("div", { class: "
|
|
577
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "w-[4px] h-[4px] ml-[6px] mr-[6px] rounded-[2px] bg-[var(--theme-placeholder)]" }, null, -1))
|
|
577
578
|
], 64)) : createCommentVNode("", true),
|
|
578
579
|
projectData.value.model_param_size ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
579
580
|
createVNode(GIcon, {
|
|
@@ -582,10 +583,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
582
583
|
color: "var(--theme-release-card-text-color)"
|
|
583
584
|
}),
|
|
584
585
|
createElementVNode("span", _hoisted_3$1, toDisplayString(projectData.value.model_param_size), 1),
|
|
585
|
-
_cache[1] || (_cache[1] = createElementVNode("div", { class: "
|
|
586
|
+
_cache[1] || (_cache[1] = createElementVNode("div", { class: "w-[4px] h-[4px] ml-[6px] mr-[6px] rounded-[2px] bg-[var(--theme-placeholder)]" }, null, -1))
|
|
586
587
|
], 64)) : createCommentVNode("", true),
|
|
587
588
|
createElementVNode("span", _hoisted_4$1, toDisplayString(unref(formatTimeFromNow)(projectData.value.updated_at)), 1),
|
|
588
|
-
_cache[2] || (_cache[2] = createElementVNode("div", { class: "
|
|
589
|
+
_cache[2] || (_cache[2] = createElementVNode("div", { class: "w-[4px] h-[4px] ml-[6px] mr-[6px] rounded-[2px] bg-[var(--theme-placeholder)]" }, null, -1)),
|
|
589
590
|
createVNode(GIcon, {
|
|
590
591
|
name: "gt-line-upload",
|
|
591
592
|
size: "14px",
|
|
@@ -607,11 +608,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
607
608
|
};
|
|
608
609
|
}
|
|
609
610
|
});
|
|
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 ml-[8px]"
|
|
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", { noborder:
|
|
721
|
+
class: normalizeClass(["i-search-projects-card cursor-pointer", { noborder: __props.noborder, "full-hover": __props.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 flex items-center gap-[8px]",
|
|
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": __props.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
|
+
__props.info.show_recommend_icon ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref($t)("gitCodeLayout.search.recommendTag")), 1)) : createCommentVNode("", true),
|
|
743
|
+
unref(isGstarRepo)(__props.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(() => _cache[0] || (_cache[0] = [
|
|
751
|
-
createTextVNode("G-Star ")
|
|
752
|
-
])),
|
|
750
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
751
|
+
createTextVNode("G-Star ", -1)
|
|
752
|
+
])]),
|
|
753
753
|
_: 1
|
|
754
754
|
}, 8, ["message"])
|
|
755
755
|
])) : createCommentVNode("", true),
|
|
756
|
-
unref(isIncubationRepo)(
|
|
756
|
+
unref(isIncubationRepo)(__props.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(() => _cache[1] || (_cache[1] = [
|
|
764
|
-
createTextVNode(" G-Star ")
|
|
765
|
-
])),
|
|
763
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
764
|
+
createTextVNode(" G-Star ", -1)
|
|
765
|
+
])]),
|
|
766
766
|
_: 1
|
|
767
767
|
}, 8, ["message"])
|
|
768
768
|
])) : createCommentVNode("", true),
|
|
769
769
|
createVNode(NewTag, {
|
|
770
|
-
repoType:
|
|
771
|
-
isNew: ((_a =
|
|
770
|
+
repoType: __props.cardType,
|
|
771
|
+
isNew: ((_a = __props.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
|
+
!__props.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
|
+
!__props.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 mt-[8px]"
|
|
795
795
|
}, null, 8, _hoisted_5)) : createCommentVNode("", true),
|
|
796
|
-
|
|
796
|
+
__props.info.index === 0 && __props.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: "h-[110px] mt-[16px]" })
|
|
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: "h-[110px] mt-[16px]" })
|
|
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: "h-[110px] mt-[16px]" })
|
|
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(_sfc_main$1, {
|
|
835
835
|
key: 2,
|
|
836
|
-
repoInfo:
|
|
836
|
+
repoInfo: __props.info
|
|
837
837
|
}, null, 8, ["repoInfo"])) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
838
|
-
!
|
|
838
|
+
!__props.hideFooter ? (openBlock(), createBlock(RepoCardFooter, {
|
|
839
839
|
key: 0,
|
|
840
|
-
hideTopicTags:
|
|
840
|
+
hideTopicTags: __props.hideTopicTags,
|
|
841
841
|
hideStarCount: "",
|
|
842
842
|
tagInfo: tagInfo.value,
|
|
843
|
-
repoInfo:
|
|
843
|
+
repoInfo: __props.info,
|
|
844
844
|
searchCard: "",
|
|
845
|
-
class: "i-search-projects-card-bottom",
|
|
845
|
+
class: "i-search-projects-card-bottom mt-[8px]",
|
|
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-BiTt6a2X.js";
|
|
12
12
|
const _YunpianCaptchaManager = class _YunpianCaptchaManager {
|
|
13
13
|
// eslint-disable-next-line no-useless-constructor
|
|
14
14
|
constructor() {
|