import { asset } from "$sb/syscalls.ts"; import { panelHtml } from "../../web/components/panel_html.ts"; export async function prepareJS() { const iframeJS = await asset.readAsset("assets/common.js"); return ` const panelHtml = \`${panelHtml}\`; ${iframeJS} `; } export async function wrapHTML(html: string): Promise { const css = await asset.readAsset("assets/style.css"); return `
${html}
`; }