Expand description
后台仪表盘。
问候与常用操作 → 四格数字(已发布、草稿、评论、标签)→ 左栏「每月发布篇数」柱图 与近期文章,右栏最新评论与站点信息。各区块分别加载,失败的区块原位显示「加载失败 + 重试」,不回退成 0。数据仅在 WASM 前端通过 server function 加载(Effect + 世代号, 服务端不请求)。样式见 styles/pages/admin-dashboard.css。
Structs§
- Admin
Props 🔒 - Props for the
Admincomponent. - Dashboard
Route - 仪表盘路由(无 SSR 数据,各区块在客户端独立加载)。
- Latest
Comments 🔒Props - Props for the
LatestCommentscomponent. - Publish
Rhythm 🔒Props - Props for the
PublishRhythmcomponent. - Recent
Posts 🔒Props - Props for the
RecentPostscomponent. - Section 🔒
- 一个独立加载的区块:状态信号 + 世代号(丢弃过期响应)。
- Site
Info 🔒Props - Props for the
SiteInfocomponent. - Stat
Tiles 🔒Props - Props for the
StatTilescomponent.
Enums§
- Load 🔒
- 区块的加载状态。
Functions§
- Admin 🔒
- Latest
Comments 🔒 - Required Props
- Publish
Rhythm 🔒 - 每月发布篇数柱图:12 根柱,本月为陶土色;悬停或键盘聚焦显示提示,其余柱变淡。
- Recent
Posts 🔒 - Required Props
- Site
Info 🔒 - Required Props
- Stat
Tiles 🔒 - 四格数字。各格独立显示加载中与失败,失败时提供一次重试。
- __
Dashboard 🔒Route_ View - chart_
max 🔒 - 柱图纵轴上限:取最大值向上凑到 4 的倍数,网格线落在整数上;全为 0 时为 4。
- comment_
preview 🔒 - 评论正文的一行预览:去掉图片与常见 Markdown 记号,只有图片的评论显示「[图片]」。
- greeting 🔒
- 按本地时间问候。
- tile 🔒
- 一格数字:标签、数值(加载中为骨架)与可选附注;有目标路由时整格是链接。
- top_tag 🔒
- 使用最多的标签。
- weekday_
label 🔒