Skip to content
Merged

Dev #174

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/api/api/config/ai.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion apps/appgen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion apps/appgen/apps/we-dev-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion apps/appgen/apps/we-dev-client/src/api/appInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down
8 changes: 4 additions & 4 deletions apps/appgen/apps/we-dev-client/src/api/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand All @@ -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,
Expand All @@ -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" },
Expand All @@ -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" },
Expand Down
2 changes: 1 addition & 1 deletion apps/appgen/apps/we-dev-client/src/api/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface TokenUsage {
export async function getTokenUsage(token: string): Promise<TokenUsage | null> {
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}`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const PromptEnhanced = (props: PromptEnhancedProps) => {
const [promptText, setPromptText] = useState("");
const [isLoading, setIsLoading] = useState(false);
const popoverRef = useRef<HTMLDivElement>(null);
const baseUrl = process.env.REACT_REACT_APP_BASE_URL;
const baseUrl = process.env.REACT_APP_BASE_URL;
const { t } = useTranslation();
useEffect(() => {
if (isOpen) {
Expand Down
4 changes: 2 additions & 2 deletions apps/appgen/apps/we-dev-client/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(), '');
Expand Down Expand Up @@ -42,7 +42,7 @@ export default defineConfig(async ({ mode }) => {
}),
],

base: './',
base: command === 'build' ? './' : '/',
build: {
outDir: 'dist',
emptyOutDir: true,
Expand Down
2 changes: 1 addition & 1 deletion apps/appgen/docs/README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ <h2 class="text-base font-semibold text-white">Serveurs</h2>
<div class="srv-led" [class.ok]="srv.is_reachable"></div>
<div class="al-info">
<span class="al-name">{{ srv.name }}</span>
<span class="al-branch" style="font-family: monospace">{{ srv.ip }}</span>
<span class="al-branch al-ip">{{ srv.ip }}</span>
</div>
</div>
<div class="al-status">
Expand Down
13 changes: 13 additions & 0 deletions apps/main-dashboard/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down