vue-layout-gitcode 1.12.15-beta.51 → 1.12.15-beta.52
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-SZoGWlUT.js → GloabarSearch-CInD_uyR.js} +5 -5
- package/{MenuItem-C-G3-qxt.js → MenuItem-BP1Zpc0Z.js} +2 -2
- package/{ProjectMenuList-yWnBlDRV.js → ProjectMenuList-BphF9hcW.js} +11 -11
- package/{ProjectMenuListV2-BRzVv_AY.js → ProjectMenuListV2-BR3K5AVm.js} +4 -4
- package/{ProjectSearch-DLfgOAqF.js → ProjectSearch-Da-Kgn71.js} +2 -2
- package/{SearchHistoryList-C4097SmS.js → SearchHistoryList-C0xWDI8v.js} +6 -6
- package/{SearchRecommed-yqm_4RV2.js → SearchRecommed-BdlBemKR.js} +5 -4
- package/{SearchScopeList-CgarZQyj.js → SearchScopeList-sC0t1HgC.js} +3 -3
- package/{UserSearch-Ca1xTnjD.js → UserSearch-QBLnfBpF.js} +2 -2
- package/{index-CfDhMVYG.js → index-Bt39i4Am.js} +2 -2
- package/{index-BBdEwjQ0.js → index-D64spUeB.js} +1342 -2021
- package/{index-DM7OarAK.js → index-mAml0m-2.js} +6 -5
- package/index.js +18 -18
- package/{notice-CLIMV9t6.js → notice-7F251gFl.js} +13 -11
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-DlK6GU_m.js → transWebUrl-DpM_3DS5.js} +1 -1
- package/{useReportRepo-DKt0C5mO.js → useReportRepo-xVOov9r9.js} +49 -46
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, toDisplayString, unref, useModel, ref, watch,
|
|
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, mergeModels, useModel, ref, watch, createElementBlock, openBlock, createVNode, withDirectives, normalizeClass, createElementVNode, vShow, inject, withModifiers, createBlock, Fragment, computed, createCommentVNode, normalizeStyle, createTextVNode, renderList, withCtx, reactive, onMounted, watchEffect } from "vue";
|
|
2
|
+
import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, 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-D64spUeB.js";
|
|
3
|
+
import { t as transWebUrl } from "./transWebUrl-DpM_3DS5.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: _ctx.number, fixed: _ctx.fixed, byte: _ctx.byte, gt100: _ctx.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
|
+
_ctx.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: _ctx.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
|
+
!_ctx.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: _ctx.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 ")),
|
|
310
310
|
createVNode(_sfc_main$a, {
|
|
311
|
-
number:
|
|
311
|
+
number: _ctx.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
|
+
_ctx.tagInfo ? (openBlock(), createBlock(LanguageTag, {
|
|
362
362
|
key: 0,
|
|
363
|
-
"tag-info":
|
|
363
|
+
"tag-info": _ctx.tagInfo
|
|
364
364
|
}, null, 8, ["tag-info"])) : createCommentVNode("", true),
|
|
365
|
-
!
|
|
365
|
+
!_ctx.hideStarCount ? (openBlock(), createBlock(StarCountOne, {
|
|
366
366
|
key: 1,
|
|
367
367
|
hideText: "",
|
|
368
|
-
starCountOne:
|
|
368
|
+
starCountOne: _ctx.repoInfo.star_count
|
|
369
369
|
}, null, 8, ["starCountOne"])) : createCommentVNode("", true),
|
|
370
|
-
|
|
370
|
+
_ctx.repoInfo.forks_count ? (openBlock(), createBlock(ForkTag, {
|
|
371
371
|
key: 2,
|
|
372
|
-
count:
|
|
372
|
+
count: _ctx.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
|
+
!_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),
|
|
376
|
+
!_ctx.hideStarIncrease && _ctx.repoInfo.star_count_one ? (openBlock(), createBlock(StarCountOne, {
|
|
377
377
|
key: 5,
|
|
378
|
-
starCountOne:
|
|
378
|
+
starCountOne: _ctx.repoInfo.star_count_one
|
|
379
379
|
}, null, 8, ["starCountOne"])) : createCommentVNode("", true),
|
|
380
|
-
|
|
380
|
+
_ctx.repoInfo.is_gh_mirrors ? (openBlock(), createBlock(GithubStarNum, {
|
|
381
381
|
key: 6,
|
|
382
|
-
count:
|
|
382
|
+
count: _ctx.repoInfo.import_star_count
|
|
383
383
|
}, null, 8, ["count"])) : createCommentVNode("", true)
|
|
384
384
|
])
|
|
385
385
|
]),
|
|
386
|
-
!
|
|
386
|
+
!_ctx.hideTopicTags && topicNames.value.length && _ctx.searchCard ? (openBlock(), createElementBlock("div", {
|
|
387
387
|
key: 0,
|
|
388
388
|
class: "topic-tags",
|
|
389
389
|
ref_key: "topicTagsRef",
|
|
@@ -450,7 +450,8 @@ 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
|
|
453
|
+
_: 1,
|
|
454
|
+
__: [0]
|
|
454
455
|
})) : createCommentVNode("", true);
|
|
455
456
|
};
|
|
456
457
|
}
|
|
@@ -634,7 +635,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
634
635
|
});
|
|
635
636
|
return (_ctx, _cache) => {
|
|
636
637
|
return openBlock(), createElementBlock("a", {
|
|
637
|
-
class: normalizeClass(["i-search-projects-card", { noborder:
|
|
638
|
+
class: normalizeClass(["i-search-projects-card", { noborder: _ctx.noborder, "full-hover": _ctx.hover }]),
|
|
638
639
|
onClick: handleClick
|
|
639
640
|
}, [
|
|
640
641
|
createVNode(unref(Row), { class: "i-search-projects-card-title" }, {
|
|
@@ -648,43 +649,45 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
648
649
|
return [
|
|
649
650
|
createVNode(GIcon, {
|
|
650
651
|
name: iconName.value,
|
|
651
|
-
class: normalizeClass({ "align-middle":
|
|
652
|
+
class: normalizeClass({ "align-middle": _ctx.info.is_gh_mirrors }),
|
|
652
653
|
color: "var(--theme-placeholder)"
|
|
653
654
|
}, null, 8, ["name", "class"]),
|
|
654
655
|
createElementVNode("span", {
|
|
655
656
|
class: "repo-title",
|
|
656
657
|
innerHTML: preHandWord()
|
|
657
658
|
}, null, 8, _hoisted_1),
|
|
658
|
-
|
|
659
|
-
unref(isGstarRepo)(
|
|
659
|
+
_ctx.info.show_recommend_icon ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref($t)("gitCodeLayout.search.recommendTag")), 1)) : createCommentVNode("", true),
|
|
660
|
+
unref(isGstarRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
660
661
|
createVNode(_sfc_main$b, {
|
|
661
662
|
origin: "repo",
|
|
662
663
|
icon: "",
|
|
663
664
|
type: "gstar",
|
|
664
665
|
message: `G-Star ${unref($t)("gitCodeLayout.GStar.project.graduation")}`
|
|
665
666
|
}, {
|
|
666
|
-
default: withCtx(() =>
|
|
667
|
-
createTextVNode("G-Star "
|
|
668
|
-
])
|
|
669
|
-
_: 1
|
|
667
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
668
|
+
createTextVNode("G-Star ")
|
|
669
|
+
])),
|
|
670
|
+
_: 1,
|
|
671
|
+
__: [0]
|
|
670
672
|
}, 8, ["message"])
|
|
671
673
|
])) : createCommentVNode("", true),
|
|
672
|
-
unref(isIncubationRepo)(
|
|
674
|
+
unref(isIncubationRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
673
675
|
createVNode(_sfc_main$b, {
|
|
674
676
|
origin: "repo",
|
|
675
677
|
icon: "",
|
|
676
678
|
type: "incubation",
|
|
677
679
|
message: `G-Star ${unref($t)("gitCodeLayout.GStar.project.incubation")}`
|
|
678
680
|
}, {
|
|
679
|
-
default: withCtx(() =>
|
|
680
|
-
createTextVNode(" G-Star "
|
|
681
|
-
])
|
|
682
|
-
_: 1
|
|
681
|
+
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
682
|
+
createTextVNode(" G-Star ")
|
|
683
|
+
])),
|
|
684
|
+
_: 1,
|
|
685
|
+
__: [1]
|
|
683
686
|
}, 8, ["message"])
|
|
684
687
|
])) : createCommentVNode("", true),
|
|
685
688
|
createVNode(NewTag, {
|
|
686
|
-
repoType:
|
|
687
|
-
isNew: ((_a =
|
|
689
|
+
repoType: _ctx.cardType,
|
|
690
|
+
isNew: ((_a = _ctx.info) == null ? void 0 : _a.is_new) || false
|
|
688
691
|
}, null, 8, ["repoType", "isNew"])
|
|
689
692
|
];
|
|
690
693
|
}),
|
|
@@ -692,7 +695,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
692
695
|
}),
|
|
693
696
|
createVNode(unref(Col), { flex: "none" }, {
|
|
694
697
|
default: withCtx(() => [
|
|
695
|
-
!
|
|
698
|
+
!_ctx.hideStarBtn ? (openBlock(), createBlock(StarTag, {
|
|
696
699
|
key: 0,
|
|
697
700
|
isLike: isModel.value,
|
|
698
701
|
"star-info": starInfo.value,
|
|
@@ -704,12 +707,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
704
707
|
]),
|
|
705
708
|
_: 1
|
|
706
709
|
}),
|
|
707
|
-
!
|
|
710
|
+
!_ctx.hideDescription ? (openBlock(), createElementBlock("div", {
|
|
708
711
|
key: 0,
|
|
709
712
|
innerHTML: unref(highlightWords)("", description.value),
|
|
710
713
|
class: "i-search-projects-card-desc ellipsis"
|
|
711
714
|
}, null, 8, _hoisted_5)) : createCommentVNode("", true),
|
|
712
|
-
|
|
715
|
+
_ctx.info.index === 0 && _ctx.info.is_recommend ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
713
716
|
queryLoading.value ? (openBlock(), createBlock(unref(Skeleton), { key: 0 }, {
|
|
714
717
|
placeholder: withCtx(() => [
|
|
715
718
|
createVNode(unref(Row), {
|
|
@@ -747,16 +750,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
747
750
|
]),
|
|
748
751
|
_: 1
|
|
749
752
|
})) : createCommentVNode("", true)
|
|
750
|
-
])) : isModel.value && !
|
|
753
|
+
])) : isModel.value && !_ctx.hideFooter ? (openBlock(), createBlock(ModelCardFooter, {
|
|
751
754
|
key: 2,
|
|
752
|
-
repoInfo:
|
|
755
|
+
repoInfo: _ctx.info
|
|
753
756
|
}, null, 8, ["repoInfo"])) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
754
|
-
!
|
|
757
|
+
!_ctx.hideFooter ? (openBlock(), createBlock(RepoCardFooter, {
|
|
755
758
|
key: 0,
|
|
756
|
-
hideTopicTags:
|
|
759
|
+
hideTopicTags: _ctx.hideTopicTags,
|
|
757
760
|
hideStarCount: "",
|
|
758
761
|
tagInfo: tagInfo.value,
|
|
759
|
-
repoInfo:
|
|
762
|
+
repoInfo: _ctx.info,
|
|
760
763
|
searchCard: "",
|
|
761
764
|
class: "i-search-projects-card-bottom",
|
|
762
765
|
onTopicClick: handleTopicClick
|