Libera la versión de desarrollo 0.0.14

This commit is contained in:
Manuel Cillero 2022-05-08 13:54:18 +02:00
parent 6b38e4b8ae
commit b3854fe393
5 changed files with 10 additions and 8 deletions

View file

@ -8,7 +8,13 @@ impl AppTrait for Drust {
&pagetop_admin::Admin, &pagetop_admin::Admin,
&pagetop_user::User, &pagetop_user::User,
&pagetop_node::Node, &pagetop_node::Node,
&demopage::Demopage, &pagetop::base::module::demopage::Demopage,
]
}
fn themes(&self) -> Vec<&'static dyn ThemeTrait> {
vec![
&pagetop::base::theme::bulmix::Bulmix,
] ]
} }
} }

View file

@ -1,6 +1,6 @@
[package] [package]
name = "pagetop" name = "pagetop"
version = "0.0.12" version = "0.0.14"
edition = "2021" edition = "2021"
authors = [ authors = [

View file

@ -26,7 +26,6 @@ impl ModuleTrait for Demopage {
async fn demo() -> app::Result<Markup> { async fn demo() -> app::Result<Markup> {
Page::new() Page::new()
.using_theme("Bulmix")
.with_title(l("page_title").as_str()) .with_title(l("page_title").as_str())
.add_to("content", hello_world()) .add_to("content", hello_world())
.add_to("content", hello_world_original()) .add_to("content", hello_world_original())

View file

@ -34,7 +34,6 @@ impl Application {
&base::theme::aliner::Aliner, &base::theme::aliner::Aliner,
&base::theme::minimal::Minimal, &base::theme::minimal::Minimal,
&base::theme::bootsier::Bootsier, &base::theme::bootsier::Bootsier,
&base::theme::bulmix::Bulmix,
]); ]);
// Registra los temas de la aplicación. // Registra los temas de la aplicación.
theme::all::register_themes(app.themes()); theme::all::register_themes(app.themes());

View file

@ -1,10 +1,11 @@
//! Re-exporta recursos comunes. //! Re-exporta recursos comunes.
// Macros. // Macros, globals and helpers.
pub use crate::{ pub use crate::{
args, args,
concat_string, concat_string,
theme_static_files, theme_static_files,
util,
}; };
pub use crate::config::SETTINGS; pub use crate::config::SETTINGS;
@ -33,6 +34,3 @@ pub use crate::core::app::application::Application;
pub use crate::response::page::*; pub use crate::response::page::*;
pub use crate::base::component::*; pub use crate::base::component::*;
pub use crate::base::module::demopage;
pub use crate::util;