vue-layout-gitcode 1.12.15-beta.49 → 1.12.15-beta.50
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-BY6gNAtx.js +154 -0
- package/{MenuItem-BYzU-MFz.js → MenuItem-6hlAqQ26.js} +2 -2
- package/{ProjectMenuList-BUdSeYzS.js → ProjectMenuList-8aJXpnHz.js} +10 -10
- package/{ProjectMenuListV2-DUXR22kj.js → ProjectMenuListV2-Bso8WDsC.js} +4 -4
- package/{ProjectSearch-ZPemd9C2.js → ProjectSearch-DsqAIoM0.js} +10 -5
- package/{SearchHistoryList-MOAZW-ce.js → SearchHistoryList-Dm1nHF89.js} +14 -11
- package/{SearchRecommed-Bx_0qPG9.js → SearchRecommed-DcfAtisG.js} +2 -2
- package/{SearchScopeList-COb6DGCL.js → SearchScopeList-Dq8EFLvV.js} +2 -2
- package/{UserSearch-DS5CbYZ0.js → UserSearch-NE2HWF5e.js} +15 -12
- package/{index-C2hNaYFz.js → index-5QoTkeLY.js} +1 -1
- package/{index-BTaTpv7I.js → index-BIQF1vUK.js} +5 -4
- package/{index-D27sLwSF.js → index-lXkdtPpx.js} +1390 -1873
- package/index.d.ts +39 -700
- package/index.js +20 -20
- package/{notice-DO9c145B.js → notice-ydjd-eKW.js} +12 -10
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-DFYqL_Qw.js → transWebUrl-DGesD31K.js} +1 -1
- package/{index-Bv4s4B-r.js → useReportRepo-DbHCQaPO.js} +133 -149
- package/GloabarSearch-CLYtierP.js +0 -202
package/index.d.ts
CHANGED
|
@@ -1,362 +1,31 @@
|
|
|
1
|
-
import { AccountInfo } from '../../types/types';
|
|
2
1
|
import { App } from '../vue/dist/vue.esm-bundler.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { ComponentProvideOptions } from '../../../vue/dist/vue.esm-bundler.js';
|
|
6
|
-
import { ComponentProvideOptions as ComponentProvideOptions_2 } from '../../../../vue/dist/vue.esm-bundler.js';
|
|
2
|
+
import { default as AsideFooterTools } from './components/AsideFooterTools/index.vue';
|
|
3
|
+
import { default as AtomCodeLauncher } from './components/Header/AtomCodeLauncher.vue';
|
|
7
4
|
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
5
|
import { Emitter } from 'mitt';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
6
|
+
import { default as EnterpriseHeader } from './components/Header/EnterpriseHeader.vue';
|
|
7
|
+
import { EventBus } from './utils/eventBus';
|
|
8
|
+
import { default as GitCodeAside } from './components/Aside/index.vue';
|
|
9
|
+
import { default as GitCodeAsideV2 } from './components/AsideV2/index.vue';
|
|
10
|
+
import { default as GitCodeHeader } from './components/Header/index.vue';
|
|
11
|
+
import { HEADER_CREATE_MENU_PATHS } from './components/Header/create-menu';
|
|
12
|
+
import { default as HeaderCreateMenu } from './components/Header/Create/index.vue';
|
|
13
|
+
import { HeaderCreateMenuItem } from './components/Header/create-menu';
|
|
14
|
+
import { HeaderCreateMenuNavigate } from './components/Header/create-menu';
|
|
15
|
+
import { default as HomeHeaderActions } from './components/Header/HomeHeaderActions.vue';
|
|
16
|
+
import { HomeHeaderWorkspaceNavigate } from './utils/home-header-actions';
|
|
17
|
+
import { default as Login } from './components//Login/Login.vue';
|
|
18
|
+
import { SceneValue } from './constant/index';
|
|
19
|
+
import { default as ScrollActiveContainer } from './components/AsideV2/ScrollActiveContainer.vue';
|
|
20
|
+
import { setLayoutConfig } from './config';
|
|
17
21
|
import { setTheme } from './themes/index';
|
|
18
|
-
import {
|
|
22
|
+
import { default as SiteAnnouncement } from './components/Header/components/SiteAnnouncement.vue';
|
|
23
|
+
import { default as ToolsFloat } from './components/ToolsFloat/index.vue';
|
|
24
|
+
import { useLogin } from './utils/hooks/useLogin';
|
|
19
25
|
|
|
20
|
-
|
|
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>;
|
|
26
|
+
export { AsideFooterTools }
|
|
33
27
|
|
|
34
|
-
|
|
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>;
|
|
97
|
-
|
|
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>;
|
|
121
|
-
|
|
122
|
-
declare type __VLS_Props = {
|
|
123
|
-
isLogin: boolean;
|
|
124
|
-
request: Function;
|
|
125
|
-
loginOutFinish?: Function;
|
|
126
|
-
loginSuccess: Function;
|
|
127
|
-
globalStore: Object;
|
|
128
|
-
openHarmonyGuide: boolean;
|
|
129
|
-
};
|
|
130
|
-
|
|
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;
|
|
158
|
-
};
|
|
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;
|
|
246
|
-
};
|
|
247
|
-
refs: {
|
|
248
|
-
containerRef: unknown;
|
|
249
|
-
contentRef: HTMLDivElement;
|
|
250
|
-
trackRef: HTMLDivElement;
|
|
251
|
-
};
|
|
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;
|
|
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;
|
|
298
|
-
};
|
|
299
|
-
|
|
300
|
-
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
301
|
-
|
|
302
|
-
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
303
|
-
|
|
304
|
-
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
305
|
-
|
|
306
|
-
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
307
|
-
|
|
308
|
-
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
309
|
-
new (): {
|
|
310
|
-
$slots: S;
|
|
311
|
-
};
|
|
312
|
-
};
|
|
313
|
-
|
|
314
|
-
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
315
|
-
new (): {
|
|
316
|
-
$slots: S;
|
|
317
|
-
};
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
321
|
-
new (): {
|
|
322
|
-
$slots: S;
|
|
323
|
-
};
|
|
324
|
-
};
|
|
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
|
-
|
|
344
|
-
declare interface BaseLayoutConfig {
|
|
345
|
-
VITE_HOST: string;
|
|
346
|
-
VITE_HOST_TIANQI: string;
|
|
347
|
-
VITE_ENV: string;
|
|
348
|
-
VITE_API_HOST: string;
|
|
349
|
-
VITE_AD_LINK: string;
|
|
350
|
-
VITE_NEWS_HOST: string;
|
|
351
|
-
VITE_AI_HOST: string;
|
|
352
|
-
VITE_INCUBATION_TOPIC: string;
|
|
353
|
-
VITE_GSTAR_TOPIC: string;
|
|
354
|
-
VITE_TRUSTED_TOPIC: string;
|
|
355
|
-
VITE_SEARCH_REPO_CHANNEL_ID: string;
|
|
356
|
-
VITE_SECRET_KEY: string;
|
|
357
|
-
VITE_SECRET_IV: string;
|
|
358
|
-
[key: string]: string;
|
|
359
|
-
}
|
|
28
|
+
export { AtomCodeLauncher }
|
|
360
29
|
|
|
361
30
|
export { currentTheme }
|
|
362
31
|
|
|
@@ -365,372 +34,42 @@ declare const _default: {
|
|
|
365
34
|
};
|
|
366
35
|
export default _default;
|
|
367
36
|
|
|
368
|
-
export
|
|
369
|
-
|
|
370
|
-
declare type EventBus = {
|
|
371
|
-
logout?: boolean;
|
|
372
|
-
login?: any;
|
|
373
|
-
updateNaviBar: void;
|
|
374
|
-
notice: void;
|
|
375
|
-
updateNotice: number;
|
|
376
|
-
updateUserInfo: Record<string, any>;
|
|
377
|
-
handleAsideVisible: boolean;
|
|
378
|
-
toggleAsideMenuByHamburger: void;
|
|
379
|
-
globalTaskReport: void;
|
|
380
|
-
updateNoticeCount: string;
|
|
381
|
-
closeChatSlider: void;
|
|
382
|
-
tocChange?: any;
|
|
383
|
-
responseError: string;
|
|
384
|
-
updateMrAction: string;
|
|
385
|
-
updateLockStatusAndList: string;
|
|
386
|
-
updateIssueAction: string;
|
|
387
|
-
forbiddenRefresh: void;
|
|
388
|
-
microRouterChange: void;
|
|
389
|
-
openModal: void;
|
|
390
|
-
reportView: void;
|
|
391
|
-
crossFileClick: void;
|
|
392
|
-
repoTreeLoading: boolean;
|
|
393
|
-
openFullScreen: void;
|
|
394
|
-
openFilePath: void;
|
|
395
|
-
crossQuestion: void;
|
|
396
|
-
hisSearchValue: string;
|
|
397
|
-
resetPwdDirectlySuccess: void;
|
|
398
|
-
loginModalClose: void;
|
|
399
|
-
loginModalAction: {
|
|
400
|
-
model_name: string;
|
|
401
|
-
};
|
|
402
|
-
};
|
|
37
|
+
export { EnterpriseHeader }
|
|
403
38
|
|
|
404
|
-
export
|
|
39
|
+
export { GitCodeAside }
|
|
405
40
|
|
|
406
|
-
export
|
|
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>;
|
|
418
|
-
sceneValue: SceneValue;
|
|
419
|
-
request: Function;
|
|
420
|
-
modelValue: string;
|
|
421
|
-
userInfo: AccountInfo;
|
|
422
|
-
independence: boolean;
|
|
423
|
-
showThemeSetting: boolean;
|
|
424
|
-
showLangSetting: boolean;
|
|
425
|
-
disableFlatMode: boolean;
|
|
426
|
-
singleCol: boolean;
|
|
427
|
-
channels: HomeChannelStoreItem[];
|
|
428
|
-
activeChannel: string;
|
|
429
|
-
onChannelChange: (item: HomeChannelStoreItem) => void;
|
|
430
|
-
collapseMode: boolean;
|
|
431
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
41
|
+
export { GitCodeAsideV2 }
|
|
432
42
|
|
|
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
|
-
}
|
|
465
|
-
|
|
466
|
-
export declare const GitCodeHeader: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
43
|
+
export { GitCodeHeader }
|
|
467
44
|
|
|
468
45
|
export declare const GitCodeLayoutEmitter: Emitter<EventBus>;
|
|
469
46
|
|
|
470
|
-
|
|
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
|
-
navigate: (item: HeaderCreateMenuItem) => any;
|
|
475
|
-
"update:dropdownVisible": (visible: boolean) => any;
|
|
476
|
-
}, string, PublicProps_2, Readonly<__VLS_Props_5> & Readonly<{
|
|
477
|
-
onNavigate?: ((item: HeaderCreateMenuItem) => any) | undefined;
|
|
478
|
-
"onUpdate:dropdownVisible"?: ((visible: boolean) => 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
|
-
}
|
|
47
|
+
export { HEADER_CREATE_MENU_PATHS }
|
|
497
48
|
|
|
498
|
-
|
|
499
|
-
export declare type HeaderCreateMenuNavigate = (item: HeaderCreateMenuItem) => void | Promise<void>;
|
|
49
|
+
export { HeaderCreateMenu }
|
|
500
50
|
|
|
501
|
-
|
|
502
|
-
LOGIN_AND_AVATAR = "0101",
|
|
503
|
-
MESSAGE_CENTER = "0102",
|
|
504
|
-
NEW_BUTTON = "0103",
|
|
505
|
-
DOCUMENT_CENTER = "0104",
|
|
506
|
-
DEEPSEEK_BUTTON = "0105",
|
|
507
|
-
SEARCH_BUTTON = "0106",
|
|
508
|
-
NAME_AND_ICON = "0107",
|
|
509
|
-
CUSTOM_CONTENT = "0108",
|
|
510
|
-
ASIDE_BUTTON = "0109",
|
|
511
|
-
NEWS_MULTI_LANGUAGE = "0110",
|
|
512
|
-
OPERATION_ENTRY = "0111"
|
|
513
|
-
}
|
|
51
|
+
export { HeaderCreateMenuItem }
|
|
514
52
|
|
|
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
|
-
}
|
|
53
|
+
export { HeaderCreateMenuNavigate }
|
|
547
54
|
|
|
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[];
|
|
560
|
-
};
|
|
561
|
-
|
|
562
|
-
export declare const HomeHeaderActions: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{}>, {
|
|
563
|
-
isLogin: boolean;
|
|
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<{}>, {
|
|
587
|
-
globalStore: Object;
|
|
588
|
-
request: Function;
|
|
589
|
-
openHarmonyGuide: boolean;
|
|
590
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
591
|
-
|
|
592
|
-
declare interface LoginOptions {
|
|
593
|
-
Authorization?: boolean;
|
|
594
|
-
type?: 'login' | 'register';
|
|
595
|
-
triggerType?: string;
|
|
596
|
-
loginTriggerSource?: string;
|
|
597
|
-
resetPwdSource?: string;
|
|
598
|
-
[x: string]: any;
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
declare interface Props {
|
|
602
|
-
/** 场景值 核心参数之一 */
|
|
603
|
-
sceneValue: SceneValue;
|
|
604
|
-
/** 是否登录 */
|
|
605
|
-
isLogin: boolean;
|
|
606
|
-
/** 请求实例 */
|
|
607
|
-
request: Function;
|
|
608
|
-
/** 全局store 上报需要 */
|
|
609
|
-
globalStore: {
|
|
610
|
-
isSignIn?: boolean;
|
|
611
|
-
[key: string]: any;
|
|
612
|
-
};
|
|
613
|
-
/** 是否为项目页 */
|
|
614
|
-
isRepoPage?: boolean;
|
|
615
|
-
/** 是否是白名单项目 - 白名单项目页,默认收起工具栏 */
|
|
616
|
-
isWhiteListRepo: boolean;
|
|
617
|
-
isCannWhiteList: boolean;
|
|
618
|
-
}
|
|
55
|
+
export { HomeHeaderActions }
|
|
619
56
|
|
|
620
|
-
|
|
621
|
-
/** 场景值 核心参数之一 */
|
|
622
|
-
sceneValue: SceneValue;
|
|
623
|
-
/** 禁用 flat 模式 */
|
|
624
|
-
disableFlatMode?: boolean;
|
|
625
|
-
/** 用户信息 */
|
|
626
|
-
userInfo: AccountInfo;
|
|
627
|
-
/** 是否登录 */
|
|
628
|
-
isLogin: boolean;
|
|
629
|
-
/** 请求实例 */
|
|
630
|
-
request: Function;
|
|
631
|
-
/** 全局store 上报需要 */
|
|
632
|
-
globalStore: Object;
|
|
633
|
-
/** 是否独立部署 */
|
|
634
|
-
independence?: boolean;
|
|
635
|
-
/** 是否显示偏好设置 */
|
|
636
|
-
showPreferencesSetting?: boolean | undefined;
|
|
637
|
-
/** 是否显示主题设置 */
|
|
638
|
-
showThemeSetting?: boolean | undefined;
|
|
639
|
-
/** 是否显示语言设置 */
|
|
640
|
-
showLangSetting?: boolean | undefined;
|
|
641
|
-
collapseMode?: boolean;
|
|
642
|
-
/** 需要显示hover的slotKeys */
|
|
643
|
-
slotKeys?: Array<string>;
|
|
644
|
-
}
|
|
57
|
+
export { HomeHeaderWorkspaceNavigate }
|
|
645
58
|
|
|
646
|
-
|
|
647
|
-
/** 是否显示主题设置 */
|
|
648
|
-
showThemeSetting?: boolean | undefined;
|
|
649
|
-
/** 是否显示语言设置 */
|
|
650
|
-
showLangSetting?: boolean | undefined;
|
|
651
|
-
collapseMode?: boolean;
|
|
652
|
-
}
|
|
59
|
+
export { Login }
|
|
653
60
|
|
|
654
|
-
|
|
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
|
-
}
|
|
61
|
+
export { SceneValue }
|
|
668
62
|
|
|
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
|
-
}
|
|
63
|
+
export { ScrollActiveContainer }
|
|
681
64
|
|
|
682
|
-
export
|
|
683
|
-
home = "home",
|
|
684
|
-
repo = "repo",
|
|
685
|
-
org = "org",
|
|
686
|
-
aiHome = "aiHome",
|
|
687
|
-
aiRepo = "aiRepo",
|
|
688
|
-
aiGuide = "aiGuide",
|
|
689
|
-
blog = "blog",
|
|
690
|
-
news = "news",
|
|
691
|
-
active = "active",
|
|
692
|
-
user = "user",
|
|
693
|
-
enterprise = "enterprise"
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
export declare const ScrollActiveContainer: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
697
|
-
|
|
698
|
-
export declare function setLayoutConfig(customConfig: BaseLayoutConfig): void;
|
|
65
|
+
export { setLayoutConfig }
|
|
699
66
|
|
|
700
67
|
export { setTheme }
|
|
701
68
|
|
|
702
|
-
export
|
|
69
|
+
export { SiteAnnouncement }
|
|
703
70
|
|
|
704
|
-
|
|
705
|
-
COLLAPSE: string;
|
|
706
|
-
EXPAND: string;
|
|
707
|
-
};
|
|
71
|
+
export { ToolsFloat }
|
|
708
72
|
|
|
709
|
-
export
|
|
710
|
-
handleCollapseTool: (status: ToolsFloatCollapseStatusType) => void;
|
|
711
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
712
|
-
"toggle-growth-center": () => any;
|
|
713
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
714
|
-
"onToggle-growth-center"?: (() => any) | undefined;
|
|
715
|
-
}>, {
|
|
716
|
-
globalStore: {
|
|
717
|
-
isSignIn?: boolean;
|
|
718
|
-
[key: string]: any;
|
|
719
|
-
};
|
|
720
|
-
isLogin: boolean;
|
|
721
|
-
sceneValue: SceneValue;
|
|
722
|
-
request: Function;
|
|
723
|
-
isRepoPage: boolean;
|
|
724
|
-
isWhiteListRepo: boolean;
|
|
725
|
-
isCannWhiteList: boolean;
|
|
726
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
727
|
-
|
|
728
|
-
declare type ToolsFloatCollapseStatusType = typeof TOOLS_FLOAT_COLLAPSE_STATUS[keyof typeof TOOLS_FLOAT_COLLAPSE_STATUS];
|
|
729
|
-
|
|
730
|
-
export declare function useLogin(request: any, globalStore?: any): {
|
|
731
|
-
login: (options?: LoginOptions, loginSuccess?: Function, openHarmonyGuide?: boolean) => void;
|
|
732
|
-
unMount: () => void;
|
|
733
|
-
isMounted: () => boolean;
|
|
734
|
-
};
|
|
73
|
+
export { useLogin }
|
|
735
74
|
|
|
736
75
|
export { }
|