Actualiza estructura de archivos a nueva edición
This commit is contained in:
parent
075c546fd5
commit
7d06cdec19
25 changed files with 35 additions and 30 deletions
33
pagetop/src/core/component.rs
Normal file
33
pagetop/src/core/component.rs
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
mod hook;
|
||||
pub use hook::{
|
||||
BEFORE_RENDER_COMPONENT_HOOK,
|
||||
BeforeRenderComponentHook,
|
||||
};
|
||||
|
||||
mod assets;
|
||||
pub use assets::{
|
||||
Assets,
|
||||
Favicon,
|
||||
JavaScript, JSMode,
|
||||
StyleSheet,
|
||||
};
|
||||
|
||||
mod definition;
|
||||
pub use definition::{
|
||||
AnyComponent,
|
||||
ComponentTrait,
|
||||
component_ref,
|
||||
component_mut,
|
||||
};
|
||||
use definition::render_component;
|
||||
|
||||
mod holder;
|
||||
pub use holder::ComponentsHolder;
|
||||
|
||||
mod all;
|
||||
pub use all::add_component_to;
|
||||
pub(crate) use all::common_components;
|
||||
|
||||
pub fn render_always() -> bool { true }
|
||||
|
||||
pub fn render_never() -> bool { false }
|
||||
Loading…
Add table
Add a link
Reference in a new issue