Implementation of #117: sharing
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user