pages

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: Apache-2.0 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

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