✨ (admin): Añade la extensión pagetop-admin
Panel de administración extensible: registro de secciones/páginas/ tareas/acciones vía acciones `Declare*`, formularios de configuración automáticos (ConfigForm + SettingsSchema) y persistencia en la tabla `settings`.
This commit is contained in:
parent
c0a5a8c3ab
commit
88acc08b5f
18 changed files with 1847 additions and 0 deletions
14
extensions/pagetop-admin/src/error.rs
Normal file
14
extensions/pagetop-admin/src/error.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
use thiserror::Error;
|
||||
|
||||
/// Errores que puede producir la extensión `pagetop-admin`.
|
||||
#[derive(Debug, Error)]
|
||||
pub enum AdminError {
|
||||
#[error("settings DB error: {0}")]
|
||||
DbError(#[from] pagetop_seaorm::db::DbErr),
|
||||
|
||||
#[error("settings serialization error: {0}")]
|
||||
SerializeError(#[from] serde_json::Error),
|
||||
|
||||
#[error("setting key not found: {0}")]
|
||||
NotFound(String),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue