-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
76 lines (67 loc) · 1.43 KB
/
types.ts
File metadata and controls
76 lines (67 loc) · 1.43 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// 共享类型定义
export interface SystemInfo {
cpuUsage: number;
memoryUsage: number;
totalMem: number;
freeMem: number;
usedMem: number;
platform: string;
hostname: string;
uptime: number;
}
export interface FileEntry {
name: string;
path: string;
isDirectory: boolean;
size: number;
modified: Date;
}
// 主题相关类型
export interface Theme {
// 主要颜色
primary: string; // 主要显示颜色
primaryDark: string; // 主要颜色的暗色版本
accent: string; // 强调色
background: string; // 背景色
border: string; // 边框色
// 文本颜色
textPrimary: string; // 主要文本颜色
textSecondary: string; // 次要文本颜色
// 特效参数
scanlineOpacity: number; // 扫描线不透明度
crtEffect: boolean; // CRT效果开关
}
// 音效类型
export enum SoundType {
CLICK = 'click',
MODULE_SWITCH = 'moduleSwitch',
CONFIRM = 'confirm',
ERROR = 'error'
}
// 模块类型
export enum ModuleType {
STATS = 'stats',
APPS = 'apps',
FILES = 'files',
DATA = 'data',
MEDIA = 'media',
CONFIG = 'config'
}
// 应用分类
export interface AppCategory {
id: string;
name: string;
}
// 应用信息
export interface AppInfo {
name: string;
originalName: string;
path: string;
icon: string;
category: string;
}
// 快速访问文件夹
export interface QuickAccessFolder {
name: string;
path: string;
}