1
0

Switch logs back to BHS

This commit is contained in:
Zef Hemel 2022-09-30 17:06:12 +02:00
parent de254ac4f6
commit 5abcc8bc85
2 changed files with 5 additions and 7 deletions
packages
plugos-silverbullet-syscall
plugs/core

View File

@ -65,7 +65,7 @@ export function showPanel(
id: "lhs" | "rhs" | "bhs" | "modal",
mode: number,
html: string,
script: string
script: string = ""
): Promise<void> {
return syscall("editor.showPanel", id, mode, html, script);
}

View File

@ -1,13 +1,11 @@
import { getLogs } from "@plugos/plugos-syscall/sandbox";
import {
getText,
hideBhs,
showBhs,
hidePanel,
showPanel,
} from "@silverbulletmd/plugos-silverbullet-syscall/editor";
import { parseMarkdown } from "@silverbulletmd/plugos-silverbullet-syscall/markdown";
import { getServerLogs } from "@silverbulletmd/plugos-silverbullet-syscall/sandbox";
import { invokeFunction } from "@silverbulletmd/plugos-silverbullet-syscall/system";
export async function parsePageCommand() {
console.log(
@ -21,8 +19,8 @@ export async function showLogsCommand() {
let serverLogs = await getServerLogs();
await showPanel(
"modal",
100,
"bhs",
1,
`
<style>
#client-log-header {
@ -81,5 +79,5 @@ export async function showLogsCommand() {
}
export async function hideBhsCommand() {
await hideBhs();
await hidePanel("bhs");
}