feat: basic forget support in backend and UI

This commit is contained in:
garethgeorge
2023-11-30 22:42:00 -08:00
parent 7e93e088ef
commit d22d9d1a05
37 changed files with 852 additions and 433 deletions

18
scripts/build-all.sh Executable file
View File

@@ -0,0 +1,18 @@
#! /bin/sh
(cd webui && npm i && npm run build)
for bin in resticui-*; do
rm -f $bin
done
find webui/dist -name '*.map' -exec rm ./{} \;
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o resticui-linux-amd64
GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -o resticui-linux-arm64
GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o resticui-darwin-amd64
GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -o resticui-darwin-arm64
for bin in resticui-*; do
rice append --exec $bin
done

7
scripts/build.sh Executable file
View File

@@ -0,0 +1,7 @@
#! /bin/sh
set -x
(cd webui && npm i && npm run build)
rm -f resticui
go build .
rice append --exec resticui

4
scripts/install-deps.sh Executable file
View File

@@ -0,0 +1,4 @@
#! /bin/sh
set -x
go install github.com/GeertJohan/go.rice/rice@latest

4
scripts/run.sh Executable file
View File

@@ -0,0 +1,4 @@
#! /bin/sh
set -x
DEBUG=1 go run .