vue-layout-gitcode 1.12.34 → 1.12.35
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-DvgDMvgv.js → GloabarSearch-CEtgWiTd.js} +9 -9
- package/{MenuItem-BJi1TIAW.js → MenuItem-CRrWzBu_.js} +4 -4
- package/{ProjectMenuList-B9ndArm7.js → ProjectMenuList---Zn6tsu.js} +20 -20
- package/{ProjectMenuListV2-C9gbFrMy.js → ProjectMenuListV2-qjzqvCAU.js} +9 -9
- package/{ProjectSearch-CKMlZXBZ.js → ProjectSearch-DKnhz2i-.js} +27 -19
- package/{SearchHistoryList-BI2TtBMA.js → SearchHistoryList-D_WQH3k0.js} +7 -7
- package/{SearchRecommed-D4IS58Qy.js → SearchRecommed-C7iod1dC.js} +7 -7
- package/{SearchScopeList-DF4bvq2k.js → SearchScopeList-lewgMZ_-.js} +6 -6
- package/{UserSearch-DH9xxOrf.js → UserSearch-CyPQD5Rt.js} +6 -6
- package/{index-2l6YPDov.js → index-BG3HvdyT.js} +4 -4
- package/{index-C0Ixjtci.js → index-BsyIPSbg.js} +71 -71
- package/{index-BYIXHuOy.js → index-Cx67TeFL.js} +4027 -2059
- package/{index-COV_1Ik6.js → index-erL3lMa7.js} +2 -2
- package/index.d.ts +508 -478
- package/index.js +20 -13
- package/{notice-B3Mv74nx.js → notice-2WSok1Yq.js} +14 -13
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-C3zC-G_1.js → transWebUrl-ChZBJdJ1.js} +1 -1
package/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AccountInfo } from '../../types/types';
|
|
2
2
|
import { App } from '../vue/dist/vue.esm-bundler.js';
|
|
3
|
-
import { AxiosResponse } from 'axios';
|
|
4
3
|
import { ComponentOptionsMixin } from '../../../vue/dist/vue.esm-bundler.js';
|
|
5
4
|
import { ComponentOptionsMixin as ComponentOptionsMixin_2 } from '../../../../vue/dist/vue.esm-bundler.js';
|
|
6
5
|
import { ComponentProvideOptions } from '../../../vue/dist/vue.esm-bundler.js';
|
|
@@ -9,120 +8,302 @@ import { currentTheme } from './themes/index';
|
|
|
9
8
|
import { DefineComponent } from '../../../vue/dist/vue.esm-bundler.js';
|
|
10
9
|
import { DefineComponent as DefineComponent_2 } from '../../../../vue/dist/vue.esm-bundler.js';
|
|
11
10
|
import { Emitter } from 'mitt';
|
|
12
|
-
import { ExtractPropTypes } from '../../../vue/dist/vue.esm-bundler.js';
|
|
13
11
|
import { HeaderPropsForCustom } from '../../types/types';
|
|
14
12
|
import { OrgInfo } from '../../types/types';
|
|
15
|
-
import { PropType } from '../../../vue/dist/vue.esm-bundler.js';
|
|
16
13
|
import { PublicProps } from '../../../vue/dist/vue.esm-bundler.js';
|
|
17
14
|
import { PublicProps as PublicProps_2 } from '../../../../vue/dist/vue.esm-bundler.js';
|
|
15
|
+
import { Ref } from '../../../vue/dist/vue.esm-bundler.js';
|
|
18
16
|
import { repoInfoType } from '../../types/types';
|
|
19
17
|
import { setTheme } from './themes/index';
|
|
20
18
|
import { UserInfo } from '../../types/types';
|
|
21
19
|
|
|
22
|
-
declare
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
declare
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
+
showThemeSetting: boolean;
|
|
27
|
+
showLangSetting: boolean;
|
|
28
|
+
disableFlatMode: boolean;
|
|
29
|
+
collapseMode: boolean;
|
|
30
|
+
slotKeys: Array<string>;
|
|
31
|
+
showPreferencesSetting: boolean;
|
|
32
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
|
|
34
|
+
declare const __VLS_component_2: DefineComponent<Props_4, {
|
|
35
|
+
containerEl: Ref<HTMLElement | null, HTMLElement | null>;
|
|
36
|
+
contentEl: Ref<HTMLElement | null, HTMLElement | null>;
|
|
37
|
+
trackEl: Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
38
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
39
|
+
mouseenter: (event: MouseEvent) => any;
|
|
40
|
+
mouseleave: (event: MouseEvent) => any;
|
|
41
|
+
scroll: (event: Event) => any;
|
|
42
|
+
}, string, PublicProps, Readonly<Props_4> & Readonly<{
|
|
43
|
+
onMouseenter?: ((event: MouseEvent) => any) | undefined;
|
|
44
|
+
onMouseleave?: ((event: MouseEvent) => any) | undefined;
|
|
45
|
+
onScroll?: ((event: Event) => any) | undefined;
|
|
46
|
+
}>, {
|
|
47
|
+
timeout: number;
|
|
48
|
+
tag: string;
|
|
49
|
+
direction: "vertical" | "horizontal";
|
|
50
|
+
visibleOnHover: boolean;
|
|
51
|
+
wrapperClass: string;
|
|
52
|
+
contentClass: string;
|
|
53
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
54
|
+
containerRef: unknown;
|
|
55
|
+
contentRef: HTMLDivElement;
|
|
56
|
+
trackRef: HTMLDivElement;
|
|
57
|
+
}, any>;
|
|
58
|
+
|
|
59
|
+
declare const __VLS_component_3: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
60
|
+
resetPwdDirectlySuccess: (...args: any[]) => void;
|
|
61
|
+
followDevCommunity: (...args: any[]) => void;
|
|
62
|
+
followUser: (...args: any[]) => void;
|
|
63
|
+
"update:openCreateDropdown": (...args: any[]) => void;
|
|
64
|
+
}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
|
|
65
|
+
onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
|
|
66
|
+
onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
onFollowUser?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
"onUpdate:openCreateDropdown"?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
}>, {
|
|
70
|
+
globalStore: Object;
|
|
71
|
+
isLogin: boolean;
|
|
72
|
+
sceneValue: SceneValue;
|
|
73
|
+
request: Function;
|
|
74
|
+
repoInfo: repoInfoType;
|
|
75
|
+
orgInfo: OrgInfo;
|
|
76
|
+
otherUserInfo: UserInfo;
|
|
77
|
+
userInfo: UserInfo;
|
|
78
|
+
independence: boolean;
|
|
79
|
+
atomcodeLaunchQs: string;
|
|
80
|
+
launchAtomCode: () => void | Promise<void>;
|
|
81
|
+
headerBorder: boolean;
|
|
82
|
+
bgConfig: {
|
|
83
|
+
index_head: string;
|
|
84
|
+
detail_top: string;
|
|
85
|
+
detail_top_black: string;
|
|
86
|
+
detail_toolbar: string;
|
|
87
|
+
detail_toolbar_black: string;
|
|
88
|
+
detail_top_url: string;
|
|
89
|
+
index_head_url: string;
|
|
90
|
+
detail_toolbar_url: string;
|
|
91
|
+
};
|
|
92
|
+
openCreateDropdown: boolean;
|
|
93
|
+
showAtomCodeLauncher: boolean;
|
|
94
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
95
|
+
headerRef: HTMLDivElement;
|
|
96
|
+
}, HTMLDivElement>;
|
|
47
97
|
|
|
48
|
-
declare
|
|
49
|
-
|
|
50
|
-
|
|
98
|
+
declare const __VLS_component_4: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
99
|
+
resetPwdDirectlySuccess: (...args: any[]) => void;
|
|
100
|
+
followDevCommunity: (...args: any[]) => void;
|
|
101
|
+
followUser: (...args: any[]) => void;
|
|
102
|
+
}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{
|
|
103
|
+
onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
|
|
104
|
+
onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
|
|
105
|
+
onFollowUser?: ((...args: any[]) => any) | undefined;
|
|
106
|
+
}>, {
|
|
107
|
+
globalStore: Record<string, unknown>;
|
|
108
|
+
isLogin: boolean;
|
|
109
|
+
request: Function;
|
|
110
|
+
orgInfo: OrgInfo;
|
|
111
|
+
userInfo: UserInfo;
|
|
112
|
+
independence: boolean;
|
|
113
|
+
atomcodeLaunchQs: string;
|
|
114
|
+
launchAtomCode: () => void | Promise<void>;
|
|
115
|
+
headerBorder: boolean;
|
|
116
|
+
showAtomCodeLauncher: boolean;
|
|
117
|
+
enterpriseInfo: OrgInfo;
|
|
118
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
119
|
+
headerRef: HTMLDivElement;
|
|
120
|
+
}, HTMLDivElement>;
|
|
51
121
|
|
|
52
|
-
declare type
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
122
|
+
declare type __VLS_Props = {
|
|
123
|
+
isLogin: boolean;
|
|
124
|
+
request: Function;
|
|
125
|
+
loginOutFinish?: Function;
|
|
126
|
+
loginSuccess: Function;
|
|
127
|
+
globalStore: Object;
|
|
128
|
+
openHarmonyGuide: boolean;
|
|
59
129
|
};
|
|
60
130
|
|
|
61
|
-
declare type
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
131
|
+
declare type __VLS_Props_2 = {
|
|
132
|
+
sceneValue: SceneValue;
|
|
133
|
+
isLogin: boolean;
|
|
134
|
+
request: Function;
|
|
135
|
+
loginOutFinish?: Function;
|
|
136
|
+
loginSuccess: Function;
|
|
137
|
+
globalStore: Object;
|
|
138
|
+
repoInfo?: repoInfoType;
|
|
139
|
+
orgInfo?: OrgInfo;
|
|
140
|
+
otherUserInfo?: UserInfo;
|
|
141
|
+
userInfo?: UserInfo;
|
|
142
|
+
headerFunctions?: HeaderDisplayItem[];
|
|
143
|
+
headerCustomProps?: HeaderPropsForCustom;
|
|
144
|
+
openHarmonyGuide: boolean;
|
|
145
|
+
headerBorder?: boolean;
|
|
146
|
+
independence?: boolean;
|
|
147
|
+
userMenus?: any[];
|
|
148
|
+
loginChildComponents: any;
|
|
149
|
+
bgConfig?: {
|
|
150
|
+
index_head: string;
|
|
151
|
+
detail_top: string;
|
|
152
|
+
detail_top_black: string;
|
|
153
|
+
detail_toolbar: string;
|
|
154
|
+
detail_toolbar_black: string;
|
|
155
|
+
detail_top_url: string;
|
|
156
|
+
index_head_url: string;
|
|
157
|
+
detail_toolbar_url: string;
|
|
67
158
|
};
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
159
|
+
openCreateDropdown?: boolean;
|
|
160
|
+
/** Header 新建菜单项,默认使用七项公共菜单 */
|
|
161
|
+
createMenuItems?: HeaderCreateMenuItem[];
|
|
162
|
+
/** Header 新建菜单跳转适配器 */
|
|
163
|
+
createMenuNavigate?: HeaderCreateMenuNavigate;
|
|
164
|
+
/** 工作台按钮站内路由跳转适配器 */
|
|
165
|
+
workspaceNavigate?: HomeHeaderWorkspaceNavigate;
|
|
166
|
+
/** AtomCode 工作台 query string 参数 */
|
|
167
|
+
atomcodeLaunchQs?: string;
|
|
168
|
+
/** 是否展示 AtomCodeLauncher 引导入口 */
|
|
169
|
+
showAtomCodeLauncher?: boolean;
|
|
170
|
+
/** AtomCode 点击启动函数属性(若定义则在点击 AtomCode 主按钮时触发,而不调用 openAtomCode) */
|
|
171
|
+
launchAtomCode?: () => void | Promise<void>;
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
declare type __VLS_Props_3 = {
|
|
175
|
+
customItems?: HomePageSidebarItem[];
|
|
176
|
+
fallbacks?: Partial<HomeHeaderActionUrls>;
|
|
177
|
+
/** 宿主应用可接管工作台的站内路由跳转。 */
|
|
178
|
+
workspaceNavigate?: HomeHeaderWorkspaceNavigate;
|
|
179
|
+
isLogin?: boolean;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
declare type __VLS_Props_4 = {
|
|
183
|
+
atomcodeLaunchQs?: string;
|
|
184
|
+
isLogin?: boolean;
|
|
185
|
+
/** 自定义触发打开 AtomCode 的方法,若定义则在点击主按钮时触发,而不调用 openAtomCode */
|
|
186
|
+
launchAtomCode?: () => void | Promise<void>;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
declare type __VLS_Props_5 = {
|
|
190
|
+
/** 是否由外部控制下拉展开状态。 */
|
|
191
|
+
dropdownVisible?: boolean;
|
|
192
|
+
/** 是否展示组织入口。 */
|
|
193
|
+
isCreateOrg?: boolean;
|
|
194
|
+
/** 覆写默认七项菜单,适用于工作区等宿主上下文。 */
|
|
195
|
+
items?: HeaderCreateMenuItem[];
|
|
196
|
+
/** 覆写默认跳转行为,宿主可在这里接入自己的 router 或权限校验。 */
|
|
197
|
+
onNavigate?: HeaderCreateMenuNavigate;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
declare type __VLS_Props_6 = {
|
|
201
|
+
isLogin: boolean;
|
|
202
|
+
request: Function;
|
|
203
|
+
globalStore: Record<string, unknown>;
|
|
204
|
+
loginSuccess: Function;
|
|
205
|
+
enterpriseInfo: OrgInfo;
|
|
206
|
+
loginOutFinish?: Function;
|
|
207
|
+
orgInfo?: OrgInfo;
|
|
208
|
+
userInfo?: UserInfo;
|
|
209
|
+
headerFunctions?: HeaderDisplayItem[];
|
|
210
|
+
openHarmonyGuide: boolean;
|
|
211
|
+
headerBorder?: boolean;
|
|
212
|
+
independence?: boolean;
|
|
213
|
+
userMenus?: any[];
|
|
214
|
+
loginChildComponents: any;
|
|
215
|
+
/** AtomCode 工作台 query string 参数 */
|
|
216
|
+
atomcodeLaunchQs?: string;
|
|
217
|
+
/** 是否展示 AtomCodeLauncher 引导入口 */
|
|
218
|
+
showAtomCodeLauncher?: boolean;
|
|
219
|
+
/** AtomCode 点击启动函数属性(若定义则在点击 AtomCode 主按钮时触发,而不调用 openAtomCode) */
|
|
220
|
+
launchAtomCode?: () => void | Promise<void>;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
declare type __VLS_Props_7 = {
|
|
224
|
+
/** 展示主题设置项,默认 true */
|
|
225
|
+
showThemeSetting?: boolean;
|
|
226
|
+
/** 展示语言设置项,默认 true */
|
|
227
|
+
showLangSetting?: boolean;
|
|
228
|
+
/**
|
|
229
|
+
* 下拉菜单弹出位置,默认 `['bottom-end']`。
|
|
230
|
+
* 宿主如果把本组件放在页面底部,可传 `['top-end']` 避免菜单被视口下沿裁掉。
|
|
231
|
+
*/
|
|
232
|
+
position?: string[];
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
declare function __VLS_template(): {
|
|
236
|
+
attrs: Partial<{}>;
|
|
237
|
+
slots: Partial<Record<string, (_: {}) => any>>;
|
|
238
|
+
refs: {};
|
|
239
|
+
rootEl: any;
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
declare function __VLS_template_2(): {
|
|
243
|
+
attrs: Partial<{}>;
|
|
244
|
+
slots: {
|
|
245
|
+
default?(_: {}): any;
|
|
76
246
|
};
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
type: PropType<__VLS_NonUndefinedable_4<T[K]>>;
|
|
82
|
-
} : {
|
|
83
|
-
type: PropType<T[K]>;
|
|
84
|
-
required: true;
|
|
247
|
+
refs: {
|
|
248
|
+
containerRef: unknown;
|
|
249
|
+
contentRef: HTMLDivElement;
|
|
250
|
+
trackRef: HTMLDivElement;
|
|
85
251
|
};
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
252
|
+
rootEl: any;
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
declare function __VLS_template_3(): {
|
|
256
|
+
attrs: Partial<{}>;
|
|
257
|
+
slots: {
|
|
258
|
+
headerCustom?(_: {}): any;
|
|
259
|
+
aiSearch?(_: {}): any;
|
|
260
|
+
headerMiddleRight?(_: {}): any;
|
|
261
|
+
search?(_: {}): any;
|
|
262
|
+
searchRecommend?(_: {}): any;
|
|
263
|
+
globalSearch?(_: {
|
|
264
|
+
searchStr: string;
|
|
265
|
+
searchMore: (type: any) => void;
|
|
266
|
+
}): any;
|
|
267
|
+
atomCodeLauncher?(_: {}): any;
|
|
268
|
+
headerActions?(_: {}): any;
|
|
269
|
+
bodyHeader?(_: {}): any;
|
|
270
|
+
info?(_: {}): any;
|
|
271
|
+
menu?(_: {}): any;
|
|
272
|
+
headerBottom?(_: {}): any;
|
|
94
273
|
};
|
|
274
|
+
refs: {
|
|
275
|
+
headerRef: HTMLDivElement;
|
|
276
|
+
};
|
|
277
|
+
rootEl: HTMLDivElement;
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
declare function __VLS_template_4(): {
|
|
281
|
+
attrs: Partial<{}>;
|
|
282
|
+
slots: {
|
|
283
|
+
search?(_: {}): any;
|
|
284
|
+
searchRecommend?(_: {}): any;
|
|
285
|
+
globalSearch?(_: {
|
|
286
|
+
searchStr: string;
|
|
287
|
+
searchMore: (type: any) => void;
|
|
288
|
+
}): any;
|
|
289
|
+
bodyHeader?(_: {}): any;
|
|
290
|
+
info?(_: {}): any;
|
|
291
|
+
menu?(_: {}): any;
|
|
292
|
+
headerBottom?(_: {}): any;
|
|
293
|
+
};
|
|
294
|
+
refs: {
|
|
295
|
+
headerRef: HTMLDivElement;
|
|
296
|
+
};
|
|
297
|
+
rootEl: HTMLDivElement;
|
|
95
298
|
};
|
|
96
299
|
|
|
97
|
-
declare type
|
|
98
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
99
|
-
default: D[K];
|
|
100
|
-
}> : P[K];
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
declare type __VLS_WithDefaults_2<P, D> = {
|
|
104
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_2<P[K] & {
|
|
105
|
-
default: D[K];
|
|
106
|
-
}> : P[K];
|
|
107
|
-
};
|
|
300
|
+
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
108
301
|
|
|
109
|
-
declare type
|
|
110
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_3<P[K] & {
|
|
111
|
-
default: D[K];
|
|
112
|
-
}> : P[K];
|
|
113
|
-
};
|
|
302
|
+
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
114
303
|
|
|
115
|
-
declare type
|
|
116
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_4<P[K] & {
|
|
117
|
-
default: D[K];
|
|
118
|
-
}> : P[K];
|
|
119
|
-
};
|
|
304
|
+
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
120
305
|
|
|
121
|
-
declare type
|
|
122
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_5<P[K] & {
|
|
123
|
-
default: D[K];
|
|
124
|
-
}> : P[K];
|
|
125
|
-
};
|
|
306
|
+
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
126
307
|
|
|
127
308
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
128
309
|
new (): {
|
|
@@ -142,6 +323,24 @@ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
|
142
323
|
};
|
|
143
324
|
};
|
|
144
325
|
|
|
326
|
+
declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
327
|
+
new (): {
|
|
328
|
+
$slots: S;
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
export declare const AsideFooterTools: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{}>, {
|
|
333
|
+
position: string[];
|
|
334
|
+
showThemeSetting: boolean;
|
|
335
|
+
showLangSetting: boolean;
|
|
336
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
337
|
+
|
|
338
|
+
export declare const AtomCodeLauncher: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{}>, {
|
|
339
|
+
isLogin: boolean;
|
|
340
|
+
atomcodeLaunchQs: string;
|
|
341
|
+
launchAtomCode: () => void | Promise<void>;
|
|
342
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
343
|
+
|
|
145
344
|
declare interface BaseLayoutConfig {
|
|
146
345
|
VITE_HOST: string;
|
|
147
346
|
VITE_HOST_TIANQI: string;
|
|
@@ -166,109 +365,7 @@ declare const _default: {
|
|
|
166
365
|
};
|
|
167
366
|
export default _default;
|
|
168
367
|
|
|
169
|
-
export declare const EnterpriseHeader:
|
|
170
|
-
isLogin: boolean;
|
|
171
|
-
request: Function;
|
|
172
|
-
globalStore: Object;
|
|
173
|
-
loginSuccess: Function;
|
|
174
|
-
enterpriseInfo: OrgInfo;
|
|
175
|
-
loginOutFinish?: Function | undefined;
|
|
176
|
-
orgInfo?: OrgInfo | undefined;
|
|
177
|
-
userInfo?: UserInfo | undefined;
|
|
178
|
-
headerFunctions?: HeaderDisplayItem[] | undefined;
|
|
179
|
-
openHarmonyGuide: boolean;
|
|
180
|
-
headerBorder?: boolean | undefined;
|
|
181
|
-
independence?: boolean | undefined;
|
|
182
|
-
userMenus?: any[] | undefined;
|
|
183
|
-
loginChildComponents: any;
|
|
184
|
-
}>, {
|
|
185
|
-
headerBorder: boolean;
|
|
186
|
-
isLogin: boolean;
|
|
187
|
-
independence: boolean;
|
|
188
|
-
request: (params: any, customConfigs?: {
|
|
189
|
-
customError?: boolean | undefined;
|
|
190
|
-
customTimeout?: number | undefined;
|
|
191
|
-
ignoreError?: boolean | undefined;
|
|
192
|
-
customErrorCodes?: number[] | undefined;
|
|
193
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
194
|
-
globalStore: () => {
|
|
195
|
-
httpStatus: number;
|
|
196
|
-
};
|
|
197
|
-
orgInfo: () => {
|
|
198
|
-
avatar: string;
|
|
199
|
-
name: string;
|
|
200
|
-
};
|
|
201
|
-
userInfo: () => {};
|
|
202
|
-
enterpriseInfo: () => {
|
|
203
|
-
avatar: string;
|
|
204
|
-
name: string;
|
|
205
|
-
};
|
|
206
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
207
|
-
resetPwdDirectlySuccess: (...args: any[]) => void;
|
|
208
|
-
followDevCommunity: (...args: any[]) => void;
|
|
209
|
-
followUser: (...args: any[]) => void;
|
|
210
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_5<{
|
|
211
|
-
isLogin: boolean;
|
|
212
|
-
request: Function;
|
|
213
|
-
globalStore: Object;
|
|
214
|
-
loginSuccess: Function;
|
|
215
|
-
enterpriseInfo: OrgInfo;
|
|
216
|
-
loginOutFinish?: Function | undefined;
|
|
217
|
-
orgInfo?: OrgInfo | undefined;
|
|
218
|
-
userInfo?: UserInfo | undefined;
|
|
219
|
-
headerFunctions?: HeaderDisplayItem[] | undefined;
|
|
220
|
-
openHarmonyGuide: boolean;
|
|
221
|
-
headerBorder?: boolean | undefined;
|
|
222
|
-
independence?: boolean | undefined;
|
|
223
|
-
userMenus?: any[] | undefined;
|
|
224
|
-
loginChildComponents: any;
|
|
225
|
-
}>, {
|
|
226
|
-
headerBorder: boolean;
|
|
227
|
-
isLogin: boolean;
|
|
228
|
-
independence: boolean;
|
|
229
|
-
request: (params: any, customConfigs?: {
|
|
230
|
-
customError?: boolean | undefined;
|
|
231
|
-
customTimeout?: number | undefined;
|
|
232
|
-
ignoreError?: boolean | undefined;
|
|
233
|
-
customErrorCodes?: number[] | undefined;
|
|
234
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
235
|
-
globalStore: () => {
|
|
236
|
-
httpStatus: number;
|
|
237
|
-
};
|
|
238
|
-
orgInfo: () => {
|
|
239
|
-
avatar: string;
|
|
240
|
-
name: string;
|
|
241
|
-
};
|
|
242
|
-
userInfo: () => {};
|
|
243
|
-
enterpriseInfo: () => {
|
|
244
|
-
avatar: string;
|
|
245
|
-
name: string;
|
|
246
|
-
};
|
|
247
|
-
}>>> & Readonly<{
|
|
248
|
-
onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
|
|
249
|
-
onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
|
|
250
|
-
onFollowUser?: ((...args: any[]) => any) | undefined;
|
|
251
|
-
}>, {
|
|
252
|
-
isLogin: boolean;
|
|
253
|
-
independence: boolean;
|
|
254
|
-
globalStore: Object;
|
|
255
|
-
request: Function;
|
|
256
|
-
orgInfo: OrgInfo;
|
|
257
|
-
userInfo: UserInfo;
|
|
258
|
-
headerBorder: boolean;
|
|
259
|
-
enterpriseInfo: OrgInfo;
|
|
260
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
261
|
-
search?(_: {}): any;
|
|
262
|
-
searchRecommend?(_: {}): any;
|
|
263
|
-
globalSearch?(_: {
|
|
264
|
-
searchStr: string;
|
|
265
|
-
searchMore: (type: any) => void;
|
|
266
|
-
}): any;
|
|
267
|
-
bodyHeader?(_: {}): any;
|
|
268
|
-
info?(_: {}): any;
|
|
269
|
-
menu?(_: {}): any;
|
|
270
|
-
headerBottom?(_: {}): any;
|
|
271
|
-
}>;
|
|
368
|
+
export declare const EnterpriseHeader: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
272
369
|
|
|
273
370
|
declare type EventBus = {
|
|
274
371
|
logout?: boolean;
|
|
@@ -298,230 +395,109 @@ declare type EventBus = {
|
|
|
298
395
|
crossQuestion: void;
|
|
299
396
|
hisSearchValue: string;
|
|
300
397
|
resetPwdDirectlySuccess: void;
|
|
398
|
+
loginModalClose: void;
|
|
399
|
+
loginModalAction: {
|
|
400
|
+
model_name: string;
|
|
401
|
+
};
|
|
301
402
|
};
|
|
302
403
|
|
|
303
|
-
export declare const GitCodeAside: __VLS_WithTemplateSlots<
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
showPreferencesSetting: undefined;
|
|
318
|
-
showThemeSetting: undefined;
|
|
319
|
-
showLangSetting: undefined;
|
|
320
|
-
/** 默认展示小侧边栏,收起隐藏 */
|
|
321
|
-
collapseMode: boolean;
|
|
322
|
-
/** 需要显示hover的slotKeys */
|
|
323
|
-
slotKeys: () => never[];
|
|
324
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<Props_2>, {
|
|
325
|
-
sceneValue: SceneValue;
|
|
326
|
-
disableFlatMode: boolean;
|
|
327
|
-
request: (params: any, customConfigs?: {
|
|
328
|
-
customError?: boolean | undefined;
|
|
329
|
-
customTimeout?: number | undefined;
|
|
330
|
-
ignoreError?: boolean | undefined;
|
|
331
|
-
customErrorCodes?: number[] | undefined;
|
|
332
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
333
|
-
globalStore: () => {
|
|
334
|
-
httpStatus: number;
|
|
335
|
-
};
|
|
336
|
-
userInfo: () => {};
|
|
337
|
-
independence: boolean;
|
|
338
|
-
showPreferencesSetting: undefined;
|
|
339
|
-
showThemeSetting: undefined;
|
|
340
|
-
showLangSetting: undefined;
|
|
341
|
-
/** 默认展示小侧边栏,收起隐藏 */
|
|
342
|
-
collapseMode: boolean;
|
|
343
|
-
/** 需要显示hover的slotKeys */
|
|
344
|
-
slotKeys: () => never[];
|
|
345
|
-
}>>> & Readonly<{}>, {
|
|
346
|
-
independence: boolean;
|
|
347
|
-
globalStore: Object;
|
|
348
|
-
slotKeys: string[];
|
|
404
|
+
export declare const GitCodeAside: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
405
|
+
|
|
406
|
+
export declare const GitCodeAsideV2: DefineComponent<Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
407
|
+
select: (item: HomeChannelStoreItem) => any;
|
|
408
|
+
"update:modelValue": (val: string) => any;
|
|
409
|
+
"update:activeChannel": (val: string) => any;
|
|
410
|
+
channelChange: (item: HomeChannelStoreItem) => any;
|
|
411
|
+
}, string, PublicProps, Readonly<Props_3> & Readonly<{
|
|
412
|
+
onSelect?: ((item: HomeChannelStoreItem) => any) | undefined;
|
|
413
|
+
"onUpdate:modelValue"?: ((val: string) => any) | undefined;
|
|
414
|
+
"onUpdate:activeChannel"?: ((val: string) => any) | undefined;
|
|
415
|
+
onChannelChange?: ((item: HomeChannelStoreItem) => any) | undefined;
|
|
416
|
+
}>, {
|
|
417
|
+
globalStore: Record<string, unknown>;
|
|
349
418
|
sceneValue: SceneValue;
|
|
350
419
|
request: Function;
|
|
420
|
+
modelValue: string;
|
|
351
421
|
userInfo: AccountInfo;
|
|
352
|
-
|
|
353
|
-
showPreferencesSetting: boolean;
|
|
422
|
+
independence: boolean;
|
|
354
423
|
showThemeSetting: boolean;
|
|
355
424
|
showLangSetting: boolean;
|
|
425
|
+
disableFlatMode: boolean;
|
|
426
|
+
singleCol: boolean;
|
|
427
|
+
channels: HomeChannelStoreItem[];
|
|
428
|
+
activeChannel: string;
|
|
429
|
+
onChannelChange: (item: HomeChannelStoreItem) => void;
|
|
356
430
|
collapseMode: boolean;
|
|
357
|
-
}, {}, {}, {}, string, ComponentProvideOptions,
|
|
431
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* GitCodeAsideV2 组件 Props 定义
|
|
435
|
+
*/
|
|
436
|
+
declare interface GitCodeAsideV2Props {
|
|
437
|
+
/** 场景值,默认为 home */
|
|
438
|
+
sceneValue?: SceneValue;
|
|
439
|
+
/** 禁用 flat 模式 */
|
|
440
|
+
disableFlatMode?: boolean;
|
|
441
|
+
/** 单列模式:移动端抽屉或紧凑容器内展示,不包含外层固定定位 */
|
|
442
|
+
singleCol?: boolean;
|
|
443
|
+
/** 外部传入的一级频道列表(若不传则组件内部请求接口获取) */
|
|
444
|
+
channels?: HomeChannelStoreItem[];
|
|
445
|
+
/** 当前激活频道 object_id,支持 v-model 或 v-model:activeChannel */
|
|
446
|
+
modelValue?: string;
|
|
447
|
+
activeChannel?: string;
|
|
448
|
+
/** 用户信息 */
|
|
449
|
+
userInfo?: AccountInfo;
|
|
450
|
+
/** 是否登录 */
|
|
451
|
+
isLogin?: boolean;
|
|
452
|
+
/** 请求实例 */
|
|
453
|
+
request?: Function;
|
|
454
|
+
/** 全局 store,上报用 */
|
|
455
|
+
globalStore?: Record<string, unknown>;
|
|
456
|
+
/** 是否独立部署 */
|
|
457
|
+
independence?: boolean;
|
|
458
|
+
/** 是否显示主题设置 */
|
|
459
|
+
showThemeSetting?: boolean;
|
|
460
|
+
/** 是否显示语言设置 */
|
|
461
|
+
showLangSetting?: boolean;
|
|
462
|
+
/** 频道切换完成回调 */
|
|
463
|
+
onChannelChange?: (item: HomeChannelStoreItem) => void;
|
|
464
|
+
}
|
|
358
465
|
|
|
359
|
-
export declare const GitCodeHeader:
|
|
360
|
-
sceneValue: SceneValue;
|
|
361
|
-
isLogin: boolean;
|
|
362
|
-
request: Function;
|
|
363
|
-
loginOutFinish?: Function | undefined;
|
|
364
|
-
loginSuccess: Function;
|
|
365
|
-
globalStore: Object;
|
|
366
|
-
repoInfo?: repoInfoType | undefined;
|
|
367
|
-
orgInfo?: OrgInfo | undefined;
|
|
368
|
-
otherUserInfo?: UserInfo | undefined;
|
|
369
|
-
userInfo?: UserInfo | undefined;
|
|
370
|
-
headerFunctions?: HeaderDisplayItem[] | undefined;
|
|
371
|
-
headerCustomProps?: HeaderPropsForCustom | undefined;
|
|
372
|
-
openHarmonyGuide: boolean;
|
|
373
|
-
headerBorder?: boolean | undefined;
|
|
374
|
-
independence?: boolean | undefined;
|
|
375
|
-
userMenus?: any[] | undefined;
|
|
376
|
-
loginChildComponents: any;
|
|
377
|
-
bgConfig?: {
|
|
378
|
-
index_head: string;
|
|
379
|
-
detail_top: string;
|
|
380
|
-
detail_top_black: string;
|
|
381
|
-
detail_toolbar: string;
|
|
382
|
-
detail_toolbar_black: string;
|
|
383
|
-
detail_top_url: string;
|
|
384
|
-
index_head_url: string;
|
|
385
|
-
detail_toolbar_url: string;
|
|
386
|
-
} | undefined;
|
|
387
|
-
openCreateDropdown?: boolean | undefined;
|
|
388
|
-
}>, {
|
|
389
|
-
sceneValue: any;
|
|
390
|
-
headerBorder: boolean;
|
|
391
|
-
isLogin: boolean;
|
|
392
|
-
independence: boolean;
|
|
393
|
-
request: (params: any, customConfigs?: {
|
|
394
|
-
customError?: boolean | undefined;
|
|
395
|
-
customTimeout?: number | undefined;
|
|
396
|
-
ignoreError?: boolean | undefined;
|
|
397
|
-
customErrorCodes?: number[] | undefined;
|
|
398
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
399
|
-
globalStore: () => {
|
|
400
|
-
httpStatus: number;
|
|
401
|
-
};
|
|
402
|
-
repoInfo: () => {};
|
|
403
|
-
orgInfo: () => {};
|
|
404
|
-
otherUserInfo: () => {};
|
|
405
|
-
userInfo: () => {};
|
|
406
|
-
bgConfig: () => {
|
|
407
|
-
index_head: string;
|
|
408
|
-
detail_top: string;
|
|
409
|
-
detail_top_black: string;
|
|
410
|
-
detail_toolbar: string;
|
|
411
|
-
detail_toolbar_black: string;
|
|
412
|
-
detail_top_url: string;
|
|
413
|
-
index_head_url: string;
|
|
414
|
-
detail_toolbar_url: string;
|
|
415
|
-
};
|
|
416
|
-
openCreateDropdown: boolean;
|
|
417
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
418
|
-
resetPwdDirectlySuccess: (...args: any[]) => void;
|
|
419
|
-
followDevCommunity: (...args: any[]) => void;
|
|
420
|
-
followUser: (...args: any[]) => void;
|
|
421
|
-
"update:openCreateDropdown": (...args: any[]) => void;
|
|
422
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<{
|
|
423
|
-
sceneValue: SceneValue;
|
|
424
|
-
isLogin: boolean;
|
|
425
|
-
request: Function;
|
|
426
|
-
loginOutFinish?: Function | undefined;
|
|
427
|
-
loginSuccess: Function;
|
|
428
|
-
globalStore: Object;
|
|
429
|
-
repoInfo?: repoInfoType | undefined;
|
|
430
|
-
orgInfo?: OrgInfo | undefined;
|
|
431
|
-
otherUserInfo?: UserInfo | undefined;
|
|
432
|
-
userInfo?: UserInfo | undefined;
|
|
433
|
-
headerFunctions?: HeaderDisplayItem[] | undefined;
|
|
434
|
-
headerCustomProps?: HeaderPropsForCustom | undefined;
|
|
435
|
-
openHarmonyGuide: boolean;
|
|
436
|
-
headerBorder?: boolean | undefined;
|
|
437
|
-
independence?: boolean | undefined;
|
|
438
|
-
userMenus?: any[] | undefined;
|
|
439
|
-
loginChildComponents: any;
|
|
440
|
-
bgConfig?: {
|
|
441
|
-
index_head: string;
|
|
442
|
-
detail_top: string;
|
|
443
|
-
detail_top_black: string;
|
|
444
|
-
detail_toolbar: string;
|
|
445
|
-
detail_toolbar_black: string;
|
|
446
|
-
detail_top_url: string;
|
|
447
|
-
index_head_url: string;
|
|
448
|
-
detail_toolbar_url: string;
|
|
449
|
-
} | undefined;
|
|
450
|
-
openCreateDropdown?: boolean | undefined;
|
|
451
|
-
}>, {
|
|
452
|
-
sceneValue: any;
|
|
453
|
-
headerBorder: boolean;
|
|
454
|
-
isLogin: boolean;
|
|
455
|
-
independence: boolean;
|
|
456
|
-
request: (params: any, customConfigs?: {
|
|
457
|
-
customError?: boolean | undefined;
|
|
458
|
-
customTimeout?: number | undefined;
|
|
459
|
-
ignoreError?: boolean | undefined;
|
|
460
|
-
customErrorCodes?: number[] | undefined;
|
|
461
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
462
|
-
globalStore: () => {
|
|
463
|
-
httpStatus: number;
|
|
464
|
-
};
|
|
465
|
-
repoInfo: () => {};
|
|
466
|
-
orgInfo: () => {};
|
|
467
|
-
otherUserInfo: () => {};
|
|
468
|
-
userInfo: () => {};
|
|
469
|
-
bgConfig: () => {
|
|
470
|
-
index_head: string;
|
|
471
|
-
detail_top: string;
|
|
472
|
-
detail_top_black: string;
|
|
473
|
-
detail_toolbar: string;
|
|
474
|
-
detail_toolbar_black: string;
|
|
475
|
-
detail_top_url: string;
|
|
476
|
-
index_head_url: string;
|
|
477
|
-
detail_toolbar_url: string;
|
|
478
|
-
};
|
|
479
|
-
openCreateDropdown: boolean;
|
|
480
|
-
}>>> & Readonly<{
|
|
481
|
-
onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
|
|
482
|
-
onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
|
|
483
|
-
onFollowUser?: ((...args: any[]) => any) | undefined;
|
|
484
|
-
"onUpdate:openCreateDropdown"?: ((...args: any[]) => any) | undefined;
|
|
485
|
-
}>, {
|
|
486
|
-
isLogin: boolean;
|
|
487
|
-
independence: boolean;
|
|
488
|
-
globalStore: Object;
|
|
489
|
-
sceneValue: SceneValue;
|
|
490
|
-
request: Function;
|
|
491
|
-
repoInfo: repoInfoType;
|
|
492
|
-
orgInfo: OrgInfo;
|
|
493
|
-
otherUserInfo: UserInfo;
|
|
494
|
-
userInfo: UserInfo;
|
|
495
|
-
headerBorder: boolean;
|
|
496
|
-
bgConfig: {
|
|
497
|
-
index_head: string;
|
|
498
|
-
detail_top: string;
|
|
499
|
-
detail_top_black: string;
|
|
500
|
-
detail_toolbar: string;
|
|
501
|
-
detail_toolbar_black: string;
|
|
502
|
-
detail_top_url: string;
|
|
503
|
-
index_head_url: string;
|
|
504
|
-
detail_toolbar_url: string;
|
|
505
|
-
};
|
|
506
|
-
openCreateDropdown: boolean;
|
|
507
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
508
|
-
headerCustom?(_: {}): any;
|
|
509
|
-
aiSearch?(_: {}): any;
|
|
510
|
-
headerMiddleRight?(_: {}): any;
|
|
511
|
-
search?(_: {}): any;
|
|
512
|
-
searchRecommend?(_: {}): any;
|
|
513
|
-
globalSearch?(_: {
|
|
514
|
-
searchStr: string;
|
|
515
|
-
searchMore: (type: any) => void;
|
|
516
|
-
}): any;
|
|
517
|
-
bodyHeader?(_: {}): any;
|
|
518
|
-
info?(_: {}): any;
|
|
519
|
-
menu?(_: {}): any;
|
|
520
|
-
headerBottom?(_: {}): any;
|
|
521
|
-
}>;
|
|
466
|
+
export declare const GitCodeHeader: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
522
467
|
|
|
523
468
|
export declare const GitCodeLayoutEmitter: Emitter<EventBus>;
|
|
524
469
|
|
|
470
|
+
/** 默认 Header 新建菜单的路径顺序,与工作台 Header 保持一致。 */
|
|
471
|
+
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"];
|
|
472
|
+
|
|
473
|
+
export declare const HeaderCreateMenu: DefineComponent_2<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {
|
|
474
|
+
"update:dropdownVisible": (visible: boolean) => any;
|
|
475
|
+
navigate: (item: HeaderCreateMenuItem) => any;
|
|
476
|
+
}, string, PublicProps_2, Readonly<__VLS_Props_5> & Readonly<{
|
|
477
|
+
"onUpdate:dropdownVisible"?: ((visible: boolean) => any) | undefined;
|
|
478
|
+
onNavigate?: ((item: HeaderCreateMenuItem) => any) | undefined;
|
|
479
|
+
}>, {
|
|
480
|
+
dropdownVisible: boolean;
|
|
481
|
+
isCreateOrg: boolean;
|
|
482
|
+
items: HeaderCreateMenuItem[];
|
|
483
|
+
onNavigate: HeaderCreateMenuNavigate;
|
|
484
|
+
}, {}, {}, {}, string, ComponentProvideOptions_2, false, {
|
|
485
|
+
triggerRef: HTMLButtonElement;
|
|
486
|
+
menuRef: HTMLDivElement;
|
|
487
|
+
}, HTMLDivElement>;
|
|
488
|
+
|
|
489
|
+
/** Header 新建菜单项。宿主项目可以用它覆写默认的七项菜单。 */
|
|
490
|
+
export declare interface HeaderCreateMenuItem {
|
|
491
|
+
key: string;
|
|
492
|
+
icon: string;
|
|
493
|
+
label: string;
|
|
494
|
+
href: string;
|
|
495
|
+
dividerBefore?: boolean;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/** 自定义新建菜单跳转适配器。 */
|
|
499
|
+
export declare type HeaderCreateMenuNavigate = (item: HeaderCreateMenuItem) => void | Promise<void>;
|
|
500
|
+
|
|
525
501
|
declare enum HeaderDisplayItem {
|
|
526
502
|
LOGIN_AND_AVATAR = "0101",
|
|
527
503
|
MESSAGE_CENTER = "0102",
|
|
@@ -536,47 +512,82 @@ declare enum HeaderDisplayItem {
|
|
|
536
512
|
OPERATION_ENTRY = "0111"
|
|
537
513
|
}
|
|
538
514
|
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
515
|
+
/**
|
|
516
|
+
* 首页一级频道项
|
|
517
|
+
*/
|
|
518
|
+
declare interface HomeChannelItem {
|
|
519
|
+
/** 频道 id (后端 mongo object_id 字符串) */
|
|
520
|
+
object_id: string;
|
|
521
|
+
/** 频道展示名 */
|
|
522
|
+
name: string;
|
|
523
|
+
name_en?: string;
|
|
524
|
+
icon?: string;
|
|
525
|
+
dark_icon?: string;
|
|
526
|
+
icon_dark?: string;
|
|
527
|
+
level?: number;
|
|
528
|
+
parent_id?: string;
|
|
529
|
+
/** 标识当前栏目是自定义静态页 */
|
|
530
|
+
static?: boolean;
|
|
531
|
+
/** 直接跳外链 url */
|
|
532
|
+
url?: string;
|
|
533
|
+
description?: string;
|
|
534
|
+
desc?: string;
|
|
535
|
+
desc_en?: string;
|
|
536
|
+
/** 是否本月新增,true 时在侧边菜单展示 New 标签 */
|
|
537
|
+
is_new?: boolean;
|
|
538
|
+
children?: HomeChannelItem[];
|
|
539
|
+
channelPrefixLogo?: {
|
|
540
|
+
logoUrl?: string;
|
|
541
|
+
logoLink?: string;
|
|
542
|
+
};
|
|
543
|
+
pre_logo?: string;
|
|
544
|
+
pre_logo_jump_url?: string;
|
|
545
|
+
[key: string]: unknown;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* 首页频道 Store / 组件中使用的频道项类型
|
|
550
|
+
*/
|
|
551
|
+
declare type HomeChannelStoreItem = HomeChannelItem & {
|
|
552
|
+
links?: RecommendLinkItem[];
|
|
553
|
+
group?: {
|
|
554
|
+
name: string;
|
|
555
|
+
name_en?: string;
|
|
556
|
+
len: number;
|
|
557
|
+
};
|
|
558
|
+
groupIndex?: number;
|
|
559
|
+
children?: HomeChannelStoreItem[];
|
|
555
560
|
};
|
|
556
|
-
|
|
557
|
-
|
|
561
|
+
|
|
562
|
+
export declare const HomeHeaderActions: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{}>, {
|
|
558
563
|
isLogin: boolean;
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
564
|
+
customItems: HomePageSidebarItem[];
|
|
565
|
+
fallbacks: Partial<HomeHeaderActionUrls>;
|
|
566
|
+
workspaceNavigate: HomeHeaderWorkspaceNavigate;
|
|
567
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
568
|
+
|
|
569
|
+
declare interface HomeHeaderActionUrls {
|
|
570
|
+
atomCode: string;
|
|
571
|
+
aiCommunity: string;
|
|
572
|
+
competition: string;
|
|
573
|
+
marketplace: string;
|
|
574
|
+
workspace: string;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
export declare type HomeHeaderWorkspaceNavigate = (href: string) => void | Promise<void>;
|
|
578
|
+
|
|
579
|
+
declare interface HomePageSidebarItem {
|
|
580
|
+
left_menu_name_cn?: string;
|
|
581
|
+
left_menu_name_cn_shrink?: string;
|
|
582
|
+
left_menu_url?: string;
|
|
583
|
+
[key: string]: unknown;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
export declare const Login: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
576
587
|
globalStore: Object;
|
|
577
588
|
request: Function;
|
|
578
589
|
openHarmonyGuide: boolean;
|
|
579
|
-
}, {}, {}, {}, string, ComponentProvideOptions,
|
|
590
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
580
591
|
|
|
581
592
|
declare interface LoginOptions {
|
|
582
593
|
Authorization?: boolean;
|
|
@@ -632,6 +643,42 @@ declare interface Props_2 {
|
|
|
632
643
|
slotKeys?: Array<string>;
|
|
633
644
|
}
|
|
634
645
|
|
|
646
|
+
declare interface Props_3 extends GitCodeAsideV2Props {
|
|
647
|
+
/** 是否显示主题设置 */
|
|
648
|
+
showThemeSetting?: boolean | undefined;
|
|
649
|
+
/** 是否显示语言设置 */
|
|
650
|
+
showLangSetting?: boolean | undefined;
|
|
651
|
+
collapseMode?: boolean;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
declare interface Props_4 {
|
|
655
|
+
/** 容器使用的 DOM 元素标签,默认为 'div' */
|
|
656
|
+
tag?: string;
|
|
657
|
+
/** 滚动停止后取消 isScrolling 状态的延迟时间 (毫秒),默认 300 */
|
|
658
|
+
timeout?: number;
|
|
659
|
+
/** 滚动方向 'vertical' | 'horizontal',默认 'vertical' */
|
|
660
|
+
direction?: 'vertical' | 'horizontal';
|
|
661
|
+
/** 鼠标悬浮时是否展示滚动条,默认为 true */
|
|
662
|
+
visibleOnHover?: boolean;
|
|
663
|
+
/** 外层包裹容器的附加 class */
|
|
664
|
+
wrapperClass?: string;
|
|
665
|
+
/** 内容包裹层的附加 class */
|
|
666
|
+
contentClass?: string;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* 频道推荐外链项
|
|
671
|
+
*/
|
|
672
|
+
declare interface RecommendLinkItem {
|
|
673
|
+
name: string;
|
|
674
|
+
name_en?: string;
|
|
675
|
+
url: string;
|
|
676
|
+
icon?: string;
|
|
677
|
+
dark_icon?: string;
|
|
678
|
+
icon_dark?: string;
|
|
679
|
+
[key: string]: unknown;
|
|
680
|
+
}
|
|
681
|
+
|
|
635
682
|
export declare enum SceneValue {
|
|
636
683
|
home = "home",
|
|
637
684
|
repo = "repo",
|
|
@@ -646,56 +693,39 @@ export declare enum SceneValue {
|
|
|
646
693
|
enterprise = "enterprise"
|
|
647
694
|
}
|
|
648
695
|
|
|
696
|
+
export declare const ScrollActiveContainer: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
697
|
+
|
|
649
698
|
export declare function setLayoutConfig(customConfig: BaseLayoutConfig): void;
|
|
650
699
|
|
|
651
700
|
export { setTheme }
|
|
652
701
|
|
|
653
702
|
export declare const SiteAnnouncement: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
654
703
|
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
customErrorCodes?: number[] | undefined;
|
|
663
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
664
|
-
globalStore: () => {};
|
|
665
|
-
isRepoPage: boolean;
|
|
666
|
-
isWhiteListRepo: boolean;
|
|
667
|
-
isCannWhiteList: boolean;
|
|
668
|
-
}>>, {
|
|
669
|
-
handleCollapseTool: (status: string) => void;
|
|
704
|
+
declare const TOOLS_FLOAT_COLLAPSE_STATUS: {
|
|
705
|
+
COLLAPSE: string;
|
|
706
|
+
EXPAND: string;
|
|
707
|
+
};
|
|
708
|
+
|
|
709
|
+
export declare const ToolsFloat: DefineComponent<Props, {
|
|
710
|
+
handleCollapseTool: (status: ToolsFloatCollapseStatusType) => void;
|
|
670
711
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
671
|
-
"toggle-growth-center": () =>
|
|
672
|
-
}, string, PublicProps, Readonly<
|
|
673
|
-
sceneValue: SceneValue;
|
|
674
|
-
isLogin: boolean;
|
|
675
|
-
request: (params: any, customConfigs?: {
|
|
676
|
-
customError?: boolean | undefined;
|
|
677
|
-
customTimeout?: number | undefined;
|
|
678
|
-
ignoreError?: boolean | undefined;
|
|
679
|
-
customErrorCodes?: number[] | undefined;
|
|
680
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
681
|
-
globalStore: () => {};
|
|
682
|
-
isRepoPage: boolean;
|
|
683
|
-
isWhiteListRepo: boolean;
|
|
684
|
-
isCannWhiteList: boolean;
|
|
685
|
-
}>>> & Readonly<{
|
|
712
|
+
"toggle-growth-center": () => any;
|
|
713
|
+
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
686
714
|
"onToggle-growth-center"?: (() => any) | undefined;
|
|
687
715
|
}>, {
|
|
688
|
-
isLogin: boolean;
|
|
689
716
|
globalStore: {
|
|
717
|
+
isSignIn?: boolean;
|
|
690
718
|
[key: string]: any;
|
|
691
|
-
isSignIn?: boolean | undefined;
|
|
692
719
|
};
|
|
720
|
+
isLogin: boolean;
|
|
693
721
|
sceneValue: SceneValue;
|
|
694
722
|
request: Function;
|
|
695
723
|
isRepoPage: boolean;
|
|
696
724
|
isWhiteListRepo: boolean;
|
|
697
725
|
isCannWhiteList: boolean;
|
|
698
|
-
}, {}, {}, {}, string, ComponentProvideOptions,
|
|
726
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
727
|
+
|
|
728
|
+
declare type ToolsFloatCollapseStatusType = typeof TOOLS_FLOAT_COLLAPSE_STATUS[keyof typeof TOOLS_FLOAT_COLLAPSE_STATUS];
|
|
699
729
|
|
|
700
730
|
export declare function useLogin(request: any, globalStore?: any): {
|
|
701
731
|
login: (options?: LoginOptions, loginSuccess?: Function, openHarmonyGuide?: boolean) => void;
|