match

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

templ: version: v0.3.924

templ: version: v0.3.924

templ: version: v0.3.924

templ: version: v0.3.924

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetailSkeleton

func DetailSkeleton(ctx context.Context) templ.Component

func HistorySkeleton

func HistorySkeleton(ctx context.Context) templ.Component

func NonePlayed

func NonePlayed(ctx context.Context) templ.Component

Types

type CSWidget

type CSWidget struct {
	CS          int
	CSPerMinute float32
}

func (CSWidget) ToTempl

func (m CSWidget) ToTempl(ctx context.Context) templ.Component

type ChampionWidget

type ChampionWidget struct {
	ChampionID    int
	ChampionLevel int
	SummonerIDs   [2]int
}

func (ChampionWidget) ToTempl

func (m ChampionWidget) ToTempl(ctx context.Context) templ.Component

type DateDurationWidget

type DateDurationWidget struct {
	Date time.Time

	Duration time.Duration

	AlignRight bool
}

func (DateDurationWidget) ToTempl

type Detail

type Detail struct {
	DateDurationWidget DateDurationWidget

	Tabs component.TabList

	Panels component.TabPanelList
}

func (Detail) ToTempl

func (m Detail) ToTempl(ctx context.Context) templ.Component

type History deprecated

type History component.List

Deprecated: lol.

func (History) ToTempl

func (m History) ToTempl(ctx context.Context) templ.Component

type HistoryCard

type HistoryCard struct {
	ChampionWidget  ChampionWidget
	KDAWidget       KDAWidget
	CSWidget        CSWidget
	RuneWidget      RuneWidget
	ItemWidget      ItemWidget
	RankDeltaWidget RankDeltaWidget

	Path string
	Data string
}

HistoryCard displays a match in a summoner's match history.

func (HistoryCard) ToTempl

func (m HistoryCard) ToTempl(ctx context.Context) templ.Component

type ItemWidget

type ItemWidget struct {
	Items       [7]int
	VisionScore int
}

func (ItemWidget) ToTempl

func (m ItemWidget) ToTempl(ctx context.Context) templ.Component

type KDAWidget

type KDAWidget struct {
	Kills, Deaths, Assists int
	KilLDeathRatio         float32
}

func (KDAWidget) ToTempl

func (m KDAWidget) ToTempl(ctx context.Context) templ.Component

type ParticipantCard

type ParticipantCard struct {
	ChampionWidget shared.ChampionWidget

	NameWidget shared.NameWidget

	KDAWidget shared.KDAWidget

	CSWidget shared.CSWidget

	RuneWidget shared.RuneWidget

	Items shared.ItemInventory
}

ParticipantCard displays a participant in a match.

func (ParticipantCard) ToTempl

type RankDeltaWidget

type RankDeltaWidget struct {
	// RankWidget is the rank after the match. A nil value means the store
	// did not record a rank after the match.
	RankChange *shared.RankTag

	// LPChange is the lp change after the match. A nil value indicates the
	// lp change is unknown.
	LPChange *int

	Win bool
}

func (RankDeltaWidget) ToTempl

type RuneWidget

type RuneWidget internal.RunePage

func (RuneWidget) ToTempl

func (m RuneWidget) ToTempl(ctx context.Context) templ.Component

type Scoreboard

type Scoreboard struct {
	BlueSide, RedSide component.Section
}

func (Scoreboard) ToTempl

func (m Scoreboard) ToTempl(ctx context.Context) templ.Component

Jump to

Keyboard shortcuts

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