mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 09:20:18 +08:00
feat: enhance application type definitions and improve app management logic
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user