mirror of
https://github.com/zaphar/kitchen.git
synced 2025-07-21 19:29:49 -04:00
Add favicon
This commit is contained in:
parent
dec0fc8d6d
commit
d7534bff76
3
Makefile
3
Makefile
@ -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
BIN
kitchen/.DS_Store
vendored
Normal file
Binary file not shown.
@ -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
BIN
nix/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
web/.DS_Store
vendored
Normal file
BIN
web/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
web/favicon.ico
Normal file
BIN
web/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Loading…
x
Reference in New Issue
Block a user