Private
Public Access
1
0

重构:文件系统模块化架构,增强 Markdown 渲染

- 拆分 FileSystem.vue 为模块化组件架构
- 新增 Markdown Mermaid 图表渲染支持
- 新增 180+ 编程语言代码高亮
- 修复编辑/预览模式切换渲染问题
- 优化亮色/暗色模式主题适配
- 新增 TypeScript 类型定义
This commit is contained in:
2026-02-04 03:31:22 +08:00
parent eb2cbad17b
commit a5d30684ed
119 changed files with 11244 additions and 12042 deletions

27
web/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"