pages

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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

func InboundForm() templ.Component

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

func Login(errMsg string) templ.Component

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

func LoginError(msg string) templ.Component

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.

func Settings

func Settings(username string) templ.Component

Settings is a standalone change-password page (the dashboard already surfaces the same form via a modal, but this exists for direct deep links from operator runbooks, e.g. when the password change is the only thing needing attention).

Types

type DashboardData

type DashboardData struct {
	Username          string
	IsDefaultPassword bool
	Inbounds          []inbound.Status
}

DashboardData bundles everything the dashboard page needs in a single struct so the handler builds it once.

Jump to

Keyboard shortcuts

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