🍱 Incorpora el conjunto "minimal" de componentes
This commit is contained in:
parent
ee46003c15
commit
c657970b5a
9 changed files with 32 additions and 10 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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> {
|
||||
|
|
|
|||
|
|
@ -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> {
|
||||
|
|
|
|||
|
|
@ -14,10 +14,11 @@ repository = "https://github.com/manuelcillero/pagetop"
|
|||
license = "Apache-2.0 OR MIT"
|
||||
|
||||
[dependencies]
|
||||
pagetop = { path = "../pagetop", version = "0.0" }
|
||||
pagetop-jquery = { path = "../pagetop-jquery", version = "0.0" }
|
||||
pagetop = { version = "0.0", path = "../pagetop" }
|
||||
pagetop-jquery = { version = "0.0", path = "../pagetop-jquery" }
|
||||
pagetop-minimal = { version = "0.0", path = "../pagetop-minimal" }
|
||||
static-files = "0.2.3"
|
||||
maud = "0.25.0"
|
||||
|
||||
[build-dependencies]
|
||||
pagetop-build = { path = "../pagetop-build", version = "0.0" }
|
||||
pagetop-build = { version = "0.0", path = "../pagetop-build" }
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
use pagetop::prelude::*;
|
||||
use pagetop_minimal::component::*;
|
||||
|
||||
pub_handle!(THEME_BULMIX);
|
||||
|
||||
|
|
@ -16,7 +17,10 @@ impl ModuleTrait for Bulmix {
|
|||
}
|
||||
|
||||
fn dependencies(&self) -> Vec<ModuleStaticRef> {
|
||||
vec![&pagetop_jquery::JQuery]
|
||||
vec![
|
||||
&pagetop_jquery::JQuery,
|
||||
&pagetop_minimal::Minimal,
|
||||
]
|
||||
}
|
||||
|
||||
fn configure_service(&self, cfg: &mut server::web::ServiceConfig) {
|
||||
|
|
|
|||
|
|
@ -14,9 +14,10 @@ repository = "https://github.com/manuelcillero/pagetop"
|
|||
license = "Apache-2.0 OR MIT"
|
||||
|
||||
[dependencies]
|
||||
pagetop = { path = "../pagetop", version = "0.0" }
|
||||
pagetop = { version = "0.0", path = "../pagetop" }
|
||||
pagetop-minimal = { version = "0.0", path = "../pagetop-minimal" }
|
||||
static-files = "0.2.3"
|
||||
maud = "0.25.0"
|
||||
|
||||
[build-dependencies]
|
||||
pagetop-build = { path = "../pagetop-build", version = "0.0" }
|
||||
pagetop-build = { version = "0.0", path = "../pagetop-build" }
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
use pagetop::prelude::*;
|
||||
use pagetop_minimal::component::*;
|
||||
|
||||
pub_handle!(MODULE_DEMOHOME);
|
||||
|
||||
|
|
@ -21,6 +22,10 @@ impl ModuleTrait for HomeDemo {
|
|||
Some(l("module_description"))
|
||||
}
|
||||
|
||||
fn dependencies(&self) -> Vec<ModuleStaticRef> {
|
||||
vec![&pagetop_minimal::Minimal]
|
||||
}
|
||||
|
||||
fn configure_service(&self, cfg: &mut server::web::ServiceConfig) {
|
||||
serve_static_files!(cfg, "/homedemo", bundle_homedemo);
|
||||
cfg.route("/", server::web::get().to(demo));
|
||||
|
|
|
|||
|
|
@ -15,5 +15,6 @@ repository = "https://github.com/manuelcillero/pagetop"
|
|||
license = "Apache-2.0 OR MIT"
|
||||
|
||||
[dependencies]
|
||||
pagetop = { path = "../pagetop", version = "0.0", features = ["database"], default-features = false }
|
||||
pagetop = { version = "0.0", path = "../pagetop", features = ["database"], default-features = false }
|
||||
pagetop-minimal = { version = "0.0", path = "../pagetop-minimal" }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
use pagetop::prelude::*;
|
||||
use pagetop_minimal::component::*;
|
||||
|
||||
pub_handle!(MODULE_USER);
|
||||
|
||||
|
|
@ -21,6 +22,10 @@ impl ModuleTrait for User {
|
|||
Some(l("module_description"))
|
||||
}
|
||||
|
||||
fn dependencies(&self) -> Vec<ModuleStaticRef> {
|
||||
vec![&pagetop_minimal::Minimal]
|
||||
}
|
||||
|
||||
fn configure_service(&self, cfg: &mut server::web::ServiceConfig) {
|
||||
cfg.route("/user/login", server::web::get().to(login));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue