Fixes #74
parent
61ba3398ad
commit
fb6e15c9b4
|
@ -62,6 +62,7 @@ import { eventSyscalls } from "@plugos/plugos/syscalls/event";
|
||||||
import { storeSyscalls } from "./syscalls/store";
|
import { storeSyscalls } from "./syscalls/store";
|
||||||
import { inlineImagesPlugin } from "./inline_image";
|
import { inlineImagesPlugin } from "./inline_image";
|
||||||
import { ConsoleLogger } from "@plugos/plugos/environments/custom_logger";
|
import { ConsoleLogger } from "@plugos/plugos/environments/custom_logger";
|
||||||
|
import { fulltextSyscalls } from "./syscalls/fulltext";
|
||||||
|
|
||||||
class PageState {
|
class PageState {
|
||||||
constructor(
|
constructor(
|
||||||
|
@ -170,6 +171,7 @@ export class Editor {
|
||||||
editorSyscalls(this),
|
editorSyscalls(this),
|
||||||
spaceSyscalls(this),
|
spaceSyscalls(this),
|
||||||
indexerSyscalls(this.space),
|
indexerSyscalls(this.space),
|
||||||
|
fulltextSyscalls(this.space),
|
||||||
systemSyscalls(this),
|
systemSyscalls(this),
|
||||||
markdownSyscalls(buildMarkdown(this.mdExtensions)),
|
markdownSyscalls(buildMarkdown(this.mdExtensions)),
|
||||||
clientStoreSyscalls(),
|
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