components

package
v0.0.0-...-d625e3b Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Celebration

func Celebration() html.Node

func CloneDropdown

func CloneDropdown(data *RepositoryActionsDropdownData) html.Node
func Head(title string) html.Node
func Header(data *HeaderData, children ...html.Node) html.Node

func MainHeader

func MainHeader(data *MainHeaderData) html.Node

func ProfileHeader

func ProfileHeader(data *ProfileHeaderData) html.Node

func RepositoryHeader

func RepositoryHeader(data *RepositoryHeaderData) html.Node

func ShareDropdown

func ShareDropdown(data *RepositoryActionsDropdownData) html.Node

Types

type HeaderData

type HeaderData struct {
	User *models.User
}

type MainHeaderData

type MainHeaderData struct {
	User  *models.User
	Class string
}

type ProfileHeaderData

type ProfileHeaderData struct {
	User         *models.User
	Username     string
	DisplayName  string
	IsOrg        bool
	CurrentTab   string
	ShowSettings bool
}

type RepositoryActionsDropdownData

type RepositoryActionsDropdownData struct {
	OwnerUsername string
	RepoName      string
	CloneURL      string
	RepositoryURL string
}

type RepositoryHeaderData

type RepositoryHeaderData struct {
	User          *models.User
	OwnerUsername string
	RepoName      string
	IsPublic      bool
	CurrentTab    string
	ShowSettings  bool
	StarCount     int64
	HasStarred    bool
	DefaultBranch string
	CloneURL      string
	RepositoryURL string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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