This commit is contained in:
Zef Hemel
2022-04-26 19:04:36 +02:00
parent cb2d3f8652
commit 76636dd9b1
41 changed files with 500 additions and 287 deletions
@@ -62,6 +62,14 @@ export function hideLhs(): Promise<void> {
return syscall("editor.hideLhs");
}
export function showBhs(html: string, flex = 1): Promise<void> {
return syscall("editor.showBhs", html, flex);
}
export function hideBhs(): Promise<void> {
return syscall("editor.hideBhs");
}
export function insertAtPos(text: string, pos: number): Promise<void> {
return syscall("editor.insertAtPos", text, pos);
}
@@ -1,8 +1,8 @@
import { syscall } from "./syscall";
import { PageMeta } from "../common/types";
export async function listPages(): Promise<PageMeta[]> {
return syscall("space.listPages");
export async function listPages(unfiltered = false): Promise<PageMeta[]> {
return syscall("space.listPages", unfiltered);
}
export async function readPage(
@@ -7,3 +7,7 @@ export async function invokeFunction(
): Promise<any> {
return syscall("system.invokeFunction", env, name, ...args);
}
export async function reloadPlugs() {
return syscall("system.reloadPlugs");
}