Skip to main content

Module dashboard

Module dashboard 

Source
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§

CountUpProps 🔒
Properties for the CountUp component.
RecentPostItemProps 🔒
Properties for the RecentPostItem component.
SparklineProps 🔒
Properties for the Sparkline component.
StatCardProps 🔒
Properties for the StatCard component.
TrendBadge 🔒
趋势徽章:positive 决定绿色语义样式(与全站 green 徽章约定一致), 文本自带 ↑ 箭头与颜色形成双编码;中性数据(如 +0)走描边样式。

Functions§

Admin
CountUp 🔒
数字滚动组件:值从 0 以 easeOutQuint 缓动递增到 target(约 450ms)。
RecentPostItem 🔒
Props
Sparkline 🔒
迷你折线图:近 30 个自然日每日新建文章数。
StatCard 🔒
Props