vue-layout-gitcode 1.12.12 → 1.12.14-beta.1
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-X6I2pMlN.js → GloabarSearch-D510G-DP.js} +8 -8
- package/{MenuItem-DJk0KWSP.js → MenuItem-Bacdijkh.js} +3 -3
- package/{ProjectMenuList-DHFpbQXp.js → ProjectMenuList-BYyd6e3M.js} +11 -11
- package/{ProjectMenuListV2-qW0kW8BB.js → ProjectMenuListV2-CgWGkULc.js} +7 -7
- package/{ProjectSearch-Cz9Vle9G.js → ProjectSearch-CHyEnuxq.js} +26 -18
- package/{SearchHistoryList-BQk5tIO1.js → SearchHistoryList-BFjEf7Xe.js} +9 -9
- package/{SearchPrefixTag-DcF4bH2q.js → SearchPrefixTag-BX3XaW_6.js} +3 -3
- package/{SearchRecommed-hd2z7Ldd.js → SearchRecommed-DpjuW6xU.js} +6 -6
- package/{SearchScopeList-zrU2IOei.js → SearchScopeList-DuAwPlCU.js} +5 -5
- package/{UserSearch-CfX4NkpN.js → UserSearch-BQPeKq9w.js} +5 -5
- package/{index-C5ZeT-nA.js → index-BZYCIwxN.js} +3 -2
- package/{index-t3ttyMJR.js → index-CXi5WgqU.js} +1 -1
- package/{index-DH88X6vt.js → index-DMMMTIq6.js} +38 -35
- package/{index-DfZHyOG4.js → index-sew8BkJ5.js} +473 -473
- package/index.d.ts +21 -10
- package/index.js +1 -1
- package/{notice-DI46R8Sc.js → notice-WYyhMYst.js} +10 -7
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-B13gf3iY.js → transWebUrl-BjCYPJAp.js} +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
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, 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-
|
|
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-sew8BkJ5.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-BjCYPJAp.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";
|
|
@@ -91,8 +91,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
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,7 +272,7 @@ 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"
|
|
@@ -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)
|
|
@@ -364,7 +363,7 @@ const _hoisted_1$4 = {
|
|
|
364
363
|
key: 0,
|
|
365
364
|
class: "github-star-num"
|
|
366
365
|
};
|
|
367
|
-
const _hoisted_2$3 = { class: "
|
|
366
|
+
const _hoisted_2$3 = { class: "github-star-num__count" };
|
|
368
367
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
369
368
|
...{ name: "GithubStarNum" },
|
|
370
369
|
__name: "index",
|
|
@@ -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"
|
|
@@ -533,25 +532,26 @@ 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
|
-
_: 1
|
|
537
|
+
_: 1,
|
|
538
|
+
__: [0]
|
|
539
539
|
})) : createCommentVNode("", true);
|
|
540
540
|
};
|
|
541
541
|
}
|
|
542
542
|
});
|
|
543
543
|
const NewTag = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
544
|
-
const _hoisted_1$1 = { class: "model-card-footer
|
|
544
|
+
const _hoisted_1$1 = { class: "model-card-footer" };
|
|
545
545
|
const _hoisted_2$1 = {
|
|
546
546
|
key: 1,
|
|
547
|
-
class: "ellipsis max-150
|
|
547
|
+
class: "ellipsis max-150 model-card-footer__text"
|
|
548
548
|
};
|
|
549
|
-
const _hoisted_3$1 = { class: "
|
|
550
|
-
const _hoisted_4$1 = { class: "
|
|
551
|
-
const _hoisted_5$1 = { class: "
|
|
549
|
+
const _hoisted_3$1 = { class: "model-card-footer__text" };
|
|
550
|
+
const _hoisted_4$1 = { class: "model-card-footer__time" };
|
|
551
|
+
const _hoisted_5$1 = { class: "model-card-footer__text" };
|
|
552
552
|
const _hoisted_6$1 = {
|
|
553
553
|
key: 2,
|
|
554
|
-
class: "
|
|
554
|
+
class: "model-card-footer__dot"
|
|
555
555
|
};
|
|
556
556
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
557
557
|
__name: "ModelCardFooter",
|
|
@@ -574,7 +574,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
574
574
|
size: "12px"
|
|
575
575
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
576
576
|
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: "
|
|
577
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "model-card-footer__dot" }, null, -1))
|
|
578
578
|
], 64)) : createCommentVNode("", true),
|
|
579
579
|
projectData.value.model_param_size ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
580
580
|
createVNode(GIcon, {
|
|
@@ -583,10 +583,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
583
583
|
color: "var(--theme-release-card-text-color)"
|
|
584
584
|
}),
|
|
585
585
|
createElementVNode("span", _hoisted_3$1, toDisplayString(projectData.value.model_param_size), 1),
|
|
586
|
-
_cache[1] || (_cache[1] = createElementVNode("div", { class: "
|
|
586
|
+
_cache[1] || (_cache[1] = createElementVNode("div", { class: "model-card-footer__dot" }, null, -1))
|
|
587
587
|
], 64)) : createCommentVNode("", true),
|
|
588
588
|
createElementVNode("span", _hoisted_4$1, toDisplayString(unref(formatTimeFromNow)(projectData.value.updated_at)), 1),
|
|
589
|
-
_cache[2] || (_cache[2] = createElementVNode("div", { class: "
|
|
589
|
+
_cache[2] || (_cache[2] = createElementVNode("div", { class: "model-card-footer__dot" }, null, -1)),
|
|
590
590
|
createVNode(GIcon, {
|
|
591
591
|
name: "gt-line-upload",
|
|
592
592
|
size: "14px",
|
|
@@ -608,10 +608,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
608
608
|
};
|
|
609
609
|
}
|
|
610
610
|
});
|
|
611
|
+
const ModelCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
611
612
|
const _hoisted_1 = ["innerHTML"];
|
|
612
613
|
const _hoisted_2 = {
|
|
613
614
|
key: 0,
|
|
614
|
-
class: "is-recommend
|
|
615
|
+
class: "is-recommend"
|
|
615
616
|
};
|
|
616
617
|
const _hoisted_3 = { key: 1 };
|
|
617
618
|
const _hoisted_4 = { key: 2 };
|
|
@@ -718,13 +719,13 @@ 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
|
|
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" }, {
|
|
725
726
|
default: withCtx(() => [
|
|
726
727
|
createVNode(unref(Col), {
|
|
727
|
-
class: "ellipsis
|
|
728
|
+
class: "ellipsis i-search-projects-card-title__col",
|
|
728
729
|
flex: "auto"
|
|
729
730
|
}, {
|
|
730
731
|
default: withCtx(() => {
|
|
@@ -750,7 +751,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
750
751
|
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
751
752
|
createTextVNode("G-Star ")
|
|
752
753
|
])),
|
|
753
|
-
_: 1
|
|
754
|
+
_: 1,
|
|
755
|
+
__: [0]
|
|
754
756
|
}, 8, ["message"])
|
|
755
757
|
])) : createCommentVNode("", true),
|
|
756
758
|
unref(isIncubationRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
@@ -763,7 +765,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
763
765
|
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
764
766
|
createTextVNode(" G-Star ")
|
|
765
767
|
])),
|
|
766
|
-
_: 1
|
|
768
|
+
_: 1,
|
|
769
|
+
__: [1]
|
|
767
770
|
}, 8, ["message"])
|
|
768
771
|
])) : createCommentVNode("", true),
|
|
769
772
|
createVNode(NewTag, {
|
|
@@ -791,7 +794,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
791
794
|
!_ctx.hideDescription ? (openBlock(), createElementBlock("div", {
|
|
792
795
|
key: 0,
|
|
793
796
|
innerHTML: unref(highlightWords)("", description.value),
|
|
794
|
-
class: "i-search-projects-card-desc ellipsis
|
|
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 }, {
|
|
@@ -805,7 +808,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
805
808
|
span: rowSpan[unref(widthType)]
|
|
806
809
|
}, {
|
|
807
810
|
default: withCtx(() => [
|
|
808
|
-
createVNode(unref(SkeletonItem), { class: "
|
|
811
|
+
createVNode(unref(SkeletonItem), { class: "i-search-projects-card-skel" })
|
|
809
812
|
]),
|
|
810
813
|
_: 1
|
|
811
814
|
}, 8, ["span"]),
|
|
@@ -813,7 +816,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
813
816
|
span: rowSpan[unref(widthType)]
|
|
814
817
|
}, {
|
|
815
818
|
default: withCtx(() => [
|
|
816
|
-
createVNode(unref(SkeletonItem), { class: "
|
|
819
|
+
createVNode(unref(SkeletonItem), { class: "i-search-projects-card-skel" })
|
|
817
820
|
]),
|
|
818
821
|
_: 1
|
|
819
822
|
}, 8, ["span"]),
|
|
@@ -821,7 +824,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
821
824
|
span: rowSpan[unref(widthType)]
|
|
822
825
|
}, {
|
|
823
826
|
default: withCtx(() => [
|
|
824
|
-
createVNode(unref(SkeletonItem), { class: "
|
|
827
|
+
createVNode(unref(SkeletonItem), { class: "i-search-projects-card-skel" })
|
|
825
828
|
]),
|
|
826
829
|
_: 1
|
|
827
830
|
}, 8, ["span"])
|
|
@@ -831,7 +834,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
831
834
|
]),
|
|
832
835
|
_: 1
|
|
833
836
|
})) : createCommentVNode("", true)
|
|
834
|
-
])) : isModel.value ? (openBlock(), createBlock(
|
|
837
|
+
])) : isModel.value ? (openBlock(), createBlock(ModelCardFooter, {
|
|
835
838
|
key: 2,
|
|
836
839
|
repoInfo: _ctx.info
|
|
837
840
|
}, null, 8, ["repoInfo"])) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
@@ -842,7 +845,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
842
845
|
tagInfo: tagInfo.value,
|
|
843
846
|
repoInfo: _ctx.info,
|
|
844
847
|
searchCard: "",
|
|
845
|
-
class: "i-search-projects-card-bottom
|
|
848
|
+
class: "i-search-projects-card-bottom",
|
|
846
849
|
onTopicClick: handleTopicClick
|
|
847
850
|
}, null, 8, ["hideTopicTags", "tagInfo", "repoInfo"])) : createCommentVNode("", true)
|
|
848
851
|
], 64))
|