vue-layout-gitcode 1.10.46 → 1.10.48
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-QcIq6Gh6.js → GloabarSearch-q97SdAFR.js} +3 -3
- package/{MenuItem-Bkz4-Vtl.js → MenuItem-Dl_iFpYq.js} +1 -1
- package/{ProjectMenuList-EYcwoFrJ.js → ProjectMenuList-Bw6fFs7m.js} +8 -8
- package/{ProjectMenuListV2-ms2ShmJO.js → ProjectMenuListV2-BjiGCgFQ.js} +3 -3
- package/{ProjectSearch-C4jCJgIU.js → ProjectSearch-Dp9_cu_e.js} +1 -1
- package/{SearchHistoryList-C0yAQcmv.js → SearchHistoryList-CK_vrI0W.js} +5 -5
- package/{SearchPrefixTag-DpB-MKUj.js → SearchPrefixTag-BnAjR41M.js} +3 -3
- package/{SearchRecommed-CxtUjDMY.js → SearchRecommed-jgN6b9FK.js} +2 -2
- package/{SearchScopeList-BQ2lY7n7.js → SearchScopeList-EqYJNoOZ.js} +3 -3
- package/{UserSearch-BpDgAqo-.js → UserSearch-Dc_AB314.js} +1 -1
- package/{index-Cfgtkgon.js → index-3wv-r-ed.js} +837 -909
- package/{index-CxViqoos.js → index-BtzPb5iB.js} +5 -4
- package/{index-D2mdc0Hw.js → index-CnIpdOp0.js} +1 -1
- package/{index-BVOQcFnZ.js → index-CzUKdSx9.js} +47 -44
- package/index.d.ts +10 -240
- package/index.js +1 -1
- package/{notice-t6YcaAyd.js → notice-C2b_Buj_.js} +12 -10
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-DpQ1yUC2.js → transWebUrl-Ddb2myxZ.js} +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-3wv-r-ed.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
|
}
|
|
@@ -8,7 +8,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-3wv-r-ed.js";
|
|
12
12
|
const _YunpianCaptchaManager = class _YunpianCaptchaManager {
|
|
13
13
|
// eslint-disable-next-line no-useless-constructor
|
|
14
14
|
constructor() {
|
|
@@ -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-3wv-r-ed.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-Ddb2myxZ.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: "mr-[4px]",
|
|
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
|
]);
|
|
@@ -351,9 +351,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
351
351
|
color: "var(--theme-home-card-color-placeholder)",
|
|
352
352
|
size: "14"
|
|
353
353
|
}),
|
|
354
|
-
!
|
|
354
|
+
!_ctx.hideText ? (openBlock(), createElementBlock("span", _hoisted_2$4, toDisplayString(unref($t)("gitCodeLayout.components.repo.today")), 1)) : createCommentVNode("", true),
|
|
355
355
|
createVNode(_sfc_main$a, {
|
|
356
|
-
number:
|
|
356
|
+
number: _ctx.starCountOne || 0
|
|
357
357
|
}, null, 8, ["number"])
|
|
358
358
|
]);
|
|
359
359
|
};
|
|
@@ -384,9 +384,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
384
384
|
size: "14"
|
|
385
385
|
}),
|
|
386
386
|
createElementVNode("span", _hoisted_2$3, [
|
|
387
|
-
_cache[0] || (_cache[0] = createTextVNode("Star "
|
|
387
|
+
_cache[0] || (_cache[0] = createTextVNode("Star ")),
|
|
388
388
|
createVNode(_sfc_main$a, {
|
|
389
|
-
number:
|
|
389
|
+
number: _ctx.count || 0,
|
|
390
390
|
gt100: true
|
|
391
391
|
}, null, 8, ["number"])
|
|
392
392
|
])
|
|
@@ -446,32 +446,32 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
446
446
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
447
447
|
createElementVNode("div", null, [
|
|
448
448
|
createElementVNode("div", _hoisted_1$3, [
|
|
449
|
-
|
|
449
|
+
_ctx.tagInfo ? (openBlock(), createBlock(LanguageTag, {
|
|
450
450
|
key: 0,
|
|
451
|
-
"tag-info":
|
|
451
|
+
"tag-info": _ctx.tagInfo
|
|
452
452
|
}, null, 8, ["tag-info"])) : createCommentVNode("", true),
|
|
453
|
-
!
|
|
453
|
+
!_ctx.hideStarCount ? (openBlock(), createBlock(StarCountOne, {
|
|
454
454
|
key: 1,
|
|
455
455
|
hideText: "",
|
|
456
|
-
starCountOne:
|
|
456
|
+
starCountOne: _ctx.repoInfo.star_count
|
|
457
457
|
}, null, 8, ["starCountOne"])) : createCommentVNode("", true),
|
|
458
|
-
|
|
458
|
+
_ctx.repoInfo.forks_count ? (openBlock(), createBlock(ForkTag, {
|
|
459
459
|
key: 2,
|
|
460
|
-
count:
|
|
460
|
+
count: _ctx.repoInfo.forks_count
|
|
461
461
|
}, null, 8, ["count"])) : createCommentVNode("", true),
|
|
462
462
|
showUpdateTimeDot.value ? (openBlock(), createElementBlock("div", _hoisted_2$2)) : createCommentVNode("", true),
|
|
463
|
-
!
|
|
464
|
-
!
|
|
463
|
+
!_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),
|
|
464
|
+
!_ctx.hideStarIncrease && _ctx.repoInfo.star_count_one ? (openBlock(), createBlock(StarCountOne, {
|
|
465
465
|
key: 5,
|
|
466
|
-
starCountOne:
|
|
466
|
+
starCountOne: _ctx.repoInfo.star_count_one
|
|
467
467
|
}, null, 8, ["starCountOne"])) : createCommentVNode("", true),
|
|
468
|
-
|
|
468
|
+
_ctx.repoInfo.is_gh_mirrors ? (openBlock(), createBlock(GithubStarNum, {
|
|
469
469
|
key: 6,
|
|
470
|
-
count:
|
|
470
|
+
count: _ctx.repoInfo.import_star_count
|
|
471
471
|
}, null, 8, ["count"])) : createCommentVNode("", true)
|
|
472
472
|
])
|
|
473
473
|
]),
|
|
474
|
-
!
|
|
474
|
+
!_ctx.hideTopicTags && topicNames.value.length && _ctx.searchCard ? (openBlock(), createElementBlock("div", {
|
|
475
475
|
key: 0,
|
|
476
476
|
class: "topic-tags",
|
|
477
477
|
ref_key: "topicTagsRef",
|
|
@@ -535,7 +535,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
535
535
|
default: withCtx(() => [
|
|
536
536
|
_cache[0] || (_cache[0] = createElementVNode("div", { class: "new-tag w-[32px] h-[15px] text-[9px] text-[#ffffff] flex items-center justify-center leading-[1]" }, "New", -1))
|
|
537
537
|
]),
|
|
538
|
-
_: 1
|
|
538
|
+
_: 1,
|
|
539
|
+
__: [0]
|
|
539
540
|
})) : createCommentVNode("", true);
|
|
540
541
|
};
|
|
541
542
|
}
|
|
@@ -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 cursor-pointer", { noborder:
|
|
722
|
+
class: normalizeClass(["i-search-projects-card cursor-pointer", { 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 mt-[8px]"
|
|
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(_sfc_main$1, {
|
|
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 mt-[8px]",
|
|
846
849
|
onTopicClick: handleTopicClick
|
package/index.d.ts
CHANGED
|
@@ -1,157 +1,12 @@
|
|
|
1
|
-
import { AccountInfo } from '../../types/types';
|
|
2
1
|
import { App } from '../vue/dist/vue.esm-bundler.js';
|
|
3
|
-
import { ComponentOptionsMixin } from '../../../vue/dist/vue.esm-bundler.js';
|
|
4
|
-
import { ComponentOptionsMixin as ComponentOptionsMixin_2 } from '../../../../vue/dist/vue.esm-bundler.js';
|
|
5
|
-
import { ComponentProvideOptions } from '../../../vue/dist/vue.esm-bundler.js';
|
|
6
|
-
import { ComponentProvideOptions as ComponentProvideOptions_2 } from '../../../../vue/dist/vue.esm-bundler.js';
|
|
7
2
|
import { currentTheme } from './themes/index';
|
|
8
|
-
import { DefineComponent } from '../../../vue/dist/vue.esm-bundler.js';
|
|
9
|
-
import { DefineComponent as DefineComponent_2 } from '../../../../vue/dist/vue.esm-bundler.js';
|
|
10
3
|
import { Emitter } from 'mitt';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { PublicProps } from '../../../vue/dist/vue.esm-bundler.js';
|
|
15
|
-
import { PublicProps as PublicProps_2 } from '../../../../vue/dist/vue.esm-bundler.js';
|
|
16
|
-
import { repoInfoType } from '../../types/types';
|
|
4
|
+
import { default as GitCodeAside } from './components/Aside/index.vue';
|
|
5
|
+
import { default as GitCodeHeader } from './components/Header/index.vue';
|
|
6
|
+
import { default as Login } from './components//Login/Login.vue';
|
|
17
7
|
import { setTheme } from './themes/index';
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
declare const __VLS_component: DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_2> & Readonly<{}>, {
|
|
21
|
-
globalStore: Object;
|
|
22
|
-
sceneValue: SceneValue;
|
|
23
|
-
request: Function;
|
|
24
|
-
userInfo: AccountInfo;
|
|
25
|
-
independence: boolean;
|
|
26
|
-
slotKeys: Array<string>;
|
|
27
|
-
showThemeSetting: boolean;
|
|
28
|
-
showLangSetting: boolean;
|
|
29
|
-
showPreferencesSetting: boolean;
|
|
30
|
-
collapseMode: boolean;
|
|
31
|
-
disableFlatMode: boolean;
|
|
32
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
33
|
-
|
|
34
|
-
declare const __VLS_component_2: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
35
|
-
resetPwdDirectlySuccess: (...args: any[]) => void;
|
|
36
|
-
followDevCommunity: (...args: any[]) => void;
|
|
37
|
-
followUser: (...args: any[]) => void;
|
|
38
|
-
"update:openCreateDropdown": (...args: any[]) => void;
|
|
39
|
-
}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
|
|
40
|
-
onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
|
|
41
|
-
onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
|
|
42
|
-
onFollowUser?: ((...args: any[]) => any) | undefined;
|
|
43
|
-
"onUpdate:openCreateDropdown"?: ((...args: any[]) => any) | undefined;
|
|
44
|
-
}>, {
|
|
45
|
-
globalStore: Object;
|
|
46
|
-
isLogin: boolean;
|
|
47
|
-
sceneValue: SceneValue;
|
|
48
|
-
request: Function;
|
|
49
|
-
repoInfo: repoInfoType;
|
|
50
|
-
orgInfo: OrgInfo;
|
|
51
|
-
otherUserInfo: UserInfo;
|
|
52
|
-
userInfo: UserInfo;
|
|
53
|
-
independence: boolean;
|
|
54
|
-
headerBorder: boolean;
|
|
55
|
-
bgConfig: {
|
|
56
|
-
index_head: string;
|
|
57
|
-
detail_top: string;
|
|
58
|
-
detail_top_black: string;
|
|
59
|
-
detail_toolbar: string;
|
|
60
|
-
detail_toolbar_black: string;
|
|
61
|
-
detail_top_url: string;
|
|
62
|
-
index_head_url: string;
|
|
63
|
-
detail_toolbar_url: string;
|
|
64
|
-
};
|
|
65
|
-
openCreateDropdown: boolean;
|
|
66
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
67
|
-
headerRef: HTMLDivElement;
|
|
68
|
-
}, HTMLDivElement>;
|
|
69
|
-
|
|
70
|
-
declare type __VLS_Props = {
|
|
71
|
-
isLogin: boolean;
|
|
72
|
-
request: Function;
|
|
73
|
-
loginOutFinish?: Function;
|
|
74
|
-
loginSuccess: Function;
|
|
75
|
-
globalStore: Object;
|
|
76
|
-
openHarmonyGuide: boolean;
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
declare type __VLS_Props_2 = {
|
|
80
|
-
sceneValue: SceneValue;
|
|
81
|
-
isLogin: boolean;
|
|
82
|
-
request: Function;
|
|
83
|
-
loginOutFinish?: Function;
|
|
84
|
-
loginSuccess: Function;
|
|
85
|
-
globalStore: Object;
|
|
86
|
-
repoInfo?: repoInfoType;
|
|
87
|
-
orgInfo?: OrgInfo;
|
|
88
|
-
otherUserInfo?: UserInfo;
|
|
89
|
-
userInfo?: UserInfo;
|
|
90
|
-
headerFunctions?: HeaderDisplayItem[];
|
|
91
|
-
headerCustomProps?: HeaderPropsForCustom;
|
|
92
|
-
openHarmonyGuide: boolean;
|
|
93
|
-
headerBorder?: boolean;
|
|
94
|
-
independence?: boolean;
|
|
95
|
-
userMenus?: any[];
|
|
96
|
-
loginChildComponents: any;
|
|
97
|
-
bgConfig?: {
|
|
98
|
-
index_head: string;
|
|
99
|
-
detail_top: string;
|
|
100
|
-
detail_top_black: string;
|
|
101
|
-
detail_toolbar: string;
|
|
102
|
-
detail_toolbar_black: string;
|
|
103
|
-
detail_top_url: string;
|
|
104
|
-
index_head_url: string;
|
|
105
|
-
detail_toolbar_url: string;
|
|
106
|
-
};
|
|
107
|
-
openCreateDropdown?: boolean;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
declare function __VLS_template(): {
|
|
111
|
-
attrs: Partial<{}>;
|
|
112
|
-
slots: Partial<Record<string, (_: {}) => any>>;
|
|
113
|
-
refs: {};
|
|
114
|
-
rootEl: any;
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
declare function __VLS_template_2(): {
|
|
118
|
-
attrs: Partial<{}>;
|
|
119
|
-
slots: {
|
|
120
|
-
headerCustom?(_: {}): any;
|
|
121
|
-
aiSearch?(_: {}): any;
|
|
122
|
-
headerMiddleRight?(_: {}): any;
|
|
123
|
-
search?(_: {}): any;
|
|
124
|
-
searchRecommend?(_: {}): any;
|
|
125
|
-
globalSearch?(_: {
|
|
126
|
-
searchStr: string | LocationQueryValue[];
|
|
127
|
-
searchMore: (type: any) => void;
|
|
128
|
-
}): any;
|
|
129
|
-
bodyHeader?(_: {}): any;
|
|
130
|
-
info?(_: {}): any;
|
|
131
|
-
menu?(_: {}): any;
|
|
132
|
-
headerBottom?(_: {}): any;
|
|
133
|
-
};
|
|
134
|
-
refs: {
|
|
135
|
-
headerRef: HTMLDivElement;
|
|
136
|
-
};
|
|
137
|
-
rootEl: HTMLDivElement;
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
141
|
-
|
|
142
|
-
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
143
|
-
|
|
144
|
-
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
145
|
-
new (): {
|
|
146
|
-
$slots: S;
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
151
|
-
new (): {
|
|
152
|
-
$slots: S;
|
|
153
|
-
};
|
|
154
|
-
};
|
|
8
|
+
import { default as SiteAnnouncement } from './components/Header/components/SiteAnnouncement.vue';
|
|
9
|
+
import { default as ToolsFloat } from './components/ToolsFloat/index.vue';
|
|
155
10
|
|
|
156
11
|
declare interface BaseLayoutConfig {
|
|
157
12
|
VITE_HOST: string;
|
|
@@ -207,31 +62,13 @@ declare type EventBus = {
|
|
|
207
62
|
resetPwdDirectlySuccess: void;
|
|
208
63
|
};
|
|
209
64
|
|
|
210
|
-
export
|
|
65
|
+
export { GitCodeAside }
|
|
211
66
|
|
|
212
|
-
export
|
|
67
|
+
export { GitCodeHeader }
|
|
213
68
|
|
|
214
69
|
export declare const GitCodeLayoutEmitter: Emitter<EventBus>;
|
|
215
70
|
|
|
216
|
-
|
|
217
|
-
LOGIN_AND_AVATAR = "0101",
|
|
218
|
-
MESSAGE_CENTER = "0102",
|
|
219
|
-
NEW_BUTTON = "0103",
|
|
220
|
-
DOCUMENT_CENTER = "0104",
|
|
221
|
-
DEEPSEEK_BUTTON = "0105",
|
|
222
|
-
SEARCH_BUTTON = "0106",
|
|
223
|
-
NAME_AND_ICON = "0107",
|
|
224
|
-
CUSTOM_CONTENT = "0108",
|
|
225
|
-
ASIDE_BUTTON = "0109",
|
|
226
|
-
NEWS_MULTI_LANGUAGE = "0110",
|
|
227
|
-
OPERATION_ENTRY = "0111"
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
export declare const Login: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
231
|
-
globalStore: Object;
|
|
232
|
-
request: Function;
|
|
233
|
-
openHarmonyGuide: boolean;
|
|
234
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
71
|
+
export { Login }
|
|
235
72
|
|
|
236
73
|
declare interface LoginOptions {
|
|
237
74
|
Authorization?: boolean;
|
|
@@ -242,50 +79,6 @@ declare interface LoginOptions {
|
|
|
242
79
|
[x: string]: any;
|
|
243
80
|
}
|
|
244
81
|
|
|
245
|
-
declare interface Props {
|
|
246
|
-
/** 场景值 核心参数之一 */
|
|
247
|
-
sceneValue: SceneValue;
|
|
248
|
-
/** 是否登录 */
|
|
249
|
-
isLogin: boolean;
|
|
250
|
-
/** 请求实例 */
|
|
251
|
-
request: Function;
|
|
252
|
-
/** 全局store 上报需要 */
|
|
253
|
-
globalStore: {
|
|
254
|
-
isSignIn?: boolean;
|
|
255
|
-
[key: string]: any;
|
|
256
|
-
};
|
|
257
|
-
/** 是否为项目页 */
|
|
258
|
-
isRepoPage?: boolean;
|
|
259
|
-
/** 是否是白名单项目 - 白名单项目页,默认收起工具栏 */
|
|
260
|
-
isWhiteListRepo: boolean;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
declare interface Props_2 {
|
|
264
|
-
/** 场景值 核心参数之一 */
|
|
265
|
-
sceneValue: SceneValue;
|
|
266
|
-
/** 禁用 flat 模式 */
|
|
267
|
-
disableFlatMode?: boolean;
|
|
268
|
-
/** 用户信息 */
|
|
269
|
-
userInfo: AccountInfo;
|
|
270
|
-
/** 是否登录 */
|
|
271
|
-
isLogin: boolean;
|
|
272
|
-
/** 请求实例 */
|
|
273
|
-
request: Function;
|
|
274
|
-
/** 全局store 上报需要 */
|
|
275
|
-
globalStore: Object;
|
|
276
|
-
/** 是否独立部署 */
|
|
277
|
-
independence?: boolean;
|
|
278
|
-
/** 是否显示偏好设置 */
|
|
279
|
-
showPreferencesSetting?: boolean | undefined;
|
|
280
|
-
/** 是否显示主题设置 */
|
|
281
|
-
showThemeSetting?: boolean | undefined;
|
|
282
|
-
/** 是否显示语言设置 */
|
|
283
|
-
showLangSetting?: boolean | undefined;
|
|
284
|
-
collapseMode?: boolean;
|
|
285
|
-
/** 需要显示hover的slotKeys */
|
|
286
|
-
slotKeys?: Array<string>;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
82
|
export declare enum SceneValue {
|
|
290
83
|
home = "home",
|
|
291
84
|
repo = "repo",
|
|
@@ -303,32 +96,9 @@ export declare function setLayoutConfig(customConfig: BaseLayoutConfig): void;
|
|
|
303
96
|
|
|
304
97
|
export { setTheme }
|
|
305
98
|
|
|
306
|
-
export
|
|
307
|
-
|
|
308
|
-
declare const TOOLS_FLOAT_COLLAPSE_STATUS: {
|
|
309
|
-
COLLAPSE: string;
|
|
310
|
-
EXPAND: string;
|
|
311
|
-
};
|
|
312
|
-
|
|
313
|
-
export declare const ToolsFloat: DefineComponent<Props, {
|
|
314
|
-
handleCollapseTool: (status: ToolsFloatCollapseStatusType) => void;
|
|
315
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
316
|
-
"toggle-growth-center": () => any;
|
|
317
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
318
|
-
"onToggle-growth-center"?: (() => any) | undefined;
|
|
319
|
-
}>, {
|
|
320
|
-
globalStore: {
|
|
321
|
-
isSignIn?: boolean;
|
|
322
|
-
[key: string]: any;
|
|
323
|
-
};
|
|
324
|
-
isLogin: boolean;
|
|
325
|
-
sceneValue: SceneValue;
|
|
326
|
-
request: Function;
|
|
327
|
-
isRepoPage: boolean;
|
|
328
|
-
isWhiteListRepo: boolean;
|
|
329
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
99
|
+
export { SiteAnnouncement }
|
|
330
100
|
|
|
331
|
-
|
|
101
|
+
export { ToolsFloat }
|
|
332
102
|
|
|
333
103
|
export declare function useLogin(request: any, globalStore?: any): {
|
|
334
104
|
login: (options?: LoginOptions, loginSuccess?: Function, openHarmonyGuide?: boolean) => void;
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, createBlock, openBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
|
|
2
|
-
import { i as isPhone, u as useModel } from "./index-
|
|
2
|
+
import { i as isPhone, u as useModel } from "./index-3wv-r-ed.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: "mr-[8px]"
|
|
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
|
]),
|