Templates 2.0 (#636)
Templates 2.0 and a whole bunch of other refactoring
This commit is contained in:
@@ -39,6 +39,16 @@ export function navigate(
|
||||
return syscall("editor.navigate", name, pos, replaceState, newWindow);
|
||||
}
|
||||
|
||||
export function openPageNavigator(
|
||||
mode: "page" | "template" = "page",
|
||||
): Promise<void> {
|
||||
return syscall("editor.openPageNavigator", mode);
|
||||
}
|
||||
|
||||
export function openCommandPalette(): Promise<void> {
|
||||
return syscall("editor.openCommandPalette");
|
||||
}
|
||||
|
||||
export function reloadPage(): Promise<void> {
|
||||
return syscall("editor.reloadPage");
|
||||
}
|
||||
@@ -47,6 +57,10 @@ export function reloadUI(): Promise<void> {
|
||||
return syscall("editor.reloadUI");
|
||||
}
|
||||
|
||||
export function reloadSettingsAndCommands(): Promise<void> {
|
||||
return syscall("editor.reloadSettingsAndCommands");
|
||||
}
|
||||
|
||||
export function openUrl(url: string, existingWindow = false): Promise<void> {
|
||||
return syscall("editor.openUrl", url, existingWindow);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user