1// Package frontend is the TV interface: plain HTML, CSS and JS in dist,2// with no build step. The desktop app embeds it, and airwavesd serves it3// at /tv/ for browsers and the Android TV app.4package frontend56import (7 "embed"8 "io/fs"9)1011//go:embed all:dist12var dist embed.FS1314// Dist is the interface's files, index.html at the root.15func Dist() fs.FS {16 sub, err := fs.Sub(dist, "dist")17 if err != nil {18 panic(err) // dist is embedded, so it's there19 }20 return sub21}