perf: 性能优化与代码质量改进
- 简化ToastProvider组件,移除未使用导入 - 简化Stats页面代码 - 添加React ESLint配置 - 添加数据库索引和API参数验证 - 清理重复文件server.js.backup - 移除前端未使用的UI代码和复杂样式 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
3975bbed73
commit
63c97ab31a
@@ -16,8 +16,7 @@ app.use(cors({
|
||||
}));
|
||||
app.use(express.json());
|
||||
app.use(express.static(path.join(__dirname, 'public')));
|
||||
app.use(express.static(path.join(__dirname, 'frontend/.next')));
|
||||
app.use(express.static(path.join(__dirname, 'frontend/.next/server/pages')));
|
||||
app.use(express.static(path.join(__dirname, 'frontend/.next/static')));
|
||||
|
||||
// 数据库初始化
|
||||
const db = new Database('accountbook.db');
|
||||
|
||||
Reference in New Issue
Block a user