web

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: AGPL-3.0 Imports: 2 Imported by: 1 module, 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 web serves the built admin SPA (web/dist). The edge build does not embed it: the Worker's static assets hold it, and the shell passes a read callback to SetAssets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dist

func Dist() fs.FS

Dist returns the SPA build output rooted at dist/, read through the callback of SetAssets. Without a callback every file is missing, which callers already cope with (an unbuilt SPA).

func SetAssets added in v0.1.26

func SetAssets(read js.Value)

SetAssets registers the JavaScript callback async (path: string) => Uint8Array | null that reads one file of the SPA build by its path relative to dist/ (no leading slash). It must be called before the panel handler is built.

Types

This section is empty.

Jump to

Keyboard shortcuts

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