vue-layout-gitcode 1.12.15-beta.26 → 1.12.15-beta.27
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-wqsnpP2m.js → GloabarSearch-BdIj2ENE.js} +4 -4
- package/{MenuItem-j7W1oMju.js → MenuItem-B0ZDoUJ2.js} +2 -2
- package/{ProjectMenuList-DHbbjGxo.js → ProjectMenuList-DqXoEiki.js} +11 -11
- package/{ProjectMenuListV2-BazzlsC_.js → ProjectMenuListV2-64pXCuaX.js} +4 -4
- package/{ProjectSearch-CSulM69L.js → ProjectSearch-B3CEn8kp.js} +2 -2
- package/{SearchHistoryList-CBn618x7.js → SearchHistoryList-CrPblzMX.js} +6 -6
- package/{SearchRecommed-r1nKqpZj.js → SearchRecommed-Ba72ic7U.js} +4 -5
- package/{SearchScopeList-DACIOE9u.js → SearchScopeList-Cpu9VmlK.js} +3 -3
- package/{UserSearch-DyVpJ0tp.js → UserSearch-lV9fOnc2.js} +2 -2
- package/{index-B_T2V97k.js → index-BTlwINfN.js} +2429 -1534
- package/{index-C1SjxHTG.js → index-CVfeH6t4.js} +5 -6
- package/{index-ClxSV-6C.js → index-Dl26m-kE.js} +45 -48
- package/{index-DSVBUinv.js → index-DwzU-6hv.js} +2 -2
- package/index.d.ts +50 -4
- package/index.js +18 -16
- package/{notice-CM_TjS9s.js → notice-BOdPWovg.js} +11 -13
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-C-UERlNj.js → transWebUrl-CQYz4Q9T.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, openBlock, createBlock, unref, withCtx, createElementVNode } from "vue";
|
|
2
|
+
import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-BTlwINfN.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,11 +105,10 @@ 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(() => _cache[0] || (_cache[0] = [
|
|
108
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
109
109
|
createElementVNode("div", { id: "captcha-box" }, null, -1)
|
|
110
|
-
])),
|
|
111
|
-
_: 1
|
|
112
|
-
__: [0]
|
|
110
|
+
])]),
|
|
111
|
+
_: 1
|
|
113
112
|
});
|
|
114
113
|
};
|
|
115
114
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref, watchEffect, defineComponent, toDisplayString, unref,
|
|
1
|
+
import { ref, watchEffect, defineComponent, toDisplayString, unref, useModel, watch, openBlock, createElementBlock, createVNode, normalizeClass, withDirectives, createElementVNode, vShow, mergeModels, inject, withModifiers, createBlock, Fragment, computed, normalizeStyle, createCommentVNode, 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, r as reqCatch, f as useRequestReport, 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-BTlwINfN.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-CQYz4Q9T.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: __props.number, fixed: __props.fixed, byte: __props.byte, gt100: __props.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
|
+
__props.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: __props.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
|
+
!__props.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: __props.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 ", -1)),
|
|
387
387
|
createVNode(_sfc_main$a, {
|
|
388
|
-
number:
|
|
388
|
+
number: __props.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
|
+
__props.tagInfo ? (openBlock(), createBlock(LanguageTag, {
|
|
449
449
|
key: 0,
|
|
450
|
-
"tag-info":
|
|
450
|
+
"tag-info": __props.tagInfo
|
|
451
451
|
}, null, 8, ["tag-info"])) : createCommentVNode("", true),
|
|
452
|
-
!
|
|
452
|
+
!__props.hideStarCount ? (openBlock(), createBlock(StarCountOne, {
|
|
453
453
|
key: 1,
|
|
454
454
|
hideText: "",
|
|
455
|
-
starCountOne:
|
|
455
|
+
starCountOne: __props.repoInfo.star_count
|
|
456
456
|
}, null, 8, ["starCountOne"])) : createCommentVNode("", true),
|
|
457
|
-
|
|
457
|
+
__props.repoInfo.forks_count ? (openBlock(), createBlock(ForkTag, {
|
|
458
458
|
key: 2,
|
|
459
|
-
count:
|
|
459
|
+
count: __props.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
|
+
!__props.hideUpdateTime ? (openBlock(), createElementBlock("div", _hoisted_3$2, toDisplayString(unref(formatTimeFromNow)((__props.searchCard ? __props.repoInfo.last_repository_updated_at : __props.repoInfo.last_activity_at) || __props.repoInfo.last_activity_at)), 1)) : createCommentVNode("", true),
|
|
463
|
+
!__props.hideStarIncrease && __props.repoInfo.star_count_one ? (openBlock(), createBlock(StarCountOne, {
|
|
464
464
|
key: 5,
|
|
465
|
-
starCountOne:
|
|
465
|
+
starCountOne: __props.repoInfo.star_count_one
|
|
466
466
|
}, null, 8, ["starCountOne"])) : createCommentVNode("", true),
|
|
467
|
-
|
|
467
|
+
__props.repoInfo.is_gh_mirrors ? (openBlock(), createBlock(GithubStarNum, {
|
|
468
468
|
key: 6,
|
|
469
|
-
count:
|
|
469
|
+
count: __props.repoInfo.import_star_count
|
|
470
470
|
}, null, 8, ["count"])) : createCommentVNode("", true)
|
|
471
471
|
])
|
|
472
472
|
]),
|
|
473
|
-
!
|
|
473
|
+
!__props.hideTopicTags && topicNames.value.length && __props.searchCard ? (openBlock(), createElementBlock("div", {
|
|
474
474
|
key: 0,
|
|
475
475
|
class: "topic-tags",
|
|
476
476
|
ref_key: "topicTagsRef",
|
|
@@ -534,8 +534,7 @@ 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
|
|
538
|
-
__: [0]
|
|
537
|
+
_: 1
|
|
539
538
|
})) : createCommentVNode("", true);
|
|
540
539
|
};
|
|
541
540
|
}
|
|
@@ -719,7 +718,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
719
718
|
});
|
|
720
719
|
return (_ctx, _cache) => {
|
|
721
720
|
return openBlock(), createElementBlock("a", {
|
|
722
|
-
class: normalizeClass(["i-search-projects-card", { noborder:
|
|
721
|
+
class: normalizeClass(["i-search-projects-card", { noborder: __props.noborder, "full-hover": __props.hover }]),
|
|
723
722
|
onClick: handleClick
|
|
724
723
|
}, [
|
|
725
724
|
createVNode(unref(Row), { class: "i-search-projects-card-title" }, {
|
|
@@ -733,45 +732,43 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
733
732
|
return [
|
|
734
733
|
createVNode(GIcon, {
|
|
735
734
|
name: iconName.value,
|
|
736
|
-
class: normalizeClass({ "align-middle":
|
|
735
|
+
class: normalizeClass({ "align-middle": __props.info.is_gh_mirrors }),
|
|
737
736
|
color: "var(--theme-placeholder)"
|
|
738
737
|
}, null, 8, ["name", "class"]),
|
|
739
738
|
createElementVNode("span", {
|
|
740
739
|
class: "repo-title",
|
|
741
740
|
innerHTML: preHandWord()
|
|
742
741
|
}, null, 8, _hoisted_1),
|
|
743
|
-
|
|
744
|
-
unref(isGstarRepo)(
|
|
742
|
+
__props.info.show_recommend_icon ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref($t)("gitCodeLayout.search.recommendTag")), 1)) : createCommentVNode("", true),
|
|
743
|
+
unref(isGstarRepo)(__props.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
745
744
|
createVNode(_sfc_main$b, {
|
|
746
745
|
origin: "repo",
|
|
747
746
|
icon: "",
|
|
748
747
|
type: "gstar",
|
|
749
748
|
message: `G-Star ${unref($t)("gitCodeLayout.GStar.project.graduation")}`
|
|
750
749
|
}, {
|
|
751
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
752
|
-
createTextVNode("G-Star ")
|
|
753
|
-
])),
|
|
754
|
-
_: 1
|
|
755
|
-
__: [0]
|
|
750
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
751
|
+
createTextVNode("G-Star ", -1)
|
|
752
|
+
])]),
|
|
753
|
+
_: 1
|
|
756
754
|
}, 8, ["message"])
|
|
757
755
|
])) : createCommentVNode("", true),
|
|
758
|
-
unref(isIncubationRepo)(
|
|
756
|
+
unref(isIncubationRepo)(__props.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
759
757
|
createVNode(_sfc_main$b, {
|
|
760
758
|
origin: "repo",
|
|
761
759
|
icon: "",
|
|
762
760
|
type: "incubation",
|
|
763
761
|
message: `G-Star ${unref($t)("gitCodeLayout.GStar.project.incubation")}`
|
|
764
762
|
}, {
|
|
765
|
-
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
766
|
-
createTextVNode(" G-Star ")
|
|
767
|
-
])),
|
|
768
|
-
_: 1
|
|
769
|
-
__: [1]
|
|
763
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
764
|
+
createTextVNode(" G-Star ", -1)
|
|
765
|
+
])]),
|
|
766
|
+
_: 1
|
|
770
767
|
}, 8, ["message"])
|
|
771
768
|
])) : createCommentVNode("", true),
|
|
772
769
|
createVNode(NewTag, {
|
|
773
|
-
repoType:
|
|
774
|
-
isNew: ((_a =
|
|
770
|
+
repoType: __props.cardType,
|
|
771
|
+
isNew: ((_a = __props.info) == null ? void 0 : _a.is_new) || false
|
|
775
772
|
}, null, 8, ["repoType", "isNew"])
|
|
776
773
|
];
|
|
777
774
|
}),
|
|
@@ -779,7 +776,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
779
776
|
}),
|
|
780
777
|
createVNode(unref(Col), { flex: "none" }, {
|
|
781
778
|
default: withCtx(() => [
|
|
782
|
-
!
|
|
779
|
+
!__props.hideStarBtn ? (openBlock(), createBlock(StarTag, {
|
|
783
780
|
key: 0,
|
|
784
781
|
isLike: isModel.value,
|
|
785
782
|
"star-info": starInfo.value,
|
|
@@ -791,12 +788,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
791
788
|
]),
|
|
792
789
|
_: 1
|
|
793
790
|
}),
|
|
794
|
-
!
|
|
791
|
+
!__props.hideDescription ? (openBlock(), createElementBlock("div", {
|
|
795
792
|
key: 0,
|
|
796
793
|
innerHTML: unref(highlightWords)("", description.value),
|
|
797
794
|
class: "i-search-projects-card-desc ellipsis"
|
|
798
795
|
}, null, 8, _hoisted_5)) : createCommentVNode("", true),
|
|
799
|
-
|
|
796
|
+
__props.info.index === 0 && __props.info.is_recommend ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
800
797
|
queryLoading.value ? (openBlock(), createBlock(unref(Skeleton), { key: 0 }, {
|
|
801
798
|
placeholder: withCtx(() => [
|
|
802
799
|
createVNode(unref(Row), {
|
|
@@ -836,14 +833,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
836
833
|
})) : createCommentVNode("", true)
|
|
837
834
|
])) : isModel.value ? (openBlock(), createBlock(ModelCardFooter, {
|
|
838
835
|
key: 2,
|
|
839
|
-
repoInfo:
|
|
836
|
+
repoInfo: __props.info
|
|
840
837
|
}, null, 8, ["repoInfo"])) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
841
|
-
!
|
|
838
|
+
!__props.hideFooter ? (openBlock(), createBlock(RepoCardFooter, {
|
|
842
839
|
key: 0,
|
|
843
|
-
hideTopicTags:
|
|
840
|
+
hideTopicTags: __props.hideTopicTags,
|
|
844
841
|
hideStarCount: "",
|
|
845
842
|
tagInfo: tagInfo.value,
|
|
846
|
-
repoInfo:
|
|
843
|
+
repoInfo: __props.info,
|
|
847
844
|
searchCard: "",
|
|
848
845
|
class: "i-search-projects-card-bottom",
|
|
849
846
|
onTopicClick: handleTopicClick
|
|
@@ -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, openBlock, createBlock, 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-BTlwINfN.js";
|
|
12
12
|
const _YunpianCaptchaManager = class _YunpianCaptchaManager {
|
|
13
13
|
// eslint-disable-next-line no-useless-constructor
|
|
14
14
|
constructor() {
|
package/index.d.ts
CHANGED
|
@@ -92,11 +92,11 @@ openCreateDropdown: boolean;
|
|
|
92
92
|
headerRef: HTMLDivElement;
|
|
93
93
|
}, HTMLDivElement>;
|
|
94
94
|
|
|
95
|
-
declare const __VLS_component_4: DefineComponent<
|
|
95
|
+
declare const __VLS_component_4: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
96
96
|
resetPwdDirectlySuccess: (...args: any[]) => void;
|
|
97
97
|
followDevCommunity: (...args: any[]) => void;
|
|
98
98
|
followUser: (...args: any[]) => void;
|
|
99
|
-
}, string, PublicProps, Readonly<
|
|
99
|
+
}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{
|
|
100
100
|
onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
|
|
101
101
|
onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
|
|
102
102
|
onFollowUser?: ((...args: any[]) => any) | undefined;
|
|
@@ -151,6 +151,10 @@ declare type __VLS_Props_2 = {
|
|
|
151
151
|
detail_toolbar_url: string;
|
|
152
152
|
};
|
|
153
153
|
openCreateDropdown?: boolean;
|
|
154
|
+
/** Header 新建菜单项,默认使用七项公共菜单 */
|
|
155
|
+
createMenuItems?: HeaderCreateMenuItem[];
|
|
156
|
+
/** Header 新建菜单跳转适配器 */
|
|
157
|
+
createMenuNavigate?: HeaderCreateMenuNavigate;
|
|
154
158
|
};
|
|
155
159
|
|
|
156
160
|
declare type __VLS_Props_3 = {
|
|
@@ -159,6 +163,17 @@ declare type __VLS_Props_3 = {
|
|
|
159
163
|
};
|
|
160
164
|
|
|
161
165
|
declare type __VLS_Props_4 = {
|
|
166
|
+
/** 是否由外部控制下拉展开状态。 */
|
|
167
|
+
dropdownVisible?: boolean;
|
|
168
|
+
/** 是否展示组织入口。 */
|
|
169
|
+
isCreateOrg?: boolean;
|
|
170
|
+
/** 覆写默认七项菜单,适用于工作区等宿主上下文。 */
|
|
171
|
+
items?: HeaderCreateMenuItem[];
|
|
172
|
+
/** 覆写默认跳转行为,宿主可在这里接入自己的 router 或权限校验。 */
|
|
173
|
+
onNavigate?: HeaderCreateMenuNavigate;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
declare type __VLS_Props_5 = {
|
|
162
177
|
isLogin: boolean;
|
|
163
178
|
request: Function;
|
|
164
179
|
globalStore: Object;
|
|
@@ -175,7 +190,7 @@ declare type __VLS_Props_4 = {
|
|
|
175
190
|
loginChildComponents: any;
|
|
176
191
|
};
|
|
177
192
|
|
|
178
|
-
declare type
|
|
193
|
+
declare type __VLS_Props_6 = {
|
|
179
194
|
/** 展示主题设置项,默认 true */
|
|
180
195
|
showThemeSetting?: boolean;
|
|
181
196
|
/** 展示语言设置项,默认 true */
|
|
@@ -283,7 +298,7 @@ declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
|
283
298
|
};
|
|
284
299
|
};
|
|
285
300
|
|
|
286
|
-
export declare const AsideFooterTools: DefineComponent<
|
|
301
|
+
export declare const AsideFooterTools: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{}>, {
|
|
287
302
|
position: string[];
|
|
288
303
|
showThemeSetting: boolean;
|
|
289
304
|
showLangSetting: boolean;
|
|
@@ -411,6 +426,37 @@ export declare const GitCodeHeader: __VLS_WithTemplateSlots_3<typeof __VLS_compo
|
|
|
411
426
|
|
|
412
427
|
export declare const GitCodeLayoutEmitter: Emitter<EventBus>;
|
|
413
428
|
|
|
429
|
+
/** 默认 Header 新建菜单的路径顺序,与工作台 Header 保持一致。 */
|
|
430
|
+
export declare const HEADER_CREATE_MENU_PATHS: readonly ["/create?position=nav_top", "/create/migrate?type=3", "/models/create", "/datasets/create", "/space/create", "/collections/create", "/org/create"];
|
|
431
|
+
|
|
432
|
+
export declare const HeaderCreateMenu: DefineComponent_2<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {
|
|
433
|
+
navigate: (item: HeaderCreateMenuItem) => any;
|
|
434
|
+
"update:dropdownVisible": (visible: boolean) => any;
|
|
435
|
+
}, string, PublicProps_2, Readonly<__VLS_Props_4> & Readonly<{
|
|
436
|
+
onNavigate?: ((item: HeaderCreateMenuItem) => any) | undefined;
|
|
437
|
+
"onUpdate:dropdownVisible"?: ((visible: boolean) => any) | undefined;
|
|
438
|
+
}>, {
|
|
439
|
+
dropdownVisible: boolean;
|
|
440
|
+
isCreateOrg: boolean;
|
|
441
|
+
items: HeaderCreateMenuItem[];
|
|
442
|
+
onNavigate: HeaderCreateMenuNavigate;
|
|
443
|
+
}, {}, {}, {}, string, ComponentProvideOptions_2, false, {
|
|
444
|
+
triggerRef: HTMLButtonElement;
|
|
445
|
+
menuRef: HTMLDivElement;
|
|
446
|
+
}, HTMLDivElement>;
|
|
447
|
+
|
|
448
|
+
/** Header 新建菜单项。宿主项目可以用它覆写默认的七项菜单。 */
|
|
449
|
+
export declare interface HeaderCreateMenuItem {
|
|
450
|
+
key: string;
|
|
451
|
+
icon: string;
|
|
452
|
+
label: string;
|
|
453
|
+
href: string;
|
|
454
|
+
dividerBefore?: boolean;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/** 自定义新建菜单跳转适配器。 */
|
|
458
|
+
export declare type HeaderCreateMenuNavigate = (item: HeaderCreateMenuItem) => void | Promise<void>;
|
|
459
|
+
|
|
414
460
|
declare enum HeaderDisplayItem {
|
|
415
461
|
LOGIN_AND_AVATAR = "0101",
|
|
416
462
|
MESSAGE_CENTER = "0102",
|
package/index.js
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { O, P, Q, S, U, V, W, X, Y, Z, $, a0, a1, a2, B, a3, a4, a5, a6 } from "./index-BTlwINfN.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
O as AsideFooterTools,
|
|
4
|
+
P as EnterpriseHeader,
|
|
5
5
|
Q as GitCodeAside,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
S as GitCodeAsideV2,
|
|
7
|
+
U as GitCodeHeader,
|
|
8
|
+
V as GitCodeLayoutEmitter,
|
|
9
|
+
W as HEADER_CREATE_MENU_PATHS,
|
|
10
|
+
X as HeaderCreateMenu,
|
|
11
|
+
Y as HomeHeaderActions,
|
|
12
|
+
Z as Login,
|
|
13
|
+
$ as SceneValue,
|
|
14
|
+
a0 as ScrollActiveContainer,
|
|
15
|
+
a1 as SiteAnnouncement,
|
|
16
|
+
a2 as ToolsFloat,
|
|
15
17
|
B as currentTheme,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
a3 as default,
|
|
19
|
+
a4 as setLayoutConfig,
|
|
20
|
+
a5 as setTheme,
|
|
21
|
+
a6 as useLogin
|
|
20
22
|
};
|
|
@@ -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, openBlock, createBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
|
|
2
|
+
import { i as isPhone, u as useModel, _ as _export_sfc } from "./index-BTlwINfN.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,14 +33,13 @@ 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: __props.onClose,
|
|
37
37
|
class: "email-notice__btn-ignore"
|
|
38
38
|
}, {
|
|
39
|
-
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
40
|
-
createTextVNode("忽略")
|
|
41
|
-
])),
|
|
42
|
-
_: 1
|
|
43
|
-
__: [1]
|
|
39
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
40
|
+
createTextVNode("忽略", -1)
|
|
41
|
+
])]),
|
|
42
|
+
_: 1
|
|
44
43
|
}, 8, ["size", "onClick"]),
|
|
45
44
|
createVNode(unref(Button), {
|
|
46
45
|
variant: "solid",
|
|
@@ -48,11 +47,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
47
|
color: "primary",
|
|
49
48
|
onClick: handleConfirm
|
|
50
49
|
}, {
|
|
51
|
-
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
52
|
-
createTextVNode("修改")
|
|
53
|
-
])),
|
|
54
|
-
_: 1
|
|
55
|
-
__: [2]
|
|
50
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
51
|
+
createTextVNode("修改", -1)
|
|
52
|
+
])]),
|
|
53
|
+
_: 1
|
|
56
54
|
}, 8, ["size"])
|
|
57
55
|
], 2)
|
|
58
56
|
]),
|