webui

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 5 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 webui owns the hub's embedded web console. The Vite/React build (a static SPA) lives under dist/; `task ui:build` populates it, and `go:embed all:dist` bakes it into the binary. A dist/.gitkeep placeholder keeps the embed valid on a fresh checkout that hasn't run the build.

Serving modes mirror openotters:

  • Embedded (default): files compiled in. Self-contained binary.
  • Disk override (--ui-path DIR): serve a local build without recompiling — useful while iterating on the UI.

Both apply SPA fallback: any unknown, non-asset route resolves to index.html so client-side routing works on direct visits.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(diskPath string) http.Handler

Handler returns an http.Handler serving the console. Empty diskPath uses the embedded build; otherwise files are read from disk.

Types

This section is empty.

Jump to

Keyboard shortcuts

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