No More Collab. Fixes #449

* Fully removes real-time collaboration
* URL scheme rewrite
This commit is contained in:
Zef Hemel
2023-07-06 16:47:50 +02:00
committed by GitHub
parent 021bf7e9a4
commit fb75ea1a65
45 changed files with 380 additions and 1356 deletions
-20
View File
@@ -1,20 +0,0 @@
import { SysCallMapping } from "../../plugos/system.ts";
import type { Editor } from "../editor.tsx";
export function collabSyscalls(editor: Editor): SysCallMapping {
return {
"collab.start": (
_ctx,
serverUrl: string,
token: string,
username: string,
) => {
editor.startCollab(serverUrl, token, username);
},
"collab.stop": (
_ctx,
) => {
editor.stopCollab();
},
};
}
+1 -1
View File
@@ -21,7 +21,7 @@ export function sandboxFetchSyscalls(
return performLocalFetch(url, options);
}
const resp = httpSpacePrimitives.authenticatedFetch(
httpSpacePrimitives.url,
`${httpSpacePrimitives.url}/.rpc`,
{
method: "POST",
body: JSON.stringify({
+1 -1
View File
@@ -14,7 +14,7 @@ export function shellSyscalls(
throw new Error("Not supported in fully local mode");
}
const resp = httpSpacePrimitives.authenticatedFetch(
httpSpacePrimitives.url,
`${httpSpacePrimitives.url}/.rpc`,
{
method: "POST",
body: JSON.stringify({