Switch logs back to BHS
This commit is contained in:
parent
de254ac4f6
commit
5abcc8bc85
@ -65,7 +65,7 @@ export function showPanel(
|
|||||||
id: "lhs" | "rhs" | "bhs" | "modal",
|
id: "lhs" | "rhs" | "bhs" | "modal",
|
||||||
mode: number,
|
mode: number,
|
||||||
html: string,
|
html: string,
|
||||||
script: string
|
script: string = ""
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
return syscall("editor.showPanel", id, mode, html, script);
|
return syscall("editor.showPanel", id, mode, html, script);
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
import { getLogs } from "@plugos/plugos-syscall/sandbox";
|
import { getLogs } from "@plugos/plugos-syscall/sandbox";
|
||||||
import {
|
import {
|
||||||
getText,
|
getText,
|
||||||
hideBhs,
|
hidePanel,
|
||||||
showBhs,
|
|
||||||
showPanel,
|
showPanel,
|
||||||
} from "@silverbulletmd/plugos-silverbullet-syscall/editor";
|
} from "@silverbulletmd/plugos-silverbullet-syscall/editor";
|
||||||
import { parseMarkdown } from "@silverbulletmd/plugos-silverbullet-syscall/markdown";
|
import { parseMarkdown } from "@silverbulletmd/plugos-silverbullet-syscall/markdown";
|
||||||
import { getServerLogs } from "@silverbulletmd/plugos-silverbullet-syscall/sandbox";
|
import { getServerLogs } from "@silverbulletmd/plugos-silverbullet-syscall/sandbox";
|
||||||
import { invokeFunction } from "@silverbulletmd/plugos-silverbullet-syscall/system";
|
|
||||||
|
|
||||||
export async function parsePageCommand() {
|
export async function parsePageCommand() {
|
||||||
console.log(
|
console.log(
|
||||||
@ -21,8 +19,8 @@ export async function showLogsCommand() {
|
|||||||
let serverLogs = await getServerLogs();
|
let serverLogs = await getServerLogs();
|
||||||
|
|
||||||
await showPanel(
|
await showPanel(
|
||||||
"modal",
|
"bhs",
|
||||||
100,
|
1,
|
||||||
`
|
`
|
||||||
<style>
|
<style>
|
||||||
#client-log-header {
|
#client-log-header {
|
||||||
@ -81,5 +79,5 @@ export async function showLogsCommand() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function hideBhsCommand() {
|
export async function hideBhsCommand() {
|
||||||
await hideBhs();
|
await hidePanel("bhs");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user