feat: initialize new React application structure with TypeScript, ESLint, and Prettier configurations, while removing legacy files and adding new components and pages for enhanced functionality

This commit is contained in:
Supra4E8C
2025-12-07 11:32:31 +08:00
parent 8e4132200d
commit 450964fb1a
144 changed files with 14223 additions and 21647 deletions

23
src/types/log.ts Normal file
View File

@@ -0,0 +1,23 @@
/**
* 日志相关类型
* 基于原项目 src/modules/logs.js
*/
// 日志级别
export type LogLevel = 'info' | 'warn' | 'error' | 'debug';
// 日志条目
export interface LogEntry {
timestamp: string;
level: LogLevel;
message: string;
details?: any;
}
// 日志筛选
export interface LogFilter {
level?: LogLevel;
searchQuery: string;
startTime?: Date;
endTime?: Date;
}