Expand description
管理后台仪表盘页面模块。 管理后台仪表盘页面。
单页监控 + 可行动导向:统计卡带(真实增量徽章 + 30 日 sparkline)→ 待审
评论行动卡 → 近期文章活动流。动效预算遵循 NN/g/Atlassian 共识(hover
≤200ms、入场 ≤400ms、数字滚动 ≤500ms);接口失败如实呈现「加载失败 +
重试」,不回退成 0 也不骨架永转(设计依据见
docs/research/2026-admin-dashboard-design.md)。
数据仅在 WASM 前端通过 Dioxus server functions 异步加载。
Re-exports§
pub use Admin_completions::Component::Admin;
Structs§
- Count
UpProps 🔒 - Properties for the
CountUpcomponent. - Recent
Post 🔒Item Props - Properties for the
RecentPostItemcomponent. - Sparkline
Props 🔒 - Properties for the
Sparklinecomponent. - Stat
Card 🔒Props - Properties for the
StatCardcomponent. - Trend
Badge 🔒 - 趋势徽章:
positive决定绿色语义样式(与全站 green 徽章约定一致), 文本自带 ↑ 箭头与颜色形成双编码;中性数据(如 +0)走描边样式。
Functions§
- Admin
- CountUp 🔒
- 数字滚动组件:值从 0 以 easeOutQuint 缓动递增到
target(约 450ms)。 - Recent
Post 🔒Item - Props
- Sparkline 🔒
- 迷你折线图:近 30 个自然日每日新建文章数。
- Stat
Card 🔒 - Props