From 23fb86f02cb2e3338d97f1ba4b58f62fce761a79 Mon Sep 17 00:00:00 2001 From: jean-philippe martel Date: Mon, 26 Jan 2026 15:29:34 -0500 Subject: [PATCH 1/4] added a base style --- ui/index.html | 14 ++ ui/src/routeTree.gen.ts | 21 ++ ui/src/routes/test-colors.tsx | 195 ++++++++++++++++ ui/src/styles.css | 408 ++++++++++++++++++++++++++++------ 4 files changed, 566 insertions(+), 72 deletions(-) create mode 100644 ui/src/routes/test-colors.tsx diff --git a/ui/index.html b/ui/index.html index be1ac68..2a8e4ba 100644 --- a/ui/index.html +++ b/ui/index.html @@ -29,6 +29,20 @@ } })(); + + +
- diff --git a/ui/rsbuild.config.ts b/ui/rsbuild.config.ts index bb8a4a9..cfe42ea 100644 --- a/ui/rsbuild.config.ts +++ b/ui/rsbuild.config.ts @@ -133,6 +133,12 @@ export default defineConfig({ "Access-Control-Allow-Methods": "GET, POST, OPTIONS", "Access-Control-Allow-Headers": "Content-Type", }, + proxy: { + '/api': { + target: 'http://localhost:3001', + changeOrigin: true, + }, + }, }, tools: { rspack: { @@ -174,7 +180,7 @@ export default defineConfig({ // ? `${bosConfig.app.ui.production}/` // : "auto", filename: { - css: "static/css/[name].css", + css: "[name].css", }, copy: [ { diff --git a/ui/src/lib/auth-client.ts b/ui/src/lib/auth-client.ts index d02a221..66fabec 100644 --- a/ui/src/lib/auth-client.ts +++ b/ui/src/lib/auth-client.ts @@ -3,10 +3,15 @@ import { createAuthClient } from "better-auth/react"; import { siwnClient } from "better-near-auth/client"; function getBaseURL(): string { - if (typeof window !== 'undefined' && window.__RUNTIME_CONFIG__?.hostUrl) { - return window.__RUNTIME_CONFIG__.hostUrl; - } if (typeof window !== 'undefined') { + // In standalone dev mode (port 3002), use local origin with proxy + if (window.location.port === '3002') { + return window.location.origin; + } + // When loaded via host, use hostUrl from runtime config + if (window.__RUNTIME_CONFIG__?.hostUrl) { + return window.__RUNTIME_CONFIG__.hostUrl; + } return window.location.origin; } return ''; diff --git a/ui/src/styles.css b/ui/src/styles.css index 5c551dd..e2f92b3 100644 --- a/ui/src/styles.css +++ b/ui/src/styles.css @@ -214,6 +214,13 @@ code { min-height: 100%; min-height: 100dvh; line-height: 1.5; + -webkit-tap-highlight-color: transparent; + touch-action: manipulation; + } + + #app { + min-height: 100vh; + min-height: 100dvh; } /* Compact typography */ From 8e1eb772c64d9e11b12987c097e425fe5ddb3aa7 Mon Sep 17 00:00:00 2001 From: jean-philippe martel Date: Mon, 26 Jan 2026 18:45:44 -0500 Subject: [PATCH 4/4] Fix the css --- ui/index.html | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/ui/index.html b/ui/index.html index a222d81..311dc0c 100644 --- a/ui/index.html +++ b/ui/index.html @@ -1,24 +1,40 @@ - + - + - + - + - + + + +