Añade soporte nativo a Bootstrap con un nuevo tema

This commit is contained in:
Manuel Cillero 2022-02-21 00:28:22 +01:00
parent d38df3a5b6
commit 7f8b94eafe
37 changed files with 652 additions and 6 deletions

31
build.rs Normal file
View file

@ -0,0 +1,31 @@
use actix_web_static_files::resource_dir;
use std::env;
use std::path::Path;
fn main() {
resource_dir("./resources/assets")
.with_generated_filename(
Path::new(env::var("OUT_DIR").unwrap().as_str())
.join("assets.rs")
)
.with_generated_fn("assets")
.build()
.unwrap();
resource_dir("./src/base/theme/aliner/assets")
.with_generated_filename(
Path::new(env::var("OUT_DIR").unwrap().as_str())
.join("aliner.rs")
)
.build()
.unwrap();
resource_dir("./src/base/theme/bootsier/assets")
.with_generated_filename(
Path::new(env::var("OUT_DIR").unwrap().as_str())
.join("bootsier.rs")
)
.build()
.unwrap();
}