Added loading 5et from zip release, or cloning git repo. Improvements to CSS and some missing functionality
CI / Verify (build + tests) (push) Failing after 12s
CI / Package (Linux) (push) Has been skipped
CI / Package (Windows) (push) Has been skipped
CI / Package (macOS arm64 source) (push) Has been skipped

This commit is contained in:
boris committed 2026-02-24 23:11:31 +00:00
1 parent e241442302
commit 8be4c8d571
12 files changed
+1383 -104

No files matched your search

+27 -1
View File
@@ -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>
});