diff --git a/Makefile b/Makefile index b1310778..3ca940da 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,8 @@ build: docs ## Build the binaries kind-upload: @echo "===> Building [$(CYAN)dev$(RESET)] version of [$(CYAN)argo-watcher$(RESET)] binary" @CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build -ldflags="-s -w -X main.version=dev" -o argo-watcher ./cmd/argo-watcher + @echo "===> Building web UI" + @cd web && npm run build @echo "===> Building [$(CYAN)argo-watcher$(RESET)] docker image" @docker build -t ghcr.io/shini4i/argo-watcher:dev . @echo "===> Loading [$(CYAN)argo-watcher$(RESET)] docker image into [$(CYAN)kind$(RESET)] cluster" diff --git a/docker-compose.yml b/docker-compose.yml index 531d882b..9c95a868 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,7 +12,7 @@ services: ports: - "5432:5432" backend: - image: golang:1.20-alpine3.16 + image: golang:1.21-alpine3.18 volumes: - .:/app working_dir: /app diff --git a/web/src/Components/Sidebar.js b/web/src/Components/Sidebar.js index 1073a399..fab1e5bd 100644 --- a/web/src/Components/Sidebar.js +++ b/web/src/Components/Sidebar.js @@ -37,9 +37,17 @@ function Sidebar({ open, onClose }) { if (key === 'argo_cd_url' && value && typeof value === 'object' && value.constructor === Object) { return `${value.Scheme}://${value.Host}${value.Path}`; } else if (value && typeof value === 'object' && value.constructor === Object) { - return JSON.stringify(value, null, 2); + return ( + + {JSON.stringify(value, null, 2)} + + ); } - return value.toString(); + return ( + + {value.toString()} + + ); }; const renderContent = () => { @@ -59,8 +67,8 @@ function Sidebar({ open, onClose }) { - Config Key - Config Value + Key + Value @@ -91,12 +99,17 @@ function Sidebar({ open, onClose }) { return ( - - + + Config Data {renderContent()} + + + © {new Date().getFullYear()} Vadim Gedz + + ); }