Skip to main content

Module dashboard

Module dashboard 

Source
Expand description

后台仪表盘。

问候与常用操作 → 四格数字(已发布、草稿、评论、标签)→ 左栏「每月发布篇数」柱图 与近期文章,右栏最新评论与站点信息。各区块分别加载,失败的区块原位显示「加载失败 + 重试」,不回退成 0。数据仅在 WASM 前端通过 server function 加载(Effect + 世代号, 服务端不请求)。样式见 styles/pages/admin-dashboard.css。

Structs§

AdminProps 🔒
Props for the Admin component.
DashboardRoute
仪表盘路由(无 SSR 数据,各区块在客户端独立加载)。
LatestCommentsProps 🔒
Props for the LatestComments component.
PublishRhythmProps 🔒
Props for the PublishRhythm component.
RecentPostsProps 🔒
Props for the RecentPosts component.
Section 🔒
一个独立加载的区块:状态信号 + 世代号(丢弃过期响应)。
SiteInfoProps 🔒
Props for the SiteInfo component.
StatTilesProps 🔒
Props for the StatTiles component.

Enums§

Load 🔒
区块的加载状态。

Functions§

Admin 🔒
LatestComments 🔒
Required Props
PublishRhythm 🔒
每月发布篇数柱图:12 根柱,本月为陶土色;悬停或键盘聚焦显示提示,其余柱变淡。
RecentPosts 🔒
Required Props
SiteInfo 🔒
Required Props
StatTiles 🔒
四格数字。各格独立显示加载中与失败,失败时提供一次重试。
__DashboardRoute_View 🔒
chart_max 🔒
柱图纵轴上限:取最大值向上凑到 4 的倍数,网格线落在整数上;全为 0 时为 4。
comment_preview 🔒
评论正文的一行预览:去掉图片与常见 Markdown 记号,只有图片的评论显示「[图片]」。
greeting 🔒
按本地时间问候。
tile 🔒
一格数字:标签、数值(加载中为骨架)与可选附注;有目标路由时整格是链接。
top_tag 🔒
使用最多的标签。
weekday_label 🔒