SilverBullet pivot to become an offline-first PWA (#403)

This commit is contained in:
Zef Hemel
2023-05-23 20:53:53 +02:00
committed by GitHub
parent b256269897
commit 5f484bed57
389 changed files with 4484 additions and 291129 deletions
+2 -9
View File
@@ -28,13 +28,9 @@ export function systemSyscalls(
}
name = functionName;
}
if (env === "client") {
return plug.invoke(name, args);
}
return editor.space.invokeFunction(plug, env, name, args);
return plug.invoke(name, args);
},
"system.invokeCommand": (ctx, name: string) => {
"system.invokeCommand": (_ctx, name: string) => {
return editor.runCommandByName(name);
},
"system.listCommands": (): { [key: string]: CommandDef } => {
@@ -47,9 +43,6 @@ export function systemSyscalls(
"system.reloadPlugs": () => {
return editor.reloadPlugs();
},
"sandbox.getServerLogs": (ctx) => {
return editor.space.proxySyscall(ctx.plug, "sandbox.getLogs", []);
},
"system.getEnv": () => {
return system.env;
},