diff --git a/.dockerignore b/.dockerignore
index b6d3e3e8..6c26c8db 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -8,14 +8,14 @@
**/*.pyo
**/*.db
**/.env
-frontend
-ui-showcase
+apps/frontend
+apps/ui-showcase
node_modules
-backend/runtime_data
-backend/output
-backend/workflow.log
-example_uploads
+apps/backend/runtime_data
+apps/backend/output
+apps/backend/workflow.log
+examples
outputs
-assets
-rules
+docs/assets
+docs/rules
/error_correction
diff --git a/.gitattributes b/.gitattributes
index 02a36cfc..6183ebc5 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,2 +1,2 @@
-backend/models/weight/*.pth filter=lfs diff=lfs merge=lfs -text
-backend/text_eraser_model/weight/*.pth filter=lfs diff=lfs merge=lfs -text
+apps/backend/models/weight/*.pth filter=lfs diff=lfs merge=lfs -text
+apps/backend/text_eraser_model/weight/*.pth filter=lfs diff=lfs merge=lfs -text
diff --git a/.github/workflows/backend-ci.yml b/.github/workflows/backend-ci.yml
index 92b34622..cef42a16 100644
--- a/.github/workflows/backend-ci.yml
+++ b/.github/workflows/backend-ci.yml
@@ -3,7 +3,7 @@ name: Backend CI
on:
pull_request:
paths:
- - "backend/**"
+ - "apps/backend/**"
- "requirements.txt"
- "pyproject.toml"
- "Dockerfile"
@@ -15,7 +15,7 @@ on:
branches:
- main
paths:
- - "backend/**"
+ - "apps/backend/**"
- "requirements.txt"
- "pyproject.toml"
- "Dockerfile"
@@ -52,4 +52,4 @@ jobs:
python -m pip install -r requirements.txt
- name: Run backend tests
- run: python -m pytest backend/tests -v
+ run: python -m pytest apps/backend/tests -v
diff --git a/.github/workflows/frontend-ci.yml b/.github/workflows/frontend-ci.yml
index 3538bcab..6a54c6b8 100644
--- a/.github/workflows/frontend-ci.yml
+++ b/.github/workflows/frontend-ci.yml
@@ -3,14 +3,14 @@ name: Frontend CI
on:
pull_request:
paths:
- - "frontend/**"
+ - "apps/frontend/**"
- ".github/workflows/frontend-ci.yml"
- ".github/workflows/release-ci-cd.yml"
push:
branches:
- main
paths:
- - "frontend/**"
+ - "apps/frontend/**"
- ".github/workflows/frontend-ci.yml"
- ".github/workflows/release-ci-cd.yml"
@@ -34,16 +34,16 @@ jobs:
with:
node-version: "22"
cache: npm
- cache-dependency-path: frontend/package-lock.json
+ cache-dependency-path: apps/frontend/package-lock.json
- name: Install dependencies
- working-directory: frontend
+ working-directory: apps/frontend
run: npm ci
- name: Run tests
- working-directory: frontend
+ working-directory: apps/frontend
run: npm test
- name: Build production assets
- working-directory: frontend
+ working-directory: apps/frontend
run: npm run build
diff --git a/.github/workflows/mobile-ci.yml b/.github/workflows/mobile-ci.yml
new file mode 100644
index 00000000..e86c9023
--- /dev/null
+++ b/.github/workflows/mobile-ci.yml
@@ -0,0 +1,55 @@
+name: Mobile CI
+
+on:
+ pull_request:
+ paths:
+ - "apps/mobile/**"
+ - ".github/workflows/mobile-ci.yml"
+ push:
+ branches:
+ - main
+ paths:
+ - "apps/mobile/**"
+ - ".github/workflows/mobile-ci.yml"
+
+permissions:
+ contents: read
+
+concurrency:
+ group: mobile-ci-${{ github.ref }}
+ cancel-in-progress: true
+
+defaults:
+ run:
+ working-directory: apps/mobile
+
+jobs:
+ test:
+ name: Analyze, test and build mobile app
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check out repository
+ uses: actions/checkout@v4
+
+ - name: Set up Flutter
+ uses: subosito/flutter-action@v2
+ with:
+ flutter-version: "3.44.6"
+ channel: stable
+ cache: true
+ cache-key: flutter-${{ runner.os }}-${{ hashFiles('apps/mobile/pubspec.lock') }}
+
+ - name: Install dependencies
+ run: flutter pub get
+
+ - name: Check formatting
+ run: dart format --output=none --set-exit-if-changed lib test
+
+ - name: Analyze Dart code
+ run: flutter analyze --no-fatal-infos --fatal-warnings
+
+ - name: Run Flutter tests
+ run: flutter test
+
+ - name: Build Android debug APK
+ run: flutter build apk --debug
diff --git a/.github/workflows/release-ci-cd.yml b/.github/workflows/release-ci-cd.yml
index 718048a3..c4db2b8d 100644
--- a/.github/workflows/release-ci-cd.yml
+++ b/.github/workflows/release-ci-cd.yml
@@ -41,14 +41,14 @@ jobs:
python -m pip install -r requirements.txt
- name: Run backend tests
- run: python -m pytest backend/tests -v
+ run: python -m pytest apps/backend/tests -v
- name: Validate eraser model
shell: bash
run: |
set -euo pipefail
- test -s backend/text_eraser_model/weight/best.pth
- test "$(wc -c < backend/text_eraser_model/weight/best.pth)" -gt 100000000
+ test -s apps/backend/text_eraser_model/weight/best.pth
+ test "$(wc -c < apps/backend/text_eraser_model/weight/best.pth)" -gt 100000000
- name: Build production image
run: docker build --tag error-correction-backend:${{ github.sha }} .
@@ -70,29 +70,29 @@ jobs:
with:
node-version: "22"
cache: npm
- cache-dependency-path: frontend/package-lock.json
+ cache-dependency-path: apps/frontend/package-lock.json
- name: Install dependencies
- working-directory: frontend
+ working-directory: apps/frontend
run: npm ci
- name: Run tests
- working-directory: frontend
+ working-directory: apps/frontend
run: npm test
- name: Build production assets
- working-directory: frontend
+ working-directory: apps/frontend
run: npm run build
- name: Validate and package build
shell: bash
run: |
set -euo pipefail
- test -f frontend/dist/app.html
- test -d frontend/dist/assets
- find frontend/dist/assets -type f -print -quit | grep -q .
- cp frontend/dist/app.html frontend/dist/index.html
- tar -C frontend/dist -czf error-correction-web.tar.gz .
+ test -f apps/frontend/dist/app.html
+ test -d apps/frontend/dist/assets
+ find apps/frontend/dist/assets -type f -print -quit | grep -q .
+ cp apps/frontend/dist/app.html apps/frontend/dist/index.html
+ tar -C apps/frontend/dist -czf error-correction-web.tar.gz .
- name: Upload production assets
uses: actions/upload-artifact@v7
@@ -244,7 +244,7 @@ jobs:
git lfs install --local
git lfs pull origin
test -f docker-compose.yml
- test "$(wc -c < backend/text_eraser_model/weight/best.pth)" -gt 100000000
+ test "$(wc -c < apps/backend/text_eraser_model/weight/best.pth)" -gt 100000000
docker compose config --quiet
docker compose up -d --build --remove-orphans
diff --git a/.gitignore b/.gitignore
index a867eff7..aee3132b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,30 +17,32 @@ uv.lock
# Node 依赖与构建产物
node_modules/
-ui-showcase/dist/
-ui-showcase/package-lock.json
+apps/ui-showcase/dist/
+apps/ui-showcase/package-lock.json
# 前端构建产物
-frontend/dist/
-frontend/uploads/
-frontend/output
+apps/frontend/dist/
+apps/frontend/uploads/
+apps/frontend/output
presentation-vue/
# 后端运行产物
-backend/runtime_data/
-backend/output/
-backend/*.db
-backend/db/*.db
+apps/backend/runtime_data/
+apps/backend/output/
+apps/backend/*.db
+apps/backend/db/*.db
output/
+outputs/
__pycache__/
-backend/static/vue/assets
+.pytest_cache/
+apps/backend/static/vue/assets
# 模型权重文件
-backend/models/weight/
-backend/text_eraser_model/weight/
+apps/backend/models/weight/
+apps/backend/text_eraser_model/weight/
# 示例上传文件
-example_uploads/notes/
+examples/notes/
# 日志
workflow.log
@@ -49,7 +51,7 @@ dataset/
# 环境变量
.env
-backend/.env
+apps/backend/.env
*.pem
PR.md
TODO.md
diff --git a/AGENTS.md b/AGENTS.md
index eb110cb5..01da40a9 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,31 +1,31 @@
# AGENTS
-本文件用于说明项目规则目录 `rules/` 的结构,方便在开始开发或修改代码前快速定位需要查看的规范。
+本文件用于说明项目规则目录 `docs/rules/` 的结构,方便在开始开发或修改代码前快速定位需要查看的规范。
## 规则目录
-### `rules/development`
+### `docs/rules/development`
-- `development/架构规则.md`:项目架构、核心入口和本地文档使用原则。
-- `development/前端规则.md`:Vue、API 调用、主题、组件和设计规则。
-- `development/后端规则.md`:模块副作用、数据库、线程安全、Agent、OCR 和文件路径规则。
-- `development/测试规则.md`:测试组织、断言原则和外部依赖保护。
-- `development/代码注释规则.md`:注释意图、前端注释位置和推荐写法。
+- `docs/rules/development/架构规则.md`:项目架构、核心入口和本地文档使用原则。
+- `docs/rules/development/前端规则.md`:Vue、API 调用、主题、组件和设计规则。
+- `docs/rules/development/后端规则.md`:模块副作用、数据库、线程安全、Agent、OCR 和文件路径规则。
+- `docs/rules/development/测试规则.md`:测试组织、断言原则和外部依赖保护。
+- `docs/rules/development/代码注释规则.md`:注释意图、前端注释位置和推荐写法。
-### `rules/workflow`
+### `docs/rules/workflow`
-- `workflow/提交规则.md`:commit message 格式和强制 checklist 要求。
-- `workflow/常用命令索引.md`:本地命令类规则入口。
-- `workflow/环境配置规则.md`:依赖安装、环境变量和 Provider 配置。
-- `workflow/开发启动规则.md`:前后端开发服务、conda 环境和端口检查。
-- `workflow/测试构建规则.md`:后端测试、前端测试和生产构建。
-- `workflow/变更同步规则.md`:跨后端、前端、文档、配置和测试的同步要求。
-- `workflow/协作提交流程规则.md`:fork、个人分支、PR 和 review 流程要求。
+- `docs/rules/workflow/提交规则.md`:commit message 格式和强制 checklist 要求。
+- `docs/rules/workflow/常用命令索引.md`:本地命令类规则入口。
+- `docs/rules/workflow/环境配置规则.md`:依赖安装、环境变量和 Provider 配置。
+- `docs/rules/workflow/开发启动规则.md`:前后端开发服务、conda 环境和端口检查。
+- `docs/rules/workflow/测试构建规则.md`:后端测试、前端测试和生产构建。
+- `docs/rules/workflow/变更同步规则.md`:跨后端、前端、文档、配置和测试的同步要求。
+- `docs/rules/workflow/协作提交流程规则.md`:fork、个人分支、PR 和 review 流程要求。
## 使用建议
- 开始任务前,先查看本文件。
-- 涉及前端改动时,优先查看 `development/前端规则.md`。
-- 涉及后端改动时,优先查看 `development/后端规则.md`。
-- 涉及测试、构建、提交流程时,查看 `development/测试规则.md` 和 `workflow/` 下对应文件。
+- 涉及前端改动时,优先查看 `docs/rules/development/前端规则.md`。
+- 涉及后端改动时,优先查看 `docs/rules/development/后端规则.md`。
+- 涉及测试、构建、提交流程时,查看 `docs/rules/development/测试规则.md` 和 `docs/rules/workflow/` 下对应文件。
- 修改规则时,优先更新对应规则文件,而不是只改本文件。
diff --git a/Dockerfile b/Dockerfile
index 4d245877..522a145d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,7 +3,7 @@ FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
- PYTHONPATH=/app/backend
+ PYTHONPATH=/app/apps/backend
WORKDIR /app
@@ -28,7 +28,7 @@ RUN sed \
--index-url "${TORCH_INDEX_URL}" \
&& rm -f /tmp/requirements-runtime.txt
-COPY backend ./backend
+COPY apps/backend ./apps/backend
RUN groupadd --gid 10001 app \
&& useradd --uid 10001 --gid app --no-create-home --shell /usr/sbin/nologin app \
@@ -36,7 +36,7 @@ RUN groupadd --gid 10001 app \
&& chown -R app:app /app
USER app
-WORKDIR /app/backend
+WORKDIR /app/apps/backend
EXPOSE 8000
diff --git a/README.md b/README.md
index 32547780..b0584331 100644
--- a/README.md
+++ b/README.md
@@ -6,17 +6,17 @@
| 首页 | 错题工作台 |
|------|------------|
-|  |  |
+|  |  |
| 笔记整理 | 主题切换 |
|----------|----------|
-|  |  |
+|  |  |
## 功能演示
| AI 找题 | Provider 配置 |
|---------|---------------|
-|  |  |
+|  |  |
## 功能
@@ -36,38 +36,30 @@
## 项目结构
```
-├── backend/ # Flask 后端(纯 API 服务)
-│ ├── core/ # 核心模块
-│ │ ├── config.py # 集中配置(路径、Settings)
-│ │ ├── llm.py # LLM 初始化(多 provider 支持)
-│ │ ├── state.py # 全局会话状态(session_files、锁)
-│ │ └── mail.py # SMTP 邮件发送
-│ ├── web_app.py # Flask 应用工厂 + Blueprint 注册
-│ ├── routes/ # Flask Blueprint 路由(auth、chat、device、notes、projects 等)
-│ ├── src/ # 核心模块(LangGraph workflow、OCR 客户端、工具函数)
-│ ├── agents/ # LangChain Agent
-│ │ ├── error_correction/ # 题目分割 + OCR 纠错
-│ │ ├── solve/ # 解题 Agent
-│ │ ├── teach/ # 教学讲解 Agent
-│ │ └── note/ # 笔记整理 Agent
-│ ├── db/ # SQLite + SQLAlchemy ORM
-│ │ ├── models.py # 数据模型(User、Question、Note、Chat 等)
-│ │ ├── crud/ # CRUD 模块化包
-│ │ └── migrate.py # 数据库自动迁移
-│ └── tests/ # 后端测试
-├── frontend/ # Vue 3 + Vite + Tailwind CSS
-│ ├── app.html # SPA 入口
-│ └── src/
-│ ├── views/ # 页面级组件(HomeView、WorkspaceView)
-│ ├── components/ # 基础组件与业务组件
-│ ├── composables/ # 组合式函数(useAuth、useTheme 等)
-│ ├── router/ # Vue Router 路由配置
-│ ├── api/ # 按领域拆分的 API 调用层
-│ ├── utils/ # 工具函数(Markdown 渲染、MathJax、DOMPurify)
-│ └── __tests__/ # 前端测试(Vitest)
-├── example_uploads/ # 示例测试文件
-├── rules/ # 项目规则、协作流程和开发规范
-├── backend/.env.example # 环境变量模板
+├── apps/
+│ ├── backend/ # Flask 后端(纯 API 服务)
+│ │ ├── .env.example # 环境变量模板
+│ │ ├── core/ # 核心模块
+│ │ │ ├── config.py # 集中配置(路径、Settings)
+│ │ │ ├── llm.py # LLM 初始化(多 provider 支持)
+│ │ │ ├── state.py # 全局会话状态(session_files、锁)
+│ │ │ └── mail.py # SMTP 邮件发送
+│ │ ├── web_app.py # Flask 应用工厂 + Blueprint 注册
+│ │ ├── routes/ # Flask Blueprint 路由
+│ │ ├── pipeline/ # LangGraph workflow、OCR 客户端、工具函数
+│ │ ├── agents/ # LangChain Agent
+│ │ ├── db/ # SQLite + SQLAlchemy ORM
+│ │ └── tests/ # 后端测试
+│ ├── frontend/ # Vue 3 + Vite + Tailwind CSS
+│ │ ├── app.html # SPA 入口
+│ │ └── src/ # 页面、组件、API、工具与 Vitest 测试
+│ ├── ui-showcase/ # Base 组件独立展示站
+│ └── mobile/ # Flutter 移动端(Android/iOS 为主要验证平台)
+├── docs/
+│ ├── assets/ # README 图片和演示资源
+│ ├── deploy/ # 部署与 CI/CD 文档
+│ └── rules/ # 项目规则、协作流程和开发规范
+├── examples/ # 示例测试文件
└── requirements.txt # Python 依赖
```
@@ -75,28 +67,28 @@
### 1. 安装依赖
-需要 Python 3.11+、Node.js 18+。
+需要 Python 3.11+、Node.js 18+。移动端开发还需要 Flutter 3.44.x stable 和 Dart 3.12.x。
```bash
# 后端依赖
pip install -r requirements.txt
# 前端依赖
-cd frontend && npm install
+cd apps/frontend && npm install
```
### 2. 配置环境变量
```bash
# 复制模板到项目根目录
-cp backend/.env.example .env
+cp apps/backend/.env.example .env
```
编辑 `.env`,必须配置 `SECRET_KEY`。
LLM API Provider(OpenAI / Anthropic / PaddleOCR)配置已迁移到数据库,启动后在系统设置页面管理。
-SMTP 邮件配置(注册验证码、找回密码)通过 `.env` 的 `APP_SMTP_*` 变量管理,详见 `backend/.env.example`。
+SMTP 邮件配置(注册验证码、找回密码)通过 `.env` 的 `APP_SMTP_*` 变量管理,详见 `apps/backend/.env.example`。
### 3. 启动
@@ -104,10 +96,10 @@ SMTP 邮件配置(注册验证码、找回密码)通过 `.env` 的 `APP_SMTP
```bash
# 终端 1:启动后端
-cd backend && python web_app.py
+cd apps/backend && python web_app.py
# 终端 2:启动前端开发服务器
-cd frontend && npm run dev
+cd apps/frontend && npm run dev
```
前端开发服务器会自动将 `/api`、`/images`、`/download`、`/erased`、`/uploads` 请求代理到后端 `localhost:5001`。
@@ -116,11 +108,12 @@ cd frontend && npm run dev
> **注意**:后端已重构为纯 API 服务器,不提供前端页面。直接访问 `:5001` 只会得到 JSON 404。
-更完整的启动说明见 [rules/workflow/开发启动规则.md](rules/workflow/开发启动规则.md),测试与构建说明见 [rules/workflow/测试构建规则.md](rules/workflow/测试构建规则.md)。
+更完整的启动说明见 [docs/rules/workflow/开发启动规则.md](docs/rules/workflow/开发启动规则.md),测试与构建说明见 [docs/rules/workflow/测试构建规则.md](docs/rules/workflow/测试构建规则.md)。
+移动端启动、BLE 权限和构建说明见 [apps/mobile/README.md](apps/mobile/README.md)。
生产环境采用单仓库 Tag 发布:后端由 Docker Compose 运行,前端发布到 1Panel
-静态网站目录。配置步骤见 [deploy/cicd.md](deploy/cicd.md) 和
-[deploy/1panel.md](deploy/1panel.md)。
+静态网站目录。配置步骤见 [docs/deploy/cicd.md](docs/deploy/cicd.md) 和
+[docs/deploy/1panel.md](docs/deploy/1panel.md)。
## 支持的文件格式
@@ -130,20 +123,20 @@ PDF(`.pdf`)、图片(`.jpg` `.jpeg` `.png` `.bmp` `.tiff` `.webp`),单次上
```bash
# 后端测试
-cd backend && python -m pytest tests/ -v
+python -m pytest apps/backend/tests -v
# 前端测试
-cd frontend && npm test
+cd apps/frontend && npm test
```
-详见 [backend/tests/README.md](backend/tests/README.md) 和 [frontend/src/__tests__/README.md](frontend/src/__tests__/README.md)。
+详见 [apps/backend/tests/README.md](apps/backend/tests/README.md) 和 [apps/frontend/src/__tests__/README.md](apps/frontend/src/__tests__/README.md)。
## 项目规则
项目规则集中维护在 [AGENTS.md](AGENTS.md)。
-- `rules/development/`:架构、前端、后端、测试和代码注释规则
-- `rules/workflow/`:提交、协作、同步、启动、环境和测试构建规则
+- `docs/rules/development/`:架构、前端、后端、测试和代码注释规则
+- `docs/rules/workflow/`:提交、协作、同步、启动、环境和测试构建规则
团队协作采用 fork-based workflow:开发者先 fork 主仓库,将分支推送到自己的 fork 仓库,再通过 Pull Request 提交到主仓库 review。
diff --git a/backend/.env.example b/apps/backend/.env.example
similarity index 96%
rename from backend/.env.example
rename to apps/backend/.env.example
index ed009c3f..b5e8ede4 100644
--- a/backend/.env.example
+++ b/apps/backend/.env.example
@@ -16,14 +16,14 @@ LANGSMITH_TRACING=false
# ============================================================================
# 输出目录配置(可选)
# ============================================================================
-# 目录配置由 config.py 集中管理(默认:backend/runtime_data/)
+# 目录配置由 config.py 集中管理(默认:apps/backend/runtime_data/)
# 如需覆盖运行时输出的根目录,请设置 APP_RUNTIME_DIR(绝对路径)
# APP_RUNTIME_DIR=
# ============================================================================
# 文字擦除模型权重(可选)
# ============================================================================
-# 默认路径:backend/text_eraser_model/weight/best.pth
+# 默认路径:apps/backend/text_eraser_model/weight/best.pth
# 如需指定其他位置,取消注释并填写绝对路径
# APP_MODEL_PATH=/path/to/your/best.pth
# CPU 推理线程数与滑窗批量;2 核 4 GB 服务器建议保持为 2
diff --git a/backend/agents/__init__.py b/apps/backend/agents/__init__.py
similarity index 100%
rename from backend/agents/__init__.py
rename to apps/backend/agents/__init__.py
diff --git a/backend/agents/error_correction/__init__.py b/apps/backend/agents/error_correction/__init__.py
similarity index 100%
rename from backend/agents/error_correction/__init__.py
rename to apps/backend/agents/error_correction/__init__.py
diff --git a/backend/agents/error_correction/agent.py b/apps/backend/agents/error_correction/agent.py
similarity index 100%
rename from backend/agents/error_correction/agent.py
rename to apps/backend/agents/error_correction/agent.py
diff --git a/backend/agents/error_correction/prompts.py b/apps/backend/agents/error_correction/prompts.py
similarity index 100%
rename from backend/agents/error_correction/prompts.py
rename to apps/backend/agents/error_correction/prompts.py
diff --git a/backend/agents/error_correction/schemas.py b/apps/backend/agents/error_correction/schemas.py
similarity index 100%
rename from backend/agents/error_correction/schemas.py
rename to apps/backend/agents/error_correction/schemas.py
diff --git a/backend/agents/error_correction/tools/__init__.py b/apps/backend/agents/error_correction/tools/__init__.py
similarity index 100%
rename from backend/agents/error_correction/tools/__init__.py
rename to apps/backend/agents/error_correction/tools/__init__.py
diff --git a/backend/agents/error_correction/tools/file_tools.py b/apps/backend/agents/error_correction/tools/file_tools.py
similarity index 100%
rename from backend/agents/error_correction/tools/file_tools.py
rename to apps/backend/agents/error_correction/tools/file_tools.py
diff --git a/backend/agents/error_correction/tools/question_tools.py b/apps/backend/agents/error_correction/tools/question_tools.py
similarity index 100%
rename from backend/agents/error_correction/tools/question_tools.py
rename to apps/backend/agents/error_correction/tools/question_tools.py
diff --git a/backend/agents/note/__init__.py b/apps/backend/agents/note/__init__.py
similarity index 100%
rename from backend/agents/note/__init__.py
rename to apps/backend/agents/note/__init__.py
diff --git a/backend/agents/note/agent.py b/apps/backend/agents/note/agent.py
similarity index 100%
rename from backend/agents/note/agent.py
rename to apps/backend/agents/note/agent.py
diff --git a/backend/agents/note/prompts.py b/apps/backend/agents/note/prompts.py
similarity index 100%
rename from backend/agents/note/prompts.py
rename to apps/backend/agents/note/prompts.py
diff --git a/backend/agents/note/schemas.py b/apps/backend/agents/note/schemas.py
similarity index 100%
rename from backend/agents/note/schemas.py
rename to apps/backend/agents/note/schemas.py
diff --git a/backend/agents/solve/__init__.py b/apps/backend/agents/solve/__init__.py
similarity index 100%
rename from backend/agents/solve/__init__.py
rename to apps/backend/agents/solve/__init__.py
diff --git a/backend/agents/solve/agent.py b/apps/backend/agents/solve/agent.py
similarity index 100%
rename from backend/agents/solve/agent.py
rename to apps/backend/agents/solve/agent.py
diff --git a/backend/agents/solve/prompts.py b/apps/backend/agents/solve/prompts.py
similarity index 100%
rename from backend/agents/solve/prompts.py
rename to apps/backend/agents/solve/prompts.py
diff --git a/backend/agents/solve/schemas.py b/apps/backend/agents/solve/schemas.py
similarity index 100%
rename from backend/agents/solve/schemas.py
rename to apps/backend/agents/solve/schemas.py
diff --git a/backend/agents/teach/__init__.py b/apps/backend/agents/teach/__init__.py
similarity index 100%
rename from backend/agents/teach/__init__.py
rename to apps/backend/agents/teach/__init__.py
diff --git a/backend/agents/teach/agent.py b/apps/backend/agents/teach/agent.py
similarity index 100%
rename from backend/agents/teach/agent.py
rename to apps/backend/agents/teach/agent.py
diff --git a/backend/agents/teach/prompts.py b/apps/backend/agents/teach/prompts.py
similarity index 100%
rename from backend/agents/teach/prompts.py
rename to apps/backend/agents/teach/prompts.py
diff --git a/backend/core/__init__.py b/apps/backend/core/__init__.py
similarity index 100%
rename from backend/core/__init__.py
rename to apps/backend/core/__init__.py
diff --git a/backend/core/config.py b/apps/backend/core/config.py
similarity index 99%
rename from backend/core/config.py
rename to apps/backend/core/config.py
index 266adc7d..42154acf 100644
--- a/backend/core/config.py
+++ b/apps/backend/core/config.py
@@ -19,8 +19,8 @@
)
)
-_BACKEND_ROOT = Path(__file__).resolve().parent.parent # backend/core/ → backend/
-_PROJECT_ROOT = _BACKEND_ROOT.parent
+_BACKEND_ROOT = Path(__file__).resolve().parent.parent # apps/backend/core/ → apps/backend/
+_PROJECT_ROOT = _BACKEND_ROOT.parent.parent
_ENV_FILE = _PROJECT_ROOT / ".env"
diff --git a/backend/core/llm.py b/apps/backend/core/llm.py
similarity index 100%
rename from backend/core/llm.py
rename to apps/backend/core/llm.py
diff --git a/backend/core/mail.py b/apps/backend/core/mail.py
similarity index 100%
rename from backend/core/mail.py
rename to apps/backend/core/mail.py
diff --git a/backend/core/model_selection.py b/apps/backend/core/model_selection.py
similarity index 100%
rename from backend/core/model_selection.py
rename to apps/backend/core/model_selection.py
diff --git a/backend/core/quota.py b/apps/backend/core/quota.py
similarity index 100%
rename from backend/core/quota.py
rename to apps/backend/core/quota.py
diff --git a/backend/core/reasoning.py b/apps/backend/core/reasoning.py
similarity index 100%
rename from backend/core/reasoning.py
rename to apps/backend/core/reasoning.py
diff --git a/backend/core/state.py b/apps/backend/core/state.py
similarity index 100%
rename from backend/core/state.py
rename to apps/backend/core/state.py
diff --git a/backend/core/workflow_run_store.py b/apps/backend/core/workflow_run_store.py
similarity index 100%
rename from backend/core/workflow_run_store.py
rename to apps/backend/core/workflow_run_store.py
diff --git a/backend/db/__init__.py b/apps/backend/db/__init__.py
similarity index 100%
rename from backend/db/__init__.py
rename to apps/backend/db/__init__.py
diff --git a/backend/db/crud/__init__.py b/apps/backend/db/crud/__init__.py
similarity index 100%
rename from backend/db/crud/__init__.py
rename to apps/backend/db/crud/__init__.py
diff --git a/backend/db/crud/chat.py b/apps/backend/db/crud/chat.py
similarity index 100%
rename from backend/db/crud/chat.py
rename to apps/backend/db/crud/chat.py
diff --git a/backend/db/crud/devices.py b/apps/backend/db/crud/devices.py
similarity index 100%
rename from backend/db/crud/devices.py
rename to apps/backend/db/crud/devices.py
diff --git a/backend/db/crud/email_verification.py b/apps/backend/db/crud/email_verification.py
similarity index 100%
rename from backend/db/crud/email_verification.py
rename to apps/backend/db/crud/email_verification.py
diff --git a/backend/db/crud/notes.py b/apps/backend/db/crud/notes.py
similarity index 100%
rename from backend/db/crud/notes.py
rename to apps/backend/db/crud/notes.py
diff --git a/backend/db/crud/projects.py b/apps/backend/db/crud/projects.py
similarity index 100%
rename from backend/db/crud/projects.py
rename to apps/backend/db/crud/projects.py
diff --git a/backend/db/crud/providers.py b/apps/backend/db/crud/providers.py
similarity index 100%
rename from backend/db/crud/providers.py
rename to apps/backend/db/crud/providers.py
diff --git a/backend/db/crud/questions.py b/apps/backend/db/crud/questions.py
similarity index 100%
rename from backend/db/crud/questions.py
rename to apps/backend/db/crud/questions.py
diff --git a/backend/db/crud/review.py b/apps/backend/db/crud/review.py
similarity index 100%
rename from backend/db/crud/review.py
rename to apps/backend/db/crud/review.py
diff --git a/backend/db/crud/split_records.py b/apps/backend/db/crud/split_records.py
similarity index 100%
rename from backend/db/crud/split_records.py
rename to apps/backend/db/crud/split_records.py
diff --git a/backend/db/crud/stats.py b/apps/backend/db/crud/stats.py
similarity index 100%
rename from backend/db/crud/stats.py
rename to apps/backend/db/crud/stats.py
diff --git a/backend/db/crud/tags.py b/apps/backend/db/crud/tags.py
similarity index 100%
rename from backend/db/crud/tags.py
rename to apps/backend/db/crud/tags.py
diff --git a/backend/db/crud/users.py b/apps/backend/db/crud/users.py
similarity index 100%
rename from backend/db/crud/users.py
rename to apps/backend/db/crud/users.py
diff --git a/backend/db/crud/workflow_runs.py b/apps/backend/db/crud/workflow_runs.py
similarity index 100%
rename from backend/db/crud/workflow_runs.py
rename to apps/backend/db/crud/workflow_runs.py
diff --git a/backend/db/migrate.py b/apps/backend/db/migrate.py
similarity index 100%
rename from backend/db/migrate.py
rename to apps/backend/db/migrate.py
diff --git a/backend/db/models.py b/apps/backend/db/models.py
similarity index 100%
rename from backend/db/models.py
rename to apps/backend/db/models.py
diff --git a/backend/gunicorn.conf.py b/apps/backend/gunicorn.conf.py
similarity index 100%
rename from backend/gunicorn.conf.py
rename to apps/backend/gunicorn.conf.py
diff --git a/backend/package-lock.json b/apps/backend/package-lock.json
similarity index 100%
rename from backend/package-lock.json
rename to apps/backend/package-lock.json
diff --git a/backend/pipeline/paddleocr_client.py b/apps/backend/pipeline/paddleocr_client.py
similarity index 100%
rename from backend/pipeline/paddleocr_client.py
rename to apps/backend/pipeline/paddleocr_client.py
diff --git a/backend/pipeline/utils.py b/apps/backend/pipeline/utils.py
similarity index 99%
rename from backend/pipeline/utils.py
rename to apps/backend/pipeline/utils.py
index c4267fc7..018df3d4 100644
--- a/backend/pipeline/utils.py
+++ b/apps/backend/pipeline/utils.py
@@ -15,7 +15,7 @@
from core.config import settings
-load_dotenv(os.path.join(os.path.dirname(__file__), "..", ".env"))
+load_dotenv(str(settings.project_root / ".env"))
console = Console()
diff --git a/backend/pipeline/workflow.py b/apps/backend/pipeline/workflow.py
similarity index 100%
rename from backend/pipeline/workflow.py
rename to apps/backend/pipeline/workflow.py
diff --git a/backend/postgresql_schema.sql b/apps/backend/postgresql_schema.sql
similarity index 99%
rename from backend/postgresql_schema.sql
rename to apps/backend/postgresql_schema.sql
index 63dc3731..8825e85c 100644
--- a/backend/postgresql_schema.sql
+++ b/apps/backend/postgresql_schema.sql
@@ -1,4 +1,4 @@
--- PostgreSQL schema for backend/db/models.py
+-- PostgreSQL schema for apps/backend/db/models.py
-- Run with: psql "$DATABASE_URL" -f postgresql_schema.sql
BEGIN;
diff --git a/backend/routes/__init__.py b/apps/backend/routes/__init__.py
similarity index 100%
rename from backend/routes/__init__.py
rename to apps/backend/routes/__init__.py
diff --git a/backend/routes/auth.py b/apps/backend/routes/auth.py
similarity index 100%
rename from backend/routes/auth.py
rename to apps/backend/routes/auth.py
diff --git a/backend/routes/chat.py b/apps/backend/routes/chat.py
similarity index 100%
rename from backend/routes/chat.py
rename to apps/backend/routes/chat.py
diff --git a/backend/routes/device.py b/apps/backend/routes/device.py
similarity index 100%
rename from backend/routes/device.py
rename to apps/backend/routes/device.py
diff --git a/backend/routes/notes.py b/apps/backend/routes/notes.py
similarity index 100%
rename from backend/routes/notes.py
rename to apps/backend/routes/notes.py
diff --git a/backend/routes/projects.py b/apps/backend/routes/projects.py
similarity index 100%
rename from backend/routes/projects.py
rename to apps/backend/routes/projects.py
diff --git a/backend/routes/questions.py b/apps/backend/routes/questions.py
similarity index 100%
rename from backend/routes/questions.py
rename to apps/backend/routes/questions.py
diff --git a/backend/routes/settings.py b/apps/backend/routes/settings.py
similarity index 100%
rename from backend/routes/settings.py
rename to apps/backend/routes/settings.py
diff --git a/backend/routes/stats.py b/apps/backend/routes/stats.py
similarity index 100%
rename from backend/routes/stats.py
rename to apps/backend/routes/stats.py
diff --git a/backend/routes/upload.py b/apps/backend/routes/upload.py
similarity index 100%
rename from backend/routes/upload.py
rename to apps/backend/routes/upload.py
diff --git a/backend/tests/README.md b/apps/backend/tests/README.md
similarity index 89%
rename from backend/tests/README.md
rename to apps/backend/tests/README.md
index cceb3e77..4a2444fe 100644
--- a/backend/tests/README.md
+++ b/apps/backend/tests/README.md
@@ -11,8 +11,8 @@ C:\ProgramData\miniconda3\envs\da\python.exe
如果默认临时目录权限异常,可以把 pytest 临时目录放到项目内:
```bash
-C:\ProgramData\miniconda3\envs\da\python.exe -m pytest backend\tests\test_web_routes.py::TestMultiUserWorkflowRunIsolation -q --basetemp=backend\runtime_data\pytest_tmp_route -p no:cacheprovider
-C:\ProgramData\miniconda3\envs\da\python.exe -m pytest backend\tests\test_crud.py::TestWorkflowRuns -q --basetemp=backend\runtime_data\pytest_tmp_crud -p no:cacheprovider
+C:\ProgramData\miniconda3\envs\da\python.exe -m pytest apps\backend\tests\test_web_routes.py::TestMultiUserWorkflowRunIsolation -q --basetemp=apps\backend\runtime_data\pytest_tmp_route -p no:cacheprovider
+C:\ProgramData\miniconda3\envs\da\python.exe -m pytest apps\backend\tests\test_crud.py::TestWorkflowRuns -q --basetemp=apps\backend\runtime_data\pytest_tmp_crud -p no:cacheprovider
```
新增的多用户相关测试:
@@ -24,8 +24,8 @@ C:\ProgramData\miniconda3\envs\da\python.exe -m pytest backend\tests\test_crud.p
## 运行测试
```bash
-# 在 backend/ 目录下执行
-cd backend
+# 在 apps/backend/ 目录下执行
+cd apps/backend
# 运行全部单元测试
python -m pytest tests/ -v
@@ -47,7 +47,7 @@ python -m pytest tests/ -v -k "dedup"
## 测试文件说明
```
-backend/tests/
+apps/backend/tests/
├── conftest.py # pytest 配置,公共 fixture(db / make_question)
├── fixtures/ # 测试数据
│ └── sample_ocr_data.json # OCR 测试数据(split_integration 使用)
@@ -70,7 +70,7 @@ backend/tests/
### test_utils.py
-测试 `backend/pipeline/utils.py` 中的通用工具函数:
+测试 `apps/backend/pipeline/utils.py` 中的通用工具函数:
| 测试类 | 被测函数 | 用例数 | 说明 |
|--------|----------|--------|------|
@@ -78,7 +78,7 @@ backend/tests/
### test_workflow_helpers.py
-测试 `backend/pipeline/workflow.py` 和 `backend/pipeline/utils.py` 中不依赖外部服务的纯函数:
+测试 `apps/backend/pipeline/workflow.py` 和 `apps/backend/pipeline/utils.py` 中不依赖外部服务的纯函数:
| 测试类 | 被测函数 | 用例数 | 说明 |
|--------|----------|--------|------|
@@ -93,7 +93,7 @@ backend/tests/
### test_export.py
-测试 `backend/pipeline/utils.py` 中的 `export_wrongbook` 函数:
+测试 `apps/backend/pipeline/utils.py` 中的 `export_wrongbook` 函数:
| 测试方法 | 说明 |
|----------|------|
@@ -110,7 +110,7 @@ backend/tests/
### test_web_helpers.py
-测试 `backend/web_app.py` 中不依赖 Flask 请求上下文的纯函数:
+测试 `apps/backend/web_app.py` 中不依赖 Flask 请求上下文的纯函数:
| 测试类 | 被测函数 | 用例数 | 说明 |
|--------|----------|--------|------|
@@ -120,7 +120,7 @@ backend/tests/
### test_crud.py
-测试 `backend/db/crud.py` 中所有 CRUD 函数,使用 **SQLite 内存数据库**(每个测试用例独立数据库):
+测试 `apps/backend/db/crud/` 中所有 CRUD 函数,使用 **SQLite 内存数据库**(每个测试用例独立数据库):
| 测试类 | 被测函数 | 用例数 | 说明 |
|--------|----------|--------|------|
@@ -137,7 +137,7 @@ backend/tests/
### test_schemas.py
-测试 `backend/error_correction_agent/schemas.py` 中 Pydantic 模型的校验逻辑:
+测试 `apps/backend/agents/error_correction/schemas.py` 中 Pydantic 模型的校验逻辑:
| 测试类 | 被测模型 | 用例数 | 说明 |
|--------|----------|--------|------|
@@ -149,7 +149,7 @@ backend/tests/
### test_question_tools.py
-测试 `backend/error_correction_agent/tools/question_tools.py` 中的文件 I/O 工具(使用 `tmp_path`):
+测试 `apps/backend/agents/error_correction/tools/question_tools.py` 中的文件 I/O 工具(使用 `tmp_path`):
| 测试类 | 被测函数 | 用例数 | 说明 |
|--------|----------|--------|------|
@@ -158,7 +158,7 @@ backend/tests/
### test_correct_node.py
-测试 `backend/pipeline/workflow.py` 中 `correct_questions_node` 的合并逻辑(mock 纠错工具):
+测试 `apps/backend/pipeline/workflow.py` 中 `correct_questions_node` 的合并逻辑(mock 纠错工具):
| 测试方法 | 说明 |
|----------|------|
@@ -169,7 +169,7 @@ backend/tests/
### test_solve_schemas.py
-测试 `backend/solve_agent/schemas.py` 中解题结果 Pydantic 模型:
+测试 `apps/backend/agents/solve/schemas.py` 中解题结果 Pydantic 模型:
| 测试类 | 被测模型 | 用例数 | 说明 |
|--------|----------|--------|------|
@@ -178,7 +178,7 @@ backend/tests/
### test_ocr_api.py
-**集成测试**:验证 PaddleOCR V2 异步任务 API 的连通性与结果格式兼容性。需要配置 `PADDLEOCR_API_URL`、`PADDLEOCR_API_TOKEN`。测试文件使用 `example_uploads/` 下的 `test.jpg`(图片)和 `test4.pdf`(PDF)。
+**集成测试**:验证 PaddleOCR V2 异步任务 API 的连通性与结果格式兼容性。需要配置 `PADDLEOCR_API_URL`、`PADDLEOCR_API_TOKEN`。测试文件使用 `examples/` 下的 `test.jpg`(图片)和 `test4.pdf`(PDF)。
```bash
pytest tests/test_ocr_api.py -v -s
diff --git a/backend/tests/__init__.py b/apps/backend/tests/__init__.py
similarity index 100%
rename from backend/tests/__init__.py
rename to apps/backend/tests/__init__.py
diff --git a/backend/tests/conftest.py b/apps/backend/tests/conftest.py
similarity index 90%
rename from backend/tests/conftest.py
rename to apps/backend/tests/conftest.py
index 4745b24f..797f4b3c 100644
--- a/backend/tests/conftest.py
+++ b/apps/backend/tests/conftest.py
@@ -1,5 +1,5 @@
"""
-pytest 配置 — 确保 backend/ 在 sys.path 中,以便 import config 等模块。
+pytest 配置 — 确保 apps/backend/ 在 sys.path 中,以便 import config 等模块。
"""
import sys
@@ -9,13 +9,13 @@
from sqlalchemy import create_engine, event
from sqlalchemy.orm import sessionmaker
-from db.models import Base
-
-# 将 backend/ 目录加入 sys.path
+# 将 apps/backend/ 目录加入 sys.path,保证从仓库根目录运行 pytest 时也能解析顶层包。
BACKEND_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
if BACKEND_DIR not in sys.path:
sys.path.insert(0, BACKEND_DIR)
+from db.models import Base
+
def pytest_addoption(parser):
parser.addoption(
diff --git a/backend/tests/fixtures/sample_ocr_data.json b/apps/backend/tests/fixtures/sample_ocr_data.json
similarity index 100%
rename from backend/tests/fixtures/sample_ocr_data.json
rename to apps/backend/tests/fixtures/sample_ocr_data.json
diff --git a/backend/tests/test_chat_crud.py b/apps/backend/tests/test_chat_crud.py
similarity index 100%
rename from backend/tests/test_chat_crud.py
rename to apps/backend/tests/test_chat_crud.py
diff --git a/backend/tests/test_chat_routes.py b/apps/backend/tests/test_chat_routes.py
similarity index 100%
rename from backend/tests/test_chat_routes.py
rename to apps/backend/tests/test_chat_routes.py
diff --git a/backend/tests/test_correct_node.py b/apps/backend/tests/test_correct_node.py
similarity index 100%
rename from backend/tests/test_correct_node.py
rename to apps/backend/tests/test_correct_node.py
diff --git a/backend/tests/test_crud.py b/apps/backend/tests/test_crud.py
similarity index 100%
rename from backend/tests/test_crud.py
rename to apps/backend/tests/test_crud.py
diff --git a/backend/tests/test_eraser_inference.py b/apps/backend/tests/test_eraser_inference.py
similarity index 100%
rename from backend/tests/test_eraser_inference.py
rename to apps/backend/tests/test_eraser_inference.py
diff --git a/backend/tests/test_export.py b/apps/backend/tests/test_export.py
similarity index 100%
rename from backend/tests/test_export.py
rename to apps/backend/tests/test_export.py
diff --git a/backend/tests/test_migrate_and_delete_question.py b/apps/backend/tests/test_migrate_and_delete_question.py
similarity index 100%
rename from backend/tests/test_migrate_and_delete_question.py
rename to apps/backend/tests/test_migrate_and_delete_question.py
diff --git a/backend/tests/test_note_agent.py b/apps/backend/tests/test_note_agent.py
similarity index 100%
rename from backend/tests/test_note_agent.py
rename to apps/backend/tests/test_note_agent.py
diff --git a/backend/tests/test_ocr_api.py b/apps/backend/tests/test_ocr_api.py
similarity index 98%
rename from backend/tests/test_ocr_api.py
rename to apps/backend/tests/test_ocr_api.py
index 2ee43c7a..b3d88ade 100644
--- a/backend/tests/test_ocr_api.py
+++ b/apps/backend/tests/test_ocr_api.py
@@ -5,7 +5,7 @@
pytest tests/test_ocr_api.py -v -s
需要配置环境变量:PADDLEOCR_API_URL、PADDLEOCR_API_TOKEN。
-测试图片使用 example_uploads/notes/test.jpg,测试 PDF 使用 example_uploads/exams/test4.pdf。
+测试图片使用 examples/notes/test.jpg,测试 PDF 使用 examples/exams/test4.pdf。
"""
import os
@@ -54,9 +54,10 @@ def _load_ocr_creds_from_db() -> dict:
TOKEN = os.getenv("PADDLEOCR_API_TOKEN") or _DB_CREDS.get("token", "")
MODEL = os.getenv("PADDLEOCR_MODEL") or _DB_CREDS.get("model", "PaddleOCR-VL-1.6")
-EXAMPLE_DIR = os.path.abspath(
- os.path.join(os.path.dirname(__file__), "..", "..", "example_uploads")
+PROJECT_ROOT = os.path.abspath(
+ os.path.join(os.path.dirname(__file__), "..", "..", "..")
)
+EXAMPLE_DIR = os.path.join(PROJECT_ROOT, "examples")
TEST_IMAGE = os.path.join(EXAMPLE_DIR, "notes", "test.jpg")
TEST_PDF = os.path.join(EXAMPLE_DIR, "exams", "test4.pdf")
diff --git a/backend/tests/test_project_crud.py b/apps/backend/tests/test_project_crud.py
similarity index 100%
rename from backend/tests/test_project_crud.py
rename to apps/backend/tests/test_project_crud.py
diff --git a/backend/tests/test_question_tools.py b/apps/backend/tests/test_question_tools.py
similarity index 100%
rename from backend/tests/test_question_tools.py
rename to apps/backend/tests/test_question_tools.py
diff --git a/backend/tests/test_schemas.py b/apps/backend/tests/test_schemas.py
similarity index 100%
rename from backend/tests/test_schemas.py
rename to apps/backend/tests/test_schemas.py
diff --git a/backend/tests/test_solve_integration.py b/apps/backend/tests/test_solve_integration.py
similarity index 100%
rename from backend/tests/test_solve_integration.py
rename to apps/backend/tests/test_solve_integration.py
diff --git a/backend/tests/test_solve_schemas.py b/apps/backend/tests/test_solve_schemas.py
similarity index 100%
rename from backend/tests/test_solve_schemas.py
rename to apps/backend/tests/test_solve_schemas.py
diff --git a/backend/tests/test_split_integration.py b/apps/backend/tests/test_split_integration.py
similarity index 100%
rename from backend/tests/test_split_integration.py
rename to apps/backend/tests/test_split_integration.py
diff --git a/backend/tests/test_structured_output_modes.py b/apps/backend/tests/test_structured_output_modes.py
similarity index 100%
rename from backend/tests/test_structured_output_modes.py
rename to apps/backend/tests/test_structured_output_modes.py
diff --git a/backend/tests/test_teach_agent.py b/apps/backend/tests/test_teach_agent.py
similarity index 100%
rename from backend/tests/test_teach_agent.py
rename to apps/backend/tests/test_teach_agent.py
diff --git a/backend/tests/test_utils.py b/apps/backend/tests/test_utils.py
similarity index 100%
rename from backend/tests/test_utils.py
rename to apps/backend/tests/test_utils.py
diff --git a/backend/tests/test_web_helpers.py b/apps/backend/tests/test_web_helpers.py
similarity index 100%
rename from backend/tests/test_web_helpers.py
rename to apps/backend/tests/test_web_helpers.py
diff --git a/backend/tests/test_web_routes.py b/apps/backend/tests/test_web_routes.py
similarity index 100%
rename from backend/tests/test_web_routes.py
rename to apps/backend/tests/test_web_routes.py
diff --git a/backend/tests/test_workflow_helpers.py b/apps/backend/tests/test_workflow_helpers.py
similarity index 100%
rename from backend/tests/test_workflow_helpers.py
rename to apps/backend/tests/test_workflow_helpers.py
diff --git a/backend/text_eraser_model/__init__.py b/apps/backend/text_eraser_model/__init__.py
similarity index 100%
rename from backend/text_eraser_model/__init__.py
rename to apps/backend/text_eraser_model/__init__.py
diff --git a/backend/text_eraser_model/blocks.py b/apps/backend/text_eraser_model/blocks.py
similarity index 100%
rename from backend/text_eraser_model/blocks.py
rename to apps/backend/text_eraser_model/blocks.py
diff --git a/backend/text_eraser_model/inference.py b/apps/backend/text_eraser_model/inference.py
similarity index 100%
rename from backend/text_eraser_model/inference.py
rename to apps/backend/text_eraser_model/inference.py
diff --git a/backend/text_eraser_model/model.py b/apps/backend/text_eraser_model/model.py
similarity index 100%
rename from backend/text_eraser_model/model.py
rename to apps/backend/text_eraser_model/model.py
diff --git a/backend/text_eraser_model/test_erase.py b/apps/backend/text_eraser_model/test_erase.py
similarity index 97%
rename from backend/text_eraser_model/test_erase.py
rename to apps/backend/text_eraser_model/test_erase.py
index f40bab34..c0cf5fb5 100644
--- a/backend/text_eraser_model/test_erase.py
+++ b/apps/backend/text_eraser_model/test_erase.py
@@ -1,11 +1,11 @@
"""
文字擦除推理测试脚本
-运行方式:cd backend/text_eraser_model && python test_erase.py <图片路径>
+运行方式:cd apps/backend/text_eraser_model && python test_erase.py <图片路径>
示例:python test_erase.py E:/code/python/error_correction/dataset/初中数学/图片/xxx.jpg
"""
import sys
import os
-# backend/text_eraser_model/ → backend/
+# apps/backend/text_eraser_model/ → apps/backend/
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch
diff --git a/backend/text_eraser_model/weight/best.pth b/apps/backend/text_eraser_model/weight/best.pth
similarity index 100%
rename from backend/text_eraser_model/weight/best.pth
rename to apps/backend/text_eraser_model/weight/best.pth
diff --git a/backend/web_app.py b/apps/backend/web_app.py
similarity index 97%
rename from backend/web_app.py
rename to apps/backend/web_app.py
index 23f6194e..e007bcef 100644
--- a/backend/web_app.py
+++ b/apps/backend/web_app.py
@@ -15,9 +15,10 @@
import sys
import logging
-# 无论从项目根目录执行 `python backend/web_app.py` 还是在 `backend` 下执行 `python web_app.py`,
+# 无论从项目根目录执行 `python apps/backend/web_app.py` 还是在 `apps/backend` 下执行 `python web_app.py`,
# 都把 backend 目录加入 sys.path,保证 `core`、`routes`、`db` 等包解析一致。
_BACKEND_ROOT = os.path.dirname(os.path.abspath(__file__))
+_PROJECT_ROOT = os.path.dirname(os.path.dirname(_BACKEND_ROOT))
if _BACKEND_ROOT not in sys.path:
sys.path.insert(0, _BACKEND_ROOT)
@@ -31,8 +32,8 @@
from db import crud
from routes import register_routes
-# 加载 backend/.env(无论从哪个目录启动都指向同一文件)
-load_dotenv(os.path.join(_BACKEND_ROOT, ".env"))
+# 加载项目根目录 .env(无论从哪个目录启动都指向同一文件)
+load_dotenv(os.path.join(_PROJECT_ROOT, ".env"))
# 模块级日志记录器,日志名称为 'web_app'
logger = logging.getLogger(__name__)
diff --git a/backend/wsgi.py b/apps/backend/wsgi.py
similarity index 100%
rename from backend/wsgi.py
rename to apps/backend/wsgi.py
diff --git a/frontend/.gitignore b/apps/frontend/.gitignore
similarity index 100%
rename from frontend/.gitignore
rename to apps/frontend/.gitignore
diff --git a/frontend/.vscode/extensions.json b/apps/frontend/.vscode/extensions.json
similarity index 100%
rename from frontend/.vscode/extensions.json
rename to apps/frontend/.vscode/extensions.json
diff --git a/frontend/app.html b/apps/frontend/app.html
similarity index 100%
rename from frontend/app.html
rename to apps/frontend/app.html
diff --git a/frontend/package-lock.json b/apps/frontend/package-lock.json
similarity index 100%
rename from frontend/package-lock.json
rename to apps/frontend/package-lock.json
diff --git a/frontend/package.json b/apps/frontend/package.json
similarity index 100%
rename from frontend/package.json
rename to apps/frontend/package.json
diff --git a/frontend/public/favicon.svg b/apps/frontend/public/favicon.svg
similarity index 100%
rename from frontend/public/favicon.svg
rename to apps/frontend/public/favicon.svg
diff --git a/frontend/public/logo.svg b/apps/frontend/public/logo.svg
similarity index 100%
rename from frontend/public/logo.svg
rename to apps/frontend/public/logo.svg
diff --git a/frontend/src/App.vue b/apps/frontend/src/App.vue
similarity index 100%
rename from frontend/src/App.vue
rename to apps/frontend/src/App.vue
diff --git a/frontend/src/__tests__/README.md b/apps/frontend/src/__tests__/README.md
similarity index 100%
rename from frontend/src/__tests__/README.md
rename to apps/frontend/src/__tests__/README.md
diff --git a/frontend/src/__tests__/api.test.ts b/apps/frontend/src/__tests__/api.test.ts
similarity index 100%
rename from frontend/src/__tests__/api.test.ts
rename to apps/frontend/src/__tests__/api.test.ts
diff --git a/frontend/src/__tests__/chat-page-model-selector.test.ts b/apps/frontend/src/__tests__/chat-page-model-selector.test.ts
similarity index 100%
rename from frontend/src/__tests__/chat-page-model-selector.test.ts
rename to apps/frontend/src/__tests__/chat-page-model-selector.test.ts
diff --git a/frontend/src/__tests__/state.test.ts b/apps/frontend/src/__tests__/state.test.ts
similarity index 100%
rename from frontend/src/__tests__/state.test.ts
rename to apps/frontend/src/__tests__/state.test.ts
diff --git a/frontend/src/__tests__/utils.test.ts b/apps/frontend/src/__tests__/utils.test.ts
similarity index 100%
rename from frontend/src/__tests__/utils.test.ts
rename to apps/frontend/src/__tests__/utils.test.ts
diff --git a/frontend/src/api/auth.ts b/apps/frontend/src/api/auth.ts
similarity index 100%
rename from frontend/src/api/auth.ts
rename to apps/frontend/src/api/auth.ts
diff --git a/frontend/src/api/chat.ts b/apps/frontend/src/api/chat.ts
similarity index 100%
rename from frontend/src/api/chat.ts
rename to apps/frontend/src/api/chat.ts
diff --git a/frontend/src/api/client.ts b/apps/frontend/src/api/client.ts
similarity index 100%
rename from frontend/src/api/client.ts
rename to apps/frontend/src/api/client.ts
diff --git a/frontend/src/api/config.ts b/apps/frontend/src/api/config.ts
similarity index 100%
rename from frontend/src/api/config.ts
rename to apps/frontend/src/api/config.ts
diff --git a/frontend/src/api/index.ts b/apps/frontend/src/api/index.ts
similarity index 100%
rename from frontend/src/api/index.ts
rename to apps/frontend/src/api/index.ts
diff --git a/frontend/src/api/notes.ts b/apps/frontend/src/api/notes.ts
similarity index 100%
rename from frontend/src/api/notes.ts
rename to apps/frontend/src/api/notes.ts
diff --git a/frontend/src/api/projects.ts b/apps/frontend/src/api/projects.ts
similarity index 100%
rename from frontend/src/api/projects.ts
rename to apps/frontend/src/api/projects.ts
diff --git a/frontend/src/api/questions.ts b/apps/frontend/src/api/questions.ts
similarity index 100%
rename from frontend/src/api/questions.ts
rename to apps/frontend/src/api/questions.ts
diff --git a/frontend/src/api/splitRecords.ts b/apps/frontend/src/api/splitRecords.ts
similarity index 100%
rename from frontend/src/api/splitRecords.ts
rename to apps/frontend/src/api/splitRecords.ts
diff --git a/frontend/src/api/upload.ts b/apps/frontend/src/api/upload.ts
similarity index 100%
rename from frontend/src/api/upload.ts
rename to apps/frontend/src/api/upload.ts
diff --git a/frontend/src/assets/deepseek.svg b/apps/frontend/src/assets/deepseek.svg
similarity index 100%
rename from frontend/src/assets/deepseek.svg
rename to apps/frontend/src/assets/deepseek.svg
diff --git a/frontend/src/assets/ernie.svg b/apps/frontend/src/assets/ernie.svg
similarity index 100%
rename from frontend/src/assets/ernie.svg
rename to apps/frontend/src/assets/ernie.svg
diff --git a/frontend/src/assets/provider-anthropic.svg b/apps/frontend/src/assets/provider-anthropic.svg
similarity index 100%
rename from frontend/src/assets/provider-anthropic.svg
rename to apps/frontend/src/assets/provider-anthropic.svg
diff --git a/frontend/src/assets/provider-openai.svg b/apps/frontend/src/assets/provider-openai.svg
similarity index 100%
rename from frontend/src/assets/provider-openai.svg
rename to apps/frontend/src/assets/provider-openai.svg
diff --git a/frontend/src/assets/provider-paddleocr.svg b/apps/frontend/src/assets/provider-paddleocr.svg
similarity index 100%
rename from frontend/src/assets/provider-paddleocr.svg
rename to apps/frontend/src/assets/provider-paddleocr.svg
diff --git a/frontend/src/components/base/BaseAccordion.vue b/apps/frontend/src/components/base/BaseAccordion.vue
similarity index 100%
rename from frontend/src/components/base/BaseAccordion.vue
rename to apps/frontend/src/components/base/BaseAccordion.vue
diff --git a/frontend/src/components/base/BaseAffix.vue b/apps/frontend/src/components/base/BaseAffix.vue
similarity index 100%
rename from frontend/src/components/base/BaseAffix.vue
rename to apps/frontend/src/components/base/BaseAffix.vue
diff --git a/frontend/src/components/base/BaseAlert.vue b/apps/frontend/src/components/base/BaseAlert.vue
similarity index 100%
rename from frontend/src/components/base/BaseAlert.vue
rename to apps/frontend/src/components/base/BaseAlert.vue
diff --git a/frontend/src/components/base/BaseAnchor.vue b/apps/frontend/src/components/base/BaseAnchor.vue
similarity index 100%
rename from frontend/src/components/base/BaseAnchor.vue
rename to apps/frontend/src/components/base/BaseAnchor.vue
diff --git a/frontend/src/components/base/BaseAvatar.vue b/apps/frontend/src/components/base/BaseAvatar.vue
similarity index 100%
rename from frontend/src/components/base/BaseAvatar.vue
rename to apps/frontend/src/components/base/BaseAvatar.vue
diff --git a/frontend/src/components/base/BaseAvatarGroup.vue b/apps/frontend/src/components/base/BaseAvatarGroup.vue
similarity index 100%
rename from frontend/src/components/base/BaseAvatarGroup.vue
rename to apps/frontend/src/components/base/BaseAvatarGroup.vue
diff --git a/frontend/src/components/base/BaseBackTop.vue b/apps/frontend/src/components/base/BaseBackTop.vue
similarity index 100%
rename from frontend/src/components/base/BaseBackTop.vue
rename to apps/frontend/src/components/base/BaseBackTop.vue
diff --git a/frontend/src/components/base/BaseBadge.vue b/apps/frontend/src/components/base/BaseBadge.vue
similarity index 100%
rename from frontend/src/components/base/BaseBadge.vue
rename to apps/frontend/src/components/base/BaseBadge.vue
diff --git a/frontend/src/components/base/BaseBreadcrumb.vue b/apps/frontend/src/components/base/BaseBreadcrumb.vue
similarity index 100%
rename from frontend/src/components/base/BaseBreadcrumb.vue
rename to apps/frontend/src/components/base/BaseBreadcrumb.vue
diff --git a/frontend/src/components/base/BaseBreadcrumbItem.vue b/apps/frontend/src/components/base/BaseBreadcrumbItem.vue
similarity index 100%
rename from frontend/src/components/base/BaseBreadcrumbItem.vue
rename to apps/frontend/src/components/base/BaseBreadcrumbItem.vue
diff --git a/frontend/src/components/base/BaseButton.vue b/apps/frontend/src/components/base/BaseButton.vue
similarity index 100%
rename from frontend/src/components/base/BaseButton.vue
rename to apps/frontend/src/components/base/BaseButton.vue
diff --git a/frontend/src/components/base/BaseButtonGroup.vue b/apps/frontend/src/components/base/BaseButtonGroup.vue
similarity index 100%
rename from frontend/src/components/base/BaseButtonGroup.vue
rename to apps/frontend/src/components/base/BaseButtonGroup.vue
diff --git a/frontend/src/components/base/BaseCalendar.vue b/apps/frontend/src/components/base/BaseCalendar.vue
similarity index 100%
rename from frontend/src/components/base/BaseCalendar.vue
rename to apps/frontend/src/components/base/BaseCalendar.vue
diff --git a/frontend/src/components/base/BaseCard.vue b/apps/frontend/src/components/base/BaseCard.vue
similarity index 100%
rename from frontend/src/components/base/BaseCard.vue
rename to apps/frontend/src/components/base/BaseCard.vue
diff --git a/frontend/src/components/base/BaseCarousel.vue b/apps/frontend/src/components/base/BaseCarousel.vue
similarity index 100%
rename from frontend/src/components/base/BaseCarousel.vue
rename to apps/frontend/src/components/base/BaseCarousel.vue
diff --git a/frontend/src/components/base/BaseCascader.vue b/apps/frontend/src/components/base/BaseCascader.vue
similarity index 100%
rename from frontend/src/components/base/BaseCascader.vue
rename to apps/frontend/src/components/base/BaseCascader.vue
diff --git a/frontend/src/components/base/BaseCheckbox.vue b/apps/frontend/src/components/base/BaseCheckbox.vue
similarity index 100%
rename from frontend/src/components/base/BaseCheckbox.vue
rename to apps/frontend/src/components/base/BaseCheckbox.vue
diff --git a/frontend/src/components/base/BaseCheckboxGroup.vue b/apps/frontend/src/components/base/BaseCheckboxGroup.vue
similarity index 100%
rename from frontend/src/components/base/BaseCheckboxGroup.vue
rename to apps/frontend/src/components/base/BaseCheckboxGroup.vue
diff --git a/frontend/src/components/base/BaseCircleProgress.vue b/apps/frontend/src/components/base/BaseCircleProgress.vue
similarity index 100%
rename from frontend/src/components/base/BaseCircleProgress.vue
rename to apps/frontend/src/components/base/BaseCircleProgress.vue
diff --git a/frontend/src/components/base/BaseCodeBlock.vue b/apps/frontend/src/components/base/BaseCodeBlock.vue
similarity index 100%
rename from frontend/src/components/base/BaseCodeBlock.vue
rename to apps/frontend/src/components/base/BaseCodeBlock.vue
diff --git a/frontend/src/components/base/BaseColorPicker.vue b/apps/frontend/src/components/base/BaseColorPicker.vue
similarity index 100%
rename from frontend/src/components/base/BaseColorPicker.vue
rename to apps/frontend/src/components/base/BaseColorPicker.vue
diff --git a/frontend/src/components/base/BaseCombobox.vue b/apps/frontend/src/components/base/BaseCombobox.vue
similarity index 100%
rename from frontend/src/components/base/BaseCombobox.vue
rename to apps/frontend/src/components/base/BaseCombobox.vue
diff --git a/frontend/src/components/base/BaseCommandPalette.vue b/apps/frontend/src/components/base/BaseCommandPalette.vue
similarity index 100%
rename from frontend/src/components/base/BaseCommandPalette.vue
rename to apps/frontend/src/components/base/BaseCommandPalette.vue
diff --git a/frontend/src/components/base/BaseCopyButton.vue b/apps/frontend/src/components/base/BaseCopyButton.vue
similarity index 100%
rename from frontend/src/components/base/BaseCopyButton.vue
rename to apps/frontend/src/components/base/BaseCopyButton.vue
diff --git a/frontend/src/components/base/BaseCountdown.vue b/apps/frontend/src/components/base/BaseCountdown.vue
similarity index 100%
rename from frontend/src/components/base/BaseCountdown.vue
rename to apps/frontend/src/components/base/BaseCountdown.vue
diff --git a/frontend/src/components/base/BaseDataTable.vue b/apps/frontend/src/components/base/BaseDataTable.vue
similarity index 100%
rename from frontend/src/components/base/BaseDataTable.vue
rename to apps/frontend/src/components/base/BaseDataTable.vue
diff --git a/frontend/src/components/base/BaseDatePicker.vue b/apps/frontend/src/components/base/BaseDatePicker.vue
similarity index 100%
rename from frontend/src/components/base/BaseDatePicker.vue
rename to apps/frontend/src/components/base/BaseDatePicker.vue
diff --git a/frontend/src/components/base/BaseDateRangePicker.vue b/apps/frontend/src/components/base/BaseDateRangePicker.vue
similarity index 100%
rename from frontend/src/components/base/BaseDateRangePicker.vue
rename to apps/frontend/src/components/base/BaseDateRangePicker.vue
diff --git a/frontend/src/components/base/BaseDescriptions.vue b/apps/frontend/src/components/base/BaseDescriptions.vue
similarity index 100%
rename from frontend/src/components/base/BaseDescriptions.vue
rename to apps/frontend/src/components/base/BaseDescriptions.vue
diff --git a/frontend/src/components/base/BaseDivider.vue b/apps/frontend/src/components/base/BaseDivider.vue
similarity index 100%
rename from frontend/src/components/base/BaseDivider.vue
rename to apps/frontend/src/components/base/BaseDivider.vue
diff --git a/frontend/src/components/base/BaseDrawer.vue b/apps/frontend/src/components/base/BaseDrawer.vue
similarity index 100%
rename from frontend/src/components/base/BaseDrawer.vue
rename to apps/frontend/src/components/base/BaseDrawer.vue
diff --git a/frontend/src/components/base/BaseDropdown.vue b/apps/frontend/src/components/base/BaseDropdown.vue
similarity index 100%
rename from frontend/src/components/base/BaseDropdown.vue
rename to apps/frontend/src/components/base/BaseDropdown.vue
diff --git a/frontend/src/components/base/BaseEllipsis.vue b/apps/frontend/src/components/base/BaseEllipsis.vue
similarity index 100%
rename from frontend/src/components/base/BaseEllipsis.vue
rename to apps/frontend/src/components/base/BaseEllipsis.vue
diff --git a/frontend/src/components/base/BaseEmptyState.vue b/apps/frontend/src/components/base/BaseEmptyState.vue
similarity index 100%
rename from frontend/src/components/base/BaseEmptyState.vue
rename to apps/frontend/src/components/base/BaseEmptyState.vue
diff --git a/frontend/src/components/base/BaseFieldMessage.vue b/apps/frontend/src/components/base/BaseFieldMessage.vue
similarity index 100%
rename from frontend/src/components/base/BaseFieldMessage.vue
rename to apps/frontend/src/components/base/BaseFieldMessage.vue
diff --git a/frontend/src/components/base/BaseFloatButton.vue b/apps/frontend/src/components/base/BaseFloatButton.vue
similarity index 100%
rename from frontend/src/components/base/BaseFloatButton.vue
rename to apps/frontend/src/components/base/BaseFloatButton.vue
diff --git a/frontend/src/components/base/BaseForm.vue b/apps/frontend/src/components/base/BaseForm.vue
similarity index 100%
rename from frontend/src/components/base/BaseForm.vue
rename to apps/frontend/src/components/base/BaseForm.vue
diff --git a/frontend/src/components/base/BaseFormItem.vue b/apps/frontend/src/components/base/BaseFormItem.vue
similarity index 100%
rename from frontend/src/components/base/BaseFormItem.vue
rename to apps/frontend/src/components/base/BaseFormItem.vue
diff --git a/frontend/src/components/base/BaseHighlight.vue b/apps/frontend/src/components/base/BaseHighlight.vue
similarity index 100%
rename from frontend/src/components/base/BaseHighlight.vue
rename to apps/frontend/src/components/base/BaseHighlight.vue
diff --git a/frontend/src/components/base/BaseImage.vue b/apps/frontend/src/components/base/BaseImage.vue
similarity index 100%
rename from frontend/src/components/base/BaseImage.vue
rename to apps/frontend/src/components/base/BaseImage.vue
diff --git a/frontend/src/components/base/BaseInfiniteScroll.vue b/apps/frontend/src/components/base/BaseInfiniteScroll.vue
similarity index 100%
rename from frontend/src/components/base/BaseInfiniteScroll.vue
rename to apps/frontend/src/components/base/BaseInfiniteScroll.vue
diff --git a/frontend/src/components/base/BaseInput.vue b/apps/frontend/src/components/base/BaseInput.vue
similarity index 100%
rename from frontend/src/components/base/BaseInput.vue
rename to apps/frontend/src/components/base/BaseInput.vue
diff --git a/frontend/src/components/base/BaseKbd.vue b/apps/frontend/src/components/base/BaseKbd.vue
similarity index 100%
rename from frontend/src/components/base/BaseKbd.vue
rename to apps/frontend/src/components/base/BaseKbd.vue
diff --git a/frontend/src/components/base/BaseLink.vue b/apps/frontend/src/components/base/BaseLink.vue
similarity index 100%
rename from frontend/src/components/base/BaseLink.vue
rename to apps/frontend/src/components/base/BaseLink.vue
diff --git a/frontend/src/components/base/BaseListGroup.vue b/apps/frontend/src/components/base/BaseListGroup.vue
similarity index 100%
rename from frontend/src/components/base/BaseListGroup.vue
rename to apps/frontend/src/components/base/BaseListGroup.vue
diff --git a/frontend/src/components/base/BaseListItem.vue b/apps/frontend/src/components/base/BaseListItem.vue
similarity index 100%
rename from frontend/src/components/base/BaseListItem.vue
rename to apps/frontend/src/components/base/BaseListItem.vue
diff --git a/frontend/src/components/base/BaseLoading.vue b/apps/frontend/src/components/base/BaseLoading.vue
similarity index 100%
rename from frontend/src/components/base/BaseLoading.vue
rename to apps/frontend/src/components/base/BaseLoading.vue
diff --git a/frontend/src/components/base/BaseLoadingBar.vue b/apps/frontend/src/components/base/BaseLoadingBar.vue
similarity index 100%
rename from frontend/src/components/base/BaseLoadingBar.vue
rename to apps/frontend/src/components/base/BaseLoadingBar.vue
diff --git a/frontend/src/components/base/BaseLogo.vue b/apps/frontend/src/components/base/BaseLogo.vue
similarity index 100%
rename from frontend/src/components/base/BaseLogo.vue
rename to apps/frontend/src/components/base/BaseLogo.vue
diff --git a/frontend/src/components/base/BaseMarquee.vue b/apps/frontend/src/components/base/BaseMarquee.vue
similarity index 100%
rename from frontend/src/components/base/BaseMarquee.vue
rename to apps/frontend/src/components/base/BaseMarquee.vue
diff --git a/frontend/src/components/base/BaseMention.vue b/apps/frontend/src/components/base/BaseMention.vue
similarity index 100%
rename from frontend/src/components/base/BaseMention.vue
rename to apps/frontend/src/components/base/BaseMention.vue
diff --git a/frontend/src/components/base/BaseMenu.vue b/apps/frontend/src/components/base/BaseMenu.vue
similarity index 100%
rename from frontend/src/components/base/BaseMenu.vue
rename to apps/frontend/src/components/base/BaseMenu.vue
diff --git a/frontend/src/components/base/BaseModal.vue b/apps/frontend/src/components/base/BaseModal.vue
similarity index 100%
rename from frontend/src/components/base/BaseModal.vue
rename to apps/frontend/src/components/base/BaseModal.vue
diff --git a/frontend/src/components/base/BaseNumberAnimation.vue b/apps/frontend/src/components/base/BaseNumberAnimation.vue
similarity index 100%
rename from frontend/src/components/base/BaseNumberAnimation.vue
rename to apps/frontend/src/components/base/BaseNumberAnimation.vue
diff --git a/frontend/src/components/base/BaseNumberInput.vue b/apps/frontend/src/components/base/BaseNumberInput.vue
similarity index 100%
rename from frontend/src/components/base/BaseNumberInput.vue
rename to apps/frontend/src/components/base/BaseNumberInput.vue
diff --git a/frontend/src/components/base/BasePagination.vue b/apps/frontend/src/components/base/BasePagination.vue
similarity index 100%
rename from frontend/src/components/base/BasePagination.vue
rename to apps/frontend/src/components/base/BasePagination.vue
diff --git a/frontend/src/components/base/BasePanel.vue b/apps/frontend/src/components/base/BasePanel.vue
similarity index 100%
rename from frontend/src/components/base/BasePanel.vue
rename to apps/frontend/src/components/base/BasePanel.vue
diff --git a/frontend/src/components/base/BasePanelTitle.vue b/apps/frontend/src/components/base/BasePanelTitle.vue
similarity index 100%
rename from frontend/src/components/base/BasePanelTitle.vue
rename to apps/frontend/src/components/base/BasePanelTitle.vue
diff --git a/frontend/src/components/base/BasePinInput.vue b/apps/frontend/src/components/base/BasePinInput.vue
similarity index 100%
rename from frontend/src/components/base/BasePinInput.vue
rename to apps/frontend/src/components/base/BasePinInput.vue
diff --git a/frontend/src/components/base/BasePopconfirm.vue b/apps/frontend/src/components/base/BasePopconfirm.vue
similarity index 100%
rename from frontend/src/components/base/BasePopconfirm.vue
rename to apps/frontend/src/components/base/BasePopconfirm.vue
diff --git a/frontend/src/components/base/BasePopover.vue b/apps/frontend/src/components/base/BasePopover.vue
similarity index 100%
rename from frontend/src/components/base/BasePopover.vue
rename to apps/frontend/src/components/base/BasePopover.vue
diff --git a/frontend/src/components/base/BaseProgress.vue b/apps/frontend/src/components/base/BaseProgress.vue
similarity index 100%
rename from frontend/src/components/base/BaseProgress.vue
rename to apps/frontend/src/components/base/BaseProgress.vue
diff --git a/frontend/src/components/base/BaseRadio.vue b/apps/frontend/src/components/base/BaseRadio.vue
similarity index 100%
rename from frontend/src/components/base/BaseRadio.vue
rename to apps/frontend/src/components/base/BaseRadio.vue
diff --git a/frontend/src/components/base/BaseRadioGroup.vue b/apps/frontend/src/components/base/BaseRadioGroup.vue
similarity index 100%
rename from frontend/src/components/base/BaseRadioGroup.vue
rename to apps/frontend/src/components/base/BaseRadioGroup.vue
diff --git a/frontend/src/components/base/BaseRate.vue b/apps/frontend/src/components/base/BaseRate.vue
similarity index 100%
rename from frontend/src/components/base/BaseRate.vue
rename to apps/frontend/src/components/base/BaseRate.vue
diff --git a/frontend/src/components/base/BaseResizablePanels.vue b/apps/frontend/src/components/base/BaseResizablePanels.vue
similarity index 100%
rename from frontend/src/components/base/BaseResizablePanels.vue
rename to apps/frontend/src/components/base/BaseResizablePanels.vue
diff --git a/frontend/src/components/base/BaseResult.vue b/apps/frontend/src/components/base/BaseResult.vue
similarity index 100%
rename from frontend/src/components/base/BaseResult.vue
rename to apps/frontend/src/components/base/BaseResult.vue
diff --git a/frontend/src/components/base/BaseRibbon.vue b/apps/frontend/src/components/base/BaseRibbon.vue
similarity index 100%
rename from frontend/src/components/base/BaseRibbon.vue
rename to apps/frontend/src/components/base/BaseRibbon.vue
diff --git a/frontend/src/components/base/BaseScrollbar.vue b/apps/frontend/src/components/base/BaseScrollbar.vue
similarity index 100%
rename from frontend/src/components/base/BaseScrollbar.vue
rename to apps/frontend/src/components/base/BaseScrollbar.vue
diff --git a/frontend/src/components/base/BaseSearchInput.vue b/apps/frontend/src/components/base/BaseSearchInput.vue
similarity index 100%
rename from frontend/src/components/base/BaseSearchInput.vue
rename to apps/frontend/src/components/base/BaseSearchInput.vue
diff --git a/frontend/src/components/base/BaseSearchableSelect.vue b/apps/frontend/src/components/base/BaseSearchableSelect.vue
similarity index 100%
rename from frontend/src/components/base/BaseSearchableSelect.vue
rename to apps/frontend/src/components/base/BaseSearchableSelect.vue
diff --git a/frontend/src/components/base/BaseSegmented.vue b/apps/frontend/src/components/base/BaseSegmented.vue
similarity index 100%
rename from frontend/src/components/base/BaseSegmented.vue
rename to apps/frontend/src/components/base/BaseSegmented.vue
diff --git a/frontend/src/components/base/BaseSelect.vue b/apps/frontend/src/components/base/BaseSelect.vue
similarity index 100%
rename from frontend/src/components/base/BaseSelect.vue
rename to apps/frontend/src/components/base/BaseSelect.vue
diff --git a/frontend/src/components/base/BaseSkeleton.vue b/apps/frontend/src/components/base/BaseSkeleton.vue
similarity index 100%
rename from frontend/src/components/base/BaseSkeleton.vue
rename to apps/frontend/src/components/base/BaseSkeleton.vue
diff --git a/frontend/src/components/base/BaseSlider.vue b/apps/frontend/src/components/base/BaseSlider.vue
similarity index 100%
rename from frontend/src/components/base/BaseSlider.vue
rename to apps/frontend/src/components/base/BaseSlider.vue
diff --git a/frontend/src/components/base/BaseSpin.vue b/apps/frontend/src/components/base/BaseSpin.vue
similarity index 100%
rename from frontend/src/components/base/BaseSpin.vue
rename to apps/frontend/src/components/base/BaseSpin.vue
diff --git a/frontend/src/components/base/BaseStat.vue b/apps/frontend/src/components/base/BaseStat.vue
similarity index 100%
rename from frontend/src/components/base/BaseStat.vue
rename to apps/frontend/src/components/base/BaseStat.vue
diff --git a/frontend/src/components/base/BaseStatusPill.vue b/apps/frontend/src/components/base/BaseStatusPill.vue
similarity index 100%
rename from frontend/src/components/base/BaseStatusPill.vue
rename to apps/frontend/src/components/base/BaseStatusPill.vue
diff --git a/frontend/src/components/base/BaseStepper.vue b/apps/frontend/src/components/base/BaseStepper.vue
similarity index 100%
rename from frontend/src/components/base/BaseStepper.vue
rename to apps/frontend/src/components/base/BaseStepper.vue
diff --git a/frontend/src/components/base/BaseSurface.vue b/apps/frontend/src/components/base/BaseSurface.vue
similarity index 100%
rename from frontend/src/components/base/BaseSurface.vue
rename to apps/frontend/src/components/base/BaseSurface.vue
diff --git a/frontend/src/components/base/BaseSwitch.vue b/apps/frontend/src/components/base/BaseSwitch.vue
similarity index 100%
rename from frontend/src/components/base/BaseSwitch.vue
rename to apps/frontend/src/components/base/BaseSwitch.vue
diff --git a/frontend/src/components/base/BaseTable.vue b/apps/frontend/src/components/base/BaseTable.vue
similarity index 100%
rename from frontend/src/components/base/BaseTable.vue
rename to apps/frontend/src/components/base/BaseTable.vue
diff --git a/frontend/src/components/base/BaseTabs.vue b/apps/frontend/src/components/base/BaseTabs.vue
similarity index 100%
rename from frontend/src/components/base/BaseTabs.vue
rename to apps/frontend/src/components/base/BaseTabs.vue
diff --git a/frontend/src/components/base/BaseTag.vue b/apps/frontend/src/components/base/BaseTag.vue
similarity index 100%
rename from frontend/src/components/base/BaseTag.vue
rename to apps/frontend/src/components/base/BaseTag.vue
diff --git a/frontend/src/components/base/BaseTagsInput.vue b/apps/frontend/src/components/base/BaseTagsInput.vue
similarity index 100%
rename from frontend/src/components/base/BaseTagsInput.vue
rename to apps/frontend/src/components/base/BaseTagsInput.vue
diff --git a/frontend/src/components/base/BaseTextarea.vue b/apps/frontend/src/components/base/BaseTextarea.vue
similarity index 100%
rename from frontend/src/components/base/BaseTextarea.vue
rename to apps/frontend/src/components/base/BaseTextarea.vue
diff --git a/frontend/src/components/base/BaseTimePicker.vue b/apps/frontend/src/components/base/BaseTimePicker.vue
similarity index 100%
rename from frontend/src/components/base/BaseTimePicker.vue
rename to apps/frontend/src/components/base/BaseTimePicker.vue
diff --git a/frontend/src/components/base/BaseTimeline.vue b/apps/frontend/src/components/base/BaseTimeline.vue
similarity index 100%
rename from frontend/src/components/base/BaseTimeline.vue
rename to apps/frontend/src/components/base/BaseTimeline.vue
diff --git a/frontend/src/components/base/BaseToastContainer.vue b/apps/frontend/src/components/base/BaseToastContainer.vue
similarity index 100%
rename from frontend/src/components/base/BaseToastContainer.vue
rename to apps/frontend/src/components/base/BaseToastContainer.vue
diff --git a/frontend/src/components/base/BaseToolbarButton.vue b/apps/frontend/src/components/base/BaseToolbarButton.vue
similarity index 100%
rename from frontend/src/components/base/BaseToolbarButton.vue
rename to apps/frontend/src/components/base/BaseToolbarButton.vue
diff --git a/frontend/src/components/base/BaseTooltip.vue b/apps/frontend/src/components/base/BaseTooltip.vue
similarity index 100%
rename from frontend/src/components/base/BaseTooltip.vue
rename to apps/frontend/src/components/base/BaseTooltip.vue
diff --git a/frontend/src/components/base/BaseTooltipProvider.vue b/apps/frontend/src/components/base/BaseTooltipProvider.vue
similarity index 100%
rename from frontend/src/components/base/BaseTooltipProvider.vue
rename to apps/frontend/src/components/base/BaseTooltipProvider.vue
diff --git a/frontend/src/components/base/BaseTour.vue b/apps/frontend/src/components/base/BaseTour.vue
similarity index 100%
rename from frontend/src/components/base/BaseTour.vue
rename to apps/frontend/src/components/base/BaseTour.vue
diff --git a/frontend/src/components/base/BaseTransfer.vue b/apps/frontend/src/components/base/BaseTransfer.vue
similarity index 100%
rename from frontend/src/components/base/BaseTransfer.vue
rename to apps/frontend/src/components/base/BaseTransfer.vue
diff --git a/frontend/src/components/base/BaseTree.vue b/apps/frontend/src/components/base/BaseTree.vue
similarity index 100%
rename from frontend/src/components/base/BaseTree.vue
rename to apps/frontend/src/components/base/BaseTree.vue
diff --git a/frontend/src/components/base/BaseTreeSelect.vue b/apps/frontend/src/components/base/BaseTreeSelect.vue
similarity index 100%
rename from frontend/src/components/base/BaseTreeSelect.vue
rename to apps/frontend/src/components/base/BaseTreeSelect.vue
diff --git a/frontend/src/components/base/BaseUpload.vue b/apps/frontend/src/components/base/BaseUpload.vue
similarity index 100%
rename from frontend/src/components/base/BaseUpload.vue
rename to apps/frontend/src/components/base/BaseUpload.vue
diff --git a/frontend/src/components/base/BaseVirtualList.vue b/apps/frontend/src/components/base/BaseVirtualList.vue
similarity index 100%
rename from frontend/src/components/base/BaseVirtualList.vue
rename to apps/frontend/src/components/base/BaseVirtualList.vue
diff --git a/frontend/src/components/base/BaseWatermark.vue b/apps/frontend/src/components/base/BaseWatermark.vue
similarity index 100%
rename from frontend/src/components/base/BaseWatermark.vue
rename to apps/frontend/src/components/base/BaseWatermark.vue
diff --git a/frontend/src/components/base/ImageModal.vue b/apps/frontend/src/components/base/ImageModal.vue
similarity index 100%
rename from frontend/src/components/base/ImageModal.vue
rename to apps/frontend/src/components/base/ImageModal.vue
diff --git a/frontend/src/components/base/index.ts b/apps/frontend/src/components/base/index.ts
similarity index 100%
rename from frontend/src/components/base/index.ts
rename to apps/frontend/src/components/base/index.ts
diff --git a/frontend/src/components/base/registry.ts b/apps/frontend/src/components/base/registry.ts
similarity index 100%
rename from frontend/src/components/base/registry.ts
rename to apps/frontend/src/components/base/registry.ts
diff --git a/frontend/src/components/features/app/dashboard/ErrorDistributionCard.vue b/apps/frontend/src/components/features/app/dashboard/ErrorDistributionCard.vue
similarity index 100%
rename from frontend/src/components/features/app/dashboard/ErrorDistributionCard.vue
rename to apps/frontend/src/components/features/app/dashboard/ErrorDistributionCard.vue
diff --git a/frontend/src/components/features/app/dashboard/KnowledgeCompareCard.vue b/apps/frontend/src/components/features/app/dashboard/KnowledgeCompareCard.vue
similarity index 100%
rename from frontend/src/components/features/app/dashboard/KnowledgeCompareCard.vue
rename to apps/frontend/src/components/features/app/dashboard/KnowledgeCompareCard.vue
diff --git a/frontend/src/components/features/app/dashboard/KnowledgeRadarCard.vue b/apps/frontend/src/components/features/app/dashboard/KnowledgeRadarCard.vue
similarity index 100%
rename from frontend/src/components/features/app/dashboard/KnowledgeRadarCard.vue
rename to apps/frontend/src/components/features/app/dashboard/KnowledgeRadarCard.vue
diff --git a/frontend/src/components/features/app/dashboard/LearningTrendCard.vue b/apps/frontend/src/components/features/app/dashboard/LearningTrendCard.vue
similarity index 100%
rename from frontend/src/components/features/app/dashboard/LearningTrendCard.vue
rename to apps/frontend/src/components/features/app/dashboard/LearningTrendCard.vue
diff --git a/frontend/src/components/features/app/dashboard/PriorityBarCard.vue b/apps/frontend/src/components/features/app/dashboard/PriorityBarCard.vue
similarity index 100%
rename from frontend/src/components/features/app/dashboard/PriorityBarCard.vue
rename to apps/frontend/src/components/features/app/dashboard/PriorityBarCard.vue
diff --git a/frontend/src/components/features/app/dashboard/StatCard.vue b/apps/frontend/src/components/features/app/dashboard/StatCard.vue
similarity index 100%
rename from frontend/src/components/features/app/dashboard/StatCard.vue
rename to apps/frontend/src/components/features/app/dashboard/StatCard.vue
diff --git a/frontend/src/components/features/app/dashboard/SummaryStatsChartCard.vue b/apps/frontend/src/components/features/app/dashboard/SummaryStatsChartCard.vue
similarity index 100%
rename from frontend/src/components/features/app/dashboard/SummaryStatsChartCard.vue
rename to apps/frontend/src/components/features/app/dashboard/SummaryStatsChartCard.vue
diff --git a/frontend/src/components/features/app/error-bank/ErrorBankToolbar.vue b/apps/frontend/src/components/features/app/error-bank/ErrorBankToolbar.vue
similarity index 100%
rename from frontend/src/components/features/app/error-bank/ErrorBankToolbar.vue
rename to apps/frontend/src/components/features/app/error-bank/ErrorBankToolbar.vue
diff --git a/frontend/src/components/features/app/error-bank/ErrorLearningAside.vue b/apps/frontend/src/components/features/app/error-bank/ErrorLearningAside.vue
similarity index 100%
rename from frontend/src/components/features/app/error-bank/ErrorLearningAside.vue
rename to apps/frontend/src/components/features/app/error-bank/ErrorLearningAside.vue
diff --git a/frontend/src/components/features/app/error-bank/ErrorQuestionDetailPanel.vue b/apps/frontend/src/components/features/app/error-bank/ErrorQuestionDetailPanel.vue
similarity index 100%
rename from frontend/src/components/features/app/error-bank/ErrorQuestionDetailPanel.vue
rename to apps/frontend/src/components/features/app/error-bank/ErrorQuestionDetailPanel.vue
diff --git a/frontend/src/components/features/app/error-bank/ErrorQuestionFinderAside.vue b/apps/frontend/src/components/features/app/error-bank/ErrorQuestionFinderAside.vue
similarity index 100%
rename from frontend/src/components/features/app/error-bank/ErrorQuestionFinderAside.vue
rename to apps/frontend/src/components/features/app/error-bank/ErrorQuestionFinderAside.vue
diff --git a/frontend/src/components/features/app/error-bank/ErrorQuestionListItem.vue b/apps/frontend/src/components/features/app/error-bank/ErrorQuestionListItem.vue
similarity index 100%
rename from frontend/src/components/features/app/error-bank/ErrorQuestionListItem.vue
rename to apps/frontend/src/components/features/app/error-bank/ErrorQuestionListItem.vue
diff --git a/frontend/src/components/features/app/error-bank/ErrorQuestionListPanel.vue b/apps/frontend/src/components/features/app/error-bank/ErrorQuestionListPanel.vue
similarity index 100%
rename from frontend/src/components/features/app/error-bank/ErrorQuestionListPanel.vue
rename to apps/frontend/src/components/features/app/error-bank/ErrorQuestionListPanel.vue
diff --git a/frontend/src/components/features/app/layout/ChatSearchDialog.vue b/apps/frontend/src/components/features/app/layout/ChatSearchDialog.vue
similarity index 100%
rename from frontend/src/components/features/app/layout/ChatSearchDialog.vue
rename to apps/frontend/src/components/features/app/layout/ChatSearchDialog.vue
diff --git a/frontend/src/components/features/app/layout/ContentPanel.vue b/apps/frontend/src/components/features/app/layout/ContentPanel.vue
similarity index 100%
rename from frontend/src/components/features/app/layout/ContentPanel.vue
rename to apps/frontend/src/components/features/app/layout/ContentPanel.vue
diff --git a/frontend/src/components/features/app/layout/PanelStepTabs.vue b/apps/frontend/src/components/features/app/layout/PanelStepTabs.vue
similarity index 100%
rename from frontend/src/components/features/app/layout/PanelStepTabs.vue
rename to apps/frontend/src/components/features/app/layout/PanelStepTabs.vue
diff --git a/frontend/src/components/features/app/layout/SidebarNav.vue b/apps/frontend/src/components/features/app/layout/SidebarNav.vue
similarity index 100%
rename from frontend/src/components/features/app/layout/SidebarNav.vue
rename to apps/frontend/src/components/features/app/layout/SidebarNav.vue
diff --git a/frontend/src/components/features/app/layout/WorkspaceBackground.vue b/apps/frontend/src/components/features/app/layout/WorkspaceBackground.vue
similarity index 100%
rename from frontend/src/components/features/app/layout/WorkspaceBackground.vue
rename to apps/frontend/src/components/features/app/layout/WorkspaceBackground.vue
diff --git a/frontend/src/components/features/app/notes/NoteDetailPanel.vue b/apps/frontend/src/components/features/app/notes/NoteDetailPanel.vue
similarity index 100%
rename from frontend/src/components/features/app/notes/NoteDetailPanel.vue
rename to apps/frontend/src/components/features/app/notes/NoteDetailPanel.vue
diff --git a/frontend/src/components/features/app/notes/NoteInsightAside.vue b/apps/frontend/src/components/features/app/notes/NoteInsightAside.vue
similarity index 100%
rename from frontend/src/components/features/app/notes/NoteInsightAside.vue
rename to apps/frontend/src/components/features/app/notes/NoteInsightAside.vue
diff --git a/frontend/src/components/features/app/notes/NoteListPanel.vue b/apps/frontend/src/components/features/app/notes/NoteListPanel.vue
similarity index 100%
rename from frontend/src/components/features/app/notes/NoteListPanel.vue
rename to apps/frontend/src/components/features/app/notes/NoteListPanel.vue
diff --git a/frontend/src/components/features/app/notes/NoteToolbar.vue b/apps/frontend/src/components/features/app/notes/NoteToolbar.vue
similarity index 100%
rename from frontend/src/components/features/app/notes/NoteToolbar.vue
rename to apps/frontend/src/components/features/app/notes/NoteToolbar.vue
diff --git a/frontend/src/components/features/app/question/EditNoteDialog.vue b/apps/frontend/src/components/features/app/question/EditNoteDialog.vue
similarity index 100%
rename from frontend/src/components/features/app/question/EditNoteDialog.vue
rename to apps/frontend/src/components/features/app/question/EditNoteDialog.vue
diff --git a/frontend/src/components/features/app/question/QuestionCard.vue b/apps/frontend/src/components/features/app/question/QuestionCard.vue
similarity index 100%
rename from frontend/src/components/features/app/question/QuestionCard.vue
rename to apps/frontend/src/components/features/app/question/QuestionCard.vue
diff --git a/frontend/src/components/features/app/question/QuestionDetailModal.vue b/apps/frontend/src/components/features/app/question/QuestionDetailModal.vue
similarity index 100%
rename from frontend/src/components/features/app/question/QuestionDetailModal.vue
rename to apps/frontend/src/components/features/app/question/QuestionDetailModal.vue
diff --git a/frontend/src/components/features/app/question/QuestionItem.vue b/apps/frontend/src/components/features/app/question/QuestionItem.vue
similarity index 100%
rename from frontend/src/components/features/app/question/QuestionItem.vue
rename to apps/frontend/src/components/features/app/question/QuestionItem.vue
diff --git a/frontend/src/components/features/app/question/QuestionItemSkeleton.vue b/apps/frontend/src/components/features/app/question/QuestionItemSkeleton.vue
similarity index 100%
rename from frontend/src/components/features/app/question/QuestionItemSkeleton.vue
rename to apps/frontend/src/components/features/app/question/QuestionItemSkeleton.vue
diff --git a/frontend/src/components/features/app/question/QuestionList.vue b/apps/frontend/src/components/features/app/question/QuestionList.vue
similarity index 100%
rename from frontend/src/components/features/app/question/QuestionList.vue
rename to apps/frontend/src/components/features/app/question/QuestionList.vue
diff --git a/frontend/src/components/features/app/review/AiAnalysisModal.vue b/apps/frontend/src/components/features/app/review/AiAnalysisModal.vue
similarity index 100%
rename from frontend/src/components/features/app/review/AiAnalysisModal.vue
rename to apps/frontend/src/components/features/app/review/AiAnalysisModal.vue
diff --git a/frontend/src/components/features/app/settings/ProviderDialog.vue b/apps/frontend/src/components/features/app/settings/ProviderDialog.vue
similarity index 100%
rename from frontend/src/components/features/app/settings/ProviderDialog.vue
rename to apps/frontend/src/components/features/app/settings/ProviderDialog.vue
diff --git a/frontend/src/components/features/app/settings/ProviderSection.vue b/apps/frontend/src/components/features/app/settings/ProviderSection.vue
similarity index 100%
rename from frontend/src/components/features/app/settings/ProviderSection.vue
rename to apps/frontend/src/components/features/app/settings/ProviderSection.vue
diff --git a/frontend/src/components/features/app/shared/ViewSettingsPopover.vue b/apps/frontend/src/components/features/app/shared/ViewSettingsPopover.vue
similarity index 100%
rename from frontend/src/components/features/app/shared/ViewSettingsPopover.vue
rename to apps/frontend/src/components/features/app/shared/ViewSettingsPopover.vue
diff --git a/frontend/src/components/features/app/workspace/ActionBar.vue b/apps/frontend/src/components/features/app/workspace/ActionBar.vue
similarity index 100%
rename from frontend/src/components/features/app/workspace/ActionBar.vue
rename to apps/frontend/src/components/features/app/workspace/ActionBar.vue
diff --git a/frontend/src/components/features/app/workspace/AnswerInputModal.vue b/apps/frontend/src/components/features/app/workspace/AnswerInputModal.vue
similarity index 100%
rename from frontend/src/components/features/app/workspace/AnswerInputModal.vue
rename to apps/frontend/src/components/features/app/workspace/AnswerInputModal.vue
diff --git a/frontend/src/components/features/app/workspace/ErasePreview.vue b/apps/frontend/src/components/features/app/workspace/ErasePreview.vue
similarity index 100%
rename from frontend/src/components/features/app/workspace/ErasePreview.vue
rename to apps/frontend/src/components/features/app/workspace/ErasePreview.vue
diff --git a/frontend/src/components/features/app/workspace/FileList.vue b/apps/frontend/src/components/features/app/workspace/FileList.vue
similarity index 100%
rename from frontend/src/components/features/app/workspace/FileList.vue
rename to apps/frontend/src/components/features/app/workspace/FileList.vue
diff --git a/frontend/src/components/features/app/workspace/FileUploader.vue b/apps/frontend/src/components/features/app/workspace/FileUploader.vue
similarity index 100%
rename from frontend/src/components/features/app/workspace/FileUploader.vue
rename to apps/frontend/src/components/features/app/workspace/FileUploader.vue
diff --git a/frontend/src/components/features/app/workspace/ModelProviderSelect.vue b/apps/frontend/src/components/features/app/workspace/ModelProviderSelect.vue
similarity index 100%
rename from frontend/src/components/features/app/workspace/ModelProviderSelect.vue
rename to apps/frontend/src/components/features/app/workspace/ModelProviderSelect.vue
diff --git a/frontend/src/components/features/app/workspace/OcrPreview.vue b/apps/frontend/src/components/features/app/workspace/OcrPreview.vue
similarity index 100%
rename from frontend/src/components/features/app/workspace/OcrPreview.vue
rename to apps/frontend/src/components/features/app/workspace/OcrPreview.vue
diff --git a/frontend/src/components/features/app/workspace/ReviewStage.vue b/apps/frontend/src/components/features/app/workspace/ReviewStage.vue
similarity index 100%
rename from frontend/src/components/features/app/workspace/ReviewStage.vue
rename to apps/frontend/src/components/features/app/workspace/ReviewStage.vue
diff --git a/frontend/src/components/features/app/workspace/SelectionPanel.vue b/apps/frontend/src/components/features/app/workspace/SelectionPanel.vue
similarity index 100%
rename from frontend/src/components/features/app/workspace/SelectionPanel.vue
rename to apps/frontend/src/components/features/app/workspace/SelectionPanel.vue
diff --git a/frontend/src/components/features/app/workspace/SplitLoading.vue b/apps/frontend/src/components/features/app/workspace/SplitLoading.vue
similarity index 100%
rename from frontend/src/components/features/app/workspace/SplitLoading.vue
rename to apps/frontend/src/components/features/app/workspace/SplitLoading.vue
diff --git a/frontend/src/components/features/app/workspace/StatusBar.vue b/apps/frontend/src/components/features/app/workspace/StatusBar.vue
similarity index 100%
rename from frontend/src/components/features/app/workspace/StatusBar.vue
rename to apps/frontend/src/components/features/app/workspace/StatusBar.vue
diff --git a/frontend/src/components/features/app/workspace/StepIndicator.vue b/apps/frontend/src/components/features/app/workspace/StepIndicator.vue
similarity index 100%
rename from frontend/src/components/features/app/workspace/StepIndicator.vue
rename to apps/frontend/src/components/features/app/workspace/StepIndicator.vue
diff --git a/frontend/src/components/features/app/workspace/UploadStage.vue b/apps/frontend/src/components/features/app/workspace/UploadStage.vue
similarity index 100%
rename from frontend/src/components/features/app/workspace/UploadStage.vue
rename to apps/frontend/src/components/features/app/workspace/UploadStage.vue
diff --git a/frontend/src/components/features/auth/ForgotPasswordModal.vue b/apps/frontend/src/components/features/auth/ForgotPasswordModal.vue
similarity index 100%
rename from frontend/src/components/features/auth/ForgotPasswordModal.vue
rename to apps/frontend/src/components/features/auth/ForgotPasswordModal.vue
diff --git a/frontend/src/components/features/home/FeatureCard.vue b/apps/frontend/src/components/features/home/FeatureCard.vue
similarity index 100%
rename from frontend/src/components/features/home/FeatureCard.vue
rename to apps/frontend/src/components/features/home/FeatureCard.vue
diff --git a/frontend/src/components/features/home/HomeFooter.vue b/apps/frontend/src/components/features/home/HomeFooter.vue
similarity index 100%
rename from frontend/src/components/features/home/HomeFooter.vue
rename to apps/frontend/src/components/features/home/HomeFooter.vue
diff --git a/frontend/src/components/features/home/HomeHeader.vue b/apps/frontend/src/components/features/home/HomeHeader.vue
similarity index 100%
rename from frontend/src/components/features/home/HomeHeader.vue
rename to apps/frontend/src/components/features/home/HomeHeader.vue
diff --git a/frontend/src/components/features/home/HomePill.vue b/apps/frontend/src/components/features/home/HomePill.vue
similarity index 100%
rename from frontend/src/components/features/home/HomePill.vue
rename to apps/frontend/src/components/features/home/HomePill.vue
diff --git a/frontend/src/components/features/home/HomeSideNav.vue b/apps/frontend/src/components/features/home/HomeSideNav.vue
similarity index 100%
rename from frontend/src/components/features/home/HomeSideNav.vue
rename to apps/frontend/src/components/features/home/HomeSideNav.vue
diff --git a/frontend/src/components/features/home/WorkflowStep.vue b/apps/frontend/src/components/features/home/WorkflowStep.vue
similarity index 100%
rename from frontend/src/components/features/home/WorkflowStep.vue
rename to apps/frontend/src/components/features/home/WorkflowStep.vue
diff --git a/frontend/src/composables/useAiChatSessions.ts b/apps/frontend/src/composables/useAiChatSessions.ts
similarity index 100%
rename from frontend/src/composables/useAiChatSessions.ts
rename to apps/frontend/src/composables/useAiChatSessions.ts
diff --git a/frontend/src/composables/useAuth.ts b/apps/frontend/src/composables/useAuth.ts
similarity index 100%
rename from frontend/src/composables/useAuth.ts
rename to apps/frontend/src/composables/useAuth.ts
diff --git a/frontend/src/composables/useChatSession.ts b/apps/frontend/src/composables/useChatSession.ts
similarity index 100%
rename from frontend/src/composables/useChatSession.ts
rename to apps/frontend/src/composables/useChatSession.ts
diff --git a/frontend/src/composables/useClickOutside.ts b/apps/frontend/src/composables/useClickOutside.ts
similarity index 100%
rename from frontend/src/composables/useClickOutside.ts
rename to apps/frontend/src/composables/useClickOutside.ts
diff --git a/frontend/src/composables/useDropdownPosition.ts b/apps/frontend/src/composables/useDropdownPosition.ts
similarity index 100%
rename from frontend/src/composables/useDropdownPosition.ts
rename to apps/frontend/src/composables/useDropdownPosition.ts
diff --git a/frontend/src/composables/useErrorBankActions.ts b/apps/frontend/src/composables/useErrorBankActions.ts
similarity index 100%
rename from frontend/src/composables/useErrorBankActions.ts
rename to apps/frontend/src/composables/useErrorBankActions.ts
diff --git a/frontend/src/composables/useErrorBankQuery.ts b/apps/frontend/src/composables/useErrorBankQuery.ts
similarity index 100%
rename from frontend/src/composables/useErrorBankQuery.ts
rename to apps/frontend/src/composables/useErrorBankQuery.ts
diff --git a/frontend/src/composables/useErrorBankStats.ts b/apps/frontend/src/composables/useErrorBankStats.ts
similarity index 100%
rename from frontend/src/composables/useErrorBankStats.ts
rename to apps/frontend/src/composables/useErrorBankStats.ts
diff --git a/frontend/src/composables/useFileUpload.ts b/apps/frontend/src/composables/useFileUpload.ts
similarity index 100%
rename from frontend/src/composables/useFileUpload.ts
rename to apps/frontend/src/composables/useFileUpload.ts
diff --git a/frontend/src/composables/useImageModal.ts b/apps/frontend/src/composables/useImageModal.ts
similarity index 100%
rename from frontend/src/composables/useImageModal.ts
rename to apps/frontend/src/composables/useImageModal.ts
diff --git a/frontend/src/composables/useOverlay.ts b/apps/frontend/src/composables/useOverlay.ts
similarity index 100%
rename from frontend/src/composables/useOverlay.ts
rename to apps/frontend/src/composables/useOverlay.ts
diff --git a/frontend/src/composables/usePageTransition.ts b/apps/frontend/src/composables/usePageTransition.ts
similarity index 100%
rename from frontend/src/composables/usePageTransition.ts
rename to apps/frontend/src/composables/usePageTransition.ts
diff --git a/frontend/src/composables/usePaginatedList.ts b/apps/frontend/src/composables/usePaginatedList.ts
similarity index 100%
rename from frontend/src/composables/usePaginatedList.ts
rename to apps/frontend/src/composables/usePaginatedList.ts
diff --git a/frontend/src/composables/useProjects.ts b/apps/frontend/src/composables/useProjects.ts
similarity index 100%
rename from frontend/src/composables/useProjects.ts
rename to apps/frontend/src/composables/useProjects.ts
diff --git a/frontend/src/composables/useQuestionList.ts b/apps/frontend/src/composables/useQuestionList.ts
similarity index 100%
rename from frontend/src/composables/useQuestionList.ts
rename to apps/frontend/src/composables/useQuestionList.ts
diff --git a/frontend/src/composables/useSelectableList.ts b/apps/frontend/src/composables/useSelectableList.ts
similarity index 100%
rename from frontend/src/composables/useSelectableList.ts
rename to apps/frontend/src/composables/useSelectableList.ts
diff --git a/frontend/src/composables/useSidebarIndicator.ts b/apps/frontend/src/composables/useSidebarIndicator.ts
similarity index 100%
rename from frontend/src/composables/useSidebarIndicator.ts
rename to apps/frontend/src/composables/useSidebarIndicator.ts
diff --git a/frontend/src/composables/useSplitPipeline.ts b/apps/frontend/src/composables/useSplitPipeline.ts
similarity index 100%
rename from frontend/src/composables/useSplitPipeline.ts
rename to apps/frontend/src/composables/useSplitPipeline.ts
diff --git a/frontend/src/composables/useSystemStatus.ts b/apps/frontend/src/composables/useSystemStatus.ts
similarity index 100%
rename from frontend/src/composables/useSystemStatus.ts
rename to apps/frontend/src/composables/useSystemStatus.ts
diff --git a/frontend/src/composables/useTheme.ts b/apps/frontend/src/composables/useTheme.ts
similarity index 100%
rename from frontend/src/composables/useTheme.ts
rename to apps/frontend/src/composables/useTheme.ts
diff --git a/frontend/src/composables/useToast.ts b/apps/frontend/src/composables/useToast.ts
similarity index 100%
rename from frontend/src/composables/useToast.ts
rename to apps/frontend/src/composables/useToast.ts
diff --git a/frontend/src/composables/useWorkspaceNav.ts b/apps/frontend/src/composables/useWorkspaceNav.ts
similarity index 100%
rename from frontend/src/composables/useWorkspaceNav.ts
rename to apps/frontend/src/composables/useWorkspaceNav.ts
diff --git a/frontend/src/composables/useWorkspaceToast.ts b/apps/frontend/src/composables/useWorkspaceToast.ts
similarity index 100%
rename from frontend/src/composables/useWorkspaceToast.ts
rename to apps/frontend/src/composables/useWorkspaceToast.ts
diff --git a/frontend/src/main.ts b/apps/frontend/src/main.ts
similarity index 100%
rename from frontend/src/main.ts
rename to apps/frontend/src/main.ts
diff --git a/frontend/src/router/index.ts b/apps/frontend/src/router/index.ts
similarity index 100%
rename from frontend/src/router/index.ts
rename to apps/frontend/src/router/index.ts
diff --git a/frontend/src/shims-vue.d.ts b/apps/frontend/src/shims-vue.d.ts
similarity index 100%
rename from frontend/src/shims-vue.d.ts
rename to apps/frontend/src/shims-vue.d.ts
diff --git a/frontend/src/style.css b/apps/frontend/src/style.css
similarity index 100%
rename from frontend/src/style.css
rename to apps/frontend/src/style.css
diff --git a/frontend/src/types/domain.ts b/apps/frontend/src/types/domain.ts
similarity index 100%
rename from frontend/src/types/domain.ts
rename to apps/frontend/src/types/domain.ts
diff --git a/frontend/src/utils/file.ts b/apps/frontend/src/utils/file.ts
similarity index 100%
rename from frontend/src/utils/file.ts
rename to apps/frontend/src/utils/file.ts
diff --git a/frontend/src/utils/format.ts b/apps/frontend/src/utils/format.ts
similarity index 100%
rename from frontend/src/utils/format.ts
rename to apps/frontend/src/utils/format.ts
diff --git a/frontend/src/utils/html.ts b/apps/frontend/src/utils/html.ts
similarity index 100%
rename from frontend/src/utils/html.ts
rename to apps/frontend/src/utils/html.ts
diff --git a/frontend/src/utils/id.ts b/apps/frontend/src/utils/id.ts
similarity index 100%
rename from frontend/src/utils/id.ts
rename to apps/frontend/src/utils/id.ts
diff --git a/frontend/src/utils/index.ts b/apps/frontend/src/utils/index.ts
similarity index 100%
rename from frontend/src/utils/index.ts
rename to apps/frontend/src/utils/index.ts
diff --git a/frontend/src/utils/markdown.ts b/apps/frontend/src/utils/markdown.ts
similarity index 100%
rename from frontend/src/utils/markdown.ts
rename to apps/frontend/src/utils/markdown.ts
diff --git a/frontend/src/utils/mathjax.ts b/apps/frontend/src/utils/mathjax.ts
similarity index 100%
rename from frontend/src/utils/mathjax.ts
rename to apps/frontend/src/utils/mathjax.ts
diff --git a/frontend/src/utils/note.ts b/apps/frontend/src/utils/note.ts
similarity index 100%
rename from frontend/src/utils/note.ts
rename to apps/frontend/src/utils/note.ts
diff --git a/frontend/src/utils/question.ts b/apps/frontend/src/utils/question.ts
similarity index 100%
rename from frontend/src/utils/question.ts
rename to apps/frontend/src/utils/question.ts
diff --git a/frontend/src/utils/scale.ts b/apps/frontend/src/utils/scale.ts
similarity index 100%
rename from frontend/src/utils/scale.ts
rename to apps/frontend/src/utils/scale.ts
diff --git a/frontend/src/views/HomeView.vue b/apps/frontend/src/views/HomeView.vue
similarity index 100%
rename from frontend/src/views/HomeView.vue
rename to apps/frontend/src/views/HomeView.vue
diff --git a/frontend/src/views/app/AppLayout.vue b/apps/frontend/src/views/app/AppLayout.vue
similarity index 100%
rename from frontend/src/views/app/AppLayout.vue
rename to apps/frontend/src/views/app/AppLayout.vue
diff --git a/frontend/src/views/app/ChatPageView.vue b/apps/frontend/src/views/app/ChatPageView.vue
similarity index 100%
rename from frontend/src/views/app/ChatPageView.vue
rename to apps/frontend/src/views/app/ChatPageView.vue
diff --git a/frontend/src/views/app/ChatView.vue b/apps/frontend/src/views/app/ChatView.vue
similarity index 100%
rename from frontend/src/views/app/ChatView.vue
rename to apps/frontend/src/views/app/ChatView.vue
diff --git a/frontend/src/views/app/ComponentPreviewView.vue b/apps/frontend/src/views/app/ComponentPreviewView.vue
similarity index 100%
rename from frontend/src/views/app/ComponentPreviewView.vue
rename to apps/frontend/src/views/app/ComponentPreviewView.vue
diff --git a/frontend/src/views/app/DashboardView.vue b/apps/frontend/src/views/app/DashboardView.vue
similarity index 100%
rename from frontend/src/views/app/DashboardView.vue
rename to apps/frontend/src/views/app/DashboardView.vue
diff --git a/frontend/src/views/app/ErrorBankView.vue b/apps/frontend/src/views/app/ErrorBankView.vue
similarity index 100%
rename from frontend/src/views/app/ErrorBankView.vue
rename to apps/frontend/src/views/app/ErrorBankView.vue
diff --git a/frontend/src/views/app/NoteView.vue b/apps/frontend/src/views/app/NoteView.vue
similarity index 100%
rename from frontend/src/views/app/NoteView.vue
rename to apps/frontend/src/views/app/NoteView.vue
diff --git a/frontend/src/views/app/ReviewView.vue b/apps/frontend/src/views/app/ReviewView.vue
similarity index 100%
rename from frontend/src/views/app/ReviewView.vue
rename to apps/frontend/src/views/app/ReviewView.vue
diff --git a/frontend/src/views/app/SearchHubView.vue b/apps/frontend/src/views/app/SearchHubView.vue
similarity index 100%
rename from frontend/src/views/app/SearchHubView.vue
rename to apps/frontend/src/views/app/SearchHubView.vue
diff --git a/frontend/src/views/app/SettingsView.vue b/apps/frontend/src/views/app/SettingsView.vue
similarity index 100%
rename from frontend/src/views/app/SettingsView.vue
rename to apps/frontend/src/views/app/SettingsView.vue
diff --git a/frontend/src/views/app/SplitHistoryView.vue b/apps/frontend/src/views/app/SplitHistoryView.vue
similarity index 100%
rename from frontend/src/views/app/SplitHistoryView.vue
rename to apps/frontend/src/views/app/SplitHistoryView.vue
diff --git a/frontend/src/views/app/WorkspaceView.vue b/apps/frontend/src/views/app/WorkspaceView.vue
similarity index 100%
rename from frontend/src/views/app/WorkspaceView.vue
rename to apps/frontend/src/views/app/WorkspaceView.vue
diff --git a/frontend/src/views/auth/AuthLayout.vue b/apps/frontend/src/views/auth/AuthLayout.vue
similarity index 100%
rename from frontend/src/views/auth/AuthLayout.vue
rename to apps/frontend/src/views/auth/AuthLayout.vue
diff --git a/frontend/src/views/auth/LoginView.vue b/apps/frontend/src/views/auth/LoginView.vue
similarity index 100%
rename from frontend/src/views/auth/LoginView.vue
rename to apps/frontend/src/views/auth/LoginView.vue
diff --git a/frontend/src/views/auth/RegisterView.vue b/apps/frontend/src/views/auth/RegisterView.vue
similarity index 100%
rename from frontend/src/views/auth/RegisterView.vue
rename to apps/frontend/src/views/auth/RegisterView.vue
diff --git a/frontend/src/views/home/HomeDemo.vue b/apps/frontend/src/views/home/HomeDemo.vue
similarity index 100%
rename from frontend/src/views/home/HomeDemo.vue
rename to apps/frontend/src/views/home/HomeDemo.vue
diff --git a/frontend/src/views/home/HomeFeatures.vue b/apps/frontend/src/views/home/HomeFeatures.vue
similarity index 100%
rename from frontend/src/views/home/HomeFeatures.vue
rename to apps/frontend/src/views/home/HomeFeatures.vue
diff --git a/frontend/src/views/home/HomeHero.vue b/apps/frontend/src/views/home/HomeHero.vue
similarity index 100%
rename from frontend/src/views/home/HomeHero.vue
rename to apps/frontend/src/views/home/HomeHero.vue
diff --git a/frontend/src/views/home/HomeWorkflow.vue b/apps/frontend/src/views/home/HomeWorkflow.vue
similarity index 100%
rename from frontend/src/views/home/HomeWorkflow.vue
rename to apps/frontend/src/views/home/HomeWorkflow.vue
diff --git a/frontend/src/vite-env.d.ts b/apps/frontend/src/vite-env.d.ts
similarity index 100%
rename from frontend/src/vite-env.d.ts
rename to apps/frontend/src/vite-env.d.ts
diff --git a/frontend/tailwind.config.ts b/apps/frontend/tailwind.config.ts
similarity index 100%
rename from frontend/tailwind.config.ts
rename to apps/frontend/tailwind.config.ts
diff --git a/frontend/tsconfig.json b/apps/frontend/tsconfig.json
similarity index 100%
rename from frontend/tsconfig.json
rename to apps/frontend/tsconfig.json
diff --git a/frontend/vite.config.ts b/apps/frontend/vite.config.ts
similarity index 100%
rename from frontend/vite.config.ts
rename to apps/frontend/vite.config.ts
diff --git a/apps/mobile/.gitignore b/apps/mobile/.gitignore
new file mode 100644
index 00000000..9913a960
--- /dev/null
+++ b/apps/mobile/.gitignore
@@ -0,0 +1,46 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.build/
+.buildlog/
+.history
+.svn/
+.swiftpm/
+migrate_working_dir/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+**/ios/Flutter/.last_build_id
+.dart_tool/
+.flutter-plugins-dependencies
+.pub-cache/
+.pub/
+/build/
+/coverage/
+.playwright-mcp/
+
+# Symbolication related
+app.*.symbols
+
+# Obfuscation related
+app.*.map.json
+
+# Android Studio will place build artifacts here
+/android/app/debug
+/android/app/profile
+/android/app/release
diff --git a/apps/mobile/.metadata b/apps/mobile/.metadata
new file mode 100644
index 00000000..c85d80ab
--- /dev/null
+++ b/apps/mobile/.metadata
@@ -0,0 +1,45 @@
+# This file tracks properties of this Flutter project.
+# Used by Flutter tool to assess capabilities and perform upgrades etc.
+#
+# This file should be version controlled and should not be manually edited.
+
+version:
+ revision: "20f82749394e68bcfbbeee96bad384abaae09c13"
+ channel: "stable"
+
+project_type: app
+
+# Tracks metadata for the flutter migrate command
+migration:
+ platforms:
+ - platform: root
+ create_revision: 20f82749394e68bcfbbeee96bad384abaae09c13
+ base_revision: 20f82749394e68bcfbbeee96bad384abaae09c13
+ - platform: android
+ create_revision: 20f82749394e68bcfbbeee96bad384abaae09c13
+ base_revision: 20f82749394e68bcfbbeee96bad384abaae09c13
+ - platform: ios
+ create_revision: 20f82749394e68bcfbbeee96bad384abaae09c13
+ base_revision: 20f82749394e68bcfbbeee96bad384abaae09c13
+ - platform: linux
+ create_revision: 20f82749394e68bcfbbeee96bad384abaae09c13
+ base_revision: 20f82749394e68bcfbbeee96bad384abaae09c13
+ - platform: macos
+ create_revision: 20f82749394e68bcfbbeee96bad384abaae09c13
+ base_revision: 20f82749394e68bcfbbeee96bad384abaae09c13
+ - platform: web
+ create_revision: 20f82749394e68bcfbbeee96bad384abaae09c13
+ base_revision: 20f82749394e68bcfbbeee96bad384abaae09c13
+ - platform: windows
+ create_revision: 20f82749394e68bcfbbeee96bad384abaae09c13
+ base_revision: 20f82749394e68bcfbbeee96bad384abaae09c13
+
+ # User provided section
+
+ # List of Local paths (relative to this file) that should be
+ # ignored by the migrate tool.
+ #
+ # Files that are not part of the templates will be ignored by default.
+ unmanaged_files:
+ - 'lib/main.dart'
+ - 'ios/Runner.xcodeproj/project.pbxproj'
diff --git a/apps/mobile/README.md b/apps/mobile/README.md
new file mode 100644
index 00000000..26867b33
--- /dev/null
+++ b/apps/mobile/README.md
@@ -0,0 +1,60 @@
+# 错题本 Flutter 客户端
+
+`apps/mobile` 是错题本的 Flutter 客户端,提供登录、错题整理、AI 对话、错题库以及 ESP32 设备配网功能。
+
+## 开发环境
+
+- Flutter 3.44.x stable
+- Dart 3.12.x
+- Android Studio(Android debug 构建)
+- Xcode(iOS 构建,仅 macOS)
+
+依赖版本和传递依赖由 `pubspec.lock` 固定。进入本目录后安装依赖:
+
+```bash
+flutter pub get
+```
+
+## API 地址
+
+默认 API 地址为 `https://lamp.dianchuang.club`。本地或测试环境请使用 Dart define 覆盖,不要把本地地址提交到源码:
+
+```bash
+flutter run --dart-define=API_BASE_URL=https://example.com
+```
+
+客户端只会向 API 同源地址发送 Session Cookie;跨域图片下载不会携带认证信息。
+
+## 启动和权限
+
+Android debug:
+
+```bash
+flutter run -d android
+```
+
+iOS 需要在 macOS 上使用 Xcode 配置签名后运行。ESP32 配网需要用户授予蓝牙权限;旧版 Android 还需要使用期间的位置权限,Android 12 及以上使用蓝牙扫描和连接权限。应用不会记录 Wi-Fi 密码或 Session Cookie。
+
+当前主要验证目标是 Android 和 iOS 手机端。Web、Windows、Linux、macOS 的 Flutter scaffold 保留在仓库中,但尚未作为正式发布平台完成验证。
+
+## 测试和检查
+
+```bash
+dart format --output=none --set-exit-if-changed lib test
+flutter analyze
+flutter test
+flutter build apk --debug
+```
+
+## Android release 签名
+
+复制 `android/key.properties.example` 为 `android/key.properties`,填入本地 keystore 信息。`key.properties`、keystore 和 JKS 文件已被忽略,不能提交到仓库。没有该文件时不影响 debug 构建;发布构建不会静默使用 debug 密钥。
+
+## 不应提交的文件
+
+不要提交 `.dart_tool/`、`build/`、`coverage/`、`.playwright-mcp/`、Gradle 报告、`key.properties`、任何 keystore、`.env` 或本地日志。
+
+## 已知限制
+
+- BLE 配网和硬件图片上传需要真实 ESP32 设备,单元测试只覆盖协议和数据转换逻辑。
+- 移动端 CI 验证依赖 pub.dev 网络可用;网络或证书问题应作为环境阻塞单独记录。
diff --git a/apps/mobile/analysis_options.yaml b/apps/mobile/analysis_options.yaml
new file mode 100644
index 00000000..0d290213
--- /dev/null
+++ b/apps/mobile/analysis_options.yaml
@@ -0,0 +1,28 @@
+# This file configures the analyzer, which statically analyzes Dart code to
+# check for errors, warnings, and lints.
+#
+# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
+# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
+# invoked from the command line by running `flutter analyze`.
+
+# The following line activates a set of recommended lints for Flutter apps,
+# packages, and plugins designed to encourage good coding practices.
+include: package:flutter_lints/flutter.yaml
+
+linter:
+ # The lint rules applied to this project can be customized in the
+ # section below to disable rules from the `package:flutter_lints/flutter.yaml`
+ # included above or to enable additional rules. A list of all available lints
+ # and their documentation is published at https://dart.dev/lints.
+ #
+ # Instead of disabling a lint rule for the entire project in the
+ # section below, it can also be suppressed for a single line of code
+ # or a specific dart file by using the `// ignore: name_of_lint` and
+ # `// ignore_for_file: name_of_lint` syntax on the line or in the file
+ # producing the lint.
+ rules:
+ # avoid_print: false # Uncomment to disable the `avoid_print` rule
+ # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
+
+# Additional information about this file can be found at
+# https://dart.dev/guides/language/analysis-options
diff --git a/apps/mobile/android/.gitignore b/apps/mobile/android/.gitignore
new file mode 100644
index 00000000..be3943c9
--- /dev/null
+++ b/apps/mobile/android/.gitignore
@@ -0,0 +1,14 @@
+gradle-wrapper.jar
+/.gradle
+/captures/
+/gradlew
+/gradlew.bat
+/local.properties
+GeneratedPluginRegistrant.java
+.cxx/
+
+# Remember to never publicly share your keystore.
+# See https://flutter.dev/to/reference-keystore
+key.properties
+**/*.keystore
+**/*.jks
diff --git a/apps/mobile/android/app/build.gradle.kts b/apps/mobile/android/app/build.gradle.kts
new file mode 100644
index 00000000..3bd7dd0a
--- /dev/null
+++ b/apps/mobile/android/app/build.gradle.kts
@@ -0,0 +1,71 @@
+import java.util.Properties
+import java.io.FileInputStream
+
+plugins {
+ id("com.android.application")
+ id("kotlin-android")
+ // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
+ id("dev.flutter.flutter-gradle-plugin")
+}
+
+val keystoreProperties = Properties()
+val keystorePropertiesFile = rootProject.file("key.properties")
+
+if (keystorePropertiesFile.exists()) {
+ keystoreProperties.load(FileInputStream(keystorePropertiesFile))
+}
+
+val releaseSigningReady = keystorePropertiesFile.exists() && listOf(
+ "keyAlias",
+ "keyPassword",
+ "storeFile",
+ "storePassword",
+).all { key ->
+ !keystoreProperties.getProperty(key).isNullOrBlank()
+}
+
+android {
+ namespace = "com.example.error_log_app"
+ compileSdk = flutter.compileSdkVersion
+ ndkVersion = flutter.ndkVersion
+
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_11
+ targetCompatibility = JavaVersion.VERSION_11
+ }
+
+ kotlinOptions {
+ jvmTarget = JavaVersion.VERSION_11.toString()
+ }
+
+ defaultConfig {
+ applicationId = "com.example.error_log_app"
+ minSdk = flutter.minSdkVersion
+ targetSdk = flutter.targetSdkVersion
+ versionCode = flutter.versionCode
+ versionName = flutter.versionName
+ }
+
+ signingConfigs {
+ if (releaseSigningReady) {
+ create("release") {
+ keyAlias = keystoreProperties.getProperty("keyAlias")
+ keyPassword = keystoreProperties.getProperty("keyPassword")
+ storeFile = file(keystoreProperties.getProperty("storeFile")!!)
+ storePassword = keystoreProperties.getProperty("storePassword")
+ }
+ }
+ }
+
+ buildTypes {
+ release {
+ if (releaseSigningReady) {
+ signingConfig = signingConfigs.getByName("release")
+ }
+ }
+ }
+}
+
+flutter {
+ source = "../.."
+}
diff --git a/apps/mobile/android/app/src/debug/AndroidManifest.xml b/apps/mobile/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 00000000..399f6981
--- /dev/null
+++ b/apps/mobile/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/apps/mobile/android/app/src/main/AndroidManifest.xml b/apps/mobile/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 00000000..662c0a81
--- /dev/null
+++ b/apps/mobile/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/apps/mobile/android/app/src/main/kotlin/com/example/error_log_app/MainActivity.kt b/apps/mobile/android/app/src/main/kotlin/com/example/error_log_app/MainActivity.kt
new file mode 100644
index 00000000..682a0f51
--- /dev/null
+++ b/apps/mobile/android/app/src/main/kotlin/com/example/error_log_app/MainActivity.kt
@@ -0,0 +1,5 @@
+package com.example.error_log_app
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity : FlutterActivity()
diff --git a/apps/mobile/android/app/src/main/res/drawable-v21/launch_background.xml b/apps/mobile/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 00000000..ff72df8a
--- /dev/null
+++ b/apps/mobile/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+ -
+
+
+
diff --git a/apps/mobile/android/app/src/main/res/drawable/launch_background.xml b/apps/mobile/android/app/src/main/res/drawable/launch_background.xml
new file mode 100644
index 00000000..26ca43c9
--- /dev/null
+++ b/apps/mobile/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+ -
+
+
+
diff --git a/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 00000000..b3dd6867
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-hdpi/logo.png b/apps/mobile/android/app/src/main/res/mipmap-hdpi/logo.png
new file mode 100644
index 00000000..d6190157
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-hdpi/logo.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-hdpi/splash_brand.png b/apps/mobile/android/app/src/main/res/mipmap-hdpi/splash_brand.png
new file mode 100644
index 00000000..011aa3d8
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-hdpi/splash_brand.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 00000000..28128e45
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-mdpi/logo.png b/apps/mobile/android/app/src/main/res/mipmap-mdpi/logo.png
new file mode 100644
index 00000000..c0719636
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-mdpi/logo.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-mdpi/splash_brand.png b/apps/mobile/android/app/src/main/res/mipmap-mdpi/splash_brand.png
new file mode 100644
index 00000000..9dc13b45
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-mdpi/splash_brand.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 00000000..d973ad0d
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xhdpi/logo.png b/apps/mobile/android/app/src/main/res/mipmap-xhdpi/logo.png
new file mode 100644
index 00000000..997f9506
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-xhdpi/logo.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xhdpi/splash_brand.png b/apps/mobile/android/app/src/main/res/mipmap-xhdpi/splash_brand.png
new file mode 100644
index 00000000..b94145b9
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-xhdpi/splash_brand.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 00000000..5bc861b9
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/logo.png b/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/logo.png
new file mode 100644
index 00000000..ead9e94f
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/logo.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/splash_brand.png b/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/splash_brand.png
new file mode 100644
index 00000000..b6d7e706
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/splash_brand.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 00000000..03b846de
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/logo.png b/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/logo.png
new file mode 100644
index 00000000..0cbef925
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/logo.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/splash_brand.png b/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/splash_brand.png
new file mode 100644
index 00000000..8f296f48
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/splash_brand.png differ
diff --git a/apps/mobile/android/app/src/main/res/values-night/styles.xml b/apps/mobile/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 00000000..06952be7
--- /dev/null
+++ b/apps/mobile/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/apps/mobile/android/app/src/main/res/values/styles.xml b/apps/mobile/android/app/src/main/res/values/styles.xml
new file mode 100644
index 00000000..cb1ef880
--- /dev/null
+++ b/apps/mobile/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/apps/mobile/android/app/src/profile/AndroidManifest.xml b/apps/mobile/android/app/src/profile/AndroidManifest.xml
new file mode 100644
index 00000000..399f6981
--- /dev/null
+++ b/apps/mobile/android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/apps/mobile/android/build.gradle.kts b/apps/mobile/android/build.gradle.kts
new file mode 100644
index 00000000..dbee657b
--- /dev/null
+++ b/apps/mobile/android/build.gradle.kts
@@ -0,0 +1,24 @@
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+val newBuildDir: Directory =
+ rootProject.layout.buildDirectory
+ .dir("../../build")
+ .get()
+rootProject.layout.buildDirectory.value(newBuildDir)
+
+subprojects {
+ val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
+ project.layout.buildDirectory.value(newSubprojectBuildDir)
+}
+subprojects {
+ project.evaluationDependsOn(":app")
+}
+
+tasks.register("clean") {
+ delete(rootProject.layout.buildDirectory)
+}
diff --git a/apps/mobile/android/gradle.properties b/apps/mobile/android/gradle.properties
new file mode 100644
index 00000000..f018a618
--- /dev/null
+++ b/apps/mobile/android/gradle.properties
@@ -0,0 +1,3 @@
+org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
+android.useAndroidX=true
+android.enableJetifier=true
diff --git a/apps/mobile/android/gradle/wrapper/gradle-wrapper.properties b/apps/mobile/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..ac3b4792
--- /dev/null
+++ b/apps/mobile/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,5 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip
diff --git a/apps/mobile/android/key.properties.example b/apps/mobile/android/key.properties.example
new file mode 100644
index 00000000..b996eb49
--- /dev/null
+++ b/apps/mobile/android/key.properties.example
@@ -0,0 +1,4 @@
+storeFile=path/to/release-keystore.jks
+keyAlias=error-correction
+keyPassword=change-me
+storePassword=change-me
diff --git a/apps/mobile/android/settings.gradle.kts b/apps/mobile/android/settings.gradle.kts
new file mode 100644
index 00000000..cd0048ad
--- /dev/null
+++ b/apps/mobile/android/settings.gradle.kts
@@ -0,0 +1,41 @@
+pluginManagement {
+ val flutterSdkPath =
+ run {
+ val properties = java.util.Properties()
+ file("local.properties").inputStream().use { properties.load(it) }
+ val flutterSdkPath = properties.getProperty("flutter.sdk")
+ require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
+ flutterSdkPath
+ }
+
+ includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
+
+ repositories {
+ maven("https://maven.aliyun.com/repository/gradle-plugin")
+ maven("https://maven.aliyun.com/repository/google")
+ maven("https://maven.aliyun.com/repository/public")
+ google()
+ mavenCentral()
+ gradlePluginPortal()
+ }
+}
+
+plugins {
+ id("dev.flutter.flutter-plugin-loader") version "1.0.0"
+ id("com.android.application") version "8.9.1" apply false
+ id("org.jetbrains.kotlin.android") version "2.1.0" apply false
+}
+
+
+dependencyResolutionManagement {
+ repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
+ repositories {
+ maven("https://maven.aliyun.com/repository/google")
+ maven("https://maven.aliyun.com/repository/public")
+ maven("https://storage.googleapis.com/download.flutter.io")
+ google()
+ mavenCentral()
+ }
+}
+
+include(":app")
diff --git a/ui-showcase/public/logo.svg b/apps/mobile/assets/logo.svg
similarity index 100%
rename from ui-showcase/public/logo.svg
rename to apps/mobile/assets/logo.svg
diff --git a/apps/mobile/devtools_options.yaml b/apps/mobile/devtools_options.yaml
new file mode 100644
index 00000000..fa0b357c
--- /dev/null
+++ b/apps/mobile/devtools_options.yaml
@@ -0,0 +1,3 @@
+description: This file stores settings for Dart & Flutter DevTools.
+documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
+extensions:
diff --git a/apps/mobile/ios/.gitignore b/apps/mobile/ios/.gitignore
new file mode 100644
index 00000000..7a7f9873
--- /dev/null
+++ b/apps/mobile/ios/.gitignore
@@ -0,0 +1,34 @@
+**/dgph
+*.mode1v3
+*.mode2v3
+*.moved-aside
+*.pbxuser
+*.perspectivev3
+**/*sync/
+.sconsign.dblite
+.tags*
+**/.vagrant/
+**/DerivedData/
+Icon?
+**/Pods/
+**/.symlinks/
+profile
+xcuserdata
+**/.generated/
+Flutter/App.framework
+Flutter/Flutter.framework
+Flutter/Flutter.podspec
+Flutter/Generated.xcconfig
+Flutter/ephemeral/
+Flutter/app.flx
+Flutter/app.zip
+Flutter/flutter_assets/
+Flutter/flutter_export_environment.sh
+ServiceDefinitions.json
+Runner/GeneratedPluginRegistrant.*
+
+# Exceptions to above rules.
+!default.mode1v3
+!default.mode2v3
+!default.pbxuser
+!default.perspectivev3
diff --git a/apps/mobile/ios/Flutter/AppFrameworkInfo.plist b/apps/mobile/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 00000000..1dc6cf76
--- /dev/null
+++ b/apps/mobile/ios/Flutter/AppFrameworkInfo.plist
@@ -0,0 +1,26 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ App
+ CFBundleIdentifier
+ io.flutter.flutter.app
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ App
+ CFBundlePackageType
+ FMWK
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1.0
+ MinimumOSVersion
+ 13.0
+
+
diff --git a/apps/mobile/ios/Flutter/Debug.xcconfig b/apps/mobile/ios/Flutter/Debug.xcconfig
new file mode 100644
index 00000000..592ceee8
--- /dev/null
+++ b/apps/mobile/ios/Flutter/Debug.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/apps/mobile/ios/Flutter/Release.xcconfig b/apps/mobile/ios/Flutter/Release.xcconfig
new file mode 100644
index 00000000..592ceee8
--- /dev/null
+++ b/apps/mobile/ios/Flutter/Release.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/apps/mobile/ios/Runner.xcodeproj/project.pbxproj b/apps/mobile/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 00000000..74f321d9
--- /dev/null
+++ b/apps/mobile/ios/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,616 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 54;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+ 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+ 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 97C146E61CF9000F007C117D /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 97C146ED1CF9000F007C117D;
+ remoteInfo = Runner;
+ };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ );
+ name = "Embed Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
+ 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; };
+ 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
+ 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
+ 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 97C146EB1CF9000F007C117D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 331C8082294A63A400263BE5 /* RunnerTests */ = {
+ isa = PBXGroup;
+ children = (
+ 331C807B294A618700263BE5 /* RunnerTests.swift */,
+ );
+ path = RunnerTests;
+ sourceTree = "";
+ };
+ 9740EEB11CF90186004384FC /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */,
+ );
+ name = Flutter;
+ sourceTree = "";
+ };
+ 97C146E51CF9000F007C117D = {
+ isa = PBXGroup;
+ children = (
+ 9740EEB11CF90186004384FC /* Flutter */,
+ 97C146F01CF9000F007C117D /* Runner */,
+ 97C146EF1CF9000F007C117D /* Products */,
+ 331C8082294A63A400263BE5 /* RunnerTests */,
+ );
+ sourceTree = "";
+ };
+ 97C146EF1CF9000F007C117D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146EE1CF9000F007C117D /* Runner.app */,
+ 331C8081294A63A400263BE5 /* RunnerTests.xctest */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 97C146F01CF9000F007C117D /* Runner */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146FA1CF9000F007C117D /* Main.storyboard */,
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */,
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
+ 97C147021CF9000F007C117D /* Info.plist */,
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+ );
+ path = Runner;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 331C8080294A63A400263BE5 /* RunnerTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
+ buildPhases = (
+ 331C807D294A63A400263BE5 /* Sources */,
+ 331C807F294A63A400263BE5 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 331C8086294A63A400263BE5 /* PBXTargetDependency */,
+ );
+ name = RunnerTests;
+ productName = RunnerTests;
+ productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */;
+ productType = "com.apple.product-type.bundle.unit-test";
+ };
+ 97C146ED1CF9000F007C117D /* Runner */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
+ buildPhases = (
+ 9740EEB61CF901F6004384FC /* Run Script */,
+ 97C146EA1CF9000F007C117D /* Sources */,
+ 97C146EB1CF9000F007C117D /* Frameworks */,
+ 97C146EC1CF9000F007C117D /* Resources */,
+ 9705A1C41CF9048500538489 /* Embed Frameworks */,
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Runner;
+ productName = Runner;
+ productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 97C146E61CF9000F007C117D /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ BuildIndependentTargetsInParallel = YES;
+ LastUpgradeCheck = 1510;
+ ORGANIZATIONNAME = "";
+ TargetAttributes = {
+ 331C8080294A63A400263BE5 = {
+ CreatedOnToolsVersion = 14.0;
+ TestTargetID = 97C146ED1CF9000F007C117D;
+ };
+ 97C146ED1CF9000F007C117D = {
+ CreatedOnToolsVersion = 7.3.1;
+ LastSwiftMigration = 1100;
+ };
+ };
+ };
+ buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 97C146E51CF9000F007C117D;
+ productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 97C146ED1CF9000F007C117D /* Runner */,
+ 331C8080294A63A400263BE5 /* RunnerTests */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 331C807F294A63A400263BE5 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 97C146EC1CF9000F007C117D /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
+ );
+ name = "Thin Binary";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
+ };
+ 9740EEB61CF901F6004384FC /* Run Script */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Run Script";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 331C807D294A63A400263BE5 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 97C146EA1CF9000F007C117D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+ 331C8086294A63A400263BE5 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 97C146ED1CF9000F007C117D /* Runner */;
+ targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
+/* Begin PBXVariantGroup section */
+ 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C146FB1CF9000F007C117D /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "";
+ };
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C147001CF9000F007C117D /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 249021D3217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 13.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Profile;
+ };
+ 249021D4217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.errorLogApp;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Profile;
+ };
+ 331C8088294A63A400263BE5 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.errorLogApp.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Debug;
+ };
+ 331C8089294A63A400263BE5 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.errorLogApp.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Release;
+ };
+ 331C808A294A63A400263BE5 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.errorLogApp.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Profile;
+ };
+ 97C147031CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 13.0;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 97C147041CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 13.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 97C147061CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.errorLogApp;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Debug;
+ };
+ 97C147071CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.errorLogApp;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 331C8088294A63A400263BE5 /* Debug */,
+ 331C8089294A63A400263BE5 /* Release */,
+ 331C808A294A63A400263BE5 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147031CF9000F007C117D /* Debug */,
+ 97C147041CF9000F007C117D /* Release */,
+ 249021D3217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147061CF9000F007C117D /* Debug */,
+ 97C147071CF9000F007C117D /* Release */,
+ 249021D4217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 97C146E61CF9000F007C117D /* Project object */;
+}
diff --git a/apps/mobile/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/apps/mobile/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 00000000..919434a6
--- /dev/null
+++ b/apps/mobile/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/apps/mobile/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/apps/mobile/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 00000000..18d98100
--- /dev/null
+++ b/apps/mobile/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/apps/mobile/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/apps/mobile/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 00000000..f9b0d7c5
--- /dev/null
+++ b/apps/mobile/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/apps/mobile/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/apps/mobile/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 00000000..e3773d42
--- /dev/null
+++ b/apps/mobile/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,101 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/apps/mobile/ios/Runner.xcworkspace/contents.xcworkspacedata b/apps/mobile/ios/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 00000000..1d526a16
--- /dev/null
+++ b/apps/mobile/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/apps/mobile/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/apps/mobile/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 00000000..18d98100
--- /dev/null
+++ b/apps/mobile/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/apps/mobile/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/apps/mobile/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 00000000..f9b0d7c5
--- /dev/null
+++ b/apps/mobile/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/apps/mobile/ios/Runner/AppDelegate.swift b/apps/mobile/ios/Runner/AppDelegate.swift
new file mode 100644
index 00000000..62666446
--- /dev/null
+++ b/apps/mobile/ios/Runner/AppDelegate.swift
@@ -0,0 +1,13 @@
+import Flutter
+import UIKit
+
+@main
+@objc class AppDelegate: FlutterAppDelegate {
+ override func application(
+ _ application: UIApplication,
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
+ ) -> Bool {
+ GeneratedPluginRegistrant.register(with: self)
+ return super.application(application, didFinishLaunchingWithOptions: launchOptions)
+ }
+}
diff --git a/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 00000000..d36b1fab
--- /dev/null
+++ b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,122 @@
+{
+ "images" : [
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "83.5x83.5",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-83.5x83.5@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "1024x1024",
+ "idiom" : "ios-marketing",
+ "filename" : "Icon-App-1024x1024@1x.png",
+ "scale" : "1x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
new file mode 100644
index 00000000..75322537
Binary files /dev/null and b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ
diff --git a/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
new file mode 100644
index 00000000..6a1c011e
Binary files /dev/null and b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ
diff --git a/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
new file mode 100644
index 00000000..887fa91e
Binary files /dev/null and b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ
diff --git a/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
new file mode 100644
index 00000000..e81a6ded
Binary files /dev/null and b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ
diff --git a/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
new file mode 100644
index 00000000..86faf1dc
Binary files /dev/null and b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ
diff --git a/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
new file mode 100644
index 00000000..0f50bf41
Binary files /dev/null and b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ
diff --git a/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
new file mode 100644
index 00000000..9cadc074
Binary files /dev/null and b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ
diff --git a/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
new file mode 100644
index 00000000..887fa91e
Binary files /dev/null and b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ
diff --git a/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
new file mode 100644
index 00000000..635f6b0f
Binary files /dev/null and b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ
diff --git a/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
new file mode 100644
index 00000000..b8b993b1
Binary files /dev/null and b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ
diff --git a/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
new file mode 100644
index 00000000..b8b993b1
Binary files /dev/null and b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ
diff --git a/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
new file mode 100644
index 00000000..25d4e5da
Binary files /dev/null and b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ
diff --git a/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
new file mode 100644
index 00000000..cdc36e08
Binary files /dev/null and b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ
diff --git a/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
new file mode 100644
index 00000000..f65d88de
Binary files /dev/null and b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ
diff --git a/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
new file mode 100644
index 00000000..44b4c84f
Binary files /dev/null and b/apps/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ
diff --git a/apps/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/apps/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
new file mode 100644
index 00000000..0bedcf2f
--- /dev/null
+++ b/apps/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
@@ -0,0 +1,23 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@3x.png",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/apps/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/apps/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
new file mode 100644
index 00000000..9dc13b45
Binary files /dev/null and b/apps/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ
diff --git a/apps/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/apps/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
new file mode 100644
index 00000000..b94145b9
Binary files /dev/null and b/apps/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ
diff --git a/apps/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/apps/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
new file mode 100644
index 00000000..b6d7e706
Binary files /dev/null and b/apps/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ
diff --git a/apps/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/apps/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
new file mode 100644
index 00000000..89c2725b
--- /dev/null
+++ b/apps/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
@@ -0,0 +1,5 @@
+# Launch Screen Assets
+
+You can customize the launch screen with your own desired assets by replacing the image files in this directory.
+
+You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
\ No newline at end of file
diff --git a/apps/mobile/ios/Runner/Base.lproj/LaunchScreen.storyboard b/apps/mobile/ios/Runner/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 00000000..196e7ed9
--- /dev/null
+++ b/apps/mobile/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/apps/mobile/ios/Runner/Base.lproj/Main.storyboard b/apps/mobile/ios/Runner/Base.lproj/Main.storyboard
new file mode 100644
index 00000000..f3c28516
--- /dev/null
+++ b/apps/mobile/ios/Runner/Base.lproj/Main.storyboard
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/apps/mobile/ios/Runner/Info.plist b/apps/mobile/ios/Runner/Info.plist
new file mode 100644
index 00000000..3b90b2b8
--- /dev/null
+++ b/apps/mobile/ios/Runner/Info.plist
@@ -0,0 +1,53 @@
+
+
+
+
+ NSBluetoothAlwaysUsageDescription
+ 需要使用蓝牙
+ NSBluetoothPeripheralUsageDescription
+ 需要使用蓝牙
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ Error Log App
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ error_log_app
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ LSRequiresIPhoneOS
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ CADisableMinimumFrameDurationOnPhone
+
+ UIApplicationSupportsIndirectInputEvents
+
+
+
diff --git a/apps/mobile/ios/Runner/Runner-Bridging-Header.h b/apps/mobile/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 00000000..308a2a56
--- /dev/null
+++ b/apps/mobile/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/apps/mobile/ios/RunnerTests/RunnerTests.swift b/apps/mobile/ios/RunnerTests/RunnerTests.swift
new file mode 100644
index 00000000..86a7c3b1
--- /dev/null
+++ b/apps/mobile/ios/RunnerTests/RunnerTests.swift
@@ -0,0 +1,12 @@
+import Flutter
+import UIKit
+import XCTest
+
+class RunnerTests: XCTestCase {
+
+ func testExample() {
+ // If you add code to the Runner application, consider adding tests here.
+ // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
+ }
+
+}
diff --git a/apps/mobile/lib/app/app.dart b/apps/mobile/lib/app/app.dart
new file mode 100644
index 00000000..ea89e8d7
--- /dev/null
+++ b/apps/mobile/lib/app/app.dart
@@ -0,0 +1,85 @@
+import 'package:flutter/material.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+
+import '../features/auth/data/auth_api.dart';
+import 'router/app_router.dart';
+import 'theme/app_theme.dart';
+
+class MyApp extends StatefulWidget {
+ const MyApp({super.key, this.authApi});
+
+ final AuthApi? authApi;
+
+ @override
+ State createState() => _MyAppState();
+}
+
+class _MyAppState extends State {
+ static const String _themeModeCacheKey = 'theme_mode';
+
+ late final ValueNotifier _themeModeNotifier =
+ ValueNotifier(ThemeMode.dark);
+ late final AuthApi _authApi;
+
+ @override
+ void initState() {
+ super.initState();
+ _authApi = widget.authApi ?? AuthApi();
+ _loadThemeMode();
+ }
+
+ Future _loadThemeMode() async {
+ final prefs = await SharedPreferences.getInstance();
+ final cachedThemeMode = prefs.getString(_themeModeCacheKey);
+
+ if (!mounted || cachedThemeMode == null) {
+ return;
+ }
+
+ _themeModeNotifier.value =
+ cachedThemeMode == 'light' ? ThemeMode.light : ThemeMode.dark;
+ }
+
+ Future _toggleThemeMode() async {
+ final nextThemeMode = _themeModeNotifier.value == ThemeMode.dark
+ ? ThemeMode.light
+ : ThemeMode.dark;
+
+ _themeModeNotifier.value = nextThemeMode;
+
+ final prefs = await SharedPreferences.getInstance();
+ await prefs.setString(
+ _themeModeCacheKey,
+ nextThemeMode == ThemeMode.light ? 'light' : 'dark',
+ );
+ }
+
+ @override
+ void dispose() {
+ _themeModeNotifier.dispose();
+ super.dispose();
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return ValueListenableBuilder(
+ valueListenable: _themeModeNotifier,
+ builder: (context, themeMode, _) {
+ return MaterialApp(
+ title: '智卷错题本',
+ theme: AppTheme.lightTheme,
+ darkTheme: AppTheme.darkTheme,
+ themeMode: themeMode,
+ initialRoute: AppRoutes.home,
+ onGenerateRoute: (settings) => AppRouter.onGenerateRoute(
+ settings,
+ authApi: _authApi,
+ themeModeListenable: _themeModeNotifier,
+ onToggleThemeMode: _toggleThemeMode,
+ ),
+ debugShowCheckedModeBanner: false,
+ );
+ },
+ );
+ }
+}
diff --git a/apps/mobile/lib/app/router/app_router.dart b/apps/mobile/lib/app/router/app_router.dart
new file mode 100644
index 00000000..abd6df12
--- /dev/null
+++ b/apps/mobile/lib/app/router/app_router.dart
@@ -0,0 +1,43 @@
+import 'package:flutter/foundation.dart';
+import 'package:flutter/material.dart';
+
+import '../../features/auth/data/auth_api.dart';
+import '../../features/home/presentation/pages/home_page.dart';
+import '../../features/login/presentation/pages/login_page.dart';
+import '../../features/workspace/presentation/pages/workspace_page.dart';
+
+class AppRoutes {
+ static const String home = '/';
+ static const String login = '/login';
+ static const String workspace = '/workspace';
+}
+
+class AppRouter {
+ static Route onGenerateRoute(
+ RouteSettings settings, {
+ required AuthApi authApi,
+ required ValueListenable themeModeListenable,
+ required VoidCallback onToggleThemeMode,
+ }) {
+ final Widget page = switch (settings.name) {
+ AppRoutes.login => LoginPage(authApi: authApi),
+ AppRoutes.workspace => WorkspacePage(
+ authApi: authApi,
+ themeModeListenable: themeModeListenable,
+ onToggleThemeMode: onToggleThemeMode,
+ ),
+ AppRoutes.home || null => HomePage(
+ authApi: authApi,
+ themeModeListenable: themeModeListenable,
+ onToggleThemeMode: onToggleThemeMode,
+ ),
+ _ => HomePage(
+ authApi: authApi,
+ themeModeListenable: themeModeListenable,
+ onToggleThemeMode: onToggleThemeMode,
+ ),
+ };
+
+ return MaterialPageRoute(settings: settings, builder: (_) => page);
+ }
+}
diff --git a/apps/mobile/lib/app/theme/app_theme.dart b/apps/mobile/lib/app/theme/app_theme.dart
new file mode 100644
index 00000000..96ba7492
--- /dev/null
+++ b/apps/mobile/lib/app/theme/app_theme.dart
@@ -0,0 +1,100 @@
+import 'package:flutter/material.dart';
+
+class AppTheme {
+ static const Color background = Color(0xFF080910);
+ static const Color backgroundAlt = Color(0xFF242426);
+ static const Color lightBackground = Color(0xFFF7F5FF);
+ static const Color lightBackgroundAlt = Color(0xFFFFFFFF);
+ static const Color primary = Color(0xFF8A73F5);
+ static const Color primaryLight = Color(0xFFA796FF);
+ static const Color textPrimary = Color(0xFFFFFFFF);
+ static const Color textSecondary = Color(0xFF9A98A8);
+ static const Color lightTextPrimary = Color(0xFF101323);
+ static const Color lightTextSecondary = Color(0xFF5F6373);
+ static const Color border = Color(0x33FFFFFF);
+ static const Color lightBorder = Color(0x1FA39CBC);
+
+ static ThemeData get darkTheme {
+ return ThemeData(
+ useMaterial3: true,
+ brightness: Brightness.dark,
+ scaffoldBackgroundColor: background,
+ colorScheme: const ColorScheme.dark(
+ primary: primary,
+ secondary: primaryLight,
+ surface: backgroundAlt,
+ ),
+ fontFamily: 'Roboto',
+ );
+ }
+
+ static ThemeData get lightTheme {
+ return ThemeData(
+ useMaterial3: true,
+ brightness: Brightness.light,
+ scaffoldBackgroundColor: lightBackground,
+ colorScheme: const ColorScheme.light(
+ primary: primary,
+ secondary: primaryLight,
+ surface: lightBackgroundAlt,
+ onSurface: lightTextPrimary,
+ ),
+ fontFamily: 'Roboto',
+ );
+ }
+}
+
+class AppThemePalette {
+ const AppThemePalette({required this.isLight});
+
+ factory AppThemePalette.of(BuildContext context) {
+ return AppThemePalette(
+ isLight: Theme.of(context).brightness == Brightness.light,
+ );
+ }
+
+ final bool isLight;
+
+ Color get pageBg => isLight ? AppTheme.lightBackground : AppTheme.background;
+ Color get cardBg => isLight
+ ? AppTheme.lightBackgroundAlt.withOpacity(0.78)
+ : AppTheme.background.withOpacity(0.5);
+ Color get panelBg => cardBg;
+ Color get panel => panelBg;
+ Color get panelBorder => isLight
+ ? AppTheme.lightBorder.withOpacity(0.15)
+ : AppTheme.border.withOpacity(0.08);
+ Color get border => panelBorder;
+ Color get panelBorderStrong =>
+ isLight ? Colors.black.withOpacity(0.18) : const Color(0xFF2B2C34);
+ Color get primary => AppTheme.primary;
+ Color get primaryLight => AppTheme.primaryLight;
+ Color get primaryDeep => AppTheme.primary.withOpacity(0.84);
+ Color get textMain =>
+ isLight ? AppTheme.lightTextPrimary : AppTheme.textPrimary;
+ Color get textSub =>
+ isLight ? AppTheme.lightTextSecondary : AppTheme.textSecondary;
+ Color get chip =>
+ isLight ? const Color(0xFFECE9FF) : Colors.white.withOpacity(0.08);
+ Color get subtleOverlay =>
+ isLight ? Colors.black.withOpacity(0.08) : Colors.white.withOpacity(0.08);
+ Color get controlInactiveBg =>
+ isLight ? Colors.black.withOpacity(0.16) : Colors.white.withOpacity(0.16);
+ Color get progressTrack =>
+ isLight ? Colors.black.withOpacity(0.08) : const Color(0x20FFFFFF);
+ Color get menuBg => isLight ? Colors.white : const Color(0xFF202022);
+ Color get selectedBg =>
+ isLight ? primary.withOpacity(0.08) : Colors.white.withOpacity(0.08);
+ Color get badgeBg =>
+ isLight ? Colors.black.withOpacity(0.05) : Colors.white.withOpacity(0.08);
+ Color get divider =>
+ isLight ? Colors.black.withOpacity(0.06) : Colors.white.withOpacity(0.08);
+ Color get imageBg =>
+ isLight ? const Color(0xFFF5F6FA) : const Color(0xFF202126);
+ Color get emptyPaper =>
+ isLight ? Colors.white : Colors.white.withOpacity(0.92);
+ Color get emptyPaperLine =>
+ isLight ? Colors.black.withOpacity(0.08) : Colors.black.withOpacity(0.10);
+ Color get compareLine => isLight ? AppTheme.primary : const Color(0xFF8C78FF);
+ Color get errorText => const Color(0xFFFF6B6B);
+}
diff --git a/apps/mobile/lib/core/constants/app_assets.dart b/apps/mobile/lib/core/constants/app_assets.dart
new file mode 100644
index 00000000..4a2455df
--- /dev/null
+++ b/apps/mobile/lib/core/constants/app_assets.dart
@@ -0,0 +1,3 @@
+class AppAssets {
+ static const String logo = 'assets/logo.svg';
+}
diff --git a/apps/mobile/lib/core/network/api_client.dart b/apps/mobile/lib/core/network/api_client.dart
new file mode 100644
index 00000000..a7cbb032
--- /dev/null
+++ b/apps/mobile/lib/core/network/api_client.dart
@@ -0,0 +1,423 @@
+import 'dart:convert';
+import 'dart:typed_data';
+
+import 'package:flutter_secure_storage/flutter_secure_storage.dart';
+import 'package:http/http.dart' as http;
+import 'package:shared_preferences/shared_preferences.dart';
+
+abstract interface class SessionStore {
+ Future read();
+
+ Future write(String value);
+
+ Future delete();
+}
+
+class SecureSessionStore implements SessionStore {
+ SecureSessionStore({FlutterSecureStorage? storage})
+ : _storage = storage ?? FlutterSecureStorage();
+
+ static const storageKey = 'auth_session_cookie';
+
+ final FlutterSecureStorage _storage;
+
+ @override
+ Future read() => _storage.read(key: storageKey);
+
+ @override
+ Future write(String value) =>
+ _storage.write(key: storageKey, value: value);
+
+ @override
+ Future delete() => _storage.delete(key: storageKey);
+}
+
+class ApiClient {
+ ApiClient({
+ String? baseUrl,
+ http.Client? httpClient,
+ SessionStore? sessionStore,
+ }) : baseUrl = _normalizeBaseUrl(baseUrl ?? defaultBaseUrl),
+ _httpClient = httpClient ?? http.Client(),
+ _sessionStore = sessionStore ?? SecureSessionStore();
+
+ static const defaultBaseUrl = String.fromEnvironment(
+ 'API_BASE_URL',
+ defaultValue: 'https://lamp.dianchuang.club',
+ );
+ static const sessionCookieKey = SecureSessionStore.storageKey;
+ static const requestTimeout = Duration(seconds: 30);
+
+ final String baseUrl;
+ final http.Client _httpClient;
+ final SessionStore _sessionStore;
+
+ Future