/** * WelcomeSurface — shown when no extension surfaces are installed. * Renders Topbar + a getting-started card with link to admin. */ const { html } = window; const { render } = preact; import { Topbar } from '../../shell/topbar.js'; function WelcomeSurface() { const BASE = window.__BASE__ || ''; const isAdmin = sw.can?.('surface.admin.access'); return html` <${Topbar} title="Switchboard" />
📦

Welcome to Switchboard

No surfaces are installed yet. Install an extension surface to get started.

${isAdmin && html` Go to Packages `} ${!isAdmin && html`

Ask your administrator to install a surface package.

`}
`; } const mount = document.getElementById('welcome-mount'); if (mount) { render(html`<${WelcomeSurface} />`, mount); }