git clone <repository-url>
cd doc-diff
# 使用 pnpm (推荐)
pnpm install
# 或使用 npm
npm install
# 使用 pnpm
pnpm dev
# 或使用 npm
npm run dev
http://localhost:5173# 构建生产版本
pnpm build
# 预览生产版本
pnpm preview
API Key: sk-xxxxxxxxxxxxxxxx Base URL: https://api.openai.com/v1 (默认) 模型: gpt-4, gpt-3.5-turbo 等
API Key: sk-xxxxxxxxxxxxxxxx Base URL: https://dashscope.aliyuncs.com/compatible-mode/v1 模型: qwen-turbo, qwen-plus, qwen-max
API Key: sk-xxxxxxxxxxxxxxxx Base URL: https://api.deepseek.com/v1 模型: deepseek-chat, deepseek-coder
API Key: 无需配置 Base URL: http://localhost:11434/v1 模型: llama2, codellama, mistral 等
上传文档
查看差异
AI 分析
导出结果
历史记录
doc-diff/ ├── public/ # 静态资源 ├── src/ │ ├── components/ # 可复用组件 │ │ ├── DiffViewer.tsx # 差异对比组件 │ │ ├── Empty.tsx # 空状态组件 │ │ └── Layout.tsx # 布局组件 │ ├── pages/ # 页面组件 │ │ ├── Home.tsx # 首页 │ │ ├── Compare.tsx # 对比页面 │ │ ├── Settings.tsx # 设置页面 │ │ └── History.tsx # 历史记录 │ ├── utils/ # 工具函数 │ │ ├── aiAnalyzer.ts # AI 分析工具 │ │ ├── diffAlgorithm.ts # 差异算法 │ │ ├── documentParser.ts # 文档解析 │ │ └── exportUtils.ts # 导出功能 │ ├── stores/ # 状态管理 │ │ └── documentStore.ts # 文档状态 │ ├── hooks/ # 自定义 Hooks │ │ └── useTheme.ts # 主题管理 │ └── lib/ # 库文件 │ └── utils.ts # 通用工具 ├── .trae/ # 项目文档 └── package.json # 项目配置
我们欢迎所有形式的贡献!请遵循以下步骤:
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)本项目采用 MIT 许可证 - 查看 LICENSE 文件了解详情。
感谢以下开源项目的支持:
如果您有任何问题或建议,请通过以下方式联系我们:
⭐ 如果这个项目对您有帮助,请给我们一个 Star!
Made with ❤️ by DiffusionPro Team