Skip to main content

Module changelog

Module changelog 

Source
Expand description

更新日志页面模块。

对应路由 /changelog

数据获取:use_server_future 调用 get_changelog server function,取回 编译期内嵌 CHANGELOG.md 的结构化解析结果(版本 → 分类 → 条目 HTML)。 内容随二进制版本固定,只受 SSR 页面缓存 TTL 约束,无需任何主动失效。 页面无路由参数、future 不会重跑,因此无需 router().current() 订阅 (该陷阱详见 post_detail.rs 头文档)。

§布局

双栏:左侧 sticky 版本导航(桌面端)+ 右侧版本卡片列表。 每个版本卡片内按分类(Added / Fixed / Security …)分组,每组带色标 badge。 配色遵循全站 Catppuccin 双强调色约束(详见 changelog.rs 模块文档)。

Re-exports§

pub use Changelog_completions::Component::Changelog;

Structs§

ChangeGroupViewProps 🔒
Properties for the ChangeGroupView component.
VersionCardProps 🔒
Properties for the VersionCard component.
VersionNavItemProps 🔒
Properties for the VersionNavItem component.
VersionNavProps 🔒
Properties for the VersionNav component.

Functions§

ChangeGroupView 🔒
单个分类组视图:badge + 条目列表。
Changelog
更新日志页面组件,对应路由 /changelog
VersionCard 🔒
单个版本卡片。
VersionNav 🔒
版本导航侧栏(桌面端 sticky)。
VersionNavItem 🔒
版本导航侧栏中的单条链接。