Documentation
¶
Overview ¶
Package static holds the files the server sends as they are: the Datastar client, the stylesheet and the scripts. They are embedded in the binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var FS embed.FS
FS holds the embedded static files: datastar.js, app.css, board.js (the drag and drop of the board), messages.js (the scrolling of a conversation), call.js (the calls of SPEC §7.18: the signalling and the media of a call, in the page of a direct conversation), notify.js (the sounds and browser notifications of SPEC §7.15, and the ringing dialog of a call), code.css (the code blocks of internal/markdown; generated by internal/markdown/cmd/gencodecss), code.js (the language label and Copy button of a code block), favicon.svg and favicon-dot.svg (the favicon of a page, and the one with a dot that the stream swaps in while unread things wait, SPEC §7.17), favicon-32.png and apple-touch-icon.png (their PNG fallbacks, rendered from favicon.svg with clowder-proof -render-icon, see scripts/README.md), the folder fonts (the woff2 files of the three families with their licenses, SPEC D57 and §15) and icon-192.png, icon-512.png, icon-maskable-192.png and icon-maskable-512.png (the icons of the installed app, rendered with clowder-proof -render-icon, see scripts/README.md) and the files added to this folder later. Its paths are relative to the folder, for example "app.css" or "fonts/nunito/latin.woff2".
var Manifest []byte
Manifest is the source of the web app manifest (manifest.webmanifest). It is not in FS either: the server serves it at /manifest.webmanifest, at the root so that its scope is the whole site, with the version of the files of FS in the addresses of its icons (SPEC D58).
var ServiceWorker []byte
ServiceWorker is the source of the service worker (sw.js). It is not in FS: the server serves it at /sw.js, at the root, with the version of the files of FS filled in (SPEC D58). icon-maskable.svg, the source of the maskable icons, is in this folder and is not embedded either.
Functions ¶
This section is empty.
Types ¶
This section is empty.