-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Expand file tree
/
Copy pathindex.ts
More file actions
61 lines (54 loc) · 1.35 KB
/
index.ts
File metadata and controls
61 lines (54 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import { RouteRecordRaw } from 'vue-router';
import { DeviceType } from '@/enums/app';
export interface ThemeConfigProp {
panelName: string;
primary: string;
theme: string; // dark | bright | auto
footer: boolean;
title: string;
logo: string;
logoWithText: string;
favicon: string;
themeColor: string;
}
export interface GlobalState {
isLoading: boolean;
loadingText: string;
isLogin: boolean;
entrance: string;
language: string; // zh | en | tw
themeConfig: ThemeConfigProp;
isFullScreen: boolean;
openMenuTabs: boolean;
isOnRestart: boolean;
agreeLicense: boolean;
hasNewVersion: boolean;
ignoreCaptcha: boolean;
device: DeviceType;
lastFilePath: string;
currentDB: string;
currentRedisDB: string;
showEntranceWarn: boolean;
defaultNetwork: string;
isProductPro: boolean;
isIntl: boolean;
productProExpires: number;
isMasterProductPro: boolean;
errStatus: string;
currentNode: string;
isOffline: boolean;
}
export interface MenuState {
isCollapse: boolean;
menuList: RouteRecordRaw[];
withoutAnimation: boolean;
}
export interface TerminalState {
lineHeight: number;
letterSpacing: number;
fontSize: number;
cursorBlink: string;
cursorStyle: string;
scrollback: number;
scrollSensitivity: number;
}