Added loading 5et from zip release, or cloning git repo. Improvements to CSS and some missing functionality
This commit is contained in:
1 parent
e241442302
commit
8be4c8d571
12 files changed
+1383
-104
No files matched your search
+27
-1
@@ -1,5 +1,31 @@
|
||||
import { contextBridge, ipcRenderer } from "electron";
|
||||
|
||||
interface SetupState {
|
||||
needsSetup: boolean;
|
||||
sourceDir: string | null;
|
||||
sourceRepoUrl: string;
|
||||
imageRepoUrl: string;
|
||||
imageBaseUrl: string;
|
||||
}
|
||||
|
||||
interface SetupRunInput {
|
||||
mode: "url" | "zip";
|
||||
sourceRepoUrl?: string;
|
||||
sourceZipPath?: string;
|
||||
imageRepoUrl?: string;
|
||||
imageBaseUrl?: string;
|
||||
downloadImages?: boolean;
|
||||
}
|
||||
|
||||
interface SetupRunResult {
|
||||
ok: boolean;
|
||||
error?: string;
|
||||
}
|
||||
|
||||
contextBridge.exposeInMainWorld("desktopApi", {
|
||||
getWikiUrl: () => ipcRenderer.invoke("wiki:get-url") as Promise<string>
|
||||
getWikiUrl: () => ipcRenderer.invoke("wiki:get-url") as Promise<string>,
|
||||
getSetupState: () => ipcRenderer.invoke("setup:get-state") as Promise<SetupState>,
|
||||
pickSourceZip: () => ipcRenderer.invoke("setup:pick-source-zip") as Promise<string | null>,
|
||||
runSetup: (input: SetupRunInput) => ipcRenderer.invoke("setup:run", input) as Promise<SetupRunResult>,
|
||||
resetOnboarding: () => ipcRenderer.invoke("setup:reset-onboarding") as Promise<SetupRunResult>
|
||||
});
|
||||
Reference in new issue
Block a user