This repository has been archived on 2026-04-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
core/src/js/sw/shell/surface-viewport.js
Jeffrey Smith ca3f845c34
All checks were successful
CI/CD / detect-changes (push) Successful in 4s
CI/CD / test-frontend (push) Successful in 5s
CI/CD / test-sqlite (push) Successful in 3m5s
CI/CD / test-go-pg (push) Successful in 3m14s
CI/CD / build-and-deploy (push) Successful in 1m44s
Feat v0.6.10 viewport foundation (#45)
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com>
Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
2026-04-01 10:42:44 +00:00

17 lines
490 B
JavaScript

/** @deprecated v0.6.10 — No surface imports SurfaceViewport. Layout root is <body> in base.html.
*
* SurfaceViewport — container where the active surface renders
*
* Deliberately thin. Error boundaries and
* surface transitions will be added in later versions.
*/
const { html } = window;
export function SurfaceViewport({ surface = null, className = '' }) {
return html`
<div class="sw-surface-viewport ${className}">
${surface}
</div>
`;
}