Work
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user