vue-layout-gitcode 1.11.9 → 1.12.1-beta
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/README.md +533 -0
- package/{GloabarSearch-91A6wrvj.js → dist/GloabarSearch-BVSCbbUb.js} +8 -8
- package/{MenuItem-BVINvSGW.js → dist/MenuItem-DjuP8f45.js} +7 -20
- package/{ProjectMenuList-DUu1KMLN.js → dist/ProjectMenuList-DkKK-NLS.js} +13 -13
- package/{ProjectMenuListV2-CdEFG8K2.js → dist/ProjectMenuListV2-Cy-mDopT.js} +7 -7
- package/{ProjectSearch-BH18p9pb.js → dist/ProjectSearch-DJmX8Vkw.js} +5 -5
- package/{SearchHistoryList-BdEzvpAl.js → dist/SearchHistoryList-DcxGIVKV.js} +12 -12
- package/{SearchPrefixTag-TgEVgvvw.js → dist/SearchPrefixTag-wGBoyYuN.js} +5 -5
- package/{SearchRecommed-DMc_cpwA.js → dist/SearchRecommed-Bj4rOU-E.js} +6 -6
- package/{SearchScopeList-3_8o-XH5.js → dist/SearchScopeList-DXkCgNHW.js} +7 -7
- package/{UserSearch-dVyT-g5X.js → dist/UserSearch-B3LLBuMp.js} +5 -5
- package/{index-DElXrUuD.js → dist/index-BO5ZxPlJ.js} +3 -3
- package/{index-BkKz6ul1.js → dist/index-BZtPjJo6.js} +69 -69
- package/{index-C6Lx-tXg.js → dist/index-CYtl2kxU.js} +1 -1
- package/{index-DJFGf8D7.js → dist/index-NfMFRNgz.js} +1196 -1176
- package/dist/index.d.ts +109 -0
- package/{index.js → dist/index.js} +1 -1
- package/{notice-ZZODW7f-.js → dist/notice-NzYRRupc.js} +13 -12
- package/dist/package.json +13 -0
- package/dist/style.css +1 -0
- package/{transWebUrl-5tFpNBo4.js → dist/transWebUrl-Cvy6Fboe.js} +1 -1
- package/package.json +71 -11
- package/index.d.ts +0 -571
- package/style.css +0 -1
package/package.json
CHANGED
|
@@ -1,13 +1,73 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-layout-gitcode",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
"version": "1.12.1-beta",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist"
|
|
7
|
+
],
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"module": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts"
|
|
15
|
+
},
|
|
16
|
+
"./style.css": "./dist/style.css"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"dev": "vite",
|
|
20
|
+
"patch": "npm version patch",
|
|
21
|
+
"build": "vite build && node scripts/build.js",
|
|
22
|
+
"build:test": "vite build && node scripts/build.js --mode test",
|
|
23
|
+
"publish": "cd dist && npm publish",
|
|
24
|
+
"build:watch": "vite build --watch",
|
|
25
|
+
"preview": "vite preview",
|
|
26
|
+
"serve": "vite",
|
|
27
|
+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
|
28
|
+
"i18n-check": "vue-i18n-extract report --vueFiles './src/**/*.?(vue|ts|js)' --languageFiles './src/locales/**/*.json'"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@rushstack/eslint-patch": "^1.2.0",
|
|
32
|
+
"@types/js-cookie": "^3.0.6",
|
|
33
|
+
"@types/node": "^18.17.1",
|
|
34
|
+
"@vitejs/plugin-vue": "^5.1.0",
|
|
35
|
+
"@vue/eslint-config-prettier": "^7.1.0",
|
|
36
|
+
"@vue/eslint-config-typescript": "^11.0.3",
|
|
37
|
+
"autoprefixer": "^10.4.21",
|
|
38
|
+
"eslint": "^8.57.0",
|
|
39
|
+
"eslint-config-prettier": "^9.1.0",
|
|
40
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
41
|
+
"eslint-plugin-vue": "^9.25.0",
|
|
42
|
+
"js-cookie": "^3.0.5",
|
|
43
|
+
"postcss": "^8.5.3",
|
|
44
|
+
"prettier": "^3.2.5",
|
|
45
|
+
"sass": "^1.63.6",
|
|
46
|
+
"stylelint-prettier": "^5.0.0",
|
|
47
|
+
"terser": "^5.4.0",
|
|
48
|
+
"typescript": "^4.9.5",
|
|
49
|
+
"vite": "^5.1.0",
|
|
50
|
+
"vite-plugin-dts": "^4.5.4",
|
|
51
|
+
"vite-plugin-vue-devtools": "^7.3.8",
|
|
52
|
+
"vue-i18n-extract": "^2.0.7"
|
|
53
|
+
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"@devui-design/icons": "1.3.0",
|
|
56
|
+
"@vueuse/core": "^10.2.1",
|
|
57
|
+
"axios": "^1.12.0",
|
|
58
|
+
"dayjs": "^1.11.9",
|
|
59
|
+
"devui-theme": "^0.0.7",
|
|
60
|
+
"lodash": "^4.17.21",
|
|
61
|
+
"lodash-es": "^4.17.21",
|
|
62
|
+
"vue": "^3.3.4",
|
|
63
|
+
"vue-devui-lal": "^0.0.24",
|
|
64
|
+
"vue-router": "^4.3.1"
|
|
65
|
+
},
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"crypto-js": "^4.1.1",
|
|
68
|
+
"dompurify": "^3.2.5",
|
|
69
|
+
"libphonenumber-js": "^1.11.11",
|
|
70
|
+
"mitt": "^3.0.1",
|
|
71
|
+
"vue-i18n": "^9.3.0"
|
|
72
|
+
}
|
|
73
|
+
}
|
package/index.d.ts
DELETED
|
@@ -1,571 +0,0 @@
|
|
|
1
|
-
import { AccountInfo } from '../../types/types';
|
|
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';
|
|
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';
|
|
11
|
-
import { Emitter } from 'mitt';
|
|
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';
|
|
20
|
-
import { setTheme } from './themes/index';
|
|
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
|
-
};
|
|
118
|
-
|
|
119
|
-
declare interface BaseLayoutConfig {
|
|
120
|
-
VITE_HOST: string;
|
|
121
|
-
VITE_HOST_TIANQI: string;
|
|
122
|
-
VITE_ENV: string;
|
|
123
|
-
VITE_API_HOST: string;
|
|
124
|
-
VITE_AD_LINK: string;
|
|
125
|
-
VITE_NEWS_HOST: string;
|
|
126
|
-
VITE_AI_HOST: string;
|
|
127
|
-
VITE_INCUBATION_TOPIC: string;
|
|
128
|
-
VITE_GSTAR_TOPIC: string;
|
|
129
|
-
VITE_TRUSTED_TOPIC: string;
|
|
130
|
-
VITE_SEARCH_REPO_CHANNEL_ID: string;
|
|
131
|
-
VITE_SECRET_KEY: string;
|
|
132
|
-
VITE_SECRET_IV: string;
|
|
133
|
-
[key: string]: string;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export { currentTheme }
|
|
137
|
-
|
|
138
|
-
declare const _default: {
|
|
139
|
-
install: (app: App) => void;
|
|
140
|
-
};
|
|
141
|
-
export default _default;
|
|
142
|
-
|
|
143
|
-
declare type EventBus = {
|
|
144
|
-
logout?: boolean;
|
|
145
|
-
login?: any;
|
|
146
|
-
updateNaviBar: void;
|
|
147
|
-
notice: void;
|
|
148
|
-
updateNotice: number;
|
|
149
|
-
updateUserInfo: Record<string, any>;
|
|
150
|
-
handleAsideVisible: boolean;
|
|
151
|
-
toggleAsideMenuByHamburger: void;
|
|
152
|
-
globalTaskReport: void;
|
|
153
|
-
updateNoticeCount: string;
|
|
154
|
-
closeChatSlider: void;
|
|
155
|
-
tocChange?: any;
|
|
156
|
-
responseError: string;
|
|
157
|
-
updateMrAction: string;
|
|
158
|
-
updateLockStatusAndList: string;
|
|
159
|
-
updateIssueAction: string;
|
|
160
|
-
forbiddenRefresh: void;
|
|
161
|
-
microRouterChange: void;
|
|
162
|
-
openModal: void;
|
|
163
|
-
reportView: void;
|
|
164
|
-
crossFileClick: void;
|
|
165
|
-
repoTreeLoading: boolean;
|
|
166
|
-
openFullScreen: void;
|
|
167
|
-
openFilePath: void;
|
|
168
|
-
crossQuestion: void;
|
|
169
|
-
hisSearchValue: string;
|
|
170
|
-
resetPwdDirectlySuccess: void;
|
|
171
|
-
};
|
|
172
|
-
|
|
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>>>;
|
|
228
|
-
|
|
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
|
-
openCreateDropdown?: boolean | undefined;
|
|
258
|
-
}>, {
|
|
259
|
-
sceneValue: any;
|
|
260
|
-
headerBorder: boolean;
|
|
261
|
-
isLogin: boolean;
|
|
262
|
-
independence: boolean;
|
|
263
|
-
request: (params: any, customConfigs?: {
|
|
264
|
-
customError?: boolean | undefined;
|
|
265
|
-
customTimeout?: number | undefined;
|
|
266
|
-
ignoreError?: boolean | undefined;
|
|
267
|
-
customErrorCodes?: number[] | undefined;
|
|
268
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
269
|
-
globalStore: () => {
|
|
270
|
-
httpStatus: number;
|
|
271
|
-
};
|
|
272
|
-
repoInfo: () => {};
|
|
273
|
-
orgInfo: () => {};
|
|
274
|
-
otherUserInfo: () => {};
|
|
275
|
-
userInfo: () => {};
|
|
276
|
-
bgConfig: () => {
|
|
277
|
-
index_head: string;
|
|
278
|
-
detail_top: string;
|
|
279
|
-
detail_top_black: string;
|
|
280
|
-
detail_toolbar: string;
|
|
281
|
-
detail_toolbar_black: string;
|
|
282
|
-
detail_top_url: string;
|
|
283
|
-
index_head_url: string;
|
|
284
|
-
detail_toolbar_url: string;
|
|
285
|
-
};
|
|
286
|
-
openCreateDropdown: boolean;
|
|
287
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
288
|
-
resetPwdDirectlySuccess: (...args: any[]) => void;
|
|
289
|
-
followDevCommunity: (...args: any[]) => void;
|
|
290
|
-
followUser: (...args: any[]) => void;
|
|
291
|
-
"update:openCreateDropdown": (...args: any[]) => void;
|
|
292
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<{
|
|
293
|
-
sceneValue: SceneValue;
|
|
294
|
-
isLogin: boolean;
|
|
295
|
-
request: Function;
|
|
296
|
-
loginOutFinish?: Function | undefined;
|
|
297
|
-
loginSuccess: Function;
|
|
298
|
-
globalStore: Object;
|
|
299
|
-
repoInfo?: repoInfoType | undefined;
|
|
300
|
-
orgInfo?: OrgInfo | undefined;
|
|
301
|
-
otherUserInfo?: UserInfo | undefined;
|
|
302
|
-
userInfo?: UserInfo | undefined;
|
|
303
|
-
headerFunctions?: HeaderDisplayItem[] | undefined;
|
|
304
|
-
headerCustomProps?: HeaderPropsForCustom | undefined;
|
|
305
|
-
openHarmonyGuide: boolean;
|
|
306
|
-
headerBorder?: boolean | undefined;
|
|
307
|
-
independence?: boolean | undefined;
|
|
308
|
-
userMenus?: any[] | undefined;
|
|
309
|
-
loginChildComponents: any;
|
|
310
|
-
bgConfig?: {
|
|
311
|
-
index_head: string;
|
|
312
|
-
detail_top: string;
|
|
313
|
-
detail_top_black: string;
|
|
314
|
-
detail_toolbar: string;
|
|
315
|
-
detail_toolbar_black: string;
|
|
316
|
-
detail_top_url: string;
|
|
317
|
-
index_head_url: string;
|
|
318
|
-
detail_toolbar_url: string;
|
|
319
|
-
} | undefined;
|
|
320
|
-
openCreateDropdown?: boolean | undefined;
|
|
321
|
-
}>, {
|
|
322
|
-
sceneValue: any;
|
|
323
|
-
headerBorder: boolean;
|
|
324
|
-
isLogin: boolean;
|
|
325
|
-
independence: boolean;
|
|
326
|
-
request: (params: any, customConfigs?: {
|
|
327
|
-
customError?: boolean | undefined;
|
|
328
|
-
customTimeout?: number | undefined;
|
|
329
|
-
ignoreError?: boolean | undefined;
|
|
330
|
-
customErrorCodes?: number[] | undefined;
|
|
331
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
332
|
-
globalStore: () => {
|
|
333
|
-
httpStatus: number;
|
|
334
|
-
};
|
|
335
|
-
repoInfo: () => {};
|
|
336
|
-
orgInfo: () => {};
|
|
337
|
-
otherUserInfo: () => {};
|
|
338
|
-
userInfo: () => {};
|
|
339
|
-
bgConfig: () => {
|
|
340
|
-
index_head: string;
|
|
341
|
-
detail_top: string;
|
|
342
|
-
detail_top_black: string;
|
|
343
|
-
detail_toolbar: string;
|
|
344
|
-
detail_toolbar_black: string;
|
|
345
|
-
detail_top_url: string;
|
|
346
|
-
index_head_url: string;
|
|
347
|
-
detail_toolbar_url: string;
|
|
348
|
-
};
|
|
349
|
-
openCreateDropdown: boolean;
|
|
350
|
-
}>>> & Readonly<{
|
|
351
|
-
onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
|
|
352
|
-
onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
|
|
353
|
-
onFollowUser?: ((...args: any[]) => any) | undefined;
|
|
354
|
-
"onUpdate:openCreateDropdown"?: ((...args: any[]) => any) | undefined;
|
|
355
|
-
}>, {
|
|
356
|
-
globalStore: Object;
|
|
357
|
-
isLogin: boolean;
|
|
358
|
-
sceneValue: SceneValue;
|
|
359
|
-
request: Function;
|
|
360
|
-
repoInfo: repoInfoType;
|
|
361
|
-
orgInfo: OrgInfo;
|
|
362
|
-
otherUserInfo: UserInfo;
|
|
363
|
-
userInfo: UserInfo;
|
|
364
|
-
independence: boolean;
|
|
365
|
-
headerBorder: boolean;
|
|
366
|
-
bgConfig: {
|
|
367
|
-
index_head: string;
|
|
368
|
-
detail_top: string;
|
|
369
|
-
detail_top_black: string;
|
|
370
|
-
detail_toolbar: string;
|
|
371
|
-
detail_toolbar_black: string;
|
|
372
|
-
detail_top_url: string;
|
|
373
|
-
index_head_url: string;
|
|
374
|
-
detail_toolbar_url: string;
|
|
375
|
-
};
|
|
376
|
-
openCreateDropdown: boolean;
|
|
377
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
378
|
-
headerCustom?(_: {}): any;
|
|
379
|
-
aiSearch?(_: {}): any;
|
|
380
|
-
headerMiddleRight?(_: {}): any;
|
|
381
|
-
search?(_: {}): any;
|
|
382
|
-
searchRecommend?(_: {}): any;
|
|
383
|
-
globalSearch?(_: {
|
|
384
|
-
searchStr: string | hn[];
|
|
385
|
-
searchMore: (type: any) => void;
|
|
386
|
-
}): any;
|
|
387
|
-
bodyHeader?(_: {}): any;
|
|
388
|
-
info?(_: {}): any;
|
|
389
|
-
menu?(_: {}): any;
|
|
390
|
-
headerBottom?(_: {}): any;
|
|
391
|
-
}>;
|
|
392
|
-
|
|
393
|
-
export declare const GitCodeLayoutEmitter: Emitter<EventBus>;
|
|
394
|
-
|
|
395
|
-
declare enum HeaderDisplayItem {
|
|
396
|
-
LOGIN_AND_AVATAR = "0101",
|
|
397
|
-
MESSAGE_CENTER = "0102",
|
|
398
|
-
NEW_BUTTON = "0103",
|
|
399
|
-
DOCUMENT_CENTER = "0104",
|
|
400
|
-
DEEPSEEK_BUTTON = "0105",
|
|
401
|
-
SEARCH_BUTTON = "0106",
|
|
402
|
-
NAME_AND_ICON = "0107",
|
|
403
|
-
CUSTOM_CONTENT = "0108",
|
|
404
|
-
ASIDE_BUTTON = "0109",
|
|
405
|
-
NEWS_MULTI_LANGUAGE = "0110",
|
|
406
|
-
OPERATION_ENTRY = "0111"
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
export declare const Login: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
|
|
410
|
-
isLogin: boolean;
|
|
411
|
-
request: Function;
|
|
412
|
-
loginOutFinish?: Function | undefined;
|
|
413
|
-
loginSuccess: Function;
|
|
414
|
-
globalStore: Object;
|
|
415
|
-
openHarmonyGuide: boolean;
|
|
416
|
-
}>, {
|
|
417
|
-
request: (params: any, customConfigs?: {
|
|
418
|
-
customError?: boolean | undefined;
|
|
419
|
-
customTimeout?: number | undefined;
|
|
420
|
-
ignoreError?: boolean | undefined;
|
|
421
|
-
customErrorCodes?: number[] | undefined;
|
|
422
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
423
|
-
globalStore: () => {
|
|
424
|
-
httpStatus: number;
|
|
425
|
-
};
|
|
426
|
-
openHarmonyGuide: boolean;
|
|
427
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
|
|
428
|
-
isLogin: boolean;
|
|
429
|
-
request: Function;
|
|
430
|
-
loginOutFinish?: Function | undefined;
|
|
431
|
-
loginSuccess: Function;
|
|
432
|
-
globalStore: Object;
|
|
433
|
-
openHarmonyGuide: boolean;
|
|
434
|
-
}>, {
|
|
435
|
-
request: (params: any, customConfigs?: {
|
|
436
|
-
customError?: boolean | undefined;
|
|
437
|
-
customTimeout?: number | undefined;
|
|
438
|
-
ignoreError?: boolean | undefined;
|
|
439
|
-
customErrorCodes?: number[] | undefined;
|
|
440
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
441
|
-
globalStore: () => {
|
|
442
|
-
httpStatus: number;
|
|
443
|
-
};
|
|
444
|
-
openHarmonyGuide: boolean;
|
|
445
|
-
}>>> & Readonly<{}>, {
|
|
446
|
-
globalStore: Object;
|
|
447
|
-
request: Function;
|
|
448
|
-
openHarmonyGuide: boolean;
|
|
449
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
450
|
-
|
|
451
|
-
declare interface LoginOptions {
|
|
452
|
-
Authorization?: boolean;
|
|
453
|
-
type?: 'login' | 'register';
|
|
454
|
-
triggerType?: string;
|
|
455
|
-
loginTriggerSource?: string;
|
|
456
|
-
resetPwdSource?: string;
|
|
457
|
-
[x: string]: any;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
declare interface Props {
|
|
461
|
-
/** 场景值 核心参数之一 */
|
|
462
|
-
sceneValue: SceneValue;
|
|
463
|
-
/** 是否登录 */
|
|
464
|
-
isLogin: boolean;
|
|
465
|
-
/** 请求实例 */
|
|
466
|
-
request: Function;
|
|
467
|
-
/** 全局store 上报需要 */
|
|
468
|
-
globalStore: {
|
|
469
|
-
isSignIn?: boolean;
|
|
470
|
-
[key: string]: any;
|
|
471
|
-
};
|
|
472
|
-
/** 是否为项目页 */
|
|
473
|
-
isRepoPage?: boolean;
|
|
474
|
-
/** 是否是白名单项目 - 白名单项目页,默认收起工具栏 */
|
|
475
|
-
isWhiteListRepo: boolean;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
declare interface Props_2 {
|
|
479
|
-
/** 场景值 核心参数之一 */
|
|
480
|
-
sceneValue: SceneValue;
|
|
481
|
-
/** 禁用 flat 模式 */
|
|
482
|
-
disableFlatMode?: boolean;
|
|
483
|
-
/** 用户信息 */
|
|
484
|
-
userInfo: AccountInfo;
|
|
485
|
-
/** 是否登录 */
|
|
486
|
-
isLogin: boolean;
|
|
487
|
-
/** 请求实例 */
|
|
488
|
-
request: Function;
|
|
489
|
-
/** 全局store 上报需要 */
|
|
490
|
-
globalStore: Object;
|
|
491
|
-
/** 是否独立部署 */
|
|
492
|
-
independence?: boolean;
|
|
493
|
-
/** 是否显示偏好设置 */
|
|
494
|
-
showPreferencesSetting?: boolean | undefined;
|
|
495
|
-
/** 是否显示主题设置 */
|
|
496
|
-
showThemeSetting?: boolean | undefined;
|
|
497
|
-
/** 是否显示语言设置 */
|
|
498
|
-
showLangSetting?: boolean | undefined;
|
|
499
|
-
collapseMode?: boolean;
|
|
500
|
-
/** 需要显示hover的slotKeys */
|
|
501
|
-
slotKeys?: Array<string>;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
export declare enum SceneValue {
|
|
505
|
-
home = "home",
|
|
506
|
-
repo = "repo",
|
|
507
|
-
org = "org",
|
|
508
|
-
aiHome = "aiHome",
|
|
509
|
-
aiRepo = "aiRepo",
|
|
510
|
-
aiGuide = "aiGuide",
|
|
511
|
-
blog = "blog",
|
|
512
|
-
news = "news",
|
|
513
|
-
active = "active",
|
|
514
|
-
user = "user"
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
export declare function setLayoutConfig(customConfig: BaseLayoutConfig): void;
|
|
518
|
-
|
|
519
|
-
export { setTheme }
|
|
520
|
-
|
|
521
|
-
export declare const SiteAnnouncement: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
522
|
-
|
|
523
|
-
export declare const ToolsFloat: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
524
|
-
sceneValue: SceneValue;
|
|
525
|
-
isLogin: boolean;
|
|
526
|
-
request: (params: any, customConfigs?: {
|
|
527
|
-
customError?: boolean | undefined;
|
|
528
|
-
customTimeout?: number | undefined;
|
|
529
|
-
ignoreError?: boolean | undefined;
|
|
530
|
-
customErrorCodes?: number[] | undefined;
|
|
531
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
532
|
-
globalStore: () => {};
|
|
533
|
-
isRepoPage: boolean;
|
|
534
|
-
isWhiteListRepo: boolean;
|
|
535
|
-
}>>, {
|
|
536
|
-
handleCollapseTool: (status: string) => void;
|
|
537
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
538
|
-
"toggle-growth-center": () => void;
|
|
539
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
540
|
-
sceneValue: SceneValue;
|
|
541
|
-
isLogin: boolean;
|
|
542
|
-
request: (params: any, customConfigs?: {
|
|
543
|
-
customError?: boolean | undefined;
|
|
544
|
-
customTimeout?: number | undefined;
|
|
545
|
-
ignoreError?: boolean | undefined;
|
|
546
|
-
customErrorCodes?: number[] | undefined;
|
|
547
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
548
|
-
globalStore: () => {};
|
|
549
|
-
isRepoPage: boolean;
|
|
550
|
-
isWhiteListRepo: boolean;
|
|
551
|
-
}>>> & Readonly<{
|
|
552
|
-
"onToggle-growth-center"?: (() => any) | undefined;
|
|
553
|
-
}>, {
|
|
554
|
-
globalStore: {
|
|
555
|
-
[key: string]: any;
|
|
556
|
-
isSignIn?: boolean | undefined;
|
|
557
|
-
};
|
|
558
|
-
isLogin: boolean;
|
|
559
|
-
sceneValue: SceneValue;
|
|
560
|
-
request: Function;
|
|
561
|
-
isRepoPage: boolean;
|
|
562
|
-
isWhiteListRepo: boolean;
|
|
563
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
564
|
-
|
|
565
|
-
export declare function useLogin(request: any, globalStore?: any): {
|
|
566
|
-
login: (options?: LoginOptions, loginSuccess?: Function, openHarmonyGuide?: boolean) => void;
|
|
567
|
-
unMount: () => void;
|
|
568
|
-
isMounted: () => boolean;
|
|
569
|
-
};
|
|
570
|
-
|
|
571
|
-
export { }
|