Documentation
¶
Index ¶
- func BuildDishSpecsContent(spec model.DishSpecification) string
- func BuildHelpContent(version, githubURL string) string
- func BuildJSONContent(dish model.Dish) string
- func RenderAntennaInfo(dish model.Dish, width int) string
- func RenderDownSignal(signals []model.DownSignal, selectedIdx int, width int, sparkline string) string
- func RenderTarget(targets []model.Target, selectedIdx int, width int, distanceUnit string) string
- func RenderUpSignal(signals []model.UpSignal, selectedIdx int, width int, sparkline string) string
- type CompactRow
- type CompactTable
- func (c CompactTable) GetVisibleContent() string
- func (c *CompactTable) RefreshStyles()
- func (c *CompactTable) SetRows(rows []CompactRow)
- func (c *CompactTable) SetSize(w, h int)
- func (c *CompactTable) SetSortLabel(label string)
- func (c *CompactTable) Update(msg tea.Msg) tea.Cmd
- func (c CompactTable) View() string
- type DishDelegate
- type DishItem
- type DishList
- func (d *DishList) Index() int
- func (d *DishList) Select(index int)
- func (d *DishList) SetItems(dishes []model.Dish, bookmarks map[string]bool)
- func (d *DishList) SetSize(w, h int)
- func (d *DishList) Update(msg tea.Msg) tea.Cmd
- func (d DishList) View(width, height int, selectedIdx, total int) string
- func (d *DishList) VisibleOffset() int
- type Modal
- type ModalType
- type StationBar
- type StatusBar
- type StatusBarParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDishSpecsContent ¶
func BuildDishSpecsContent(spec model.DishSpecification) string
BuildDishSpecsContent builds the dish specification modal content.
func BuildHelpContent ¶
BuildHelpContent builds the help/about modal content.
func BuildJSONContent ¶
BuildJSONContent formats a dish as indented JSON for the preview modal.
func RenderDownSignal ¶
func RenderTarget ¶
Types ¶
type CompactRow ¶
type CompactTable ¶
type CompactTable struct {
// contains filtered or unexported fields
}
func NewCompactTable ¶
func NewCompactTable() CompactTable
func (CompactTable) GetVisibleContent ¶
func (c CompactTable) GetVisibleContent() string
func (*CompactTable) RefreshStyles ¶
func (c *CompactTable) RefreshStyles()
func (*CompactTable) SetRows ¶
func (c *CompactTable) SetRows(rows []CompactRow)
func (*CompactTable) SetSize ¶
func (c *CompactTable) SetSize(w, h int)
func (*CompactTable) SetSortLabel ¶
func (c *CompactTable) SetSortLabel(label string)
func (CompactTable) View ¶
func (c CompactTable) View() string
type DishDelegate ¶
type DishDelegate struct{}
DishDelegate renders each dish list item.
func (DishDelegate) Height ¶
func (d DishDelegate) Height() int
func (DishDelegate) Spacing ¶
func (d DishDelegate) Spacing() int
type DishItem ¶
DishItem implements list.Item for a dish entry.
func (DishItem) Description ¶
func (DishItem) FilterValue ¶
type DishList ¶
type DishList struct {
// contains filtered or unexported fields
}
DishList wraps a bubbles/list.Model for dish navigation.
func NewDishList ¶
func NewDishList() DishList
func (*DishList) VisibleOffset ¶ added in v0.1.1
VisibleOffset returns the index of the first visible item in the list.
type Modal ¶
type Modal struct {
// contains filtered or unexported fields
}
func (*Modal) SetContent ¶
type StationBar ¶
type StationBar struct {
// contains filtered or unexported fields
}
func NewStationBar ¶
func NewStationBar() StationBar
func (*StationBar) SetWidth ¶
func (s *StationBar) SetWidth(w int)
type StatusBar ¶
type StatusBar struct {
// contains filtered or unexported fields
}
func NewStatusBar ¶
func NewStatusBar() StatusBar
func (StatusBar) View ¶
func (s StatusBar) View(p StatusBarParams) string
Click to show internal directories.
Click to hide internal directories.