feat: add Web App Port management alongside API Server Port and fix square 512x512 app launcher icon

This commit is contained in:
Schwitzz
2026-10-30 14:23:12 -05:00
parent 1d209fedd2
commit 29dbc27c41
6 changed files with 161 additions and 18 deletions
+15
View File
@@ -372,6 +372,8 @@ export const api = {
enabled: boolean;
port: number;
activePort?: number;
webPort?: number;
activeWebPort?: number;
startOnBoot: boolean;
projectDirectory?: string;
}> => {
@@ -388,6 +390,8 @@ export const api = {
enabled: boolean;
port: number;
activePort?: number;
webPort?: number;
activeWebPort?: number;
startOnBoot: boolean;
projectDirectory?: string;
};
@@ -396,6 +400,8 @@ export const api = {
enabled: data.enabled,
port: data.port,
...(data.activePort !== undefined ? { activePort: data.activePort } : {}),
...(data.webPort !== undefined ? { webPort: data.webPort } : {}),
...(data.activeWebPort !== undefined ? { activeWebPort: data.activeWebPort } : {}),
startOnBoot: data.startOnBoot,
...(data.projectDirectory ? { projectDirectory: data.projectDirectory } : {}),
};
@@ -408,6 +414,7 @@ export const api = {
online: false,
enabled: true,
port: portHint ?? 8081,
webPort: 5173,
startOnBoot: false,
};
},
@@ -416,6 +423,7 @@ export const api = {
patch: {
enabled?: boolean;
port?: number;
webPort?: number;
startOnBoot?: boolean;
projectDirectory?: string;
},
@@ -425,6 +433,8 @@ export const api = {
enabled: boolean;
port: number;
activePort?: number;
webPort?: number;
activeWebPort?: number;
startOnBoot: boolean;
projectDirectory?: string;
}> => {
@@ -446,6 +456,8 @@ export const api = {
enabled: boolean;
port: number;
activePort?: number;
webPort?: number;
activeWebPort?: number;
startOnBoot: boolean;
projectDirectory?: string;
};
@@ -454,6 +466,8 @@ export const api = {
enabled: data.enabled,
port: data.port,
...(data.activePort !== undefined ? { activePort: data.activePort } : {}),
...(data.webPort !== undefined ? { webPort: data.webPort } : {}),
...(data.activeWebPort !== undefined ? { activeWebPort: data.activeWebPort } : {}),
startOnBoot: data.startOnBoot,
...(data.projectDirectory ? { projectDirectory: data.projectDirectory } : {}),
};
@@ -466,6 +480,7 @@ export const api = {
online: false,
enabled: patch.enabled ?? true,
port: patch.port ?? portHint ?? 8081,
...(patch.webPort !== undefined ? { webPort: patch.webPort } : {}),
startOnBoot: patch.startOnBoot ?? false,
...(patch.projectDirectory ? { projectDirectory: patch.projectDirectory } : {}),
};