vue-layout-gitcode 1.12.15-beta.2 → 1.12.15-beta.4
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-CehDLm5e.js → GloabarSearch-B0WY0LM0.js} +4 -4
- package/{MenuItem-C3jP0hIF.js → MenuItem-50wS5d0K.js} +2 -2
- package/{ProjectMenuList-CYBu-6UI.js → ProjectMenuList-Dt87wbdD.js} +11 -11
- package/{ProjectMenuListV2-BNO8Oa9f.js → ProjectMenuListV2-01WosZfk.js} +4 -4
- package/{ProjectSearch-DqTXNeuA.js → ProjectSearch-Bz-0eShp.js} +2 -2
- package/{SearchHistoryList-08Q75qyT.js → SearchHistoryList-CayQ_mmg.js} +6 -6
- package/{SearchRecommed-BP1gksCD.js → SearchRecommed-B5qHaSKG.js} +3 -3
- package/{SearchScopeList-jaI05Znk.js → SearchScopeList-BwUgP4-r.js} +3 -3
- package/{UserSearch-p1c5YRt2.js → UserSearch-B-P5V1aZ.js} +2 -2
- package/{index-CtgqGX_c.js → index-BrPuridR.js} +983 -969
- package/{index-Vmx0G7Nd.js → index-CjHihoOG.js} +6 -5
- package/{index-BniudX3d.js → index-CmoNc1hd.js} +2 -2
- package/{index-CY16HldM.js → index-gvYv2gFy.js} +48 -45
- package/index.d.ts +761 -583
- package/index.js +10 -10
- package/{notice-9BqsHOHE.js → notice-BPjjYgjY.js} +13 -11
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-Di5i1eNa.js → transWebUrl-T7vm749H.js} +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, onMounted, nextTick, onUnmounted,
|
|
2
|
-
import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-
|
|
1
|
+
import { defineComponent, onMounted, nextTick, onUnmounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
|
|
2
|
+
import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-BrPuridR.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,10 +105,11 @@ 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(() =>
|
|
108
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
109
109
|
createElementVNode("div", { id: "captcha-box" }, null, -1)
|
|
110
|
-
])
|
|
111
|
-
_: 1
|
|
110
|
+
])),
|
|
111
|
+
_: 1,
|
|
112
|
+
__: [0]
|
|
112
113
|
});
|
|
113
114
|
};
|
|
114
115
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { defineComponent, ref, onMounted, onBeforeUnmount,
|
|
4
|
+
import { defineComponent, ref, onMounted, onBeforeUnmount, createBlock, openBlock, unref, withCtx, createElementVNode, withDirectives, createVNode, vShow, nextTick } from "vue";
|
|
5
5
|
import { Button } from "vue-devui-lal/button";
|
|
6
6
|
import "vue-devui-lal/button/style.css";
|
|
7
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-BrPuridR.js";
|
|
12
12
|
const _YunpianCaptchaManager = class _YunpianCaptchaManager {
|
|
13
13
|
// eslint-disable-next-line no-useless-constructor
|
|
14
14
|
constructor() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref, watchEffect, defineComponent, toDisplayString, unref, useModel, watch,
|
|
1
|
+
import { ref, watchEffect, defineComponent, toDisplayString, unref, mergeModels, useModel, watch, createElementBlock, openBlock, createVNode, withDirectives, normalizeClass, createElementVNode, vShow, inject, withModifiers, createBlock, Fragment, computed, createCommentVNode, normalizeStyle, 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,
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
3
|
+
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, 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-BrPuridR.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-T7vm749H.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,7 +87,7 @@ 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
|
});
|
|
@@ -225,7 +225,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
225
225
|
}]),
|
|
226
226
|
onClick: withModifiers(handleStar, ["stop", "prevent"])
|
|
227
227
|
}, [
|
|
228
|
-
|
|
228
|
+
_ctx.isLike ? (openBlock(), createBlock(Like, {
|
|
229
229
|
key: 0,
|
|
230
230
|
class: "i-star-tag__icon-mr",
|
|
231
231
|
modelValue: starred.value,
|
|
@@ -279,7 +279,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
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
|
]);
|
|
@@ -350,9 +350,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
350
350
|
color: "var(--theme-home-card-color-placeholder)",
|
|
351
351
|
size: "14"
|
|
352
352
|
}),
|
|
353
|
-
!
|
|
353
|
+
!_ctx.hideText ? (openBlock(), createElementBlock("span", _hoisted_2$4, toDisplayString(unref($t)("gitCodeLayout.components.repo.today")), 1)) : createCommentVNode("", true),
|
|
354
354
|
createVNode(_sfc_main$a, {
|
|
355
|
-
number:
|
|
355
|
+
number: _ctx.starCountOne || 0
|
|
356
356
|
}, null, 8, ["number"])
|
|
357
357
|
]);
|
|
358
358
|
};
|
|
@@ -383,9 +383,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
383
383
|
size: "14"
|
|
384
384
|
}),
|
|
385
385
|
createElementVNode("span", _hoisted_2$3, [
|
|
386
|
-
_cache[0] || (_cache[0] = createTextVNode("Star "
|
|
386
|
+
_cache[0] || (_cache[0] = createTextVNode("Star ")),
|
|
387
387
|
createVNode(_sfc_main$a, {
|
|
388
|
-
number:
|
|
388
|
+
number: _ctx.count || 0,
|
|
389
389
|
gt100: true
|
|
390
390
|
}, null, 8, ["number"])
|
|
391
391
|
])
|
|
@@ -445,32 +445,32 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
445
445
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
446
446
|
createElementVNode("div", null, [
|
|
447
447
|
createElementVNode("div", _hoisted_1$3, [
|
|
448
|
-
|
|
448
|
+
_ctx.tagInfo ? (openBlock(), createBlock(LanguageTag, {
|
|
449
449
|
key: 0,
|
|
450
|
-
"tag-info":
|
|
450
|
+
"tag-info": _ctx.tagInfo
|
|
451
451
|
}, null, 8, ["tag-info"])) : createCommentVNode("", true),
|
|
452
|
-
!
|
|
452
|
+
!_ctx.hideStarCount ? (openBlock(), createBlock(StarCountOne, {
|
|
453
453
|
key: 1,
|
|
454
454
|
hideText: "",
|
|
455
|
-
starCountOne:
|
|
455
|
+
starCountOne: _ctx.repoInfo.star_count
|
|
456
456
|
}, null, 8, ["starCountOne"])) : createCommentVNode("", true),
|
|
457
|
-
|
|
457
|
+
_ctx.repoInfo.forks_count ? (openBlock(), createBlock(ForkTag, {
|
|
458
458
|
key: 2,
|
|
459
|
-
count:
|
|
459
|
+
count: _ctx.repoInfo.forks_count
|
|
460
460
|
}, null, 8, ["count"])) : createCommentVNode("", true),
|
|
461
461
|
showUpdateTimeDot.value ? (openBlock(), createElementBlock("div", _hoisted_2$2)) : createCommentVNode("", true),
|
|
462
|
-
!
|
|
463
|
-
!
|
|
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, {
|
|
464
464
|
key: 5,
|
|
465
|
-
starCountOne:
|
|
465
|
+
starCountOne: _ctx.repoInfo.star_count_one
|
|
466
466
|
}, null, 8, ["starCountOne"])) : createCommentVNode("", true),
|
|
467
|
-
|
|
467
|
+
_ctx.repoInfo.is_gh_mirrors ? (openBlock(), createBlock(GithubStarNum, {
|
|
468
468
|
key: 6,
|
|
469
|
-
count:
|
|
469
|
+
count: _ctx.repoInfo.import_star_count
|
|
470
470
|
}, null, 8, ["count"])) : createCommentVNode("", true)
|
|
471
471
|
])
|
|
472
472
|
]),
|
|
473
|
-
!
|
|
473
|
+
!_ctx.hideTopicTags && topicNames.value.length && _ctx.searchCard ? (openBlock(), createElementBlock("div", {
|
|
474
474
|
key: 0,
|
|
475
475
|
class: "topic-tags",
|
|
476
476
|
ref_key: "topicTagsRef",
|
|
@@ -534,7 +534,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
534
534
|
default: withCtx(() => [
|
|
535
535
|
_cache[0] || (_cache[0] = createElementVNode("div", { class: "new-tag" }, "New", -1))
|
|
536
536
|
]),
|
|
537
|
-
_: 1
|
|
537
|
+
_: 1,
|
|
538
|
+
__: [0]
|
|
538
539
|
})) : createCommentVNode("", true);
|
|
539
540
|
};
|
|
540
541
|
}
|
|
@@ -718,7 +719,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
718
719
|
});
|
|
719
720
|
return (_ctx, _cache) => {
|
|
720
721
|
return openBlock(), createElementBlock("a", {
|
|
721
|
-
class: normalizeClass(["i-search-projects-card", { noborder:
|
|
722
|
+
class: normalizeClass(["i-search-projects-card", { noborder: _ctx.noborder, "full-hover": _ctx.hover }]),
|
|
722
723
|
onClick: handleClick
|
|
723
724
|
}, [
|
|
724
725
|
createVNode(unref(Row), { class: "i-search-projects-card-title" }, {
|
|
@@ -732,43 +733,45 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
732
733
|
return [
|
|
733
734
|
createVNode(GIcon, {
|
|
734
735
|
name: iconName.value,
|
|
735
|
-
class: normalizeClass({ "align-middle":
|
|
736
|
+
class: normalizeClass({ "align-middle": _ctx.info.is_gh_mirrors }),
|
|
736
737
|
color: "var(--theme-placeholder)"
|
|
737
738
|
}, null, 8, ["name", "class"]),
|
|
738
739
|
createElementVNode("span", {
|
|
739
740
|
class: "repo-title",
|
|
740
741
|
innerHTML: preHandWord()
|
|
741
742
|
}, null, 8, _hoisted_1),
|
|
742
|
-
|
|
743
|
-
unref(isGstarRepo)(
|
|
743
|
+
_ctx.info.show_recommend_icon ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref($t)("gitCodeLayout.search.recommendTag")), 1)) : createCommentVNode("", true),
|
|
744
|
+
unref(isGstarRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
744
745
|
createVNode(_sfc_main$b, {
|
|
745
746
|
origin: "repo",
|
|
746
747
|
icon: "",
|
|
747
748
|
type: "gstar",
|
|
748
749
|
message: `G-Star ${unref($t)("gitCodeLayout.GStar.project.graduation")}`
|
|
749
750
|
}, {
|
|
750
|
-
default: withCtx(() =>
|
|
751
|
-
createTextVNode("G-Star "
|
|
752
|
-
])
|
|
753
|
-
_: 1
|
|
751
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
752
|
+
createTextVNode("G-Star ")
|
|
753
|
+
])),
|
|
754
|
+
_: 1,
|
|
755
|
+
__: [0]
|
|
754
756
|
}, 8, ["message"])
|
|
755
757
|
])) : createCommentVNode("", true),
|
|
756
|
-
unref(isIncubationRepo)(
|
|
758
|
+
unref(isIncubationRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
757
759
|
createVNode(_sfc_main$b, {
|
|
758
760
|
origin: "repo",
|
|
759
761
|
icon: "",
|
|
760
762
|
type: "incubation",
|
|
761
763
|
message: `G-Star ${unref($t)("gitCodeLayout.GStar.project.incubation")}`
|
|
762
764
|
}, {
|
|
763
|
-
default: withCtx(() =>
|
|
764
|
-
createTextVNode(" G-Star "
|
|
765
|
-
])
|
|
766
|
-
_: 1
|
|
765
|
+
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
766
|
+
createTextVNode(" G-Star ")
|
|
767
|
+
])),
|
|
768
|
+
_: 1,
|
|
769
|
+
__: [1]
|
|
767
770
|
}, 8, ["message"])
|
|
768
771
|
])) : createCommentVNode("", true),
|
|
769
772
|
createVNode(NewTag, {
|
|
770
|
-
repoType:
|
|
771
|
-
isNew: ((_a =
|
|
773
|
+
repoType: _ctx.cardType,
|
|
774
|
+
isNew: ((_a = _ctx.info) == null ? void 0 : _a.is_new) || false
|
|
772
775
|
}, null, 8, ["repoType", "isNew"])
|
|
773
776
|
];
|
|
774
777
|
}),
|
|
@@ -776,7 +779,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
776
779
|
}),
|
|
777
780
|
createVNode(unref(Col), { flex: "none" }, {
|
|
778
781
|
default: withCtx(() => [
|
|
779
|
-
!
|
|
782
|
+
!_ctx.hideStarBtn ? (openBlock(), createBlock(StarTag, {
|
|
780
783
|
key: 0,
|
|
781
784
|
isLike: isModel.value,
|
|
782
785
|
"star-info": starInfo.value,
|
|
@@ -788,12 +791,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
788
791
|
]),
|
|
789
792
|
_: 1
|
|
790
793
|
}),
|
|
791
|
-
!
|
|
794
|
+
!_ctx.hideDescription ? (openBlock(), createElementBlock("div", {
|
|
792
795
|
key: 0,
|
|
793
796
|
innerHTML: unref(highlightWords)("", description.value),
|
|
794
797
|
class: "i-search-projects-card-desc ellipsis"
|
|
795
798
|
}, null, 8, _hoisted_5)) : createCommentVNode("", true),
|
|
796
|
-
|
|
799
|
+
_ctx.info.index === 0 && _ctx.info.is_recommend ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
797
800
|
queryLoading.value ? (openBlock(), createBlock(unref(Skeleton), { key: 0 }, {
|
|
798
801
|
placeholder: withCtx(() => [
|
|
799
802
|
createVNode(unref(Row), {
|
|
@@ -833,14 +836,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
833
836
|
})) : createCommentVNode("", true)
|
|
834
837
|
])) : isModel.value ? (openBlock(), createBlock(ModelCardFooter, {
|
|
835
838
|
key: 2,
|
|
836
|
-
repoInfo:
|
|
839
|
+
repoInfo: _ctx.info
|
|
837
840
|
}, null, 8, ["repoInfo"])) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
838
|
-
!
|
|
841
|
+
!_ctx.hideFooter ? (openBlock(), createBlock(RepoCardFooter, {
|
|
839
842
|
key: 0,
|
|
840
|
-
hideTopicTags:
|
|
843
|
+
hideTopicTags: _ctx.hideTopicTags,
|
|
841
844
|
hideStarCount: "",
|
|
842
845
|
tagInfo: tagInfo.value,
|
|
843
|
-
repoInfo:
|
|
846
|
+
repoInfo: _ctx.info,
|
|
844
847
|
searchCard: "",
|
|
845
848
|
class: "i-search-projects-card-bottom",
|
|
846
849
|
onTopicClick: handleTopicClick
|