Files
Chan/docs/IMPLEMENTATION_REPORT/ECR-008.md
jackyu66gitandCursor dbb6202325 feat(ECR-008): 拆分主站 chart_tv.js 为多模块薄门面
行为冻结物理拆分;保留 initTradingView/dispose 对外 API;无打包器。node --check 全绿。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-07 15:09:48 +08:00

848 B

IMPLEMENTATION_REPORT — ECR-008

Status: Implemented
Date: 2026-08-07
Branch: feature/ECR-008-chart-tv-split

Change summary

chart_tv.js 单体拆为:

File Role
chart_tv_lifecycle.js disposeTradingViewCharts
chart_tv_shell.js chartTvBuildShell(ctx)
chart_tv_indicators.js chartTvRenderIndicators(ctx)
chart_tv_chan.js chartTvRenderChan(ctx)
chart_tv_overlays.js chartTvRenderOverlays(ctx)
chart_tv_finalize.js chartTvFinalize(ctx)
chart_tv.js initTradingView 薄门面

index.html 按 ENG 顺序加载;cache ?v=20260807f

Method

剪切粘贴原 initTradingView 体段;共享绑定经 ctx;绘制语义未改。

Not changed

缠论算法、/api/analyzeconfig/strategies/、主站 WS。