Documentation
¶
Overview ¶
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dashboard ¶
func Dashboard(d DashboardData) templ.Component
Dashboard renders the main control surface — list of inbounds with live status (HTMX SSE), a header bar with account dropdown, and the WG-interface table at the bottom.
func InboundForm ¶
InboundForm renders the create/edit form for one inbound. The `Transport` dropdown chooses between Telemost, WB Stream, and VK Calls. Per-transport hints are shown via Alpine x-show, but there is exactly ONE meeting input — duplicate `name="meeting"` would produce ambiguous JSON when serialised by hx-ext=json-enc.
func Login ¶
Login is the standalone unauthenticated page. We deliberately keep the credentials form HTMX-driven (hx-post + hx-on::after-request) rather than full reload so the failure path can flash an inline error without bouncing the user.
func LoginError ¶
LoginError is the partial returned when /login responds with a bad credentials status — HTMX swaps it into #login-error. Keeping a dedicated component avoids hand-rolling HTML strings inside the Go handler.