🎉 [megamenu] Nuevo componente para PageTop

This commit is contained in:
Manuel Cillero 2023-02-03 22:25:34 +01:00
parent 8ec2c698c8
commit b02c729864
19 changed files with 184 additions and 105 deletions

View file

@ -0,0 +1,23 @@
use pagetop::prelude::*;
pub mod component;
pub_handle!(MODULE_MEGAMENU);
include!(concat!(env!("OUT_DIR"), "/megamenu.rs"));
pub struct MegaMenu;
impl ModuleTrait for MegaMenu {
fn handle(&self) -> Handle {
MODULE_MEGAMENU
}
fn dependencies(&self) -> Vec<ModuleStaticRef> {
vec![&pagetop_jquery::JQuery]
}
fn configure_service(&self, cfg: &mut server::web::ServiceConfig) {
serve_static_files!(cfg, "/megamenu", bundle_megamenu);
}
}