Skip to main content

Module about

Module about 

Source
Expand description

关于页:单栏编辑排版。站点简介、常写标签条形图、每年篇数柱状图、技术栈与版本、 入口卡片与订阅。统计全部来自已缓存的公开接口,在 LazyRoute::data 里一次创建 (hooks::ssr_resource::route_data)。

Structs§

AboutEntryProps 🔒
Props for the AboutEntry component.
AboutRoute
关于页路由,对应 /about(SsrMode::InOrder)。
AboutStatsProps 🔒
Props for the AboutStats component.
AboutStatsSkeletonProps 🔒
Props for the AboutStatsSkeleton component.
TagBarsProps 🔒
Props for the TagBars component.
YearBarsProps 🔒
Props for the YearBars component.

Constants§

BAR_MAX_PX 🔒
柱子的最大高度(px),与样式里的绘图区一致。
MAX_YEARS 🔒
柱状图最多显示的年份数(取最近的)。
TOP_TAGS 🔒
条形图列出的标签数。

Functions§

AboutEntry 🔒
入口卡片:站内路由的普通链接,点击由路由协调器接管做客户端导航。
AboutStats 🔒
Required Props
AboutStatsSkeleton 🔒
TagBars 🔒
写得最多的标签:横向条形,长度按篇数相对最多的标签。
YearBars 🔒
每年写下的篇数:纵向柱子,今年(最后一年)用 Clay 标出;数值直接写在柱顶。
__AboutRoute_View 🔒
bar_height 🔒
柱高至少 2px,0 篇的年份也留一条基线。
bar_percent 🔒
fetch_release 🔒
fetch_years 🔒

Type Aliases§

Release 🔒
最新发布的版本号与可选日期。