vue-layout-gitcode 1.11.4 → 1.11.5
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-Culg1crd.js → GloabarSearch-UTtXu_1X.js} +4 -4
- package/{MenuItem-BBU1yNPa.js → MenuItem-viVqVsLw.js} +2 -2
- package/{ProjectMenuList-CFDCSWsY.js → ProjectMenuList-nv7ACO_r.js} +3 -3
- package/{ProjectMenuListV2-BT9uWfo1.js → ProjectMenuListV2-CisNtVNi.js} +3 -3
- package/{ProjectSearch-WQ-yhwd9.js → ProjectSearch-G_v919VC.js} +2 -2
- package/{SearchHistoryList-BSZrf2yu.js → SearchHistoryList-COG-ZPLc.js} +2 -2
- package/{SearchPrefixTag-D8ry9GQ1.js → SearchPrefixTag-Ds_lSP_U.js} +2 -2
- package/{SearchRecommed-BuD0HbMu.js → SearchRecommed-DWGPJXDF.js} +3 -3
- package/{SearchScopeList-zokWYoeW.js → SearchScopeList-BZL4CQax.js} +2 -2
- package/{UserSearch-DSPqr3C3.js → UserSearch-CNp114in.js} +2 -2
- package/{index-BBqyN8Dg.js → index-BvzbFFDH.js} +2 -2
- package/{index-Dafdhx59.js → index-CbX6lspR.js} +2 -2
- package/{index-De6ZTtoF.js → index-Dvt7x63y.js} +3 -3
- package/{index-cAirjewC.js → index-fGEnM3kB.js} +49 -37
- package/index.d.ts +465 -10
- package/index.js +9 -9
- package/{notice-D5tJXygv.js → notice-CXVrU4mh.js} +2 -2
- package/package.json +1 -1
- package/{transWebUrl-DiF2KJIa.js → transWebUrl-DMFmdmmQ.js} +1 -1
package/index.d.ts
CHANGED
|
@@ -1,12 +1,120 @@
|
|
|
1
|
+
import { AccountInfo } from '../../types/types';
|
|
1
2
|
import { App } from '../vue/dist/vue.esm-bundler.js';
|
|
3
|
+
import { AxiosResponse } from 'axios';
|
|
4
|
+
import { ComponentOptionsMixin } from '../../../vue/dist/vue.esm-bundler.js';
|
|
5
|
+
import { ComponentOptionsMixin as ComponentOptionsMixin_2 } from '../../../../vue/dist/vue.esm-bundler.js';
|
|
6
|
+
import { ComponentProvideOptions } from '../../../vue/dist/vue.esm-bundler.js';
|
|
7
|
+
import { ComponentProvideOptions as ComponentProvideOptions_2 } from '../../../../vue/dist/vue.esm-bundler.js';
|
|
2
8
|
import { currentTheme } from './themes/index';
|
|
9
|
+
import { DefineComponent } from '../../../vue/dist/vue.esm-bundler.js';
|
|
10
|
+
import { DefineComponent as DefineComponent_2 } from '../../../../vue/dist/vue.esm-bundler.js';
|
|
3
11
|
import { Emitter } from 'mitt';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
12
|
+
import { ExtractPropTypes } from '../../../vue/dist/vue.esm-bundler.js';
|
|
13
|
+
import { HeaderPropsForCustom } from '../../types/types';
|
|
14
|
+
import { hn } from 'vue-router/dist/router-CWoNjPRp.mjs';
|
|
15
|
+
import { OrgInfo } from '../../types/types';
|
|
16
|
+
import { PropType } from '../../../vue/dist/vue.esm-bundler.js';
|
|
17
|
+
import { PublicProps } from '../../../vue/dist/vue.esm-bundler.js';
|
|
18
|
+
import { PublicProps as PublicProps_2 } from '../../../../vue/dist/vue.esm-bundler.js';
|
|
19
|
+
import { repoInfoType } from '../../types/types';
|
|
7
20
|
import { setTheme } from './themes/index';
|
|
8
|
-
import {
|
|
9
|
-
|
|
21
|
+
import { UserInfo } from '../../types/types';
|
|
22
|
+
|
|
23
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
+
|
|
25
|
+
declare type __VLS_NonUndefinedable_2<T> = T extends undefined ? never : T;
|
|
26
|
+
|
|
27
|
+
declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
|
|
28
|
+
|
|
29
|
+
declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
|
|
30
|
+
|
|
31
|
+
declare type __VLS_Prettify<T> = {
|
|
32
|
+
[K in keyof T]: T[K];
|
|
33
|
+
} & {};
|
|
34
|
+
|
|
35
|
+
declare type __VLS_Prettify_2<T> = {
|
|
36
|
+
[K in keyof T]: T[K];
|
|
37
|
+
} & {};
|
|
38
|
+
|
|
39
|
+
declare type __VLS_Prettify_3<T> = {
|
|
40
|
+
[K in keyof T]: T[K];
|
|
41
|
+
} & {};
|
|
42
|
+
|
|
43
|
+
declare type __VLS_Prettify_4<T> = {
|
|
44
|
+
[K in keyof T]: T[K];
|
|
45
|
+
} & {};
|
|
46
|
+
|
|
47
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
48
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
49
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
50
|
+
} : {
|
|
51
|
+
type: PropType<T[K]>;
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
declare type __VLS_TypePropsToRuntimeProps_2<T> = {
|
|
57
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
58
|
+
type: PropType<__VLS_NonUndefinedable_2<T[K]>>;
|
|
59
|
+
} : {
|
|
60
|
+
type: PropType<T[K]>;
|
|
61
|
+
required: true;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
declare type __VLS_TypePropsToRuntimeProps_3<T> = {
|
|
66
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
67
|
+
type: PropType<__VLS_NonUndefinedable_3<T[K]>>;
|
|
68
|
+
} : {
|
|
69
|
+
type: PropType<T[K]>;
|
|
70
|
+
required: true;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
declare type __VLS_TypePropsToRuntimeProps_4<T> = {
|
|
75
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
76
|
+
type: PropType<__VLS_NonUndefinedable_4<T[K]>>;
|
|
77
|
+
} : {
|
|
78
|
+
type: PropType<T[K]>;
|
|
79
|
+
required: true;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
84
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
85
|
+
default: D[K];
|
|
86
|
+
}> : P[K];
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
declare type __VLS_WithDefaults_2<P, D> = {
|
|
90
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_2<P[K] & {
|
|
91
|
+
default: D[K];
|
|
92
|
+
}> : P[K];
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
declare type __VLS_WithDefaults_3<P, D> = {
|
|
96
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_3<P[K] & {
|
|
97
|
+
default: D[K];
|
|
98
|
+
}> : P[K];
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
declare type __VLS_WithDefaults_4<P, D> = {
|
|
102
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_4<P[K] & {
|
|
103
|
+
default: D[K];
|
|
104
|
+
}> : P[K];
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
108
|
+
new (): {
|
|
109
|
+
$slots: S;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
114
|
+
new (): {
|
|
115
|
+
$slots: S;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
10
118
|
|
|
11
119
|
declare interface BaseLayoutConfig {
|
|
12
120
|
VITE_HOST: string;
|
|
@@ -62,13 +170,276 @@ declare type EventBus = {
|
|
|
62
170
|
resetPwdDirectlySuccess: void;
|
|
63
171
|
};
|
|
64
172
|
|
|
65
|
-
export
|
|
173
|
+
export declare const GitCodeAside: __VLS_WithTemplateSlots<DefineComponent<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<Props_2>, {
|
|
174
|
+
sceneValue: SceneValue;
|
|
175
|
+
disableFlatMode: boolean;
|
|
176
|
+
request: (params: any, customConfigs?: {
|
|
177
|
+
customError?: boolean | undefined;
|
|
178
|
+
customTimeout?: number | undefined;
|
|
179
|
+
ignoreError?: boolean | undefined;
|
|
180
|
+
customErrorCodes?: number[] | undefined;
|
|
181
|
+
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
182
|
+
globalStore: () => {
|
|
183
|
+
httpStatus: number;
|
|
184
|
+
};
|
|
185
|
+
userInfo: () => {};
|
|
186
|
+
independence: boolean;
|
|
187
|
+
showPreferencesSetting: undefined;
|
|
188
|
+
showThemeSetting: undefined;
|
|
189
|
+
showLangSetting: undefined;
|
|
190
|
+
/** 默认展示小侧边栏,收起隐藏 */
|
|
191
|
+
collapseMode: boolean;
|
|
192
|
+
/** 需要显示hover的slotKeys */
|
|
193
|
+
slotKeys: () => never[];
|
|
194
|
+
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<Props_2>, {
|
|
195
|
+
sceneValue: SceneValue;
|
|
196
|
+
disableFlatMode: boolean;
|
|
197
|
+
request: (params: any, customConfigs?: {
|
|
198
|
+
customError?: boolean | undefined;
|
|
199
|
+
customTimeout?: number | undefined;
|
|
200
|
+
ignoreError?: boolean | undefined;
|
|
201
|
+
customErrorCodes?: number[] | undefined;
|
|
202
|
+
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
203
|
+
globalStore: () => {
|
|
204
|
+
httpStatus: number;
|
|
205
|
+
};
|
|
206
|
+
userInfo: () => {};
|
|
207
|
+
independence: boolean;
|
|
208
|
+
showPreferencesSetting: undefined;
|
|
209
|
+
showThemeSetting: undefined;
|
|
210
|
+
showLangSetting: undefined;
|
|
211
|
+
/** 默认展示小侧边栏,收起隐藏 */
|
|
212
|
+
collapseMode: boolean;
|
|
213
|
+
/** 需要显示hover的slotKeys */
|
|
214
|
+
slotKeys: () => never[];
|
|
215
|
+
}>>> & Readonly<{}>, {
|
|
216
|
+
globalStore: Object;
|
|
217
|
+
sceneValue: SceneValue;
|
|
218
|
+
request: Function;
|
|
219
|
+
userInfo: AccountInfo;
|
|
220
|
+
independence: boolean;
|
|
221
|
+
slotKeys: string[];
|
|
222
|
+
showThemeSetting: boolean;
|
|
223
|
+
showLangSetting: boolean;
|
|
224
|
+
showPreferencesSetting: boolean;
|
|
225
|
+
collapseMode: boolean;
|
|
226
|
+
disableFlatMode: boolean;
|
|
227
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Partial<Record<string, (_: {}) => any>>>;
|
|
66
228
|
|
|
67
|
-
export
|
|
229
|
+
export declare const GitCodeHeader: __VLS_WithTemplateSlots_2<DefineComponent<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<{
|
|
230
|
+
sceneValue: SceneValue;
|
|
231
|
+
isLogin: boolean;
|
|
232
|
+
request: Function;
|
|
233
|
+
loginOutFinish?: Function | undefined;
|
|
234
|
+
loginSuccess: Function;
|
|
235
|
+
globalStore: Object;
|
|
236
|
+
repoInfo?: repoInfoType | undefined;
|
|
237
|
+
orgInfo?: OrgInfo | undefined;
|
|
238
|
+
otherUserInfo?: UserInfo | undefined;
|
|
239
|
+
userInfo?: UserInfo | undefined;
|
|
240
|
+
headerFunctions?: HeaderDisplayItem[] | undefined;
|
|
241
|
+
headerCustomProps?: HeaderPropsForCustom | undefined;
|
|
242
|
+
openHarmonyGuide: boolean;
|
|
243
|
+
headerBorder?: boolean | undefined;
|
|
244
|
+
independence?: boolean | undefined;
|
|
245
|
+
userMenus?: any[] | undefined;
|
|
246
|
+
loginChildComponents: any;
|
|
247
|
+
bgConfig?: {
|
|
248
|
+
index_head: string;
|
|
249
|
+
detail_top: string;
|
|
250
|
+
detail_top_black: string;
|
|
251
|
+
detail_toolbar: string;
|
|
252
|
+
detail_toolbar_black: string;
|
|
253
|
+
detail_top_url: string;
|
|
254
|
+
index_head_url: string;
|
|
255
|
+
detail_toolbar_url: string;
|
|
256
|
+
} | undefined;
|
|
257
|
+
}>, {
|
|
258
|
+
sceneValue: any;
|
|
259
|
+
headerBorder: boolean;
|
|
260
|
+
isLogin: boolean;
|
|
261
|
+
independence: boolean;
|
|
262
|
+
request: (params: any, customConfigs?: {
|
|
263
|
+
customError?: boolean | undefined;
|
|
264
|
+
customTimeout?: number | undefined;
|
|
265
|
+
ignoreError?: boolean | undefined;
|
|
266
|
+
customErrorCodes?: number[] | undefined;
|
|
267
|
+
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
268
|
+
globalStore: () => {
|
|
269
|
+
httpStatus: number;
|
|
270
|
+
};
|
|
271
|
+
repoInfo: () => {};
|
|
272
|
+
orgInfo: () => {};
|
|
273
|
+
otherUserInfo: () => {};
|
|
274
|
+
userInfo: () => {};
|
|
275
|
+
bgConfig: () => {
|
|
276
|
+
index_head: string;
|
|
277
|
+
detail_top: string;
|
|
278
|
+
detail_top_black: string;
|
|
279
|
+
detail_toolbar: string;
|
|
280
|
+
detail_toolbar_black: string;
|
|
281
|
+
detail_top_url: string;
|
|
282
|
+
index_head_url: string;
|
|
283
|
+
detail_toolbar_url: string;
|
|
284
|
+
};
|
|
285
|
+
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
286
|
+
resetPwdDirectlySuccess: (...args: any[]) => void;
|
|
287
|
+
followDevCommunity: (...args: any[]) => void;
|
|
288
|
+
followUser: (...args: any[]) => void;
|
|
289
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<{
|
|
290
|
+
sceneValue: SceneValue;
|
|
291
|
+
isLogin: boolean;
|
|
292
|
+
request: Function;
|
|
293
|
+
loginOutFinish?: Function | undefined;
|
|
294
|
+
loginSuccess: Function;
|
|
295
|
+
globalStore: Object;
|
|
296
|
+
repoInfo?: repoInfoType | undefined;
|
|
297
|
+
orgInfo?: OrgInfo | undefined;
|
|
298
|
+
otherUserInfo?: UserInfo | undefined;
|
|
299
|
+
userInfo?: UserInfo | undefined;
|
|
300
|
+
headerFunctions?: HeaderDisplayItem[] | undefined;
|
|
301
|
+
headerCustomProps?: HeaderPropsForCustom | undefined;
|
|
302
|
+
openHarmonyGuide: boolean;
|
|
303
|
+
headerBorder?: boolean | undefined;
|
|
304
|
+
independence?: boolean | undefined;
|
|
305
|
+
userMenus?: any[] | undefined;
|
|
306
|
+
loginChildComponents: any;
|
|
307
|
+
bgConfig?: {
|
|
308
|
+
index_head: string;
|
|
309
|
+
detail_top: string;
|
|
310
|
+
detail_top_black: string;
|
|
311
|
+
detail_toolbar: string;
|
|
312
|
+
detail_toolbar_black: string;
|
|
313
|
+
detail_top_url: string;
|
|
314
|
+
index_head_url: string;
|
|
315
|
+
detail_toolbar_url: string;
|
|
316
|
+
} | undefined;
|
|
317
|
+
}>, {
|
|
318
|
+
sceneValue: any;
|
|
319
|
+
headerBorder: boolean;
|
|
320
|
+
isLogin: boolean;
|
|
321
|
+
independence: boolean;
|
|
322
|
+
request: (params: any, customConfigs?: {
|
|
323
|
+
customError?: boolean | undefined;
|
|
324
|
+
customTimeout?: number | undefined;
|
|
325
|
+
ignoreError?: boolean | undefined;
|
|
326
|
+
customErrorCodes?: number[] | undefined;
|
|
327
|
+
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
328
|
+
globalStore: () => {
|
|
329
|
+
httpStatus: number;
|
|
330
|
+
};
|
|
331
|
+
repoInfo: () => {};
|
|
332
|
+
orgInfo: () => {};
|
|
333
|
+
otherUserInfo: () => {};
|
|
334
|
+
userInfo: () => {};
|
|
335
|
+
bgConfig: () => {
|
|
336
|
+
index_head: string;
|
|
337
|
+
detail_top: string;
|
|
338
|
+
detail_top_black: string;
|
|
339
|
+
detail_toolbar: string;
|
|
340
|
+
detail_toolbar_black: string;
|
|
341
|
+
detail_top_url: string;
|
|
342
|
+
index_head_url: string;
|
|
343
|
+
detail_toolbar_url: string;
|
|
344
|
+
};
|
|
345
|
+
}>>> & Readonly<{
|
|
346
|
+
onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
|
|
347
|
+
onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
|
|
348
|
+
onFollowUser?: ((...args: any[]) => any) | undefined;
|
|
349
|
+
}>, {
|
|
350
|
+
globalStore: Object;
|
|
351
|
+
isLogin: boolean;
|
|
352
|
+
sceneValue: SceneValue;
|
|
353
|
+
request: Function;
|
|
354
|
+
repoInfo: repoInfoType;
|
|
355
|
+
orgInfo: OrgInfo;
|
|
356
|
+
otherUserInfo: UserInfo;
|
|
357
|
+
userInfo: UserInfo;
|
|
358
|
+
independence: boolean;
|
|
359
|
+
headerBorder: boolean;
|
|
360
|
+
bgConfig: {
|
|
361
|
+
index_head: string;
|
|
362
|
+
detail_top: string;
|
|
363
|
+
detail_top_black: string;
|
|
364
|
+
detail_toolbar: string;
|
|
365
|
+
detail_toolbar_black: string;
|
|
366
|
+
detail_top_url: string;
|
|
367
|
+
index_head_url: string;
|
|
368
|
+
detail_toolbar_url: string;
|
|
369
|
+
};
|
|
370
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
371
|
+
headerCustom?(_: {}): any;
|
|
372
|
+
aiSearch?(_: {}): any;
|
|
373
|
+
headerMiddleRight?(_: {}): any;
|
|
374
|
+
search?(_: {}): any;
|
|
375
|
+
searchRecommend?(_: {}): any;
|
|
376
|
+
globalSearch?(_: {
|
|
377
|
+
searchStr: string | hn[];
|
|
378
|
+
searchMore: (type: any) => void;
|
|
379
|
+
}): any;
|
|
380
|
+
bodyHeader?(_: {}): any;
|
|
381
|
+
info?(_: {}): any;
|
|
382
|
+
menu?(_: {}): any;
|
|
383
|
+
headerBottom?(_: {}): any;
|
|
384
|
+
}>;
|
|
68
385
|
|
|
69
386
|
export declare const GitCodeLayoutEmitter: Emitter<EventBus>;
|
|
70
387
|
|
|
71
|
-
|
|
388
|
+
declare enum HeaderDisplayItem {
|
|
389
|
+
LOGIN_AND_AVATAR = "0101",
|
|
390
|
+
MESSAGE_CENTER = "0102",
|
|
391
|
+
NEW_BUTTON = "0103",
|
|
392
|
+
DOCUMENT_CENTER = "0104",
|
|
393
|
+
DEEPSEEK_BUTTON = "0105",
|
|
394
|
+
SEARCH_BUTTON = "0106",
|
|
395
|
+
NAME_AND_ICON = "0107",
|
|
396
|
+
CUSTOM_CONTENT = "0108",
|
|
397
|
+
ASIDE_BUTTON = "0109",
|
|
398
|
+
NEWS_MULTI_LANGUAGE = "0110",
|
|
399
|
+
OPERATION_ENTRY = "0111"
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
export declare const Login: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
|
|
403
|
+
isLogin: boolean;
|
|
404
|
+
request: Function;
|
|
405
|
+
loginOutFinish?: Function | undefined;
|
|
406
|
+
loginSuccess: Function;
|
|
407
|
+
globalStore: Object;
|
|
408
|
+
openHarmonyGuide: boolean;
|
|
409
|
+
}>, {
|
|
410
|
+
request: (params: any, customConfigs?: {
|
|
411
|
+
customError?: boolean | undefined;
|
|
412
|
+
customTimeout?: number | undefined;
|
|
413
|
+
ignoreError?: boolean | undefined;
|
|
414
|
+
customErrorCodes?: number[] | undefined;
|
|
415
|
+
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
416
|
+
globalStore: () => {
|
|
417
|
+
httpStatus: number;
|
|
418
|
+
};
|
|
419
|
+
openHarmonyGuide: boolean;
|
|
420
|
+
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
|
|
421
|
+
isLogin: boolean;
|
|
422
|
+
request: Function;
|
|
423
|
+
loginOutFinish?: Function | undefined;
|
|
424
|
+
loginSuccess: Function;
|
|
425
|
+
globalStore: Object;
|
|
426
|
+
openHarmonyGuide: boolean;
|
|
427
|
+
}>, {
|
|
428
|
+
request: (params: any, customConfigs?: {
|
|
429
|
+
customError?: boolean | undefined;
|
|
430
|
+
customTimeout?: number | undefined;
|
|
431
|
+
ignoreError?: boolean | undefined;
|
|
432
|
+
customErrorCodes?: number[] | undefined;
|
|
433
|
+
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
434
|
+
globalStore: () => {
|
|
435
|
+
httpStatus: number;
|
|
436
|
+
};
|
|
437
|
+
openHarmonyGuide: boolean;
|
|
438
|
+
}>>> & Readonly<{}>, {
|
|
439
|
+
globalStore: Object;
|
|
440
|
+
request: Function;
|
|
441
|
+
openHarmonyGuide: boolean;
|
|
442
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
72
443
|
|
|
73
444
|
declare interface LoginOptions {
|
|
74
445
|
Authorization?: boolean;
|
|
@@ -79,6 +450,50 @@ declare interface LoginOptions {
|
|
|
79
450
|
[x: string]: any;
|
|
80
451
|
}
|
|
81
452
|
|
|
453
|
+
declare interface Props {
|
|
454
|
+
/** 场景值 核心参数之一 */
|
|
455
|
+
sceneValue: SceneValue;
|
|
456
|
+
/** 是否登录 */
|
|
457
|
+
isLogin: boolean;
|
|
458
|
+
/** 请求实例 */
|
|
459
|
+
request: Function;
|
|
460
|
+
/** 全局store 上报需要 */
|
|
461
|
+
globalStore: {
|
|
462
|
+
isSignIn?: boolean;
|
|
463
|
+
[key: string]: any;
|
|
464
|
+
};
|
|
465
|
+
/** 是否为项目页 */
|
|
466
|
+
isRepoPage?: boolean;
|
|
467
|
+
/** 是否是白名单项目 - 白名单项目页,默认收起工具栏 */
|
|
468
|
+
isWhiteListRepo: boolean;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
declare interface Props_2 {
|
|
472
|
+
/** 场景值 核心参数之一 */
|
|
473
|
+
sceneValue: SceneValue;
|
|
474
|
+
/** 禁用 flat 模式 */
|
|
475
|
+
disableFlatMode?: boolean;
|
|
476
|
+
/** 用户信息 */
|
|
477
|
+
userInfo: AccountInfo;
|
|
478
|
+
/** 是否登录 */
|
|
479
|
+
isLogin: boolean;
|
|
480
|
+
/** 请求实例 */
|
|
481
|
+
request: Function;
|
|
482
|
+
/** 全局store 上报需要 */
|
|
483
|
+
globalStore: Object;
|
|
484
|
+
/** 是否独立部署 */
|
|
485
|
+
independence?: boolean;
|
|
486
|
+
/** 是否显示偏好设置 */
|
|
487
|
+
showPreferencesSetting?: boolean | undefined;
|
|
488
|
+
/** 是否显示主题设置 */
|
|
489
|
+
showThemeSetting?: boolean | undefined;
|
|
490
|
+
/** 是否显示语言设置 */
|
|
491
|
+
showLangSetting?: boolean | undefined;
|
|
492
|
+
collapseMode?: boolean;
|
|
493
|
+
/** 需要显示hover的slotKeys */
|
|
494
|
+
slotKeys?: Array<string>;
|
|
495
|
+
}
|
|
496
|
+
|
|
82
497
|
export declare enum SceneValue {
|
|
83
498
|
home = "home",
|
|
84
499
|
repo = "repo",
|
|
@@ -96,9 +511,49 @@ export declare function setLayoutConfig(customConfig: BaseLayoutConfig): void;
|
|
|
96
511
|
|
|
97
512
|
export { setTheme }
|
|
98
513
|
|
|
99
|
-
export
|
|
514
|
+
export declare const SiteAnnouncement: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
100
515
|
|
|
101
|
-
export
|
|
516
|
+
export declare const ToolsFloat: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
517
|
+
sceneValue: SceneValue;
|
|
518
|
+
isLogin: boolean;
|
|
519
|
+
request: (params: any, customConfigs?: {
|
|
520
|
+
customError?: boolean | undefined;
|
|
521
|
+
customTimeout?: number | undefined;
|
|
522
|
+
ignoreError?: boolean | undefined;
|
|
523
|
+
customErrorCodes?: number[] | undefined;
|
|
524
|
+
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
525
|
+
globalStore: () => {};
|
|
526
|
+
isRepoPage: boolean;
|
|
527
|
+
isWhiteListRepo: boolean;
|
|
528
|
+
}>>, {
|
|
529
|
+
handleCollapseTool: (status: string) => void;
|
|
530
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
531
|
+
"toggle-growth-center": () => void;
|
|
532
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
533
|
+
sceneValue: SceneValue;
|
|
534
|
+
isLogin: boolean;
|
|
535
|
+
request: (params: any, customConfigs?: {
|
|
536
|
+
customError?: boolean | undefined;
|
|
537
|
+
customTimeout?: number | undefined;
|
|
538
|
+
ignoreError?: boolean | undefined;
|
|
539
|
+
customErrorCodes?: number[] | undefined;
|
|
540
|
+
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
541
|
+
globalStore: () => {};
|
|
542
|
+
isRepoPage: boolean;
|
|
543
|
+
isWhiteListRepo: boolean;
|
|
544
|
+
}>>> & Readonly<{
|
|
545
|
+
"onToggle-growth-center"?: (() => any) | undefined;
|
|
546
|
+
}>, {
|
|
547
|
+
globalStore: {
|
|
548
|
+
[key: string]: any;
|
|
549
|
+
isSignIn?: boolean | undefined;
|
|
550
|
+
};
|
|
551
|
+
isLogin: boolean;
|
|
552
|
+
sceneValue: SceneValue;
|
|
553
|
+
request: Function;
|
|
554
|
+
isRepoPage: boolean;
|
|
555
|
+
isWhiteListRepo: boolean;
|
|
556
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
102
557
|
|
|
103
558
|
export declare function useLogin(request: any, globalStore?: any): {
|
|
104
559
|
login: (options?: LoginOptions, loginSuccess?: Function, openHarmonyGuide?: boolean) => void;
|
package/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { M, N, O, P, S, Q, U, B, V, W, X, Y } from "./index-fGEnM3kB.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
M as GitCodeAside,
|
|
4
|
+
N as GitCodeHeader,
|
|
5
|
+
O as GitCodeLayoutEmitter,
|
|
6
|
+
P as Login,
|
|
7
7
|
S as SceneValue,
|
|
8
8
|
Q as SiteAnnouncement,
|
|
9
|
-
|
|
9
|
+
U as ToolsFloat,
|
|
10
10
|
B as currentTheme,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
V as default,
|
|
12
|
+
W as setLayoutConfig,
|
|
13
13
|
X as setTheme,
|
|
14
|
-
|
|
14
|
+
Y as useLogin
|
|
15
15
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, computed,
|
|
2
|
-
import { i as isPhone, u as useModel } 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 } from "./index-fGEnM3kB.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";
|
package/package.json
CHANGED