ui

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChatCSS added in v0.6.0

func ChatCSS() templ.Component

func InboxCSS added in v0.6.0

func InboxCSS() templ.Component

func Markdown added in v0.6.0

func Markdown(text string) templ.Component

func ServiceWorkerJS

func ServiceWorkerJS() []byte

func StaticHandler

func StaticHandler() http.Handler

func TempluiCSS

func TempluiCSS() templ.Component

Types

type ChatAttachmentProps added in v0.6.0

type ChatAttachmentProps struct {
	ID       int64
	IsImage  bool
	Name     string
	ThreadID int64
}

type ChatComposerHiddenProps added in v0.6.0

type ChatComposerHiddenProps struct {
	Name  string
	Value string
}

type ChatComposerProps added in v0.6.0

type ChatComposerProps struct {
	Action      string
	Agent       string
	FileName    string
	Hidden      []ChatComposerHiddenProps
	HXPost      string
	IDPrefix    string
	Model       string
	Placeholder string
	StopAction  string
	UploadURL   string
}

type ChatFormFieldProps added in v0.6.0

type ChatFormFieldProps struct {
	Label    string
	Name     string
	Options  []string
	Required bool
	Type     string
	Value    string
}

type ChatFormProps added in v0.6.0

type ChatFormProps struct {
	Action        string
	ElicitationID string
	Fields        []ChatFormFieldProps
	Message       string
	MessageID     int64
}

type ChatMessageProps added in v0.6.0

type ChatMessageProps struct {
	Attachments []ChatAttachmentProps
	Author      string
	Body        string
	Form        *ChatFormProps
	ID          int64
	Parts       []ChatPartProps
	Role        string
	Status      string
}

type ChatPartProps added in v0.6.0

type ChatPartProps struct {
	Kind    string
	Plan    []ChatPlanEntryProps
	Summary string
	Text    string
	Tool    *ChatToolCallProps
}

type ChatPlanEntryProps added in v0.6.0

type ChatPlanEntryProps struct {
	Content string
	Status  string
}

type ChatThreadProps added in v0.6.0

type ChatThreadProps struct {
	Agent    string
	ID       int64
	Messages []ChatMessageProps
	Title    string
}

type ChatToolCallProps added in v0.6.0

type ChatToolCallProps struct {
	Detail  string
	ID      string
	Status  string
	Summary string
	Title   string
}

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 FloatingChatProps added in v0.6.0

type FloatingChatProps struct {
	Access      string
	Agent       string
	Description string
	ID          int64
	Messages    []ChatMessageProps
	Streaming   bool
	Title       string
}

type HunkProps

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

type InboxCounts added in v0.6.0

type InboxCounts struct {
	Chats     int
	Inbox     int
	Starred   int
	Tasks     int
	Workflows int
}

type InboxDraftDetail added in v0.6.0

type InboxDraftDetail struct {
	Agent string
	Model string
	Title string
}

type InboxItem added in v0.6.0

type InboxItem struct {
	Archived  bool
	Done      bool
	From      string
	Href      string
	ID        int64
	Kind      string
	Snippet   string
	Starred   bool
	Title     string
	UpdatedAt time.Time
	When      string
	Workflow  bool
}

type InboxProps added in v0.6.0

type InboxProps struct {
	ArchiveFilter string
	ChatOptions   []uikit.SelectOption
	Counts        InboxCounts
	Draft         *InboxDraftDetail
	Items         []InboxItem
	Selected      InboxSelection
	Task          *InboxTaskDetail
	Thread        *InboxThreadDetail
	View          string
}

type InboxSelection added in v0.6.0

type InboxSelection struct {
	ID   int64
	Kind string
}

type InboxTaskDetail added in v0.6.0

type InboxTaskDetail struct {
	Task db.Task
}

type InboxThreadDetail added in v0.6.0

type InboxThreadDetail struct {
	Access      string
	Agent       string
	Archived    bool
	Description string
	ID          int64
	Kind        string
	Messages    []ChatMessageProps
	Starred     bool
	Streaming   bool
	Title       string
}

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 ReaderHeaderProps added in v0.6.0

type ReaderHeaderProps struct {
	BackHref    string
	Description string
	Labels      []string
	Title       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
	ClaudeVersion      string
	CodexAuthenticated bool
	CodexInstalled     bool
	CodexLoginCode     string
	CodexLoginError    string
	CodexLoginURL      string
	CodexVersion       string
	ConfigureError     string
	Configured         bool
	InstallError       string
	Installed          bool
	LoginError         string
	LoginURL           string
	Nav                string
	Oob                bool
	SessionDir         string
	SessionError       string
	Sessions           []SessionProps
}

type TodoChatItem added in v0.6.0

type TodoChatItem struct {
	Description string
	ID          int64
	Title       string
	When        string
}

type TodoProps added in v0.6.0

type TodoProps struct {
	ActiveCount int
	ChatCount   int
	ChatItems   []TodoChatItem
	ChatLabel   string
	ChatOptions []uikit.SelectOption
	Detail      *TodoTaskDetail
	Title       string
	Tasks       []db.Task
	TaskCount   int
	View        string
}

type TodoTaskDetail added in v0.6.0

type TodoTaskDetail struct {
	Task db.Task
}

Jump to

Keyboard shortcuts

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