vue-layout-gitcode 1.11.4 → 1.11.6
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-CMhbibC7.js} +3 -3
- package/{MenuItem-BBU1yNPa.js → MenuItem-y13ySAoS.js} +1 -1
- package/{ProjectMenuList-CFDCSWsY.js → ProjectMenuList-BLEujU6B.js} +2 -2
- package/{ProjectMenuListV2-BT9uWfo1.js → ProjectMenuListV2-DN-OS1_Z.js} +2 -2
- package/{ProjectSearch-WQ-yhwd9.js → ProjectSearch-D19VOmR7.js} +1 -1
- package/{SearchHistoryList-BSZrf2yu.js → SearchHistoryList-j6-2U9aS.js} +1 -1
- package/{SearchPrefixTag-D8ry9GQ1.js → SearchPrefixTag-C0OBu6qo.js} +1 -1
- package/{SearchRecommed-BuD0HbMu.js → SearchRecommed-uiIWyrlk.js} +2 -2
- package/{SearchScopeList-zokWYoeW.js → SearchScopeList-DJZXU0oU.js} +1 -1
- package/{UserSearch-DSPqr3C3.js → UserSearch-apL230OG.js} +1 -1
- package/{index-BBqyN8Dg.js → index-BNTNJVWd.js} +1 -1
- package/{index-De6ZTtoF.js → index-CPIALpyR.js} +2 -2
- package/{index-Dafdhx59.js → index-CWraK2Ue.js} +1 -1
- package/{index-cAirjewC.js → index-DCs_1jwN.js} +1055 -402
- package/index.d.ts +304 -10
- package/index.js +8 -7
- package/{notice-D5tJXygv.js → notice-Cn9W9Ucj.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-DiF2KJIa.js → transWebUrl-_T7Crztu.js} +1 -1
package/index.d.ts
CHANGED
|
@@ -1,12 +1,219 @@
|
|
|
1
|
+
import { AccountInfo } from '../../types/types';
|
|
1
2
|
import { App } from '../vue/dist/vue.esm-bundler.js';
|
|
3
|
+
import { ComponentOptionsMixin } from '../../../vue/dist/vue.esm-bundler.js';
|
|
4
|
+
import { ComponentOptionsMixin as ComponentOptionsMixin_2 } from '../../../../vue/dist/vue.esm-bundler.js';
|
|
5
|
+
import { ComponentProvideOptions } from '../../../vue/dist/vue.esm-bundler.js';
|
|
6
|
+
import { ComponentProvideOptions as ComponentProvideOptions_2 } from '../../../../vue/dist/vue.esm-bundler.js';
|
|
2
7
|
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';
|
|
3
10
|
import { Emitter } from 'mitt';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
11
|
+
import { HeaderPropsForCustom } from '../../types/types';
|
|
12
|
+
import { LocationQueryValue } from 'vue-router';
|
|
13
|
+
import { OrgInfo } from '../../types/types';
|
|
14
|
+
import { PublicProps } from '../../../vue/dist/vue.esm-bundler.js';
|
|
15
|
+
import { PublicProps as PublicProps_2 } from '../../../../vue/dist/vue.esm-bundler.js';
|
|
16
|
+
import { repoInfoType } from '../../types/types';
|
|
7
17
|
import { setTheme } from './themes/index';
|
|
8
|
-
import {
|
|
9
|
-
|
|
18
|
+
import { UserInfo } from '../../types/types';
|
|
19
|
+
|
|
20
|
+
declare const __VLS_component: DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_2> & Readonly<{}>, {
|
|
21
|
+
globalStore: Object;
|
|
22
|
+
sceneValue: SceneValue;
|
|
23
|
+
request: Function;
|
|
24
|
+
userInfo: AccountInfo;
|
|
25
|
+
independence: boolean;
|
|
26
|
+
slotKeys: Array<string>;
|
|
27
|
+
showThemeSetting: boolean;
|
|
28
|
+
showLangSetting: boolean;
|
|
29
|
+
showPreferencesSetting: boolean;
|
|
30
|
+
collapseMode: boolean;
|
|
31
|
+
disableFlatMode: boolean;
|
|
32
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
|
|
34
|
+
declare const __VLS_component_2: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
35
|
+
resetPwdDirectlySuccess: (...args: any[]) => void;
|
|
36
|
+
followDevCommunity: (...args: any[]) => void;
|
|
37
|
+
followUser: (...args: any[]) => void;
|
|
38
|
+
}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
|
|
39
|
+
onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
|
|
40
|
+
onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
onFollowUser?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
}>, {
|
|
43
|
+
globalStore: Object;
|
|
44
|
+
isLogin: boolean;
|
|
45
|
+
sceneValue: SceneValue;
|
|
46
|
+
request: Function;
|
|
47
|
+
repoInfo: repoInfoType;
|
|
48
|
+
orgInfo: OrgInfo;
|
|
49
|
+
otherUserInfo: UserInfo;
|
|
50
|
+
userInfo: UserInfo;
|
|
51
|
+
independence: boolean;
|
|
52
|
+
headerBorder: boolean;
|
|
53
|
+
bgConfig: {
|
|
54
|
+
index_head: string;
|
|
55
|
+
detail_top: string;
|
|
56
|
+
detail_top_black: string;
|
|
57
|
+
detail_toolbar: string;
|
|
58
|
+
detail_toolbar_black: string;
|
|
59
|
+
detail_top_url: string;
|
|
60
|
+
index_head_url: string;
|
|
61
|
+
detail_toolbar_url: string;
|
|
62
|
+
};
|
|
63
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
64
|
+
headerRef: HTMLDivElement;
|
|
65
|
+
}, HTMLDivElement>;
|
|
66
|
+
|
|
67
|
+
declare const __VLS_component_3: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
68
|
+
resetPwdDirectlySuccess: (...args: any[]) => void;
|
|
69
|
+
followDevCommunity: (...args: any[]) => void;
|
|
70
|
+
followUser: (...args: any[]) => void;
|
|
71
|
+
}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{
|
|
72
|
+
onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
|
|
73
|
+
onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
|
|
74
|
+
onFollowUser?: ((...args: any[]) => any) | undefined;
|
|
75
|
+
}>, {
|
|
76
|
+
globalStore: Object;
|
|
77
|
+
isLogin: boolean;
|
|
78
|
+
request: Function;
|
|
79
|
+
orgInfo: OrgInfo;
|
|
80
|
+
userInfo: UserInfo;
|
|
81
|
+
independence: boolean;
|
|
82
|
+
headerBorder: boolean;
|
|
83
|
+
enterpriseInfo: OrgInfo;
|
|
84
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
85
|
+
headerRef: HTMLDivElement;
|
|
86
|
+
}, HTMLDivElement>;
|
|
87
|
+
|
|
88
|
+
declare type __VLS_Props = {
|
|
89
|
+
isLogin: boolean;
|
|
90
|
+
request: Function;
|
|
91
|
+
loginOutFinish?: Function;
|
|
92
|
+
loginSuccess: Function;
|
|
93
|
+
globalStore: Object;
|
|
94
|
+
openHarmonyGuide: boolean;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
declare type __VLS_Props_2 = {
|
|
98
|
+
sceneValue: SceneValue;
|
|
99
|
+
isLogin: boolean;
|
|
100
|
+
request: Function;
|
|
101
|
+
loginOutFinish?: Function;
|
|
102
|
+
loginSuccess: Function;
|
|
103
|
+
globalStore: Object;
|
|
104
|
+
repoInfo?: repoInfoType;
|
|
105
|
+
orgInfo?: OrgInfo;
|
|
106
|
+
otherUserInfo?: UserInfo;
|
|
107
|
+
userInfo?: UserInfo;
|
|
108
|
+
headerFunctions?: HeaderDisplayItem[];
|
|
109
|
+
headerCustomProps?: HeaderPropsForCustom;
|
|
110
|
+
openHarmonyGuide: boolean;
|
|
111
|
+
headerBorder?: boolean;
|
|
112
|
+
independence?: boolean;
|
|
113
|
+
userMenus?: any[];
|
|
114
|
+
loginChildComponents: any;
|
|
115
|
+
bgConfig?: {
|
|
116
|
+
index_head: string;
|
|
117
|
+
detail_top: string;
|
|
118
|
+
detail_top_black: string;
|
|
119
|
+
detail_toolbar: string;
|
|
120
|
+
detail_toolbar_black: string;
|
|
121
|
+
detail_top_url: string;
|
|
122
|
+
index_head_url: string;
|
|
123
|
+
detail_toolbar_url: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
declare type __VLS_Props_3 = {
|
|
128
|
+
isLogin: boolean;
|
|
129
|
+
request: Function;
|
|
130
|
+
globalStore: Object;
|
|
131
|
+
loginSuccess: Function;
|
|
132
|
+
enterpriseInfo: OrgInfo;
|
|
133
|
+
loginOutFinish?: Function;
|
|
134
|
+
orgInfo?: OrgInfo;
|
|
135
|
+
userInfo?: UserInfo;
|
|
136
|
+
headerFunctions?: HeaderDisplayItem[];
|
|
137
|
+
openHarmonyGuide: boolean;
|
|
138
|
+
headerBorder?: boolean;
|
|
139
|
+
independence?: boolean;
|
|
140
|
+
userMenus?: any[];
|
|
141
|
+
loginChildComponents: any;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
declare function __VLS_template(): {
|
|
145
|
+
attrs: Partial<{}>;
|
|
146
|
+
slots: Partial<Record<string, (_: {}) => any>>;
|
|
147
|
+
refs: {};
|
|
148
|
+
rootEl: any;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
declare function __VLS_template_2(): {
|
|
152
|
+
attrs: Partial<{}>;
|
|
153
|
+
slots: {
|
|
154
|
+
headerCustom?(_: {}): any;
|
|
155
|
+
aiSearch?(_: {}): any;
|
|
156
|
+
headerMiddleRight?(_: {}): any;
|
|
157
|
+
search?(_: {}): any;
|
|
158
|
+
searchRecommend?(_: {}): any;
|
|
159
|
+
globalSearch?(_: {
|
|
160
|
+
searchStr: string | LocationQueryValue[];
|
|
161
|
+
searchMore: (type: any) => void;
|
|
162
|
+
}): any;
|
|
163
|
+
bodyHeader?(_: {}): any;
|
|
164
|
+
info?(_: {}): any;
|
|
165
|
+
menu?(_: {}): any;
|
|
166
|
+
headerBottom?(_: {}): any;
|
|
167
|
+
};
|
|
168
|
+
refs: {
|
|
169
|
+
headerRef: HTMLDivElement;
|
|
170
|
+
};
|
|
171
|
+
rootEl: HTMLDivElement;
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
declare function __VLS_template_3(): {
|
|
175
|
+
attrs: Partial<{}>;
|
|
176
|
+
slots: {
|
|
177
|
+
search?(_: {}): any;
|
|
178
|
+
searchRecommend?(_: {}): any;
|
|
179
|
+
globalSearch?(_: {
|
|
180
|
+
searchStr: string | LocationQueryValue[];
|
|
181
|
+
searchMore: (type: any) => void;
|
|
182
|
+
}): any;
|
|
183
|
+
bodyHeader?(_: {}): any;
|
|
184
|
+
info?(_: {}): any;
|
|
185
|
+
menu?(_: {}): any;
|
|
186
|
+
headerBottom?(_: {}): any;
|
|
187
|
+
};
|
|
188
|
+
refs: {
|
|
189
|
+
headerRef: HTMLDivElement;
|
|
190
|
+
};
|
|
191
|
+
rootEl: HTMLDivElement;
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
195
|
+
|
|
196
|
+
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
197
|
+
|
|
198
|
+
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
199
|
+
|
|
200
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
201
|
+
new (): {
|
|
202
|
+
$slots: S;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
207
|
+
new (): {
|
|
208
|
+
$slots: S;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
213
|
+
new (): {
|
|
214
|
+
$slots: S;
|
|
215
|
+
};
|
|
216
|
+
};
|
|
10
217
|
|
|
11
218
|
declare interface BaseLayoutConfig {
|
|
12
219
|
VITE_HOST: string;
|
|
@@ -32,6 +239,8 @@ declare const _default: {
|
|
|
32
239
|
};
|
|
33
240
|
export default _default;
|
|
34
241
|
|
|
242
|
+
export declare const EnterpriseHeader: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
243
|
+
|
|
35
244
|
declare type EventBus = {
|
|
36
245
|
logout?: boolean;
|
|
37
246
|
login?: any;
|
|
@@ -62,13 +271,31 @@ declare type EventBus = {
|
|
|
62
271
|
resetPwdDirectlySuccess: void;
|
|
63
272
|
};
|
|
64
273
|
|
|
65
|
-
export
|
|
274
|
+
export declare const GitCodeAside: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
66
275
|
|
|
67
|
-
export
|
|
276
|
+
export declare const GitCodeHeader: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
68
277
|
|
|
69
278
|
export declare const GitCodeLayoutEmitter: Emitter<EventBus>;
|
|
70
279
|
|
|
71
|
-
|
|
280
|
+
declare enum HeaderDisplayItem {
|
|
281
|
+
LOGIN_AND_AVATAR = "0101",
|
|
282
|
+
MESSAGE_CENTER = "0102",
|
|
283
|
+
NEW_BUTTON = "0103",
|
|
284
|
+
DOCUMENT_CENTER = "0104",
|
|
285
|
+
DEEPSEEK_BUTTON = "0105",
|
|
286
|
+
SEARCH_BUTTON = "0106",
|
|
287
|
+
NAME_AND_ICON = "0107",
|
|
288
|
+
CUSTOM_CONTENT = "0108",
|
|
289
|
+
ASIDE_BUTTON = "0109",
|
|
290
|
+
NEWS_MULTI_LANGUAGE = "0110",
|
|
291
|
+
OPERATION_ENTRY = "0111"
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export declare const Login: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
295
|
+
globalStore: Object;
|
|
296
|
+
request: Function;
|
|
297
|
+
openHarmonyGuide: boolean;
|
|
298
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
72
299
|
|
|
73
300
|
declare interface LoginOptions {
|
|
74
301
|
Authorization?: boolean;
|
|
@@ -79,6 +306,50 @@ declare interface LoginOptions {
|
|
|
79
306
|
[x: string]: any;
|
|
80
307
|
}
|
|
81
308
|
|
|
309
|
+
declare interface Props {
|
|
310
|
+
/** 场景值 核心参数之一 */
|
|
311
|
+
sceneValue: SceneValue;
|
|
312
|
+
/** 是否登录 */
|
|
313
|
+
isLogin: boolean;
|
|
314
|
+
/** 请求实例 */
|
|
315
|
+
request: Function;
|
|
316
|
+
/** 全局store 上报需要 */
|
|
317
|
+
globalStore: {
|
|
318
|
+
isSignIn?: boolean;
|
|
319
|
+
[key: string]: any;
|
|
320
|
+
};
|
|
321
|
+
/** 是否为项目页 */
|
|
322
|
+
isRepoPage?: boolean;
|
|
323
|
+
/** 是否是白名单项目 - 白名单项目页,默认收起工具栏 */
|
|
324
|
+
isWhiteListRepo: boolean;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
declare interface Props_2 {
|
|
328
|
+
/** 场景值 核心参数之一 */
|
|
329
|
+
sceneValue: SceneValue;
|
|
330
|
+
/** 禁用 flat 模式 */
|
|
331
|
+
disableFlatMode?: boolean;
|
|
332
|
+
/** 用户信息 */
|
|
333
|
+
userInfo: AccountInfo;
|
|
334
|
+
/** 是否登录 */
|
|
335
|
+
isLogin: boolean;
|
|
336
|
+
/** 请求实例 */
|
|
337
|
+
request: Function;
|
|
338
|
+
/** 全局store 上报需要 */
|
|
339
|
+
globalStore: Object;
|
|
340
|
+
/** 是否独立部署 */
|
|
341
|
+
independence?: boolean;
|
|
342
|
+
/** 是否显示偏好设置 */
|
|
343
|
+
showPreferencesSetting?: boolean | undefined;
|
|
344
|
+
/** 是否显示主题设置 */
|
|
345
|
+
showThemeSetting?: boolean | undefined;
|
|
346
|
+
/** 是否显示语言设置 */
|
|
347
|
+
showLangSetting?: boolean | undefined;
|
|
348
|
+
collapseMode?: boolean;
|
|
349
|
+
/** 需要显示hover的slotKeys */
|
|
350
|
+
slotKeys?: Array<string>;
|
|
351
|
+
}
|
|
352
|
+
|
|
82
353
|
export declare enum SceneValue {
|
|
83
354
|
home = "home",
|
|
84
355
|
repo = "repo",
|
|
@@ -96,9 +367,32 @@ export declare function setLayoutConfig(customConfig: BaseLayoutConfig): void;
|
|
|
96
367
|
|
|
97
368
|
export { setTheme }
|
|
98
369
|
|
|
99
|
-
export
|
|
370
|
+
export declare const SiteAnnouncement: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
371
|
+
|
|
372
|
+
declare const TOOLS_FLOAT_COLLAPSE_STATUS: {
|
|
373
|
+
COLLAPSE: string;
|
|
374
|
+
EXPAND: string;
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
export declare const ToolsFloat: DefineComponent<Props, {
|
|
378
|
+
handleCollapseTool: (status: ToolsFloatCollapseStatusType) => void;
|
|
379
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
380
|
+
"toggle-growth-center": () => any;
|
|
381
|
+
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
382
|
+
"onToggle-growth-center"?: (() => any) | undefined;
|
|
383
|
+
}>, {
|
|
384
|
+
globalStore: {
|
|
385
|
+
isSignIn?: boolean;
|
|
386
|
+
[key: string]: any;
|
|
387
|
+
};
|
|
388
|
+
isLogin: boolean;
|
|
389
|
+
sceneValue: SceneValue;
|
|
390
|
+
request: Function;
|
|
391
|
+
isRepoPage: boolean;
|
|
392
|
+
isWhiteListRepo: boolean;
|
|
393
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
100
394
|
|
|
101
|
-
|
|
395
|
+
declare type ToolsFloatCollapseStatusType = typeof TOOLS_FLOAT_COLLAPSE_STATUS[keyof typeof TOOLS_FLOAT_COLLAPSE_STATUS];
|
|
102
396
|
|
|
103
397
|
export declare function useLogin(request: any, globalStore?: any): {
|
|
104
398
|
login: (options?: LoginOptions, loginSuccess?: Function, openHarmonyGuide?: boolean) => void;
|
package/index.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { O, P,
|
|
1
|
+
import { Q, O, P, X, N, S, U, M, B, Z, W, Y, V } from "./index-DCs_1jwN.js";
|
|
2
2
|
export {
|
|
3
|
+
Q as EnterpriseHeader,
|
|
3
4
|
O as GitCodeAside,
|
|
4
5
|
P as GitCodeHeader,
|
|
5
|
-
|
|
6
|
+
X as GitCodeLayoutEmitter,
|
|
6
7
|
N as Login,
|
|
7
8
|
S as SceneValue,
|
|
8
|
-
|
|
9
|
+
U as SiteAnnouncement,
|
|
9
10
|
M as ToolsFloat,
|
|
10
11
|
B as currentTheme,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
Z as default,
|
|
13
|
+
W as setLayoutConfig,
|
|
14
|
+
Y as setTheme,
|
|
15
|
+
V as useLogin
|
|
15
16
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, createBlock, openBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
|
|
2
|
-
import { i as isPhone, u as useModel } from "./index-
|
|
2
|
+
import { i as isPhone, u as useModel } from "./index-DCs_1jwN.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";
|