vue-layout-gitcode 1.12.33 → 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-FdER9zXP.js → GloabarSearch-CEtgWiTd.js} +8 -8
- package/{MenuItem-D2_LvZCi.js → MenuItem-CRrWzBu_.js} +3 -3
- package/{ProjectMenuList-DDt_gOEY.js → ProjectMenuList---Zn6tsu.js} +19 -19
- package/{ProjectMenuListV2-BGGPh1vK.js → ProjectMenuListV2-qjzqvCAU.js} +8 -8
- package/{ProjectSearch-D9C19cN6.js → ProjectSearch-DKnhz2i-.js} +26 -18
- package/{SearchHistoryList-DjgzO_kR.js → SearchHistoryList-D_WQH3k0.js} +6 -6
- package/{SearchRecommed-tzOsLMbQ.js → SearchRecommed-C7iod1dC.js} +6 -6
- package/{SearchScopeList-CQsjq46j.js → SearchScopeList-lewgMZ_-.js} +5 -5
- package/{UserSearch-590o0ItK.js → UserSearch-CyPQD5Rt.js} +5 -5
- package/{index-DZBO98l0.js → index-BG3HvdyT.js} +3 -3
- package/{index-Dwfdvp-j.js → index-BsyIPSbg.js} +70 -70
- package/{index-COHx49Eg.js → index-Cx67TeFL.js} +4035 -2041
- package/{index-D4qBzVyU.js → index-erL3lMa7.js} +1 -1
- package/index.d.ts +338 -11
- package/index.js +16 -9
- package/{notice-CaAAFxYU.js → notice-2WSok1Yq.js} +13 -12
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-qlBP968n.js → transWebUrl-ChZBJdJ1.js} +1 -1
|
@@ -8,7 +8,7 @@ import { Message } from "vue-devui-lal/message";
|
|
|
8
8
|
import "vue-devui-lal/message/style.css";
|
|
9
9
|
import { FixedOverlay } from "vue-devui-lal/overlay";
|
|
10
10
|
import "vue-devui-lal/overlay/style.css";
|
|
11
|
-
import { a as i18n, k as usePageResize, z as isZh, _ as _export_sfc } from "./index-
|
|
11
|
+
import { a as i18n, k as usePageResize, z as isZh, _ as _export_sfc } from "./index-Cx67TeFL.js";
|
|
12
12
|
const _YunpianCaptchaManager = class _YunpianCaptchaManager {
|
|
13
13
|
// eslint-disable-next-line no-useless-constructor
|
|
14
14
|
constructor() {
|
package/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { HeaderPropsForCustom } from '../../types/types';
|
|
|
12
12
|
import { OrgInfo } from '../../types/types';
|
|
13
13
|
import { PublicProps } from '../../../vue/dist/vue.esm-bundler.js';
|
|
14
14
|
import { PublicProps as PublicProps_2 } from '../../../../vue/dist/vue.esm-bundler.js';
|
|
15
|
+
import { Ref } from '../../../vue/dist/vue.esm-bundler.js';
|
|
15
16
|
import { repoInfoType } from '../../types/types';
|
|
16
17
|
import { setTheme } from './themes/index';
|
|
17
18
|
import { UserInfo } from '../../types/types';
|
|
@@ -22,15 +23,40 @@ sceneValue: SceneValue;
|
|
|
22
23
|
request: Function;
|
|
23
24
|
userInfo: AccountInfo;
|
|
24
25
|
independence: boolean;
|
|
25
|
-
slotKeys: Array<string>;
|
|
26
26
|
showThemeSetting: boolean;
|
|
27
27
|
showLangSetting: boolean;
|
|
28
|
-
showPreferencesSetting: boolean;
|
|
29
|
-
collapseMode: boolean;
|
|
30
28
|
disableFlatMode: boolean;
|
|
29
|
+
collapseMode: boolean;
|
|
30
|
+
slotKeys: Array<string>;
|
|
31
|
+
showPreferencesSetting: boolean;
|
|
31
32
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
32
33
|
|
|
33
|
-
declare const __VLS_component_2: DefineComponent<
|
|
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, {
|
|
34
60
|
resetPwdDirectlySuccess: (...args: any[]) => void;
|
|
35
61
|
followDevCommunity: (...args: any[]) => void;
|
|
36
62
|
followUser: (...args: any[]) => void;
|
|
@@ -50,6 +76,8 @@ orgInfo: OrgInfo;
|
|
|
50
76
|
otherUserInfo: UserInfo;
|
|
51
77
|
userInfo: UserInfo;
|
|
52
78
|
independence: boolean;
|
|
79
|
+
atomcodeLaunchQs: string;
|
|
80
|
+
launchAtomCode: () => void | Promise<void>;
|
|
53
81
|
headerBorder: boolean;
|
|
54
82
|
bgConfig: {
|
|
55
83
|
index_head: string;
|
|
@@ -62,26 +90,30 @@ index_head_url: string;
|
|
|
62
90
|
detail_toolbar_url: string;
|
|
63
91
|
};
|
|
64
92
|
openCreateDropdown: boolean;
|
|
93
|
+
showAtomCodeLauncher: boolean;
|
|
65
94
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
66
95
|
headerRef: HTMLDivElement;
|
|
67
96
|
}, HTMLDivElement>;
|
|
68
97
|
|
|
69
|
-
declare const
|
|
98
|
+
declare const __VLS_component_4: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
70
99
|
resetPwdDirectlySuccess: (...args: any[]) => void;
|
|
71
100
|
followDevCommunity: (...args: any[]) => void;
|
|
72
101
|
followUser: (...args: any[]) => void;
|
|
73
|
-
}, string, PublicProps, Readonly<
|
|
102
|
+
}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{
|
|
74
103
|
onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
|
|
75
104
|
onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
|
|
76
105
|
onFollowUser?: ((...args: any[]) => any) | undefined;
|
|
77
106
|
}>, {
|
|
78
|
-
globalStore:
|
|
107
|
+
globalStore: Record<string, unknown>;
|
|
79
108
|
isLogin: boolean;
|
|
80
109
|
request: Function;
|
|
81
110
|
orgInfo: OrgInfo;
|
|
82
111
|
userInfo: UserInfo;
|
|
83
112
|
independence: boolean;
|
|
113
|
+
atomcodeLaunchQs: string;
|
|
114
|
+
launchAtomCode: () => void | Promise<void>;
|
|
84
115
|
headerBorder: boolean;
|
|
116
|
+
showAtomCodeLauncher: boolean;
|
|
85
117
|
enterpriseInfo: OrgInfo;
|
|
86
118
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
87
119
|
headerRef: HTMLDivElement;
|
|
@@ -125,12 +157,50 @@ declare type __VLS_Props_2 = {
|
|
|
125
157
|
detail_toolbar_url: string;
|
|
126
158
|
};
|
|
127
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>;
|
|
128
172
|
};
|
|
129
173
|
|
|
130
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 = {
|
|
131
201
|
isLogin: boolean;
|
|
132
202
|
request: Function;
|
|
133
|
-
globalStore:
|
|
203
|
+
globalStore: Record<string, unknown>;
|
|
134
204
|
loginSuccess: Function;
|
|
135
205
|
enterpriseInfo: OrgInfo;
|
|
136
206
|
loginOutFinish?: Function;
|
|
@@ -142,6 +212,24 @@ declare type __VLS_Props_3 = {
|
|
|
142
212
|
independence?: boolean;
|
|
143
213
|
userMenus?: any[];
|
|
144
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[];
|
|
145
233
|
};
|
|
146
234
|
|
|
147
235
|
declare function __VLS_template(): {
|
|
@@ -152,6 +240,19 @@ declare function __VLS_template(): {
|
|
|
152
240
|
};
|
|
153
241
|
|
|
154
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(): {
|
|
155
256
|
attrs: Partial<{}>;
|
|
156
257
|
slots: {
|
|
157
258
|
headerCustom?(_: {}): any;
|
|
@@ -163,6 +264,8 @@ declare function __VLS_template_2(): {
|
|
|
163
264
|
searchStr: string;
|
|
164
265
|
searchMore: (type: any) => void;
|
|
165
266
|
}): any;
|
|
267
|
+
atomCodeLauncher?(_: {}): any;
|
|
268
|
+
headerActions?(_: {}): any;
|
|
166
269
|
bodyHeader?(_: {}): any;
|
|
167
270
|
info?(_: {}): any;
|
|
168
271
|
menu?(_: {}): any;
|
|
@@ -174,7 +277,7 @@ declare function __VLS_template_2(): {
|
|
|
174
277
|
rootEl: HTMLDivElement;
|
|
175
278
|
};
|
|
176
279
|
|
|
177
|
-
declare function
|
|
280
|
+
declare function __VLS_template_4(): {
|
|
178
281
|
attrs: Partial<{}>;
|
|
179
282
|
slots: {
|
|
180
283
|
search?(_: {}): any;
|
|
@@ -200,6 +303,8 @@ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
|
200
303
|
|
|
201
304
|
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
202
305
|
|
|
306
|
+
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
307
|
+
|
|
203
308
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
204
309
|
new (): {
|
|
205
310
|
$slots: S;
|
|
@@ -218,6 +323,24 @@ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
|
218
323
|
};
|
|
219
324
|
};
|
|
220
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
|
+
|
|
221
344
|
declare interface BaseLayoutConfig {
|
|
222
345
|
VITE_HOST: string;
|
|
223
346
|
VITE_HOST_TIANQI: string;
|
|
@@ -242,7 +365,7 @@ declare const _default: {
|
|
|
242
365
|
};
|
|
243
366
|
export default _default;
|
|
244
367
|
|
|
245
|
-
export declare const EnterpriseHeader:
|
|
368
|
+
export declare const EnterpriseHeader: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
246
369
|
|
|
247
370
|
declare type EventBus = {
|
|
248
371
|
logout?: boolean;
|
|
@@ -272,14 +395,109 @@ declare type EventBus = {
|
|
|
272
395
|
crossQuestion: void;
|
|
273
396
|
hisSearchValue: string;
|
|
274
397
|
resetPwdDirectlySuccess: void;
|
|
398
|
+
loginModalClose: void;
|
|
399
|
+
loginModalAction: {
|
|
400
|
+
model_name: string;
|
|
401
|
+
};
|
|
275
402
|
};
|
|
276
403
|
|
|
277
404
|
export declare const GitCodeAside: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
278
405
|
|
|
279
|
-
export declare const
|
|
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>;
|
|
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>;
|
|
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
|
+
}
|
|
465
|
+
|
|
466
|
+
export declare const GitCodeHeader: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
280
467
|
|
|
281
468
|
export declare const GitCodeLayoutEmitter: Emitter<EventBus>;
|
|
282
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
|
+
|
|
283
501
|
declare enum HeaderDisplayItem {
|
|
284
502
|
LOGIN_AND_AVATAR = "0101",
|
|
285
503
|
MESSAGE_CENTER = "0102",
|
|
@@ -294,6 +512,77 @@ declare enum HeaderDisplayItem {
|
|
|
294
512
|
OPERATION_ENTRY = "0111"
|
|
295
513
|
}
|
|
296
514
|
|
|
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[];
|
|
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
|
+
|
|
297
586
|
export declare const Login: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
298
587
|
globalStore: Object;
|
|
299
588
|
request: Function;
|
|
@@ -354,6 +643,42 @@ declare interface Props_2 {
|
|
|
354
643
|
slotKeys?: Array<string>;
|
|
355
644
|
}
|
|
356
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
|
+
|
|
357
682
|
export declare enum SceneValue {
|
|
358
683
|
home = "home",
|
|
359
684
|
repo = "repo",
|
|
@@ -368,6 +693,8 @@ export declare enum SceneValue {
|
|
|
368
693
|
enterprise = "enterprise"
|
|
369
694
|
}
|
|
370
695
|
|
|
696
|
+
export declare const ScrollActiveContainer: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
697
|
+
|
|
371
698
|
export declare function setLayoutConfig(customConfig: BaseLayoutConfig): void;
|
|
372
699
|
|
|
373
700
|
export { setTheme }
|
package/index.js
CHANGED
|
@@ -1,16 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a1, Y, $, Q, U, W, a4, a6, Z, X, P, S, V, a0, O, B, a7, a3, a5, a2 } from "./index-Cx67TeFL.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
a1 as AsideFooterTools,
|
|
4
|
+
Y as AtomCodeLauncher,
|
|
5
|
+
$ as EnterpriseHeader,
|
|
4
6
|
Q as GitCodeAside,
|
|
5
|
-
U as
|
|
6
|
-
|
|
7
|
+
U as GitCodeAsideV2,
|
|
8
|
+
W as GitCodeHeader,
|
|
9
|
+
a4 as GitCodeLayoutEmitter,
|
|
10
|
+
a6 as HEADER_CREATE_MENU_PATHS,
|
|
11
|
+
Z as HeaderCreateMenu,
|
|
12
|
+
X as HomeHeaderActions,
|
|
7
13
|
P as Login,
|
|
8
14
|
S as SceneValue,
|
|
9
|
-
|
|
15
|
+
V as ScrollActiveContainer,
|
|
16
|
+
a0 as SiteAnnouncement,
|
|
10
17
|
O as ToolsFloat,
|
|
11
18
|
B as currentTheme,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
19
|
+
a7 as default,
|
|
20
|
+
a3 as setLayoutConfig,
|
|
21
|
+
a5 as setTheme,
|
|
22
|
+
a2 as useLogin
|
|
16
23
|
};
|
|
@@ -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, _ as _export_sfc } from "./index-Cx67TeFL.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";
|
|
@@ -26,19 +26,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(vModels) ? vModels.value = $event : null)
|
|
27
27
|
}, {
|
|
28
28
|
default: withCtx(() => [
|
|
29
|
-
_cache[3] || (_cache[3] = createElementVNode("div", { class: "
|
|
29
|
+
_cache[3] || (_cache[3] = createElementVNode("div", { class: "email-notice__text" }, "为了你的账户安全,请将系统预设的邮箱地址修改为你的真实邮箱地址。", -1)),
|
|
30
30
|
createElementVNode("div", {
|
|
31
|
-
class: normalizeClass([isMobile.value ? "
|
|
31
|
+
class: normalizeClass(["email-notice__actions", isMobile.value ? "email-notice__actions--mb" : "email-notice__actions--pc"])
|
|
32
32
|
}, [
|
|
33
33
|
createVNode(unref(Button), {
|
|
34
34
|
variant: "outline",
|
|
35
35
|
size: isMobile.value ? "sm" : "md",
|
|
36
|
-
onClick:
|
|
37
|
-
class: "
|
|
36
|
+
onClick: _ctx.onClose,
|
|
37
|
+
class: "email-notice__btn-ignore"
|
|
38
38
|
}, {
|
|
39
|
-
default: withCtx(() =>
|
|
40
|
-
createTextVNode("忽略"
|
|
41
|
-
])
|
|
39
|
+
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
40
|
+
createTextVNode("忽略")
|
|
41
|
+
])),
|
|
42
42
|
_: 1
|
|
43
43
|
}, 8, ["size", "onClick"]),
|
|
44
44
|
createVNode(unref(Button), {
|
|
@@ -47,9 +47,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
47
|
color: "primary",
|
|
48
48
|
onClick: handleConfirm
|
|
49
49
|
}, {
|
|
50
|
-
default: withCtx(() =>
|
|
51
|
-
createTextVNode("修改"
|
|
52
|
-
])
|
|
50
|
+
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
51
|
+
createTextVNode("修改")
|
|
52
|
+
])),
|
|
53
53
|
_: 1
|
|
54
54
|
}, 8, ["size"])
|
|
55
55
|
], 2)
|
|
@@ -59,6 +59,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
|
+
const notice = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
62
63
|
export {
|
|
63
|
-
|
|
64
|
+
notice as default
|
|
64
65
|
};
|