diff --git a/controller/copy_build.go b/controller/copy_build.go index 0423716..4a28064 100644 --- a/controller/copy_build.go +++ b/controller/copy_build.go @@ -13,7 +13,7 @@ import ( socketio "github.com/googollee/go-socket.io" ) -func copyBuild(server *socketio.Server, plant string, drive string) { +func copyBuild(server *socketio.Server, plant string, location string) { // Load from environment in real-life code! user := os.Getenv("ADM_USER") pass := os.Getenv("ADM_PASS") @@ -21,7 +21,7 @@ func copyBuild(server *socketio.Server, plant string, drive string) { // latest build latestbuild := lastestBuild() src := latestbuild - plantServer := fmt.Sprintf("\\\\%v\\%v$\\lst", plant, drive) + plantServer := fmt.Sprintf("\\\\%v\\%v", plant, location) // Build PowerShell psScript := fmt.Sprintf(` diff --git a/controller/index.html b/controller/index.html index 04ac2bb..75bb008 100644 --- a/controller/index.html +++ b/controller/index.html @@ -32,6 +32,28 @@ .error { color: #f33; } + #server-buttons { + display: grid; + grid-template-columns: repeat(4, 1fr); /* 4 equal columns */ + gap: 0.75rem; /* roughly Tailwind gap-3 */ + margin: 1rem 0; + } + + #server-buttons button { + padding: 0.5rem 1rem; + font-family: monospace; + border: 1px solid #444; + background: #222; + color: #eee; + cursor: pointer; + border-radius: 4px; + transition: all 0.2s ease; + } + + #server-buttons button:hover { + background: #333; + border-color: #888; + } @@ -74,15 +96,9 @@
-
- - - - - - - - +
+
+