feat(整合): 新增更新时间轴浏览页面与顶部快捷入口
- 创建 src/data/changelog.json 数据文件 - 添加 ChangelogType 和 ChangelogEntry 类型定义 - 实现更新时间轴页面组件,支持按时间倒序展示 - 添加 /changelog 主路由和 /updates 别名路由 - 在顶部导航右侧添加 History 图标入口,支持激活态高亮 - 使用 Framer Motion 实现渐进式动画效果 - 支持深色模式和响应式布局 via [HAPI](https://hapi.run) Co-Authored-By: HAPI <noreply@hapi.run>
This commit is contained in:
@@ -152,6 +152,26 @@ export interface LearningStats {
|
||||
lastStudyDate: Date;
|
||||
}
|
||||
|
||||
// 更新类型
|
||||
export type ChangelogType =
|
||||
| 'feat'
|
||||
| 'fix'
|
||||
| 'style'
|
||||
| 'refactor'
|
||||
| 'docs'
|
||||
| 'perf'
|
||||
| 'test'
|
||||
| 'chore';
|
||||
|
||||
// 更新记录
|
||||
export interface ChangelogEntry {
|
||||
id?: string; // 可选:推荐提供,便于稳定渲染和后续扩展
|
||||
date: string; // 日期,格式如 "2026-03-08"
|
||||
type: ChangelogType; // 更新类型
|
||||
title: string; // 更新标题
|
||||
scope?: string; // 关联范围,如"整合""风险""矩阵"
|
||||
}
|
||||
|
||||
// 数据流向关系
|
||||
export interface DataFlow {
|
||||
sourceProcessId: string; // 源过程ID
|
||||
|
||||
Reference in New Issue
Block a user