working sandpack

This commit is contained in:
Will Chen
2025-04-11 23:11:56 -07:00
parent 37579d011a
commit a4a763a06d
14 changed files with 451 additions and 175 deletions

View File

@@ -14,6 +14,7 @@ import type {
CreateAppParams,
CreateAppResult,
ListAppsResponse,
SandboxConfig,
Version,
} from "./ipc_types";
import { showError } from "@/lib/toast";
@@ -127,6 +128,18 @@ export class IpcClient {
}
}
public async getAppSandboxConfig(appId: number): Promise<SandboxConfig> {
try {
const data = await this.ipcRenderer.invoke("get-app-sandbox-config", {
appId,
});
return data;
} catch (error) {
showError(error);
throw error;
}
}
public async getApp(appId: number): Promise<App> {
try {
const data = await this.ipcRenderer.invoke("get-app", appId);