Read description for changes

- Moved popup css code to globals
- Invoked rust code with download stuff
- Invoke the main script with progress
- Move popup code to `main.tsx`
- Don't use Strict Mode
- Made sidebar downloads menu do something
- And more
This commit is contained in:
2025-07-19 17:45:44 -07:00
parent 00577a28c1
commit f5d6712126
11 changed files with 180 additions and 131 deletions

View File

@@ -4,6 +4,6 @@ export class DownloadProgress {
constructor (
public version: LauncherVersion,
public progress: number,
public done: boolean
public failed: boolean
) {}
}

View File

@@ -2,6 +2,11 @@ import { DownloadProgress } from './DownloadProgress'
import { LauncherVersion } from './LauncherVersion'
export type InstallsProps = {
downloadVersions: (versions: LauncherVersion[]) => void
downloadProgress: DownloadProgress[]
showPopup: boolean
setShowPopup: (v: boolean) => void
setPopupMode: (v: null | number) => void
setFadeOut: (v: boolean) => void
setSelectedVersionList: (v: LauncherVersion[]) => void
setVersionList: (v: null | LauncherVersion[]) => void
}

View File

@@ -1,5 +1,5 @@
import { DownloadProgress } from './DownloadProgress'
export type SidebarProps = {
downloadProgress: DownloadProgress[]
setShowPopup: (v: boolean) => void
setPopupMode: (v: null | number) => void
setFadeOut: (v: boolean) => void
}