Fixes #74
parent
61ba3398ad
commit
fb6e15c9b4
|
@ -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(),
|
||||
|
|
|
@ -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)
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue