Expand description
文章管理列表页面模块。 文章管理页面(列表 + 回收站,单一路由 + 客户端 tab 切换)。
「全部文章」与「回收站」合并为单一 /admin/posts 路由,用顶部 tab 在二者间
切换。tab 状态与翻页均由客户端 signal 驱动(不走路由、不深链),与 system.rs
的 tab 模式一致:admin 内部页,刷新回到「全部文章」第 1 页即可。
数据加载与写操作仅在 WASM 前端通过 Dioxus server functions 完成。
Re-exports§
pub use Posts_completions::Component::Posts;
Structs§
- Post
RowProps 🔒 - Properties for the
PostRowcomponent. - Posts
Tabs 🔒Props - Properties for the
PostsTabscomponent.
Enums§
- Posts
Tab 🔒 - 文章管理顶部 tab:全部文章 / 回收站。
Constants§
- POSTS_
PER_ 🔒PAGE - 每页展示的文章数量。
Statics§
- POSTS_
TAB_ 🔒GROUP_ ID - tab 组 id 自增计数器:给每处 PostsTabs 实例一个唯一前缀,用于 DOM 测量滑块位置。 (ui.rs 的 FilterTabs 有同款 TAB_GROUP_ID,此处为避免跨模块可见性污染,本地自建。)
Functions§
- AllPosts
List 🔒 - 全部文章列表 tab:分页列表、删除单篇、重建 content_html 缓存。
- PostRow 🔒
- 文章表格行组件,展示单篇文章的标题、状态、日期与操作按钮。
- Posts
- 文章管理入口组件:单一路由 + 客户端 tab 切换。
- Posts
Tabs 🔒 - 文章管理 tab 栏:「全部文章」与「回收站」。
- Rebuild
Cache 🔒Bar - 重建内容缓存工具条子组件。