From 490cfdb645d20092803102af9d99f5ac3e9e7bf6 Mon Sep 17 00:00:00 2001 From: arolleaguekeng Date: Mon, 6 Jul 2026 01:10:05 +0100 Subject: [PATCH 1/2] refactor: standardize Jura font usage, increase AI token limit, and fix dashboard configuration and dev server settings --- apps/api/api/config/ai.config.ts | 2 +- apps/appgen/apps/we-dev-client/package.json | 2 +- apps/appgen/apps/we-dev-client/vite.config.ts | 4 ++-- .../components/project-card/project-card.css | 4 ++-- .../show-development/show-development.ts | 6 ------ .../pages/ideploy-overview/ideploy-overview.css | 7 +++++++ .../pages/ideploy-overview/ideploy-overview.html | 2 +- apps/main-dashboard/src/styles.css | 13 +++++++++++++ 8 files changed, 27 insertions(+), 13 deletions(-) diff --git a/apps/api/api/config/ai.config.ts b/apps/api/api/config/ai.config.ts index b6c0c6b0e..523bfac15 100644 --- a/apps/api/api/config/ai.config.ts +++ b/apps/api/api/config/ai.config.ts @@ -175,7 +175,7 @@ export const AI_CONFIG = { provider: LLMProvider.GEMINI, modelName: 'gemini-2.5-flash', llmOptions: { - maxOutputTokens: 600, + maxOutputTokens: 1600, temperature: 0.5, topP: 0.95, topK: 40, diff --git a/apps/appgen/apps/we-dev-client/package.json b/apps/appgen/apps/we-dev-client/package.json index cd567f82c..04e844a84 100644 --- a/apps/appgen/apps/we-dev-client/package.json +++ b/apps/appgen/apps/we-dev-client/package.json @@ -8,7 +8,7 @@ "email": "your.email@example.com" }, "scripts": { - "dev": "vite --port 5174", + "dev": "vite --port 5173", "build": "vite build ", "tsc": "tsc", "start": "vite preview --host 0.0.0.0" diff --git a/apps/appgen/apps/we-dev-client/vite.config.ts b/apps/appgen/apps/we-dev-client/vite.config.ts index d0b158eb3..58994ffe0 100644 --- a/apps/appgen/apps/we-dev-client/vite.config.ts +++ b/apps/appgen/apps/we-dev-client/vite.config.ts @@ -3,7 +3,7 @@ import react from '@vitejs/plugin-react'; import path from 'path'; import { viteCommonjs } from '@originjs/vite-plugin-commonjs'; -export default defineConfig(async ({ mode }) => { +export default defineConfig(async ({ mode, command }) => { const glslPlugin = (await import('vite-plugin-glsl')).default; const env = loadEnv(mode, process.cwd(), ''); @@ -42,7 +42,7 @@ export default defineConfig(async ({ mode }) => { }), ], - base: './', + base: command === 'build' ? './' : '/', build: { outDir: 'dist', emptyOutDir: true, diff --git a/apps/main-dashboard/src/app/modules/dashboard/components/project-card/project-card.css b/apps/main-dashboard/src/app/modules/dashboard/components/project-card/project-card.css index 2965f5cc2..d9e3ae369 100644 --- a/apps/main-dashboard/src/app/modules/dashboard/components/project-card/project-card.css +++ b/apps/main-dashboard/src/app/modules/dashboard/components/project-card/project-card.css @@ -108,7 +108,7 @@ } .placeholder-text { - font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif); + font-family: var(--font-jura, 'Jura', sans-serif); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; @@ -172,5 +172,5 @@ -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; - font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif); + font-family: var(--font-jura, 'Jura', sans-serif); } diff --git a/apps/main-dashboard/src/app/modules/dashboard/pages/development/show-development/show-development.ts b/apps/main-dashboard/src/app/modules/dashboard/pages/development/show-development/show-development.ts index eaf8cb84c..3437b1f94 100644 --- a/apps/main-dashboard/src/app/modules/dashboard/pages/development/show-development/show-development.ts +++ b/apps/main-dashboard/src/app/modules/dashboard/pages/development/show-development/show-development.ts @@ -101,12 +101,6 @@ export class ShowDevelopment implements OnInit { } private fetchDevelopmentConfigs(projectId: string): void { - // Prevent multiple calls if already loading - if (this.loading()) { - console.log('Already loading development configs, skipping...'); - return; - } - this.loading.set(true); this.error.set(null); diff --git a/apps/main-dashboard/src/app/modules/dashboard/pages/ideploy-overview/ideploy-overview.css b/apps/main-dashboard/src/app/modules/dashboard/pages/ideploy-overview/ideploy-overview.css index cd8a8ca01..14cdb743d 100644 --- a/apps/main-dashboard/src/app/modules/dashboard/pages/ideploy-overview/ideploy-overview.css +++ b/apps/main-dashboard/src/app/modules/dashboard/pages/ideploy-overview/ideploy-overview.css @@ -453,6 +453,13 @@ margin-top: 0.1rem; } +/* IP address display — keeps Jura but with tighter tracking for legibility */ +.al-ip { + letter-spacing: 0.04em; + font-feature-settings: "tnum" 1; + color: rgba(255, 255, 255, 0.4); +} + /* status chips */ .chip { display: inline-flex; diff --git a/apps/main-dashboard/src/app/modules/dashboard/pages/ideploy-overview/ideploy-overview.html b/apps/main-dashboard/src/app/modules/dashboard/pages/ideploy-overview/ideploy-overview.html index 19e9d8e6e..d82438341 100644 --- a/apps/main-dashboard/src/app/modules/dashboard/pages/ideploy-overview/ideploy-overview.html +++ b/apps/main-dashboard/src/app/modules/dashboard/pages/ideploy-overview/ideploy-overview.html @@ -233,7 +233,7 @@

Serveurs

{{ srv.name }} - {{ srv.ip }} + {{ srv.ip }}
diff --git a/apps/main-dashboard/src/styles.css b/apps/main-dashboard/src/styles.css index 211b1956a..169b102aa 100644 --- a/apps/main-dashboard/src/styles.css +++ b/apps/main-dashboard/src/styles.css @@ -9,6 +9,19 @@ --color-accent: var(--color-accent-500); } +/* Force standard project font Jura globally */ +* { + font-family: 'Jura', sans-serif !important; +} + +/* Permit code segments, icons, and preformatted areas to keep their respective fonts */ +code, pre, i, .pi, [class^="pi-"], [class*=" pi-"] { + font-family: inherit !important; +} +.pi, [class^="pi-"], [class*=" pi-"] { + font-family: 'primeicons' !important; +} + /* PrimeNG Icons */ @import 'primeicons/primeicons.css'; From a9dc2cedd553be07a77c4caca2007dc1f1193cdb Mon Sep 17 00:00:00 2001 From: arolleaguekeng Date: Mon, 6 Jul 2026 01:12:09 +0100 Subject: [PATCH 2/2] fix: rename incorrectly prefixed REACT_REACT_APP_BASE_URL environment variable to REACT_APP_BASE_URL --- apps/appgen/README.md | 2 +- apps/appgen/apps/we-dev-client/src/api/appInfo.ts | 2 +- apps/appgen/apps/we-dev-client/src/api/auth.ts | 8 ++++---- apps/appgen/apps/we-dev-client/src/api/tokens.ts | 2 +- .../chat/components/ChatInput/OptimizedPromptWord.tsx | 2 +- apps/appgen/docs/README.zh.md | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/appgen/README.md b/apps/appgen/README.md index 72004f209..95211e9e9 100644 --- a/apps/appgen/README.md +++ b/apps/appgen/README.md @@ -64,7 +64,7 @@ Rename .env.example to .env and fill in the corresponding content. Client apps/we-dev-client/.env ```shell # SERVER_ADDRESS [MUST*] (eg: http://localhost:3000) -REACT_REACT_APP_BASE_URL= +REACT_APP_BASE_URL= # JWT_SECRET [Optional] JWT_SECRET= diff --git a/apps/appgen/apps/we-dev-client/src/api/appInfo.ts b/apps/appgen/apps/we-dev-client/src/api/appInfo.ts index e53da3e2c..0a0e5268d 100644 --- a/apps/appgen/apps/we-dev-client/src/api/appInfo.ts +++ b/apps/appgen/apps/we-dev-client/src/api/appInfo.ts @@ -18,7 +18,7 @@ export const authService = { } const res = await fetch( - `${process.env.REACT_REACT_APP_BASE_URL}/api/appInfo?language=${language}`, + `${process.env.REACT_APP_BASE_URL}/api/appInfo?language=${language}`, { method: "GET", headers: { "Content-Type": "application/json" }, diff --git a/apps/appgen/apps/we-dev-client/src/api/auth.ts b/apps/appgen/apps/we-dev-client/src/api/auth.ts index 96539e7bc..f14c6b5da 100644 --- a/apps/appgen/apps/we-dev-client/src/api/auth.ts +++ b/apps/appgen/apps/we-dev-client/src/api/auth.ts @@ -2,7 +2,7 @@ import type { User } from "@/stores/userSlice"; export const authService = { async login(email: string, password: string) { const res = await fetch( - `${process.env.REACT_REACT_APP_BASE_URL}/api/auth/login`, + `${process.env.REACT_APP_BASE_URL}/api/auth/login`, { method: "PUT", headers: { "Content-Type": "application/json" }, @@ -28,7 +28,7 @@ export const authService = { } const res = await fetch( - `${process.env.REACT_REACT_APP_BASE_URL}/api/user`, + `${process.env.REACT_APP_BASE_URL}/api/user`, { method: "GET", headers, @@ -50,7 +50,7 @@ export const authService = { async register(username: string, email: string, password: string) { const res = await fetch( - `${process.env.REACT_REACT_APP_BASE_URL}/api/auth/register`, + `${process.env.REACT_APP_BASE_URL}/api/auth/register`, { method: "POST", headers: { "Content-Type": "application/json" }, @@ -74,7 +74,7 @@ export const authService = { newPassword: string ) { const res = await fetch( - `${process.env.REACT_REACT_APP_BASE_URL}/api/auth/update-password`, + `${process.env.REACT_APP_BASE_URL}/api/auth/update-password`, { method: "PUT", headers: { "Content-Type": "application/json" }, diff --git a/apps/appgen/apps/we-dev-client/src/api/tokens.ts b/apps/appgen/apps/we-dev-client/src/api/tokens.ts index ed794ca59..982c8d719 100644 --- a/apps/appgen/apps/we-dev-client/src/api/tokens.ts +++ b/apps/appgen/apps/we-dev-client/src/api/tokens.ts @@ -9,7 +9,7 @@ interface TokenUsage { export async function getTokenUsage(token: string): Promise { try { const response = await fetch( - `${process.env.REACT_REACT_APP_BASE_URL}/api/tokens`, + `${process.env.REACT_APP_BASE_URL}/api/tokens`, { headers: { Authorization: `Bearer ${token}`, diff --git a/apps/appgen/apps/we-dev-client/src/components/AiChat/chat/components/ChatInput/OptimizedPromptWord.tsx b/apps/appgen/apps/we-dev-client/src/components/AiChat/chat/components/ChatInput/OptimizedPromptWord.tsx index 9ec73724f..15cbd4699 100644 --- a/apps/appgen/apps/we-dev-client/src/components/AiChat/chat/components/ChatInput/OptimizedPromptWord.tsx +++ b/apps/appgen/apps/we-dev-client/src/components/AiChat/chat/components/ChatInput/OptimizedPromptWord.tsx @@ -11,7 +11,7 @@ const PromptEnhanced = (props: PromptEnhancedProps) => { const [promptText, setPromptText] = useState(""); const [isLoading, setIsLoading] = useState(false); const popoverRef = useRef(null); - const baseUrl = process.env.REACT_REACT_APP_BASE_URL; + const baseUrl = process.env.REACT_APP_BASE_URL; const { t } = useTranslation(); useEffect(() => { if (isOpen) { diff --git a/apps/appgen/docs/README.zh.md b/apps/appgen/docs/README.zh.md index f96809129..64589ac66 100644 --- a/apps/appgen/docs/README.zh.md +++ b/apps/appgen/docs/README.zh.md @@ -57,7 +57,7 @@ pnpm install 前端 apps/we-dev-client/.env ```shell # 服务端地址 必填 例如 http://localhost:3000 -REACT_REACT_APP_BASE_URL= +REACT_APP_BASE_URL= # jwt 密钥 选填 JWT_SECRET=