pull/80/head
Zef Hemel 2022-09-14 09:40:11 +02:00
parent 61ba3398ad
commit fb6e15c9b4
2 changed files with 12 additions and 0 deletions

View File

@ -62,6 +62,7 @@ import { eventSyscalls } from "@plugos/plugos/syscalls/event";
import { storeSyscalls } from "./syscalls/store";
import { inlineImagesPlugin } from "./inline_image";
import { ConsoleLogger } from "@plugos/plugos/environments/custom_logger";
import { fulltextSyscalls } from "./syscalls/fulltext";
class PageState {
constructor(
@ -170,6 +171,7 @@ export class Editor {
editorSyscalls(this),
spaceSyscalls(this),
indexerSyscalls(this.space),
fulltextSyscalls(this.space),
systemSyscalls(this),
markdownSyscalls(buildMarkdown(this.mdExtensions)),
clientStoreSyscalls(),

View File

@ -0,0 +1,10 @@
import { SysCallMapping } from "@plugos/plugos/system";
import { proxySyscalls } from "@plugos/plugos/syscalls/transport";
import { Space } from "@silverbulletmd/common/spaces/space";
export function fulltextSyscalls(space: Space): SysCallMapping {
return proxySyscalls(
["fulltext.search", "fulltext.delete", "fulltext.index"],
(ctx, name, ...args) => space.proxySyscall(ctx.plug, name, args)
);
}