html_page

package
v0.0.0-...-f5b74cc Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Avatar

func Avatar(props AvatarProps) Node

func Leaderboard

func Leaderboard(props LeaderboardProps) Node

func LeaderboardData

func LeaderboardData(props LeaderboardDataProps) Node

func ProfileCard

func ProfileCard(props ProfileCardProps) Node

func ProgressBar

func ProgressBar(props ProgressBarProps) Node

func ProgressGroup

func ProgressGroup(props ProgressGroupProps) Node

func ProgressGroupHeader

func ProgressGroupHeader(props ProgressGroupHeaderProps) Node

func ServerIcon

func ServerIcon(props ServerIconProps) Node

func SeverLeaderboard

func SeverLeaderboard(props SeverLeaderboardProps) Node

func Tag

func Tag(props TagProps) Node

func Uppercase

func Uppercase(s string) string

func UserInfo

func UserInfo(props UserInfoProps) Node

Types

type ActivityInfo

type ActivityInfo struct {
	Rank               int
	TotalPoints        int
	RoleCurrentPoints  int
	RoleRequiredPoints int
	CurrentTitleInfo   *ActivityRole
}

type ActivityRole

type ActivityRole struct {
	Accent string
	Text   string
}

type AvatarProps

type AvatarProps struct {
	URL string
}

type LeaderboardDataField

type LeaderboardDataField struct {
	Rank     int
	Username string
	Value    int
}

type LeaderboardDataProps

type LeaderboardDataProps struct {
	Key  string
	Data []LeaderboardDataField
}

type LeaderboardInfo

type LeaderboardInfo struct {
	Name string
	Data []LeaderboardDataField
}

type LeaderboardProps

type LeaderboardProps struct {
	ServerName      string
	LeaderboardName string
	ResetTime       *time.Time
}

type ProfileCardProps

type ProfileCardProps struct {
	APIUrl       string
	DisplayName  string
	Username     string
	AvatarURL    string
	ChatActivity ActivityInfo
}

type ProgressBarProps

type ProgressBarProps struct {
	CurrentProgress  int
	RequiredProgress int
}

type ProgressGroupHeaderProps

type ProgressGroupHeaderProps struct {
	ActivityType string
	Icon         Node
	Rank         int
	TotalPoints  int
}

type ProgressGroupProps

type ProgressGroupProps struct {
	ActivityType   string
	Icon           Node
	Rank           int
	TotalPoints    int
	CurrentPoints  int
	RequiredPoints int
}

type ServerIconProps

type ServerIconProps struct {
	URL string
}

type ServerInfo

type ServerInfo struct {
	Icon string
	Name string
}

type SeverLeaderboardProps

type SeverLeaderboardProps struct {
	APIUrl          string
	ServerInfo      ServerInfo
	LeaderboardInfo LeaderboardInfo
}

type TagProps

type TagProps struct {
	Accent string
	Icon   Node
	Text   string
}

type UserInfoProps

type UserInfoProps struct {
	DisplayName string
	Username    string

	TopChatActivityRole *ActivityRole
}

Jump to

Keyboard shortcuts

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