Repository navigation
V12:事件摘要与详情分层,延迟加载单事件数据 - #19
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目标
V11 已把年谱与 timeline 的物理交付解耦;V12 继续处理事件域。原始完整 events 约 394 KiB,事件索引、时间轴、帝王、人物/地点详情和郑和航线此前都可能因为“将来可能点事件”提前拉取整块 events。
V12 只优化在线物理交付与加载门控,不改最终 DATA、不改
generate_report、不改 standalone。实现
src/split_event_asset_v12.py:把完整 events 无损变换为轻量data-events.js摘要核心 + 8 个确定性data-event-detail-*详情 shard;sourceCount;完整来源、年份核验元数据等进入详情 shard;--check;timeline/dynasty首次只加载time,不再预取 events;sourceCount展示来源章数;sync_event_cards_v12.py、V11 → V12 两层后处理和对应门禁。CI #80 实测
V12 事件资源
data-events.js摘要核心:221.9 KiB / 1106 events;event-detail-0526.9 KiB;V12 真实入口传输(零缓存)
time,不预取 events);相比 V11 / V10 的入口收益
风险控制
sync_event_cards_v12.py已纳入 CI 与 refresh,保证事件列表的sourceCount兼容逻辑会真正进入生产app.js;event-detail-05一个详情 shard;timeline / dynasty / person / voyage 均不偷取 events。CI #80 全绿后可 squash merge;合并后继续核对 refresh 生成提交、正式 event shards、main CI 与 Pages。