pages

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeviceAuth

func DeviceAuth(r *http.Request, data *DeviceAuthData) html.Node

func ExploreOrganizations

func ExploreOrganizations(r *http.Request, data *ExploreOrganizationsData) html.Node

func ExploreRepositories

func ExploreRepositories(r *http.Request, data *ExploreRepositoriesData) html.Node

func ExploreUsers

func ExploreUsers(r *http.Request, data *ExploreUsersData) html.Node

func Home

func Home(r *http.Request, data *HomeData) html.Node

func NewOrganization

func NewOrganization(r *http.Request, data *NewOrganizationData) html.Node

func NewRepository

func NewRepository(r *http.Request, data *NewRepositoryData) html.Node

func NewTicket

func NewTicket(r *http.Request, data *NewTicketData) html.Node

func OrganizationProfile

func OrganizationProfile(r *http.Request, data *OrganizationProfileData) html.Node

func RepositoryFile

func RepositoryFile(r *http.Request, data *RepositoryFileData) html.Node

func RepositorySettings

func RepositorySettings(r *http.Request, data *RepositorySettingsData) html.Node

func RepositoryTree

func RepositoryTree(r *http.Request, data *RepositoryTreeData) html.Node

func Settings

func Settings(r *http.Request, data *SettingsData) html.Node

func ShowRepository

func ShowRepository(r *http.Request, data *ShowRepositoryData) html.Node

func ShowTicket

func ShowTicket(r *http.Request, data *ShowTicketData) html.Node

func SignIn

func SignIn(r *http.Request, data *SignInData) html.Node

func SignUp

func SignUp(r *http.Request, data *SignUpData) html.Node

func TicketsList

func TicketsList(r *http.Request, data *TicketsListData) html.Node

func UserProfile

func UserProfile(r *http.Request, data *UserProfileData) html.Node

Types

type CollaboratorData

type CollaboratorData struct {
	Contributor *models.Contributor
	Username    string
}

type DeviceAuthData

type DeviceAuthData struct {
	User    *models.User
	Code    string
	Success bool
	Error   string
}

type ExploreOrganizationsData

type ExploreOrganizationsData struct {
	User          *models.User
	Organizations []*models.Organization
}

type ExploreRepositoriesData

type ExploreRepositoriesData struct {
	User         *models.User
	Repositories []RepositoryWithOwner
}

type ExploreUsersData

type ExploreUsersData struct {
	User  *models.User
	Users []*models.User
}

type HomeData

type HomeData struct {
	User         *models.User
	Repositories []RepositoryWithOwner
}

type NewOrganizationData

type NewOrganizationData struct {
	Username         string
	DisplayName      string
	UsernameError    string
	DisplayNameError string
}

type NewRepositoryData

type NewRepositoryData struct {
	Name               string
	DefaultBranch      string
	Visibility         string
	Owner              string
	NameError          string
	DefaultBranchError string
	User               *models.User
	Organizations      []*models.Organization
}

type NewTicketData

type NewTicketData struct {
	User          *models.User
	Repository    *models.Repository
	OwnerUsername string
	Title         string
	Body          string
	TitleError    string
	BodyError     string
	CanManage     bool
	StarCount     int64
	HasStarred    bool
	CloneURL      string
	RepositoryURL string
}

type OrganizationProfileData

type OrganizationProfileData struct {
	User         *models.User
	Organization *models.Organization
	Repositories []*models.Repository
	StarCounts   map[int64]int64
	CanManage    bool
	CurrentTab   string
}

type RepositoryFileData

type RepositoryFileData struct {
	User          *models.User
	Repository    *models.Repository
	OwnerUsername string
	CanManage     bool
	StarCount     int64
	HasStarred    bool
	Branches      []string
	CurrentBranch string
	CurrentPath   string
	FileContent   string
}

type RepositorySettingsData

type RepositorySettingsData struct {
	User                *models.User
	Repository          *models.Repository
	OwnerUsername       string
	Name                string
	DefaultBranch       string
	Visibility          string
	NameError           string
	DefaultBranchError  string
	VisibilityError     string
	GeneralSuccess      string
	DangerZoneSuccess   string
	StarCount           int64
	HasStarred          bool
	Collaborators       []CollaboratorData
	CollaboratorError   string
	CollaboratorSuccess string
	NewCollaborator     string
}

type RepositoryTreeData

type RepositoryTreeData struct {
	User          *models.User
	Repository    *models.Repository
	OwnerUsername string
	CanManage     bool
	StarCount     int64
	HasStarred    bool
	Branches      []string
	CurrentBranch string
	CurrentPath   string
	Entries       []services.TreeEntry
	IsEmpty       bool
}

type RepositoryWithOwner

type RepositoryWithOwner struct {
	Repository    *models.Repository
	OwnerUsername string
	StarCount     int64
}

type SettingsData

type SettingsData struct {
	User                 *models.User
	DisplayNameError     string
	UsernameError        string
	CurrentPasswordError string
	NewPasswordError     string
	ConfirmPasswordError string
	GeneralSuccess       string
	PasswordSuccess      string
	DisplayName          string
	Username             string
	AccessTokens         []*models.AccessToken
	NewAccessToken       string
	AccessTokenSuccess   string
	AccessTokenError     string
}

type ShowRepositoryData

type ShowRepositoryData struct {
	User          *models.User
	Repository    *models.Repository
	OwnerUsername string
	CloneURL      string
	IsPublic      bool
	CanManage     bool
	StarCount     int64
	HasStarred    bool
}

type ShowTicketData

type ShowTicketData struct {
	User           *models.User
	Repository     *models.Repository
	OwnerUsername  string
	Ticket         *models.Ticket
	Author         *models.User
	Comments       []*models.TicketComment
	CommentAuthors map[int64]*models.User
	CanManage      bool
	StarCount      int64
	HasStarred     bool
	CloneURL       string
	RepositoryURL  string
}

type SignInData

type SignInData struct {
	Error string
}

type SignUpData

type SignUpData struct {
	DisplayNameError string
	UsernameError    string
	EmailError       string
	PasswordError    string
	DisplayName      string
	Username         string
	Email            string
}

type TicketsListData

type TicketsListData struct {
	User          *models.User
	Repository    *models.Repository
	OwnerUsername string
	Tickets       []*models.Ticket
	StatusFilter  string
	OpenCount     int64
	ClosedCount   int64
	CanManage     bool
	StarCount     int64
	HasStarred    bool
	CloneURL      string
	RepositoryURL string
}

type UserProfileData

type UserProfileData struct {
	User                  *models.User
	ProfileUser           *models.User
	Repositories          []*models.Repository
	RepositoriesWithOwner []RepositoryWithOwner
	StarCounts            map[int64]int64
	CurrentTab            string
	CanManage             bool
}

Jump to

Keyboard shortcuts

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