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/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 { default as GitCodeAside } from './components/Aside/index.vue';
5
- import { default as GitCodeHeader } from './components/Header/index.vue';
6
- import { default as Login } from './components//Login/Login.vue';
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 { default as SiteAnnouncement } from './components/Header/components/SiteAnnouncement.vue';
9
- import { default as ToolsFloat } from './components/ToolsFloat/index.vue';
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 { GitCodeAside }
274
+ export declare const GitCodeAside: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
66
275
 
67
- export { GitCodeHeader }
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
- export { Login }
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 { SiteAnnouncement }
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
- export { ToolsFloat }
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, W, N, S, Q, M, B, Y, V, X, U } from "./index-cAirjewC.js";
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
- W as GitCodeLayoutEmitter,
6
+ X as GitCodeLayoutEmitter,
6
7
  N as Login,
7
8
  S as SceneValue,
8
- Q as SiteAnnouncement,
9
+ U as SiteAnnouncement,
9
10
  M as ToolsFloat,
10
11
  B as currentTheme,
11
- Y as default,
12
- V as setLayoutConfig,
13
- X as setTheme,
14
- U as useLogin
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-cAirjewC.js";
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-layout-gitcode",
3
- "version": "1.11.4",
3
+ "version": "1.11.6",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",