Files
echart/continuation.md
T
simonandClaude Opus 4.7 080d6da44c refactor: 前端库清理、页面废弃、DB→API 数据源替换
- 删除重复库文件:lib/DataTables-2/、lib/echarts/、libai/、css/fontawesome/ 等 179 个冗余文件
- 下载外部 CDN 到本地:Mermaid、AOS、Google Fonts(Inter/Noto Serif SC/Noto Sans SC)
- 所有第三方库统一到 lib/,按库名-版本号命名
- 更新 8 个 research HTML 文件引用路径

- stock_his_pro → /api/stockbasic/(getStockHist、recentPrice)
- stock_all_pro → /api/stockinfo/(tscodeToName)
- index_hist_pro → /api/indexDatas/(getIndexData)
- 新增 callDoorcomeApi() 共享函数
- 被替换表的 DB 查询代码完全删除,无回退

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-07 15:50:39 +08:00

47 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Continuation
## 当前状态
前端库清理、机构持仓页面废弃、DB→API 数据源替换已全部完成。
## 已完成
1. **前端库清理与标准化**
- 删除重复库文件:`lib/DataTables-2/``lib/echarts/``libai/``css/fontawesome/` 等 ~695K 行冗余代码
- 下载外部 CDN 到本地:Mermaid 10.6.1、AOS 2.3.1、Google FontsInter/Noto Serif SC/Noto Sans SC
- 统一命名规范:`lib/js/库名-版本号.js``lib/css/库名-版本号.css`
- 更新所有 HTML/PHP 引用路径(8 个 research 页面、news/test-index.html
2. **废弃机构持仓图表页面**
- `chartSix.php``chartThree.php``stock_ih.php``index_ih.php` 移至 `deprecated/`
-`index.php``index-2.php` 移除导航链接
3. **DB→API 数据源替换**
- 新增 `callDoorcomeApi()` 共享函数(`inc/functions.inc.php`
- `stock_his_pro``/api/stockbasic/``getStockHist()``recentPrice()`
- `stock_all_pro``/api/stockinfo/``tscodeToName()`
- `index_hist_pro``/api/indexDatas/``getIndexData()`
- 所有替换不保留 DB 回退,API 不可用时函数返回空值
4. **数据库表文档**
- `DB_REFERENCE.md` 持续更新,标记已替换表状态
## 当前工作
无进行中的任务。
## 未完成
- `moneyflow_hsgt_pro/ext``estate_*` 等表数据陈旧但无 API 可替,维持现状
- 无 PHP 本地运行环境,语法检查在部署服务器执行
## 关键设计决策
- 所有第三方库统一到 `lib/` 目录,按 `库名-版本号` 命名,字体不重命名
- `stock_his_pro``stock_all_pro``index_hist_pro` 三张表的数据来源切换为 API.doorcome.cn,本地 DB 查询代码已删除
- Google Fonts 本地化:字体文件存储于 `lib/webfonts/google/`CSS 文件 `lib/css/google-fonts-extended.css`
## 下一步
由用户指定。