All checks were successful
CI/CD / detect-changes (push) Successful in 4s
CI/CD / test-runners (push) Has been skipped
CI/CD / e2e-smoke (push) Has been skipped
CI/CD / test-frontend (push) Successful in 6s
CI/CD / test-go-pg (push) Successful in 2m53s
CI/CD / test-sqlite (push) Successful in 2m56s
CI/CD / build-and-deploy (push) Successful in 1m18s
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
26 lines
984 B
HTML
26 lines
984 B
HTML
{{/*
|
|
Welcome surface — shown when no extension surfaces are installed.
|
|
Renders topbar + welcome card with getting-started info.
|
|
*/}}
|
|
|
|
{{define "surface-welcome"}}
|
|
<div id="welcome-mount" style="display:flex;flex-direction:column;flex:1;min-height:0;"></div>
|
|
{{end}}
|
|
|
|
{{define "scripts-welcome"}}
|
|
<script type="module" nonce="{{.CSPNonce}}">
|
|
const { h, render } = await import('{{.BasePath}}/js/sw/vendor/preact.module.js');
|
|
const hooksModule = await import('{{.BasePath}}/js/sw/vendor/hooks.module.js');
|
|
const { default: htm } = await import('{{.BasePath}}/js/sw/vendor/htm.module.js');
|
|
const html = htm.bind(h);
|
|
window.preact = window.preact || { h, render };
|
|
window.hooks = window.hooks || hooksModule;
|
|
window.html = window.html || html;
|
|
|
|
const { boot } = await import('{{.BasePath}}/js/sw/sdk/index.js?v={{.Version}}');
|
|
await boot();
|
|
|
|
await import('{{.BasePath}}/js/sw/surfaces/welcome/index.js?v={{.Version}}');
|
|
</script>
|
|
{{end}}
|