♻️ Código revisado con cargo fmt/clippy

This commit is contained in:
Manuel Cillero 2023-02-03 22:42:49 +01:00
parent b02c729864
commit 0ec0f1a961
7 changed files with 25 additions and 14 deletions

View file

@ -1,3 +1,3 @@
fn main() -> std::io::Result<()> {
pagetop_build::bundle_resources("./static", "mengamenu", None)
pagetop_build::bundle_resources("./static", "megamenu", None)
}

View file

@ -186,14 +186,14 @@ impl ComponentTrait for MegaMenu {
fn default_render(&self, rcx: &mut RenderContext) -> Markup {
rcx.alter(ContextOp::AddStyleSheet(
StyleSheet::located("/megamenu/css/menu.css").with_version("1.1.1"),
))
.alter(ContextOp::AddStyleSheet(
StyleSheet::located("/megamenu/css/menu-clean.css").with_version("1.1.1"),
))
.alter(ContextOp::AddJavaScript(
JavaScript::located("/megamenu/js/menu.min.js").with_version("1.1.1"),
));
StyleSheet::located("/megamenu/css/menu.css").with_version("1.1.1"),
))
.alter(ContextOp::AddStyleSheet(
StyleSheet::located("/megamenu/css/menu-clean.css").with_version("1.1.1"),
))
.alter(ContextOp::AddJavaScript(
JavaScript::located("/megamenu/js/menu.min.js").with_version("1.1.1"),
));
pagetop_jquery::JQuery::add_jquery(rcx);
let id = rcx.required_id::<MegaMenu>(self.id());