web

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.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.

README

Teraflock local dashboard

Vite + React + TypeScript + Tailwind v4 + TanStack Query, embedded into flockd via go:embed (see embed.go).

  • dist/ is committed on purpose: go build must work from a fresh clone without Node installed. Rebuild and commit dist/ whenever you touch src/.
  • npm install && npm run build regenerates dist/.
  • npm run dev starts a dev server that proxies /api and /v1 to a locally running flockd on 127.0.0.1:7777.
  • Auth: paste the bearer token from <data_dir>/local_api_token into the connect box (or tera dashboard --web prints it). It is stored in localStorage.
  • The dashboard polls /api/v1 every 2s via TanStack Query. Using the /api/v1/events SSE stream instead requires token-in-query support on the daemon (EventSource can't set headers) — tracked in docs/HANDOFF.md.

Documentation

Overview

Package web embeds the built local dashboard (web/dist) into the daemon binary. dist/ is committed so `go build` works from a fresh clone; run `npm install && npm run build` in web/ to regenerate it from the React source (falls back to the hand-written static page otherwise).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dist

func Dist() (fs.FS, error)

Dist returns the dashboard filesystem rooted at the bundle.

Types

This section is empty.

Jump to

Keyboard shortcuts

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