ui

package
v2.0.0-...-8fcd886 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReserveSpaceHeight  = 5
	ReserveSpaceWidth   = 0
	ReserveSpaceContent = 10
)

Variables

View Source
var (

	// Icons
	IconTitle    = "📌 "
	IconAuthor   = "👤 "
	IconTime     = "🕒 "
	IconContent  = "📝 "
	IconComments = "💬 "
	IconRefresh  = "🔄 "
	IconBack     = "⬅️ "
	IconEnter    = "⏎ "
	IconMouse    = "🐭 "
)

Functions

This section is empty.

Types

type DetailPage

type DetailPage struct {
	Topic model.Topic
	// contains filtered or unexported fields
}

func NewDetailPage

func NewDetailPage() *DetailPage

func (*DetailPage) LoadTopic

func (d *DetailPage) LoadTopic(topic model.Topic) tea.Cmd

func (*DetailPage) Update

func (d *DetailPage) Update(msg tea.Msg) (*DetailPage, tea.Cmd)

func (*DetailPage) View

func (d *DetailPage) View() string

type HomePage

type HomePage struct {
	// contains filtered or unexported fields
}

func NewHomePage

func NewHomePage() *HomePage

func (*HomePage) GetSelectedTopic

func (h *HomePage) GetSelectedTopic() *model.Topic

func (*HomePage) Init

func (h *HomePage) Init() tea.Cmd

func (*HomePage) Update

func (h *HomePage) Update(msg tea.Msg) (*HomePage, tea.Cmd)

func (*HomePage) View

func (h *HomePage) View() string

type ReplyPage

type ReplyPage struct {
	// contains filtered or unexported fields
}

func NewReplyPage

func NewReplyPage() *ReplyPage

func (*ReplyPage) LoadReply

func (r *ReplyPage) LoadReply(reply model.Reply, allReplies []model.Reply)

func (*ReplyPage) Update

func (r *ReplyPage) Update(msg tea.Msg) (*ReplyPage, tea.Cmd)

func (*ReplyPage) View

func (r *ReplyPage) View() string

Jump to

Keyboard shortcuts

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