Expand description
关于页:单栏编辑排版。站点简介、常写标签条形图、每年篇数柱状图、技术栈与版本、
入口卡片与订阅。统计全部来自已缓存的公开接口,在 LazyRoute::data 里一次创建
(hooks::ssr_resource::route_data)。
Structs§
- About
Entry 🔒Props - Props for the
AboutEntrycomponent. - About
Route - 关于页路由,对应
/about(SsrMode::InOrder)。 - About
Stats 🔒Props - Props for the
AboutStatscomponent. - About
Stats 🔒Skeleton Props - Props for the
AboutStatsSkeletoncomponent. - TagBars
Props 🔒 - Props for the
TagBarscomponent. - Year
Bars 🔒Props - Props for the
YearBarscomponent.
Constants§
- BAR_
MAX_ 🔒PX - 柱子的最大高度(px),与样式里的绘图区一致。
- MAX_
YEARS 🔒 - 柱状图最多显示的年份数(取最近的)。
- TOP_
TAGS 🔒 - 条形图列出的标签数。
Functions§
- About
Entry 🔒 - 入口卡片:站内路由的普通链接,点击由路由协调器接管做客户端导航。
- About
Stats 🔒 - Required Props
- About
Stats 🔒Skeleton - TagBars 🔒
- 写得最多的标签:横向条形,长度按篇数相对最多的标签。
- Year
Bars 🔒 - 每年写下的篇数:纵向柱子,今年(最后一年)用 Clay 标出;数值直接写在柱顶。
- __
About 🔒Route_ View - bar_
height 🔒 - 柱高至少 2px,0 篇的年份也留一条基线。
- bar_
percent 🔒 - fetch_
release 🔒 - fetch_
years 🔒
Type Aliases§
- Release 🔒
- 最新发布的版本号与可选日期。