Actualiza la estructura de los recursos estáticos

Se prepara PageTop para permitir en el futuro compilar los fuentes
incluyendo los recursos estáticos dentro del ejecutable (tal y como está
ahora), o usando una carpeta externa "static".
This commit is contained in:
Manuel Cillero 2022-02-22 20:45:18 +01:00
parent 7f8b94eafe
commit eddb397bc7
35 changed files with 48 additions and 125 deletions

View file

@ -5,14 +5,14 @@ include!(concat!(env!("OUT_DIR"), "/aliner.rs"));
pub struct AlinerTheme;
impl Theme for AlinerTheme {
fn name(&self) -> &str {
"Aliner"
fn name(&self) -> String {
"Aliner".to_string()
}
fn configure_theme(&self, cfg: &mut server::web::ServiceConfig) {
cfg.service(actix_web_static_files::ResourceFiles::new(
"/aliner",
generate()
assets()
));
}