Add word-book practice, iOS app shell, and fix embedded WebView blank screen.

Ship dual-track learning (daily accumulation vs textbook),沪教/商务词书 APIs and UI, native iOS wrapper with bundled H5, and production book import on deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-06-06 21:09:27 +08:00
parent 2fae90b597
commit e76fa586f1
76 changed files with 47488 additions and 445 deletions
+20
View File
@@ -126,6 +126,26 @@ npm run dev
浏览器访问:http://localhost:18003
### 词书(沪版 / 商务)
词书目录为全局数据,与「日常积累」练习**完全分开**(独立统计、记忆曲线、选题池)。
```bash
cd backend
source venv/bin/activate
pip install openpyxl # 首次从 GitHub 拉取 xlsx 时需要
# 从 lilinji/English 下载沪版牛津 + BEC 词汇,生成 JSON 并导入库
python -m scripts.fetch_hujiao_books --import-db
# 若已有 backend/data/books/*.json,仅导入数据库:
python -m scripts.import_word_books
```
生产部署后 `deploy/install-production.sh` 会自动执行 `import_word_books`(需随代码发布 `data/books/*.json`)。
内置词书:小学 `hujiao-primary-1``5`、初中 `hujiao-junior-6``9`、高中 `hujiao-senior-1``3`(高一至高三)、`business-daily`(日常商务)。首页可切换「日常积累 / 词书练习」;词书在「词书设置」页下拉选择并调整每日练习量。
## 默认测试账号
注册后即可使用,或自行注册新账号。