From 8a4172c14de7ec76539091b2e5701bac63f6e92c Mon Sep 17 00:00:00 2001 From: Luke Gustafson <88517757+LukeGus@users.noreply.github.com> Date: Thu, 28 May 2026 22:05:25 -0400 Subject: [PATCH] v2.3.1 (#833) * feat: add host list sort * feat: fixed rdp truncating (taskbar invisible unless resizing window) and improved split screen system * feat: revamp conneciton persistance system to save to backend with a new connections panel to restore old connections and view current ones. Also added new user profile toggle to reopen all tabs (saves and loads from backend). Added user profile toggle for host tray click vs hover. * feat: added WOL button, added proper use of BASE_PATH, toggles/buttons in admin/user profile now are always visible regardless of sidebar width, duplicating hosts not adding jumphost/socks5, keepalive internal not mulitplying into seconds causing a keepalive error, and finally guacamole giving 1_0_0 and 1_1_0 errors * feat: add filter host button, improve alert system UI, save sidebar width to localstorage, and fix host toolbar row overflow (add host going off screen on small sidebar width) * feat: add pin rail toggle, fix command pallete toggle not working, fixed command pallete toggling when typing in a field, made file manager not uppercase, host manager custom ports not loading, guacd hosts made on >=2.2.1, fixed host tags toggling, added reorder snippet sfeature, made snippet folder clllapse and require confimration toggle work, removed file manager color toggle, and fixed macos not displaying GUI until switching to another app and coming back, and jump host servers failing. * feat: use blacksmith caching for docker compile and improve keepalive system for ssh to all match the same implementation and use the data from the host config instead of a predefined value * feat: reset host manager state if the form is left and remove file manager color logic from the removed toggle * feat: update electron version check to use new ui * feat: improve duplication system to proplery map all fields --- .github/workflows/docker.yml | 4 +- docker/entrypoint.sh | 9 +- docker/nginx-https.conf | 18 + docker/nginx.conf | 18 + electron/main.cjs | 4 + index.html | 6 +- package-lock.json | 4 +- package.json | 2 +- public/sw.js | 11 +- scripts/patch-guacamole-lite.cjs | 39 +- src/backend/database/database.ts | 4 + src/backend/database/db/index.ts | 33 ++ src/backend/database/db/schema.ts | 30 ++ src/backend/database/routes/open-tabs.ts | 302 +++++++++++++ .../database/routes/user-preferences.ts | 106 +++++ src/backend/database/routes/users.ts | 4 + src/backend/guacamole/routes.ts | 13 +- src/backend/ssh/docker-console.ts | 60 ++- src/backend/ssh/docker.ts | 79 +++- src/backend/ssh/file-manager.ts | 77 +++- src/backend/ssh/server-stats.ts | 65 ++- src/backend/ssh/terminal-session-manager.ts | 22 +- src/backend/ssh/terminal.ts | 120 ++++- src/backend/ssh/tunnel.ts | 38 +- src/types/index.ts | 3 + src/types/ui-types.ts | 4 + src/ui/AppShell.tsx | 414 +++++++++++++++++- src/ui/components/alert.tsx | 6 +- src/ui/components/section-card.tsx | 16 +- src/ui/dashboard/DashboardTab.tsx | 4 + src/ui/dashboard/panels/alerts/AlertCard.tsx | 118 ++--- .../dashboard/panels/alerts/AlertManager.tsx | 67 ++- .../features/file-manager/FileManagerGrid.tsx | 9 +- .../features/guacamole/GuacamoleDisplay.tsx | 8 +- src/ui/features/terminal/Terminal.tsx | 72 ++- src/ui/locales/en.json | 87 +++- src/ui/main-axios.ts | 93 +++- src/ui/shell/SplitView.tsx | 110 ++++- src/ui/shell/TabBar.tsx | 174 +++++++- src/ui/shell/TabContext.tsx | 101 +---- src/ui/shell/tabUtils.tsx | 3 +- src/ui/sidebar/AppRail.tsx | 28 +- src/ui/sidebar/ConnectionsPanel.tsx | 347 +++++++++++++++ src/ui/sidebar/HostManager.tsx | 18 +- src/ui/sidebar/HostsPanel.tsx | 355 ++++++++++++++- src/ui/sidebar/SidebarTree.tsx | 166 ++++++- src/ui/sidebar/SnippetsPanel.tsx | 327 ++++++++++---- src/ui/sidebar/SplitScreenPanel.tsx | 222 ++++++---- src/ui/sidebar/UserProfilePanel.tsx | 82 ++-- src/ui/user/ElectronVersionCheck.tsx | 12 +- 50 files changed, 3337 insertions(+), 577 deletions(-) create mode 100644 src/backend/database/routes/open-tabs.ts create mode 100644 src/backend/database/routes/user-preferences.ts create mode 100644 src/ui/sidebar/ConnectionsPanel.tsx diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 81d08e9a..6a176eff 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -30,7 +30,7 @@ jobs: platforms: linux/amd64,linux/arm64 - name: Setup Docker Buildx - uses: docker/setup-buildx-action@v4 + uses: useblacksmith/setup-docker-builder@v1 - name: Determine tags id: tags @@ -71,7 +71,7 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push multi-arch image - uses: docker/build-push-action@v7 + uses: useblacksmith/build-push-action@v2 with: context: . file: ./docker/Dockerfile diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index b72467d5..1cd91279 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -138,7 +138,14 @@ nginx -c /tmp/nginx/nginx.conf # Inject runtime BASE_PATH into frontend if configured if [ -n "$BASE_PATH" ]; then echo "Injecting BASE_PATH: $BASE_PATH" - find /app/html -name "index.html" -exec sed -i "s|window.__TERMIX_BASE_PATH__ = \"\"|window.__TERMIX_BASE_PATH__ = \"$BASE_PATH\"|g" {} \; + # Strip trailing slash for use as a path prefix + CLEAN_BASE_PATH="${BASE_PATH%/}" + find /app/html -name "index.html" -exec sed -i "s|window.__TERMIX_BASE_PATH__ = \"\"|window.__TERMIX_BASE_PATH__ = \"$CLEAN_BASE_PATH\"|g" {} \; + # Patch sw.js static asset paths with the base path prefix + find /app/html -name "sw.js" -exec sed -i "s|__TERMIX_SW_BASE_PATH__|$CLEAN_BASE_PATH|g" {} \; +else + # No base path - replace placeholder with empty string so paths stay absolute from root + find /app/html -name "sw.js" -exec sed -i "s|__TERMIX_SW_BASE_PATH__||g" {} \; fi echo "Starting backend services..." diff --git a/docker/nginx-https.conf b/docker/nginx-https.conf index 907d03e3..ad7575ec 100644 --- a/docker/nginx-https.conf +++ b/docker/nginx-https.conf @@ -196,6 +196,24 @@ http { proxy_set_header X-Forwarded-Proto $scheme; } + location ~ ^/open-tabs(/.*)?$ { + proxy_pass http://127.0.0.1:30001; + proxy_http_version 1.1; + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + + location ~ ^/user-preferences(/.*)?$ { + proxy_pass http://127.0.0.1:30001; + proxy_http_version 1.1; + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + location ~ ^/database(/.*)?$ { client_max_body_size 5G; client_body_timeout 300s; diff --git a/docker/nginx.conf b/docker/nginx.conf index 915b959c..35d7989d 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -185,6 +185,24 @@ http { proxy_set_header X-Forwarded-Proto $scheme; } + location ~ ^/open-tabs(/.*)?$ { + proxy_pass http://127.0.0.1:30001; + proxy_http_version 1.1; + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + + location ~ ^/user-preferences(/.*)?$ { + proxy_pass http://127.0.0.1:30001; + proxy_http_version 1.1; + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + location ~ ^/database(/.*)?$ { client_max_body_size 5G; client_body_timeout 300s; diff --git a/electron/main.cjs b/electron/main.cjs index e3849ff4..674a5d10 100644 --- a/electron/main.cjs +++ b/electron/main.cjs @@ -933,6 +933,7 @@ function createWindow() { mainWindow.once("ready-to-show", () => { mainWindow.show(); + mainWindow.focus(); }); setTimeout(() => { @@ -2602,6 +2603,9 @@ app.on("window-all-closed", () => { app.on("activate", () => { if (BrowserWindow.getAllWindows().length === 0) { createWindow(); + } else if (mainWindow) { + mainWindow.show(); + mainWindow.focus(); } }); diff --git a/index.html b/index.html index 94725365..da71ea34 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ - + @@ -12,8 +12,8 @@ content="black-translucent" /> - - + + Termix