tmpl

package
v0.0.0-...-0a0123b Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

templ: version: v0.2.543

templ: version: v0.2.543

templ: version: v0.2.543

templ: version: v0.2.543

templ: version: v0.2.543

templ: version: v0.2.543

templ: version: v0.2.543

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func App

func App(state PhoneState, i int, a *chalgen.App) templ.Component

func AudioPlayer

func AudioPlayer(a *chalgen.AudioPlayer) templ.Component

func Chat

func Chat(state ChatState, slack *chalgen.Slack) templ.Component

func FileManager

func FileManager(state FileManagerState, fileManager *chalgen.FileManager) templ.Component

func Maze

func Maze(state MazeState, maze *chalgen.Maze) templ.Component

func Page

func Page(contents templ.Component) templ.Component

func Phone

func Phone(state PhoneState, phone *chalgen.Phone) templ.Component

func Player

func Player(songs []*chalgen.Song) templ.ComponentScript
func Search(s SearchState, cs *chalgen.Search) templ.Component

Types

type AudioPlayerState

type AudioPlayerState struct {
	BaseURL string
	Songs   []Song
}

type ChatState

type ChatState struct {
	Flag       string
	URL        ChatURL
	Session    SessionState
	Channel    chalgen.Channel
	UserLookup map[string]*chalgen.User
}

type ChatURL

type ChatURL struct {
	Channel func(int) templ.SafeURL
	Login   templ.SafeURL
	Logout  templ.SafeURL
}

type FileManagerState

type FileManagerState struct {
	Flag    string
	BaseURL string
	Session SessionState
	URL     FileManagerURL
}

type FileManagerURL

type FileManagerURL struct {
	Login templ.SafeURL
}

type MazeState

type MazeState struct {
	QR          func(string) string
	Solve       templ.SafeURL
	SolvedPaths []string
}

type PassShareState

type PassShareState struct {
	BaseURL  string
	Password string
}

type PhoneState

type PhoneState struct {
	Flag          string
	TrackerLogin  templ.SafeURL
	TrackerAuthed bool
	NextAttempt   time.Time
}

type SearchState

type SearchState struct {
	SearchURL templ.SafeURL
	LoginURL  templ.SafeURL
	Query     string
	Results   []string
}

type SessionState

type SessionState struct {
	User *chalgen.User
}

type Song

type Song struct {
	Name        string
	Artist      string
	Album       string
	URL         string
	CoverArtURL string
}

Jump to

Keyboard shortcuts

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