vue-layout-gitcode 1.12.15-beta.52 → 1.12.15-beta.53
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-CInD_uyR.js → GloabarSearch-BQ-rySNi.js} +5 -5
- package/{MenuItem-BP1Zpc0Z.js → MenuItem-DS0ThOdK.js} +2 -2
- package/{ProjectMenuList-BphF9hcW.js → ProjectMenuList-Fs46UOeM.js} +11 -11
- package/{ProjectMenuListV2-BR3K5AVm.js → ProjectMenuListV2-KoHJljxZ.js} +4 -4
- package/{ProjectSearch-Da-Kgn71.js → ProjectSearch-Cmh0TAzF.js} +2 -2
- package/{SearchHistoryList-C0xWDI8v.js → SearchHistoryList-Bn2Fo_ma.js} +6 -6
- package/{SearchRecommed-BdlBemKR.js → SearchRecommed-CPgpZb1h.js} +4 -5
- package/{SearchScopeList-sC0t1HgC.js → SearchScopeList-DicYYBTI.js} +3 -3
- package/{UserSearch-QBLnfBpF.js → UserSearch-CXHigWlM.js} +2 -2
- package/{index-Bt39i4Am.js → index-CNS_IHBq.js} +2 -2
- package/{index-D64spUeB.js → index-CNwxTlYz.js} +2021 -1342
- package/{index-mAml0m-2.js → index-Cd70cgkB.js} +5 -6
- package/index.js +18 -18
- package/{notice-7F251gFl.js → notice-CdXRJcwU.js} +11 -13
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-DpM_3DS5.js → transWebUrl-BXm7XMOP.js} +1 -1
- package/{useReportRepo-xVOov9r9.js → useReportRepo-PsNbZstD.js} +47 -50
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, toDisplayString, unref,
|
|
2
|
-
import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource,
|
|
3
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
1
|
+
import { defineComponent, toDisplayString, unref, useModel, ref, watch, openBlock, createElementBlock, createVNode, normalizeClass, withDirectives, createElementVNode, vShow, mergeModels, inject, withModifiers, createBlock, Fragment, computed, normalizeStyle, createCommentVNode, createTextVNode, renderList, withCtx, reactive, onMounted, watchEffect } from "vue";
|
|
2
|
+
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, o as _sfc_main$b, p as isIncubationRepo, q as highlightWords, t as transformUrl, w as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, x as LANG_KEY } from "./index-CNwxTlYz.js";
|
|
3
|
+
import { t as transWebUrl } from "./transWebUrl-BXm7XMOP.js";
|
|
4
4
|
import { useRouter } from "vue-router";
|
|
5
5
|
import { Row, Col } from "vue-devui-lal/grid";
|
|
6
6
|
import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
|
|
@@ -19,7 +19,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
19
19
|
},
|
|
20
20
|
setup(__props) {
|
|
21
21
|
return (_ctx, _cache) => {
|
|
22
|
-
return toDisplayString(unref(transferNumber)({ number:
|
|
22
|
+
return toDisplayString(unref(transferNumber)({ number: __props.number, fixed: __props.fixed, byte: __props.byte, gt100: __props.gt100 }));
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
});
|
|
@@ -157,7 +157,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
157
157
|
}]),
|
|
158
158
|
onClick: withModifiers(handleStar, ["stop", "prevent"])
|
|
159
159
|
}, [
|
|
160
|
-
|
|
160
|
+
__props.isLike ? (openBlock(), createBlock(Like, {
|
|
161
161
|
key: 0,
|
|
162
162
|
class: "i-star-tag__icon-mr",
|
|
163
163
|
modelValue: starred.value,
|
|
@@ -211,7 +211,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
211
211
|
}),
|
|
212
212
|
createElementVNode("span", null, [
|
|
213
213
|
createVNode(_sfc_main$a, {
|
|
214
|
-
number:
|
|
214
|
+
number: __props.count || 0
|
|
215
215
|
}, null, 8, ["number"])
|
|
216
216
|
])
|
|
217
217
|
]);
|
|
@@ -273,9 +273,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
273
273
|
color: "var(--theme-home-card-color-placeholder)",
|
|
274
274
|
size: "14"
|
|
275
275
|
}),
|
|
276
|
-
!
|
|
276
|
+
!__props.hideText ? (openBlock(), createElementBlock("span", _hoisted_2$4, toDisplayString(unref($t)("gitCodeLayout.components.repo.today")), 1)) : createCommentVNode("", true),
|
|
277
277
|
createVNode(_sfc_main$a, {
|
|
278
|
-
number:
|
|
278
|
+
number: __props.starCountOne || 0
|
|
279
279
|
}, null, 8, ["number"])
|
|
280
280
|
]);
|
|
281
281
|
};
|
|
@@ -306,9 +306,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
306
306
|
size: "14"
|
|
307
307
|
}),
|
|
308
308
|
createElementVNode("span", _hoisted_2$3, [
|
|
309
|
-
_cache[0] || (_cache[0] = createTextVNode("Star ")),
|
|
309
|
+
_cache[0] || (_cache[0] = createTextVNode("Star ", -1)),
|
|
310
310
|
createVNode(_sfc_main$a, {
|
|
311
|
-
number:
|
|
311
|
+
number: __props.count || 0,
|
|
312
312
|
gt100: true
|
|
313
313
|
}, null, 8, ["number"])
|
|
314
314
|
])
|
|
@@ -358,32 +358,32 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
358
358
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
359
359
|
createElementVNode("div", null, [
|
|
360
360
|
createElementVNode("div", _hoisted_1$3, [
|
|
361
|
-
|
|
361
|
+
__props.tagInfo ? (openBlock(), createBlock(LanguageTag, {
|
|
362
362
|
key: 0,
|
|
363
|
-
"tag-info":
|
|
363
|
+
"tag-info": __props.tagInfo
|
|
364
364
|
}, null, 8, ["tag-info"])) : createCommentVNode("", true),
|
|
365
|
-
!
|
|
365
|
+
!__props.hideStarCount ? (openBlock(), createBlock(StarCountOne, {
|
|
366
366
|
key: 1,
|
|
367
367
|
hideText: "",
|
|
368
|
-
starCountOne:
|
|
368
|
+
starCountOne: __props.repoInfo.star_count
|
|
369
369
|
}, null, 8, ["starCountOne"])) : createCommentVNode("", true),
|
|
370
|
-
|
|
370
|
+
__props.repoInfo.forks_count ? (openBlock(), createBlock(ForkTag, {
|
|
371
371
|
key: 2,
|
|
372
|
-
count:
|
|
372
|
+
count: __props.repoInfo.forks_count
|
|
373
373
|
}, null, 8, ["count"])) : createCommentVNode("", true),
|
|
374
374
|
showUpdateTimeDot.value ? (openBlock(), createElementBlock("div", _hoisted_2$2)) : createCommentVNode("", true),
|
|
375
|
-
!
|
|
376
|
-
!
|
|
375
|
+
!__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),
|
|
376
|
+
!__props.hideStarIncrease && __props.repoInfo.star_count_one ? (openBlock(), createBlock(StarCountOne, {
|
|
377
377
|
key: 5,
|
|
378
|
-
starCountOne:
|
|
378
|
+
starCountOne: __props.repoInfo.star_count_one
|
|
379
379
|
}, null, 8, ["starCountOne"])) : createCommentVNode("", true),
|
|
380
|
-
|
|
380
|
+
__props.repoInfo.is_gh_mirrors ? (openBlock(), createBlock(GithubStarNum, {
|
|
381
381
|
key: 6,
|
|
382
|
-
count:
|
|
382
|
+
count: __props.repoInfo.import_star_count
|
|
383
383
|
}, null, 8, ["count"])) : createCommentVNode("", true)
|
|
384
384
|
])
|
|
385
385
|
]),
|
|
386
|
-
!
|
|
386
|
+
!__props.hideTopicTags && topicNames.value.length && __props.searchCard ? (openBlock(), createElementBlock("div", {
|
|
387
387
|
key: 0,
|
|
388
388
|
class: "topic-tags",
|
|
389
389
|
ref_key: "topicTagsRef",
|
|
@@ -450,8 +450,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
450
450
|
default: withCtx(() => [
|
|
451
451
|
_cache[0] || (_cache[0] = createElementVNode("div", { class: "new-tag" }, "New", -1))
|
|
452
452
|
]),
|
|
453
|
-
_: 1
|
|
454
|
-
__: [0]
|
|
453
|
+
_: 1
|
|
455
454
|
})) : createCommentVNode("", true);
|
|
456
455
|
};
|
|
457
456
|
}
|
|
@@ -566,7 +565,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
566
565
|
emits("report", "starReport");
|
|
567
566
|
};
|
|
568
567
|
const rowSpan = reactive({ xxl: 8, xl: 12, md: 12, lg: 24, sm: 24 });
|
|
569
|
-
const repoIcon = { repo: "gt-line-repositories", model: "gt-
|
|
568
|
+
const repoIcon = { repo: "gt-line-repositories", model: "gt-line-line-Models", dataset: "gt-line-Datasets" };
|
|
570
569
|
const props = __props;
|
|
571
570
|
console.log("i-search-projects-card", props.info, props.cardType);
|
|
572
571
|
const iconName = computed(() => {
|
|
@@ -635,7 +634,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
635
634
|
});
|
|
636
635
|
return (_ctx, _cache) => {
|
|
637
636
|
return openBlock(), createElementBlock("a", {
|
|
638
|
-
class: normalizeClass(["i-search-projects-card", { noborder:
|
|
637
|
+
class: normalizeClass(["i-search-projects-card", { noborder: __props.noborder, "full-hover": __props.hover }]),
|
|
639
638
|
onClick: handleClick
|
|
640
639
|
}, [
|
|
641
640
|
createVNode(unref(Row), { class: "i-search-projects-card-title" }, {
|
|
@@ -649,45 +648,43 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
649
648
|
return [
|
|
650
649
|
createVNode(GIcon, {
|
|
651
650
|
name: iconName.value,
|
|
652
|
-
class: normalizeClass({ "align-middle":
|
|
651
|
+
class: normalizeClass({ "align-middle": __props.info.is_gh_mirrors }),
|
|
653
652
|
color: "var(--theme-placeholder)"
|
|
654
653
|
}, null, 8, ["name", "class"]),
|
|
655
654
|
createElementVNode("span", {
|
|
656
655
|
class: "repo-title",
|
|
657
656
|
innerHTML: preHandWord()
|
|
658
657
|
}, null, 8, _hoisted_1),
|
|
659
|
-
|
|
660
|
-
unref(isGstarRepo)(
|
|
658
|
+
__props.info.show_recommend_icon ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref($t)("gitCodeLayout.search.recommendTag")), 1)) : createCommentVNode("", true),
|
|
659
|
+
unref(isGstarRepo)(__props.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
661
660
|
createVNode(_sfc_main$b, {
|
|
662
661
|
origin: "repo",
|
|
663
662
|
icon: "",
|
|
664
663
|
type: "gstar",
|
|
665
664
|
message: `G-Star ${unref($t)("gitCodeLayout.GStar.project.graduation")}`
|
|
666
665
|
}, {
|
|
667
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
668
|
-
createTextVNode("G-Star ")
|
|
669
|
-
])),
|
|
670
|
-
_: 1
|
|
671
|
-
__: [0]
|
|
666
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
667
|
+
createTextVNode("G-Star ", -1)
|
|
668
|
+
])]),
|
|
669
|
+
_: 1
|
|
672
670
|
}, 8, ["message"])
|
|
673
671
|
])) : createCommentVNode("", true),
|
|
674
|
-
unref(isIncubationRepo)(
|
|
672
|
+
unref(isIncubationRepo)(__props.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
675
673
|
createVNode(_sfc_main$b, {
|
|
676
674
|
origin: "repo",
|
|
677
675
|
icon: "",
|
|
678
676
|
type: "incubation",
|
|
679
677
|
message: `G-Star ${unref($t)("gitCodeLayout.GStar.project.incubation")}`
|
|
680
678
|
}, {
|
|
681
|
-
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
682
|
-
createTextVNode(" G-Star ")
|
|
683
|
-
])),
|
|
684
|
-
_: 1
|
|
685
|
-
__: [1]
|
|
679
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
680
|
+
createTextVNode(" G-Star ", -1)
|
|
681
|
+
])]),
|
|
682
|
+
_: 1
|
|
686
683
|
}, 8, ["message"])
|
|
687
684
|
])) : createCommentVNode("", true),
|
|
688
685
|
createVNode(NewTag, {
|
|
689
|
-
repoType:
|
|
690
|
-
isNew: ((_a =
|
|
686
|
+
repoType: __props.cardType,
|
|
687
|
+
isNew: ((_a = __props.info) == null ? void 0 : _a.is_new) || false
|
|
691
688
|
}, null, 8, ["repoType", "isNew"])
|
|
692
689
|
];
|
|
693
690
|
}),
|
|
@@ -695,7 +692,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
695
692
|
}),
|
|
696
693
|
createVNode(unref(Col), { flex: "none" }, {
|
|
697
694
|
default: withCtx(() => [
|
|
698
|
-
!
|
|
695
|
+
!__props.hideStarBtn ? (openBlock(), createBlock(StarTag, {
|
|
699
696
|
key: 0,
|
|
700
697
|
isLike: isModel.value,
|
|
701
698
|
"star-info": starInfo.value,
|
|
@@ -707,12 +704,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
707
704
|
]),
|
|
708
705
|
_: 1
|
|
709
706
|
}),
|
|
710
|
-
!
|
|
707
|
+
!__props.hideDescription ? (openBlock(), createElementBlock("div", {
|
|
711
708
|
key: 0,
|
|
712
709
|
innerHTML: unref(highlightWords)("", description.value),
|
|
713
710
|
class: "i-search-projects-card-desc ellipsis"
|
|
714
711
|
}, null, 8, _hoisted_5)) : createCommentVNode("", true),
|
|
715
|
-
|
|
712
|
+
__props.info.index === 0 && __props.info.is_recommend ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
716
713
|
queryLoading.value ? (openBlock(), createBlock(unref(Skeleton), { key: 0 }, {
|
|
717
714
|
placeholder: withCtx(() => [
|
|
718
715
|
createVNode(unref(Row), {
|
|
@@ -750,16 +747,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
750
747
|
]),
|
|
751
748
|
_: 1
|
|
752
749
|
})) : createCommentVNode("", true)
|
|
753
|
-
])) : isModel.value && !
|
|
750
|
+
])) : isModel.value && !__props.hideFooter ? (openBlock(), createBlock(ModelCardFooter, {
|
|
754
751
|
key: 2,
|
|
755
|
-
repoInfo:
|
|
752
|
+
repoInfo: __props.info
|
|
756
753
|
}, null, 8, ["repoInfo"])) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
757
|
-
!
|
|
754
|
+
!__props.hideFooter ? (openBlock(), createBlock(RepoCardFooter, {
|
|
758
755
|
key: 0,
|
|
759
|
-
hideTopicTags:
|
|
756
|
+
hideTopicTags: __props.hideTopicTags,
|
|
760
757
|
hideStarCount: "",
|
|
761
758
|
tagInfo: tagInfo.value,
|
|
762
|
-
repoInfo:
|
|
759
|
+
repoInfo: __props.info,
|
|
763
760
|
searchCard: "",
|
|
764
761
|
class: "i-search-projects-card-bottom",
|
|
765
762
|
onTopicClick: handleTopicClick
|