chore: rebrand XCodeReviewer to DeepAudit across all files
- Update project name from XCodeReviewer to DeepAudit in CI/CD workflows - Replace Docker image names and release artifact naming conventions - Update GitHub repository references in documentation files - Modify database names and container names in setup instructions - Update contributor badge and issue tracker links - Rename frontend logo file from logo_deepaudit.png - Update environment configuration examples and documentation - Rebrand all references in CONTRIBUTING.md, DISCLAIMER.md, and README.md - Update backend configuration and deployment documentation - Ensure consistent naming across frontend and backend configurations
|
|
@ -102,10 +102,10 @@ jobs:
|
||||||
mkdir -p release
|
mkdir -p release
|
||||||
|
|
||||||
# 打包前端构建产物
|
# 打包前端构建产物
|
||||||
tar -czf release/xcodereviewer-frontend-${{ steps.version.outputs.VERSION }}.tar.gz -C frontend/dist .
|
tar -czf release/deepaudit-frontend-${{ steps.version.outputs.VERSION }}.tar.gz -C frontend/dist .
|
||||||
|
|
||||||
# 打包后端源码
|
# 打包后端源码
|
||||||
tar -czf release/xcodereviewer-backend-${{ steps.version.outputs.VERSION }}.tar.gz \
|
tar -czf release/deepaudit-backend-${{ steps.version.outputs.VERSION }}.tar.gz \
|
||||||
--exclude=backend/.venv \
|
--exclude=backend/.venv \
|
||||||
--exclude=backend/.env \
|
--exclude=backend/.env \
|
||||||
--exclude=backend/__pycache__ \
|
--exclude=backend/__pycache__ \
|
||||||
|
|
@ -113,7 +113,7 @@ jobs:
|
||||||
backend/
|
backend/
|
||||||
|
|
||||||
# 打包 Docker 配置文件
|
# 打包 Docker 配置文件
|
||||||
tar -czf release/xcodereviewer-docker-${{ steps.version.outputs.VERSION }}.tar.gz \
|
tar -czf release/deepaudit-docker-${{ steps.version.outputs.VERSION }}.tar.gz \
|
||||||
docker-compose.yml \
|
docker-compose.yml \
|
||||||
backend/Dockerfile \
|
backend/Dockerfile \
|
||||||
backend/.dockerignore \
|
backend/.dockerignore \
|
||||||
|
|
@ -124,7 +124,7 @@ jobs:
|
||||||
frontend/.env.example
|
frontend/.env.example
|
||||||
|
|
||||||
# 打包完整源码(包括配置文件)
|
# 打包完整源码(包括配置文件)
|
||||||
tar -czf release/xcodereviewer-source-${{ steps.version.outputs.VERSION }}.tar.gz \
|
tar -czf release/deepaudit-source-${{ steps.version.outputs.VERSION }}.tar.gz \
|
||||||
--exclude=frontend/node_modules \
|
--exclude=frontend/node_modules \
|
||||||
--exclude=frontend/dist \
|
--exclude=frontend/dist \
|
||||||
--exclude=backend/.venv \
|
--exclude=backend/.venv \
|
||||||
|
|
@ -160,15 +160,15 @@ jobs:
|
||||||
echo "## 📦 下载说明" >> CHANGELOG.md
|
echo "## 📦 下载说明" >> CHANGELOG.md
|
||||||
echo "" >> CHANGELOG.md
|
echo "" >> CHANGELOG.md
|
||||||
echo "### 构建产物" >> CHANGELOG.md
|
echo "### 构建产物" >> CHANGELOG.md
|
||||||
echo "- \`xcodereviewer-frontend-*.tar.gz\`: 前端构建产物(用于生产部署)" >> CHANGELOG.md
|
echo "- \`deepaudit-frontend-*.tar.gz\`: 前端构建产物(用于生产部署)" >> CHANGELOG.md
|
||||||
echo "- \`xcodereviewer-backend-*.tar.gz\`: 后端源码包" >> CHANGELOG.md
|
echo "- \`deepaudit-backend-*.tar.gz\`: 后端源码包" >> CHANGELOG.md
|
||||||
echo "- \`xcodereviewer-docker-*.tar.gz\`: Docker 配置文件" >> CHANGELOG.md
|
echo "- \`deepaudit-docker-*.tar.gz\`: Docker 配置文件" >> CHANGELOG.md
|
||||||
echo "- \`xcodereviewer-source-*.tar.gz\`: 完整源码包" >> CHANGELOG.md
|
echo "- \`deepaudit-source-*.tar.gz\`: 完整源码包" >> CHANGELOG.md
|
||||||
echo "- \`checksums.txt\`: 文件校验和" >> CHANGELOG.md
|
echo "- \`checksums.txt\`: 文件校验和" >> CHANGELOG.md
|
||||||
echo "" >> CHANGELOG.md
|
echo "" >> CHANGELOG.md
|
||||||
echo "### Docker 镜像" >> CHANGELOG.md
|
echo "### Docker 镜像" >> CHANGELOG.md
|
||||||
echo "- Frontend: \`ghcr.io/${{ github.repository_owner }}/xcodereviewer-frontend:${{ steps.version.outputs.VERSION }}\`" >> CHANGELOG.md
|
echo "- Frontend: \`ghcr.io/${{ github.repository_owner }}/deepaudit-frontend:${{ steps.version.outputs.VERSION }}\`" >> CHANGELOG.md
|
||||||
echo "- Backend: \`ghcr.io/${{ github.repository_owner }}/xcodereviewer-backend:${{ steps.version.outputs.VERSION }}\`" >> CHANGELOG.md
|
echo "- Backend: \`ghcr.io/${{ github.repository_owner }}/deepaudit-backend:${{ steps.version.outputs.VERSION }}\`" >> CHANGELOG.md
|
||||||
echo "" >> CHANGELOG.md
|
echo "" >> CHANGELOG.md
|
||||||
echo "### 快速部署" >> CHANGELOG.md
|
echo "### 快速部署" >> CHANGELOG.md
|
||||||
echo "\`\`\`bash" >> CHANGELOG.md
|
echo "\`\`\`bash" >> CHANGELOG.md
|
||||||
|
|
@ -216,8 +216,8 @@ jobs:
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/${{ github.repository_owner }}/xcodereviewer-frontend:${{ steps.version.outputs.VERSION }}
|
ghcr.io/${{ github.repository_owner }}/deepaudit-frontend:${{ steps.version.outputs.VERSION }}
|
||||||
ghcr.io/${{ github.repository_owner }}/xcodereviewer-frontend:latest
|
ghcr.io/${{ github.repository_owner }}/deepaudit-frontend:latest
|
||||||
cache-from: type=gha,scope=frontend
|
cache-from: type=gha,scope=frontend
|
||||||
cache-to: type=gha,mode=max,scope=frontend
|
cache-to: type=gha,mode=max,scope=frontend
|
||||||
|
|
||||||
|
|
@ -230,8 +230,8 @@ jobs:
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/${{ github.repository_owner }}/xcodereviewer-backend:${{ steps.version.outputs.VERSION }}
|
ghcr.io/${{ github.repository_owner }}/deepaudit-backend:${{ steps.version.outputs.VERSION }}
|
||||||
ghcr.io/${{ github.repository_owner }}/xcodereviewer-backend:latest
|
ghcr.io/${{ github.repository_owner }}/deepaudit-backend:latest
|
||||||
cache-from: type=gha,scope=backend
|
cache-from: type=gha,scope=backend
|
||||||
cache-to: type=gha,mode=max,scope=backend
|
cache-to: type=gha,mode=max,scope=backend
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# 贡献指南
|
# 贡献指南
|
||||||
|
|
||||||
感谢你对 XCodeReviewer 的关注!我们热烈欢迎所有形式的贡献,无论是提交 Issue、创建 PR,还是改进文档。
|
感谢你对 DeepAudit 的关注!我们热烈欢迎所有形式的贡献,无论是提交 Issue、创建 PR,还是改进文档。
|
||||||
|
|
||||||
## 目录
|
## 目录
|
||||||
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
### 报告 Bug
|
### 报告 Bug
|
||||||
|
|
||||||
1. 先搜索 [Issues](https://github.com/lintsinghua/XCodeReviewer/issues) 确认问题未被报告
|
1. 先搜索 [Issues](https://github.com/lintsinghua/DeepAudit/issues) 确认问题未被报告
|
||||||
2. 创建新 Issue,使用 Bug 报告模板
|
2. 创建新 Issue,使用 Bug 报告模板
|
||||||
3. 提供详细信息:
|
3. 提供详细信息:
|
||||||
- 操作系统和版本
|
- 操作系统和版本
|
||||||
|
|
@ -74,10 +74,10 @@
|
||||||
```bash
|
```bash
|
||||||
# 使用 Docker 启动 PostgreSQL(推荐)
|
# 使用 Docker 启动 PostgreSQL(推荐)
|
||||||
docker run -d \
|
docker run -d \
|
||||||
--name xcodereviewer-db \
|
--name deepaudit-db \
|
||||||
-e POSTGRES_USER=postgres \
|
-e POSTGRES_USER=postgres \
|
||||||
-e POSTGRES_PASSWORD=postgres \
|
-e POSTGRES_PASSWORD=postgres \
|
||||||
-e POSTGRES_DB=xcodereviewer \
|
-e POSTGRES_DB=deepaudit \
|
||||||
-p 5432:5432 \
|
-p 5432:5432 \
|
||||||
postgres:15-alpine
|
postgres:15-alpine
|
||||||
```
|
```
|
||||||
|
|
@ -224,11 +224,11 @@ git commit -m "refactor(api): simplify error handling"
|
||||||
```bash
|
```bash
|
||||||
# Fork 项目到你的 GitHub 账号
|
# Fork 项目到你的 GitHub 账号
|
||||||
# 然后克隆到本地
|
# 然后克隆到本地
|
||||||
git clone https://github.com/YOUR_USERNAME/XCodeReviewer.git
|
git clone https://github.com/YOUR_USERNAME/DeepAudit.git
|
||||||
cd XCodeReviewer
|
cd DeepAudit
|
||||||
|
|
||||||
# 添加上游仓库
|
# 添加上游仓库
|
||||||
git remote add upstream https://github.com/lintsinghua/XCodeReviewer.git
|
git remote add upstream https://github.com/lintsinghua/DeepAudit.git
|
||||||
```
|
```
|
||||||
|
|
||||||
### 2. 创建分支
|
### 2. 创建分支
|
||||||
|
|
@ -282,7 +282,7 @@ git push origin feature/your-feature-name
|
||||||
## 项目结构
|
## 项目结构
|
||||||
|
|
||||||
```
|
```
|
||||||
XCodeReviewer/
|
DeepAudit/
|
||||||
├── backend/ # 后端 (FastAPI)
|
├── backend/ # 后端 (FastAPI)
|
||||||
│ ├── app/
|
│ ├── app/
|
||||||
│ │ ├── api/ # API 路由
|
│ │ ├── api/ # API 路由
|
||||||
|
|
@ -313,7 +313,7 @@ XCodeReviewer/
|
||||||
|
|
||||||
感谢所有贡献者的付出!
|
感谢所有贡献者的付出!
|
||||||
|
|
||||||
[](https://github.com/lintsinghua/XCodeReviewer/graphs/contributors)
|
[](https://github.com/lintsinghua/DeepAudit/graphs/contributors)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -321,5 +321,5 @@ XCodeReviewer/
|
||||||
|
|
||||||
如有问题,请通过以下方式联系:
|
如有问题,请通过以下方式联系:
|
||||||
|
|
||||||
- [GitHub Issues](https://github.com/lintsinghua/XCodeReviewer/issues)
|
- [GitHub Issues](https://github.com/lintsinghua/DeepAudit/issues)
|
||||||
- 邮箱: lintsinghua@qq.com
|
- 邮箱: lintsinghua@qq.com
|
||||||
|
|
|
||||||
|
|
@ -212,7 +212,7 @@ MIT 许可证明确声明软件按"原样"提供,不提供任何形式的担
|
||||||
|
|
||||||
如有疑问,请通过以下方式联系维护者:
|
如有疑问,请通过以下方式联系维护者:
|
||||||
|
|
||||||
- **GitHub Issues**: [https://github.com/lintsinghua/XCodeReviewer/issues](https://github.com/lintsinghua/XCodeReviewer/issues)
|
- **GitHub Issues**: [https://github.com/lintsinghua/DeepAudit/issues](https://github.com/lintsinghua/DeepAudit/issues)
|
||||||
- **邮箱**: lintsinghua@qq.com
|
- **邮箱**: lintsinghua@qq.com
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
||||||
32
README.md
|
|
@ -1,23 +1,23 @@
|
||||||
# XCodeReviewer - 您的智能代码审计伙伴 🚀
|
# DeepAudit - 您的智能代码审计伙伴 🚀
|
||||||
|
|
||||||
> 多Agent、PR批量自动审计版本正在开发中,敬请期待......
|
> 多Agent、PR批量自动审计版本正在开发中,敬请期待......
|
||||||
|
|
||||||
<div style="width: 100%; max-width: 600px; margin: 0 auto;">
|
<div style="width: 100%; max-width: 600px; margin: 0 auto;">
|
||||||
<img src="frontend/public/images/logo.png" alt="XCodeReviewer Logo" style="width: 100%; height: auto; display: block; margin: 0 auto;">
|
<img src="frontend/public/images/logo.png" alt="DeepAudit Logo" style="width: 100%; height: auto; display: block; margin: 0 auto;">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
[](https://github.com/lintsinghua/XCodeReviewer/releases)
|
[](https://github.com/lintsinghua/DeepAudit/releases)
|
||||||
[](https://opensource.org/licenses/MIT)
|
[](https://opensource.org/licenses/MIT)
|
||||||
[](https://reactjs.org/)
|
[](https://reactjs.org/)
|
||||||
[](https://www.typescriptlang.org/)
|
[](https://www.typescriptlang.org/)
|
||||||
[](https://fastapi.tiangolo.com/)
|
[](https://fastapi.tiangolo.com/)
|
||||||
[](https://www.python.org/)
|
[](https://www.python.org/)
|
||||||
[](https://deepwiki.com/lintsinghua/XCodeReviewer)
|
[](https://deepwiki.com/lintsinghua/DeepAudit)
|
||||||
|
|
||||||
[](https://github.com/lintsinghua/XCodeReviewer/stargazers)
|
[](https://github.com/lintsinghua/DeepAudit/stargazers)
|
||||||
[](https://github.com/lintsinghua/XCodeReviewer/network/members)
|
[](https://github.com/lintsinghua/DeepAudit/network/members)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
- 😰 安全漏洞藏得太深,上线后才发现问题
|
- 😰 安全漏洞藏得太深,上线后才发现问题
|
||||||
- 🥺 想用 AI 辅助审计,但配置复杂、门槛太高
|
- 🥺 想用 AI 辅助审计,但配置复杂、门槛太高
|
||||||
|
|
||||||
**XCodeReviewer 来拯救你!** 🦸♂️
|
**DeepAudit 来拯救你!** 🦸♂️
|
||||||
|
|
||||||
我们将 10+ 主流大模型的智慧注入代码审计,让你像和资深安全专家对话一样,轻松发现代码中的安全隐患、性能瓶颈和潜在 Bug。
|
我们将 10+ 主流大模型的智慧注入代码审计,让你像和资深安全专家对话一样,轻松发现代码中的安全隐患、性能瓶颈和潜在 Bug。
|
||||||
|
|
||||||
|
|
@ -85,7 +85,7 @@ JSON、PDF 格式随心选,审计报告直接交付,省去整理时间。
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 1️⃣ 克隆项目
|
# 1️⃣ 克隆项目
|
||||||
git clone https://github.com/lintsinghua/XCodeReviewer.git && cd XCodeReviewer
|
git clone https://github.com/lintsinghua/DeepAudit.git && cd DeepAudit
|
||||||
|
|
||||||
# 2️⃣ 配置你的 LLM API Key
|
# 2️⃣ 配置你的 LLM API Key
|
||||||
cp backend/env.example backend/.env
|
cp backend/env.example backend/.env
|
||||||
|
|
@ -157,12 +157,12 @@ docker-compose up -d
|
||||||
|
|
||||||
**感谢每一位贡献者!**
|
**感谢每一位贡献者!**
|
||||||
|
|
||||||
[](https://github.com/lintsinghua/XCodeReviewer/graphs/contributors)
|
[](https://github.com/lintsinghua/DeepAudit/graphs/contributors)
|
||||||
|
|
||||||
## 📞 联系我们
|
## 📞 联系我们
|
||||||
|
|
||||||
- **项目链接**: [https://github.com/lintsinghua/XCodeReviewer](https://github.com/lintsinghua/XCodeReviewer)
|
- **项目链接**: [https://github.com/lintsinghua/DeepAudit](https://github.com/lintsinghua/DeepAudit)
|
||||||
- **问题反馈**: [Issues](https://github.com/lintsinghua/XCodeReviewer/issues)
|
- **问题反馈**: [Issues](https://github.com/lintsinghua/DeepAudit/issues)
|
||||||
- **作者邮箱**: lintsinghua@qq.com(合作请注明来意)
|
- **作者邮箱**: lintsinghua@qq.com(合作请注明来意)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
@ -175,18 +175,18 @@ docker-compose up -d
|
||||||
|
|
||||||
## 📈 项目统计
|
## 📈 项目统计
|
||||||
|
|
||||||
<a href="https://www.star-history.com/#lintsinghua/XCodeReviewer&Date">
|
<a href="https://www.star-history.com/#lintsinghua/DeepAudit&Date">
|
||||||
<picture>
|
<picture>
|
||||||
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=lintsinghua/XCodeReviewer&type=Date&theme=dark" />
|
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=lintsinghua/DeepAudit&type=Date&theme=dark" />
|
||||||
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=lintsinghua/XCodeReviewer&type=Date" />
|
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=lintsinghua/DeepAudit&type=Date" />
|
||||||
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=lintsinghua/XCodeReviewer&type=Date" />
|
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=lintsinghua/DeepAudit&type=Date" />
|
||||||
</picture>
|
</picture>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
<div style="width: 100%; max-width: 600px; margin: 0 auto;">
|
<div style="width: 100%; max-width: 600px; margin: 0 auto;">
|
||||||
<a href="https://github.com/lintsinghua/XCodeReviewer">
|
<a href="https://github.com/lintsinghua/DeepAudit">
|
||||||
<img src="frontend/public/star-me-cn.svg" alt="Star this project" style="width: 100%; height: auto; display: block; margin: 0 auto;" />
|
<img src="frontend/public/star-me-cn.svg" alt="Star this project" style="width: 100%; height: auto; display: block; margin: 0 auto;" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -52,10 +52,10 @@
|
||||||
|
|
||||||
1. **邮箱报告(推荐)**
|
1. **邮箱报告(推荐)**
|
||||||
- 发送邮件至: lintsinghua@qq.com
|
- 发送邮件至: lintsinghua@qq.com
|
||||||
- 邮件标题请注明: `[Security] XCodeReviewer 安全漏洞报告`
|
- 邮件标题请注明: `[Security] DeepAudit 安全漏洞报告`
|
||||||
|
|
||||||
2. **GitHub Issues**
|
2. **GitHub Issues**
|
||||||
- 地址: [GitHub Issues](https://github.com/lintsinghua/XCodeReviewer/issues)
|
- 地址: [GitHub Issues](https://github.com/lintsinghua/DeepAudit/issues)
|
||||||
- ⚠️ **请勿公开披露敏感漏洞详情**
|
- ⚠️ **请勿公开披露敏感漏洞详情**
|
||||||
- 仅描述漏洞类型,详细信息请通过邮件发送
|
- 仅描述漏洞类型,详细信息请通过邮件发送
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ from pydantic_settings import BaseSettings
|
||||||
|
|
||||||
|
|
||||||
class Settings(BaseSettings):
|
class Settings(BaseSettings):
|
||||||
PROJECT_NAME: str = "XCodeReviewer"
|
PROJECT_NAME: str = "DeepAudit"
|
||||||
API_V1_STR: str = "/api/v1"
|
API_V1_STR: str = "/api/v1"
|
||||||
|
|
||||||
# SECURITY
|
# SECURITY
|
||||||
|
|
@ -27,7 +27,7 @@ class Settings(BaseSettings):
|
||||||
POSTGRES_SERVER: str = "db"
|
POSTGRES_SERVER: str = "db"
|
||||||
POSTGRES_USER: str = "postgres"
|
POSTGRES_USER: str = "postgres"
|
||||||
POSTGRES_PASSWORD: str = "postgres"
|
POSTGRES_PASSWORD: str = "postgres"
|
||||||
POSTGRES_DB: str = "xcodereviewer"
|
POSTGRES_DB: str = "deepaudit"
|
||||||
DATABASE_URL: str | None = None
|
DATABASE_URL: str | None = None
|
||||||
|
|
||||||
@validator("DATABASE_URL", pre=True)
|
@validator("DATABASE_URL", pre=True)
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ async def lifespan(app: FastAPI):
|
||||||
应用生命周期管理
|
应用生命周期管理
|
||||||
启动时初始化数据库(创建默认账户等)
|
启动时初始化数据库(创建默认账户等)
|
||||||
"""
|
"""
|
||||||
logger.info("XCodeReviewer 后端服务启动中...")
|
logger.info("DeepAudit 后端服务启动中...")
|
||||||
|
|
||||||
# 初始化数据库(创建默认账户)
|
# 初始化数据库(创建默认账户)
|
||||||
# 注意:需要先运行 alembic upgrade head 创建表结构
|
# 注意:需要先运行 alembic upgrade head 创建表结构
|
||||||
|
|
@ -36,7 +36,7 @@ async def lifespan(app: FastAPI):
|
||||||
logger.warning(f"数据库初始化跳过: {e}")
|
logger.warning(f"数据库初始化跳过: {e}")
|
||||||
|
|
||||||
logger.info("=" * 50)
|
logger.info("=" * 50)
|
||||||
logger.info("XCodeReviewer 后端服务已启动")
|
logger.info("DeepAudit 后端服务已启动")
|
||||||
logger.info(f"API 文档: http://localhost:8000/docs")
|
logger.info(f"API 文档: http://localhost:8000/docs")
|
||||||
logger.info("=" * 50)
|
logger.info("=" * 50)
|
||||||
logger.info("演示账户: demo@example.com / demo123")
|
logger.info("演示账户: demo@example.com / demo123")
|
||||||
|
|
@ -44,7 +44,7 @@ async def lifespan(app: FastAPI):
|
||||||
|
|
||||||
yield
|
yield
|
||||||
|
|
||||||
logger.info("XCodeReviewer 后端服务已关闭")
|
logger.info("DeepAudit 后端服务已关闭")
|
||||||
|
|
||||||
|
|
||||||
app = FastAPI(
|
app = FastAPI(
|
||||||
|
|
@ -73,7 +73,7 @@ async def health_check():
|
||||||
@app.get("/")
|
@app.get("/")
|
||||||
async def root():
|
async def root():
|
||||||
return {
|
return {
|
||||||
"message": "Welcome to XCodeReviewer API",
|
"message": "Welcome to DeepAudit API",
|
||||||
"docs": "/docs",
|
"docs": "/docs",
|
||||||
"demo_account": {
|
"demo_account": {
|
||||||
"email": "demo@example.com",
|
"email": "demo@example.com",
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ class ReportGenerator:
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
@top-right {
|
@top-right {
|
||||||
content: "XCodeReviewer Audit Report";
|
content: "DeepAudit Audit Report";
|
||||||
font-size: 8pt;
|
font-size: 8pt;
|
||||||
color: #666;
|
color: #666;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# =============================================
|
# =============================================
|
||||||
# XCodeReviewer Backend 配置文件
|
# DeepAudit Backend 配置文件
|
||||||
# =============================================
|
# =============================================
|
||||||
# 复制此文件为 .env 并填入实际配置
|
# 复制此文件为 .env 并填入实际配置
|
||||||
# 详细说明请参阅 docs/CONFIGURATION.md
|
# 详细说明请参阅 docs/CONFIGURATION.md
|
||||||
|
|
@ -12,10 +12,10 @@
|
||||||
POSTGRES_SERVER=localhost
|
POSTGRES_SERVER=localhost
|
||||||
POSTGRES_USER=postgres
|
POSTGRES_USER=postgres
|
||||||
POSTGRES_PASSWORD=postgres
|
POSTGRES_PASSWORD=postgres
|
||||||
POSTGRES_DB=xcodereviewer
|
POSTGRES_DB=deepaudit
|
||||||
|
|
||||||
# 完整数据库连接字符串(可选,会覆盖上述配置)
|
# 完整数据库连接字符串(可选,会覆盖上述配置)
|
||||||
# DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost/xcodereviewer
|
# DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost/deepaudit
|
||||||
|
|
||||||
# =============================================
|
# =============================================
|
||||||
# 安全配置
|
# 安全配置
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
def main():
|
def main():
|
||||||
print("Hello from xcodereviewer-backend!")
|
print("Hello from deepaudit-backend!")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
[project]
|
[project]
|
||||||
name = "xcodereviewer-backend"
|
name = "deepaudit-backend"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "XCodeReviewer Backend API"
|
description = "DeepAudit Backend API"
|
||||||
requires-python = ">=3.13"
|
requires-python = ">=3.13"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"fastapi>=0.100.0",
|
"fastapi>=0.100.0",
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "🚀 启动 XCodeReviewer 后端服务..."
|
echo "🚀 启动 DeepAudit 后端服务..."
|
||||||
|
|
||||||
# 检查 uv 是否安装
|
# 检查 uv 是否安装
|
||||||
if ! command -v uv &> /dev/null; then
|
if ! command -v uv &> /dev/null; then
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ def test_logo_read():
|
||||||
# 假设脚本在 backend/app/services/test_logo.py
|
# 假设脚本在 backend/app/services/test_logo.py
|
||||||
|
|
||||||
# 直接使用绝对路径进行测试,排除相对路径计算干扰
|
# 直接使用绝对路径进行测试,排除相对路径计算干扰
|
||||||
project_root = "/Users/lintsinghua/XCodeReviewer"
|
project_root = "/Users/lintsinghua/DeepAudit"
|
||||||
logo_path = os.path.join(project_root, 'frontend/public/logo_xcodereviewer.png')
|
logo_path = os.path.join(project_root, 'frontend/public/logo_deepaudit.png')
|
||||||
|
|
||||||
print(f"Looking for logo at: {logo_path}")
|
print(f"Looking for logo at: {logo_path}")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2012,7 +2012,7 @@ wheels = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "xcodereviewer-backend"
|
name = "deepaudit-backend"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = { virtual = "." }
|
source = { virtual = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=postgres
|
- POSTGRES_USER=postgres
|
||||||
- POSTGRES_PASSWORD=postgres
|
- POSTGRES_PASSWORD=postgres
|
||||||
- POSTGRES_DB=xcodereviewer
|
- POSTGRES_DB=deepaudit
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
|
@ -15,7 +15,7 @@ services:
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
networks:
|
networks:
|
||||||
- xcodereviewer-network
|
- deepaudit-network
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
build:
|
build:
|
||||||
|
|
@ -27,13 +27,13 @@ services:
|
||||||
env_file:
|
env_file:
|
||||||
- ./backend/.env
|
- ./backend/.env
|
||||||
environment:
|
environment:
|
||||||
- DATABASE_URL=postgresql+asyncpg://postgres:postgres@db:5432/xcodereviewer
|
- DATABASE_URL=postgresql+asyncpg://postgres:postgres@db:5432/deepaudit
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
command: sh -c ".venv/bin/alembic upgrade head && .venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8000"
|
command: sh -c ".venv/bin/alembic upgrade head && .venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8000"
|
||||||
networks:
|
networks:
|
||||||
- xcodereviewer-network
|
- deepaudit-network
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
build:
|
build:
|
||||||
|
|
@ -45,10 +45,10 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
networks:
|
networks:
|
||||||
- xcodereviewer-network
|
- deepaudit-network
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
xcodereviewer-network:
|
deepaudit-network:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# 配置说明
|
# 配置说明
|
||||||
|
|
||||||
本文档详细介绍 XCodeReviewer 的所有配置选项,包括后端环境变量、前端配置和运行时配置。
|
本文档详细介绍 DeepAudit 的所有配置选项,包括后端环境变量、前端配置和运行时配置。
|
||||||
|
|
||||||
## 目录
|
## 目录
|
||||||
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
## 配置方式概览
|
## 配置方式概览
|
||||||
|
|
||||||
XCodeReviewer 采用前后端分离架构,数据存储在后端 PostgreSQL 数据库中。
|
DeepAudit 采用前后端分离架构,数据存储在后端 PostgreSQL 数据库中。
|
||||||
|
|
||||||
配置优先级(从高到低):
|
配置优先级(从高到低):
|
||||||
|
|
||||||
|
|
@ -38,14 +38,14 @@ cp backend/env.example backend/.env
|
||||||
|
|
||||||
```env
|
```env
|
||||||
# =============================================
|
# =============================================
|
||||||
# XCodeReviewer Backend 配置文件
|
# DeepAudit Backend 配置文件
|
||||||
# =============================================
|
# =============================================
|
||||||
|
|
||||||
# ========== 数据库配置 ==========
|
# ========== 数据库配置 ==========
|
||||||
POSTGRES_SERVER=localhost # 数据库服务器地址
|
POSTGRES_SERVER=localhost # 数据库服务器地址
|
||||||
POSTGRES_USER=postgres # 数据库用户名
|
POSTGRES_USER=postgres # 数据库用户名
|
||||||
POSTGRES_PASSWORD=postgres # 数据库密码
|
POSTGRES_PASSWORD=postgres # 数据库密码
|
||||||
POSTGRES_DB=xcodereviewer # 数据库名称
|
POSTGRES_DB=deepaudit # 数据库名称
|
||||||
# DATABASE_URL= # 完整数据库连接字符串(可选,会覆盖上述配置)
|
# DATABASE_URL= # 完整数据库连接字符串(可选,会覆盖上述配置)
|
||||||
|
|
||||||
# ========== 安全配置 ==========
|
# ========== 安全配置 ==========
|
||||||
|
|
@ -161,7 +161,7 @@ cp frontend/.env.example frontend/.env
|
||||||
VITE_API_BASE_URL=/api # 后端 API 地址
|
VITE_API_BASE_URL=/api # 后端 API 地址
|
||||||
|
|
||||||
# ========== 应用配置 ==========
|
# ========== 应用配置 ==========
|
||||||
VITE_APP_ID=xcodereviewer
|
VITE_APP_ID=deepaudit
|
||||||
|
|
||||||
# ========== 代码分析配置 ==========
|
# ========== 代码分析配置 ==========
|
||||||
VITE_MAX_ANALYZE_FILES=40 # 最大分析文件数
|
VITE_MAX_ANALYZE_FILES=40 # 最大分析文件数
|
||||||
|
|
@ -184,7 +184,7 @@ VITE_OUTPUT_LANGUAGE=zh-CN # 输出语言
|
||||||
|
|
||||||
## 运行时配置
|
## 运行时配置
|
||||||
|
|
||||||
XCodeReviewer 支持在浏览器中进行运行时配置,无需重启服务。
|
DeepAudit 支持在浏览器中进行运行时配置,无需重启服务。
|
||||||
|
|
||||||
### 访问方式
|
### 访问方式
|
||||||
|
|
||||||
|
|
@ -223,7 +223,7 @@ XCodeReviewer 支持在浏览器中进行运行时配置,无需重启服务。
|
||||||
|
|
||||||
## 数据存储
|
## 数据存储
|
||||||
|
|
||||||
XCodeReviewer 采用前后端分离架构,所有数据存储在后端 PostgreSQL 数据库中。
|
DeepAudit 采用前后端分离架构,所有数据存储在后端 PostgreSQL 数据库中。
|
||||||
|
|
||||||
### 架构说明
|
### 架构说明
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# 部署指南
|
# 部署指南
|
||||||
|
|
||||||
本文档详细介绍 XCodeReviewer 的各种部署方式,包括 Docker Compose 一键部署、生产环境部署和本地开发环境搭建。
|
本文档详细介绍 DeepAudit 的各种部署方式,包括 Docker Compose 一键部署、生产环境部署和本地开发环境搭建。
|
||||||
|
|
||||||
## 目录
|
## 目录
|
||||||
|
|
||||||
|
|
@ -18,8 +18,8 @@
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 1. 克隆项目
|
# 1. 克隆项目
|
||||||
git clone https://github.com/lintsinghua/XCodeReviewer.git
|
git clone https://github.com/lintsinghua/DeepAudit.git
|
||||||
cd XCodeReviewer
|
cd DeepAudit
|
||||||
|
|
||||||
# 2. 配置后端环境变量
|
# 2. 配置后端环境变量
|
||||||
cp backend/env.example backend/.env
|
cp backend/env.example backend/.env
|
||||||
|
|
@ -59,8 +59,8 @@ docker compose up -d
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 1. 克隆项目
|
# 1. 克隆项目
|
||||||
git clone https://github.com/lintsinghua/XCodeReviewer.git
|
git clone https://github.com/lintsinghua/DeepAudit.git
|
||||||
cd XCodeReviewer
|
cd DeepAudit
|
||||||
|
|
||||||
# 2. 配置后端环境变量
|
# 2. 配置后端环境变量
|
||||||
cp backend/env.example backend/.env
|
cp backend/env.example backend/.env
|
||||||
|
|
@ -73,7 +73,7 @@ cp backend/env.example backend/.env
|
||||||
POSTGRES_SERVER=db
|
POSTGRES_SERVER=db
|
||||||
POSTGRES_USER=postgres
|
POSTGRES_USER=postgres
|
||||||
POSTGRES_PASSWORD=postgres
|
POSTGRES_PASSWORD=postgres
|
||||||
POSTGRES_DB=xcodereviewer
|
POSTGRES_DB=deepaudit
|
||||||
|
|
||||||
# 安全配置(生产环境请修改)
|
# 安全配置(生产环境请修改)
|
||||||
SECRET_KEY=your-super-secret-key-change-this-in-production
|
SECRET_KEY=your-super-secret-key-change-this-in-production
|
||||||
|
|
@ -130,7 +130,7 @@ docker compose logs -f backend
|
||||||
|
|
||||||
# 进入容器调试
|
# 进入容器调试
|
||||||
docker compose exec backend sh
|
docker compose exec backend sh
|
||||||
docker compose exec db psql -U postgres -d xcodereviewer
|
docker compose exec db psql -U postgres -d deepaudit
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
@ -210,15 +210,15 @@ server {
|
||||||
```bash
|
```bash
|
||||||
# 方式一:使用 Docker 启动 PostgreSQL(推荐)
|
# 方式一:使用 Docker 启动 PostgreSQL(推荐)
|
||||||
docker run -d \
|
docker run -d \
|
||||||
--name xcodereviewer-db \
|
--name deepaudit-db \
|
||||||
-e POSTGRES_USER=postgres \
|
-e POSTGRES_USER=postgres \
|
||||||
-e POSTGRES_PASSWORD=postgres \
|
-e POSTGRES_PASSWORD=postgres \
|
||||||
-e POSTGRES_DB=xcodereviewer \
|
-e POSTGRES_DB=deepaudit \
|
||||||
-p 5432:5432 \
|
-p 5432:5432 \
|
||||||
postgres:15-alpine
|
postgres:15-alpine
|
||||||
|
|
||||||
# 方式二:使用本地 PostgreSQL
|
# 方式二:使用本地 PostgreSQL
|
||||||
createdb xcodereviewer
|
createdb deepaudit
|
||||||
```
|
```
|
||||||
|
|
||||||
### 后端启动
|
### 后端启动
|
||||||
|
|
@ -286,7 +286,7 @@ uv run ruff format app
|
||||||
|
|
||||||
## 数据存储
|
## 数据存储
|
||||||
|
|
||||||
XCodeReviewer 采用前后端分离架构,所有数据存储在后端 PostgreSQL 数据库中。
|
DeepAudit 采用前后端分离架构,所有数据存储在后端 PostgreSQL 数据库中。
|
||||||
|
|
||||||
### 数据管理
|
### 数据管理
|
||||||
|
|
||||||
|
|
@ -301,10 +301,10 @@ XCodeReviewer 采用前后端分离架构,所有数据存储在后端 PostgreS
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 导出 PostgreSQL 数据
|
# 导出 PostgreSQL 数据
|
||||||
docker compose exec db pg_dump -U postgres xcodereviewer > backup.sql
|
docker compose exec db pg_dump -U postgres deepaudit > backup.sql
|
||||||
|
|
||||||
# 恢复数据
|
# 恢复数据
|
||||||
docker compose exec -T db psql -U postgres xcodereviewer < backup.sql
|
docker compose exec -T db psql -U postgres deepaudit < backup.sql
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
||||||
14
docs/FAQ.md
|
|
@ -1,6 +1,6 @@
|
||||||
# 常见问题 (FAQ)
|
# 常见问题 (FAQ)
|
||||||
|
|
||||||
本文档收集了 XCodeReviewer 使用过程中的常见问题和解决方案。
|
本文档收集了 DeepAudit 使用过程中的常见问题和解决方案。
|
||||||
|
|
||||||
## 目录
|
## 目录
|
||||||
|
|
||||||
|
|
@ -21,8 +21,8 @@
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 1. 克隆项目
|
# 1. 克隆项目
|
||||||
git clone https://github.com/lintsinghua/XCodeReviewer.git
|
git clone https://github.com/lintsinghua/DeepAudit.git
|
||||||
cd XCodeReviewer
|
cd DeepAudit
|
||||||
|
|
||||||
# 2. 配置 LLM API Key
|
# 2. 配置 LLM API Key
|
||||||
cp backend/env.example backend/.env
|
cp backend/env.example backend/.env
|
||||||
|
|
@ -49,7 +49,7 @@ docker-compose up -d
|
||||||
|
|
||||||
### Q: 支持哪些编程语言?
|
### Q: 支持哪些编程语言?
|
||||||
|
|
||||||
XCodeReviewer 支持所有主流编程语言的代码分析,包括但不限于:
|
DeepAudit 支持所有主流编程语言的代码分析,包括但不限于:
|
||||||
|
|
||||||
- **Web**: JavaScript, TypeScript, HTML, CSS
|
- **Web**: JavaScript, TypeScript, HTML, CSS
|
||||||
- **后端**: Python, Java, Go, Rust, C/C++, C#
|
- **后端**: Python, Java, Go, Rust, C/C++, C#
|
||||||
|
|
@ -376,10 +376,10 @@ Ollama 本地模型没有网络延迟,适合大量文件分析。
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 导出数据
|
# 导出数据
|
||||||
docker-compose exec db pg_dump -U postgres xcodereviewer > backup.sql
|
docker-compose exec db pg_dump -U postgres deepaudit > backup.sql
|
||||||
|
|
||||||
# 恢复数据
|
# 恢复数据
|
||||||
docker-compose exec -T db psql -U postgres xcodereviewer < backup.sql
|
docker-compose exec -T db psql -U postgres deepaudit < backup.sql
|
||||||
```
|
```
|
||||||
|
|
||||||
### Q: 如何恢复数据?
|
### Q: 如何恢复数据?
|
||||||
|
|
@ -419,7 +419,7 @@ docker-compose up -d
|
||||||
|
|
||||||
如果以上内容没有解决你的问题,欢迎:
|
如果以上内容没有解决你的问题,欢迎:
|
||||||
|
|
||||||
- 提交 [GitHub Issue](https://github.com/lintsinghua/XCodeReviewer/issues)
|
- 提交 [GitHub Issue](https://github.com/lintsinghua/DeepAudit/issues)
|
||||||
- 发送邮件至 lintsinghua@qq.com
|
- 发送邮件至 lintsinghua@qq.com
|
||||||
|
|
||||||
提问时请提供:
|
提问时请提供:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# LLM 平台支持
|
# LLM 平台支持
|
||||||
|
|
||||||
XCodeReviewer 支持 10+ 主流 LLM 平台,可根据需求自由选择。本文档介绍各平台的配置方法。
|
DeepAudit 支持 10+ 主流 LLM 平台,可根据需求自由选择。本文档介绍各平台的配置方法。
|
||||||
|
|
||||||
## 目录
|
## 目录
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# =============================================
|
# =============================================
|
||||||
# XCodeReviewer 前端环境变量配置
|
# DeepAudit 前端环境变量配置
|
||||||
# =============================================
|
# =============================================
|
||||||
# 复制此文件为 .env 并填写你的配置
|
# 复制此文件为 .env 并填写你的配置
|
||||||
# 详细说明请参阅 docs/CONFIGURATION.md
|
# 详细说明请参阅 docs/CONFIGURATION.md
|
||||||
|
|
@ -35,7 +35,7 @@ VITE_API_BASE_URL=/api
|
||||||
# 应用配置
|
# 应用配置
|
||||||
# =============================================
|
# =============================================
|
||||||
# 应用 ID(用于本地存储隔离)
|
# 应用 ID(用于本地存储隔离)
|
||||||
VITE_APP_ID=xcodereviewer
|
VITE_APP_ID=deepaudit
|
||||||
|
|
||||||
# =============================================
|
# =============================================
|
||||||
# 代码分析配置
|
# 代码分析配置
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/png" href="/logo_xcodereviewer.png" />
|
<link rel="icon" type="image/png" href="/logo_deepaudit.png" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>XCodeReviewer</title>
|
<title>DeepAudit</title>
|
||||||
|
|
||||||
<!-- Terminal Retro & Cassette Futurism Typography -->
|
<!-- Terminal Retro & Cassette Futurism Typography -->
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"name": "xcode-reviewer",
|
"name": "deep-audit",
|
||||||
"version": "1.3.4",
|
"version": "1.3.4",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "xcode-reviewer",
|
"name": "deep-audit",
|
||||||
"version": "1.3.4",
|
"version": "1.3.4",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@google/generative-ai": "^0.24.1",
|
"@google/generative-ai": "^0.24.1",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "xcode-reviewer",
|
"name": "deep-audit",
|
||||||
"version": "2.0.0-beta.5",
|
"version": "2.0.0-beta.5",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@
|
||||||
<!-- Title Section -->
|
<!-- Title Section -->
|
||||||
<g id="header">
|
<g id="header">
|
||||||
<rect x="50" y="20" width="1120" height="65" fill="url(#grad-main)" rx="6" class="shadow"/>
|
<rect x="50" y="20" width="1120" height="65" fill="url(#grad-main)" rx="6" class="shadow"/>
|
||||||
<text x="610" y="50" text-anchor="middle" class="layer-title" font-size="24">XCodeReviewer: Multi-LLM Code Audit Platform</text>
|
<text x="610" y="50" text-anchor="middle" class="layer-title" font-size="24">DeepAudit: Multi-LLM Code Audit Platform</text>
|
||||||
<text x="610" y="72" text-anchor="middle" class="layer-title" font-size="12">Unified Abstraction Architecture with Concurrent Processing Engine</text>
|
<text x="610" y="72" text-anchor="middle" class="layer-title" font-size="12">Unified Abstraction Architecture with Concurrent Processing Engine</text>
|
||||||
</g>
|
</g>
|
||||||
|
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 1.3 MiB |
|
Before Width: | Height: | Size: 194 KiB After Width: | Height: | Size: 194 KiB |
|
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
<!-- 副文字 -->
|
<!-- 副文字 -->
|
||||||
<text x="62" y="47" font-family="'PingFang SC', 'Microsoft YaHei', Arial, sans-serif" font-size="11" fill="#dc2626" font-weight="600">
|
<text x="62" y="47" font-family="'PingFang SC', 'Microsoft YaHei', Arial, sans-serif" font-size="11" fill="#dc2626" font-weight="600">
|
||||||
无偿开源与维护,您的支持是我们持续改进 XCodeReviewer 的最大动力!
|
无偿开源与维护,您的支持是我们持续改进 DeepAudit 的最大动力!
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
<!-- 右侧装饰星星 -->
|
<!-- 右侧装饰星星 -->
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.0 KiB |
|
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
<!-- 副文字 -->
|
<!-- 副文字 -->
|
||||||
<text x="62" y="45" font-family="Arial, sans-serif" font-size="10.5" fill="#dc2626" font-weight="600">
|
<text x="62" y="45" font-family="Arial, sans-serif" font-size="10.5" fill="#dc2626" font-weight="600">
|
||||||
Free and open-source, your support motivates us to keep improving XCodeReviewer!
|
Free and open-source, your support motivates us to keep improving DeepAudit!
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
<!-- 右侧装饰星星 -->
|
<!-- 右侧装饰星星 -->
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
|
@ -11,7 +11,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
XCodeReviewer Design System
|
DeepAudit Design System
|
||||||
Aesthetic: Terminal Retro + Pixel Art + Mechanical + Cassette Futurism
|
Aesthetic: Terminal Retro + Pixel Art + Mechanical + Cassette Futurism
|
||||||
Core Palette: Orange, Deep Red, Signal Green, Grey
|
Core Palette: Orange, Deep Red, Signal Green, Grey
|
||||||
Philosophy: Clean, legible, harmonious - simplified linework for reduced eye strain
|
Philosophy: Clean, legible, harmonious - simplified linework for reduced eye strain
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ export function DatabaseManager() {
|
||||||
const url = URL.createObjectURL(blob);
|
const url = URL.createObjectURL(blob);
|
||||||
const a = document.createElement('a');
|
const a = document.createElement('a');
|
||||||
a.href = url;
|
a.href = url;
|
||||||
a.download = `xcodereviewer-backup-${new Date().toISOString().split('T')[0]}.json`;
|
a.download = `deepaudit-backup-${new Date().toISOString().split('T')[0]}.json`;
|
||||||
document.body.appendChild(a);
|
document.body.appendChild(a);
|
||||||
a.click();
|
a.click();
|
||||||
document.body.removeChild(a);
|
document.body.removeChild(a);
|
||||||
|
|
|
||||||
|
|
@ -22,13 +22,13 @@ export function AppWrapper({ children }: AppWrapperProps) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function PageMeta({
|
export default function PageMeta({
|
||||||
title = "XCodeReviewer",
|
title = "DeepAudit",
|
||||||
description = "基于AI的现代化代码质量分析和审查服务,提供全面的代码安全检测、性能分析和最佳实践建议。",
|
description = "基于AI的现代化代码质量分析和审查服务,提供全面的代码安全检测、性能分析和最佳实践建议。",
|
||||||
keywords = "代码审计,代码质量,AI分析,安全检测,性能优化,代码规范",
|
keywords = "代码审计,代码质量,AI分析,安全检测,性能优化,代码规范",
|
||||||
image = "/images/logo.png",
|
image = "/images/logo.png",
|
||||||
url = window.location.href
|
url = window.location.href
|
||||||
}: PageMetaProps) {
|
}: PageMetaProps) {
|
||||||
const fullTitle = title === "XCodeReviewer" ? title : `${title} - XCodeReviewer`;
|
const fullTitle = title === "DeepAudit" ? title : `${title} - DeepAudit`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Helmet>
|
<Helmet>
|
||||||
|
|
@ -43,7 +43,7 @@ export default function PageMeta({
|
||||||
<meta property="og:image" content={image} />
|
<meta property="og:image" content={image} />
|
||||||
<meta property="og:url" content={url} />
|
<meta property="og:url" content={url} />
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:site_name" content="XCodeReviewer" />
|
<meta property="og:site_name" content="DeepAudit" />
|
||||||
|
|
||||||
{/* Twitter Card */}
|
{/* Twitter Card */}
|
||||||
<meta name="twitter:card" content="summary_large_image" />
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
|
|
@ -53,7 +53,7 @@ export default function PageMeta({
|
||||||
|
|
||||||
{/* 其他 */}
|
{/* 其他 */}
|
||||||
<meta name="robots" content="index, follow" />
|
<meta name="robots" content="index, follow" />
|
||||||
<meta name="author" content="XCodeReviewer" />
|
<meta name="author" content="DeepAudit" />
|
||||||
<link rel="canonical" href={url} />
|
<link rel="canonical" href={url} />
|
||||||
</Helmet>
|
</Helmet>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -83,11 +83,11 @@ export default function Sidebar({ collapsed, setCollapsed }: SidebarProps) {
|
||||||
onClick={() => setMobileOpen(false)}
|
onClick={() => setMobileOpen(false)}
|
||||||
>
|
>
|
||||||
<div className="relative flex-shrink-0 border border-primary bg-white p-1 shadow-sm rounded-sm overflow-hidden">
|
<div className="relative flex-shrink-0 border border-primary bg-white p-1 shadow-sm rounded-sm overflow-hidden">
|
||||||
<img src="/logo_xcodereviewer.png" alt="XCodeReviewer" className="w-7 h-7 object-contain" />
|
<img src="/logo_deepaudit.png" alt="DeepAudit" className="w-7 h-7 object-contain" />
|
||||||
</div>
|
</div>
|
||||||
<div className={`transition-all duration-300 ${collapsed ? 'w-0 opacity-0 overflow-hidden' : 'flex-1 min-w-0 opacity-100'}`}>
|
<div className={`transition-all duration-300 ${collapsed ? 'w-0 opacity-0 overflow-hidden' : 'flex-1 min-w-0 opacity-100'}`}>
|
||||||
<span className="text-lg font-display font-bold text-black tracking-tighter uppercase whitespace-nowrap">
|
<span className="text-lg font-display font-bold text-black tracking-tighter uppercase whitespace-nowrap">
|
||||||
XCode<span className="text-primary">Reviewer</span>
|
Deep<span className="text-primary">Audit</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
@ -179,7 +179,7 @@ export default function Sidebar({ collapsed, setCollapsed }: SidebarProps) {
|
||||||
|
|
||||||
{/* GitHub Link */}
|
{/* GitHub Link */}
|
||||||
<a
|
<a
|
||||||
href="https://github.com/lintsinghua/XCodeReviewer"
|
href="https://github.com/lintsinghua/DeepAudit"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
className={`
|
className={`
|
||||||
|
|
|
||||||
|
|
@ -108,13 +108,13 @@ export default function Login() {
|
||||||
<div className="mb-8 text-center">
|
<div className="mb-8 text-center">
|
||||||
<div className="inline-flex items-center justify-center p-3 bg-white border-2 border-black shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] mb-6">
|
<div className="inline-flex items-center justify-center p-3 bg-white border-2 border-black shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] mb-6">
|
||||||
<img
|
<img
|
||||||
src="/logo_xcodereviewer.png"
|
src="/logo_deepaudit.png"
|
||||||
alt="XCodeReviewer"
|
alt="DeepAudit"
|
||||||
className="w-14 h-14 object-contain"
|
className="w-14 h-14 object-contain"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<h1 className="text-3xl font-display font-bold tracking-tighter uppercase">
|
<h1 className="text-3xl font-display font-bold tracking-tighter uppercase">
|
||||||
XCode<span className="text-primary">Reviewer</span>
|
Deep<span className="text-primary">Audit</span>
|
||||||
</h1>
|
</h1>
|
||||||
<p className="text-sm font-mono text-gray-500 mt-2">
|
<p className="text-sm font-mono text-gray-500 mt-2">
|
||||||
// 代码审计平台
|
// 代码审计平台
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
// ==================== 应用配置 ====================
|
// ==================== 应用配置 ====================
|
||||||
export const env = {
|
export const env = {
|
||||||
// 应用ID
|
// 应用ID
|
||||||
APP_ID: import.meta.env.VITE_APP_ID || 'xcodereviewer',
|
APP_ID: import.meta.env.VITE_APP_ID || 'deepaudit',
|
||||||
|
|
||||||
// API 基础URL
|
// API 基础URL
|
||||||
API_BASE_URL: import.meta.env.VITE_API_BASE_URL || '/api/v1',
|
API_BASE_URL: import.meta.env.VITE_API_BASE_URL || '/api/v1',
|
||||||
|
|
|
||||||
|
|
@ -94,9 +94,9 @@ export const API_ENDPOINTS = {
|
||||||
|
|
||||||
// 本地存储键名
|
// 本地存储键名
|
||||||
export const STORAGE_KEYS = {
|
export const STORAGE_KEYS = {
|
||||||
THEME: 'xcodereviewer-theme',
|
THEME: 'deepaudit-theme',
|
||||||
USER_PREFERENCES: 'xcodereviewer-preferences',
|
USER_PREFERENCES: 'deepaudit-preferences',
|
||||||
RECENT_PROJECTS: 'xcodereviewer-recent-projects',
|
RECENT_PROJECTS: 'deepaudit-recent-projects',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
// 导出项目类型相关常量
|
// 导出项目类型相关常量
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
chcp 65001 >nul
|
chcp 65001 >nul
|
||||||
setlocal enabledelayedexpansion
|
setlocal enabledelayedexpansion
|
||||||
|
|
||||||
echo 🚀 XCodeReviewer 项目设置开始...
|
echo 🚀 DeepAudit 项目设置开始...
|
||||||
|
|
||||||
REM 检查 Node.js 版本
|
REM 检查 Node.js 版本
|
||||||
echo 📋 检查 Node.js 版本...
|
echo 📋 检查 Node.js 版本...
|
||||||
|
|
@ -117,7 +117,7 @@ echo - DEPLOYMENT.md - 部署指南
|
||||||
echo - FEATURES.md - 功能特性详解
|
echo - FEATURES.md - 功能特性详解
|
||||||
echo.
|
echo.
|
||||||
echo 🆘 需要帮助?
|
echo 🆘 需要帮助?
|
||||||
echo - GitHub Issues: https://github.com/lintsinghua/XCodeReviewer/issues
|
echo - GitHub Issues: https://github.com/lintsinghua/DeepAudit/issues
|
||||||
echo - 邮箱: tsinghuaiiilove@gmail.com
|
echo - 邮箱: tsinghuaiiilove@gmail.com
|
||||||
echo.
|
echo.
|
||||||
echo Happy coding! 🚀
|
echo Happy coding! 🚀
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { execSync } = require('child_process');
|
const { execSync } = require('child_process');
|
||||||
|
|
||||||
console.log('🚀 XCodeReviewer 项目设置开始...');
|
console.log('🚀 DeepAudit 项目设置开始...');
|
||||||
|
|
||||||
// 检查 Node.js 版本
|
// 检查 Node.js 版本
|
||||||
function checkNodeVersion() {
|
function checkNodeVersion() {
|
||||||
|
|
@ -123,7 +123,7 @@ function main() {
|
||||||
console.log(' - FEATURES.md - 功能特性详解');
|
console.log(' - FEATURES.md - 功能特性详解');
|
||||||
console.log('');
|
console.log('');
|
||||||
console.log('🆘 需要帮助?');
|
console.log('🆘 需要帮助?');
|
||||||
console.log(' - GitHub Issues: https://github.com/lintsinghua/XCodeReviewer/issues');
|
console.log(' - GitHub Issues: https://github.com/lintsinghua/DeepAudit/issues');
|
||||||
console.log(' - 邮箱: tsinghuaiiilove@gmail.com');
|
console.log(' - 邮箱: tsinghuaiiilove@gmail.com');
|
||||||
console.log('');
|
console.log('');
|
||||||
console.log('Happy coding! 🚀');
|
console.log('Happy coding! 🚀');
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# XCodeReviewer 项目设置脚本
|
# DeepAudit 项目设置脚本
|
||||||
# 用于快速设置开发环境
|
# 用于快速设置开发环境
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "🚀 XCodeReviewer 项目设置开始..."
|
echo "🚀 DeepAudit 项目设置开始..."
|
||||||
|
|
||||||
# 检查 Node.js 版本
|
# 检查 Node.js 版本
|
||||||
echo "📋 检查 Node.js 版本..."
|
echo "📋 检查 Node.js 版本..."
|
||||||
|
|
@ -100,7 +100,7 @@ echo " - DEPLOYMENT.md - 部署指南"
|
||||||
echo " - FEATURES.md - 功能特性详解"
|
echo " - FEATURES.md - 功能特性详解"
|
||||||
echo ""
|
echo ""
|
||||||
echo "🆘 需要帮助?"
|
echo "🆘 需要帮助?"
|
||||||
echo " - GitHub Issues: https://github.com/lintsinghua/XCodeReviewer/issues"
|
echo " - GitHub Issues: https://github.com/lintsinghua/DeepAudit/issues"
|
||||||
echo " - 邮箱: tsinghuaiiilove@gmail.com"
|
echo " - 邮箱: tsinghuaiiilove@gmail.com"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Happy coding! 🚀"
|
echo "Happy coding! 🚀"
|
||||||