Skip to main content

Module posts

Module posts 

Source
Expand description

文章管理列表页面模块。 文章管理页面(全部文章列表,/admin/posts)。

本页只承载「全部文章」列表;回收站已拆分为独立路由 /admin/posts/trash (见 posts_trash.rs),二者与评论管理共同组成侧边栏「内容管理」子菜单 (issue #17)。翻页由客户端 signal 驱动(不走路由参数)。 数据加载与写操作仅在 WASM 前端通过 Dioxus server functions 完成。

Re-exports§

pub use Posts_completions::Component::Posts;

Structs§

PostRowProps 🔒
Properties for the PostRow component.
PostsHistoryState 🔒

Constants§

POSTS_PER_PAGE 🔒
每页展示的文章数量。

Functions§

AllPostsList 🔒
全部文章列表 tab:分页列表、删除单篇、重建 content_html 缓存。
PostRow 🔒
文章表格行组件,展示单篇文章的标题、状态、日期与操作按钮。
Posts
文章管理入口组件:全部文章列表页。
RebuildCacheBar 🔒
重建内容缓存工具条子组件。