vue-layout-gitcode 1.12.54 → 1.12.55
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-CyqYE-oU.js → GloabarSearch-WrDatpJG.js} +5 -5
- package/{MenuItem-Fu7SS3Tz.js → MenuItem-DAocsyb-.js} +2 -2
- package/{ProjectMenuList-DPscVNRR.js → ProjectMenuList-C4NIYWHH.js} +11 -11
- package/{ProjectMenuListV2-nSkrRa6K.js → ProjectMenuListV2-D3wGN-k4.js} +4 -4
- package/{ProjectSearch-DzbH-bqt.js → ProjectSearch-DrCrrWIH.js} +2 -2
- package/{SearchHistoryList-CpJYD474.js → SearchHistoryList-D1uwK3ph.js} +6 -6
- package/{SearchRecommed-BMi4fhX2.js → SearchRecommed-B2PkK9wZ.js} +5 -4
- package/{SearchScopeList-cN4MRz7O.js → SearchScopeList-CvJr4Us0.js} +3 -3
- package/{UserSearch-BDv9VoKV.js → UserSearch-6pGeNQVo.js} +2 -2
- package/{index-BVtkY7Om.js → index-B1JWoa0x.js} +6 -5
- package/{index-DdlJC00I.js → index-XmRn4ADt.js} +1613 -2614
- package/{index-Ds8UDIgP.js → index-cDsJAGxu.js} +2 -2
- package/index.js +19 -19
- package/{notice-BCsRECZ7.js → notice-CJt9jP_7.js} +13 -11
- package/package.json +1 -1
- package/{search-suggestion-CvlmOcjt.js → search-suggestion-5gvGFBYY.js} +49 -46
- package/style.css +1 -1
- package/{transWebUrl-BIRrBeEN.js → transWebUrl-Bt3I_yb8.js} +1 -1
|
@@ -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, j as usePageResize, A as isZh, _ as _export_sfc } from "./index-
|
|
11
|
+
import { a as i18n, j as usePageResize, A as isZh, _ as _export_sfc } from "./index-XmRn4ADt.js";
|
|
12
12
|
const _YunpianCaptchaManager = class _YunpianCaptchaManager {
|
|
13
13
|
// eslint-disable-next-line no-useless-constructor
|
|
14
14
|
constructor() {
|
package/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a3, $, a1, U, V, X, a6, a8, a0, Y, Z, Q, S, W, a2, P, C, a9, a5, a7, a4 } from "./index-XmRn4ADt.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
a3 as AsideFooterTools,
|
|
4
|
+
$ as AtomCodeLauncher,
|
|
5
|
+
a1 as EnterpriseHeader,
|
|
6
6
|
U as GitCodeAside,
|
|
7
7
|
V as GitCodeAsideV2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
X as GitCodeHeader,
|
|
9
|
+
a6 as GitCodeLayoutEmitter,
|
|
10
|
+
a8 as HEADER_CREATE_MENU_PATHS,
|
|
11
|
+
a0 as HeaderCreateMenu,
|
|
12
|
+
Y as HeaderSkeleton,
|
|
13
|
+
Z as HomeHeaderActions,
|
|
14
|
+
Q as Login,
|
|
15
|
+
S as SceneValue,
|
|
16
|
+
W as ScrollActiveContainer,
|
|
17
|
+
a2 as SiteAnnouncement,
|
|
18
|
+
P as ToolsFloat,
|
|
19
19
|
C as currentTheme,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
a9 as default,
|
|
21
|
+
a5 as setLayoutConfig,
|
|
22
|
+
a7 as setTheme,
|
|
23
|
+
a4 as useLogin
|
|
24
24
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, computed,
|
|
2
|
-
import { i as isPhone, u as useModel, _ as _export_sfc } from "./index-
|
|
1
|
+
import { defineComponent, computed, createBlock, openBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
|
|
2
|
+
import { i as isPhone, u as useModel, _ as _export_sfc } from "./index-XmRn4ADt.js";
|
|
3
3
|
import { Notification } from "vue-devui-lal/notification";
|
|
4
4
|
import { Button } from "vue-devui-lal/button";
|
|
5
5
|
import "vue-devui-lal/notification/style.css";
|
|
@@ -33,13 +33,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
createVNode(unref(Button), {
|
|
34
34
|
variant: "outline",
|
|
35
35
|
size: isMobile.value ? "sm" : "md",
|
|
36
|
-
onClick:
|
|
36
|
+
onClick: _ctx.onClose,
|
|
37
37
|
class: "email-notice__btn-ignore"
|
|
38
38
|
}, {
|
|
39
|
-
default: withCtx(() =>
|
|
40
|
-
createTextVNode("忽略"
|
|
41
|
-
])
|
|
42
|
-
_: 1
|
|
39
|
+
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
40
|
+
createTextVNode("忽略")
|
|
41
|
+
])),
|
|
42
|
+
_: 1,
|
|
43
|
+
__: [1]
|
|
43
44
|
}, 8, ["size", "onClick"]),
|
|
44
45
|
createVNode(unref(Button), {
|
|
45
46
|
variant: "solid",
|
|
@@ -47,10 +48,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
48
|
color: "primary",
|
|
48
49
|
onClick: handleConfirm
|
|
49
50
|
}, {
|
|
50
|
-
default: withCtx(() =>
|
|
51
|
-
createTextVNode("修改"
|
|
52
|
-
])
|
|
53
|
-
_: 1
|
|
51
|
+
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
52
|
+
createTextVNode("修改")
|
|
53
|
+
])),
|
|
54
|
+
_: 1,
|
|
55
|
+
__: [2]
|
|
54
56
|
}, 8, ["size"])
|
|
55
57
|
], 2)
|
|
56
58
|
]),
|
package/package.json
CHANGED
|
@@ -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, e as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, f as useTimeFormat, g as useCookie, j as usePageResize, L as LANG_ZH, k as isGstarRepo, m as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, w as REPO_TYPE, x as extractRepoInfoWithURL, y as LANG_KEY } from "./index-XmRn4ADt.js";
|
|
3
|
+
import { t as transWebUrl } from "./transWebUrl-Bt3I_yb8.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
|
}
|
|
@@ -637,7 +638,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
637
638
|
});
|
|
638
639
|
return (_ctx, _cache) => {
|
|
639
640
|
return openBlock(), createElementBlock("a", {
|
|
640
|
-
class: normalizeClass(["i-search-projects-card", { noborder:
|
|
641
|
+
class: normalizeClass(["i-search-projects-card", { noborder: _ctx.noborder, "full-hover": _ctx.hover }]),
|
|
641
642
|
onClick: handleClick
|
|
642
643
|
}, [
|
|
643
644
|
createVNode(unref(Row), { class: "i-search-projects-card-title" }, {
|
|
@@ -651,43 +652,45 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
651
652
|
return [
|
|
652
653
|
createVNode(GIcon, {
|
|
653
654
|
name: iconName.value,
|
|
654
|
-
class: normalizeClass({ "align-middle":
|
|
655
|
+
class: normalizeClass({ "align-middle": _ctx.info.is_gh_mirrors }),
|
|
655
656
|
color: "var(--theme-placeholder)"
|
|
656
657
|
}, null, 8, ["name", "class"]),
|
|
657
658
|
createElementVNode("span", {
|
|
658
659
|
class: "repo-title",
|
|
659
660
|
innerHTML: preHandWord()
|
|
660
661
|
}, null, 8, _hoisted_1),
|
|
661
|
-
|
|
662
|
-
unref(isGstarRepo)(
|
|
662
|
+
_ctx.info.show_recommend_icon ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref($t)("gitCodeLayout.search.recommendTag")), 1)) : createCommentVNode("", true),
|
|
663
|
+
unref(isGstarRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
663
664
|
createVNode(_sfc_main$b, {
|
|
664
665
|
origin: "repo",
|
|
665
666
|
icon: "",
|
|
666
667
|
type: "gstar",
|
|
667
668
|
message: `G-Star ${unref($t)("gitCodeLayout.GStar.project.graduation")}`
|
|
668
669
|
}, {
|
|
669
|
-
default: withCtx(() =>
|
|
670
|
-
createTextVNode("G-Star "
|
|
671
|
-
])
|
|
672
|
-
_: 1
|
|
670
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
671
|
+
createTextVNode("G-Star ")
|
|
672
|
+
])),
|
|
673
|
+
_: 1,
|
|
674
|
+
__: [0]
|
|
673
675
|
}, 8, ["message"])
|
|
674
676
|
])) : createCommentVNode("", true),
|
|
675
|
-
unref(isIncubationRepo)(
|
|
677
|
+
unref(isIncubationRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
676
678
|
createVNode(_sfc_main$b, {
|
|
677
679
|
origin: "repo",
|
|
678
680
|
icon: "",
|
|
679
681
|
type: "incubation",
|
|
680
682
|
message: `G-Star ${unref($t)("gitCodeLayout.GStar.project.incubation")}`
|
|
681
683
|
}, {
|
|
682
|
-
default: withCtx(() =>
|
|
683
|
-
createTextVNode(" G-Star "
|
|
684
|
-
])
|
|
685
|
-
_: 1
|
|
684
|
+
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
685
|
+
createTextVNode(" G-Star ")
|
|
686
|
+
])),
|
|
687
|
+
_: 1,
|
|
688
|
+
__: [1]
|
|
686
689
|
}, 8, ["message"])
|
|
687
690
|
])) : createCommentVNode("", true),
|
|
688
691
|
createVNode(NewTag, {
|
|
689
|
-
repoType:
|
|
690
|
-
isNew: ((_a =
|
|
692
|
+
repoType: _ctx.cardType,
|
|
693
|
+
isNew: ((_a = _ctx.info) == null ? void 0 : _a.is_new) || false
|
|
691
694
|
}, null, 8, ["repoType", "isNew"])
|
|
692
695
|
];
|
|
693
696
|
}),
|
|
@@ -695,7 +698,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
695
698
|
}),
|
|
696
699
|
createVNode(unref(Col), { flex: "none" }, {
|
|
697
700
|
default: withCtx(() => [
|
|
698
|
-
!
|
|
701
|
+
!_ctx.hideStarBtn ? (openBlock(), createBlock(StarTag, {
|
|
699
702
|
key: 0,
|
|
700
703
|
isLike: isModel.value,
|
|
701
704
|
"star-info": starInfo.value,
|
|
@@ -707,12 +710,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
707
710
|
]),
|
|
708
711
|
_: 1
|
|
709
712
|
}),
|
|
710
|
-
!
|
|
713
|
+
!_ctx.hideDescription ? (openBlock(), createElementBlock("div", {
|
|
711
714
|
key: 0,
|
|
712
715
|
innerHTML: unref(highlightWords)("", description.value),
|
|
713
716
|
class: "i-search-projects-card-desc ellipsis"
|
|
714
717
|
}, null, 8, _hoisted_5)) : createCommentVNode("", true),
|
|
715
|
-
|
|
718
|
+
_ctx.info.index === 0 && _ctx.info.is_recommend ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
716
719
|
queryLoading.value ? (openBlock(), createBlock(unref(Skeleton), { key: 0 }, {
|
|
717
720
|
placeholder: withCtx(() => [
|
|
718
721
|
createVNode(unref(Row), {
|
|
@@ -750,16 +753,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
750
753
|
]),
|
|
751
754
|
_: 1
|
|
752
755
|
})) : createCommentVNode("", true)
|
|
753
|
-
])) : isModel.value && !
|
|
756
|
+
])) : isModel.value && !_ctx.hideFooter ? (openBlock(), createBlock(ModelCardFooter, {
|
|
754
757
|
key: 2,
|
|
755
|
-
repoInfo:
|
|
758
|
+
repoInfo: _ctx.info
|
|
756
759
|
}, null, 8, ["repoInfo"])) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
757
|
-
!
|
|
760
|
+
!_ctx.hideFooter ? (openBlock(), createBlock(RepoCardFooter, {
|
|
758
761
|
key: 0,
|
|
759
|
-
hideTopicTags:
|
|
762
|
+
hideTopicTags: _ctx.hideTopicTags,
|
|
760
763
|
hideStarCount: "",
|
|
761
764
|
tagInfo: tagInfo.value,
|
|
762
|
-
repoInfo:
|
|
765
|
+
repoInfo: _ctx.info,
|
|
763
766
|
searchCard: "",
|
|
764
767
|
class: "i-search-projects-card-bottom",
|
|
765
768
|
onTopicClick: handleTopicClick
|