diff options
| author | 2026-01-15 05:29:58 +0100 | |
|---|---|---|
| committer | 2026-01-15 05:29:58 +0100 | |
| commit | 43a3e9c285f3d5d04fef025041a06609a0d1c218 (patch) | |
| tree | c18970f3e926e079d5857219031bbaf8d37a6901 /ui/src/types | |
| parent | 1b3c84b0c78ea438c8f446054af196c620d30602 (diff) | |
| download | DropOut-43a3e9c285f3d5d04fef025041a06609a0d1c218.tar.gz DropOut-43a3e9c285f3d5d04fef025041a06609a0d1c218.zip | |
feat(java): Implement Java catalog management and download features
- Added commands to fetch and refresh the Java catalog, cancel downloads, and manage pending downloads.
- Enhanced the Java download modal in the UI to support version selection, download progress, and pending downloads.
- Introduced new types for Java catalog, download progress, and pending downloads.
- Updated settings store to handle Java catalog state, download progress, and pending downloads.
- Improved user experience with loading states, error handling, and status notifications for Java installations.
Diffstat (limited to 'ui/src/types')
| -rw-r--r-- | ui/src/types/index.ts | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/ui/src/types/index.ts b/ui/src/types/index.ts index f92cbf2..163dc92 100644 --- a/ui/src/types/index.ts +++ b/ui/src/types/index.ts @@ -53,6 +53,50 @@ export interface JavaDownloadInfo { image_type: string; } +export interface JavaReleaseInfo { + major_version: number; + image_type: string; + version: string; + release_name: string; + release_date: string | null; + file_size: number; + checksum: string | null; + download_url: string; + is_lts: boolean; + is_available: boolean; + architecture: string; +} + +export interface JavaCatalog { + releases: JavaReleaseInfo[]; + available_major_versions: number[]; + lts_versions: number[]; + cached_at: number; +} + +export interface JavaDownloadProgress { + file_name: string; + downloaded_bytes: number; + total_bytes: number; + speed_bytes_per_sec: number; + eta_seconds: number; + status: string; + percentage: number; +} + +export interface PendingJavaDownload { + major_version: number; + image_type: string; + download_url: string; + file_name: string; + file_size: number; + checksum: string | null; + install_path: string; + created_at: number; +} + +export type JavaDownloadSource = "adoptium" | "mojang" | "azul"; + // ==================== Fabric Types ==================== export interface FabricGameVersion { |