In-app store, delta version support (#179)

* fix: windows launch

* feat: add necessary client fixes for store

* fix: keyring fix

* feat: delta version support

* feat: dl/disk progress

* feat: move to jwt auth

* fix: lint
This commit is contained in:
DecDuck
2026-02-06 00:30:27 +11:00
committed by GitHub
parent fc69ae30ab
commit 1f74d35bdc
23 changed files with 808 additions and 284 deletions
+9 -5
View File
@@ -5,9 +5,12 @@ export type QueueState = {
queue: Array<{
meta: DownloadableMetadata;
status: string;
progress: number | null;
current: number;
max: number;
dl_progress: number | null;
dl_current: number;
dl_max: number;
disk_progress: number | null;
disk_current: number;
disk_max: number;
}>;
status: string;
};
@@ -33,7 +36,8 @@ listen("update_stats", (event) => {
stats.value = event.payload as StatsState;
});
export const useDownloadHistory = () => useState<Array<number>>('history', () => []);
export const useDownloadHistory = () =>
useState<Array<number>>("history", () => []);
export function formatKilobytes(bytes: number): string {
const units = ["K", "M", "G", "T", "P"];
@@ -47,4 +51,4 @@ export function formatKilobytes(bytes: number): string {
}
return `${value.toFixed(1)} ${units[unitIndex]}`;
}
}