🍱 Incorpora el conjunto "minimal" de componentes

This commit is contained in:
Manuel Cillero 2023-05-14 18:15:57 +02:00
parent ee46003c15
commit c657970b5a
9 changed files with 32 additions and 10 deletions

View file

@ -15,6 +15,7 @@ repository = "https://github.com/manuelcillero/pagetop"
license = "Apache-2.0 OR MIT"
[dependencies]
pagetop = { path = "../pagetop", version = "0.0" }
pagetop-megamenu = { path = "../pagetop-megamenu", version = "0.0" }
pagetop = { version = "0.0", path = "../pagetop" }
pagetop-minimal = { version = "0.0", path = "../pagetop-minimal" }
pagetop-megamenu = { version = "0.0", path = "../pagetop-megamenu" }
maud = "0.25.0"

View file

@ -22,7 +22,10 @@ impl ModuleTrait for Admin {
}
fn dependencies(&self) -> Vec<ModuleStaticRef> {
vec![&pagetop_megamenu::MegaMenu]
vec![
&pagetop_minimal::Minimal,
&pagetop_megamenu::MegaMenu
]
}
fn actions(&self) -> Vec<HookAction> {

View file

@ -1,5 +1,6 @@
use super::l;
use pagetop::prelude::*;
use pagetop_minimal::component::*;
use pagetop_megamenu::component::{MegaMenu, MegaMenuItem};
pub async fn summary(request: server::HttpRequest) -> ResultPage<Markup, FatalError> {