view

package
v0.0.0-...-2d98496 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Home

func Home(user string) templ.Component

func LoginForm

func LoginForm(values LoginFormValues, errors v.Errors) templ.Component

func LoginIndex

func LoginIndex(data LoginIndexPageData) templ.Component

func Playlist

func Playlist(playlist *ent.Playlist) templ.Component

func PlaylistIndex

func PlaylistIndex(pls []*ent.Playlist) templ.Component

func PlaylistTracks

func PlaylistTracks(data PlaylistTracksData) templ.Component

func Redirect

func Redirect() templ.Component

func SignupForm

func SignupForm(values SignupFormValues, errors v.Errors) templ.Component

func SignupIndex

func SignupIndex(data SignupIndexPageData) templ.Component

Types

type LoginFormValues

type LoginFormValues struct {
	Username string `form:"username"`
	Password string `form:"password"`
}

type LoginIndexPageData

type LoginIndexPageData struct {
	FormValues LoginFormValues
	FormErrors v.Errors
}

type PlaylistTracksData

type PlaylistTracksData struct {
	Tracks []*ent.Track
	Offset int
	Limit  int
}

type SignupFormValues

type SignupFormValues struct {
	Username        string `form:"username"`
	Password        string `form:"password"`
	PasswordConfirm string `form:"password-confirm"`
}

type SignupIndexPageData

type SignupIndexPageData struct {
	FormValues SignupFormValues
	FormErrors v.Errors
}

Jump to

Keyboard shortcuts

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