working sandpack
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user