Basic frontend

I'm sorry for the big commit

- Added yarte templating engine
- Wrote frontend: all HTML except file input area, basic CSS (themes soon), JS.
No client-side encryption yet. And no working API.
- Simple but handy build system in Makefile
(requires pacman -S entr / apt install entr)
This commit is contained in:
DarkCat09 2024-03-09 16:17:18 +04:00
parent 4b6b3f7da4
commit 96376f2fba
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3
12 changed files with 805 additions and 11 deletions

12
Makefile Normal file
View file

@ -0,0 +1,12 @@
watch-scss:
@sass --watch scss:static
build-scss:
@sass scss:static -s compressed
build:
make build-scss
cargo build --release
dev:
@while sleep 0.1; do find ./templates -type f | entr -d -r cargo run && break; done