Add update script, enhance admin features, and improve styles

- Created a PowerShell script (update.ps1) for automating the process of pulling the latest repository changes, stopping, building, and starting the Docker Compose stack.
- Updated App.jsx to include new admin sections for alarms and integrations, added state management for runner jobs, and enhanced permission checks.
- Extended the API module (api.js) with new endpoints for managing integrations and runner jobs.
- Improved CSS styles for a more compact and responsive layout in the admin interface, focusing on source and datapoint cards.
This commit is contained in:
jhartworks
2026-07-09 15:24:58 +02:00
parent f247d2827d
commit 19d27f9de9
14 changed files with 1077 additions and 54 deletions
+25
View File
@@ -0,0 +1,25 @@
Write-Host "Stopping Docker Compose stack..." -ForegroundColor Yellow
docker compose down
if ($LASTEXITCODE -ne 0) {
Write-Host "docker compose down failed." -ForegroundColor Red
exit $LASTEXITCODE
}
Write-Host "Building Docker Compose stack without cache..." -ForegroundColor Yellow
docker compose build --no-cache
if ($LASTEXITCODE -ne 0) {
Write-Host "docker compose build failed." -ForegroundColor Red
exit $LASTEXITCODE
}
Write-Host "Starting Docker Compose stack..." -ForegroundColor Yellow
docker compose up -d --force-recreate
if ($LASTEXITCODE -ne 0) {
Write-Host "docker compose up failed." -ForegroundColor Red
exit $LASTEXITCODE
}
Write-Host "Docker Compose stack successfully rebuilt and started." -ForegroundColor Green