🎨 Incluye componentes base originales de PageTop
This commit is contained in:
parent
fc579fc29d
commit
ee46003c15
29 changed files with 4276 additions and 11 deletions
|
|
@ -1,17 +1,20 @@
|
|||
use pagetop::prelude::*;
|
||||
|
||||
pub_handle!(THEME_MINIMAL);
|
||||
pub mod component;
|
||||
pub mod module;
|
||||
|
||||
pub_handle!(MODULE_MINIMAL);
|
||||
|
||||
include!(concat!(env!("OUT_DIR"), "/minimal.rs"));
|
||||
|
||||
pub struct Minimal;
|
||||
|
||||
impl ModuleTrait for Minimal {
|
||||
fn handle(&self) -> Handle {
|
||||
THEME_MINIMAL
|
||||
MODULE_MINIMAL
|
||||
}
|
||||
|
||||
fn theme(&self) -> Option<ThemeStaticRef> {
|
||||
Some(&Minimal)
|
||||
fn configure_service(&self, cfg: &mut server::web::ServiceConfig) {
|
||||
serve_static_files!(cfg, "/minimal", bundle_minimal);
|
||||
}
|
||||
}
|
||||
|
||||
impl ThemeTrait for Minimal {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue