web

package
v1.2.5 Latest Latest
Warning

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

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

Documentation

Overview

templ: version: v0.3.1020

templ: version: v0.3.1020

Index

Constants

View Source
const ContextKeyCSRFToken contextKey = "csrf_token"
View Source
const RepoURL = "https://github.com/cbrgm/gopodder"

Variables

This section is empty.

Functions

func AccountEditPage

func AccountEditPage(data AccountEditData) templ.Component

func AccountSelfPage

func AccountSelfPage(data AccountSelfData) templ.Component

func AccountsPage

func AccountsPage(data AccountsPageData) templ.Component

func CSRFToken

func CSRFToken(ctx context.Context) string

func LoginPage

func LoginPage(errMsg string, showRegister bool, version string) templ.Component

func RegisterPage

func RegisterPage(data RegisterPageData) templ.Component

func SettingsPage

func SettingsPage(data SettingsPageData) templ.Component

func SetupPage

func SetupPage(errMsg string) templ.Component

func StatusPage

func StatusPage(data StatusData) templ.Component

func UserDetailPage

func UserDetailPage(data UserDetailData) templ.Component

func UserManagementPage

func UserManagementPage(data UserManagementData) templ.Component

Types

type APIKeyData

type APIKeyData struct {
	ID        string
	Name      string
	Prefix    string
	Role      string
	CreatedAt string
	LastUsed  string
}

type AccountData

type AccountData struct {
	ID           string
	Username     string
	Role         string
	Users        int64
	CreatedAt    string
	LastLogin    string
	LastActivity string
}

type AccountEditData

type AccountEditData struct {
	Account     string
	EditAccount AccountData
	Users       []UserData
	APIKeys     []APIKeyData
	Flash       string
	Error       string
}

type AccountSelfData

type AccountSelfData struct {
	Account        string
	IsAdmin        bool
	Flash          string
	Error          string
	APIKeys        []APIKeyData
	APIKeysAllowed bool
	NewKey         string
}

type AccountsPageData

type AccountsPageData struct {
	Account  string
	Accounts []AccountData
	Flash    string
	Error    string
}

type DeviceData

type DeviceData struct {
	ID           string
	Caption      string
	Type         string
	LastActivity string
}

type RegisterPageData

type RegisterPageData struct {
	Error string
}

type SettingsPageData

type SettingsPageData struct {
	Account             string
	Flash               string
	Error               string
	SelfRegistration    bool
	AllowUserCreation   bool
	AllowSharing        bool
	AllowAPIKeys        bool
	MaxUsersPerAccount  int64
	MaxAPIKeys          int64
	MinPasswordLength   int64
	SessionMaxAge       int64
	EpisodeRetention    int64
	InactiveAccountDays int64
}

type StatsData

type StatsData struct {
	Accounts      int64
	Users         int64
	Devices       int64
	Subscriptions int64
	Episodes      int64
}

type StatusData

type StatusData struct {
	Account    string
	IsAdmin    bool
	Stats      StatsData
	Uptime     string
	MemAlloc   string
	Goroutines int
	Version    string
	Revision   string
	BuildDate  string
	GoVersion  string
	Platform   string
	ListenAddr string
	DBBackend  string
}

type UserData

type UserData struct {
	Username      string
	Devices       int64
	Subscriptions int64
	LastActivity  string
}

type UserDetailData

type UserDetailData struct {
	Account        string
	AccountID      string
	AccountName    string
	IsAdmin        bool
	ActiveTab      string
	BasePath       string
	BackURL        string
	BackLabel      string
	Username       string
	Flash          string
	Error          string
	Devices        []DeviceData
	Subscriptions  []string
	ShareToken     string
	ShareOPMLURL   string
	ShareRSSURL    string
	SharingAllowed bool
}

type UserManagementData

type UserManagementData struct {
	Account        string
	IsAdmin        bool
	Users          []UserData
	Flash          string
	Error          string
	CanCreateUsers bool
}

Jump to

Keyboard shortcuts

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