Private
Public Access
1
0

重构:Wails v3 迁移 + 前端目录规范化 + Sidebar滚动优化

- web/ → frontend/ 目录重命名(Wails v3 标准结构)
- main.go: Middleware 修复 custom.js 404 + DevTools 延迟启动
- Sidebar: 收藏夹内部独立滚动 + 帮助区块固定底部
- useFavorites.ts: longPressTimer const→let 修复 TypeError
- App.vue: Arco Tabs padding-top 覆盖
- build: config.yml / Taskfile.yml 对齐官方模板,devtools build tag
- 新增 v3 bindings、vite.config.js、跨平台构建配置

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-01 11:03:53 +08:00
parent 44847e0d40
commit f54bf1c28d
185 changed files with 7768 additions and 914 deletions

27
frontend/scripts/check.sh Normal file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
echo "🔍 开始代码质量检查..."
echo ""
# 1. TypeScript 类型检查
echo "1⃣ TypeScript 类型检查"
npx vue-tsc --noEmit 2>&1 | tee type-errors.log | grep -E "error TS" | wc -l
echo ""
# 2. ESLint 检查
echo "2⃣ ESLint 静态分析"
npx eslint src --ext .vue,.ts,.js 2>&1 | tee eslint-errors.log | wc -l
echo ""
# 3. 统计错误类型
echo "📊 错误统计:"
echo "TypeScript 错误:"
grep "error TS" type-errors.log | awk '{print $2}' | sort | uniq -c | sort -rn | head -10
echo ""
echo "ESLint 错误:"
cat eslint-errors.log | head -20
echo ""
echo "✅ 检查完成!"
echo "详细日志type-errors.log, eslint-errors.log"