Implementation of #117: sharing

This commit is contained in:
Zef Hemel
2022-11-24 16:08:51 +01:00
parent 5b1ec14891
commit b61e8ff681
12 changed files with 78 additions and 25 deletions
+6
View File
@@ -15,6 +15,12 @@ functions:
path: "./collab.ts:shareCommand"
command:
name: "Share: Collab"
shareNoop:
path: "./collab.ts:shareNoop"
events:
- share:collab
# Space extension
readPageCollab:
path: ./collab.ts:readFileCollab
env: client
+4 -1
View File
@@ -15,7 +15,6 @@ import {
collab,
editor,
markdown,
space,
} from "$sb/silverbullet-syscall/mod.ts";
import { nanoid } from "https://esm.sh/nanoid@4.0.0";
@@ -122,6 +121,10 @@ export async function detectPage() {
}
}
export function shareNoop() {
return true;
}
export async function readFileCollab(
name: string,
encoding: FileEncoding,