From 8cb5749cc97d3063e011b4484afff8b2a2fccd1e Mon Sep 17 00:00:00 2001 From: Jacques HULLU Date: Wed, 20 May 2026 19:53:06 +0200 Subject: [PATCH 1/5] fix(api): enable utoipa-swagger-ui reqwest feature for Windows cross-compile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit utoipa-swagger-ui 7.1.0 build.rs has a host-vs-target cfg mismatch: when cross-compiling from Linux to Windows, the runtime branch picks the (target_os=windows) download path, but the inner cfg-gated block is evaluated on the host, so it's excluded — Ok(()) returns without downloading, then the later File::open panics with NotFound. Enabling the reqwest feature forces the host-side cfg to include the download code regardless of target. Native Linux/macOS builds keep working as before. Co-Authored-By: Claude Opus 4.7 (1M context) --- server/api/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/Cargo.toml b/server/api/Cargo.toml index e7ebbcb..b2da916 100644 --- a/server/api/Cargo.toml +++ b/server/api/Cargo.toml @@ -27,7 +27,7 @@ hex = "0.4" rust-embed = { version = "8", features = ["mime-guess", "interpolate-folder-path"] } mime_guess = "2" utoipa = { version = "4", features = ["axum_extras"] } -utoipa-swagger-ui = { version = "7", features = ["axum"] } +utoipa-swagger-ui = { version = "7", features = ["axum", "reqwest"] } anyhow = "1" sha2 = "0.10" tracing = "0.1" From 8e33e129483cee44a9eaeb63315320be32586dcc Mon Sep 17 00:00:00 2001 From: Jacques HULLU Date: Thu, 21 May 2026 00:01:36 +0200 Subject: [PATCH 2/5] feat(website): add /status page and route SPA under /demo/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Restructure jot.mindlog.today routing: - / → marketing landing (clients/website) - /demo/ → Preact SPA (clients/web, base=/demo/) - /status → live health page (client-side pings /health, /, /mcp, /install.sh) - /oauth/callback → routed to SPA index so OAuth Code+PKCE lands in-app Bundles the str01 deploy tree (compose, nginx, build scripts) that was previously untracked. Co-Authored-By: Claude Opus 4.7 (1M context) --- clients/web/vite.config.ts | 1 + clients/website/index.html | 204 ++++++++++++-- clients/website/public/status.html | 281 +++++++++++++++++++ deploy/str01/README.md | 133 +++++++++ deploy/str01/docs/reconfigure-ttx-gateway.md | 56 ++++ deploy/str01/edge/docker-compose.yml | 24 ++ deploy/str01/edge/nginx.conf | 59 ++++ deploy/str01/jot/.env.example | 2 + deploy/str01/jot/Dockerfile.api | 62 ++++ deploy/str01/jot/Dockerfile.web | 36 +++ deploy/str01/jot/docker-compose.yml | 66 +++++ deploy/str01/jot/nginx/jot-proxy.inc | 9 + deploy/str01/jot/nginx/jot-web.conf | 81 ++++++ deploy/str01/scripts/bootstrap-cert.sh | 24 ++ deploy/str01/scripts/deploy-edge.sh | 30 ++ deploy/str01/scripts/deploy-jot.sh | 19 ++ deploy/str01/scripts/sync.sh | 29 ++ 17 files changed, 1099 insertions(+), 17 deletions(-) create mode 100644 clients/website/public/status.html create mode 100644 deploy/str01/README.md create mode 100644 deploy/str01/docs/reconfigure-ttx-gateway.md create mode 100644 deploy/str01/edge/docker-compose.yml create mode 100644 deploy/str01/edge/nginx.conf create mode 100644 deploy/str01/jot/.env.example create mode 100644 deploy/str01/jot/Dockerfile.api create mode 100644 deploy/str01/jot/Dockerfile.web create mode 100644 deploy/str01/jot/docker-compose.yml create mode 100644 deploy/str01/jot/nginx/jot-proxy.inc create mode 100644 deploy/str01/jot/nginx/jot-web.conf create mode 100755 deploy/str01/scripts/bootstrap-cert.sh create mode 100755 deploy/str01/scripts/deploy-edge.sh create mode 100755 deploy/str01/scripts/deploy-jot.sh create mode 100755 deploy/str01/scripts/sync.sh diff --git a/clients/web/vite.config.ts b/clients/web/vite.config.ts index 3dc247b..481d1f4 100644 --- a/clients/web/vite.config.ts +++ b/clients/web/vite.config.ts @@ -2,6 +2,7 @@ import { defineConfig } from "vite"; import preact from "@preact/preset-vite"; export default defineConfig({ + base: "/demo/", plugins: [preact()], build: { outDir: "dist", emptyOutDir: true }, }); diff --git a/clients/website/index.html b/clients/website/index.html index 7e4003c..3af7a0d 100644 --- a/clients/website/index.html +++ b/clients/website/index.html @@ -18,7 +18,11 @@