feat: enhance application type definitions and improve app management logic

This commit is contained in:
Elysia
2026-01-31 17:48:06 +08:00
parent 3221cb6d5e
commit 39e40ff946
9 changed files with 86 additions and 27 deletions

View File

@@ -86,6 +86,9 @@ export interface App {
icons: string;
category: string; // Frontend added
installed?: boolean; // Frontend state
flags?: string; // Tags in apm packages manager, e.g. "automatic" for dependencies
arch?: string; // Architecture, e.g. "amd64", "arm64"
currentStatus: 'not-installed' | 'installed'; // Current installation status
}
export interface UpdateAppItem {
@@ -95,3 +98,13 @@ export interface UpdateAppItem {
selected?: boolean;
upgrading?: boolean;
}
/**************Below are type from main process ********************/
export interface InstalledAppInfo {
pkgname: string;
version: string;
arch: string;
flags: string;
raw: string;
}