ui

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppCard

func AppCard(extra ...string) templ.Component

func AppTitle

func AppTitle(extra ...string) templ.Component

func CodeLayout

func CodeLayout(title string, subnav CodeSubnavProps) templ.Component

func CodeSubnav

func CodeSubnav(p CodeSubnavProps) templ.Component

func CommentCardItem

func CommentCardItem(p CommentItemProps) templ.Component

func CommentForm

func CommentForm(p CommentFormProps) templ.Component

func CommentIcons

func CommentIcons(p CommentItemProps) templ.Component

func CommentItem

func CommentItem(p CommentItemProps) templ.Component

func CommentListFile

func CommentListFile(p CommentListFileProps) templ.Component

func CommentListPage

func CommentListPage(p CommentListProps) templ.Component

func CommentThread

func CommentThread(p CommentThreadProps) templ.Component

func CommitsPage

func CommitsPage(p CommitsProps) templ.Component

func ConfigureCard

func ConfigureCard(v SessionsProps) templ.Component

func ContextAttached

func ContextAttached(p ContextProps) templ.Component

func ControlPlaceholder

func ControlPlaceholder() templ.Component

func DiffLine

func DiffLine(l DiffLineProps) templ.Component

func DiffPage

func DiffPage(p DiffProps) templ.Component

func EditCommentForm

func EditCommentForm(p EditCommentFormProps) templ.Component

func FileBlock

func FileBlock(f FileProps) templ.Component

func FileTreeList

func FileTreeList(t FileTreeProps) templ.Component

func FilesHead

func FilesHead() templ.Component

func FilesPage

func FilesPage(v FilesProps) templ.Component
func Head(title string) templ.Component

func HunkBlock

func HunkBlock(h HunkProps) templ.Component

func InstallCard

func InstallCard(v SessionsProps) templ.Component

func Layout

func Layout(title, nav string) templ.Component

func LoginCard

func LoginCard(v SessionsProps) templ.Component

func OverviewPage

func OverviewPage(p OverviewProps) templ.Component

func PrevButtonsEmpty

func PrevButtonsEmpty() templ.Component

func PrevButtonsInner

func PrevButtonsInner(s ExpandSpot) templ.Component

func ServiceWorkerJS

func ServiceWorkerJS() []byte

func SessionDirPicker

func SessionDirPicker(p PickerProps) templ.Component

func SessionsCard

func SessionsCard(v SessionsProps) templ.Component

func SessionsPage

func SessionsPage(v SessionsProps) templ.Component

func SetupPage

func SetupPage(v SessionsProps) templ.Component

func StaticHandler

func StaticHandler() http.Handler

func TempluiCSS

func TempluiCSS() templ.Component

func TopNav

func TopNav(active string) templ.Component

Types

type CodeSubnavProps

type CodeSubnavProps struct {
	Active   string
	Comments int
	Repo     repo.Repo
}

type CommentFormProps

type CommentFormProps struct {
	Anchor string
	Line   int
	Path   string
	Side   string
	Slug   string
}

type CommentItemProps

type CommentItemProps struct {
	Anchor  string
	Comment db.Comment
	Slug    string
	View    string
}

type CommentListFileProps

type CommentListFileProps struct {
	Comments []db.Comment
	Path     string
	Slug     string
}

type CommentListProps

type CommentListProps struct {
	Comments int
	Error    string
	Files    []CommentListFileProps
	Repo     repo.Repo
}

type CommentThreadProps

type CommentThreadProps struct {
	Anchor   string
	Comments []db.Comment
	Slug     string
}

type CommitsProps

type CommitsProps struct {
	Commits  []git.Commit
	Comments int
	Error    string
	Repo     repo.Repo
}

type ContextProps

type ContextProps struct {
	Continuation *ExpandSpot
	Direction    string
	From         int
	HunkKey      string
	Lang         string
	Lines        []string
	Offset       int
}

type DiffLineProps

type DiffLineProps struct {
	Anchor     string
	AnchorLine int
	Comments   []db.Comment
	Lang       string
	Line       git.Line
	Path       string
	Side       string
	Slug       string
}

type DiffProps

type DiffProps struct {
	Commit   git.Commit
	Comments int
	Error    string
	Files    []FileProps
	Repo     repo.Repo
}

type EditCommentFormProps

type EditCommentFormProps struct {
	Anchor  string
	Comment db.Comment
	Slug    string
	View    string
}

type ExpandSpot

type ExpandSpot struct {
	Bound     int
	Direction string
	From      int
	FullFrom  int
	FullTo    int
	HunkKey   string
	Offset    int
	Path      string
	Slug      string
	To        int
}

type FileEntry

type FileEntry struct {
	Dir  bool
	Name string
	Path string
}

type FileProps

type FileProps struct {
	Adds     int
	Binary   bool
	Comments int
	Dels     int
	Hunks    []*HunkProps
	Path     string
	Slug     string
	Status   git.FileStatus
}

type FileTreeProps

type FileTreeProps struct {
	Entries []FileEntry
}

type FilesProps

type FilesProps struct {
	Entries []FileEntry
	Error   string
	Root    string
}

type HunkProps

type HunkProps struct {
	Commit   git.Commit
	Hunk     *git.Hunk
	Lang     string
	Lines    []DiffLineProps
	PrevSpot *ExpandSpot
	Virtual  bool
}

type OverviewProps

type OverviewProps struct {
	Error string
	Home  string
	Repos []repo.Repo
}

type PickerProps

type PickerProps struct {
	Dir     string
	Entries []string
	Error   string
	HasUp   bool
	Parent  string
}

type SessionProps

type SessionProps struct {
	Dir         string
	ID          string
	LastMessage string
	Name        string
	Prompt      string
	StartedAt   time.Time
	URL         string
}

type SessionsProps

type SessionsProps struct {
	AgentsBehind   int
	AgentsDir      string
	AgentsDirty    bool
	AgentsDiverged bool
	Authenticated  bool
	ConfigureError string
	Configured     bool
	InstallError   string
	Installed      bool
	LoginError     string
	LoginURL       string
	Nav            string
	Oob            bool
	SessionDir     string
	SessionError   string
	Sessions       []SessionProps
}

Jump to

Keyboard shortcuts

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