static

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2026 License: BSD-3-Clause Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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".

View Source
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).

View Source
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL