Real-time collaboration within space (#411)

This commit is contained in:
Zef Hemel
2023-06-13 20:47:05 +02:00
committed by GitHub
parent 063a8e4767
commit 8e0a7cf177
54 changed files with 1358 additions and 187 deletions
+5
View File
@@ -0,0 +1,5 @@
import { editor } from "$sb/silverbullet-syscall/mod.ts";
export async function accountLogoutCommand() {
await editor.openUrl("/.client/logout.html", true);
}
+5 -6
View File
@@ -326,22 +326,21 @@ functions:
path: ./debug.ts:parsePageCommand
command:
name: "Debug: Parse Document"
resetClientCommand:
path: ./debug.ts:resetClientCommand
command:
name: "Debug: Reset Client"
versionCommand:
path: ./help.ts:versionCommand
command:
name: "Help: Version"
gettingStartedCommand:
path: ./help.ts:gettingStartedCommand
command:
name: "Help: Getting Started"
accountLogoutCommand:
path: ./account.ts:accountLogoutCommand
command:
name: "Account: Logout"
# Link unfurl infrastructure
unfurlLink:
path: ./link.ts:unfurlCommand
-4
View File
@@ -10,7 +10,3 @@ export async function parsePageCommand() {
),
);
}
export async function resetClientCommand() {
editor.openUrl("/.client/reset.html");
}
-1
View File
@@ -9,7 +9,6 @@ import {
index,
markdown,
space,
system,
} from "$sb/silverbullet-syscall/mod.ts";
import { events } from "$sb/plugos-syscall/mod.ts";
+1 -2
View File
@@ -1,5 +1,4 @@
import { events } from "$sb/plugos-syscall/mod.ts";
import type { Manifest } from "../../common/manifest.ts";
import { editor, space, system } from "$sb/silverbullet-syscall/mod.ts";
import { readYamlPage } from "$sb/lib/yaml_page.ts";
import { builtinPlugNames } from "../builtin_plugs.ts";
@@ -21,7 +20,7 @@ export async function updatePlugsCommand() {
);
}
} catch (e: any) {
if (e.message.includes("Could not read file")) {
if (e.message.includes("Not found")) {
console.warn("No PLUGS page found, not loading anything");
return;
}