Add favicon

This commit is contained in:
Jeremy Wall 2022-12-22 15:01:09 -05:00
parent dec0fc8d6d
commit d7534bff76
7 changed files with 3 additions and 1 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@ -21,9 +21,10 @@ kitchen: wasm kitchen/src/*.rs
release: wasmrelease
cd kitchen; cargo build --release
static-prep: web/index.html web/static/*.css
static-prep: web/index.html web/favicon.ico web/static/*.css
mkdir -p web/dist
cp -r web/index.html web/dist/
cp -r web/favicon.ico web/dist/
cp -r web/static web/dist/
wasmrelease: wasmrelease-dist static-prep

BIN
kitchen/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -371,6 +371,7 @@ pub async fn ui_main(recipe_dir_path: PathBuf, store_path: PathBuf, listen_socke
.expect("Failed to run database migrations");
let router = Router::new()
.route("/", get(|| async { Redirect::temporary("/ui/plan") }))
.route("/favicon.ico", get(|| async { StaticFile("favicon.ico") }))
.route("/ui/*path", get(ui_static_assets))
// TODO(jwall): We should use route_layer to enforce the authorization
// requirements here.

BIN
nix/.DS_Store vendored Normal file

Binary file not shown.

BIN
web/.DS_Store vendored Normal file

Binary file not shown.

BIN
web/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB