From e616b588a758f5eef4e40d7b8b68f8789db308c0 Mon Sep 17 00:00:00 2001 From: Mikayla Dobson Date: Sun, 24 Mar 2024 19:41:31 +0000 Subject: [PATCH] couple of styling fixes --- Makefile | 11 ++++++++- main.go | 2 +- .../components/parsed-packing-stage.html | 2 +- templates/index.html | 2 +- templates/items/entity-edit.html | 18 +++++++-------- templates/items/entity-list.html | 12 ---------- templates/items/entity-row.html | 23 +++++++++++-------- 7 files changed, 35 insertions(+), 35 deletions(-) diff --git a/Makefile b/Makefile index 98a9197..2f37317 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,16 @@ test: ## build: build a binary .PHONY: build build: test - go build -o ./app -v + sudo rm -f mikayla-moving + go build -o ./mikayla-moving -v + sudo cp mikayla-moving /usr/bin/mikayla-moving + +# restart: rebuild and restart the systemd service running the project +.PHONY: restart +restart: + sudo systemctl stop mikayla-moving + make build + sudo systemctl restart mikayla-moving ## docker-build: build project into a docker container image .PHONY: docker-build diff --git a/main.go b/main.go index d4c35b2..1e852d5 100644 --- a/main.go +++ b/main.go @@ -47,7 +47,7 @@ func main() { boxActions := routes.Boxes(html) boxItemActions := routes.BoxItems(html) - + router.Handle("/items/edit", web.Action(itemActions.Edit)) router.Handle("/items/delete", web.Action(itemActions.Delete)) diff --git a/templates/components/parsed-packing-stage.html b/templates/components/parsed-packing-stage.html index 4d4da4f..f4342ba 100644 --- a/templates/components/parsed-packing-stage.html +++ b/templates/components/parsed-packing-stage.html @@ -1,6 +1,6 @@ {{ if eq . 0 }} - + Essentials {{ else if eq . 1 }} diff --git a/templates/index.html b/templates/index.html index 7d58e79..6a38143 100644 --- a/templates/index.html +++ b/templates/index.html @@ -10,7 +10,7 @@
-