Documentation
¶
Index ¶
- Variables
- func RenderPage(layout PageLayout) string
- func RenderPageWithBottomHelp(layout PageLayout, terminalHeight int) string
- func RenderStationDetails(station api.Station) string
- type App
- type ConnectionSettingsModel
- type GistModel
- type ListManagementModel
- type LuckyModel
- type PageLayout
- type PlayModel
- type Screen
- type SearchModel
- type SettingsModel
- type ShuffleSettingsModel
Constants ¶
This section is empty.
Variables ¶
var Version = "dev"
Version is set from main.go
Functions ¶
func RenderPage ¶
func RenderPage(layout PageLayout) string
RenderPage renders a page with consistent layout using the template This ensures all pages have the same spacing and structure
func RenderPageWithBottomHelp ¶
func RenderPageWithBottomHelp(layout PageLayout, terminalHeight int) string
RenderPageWithBottomHelp renders a page with help text at the bottom of the screen
func RenderStationDetails ¶ added in v1.1.0
RenderStationDetails renders station details in a formatted way
Types ¶
type ConnectionSettingsModel ¶ added in v1.6.0
type ConnectionSettingsModel struct {
// contains filtered or unexported fields
}
ConnectionSettingsModel represents the connection settings page
func NewConnectionSettingsModel ¶ added in v1.6.0
func NewConnectionSettingsModel() ConnectionSettingsModel
NewConnectionSettingsModel creates a new connection settings model
func (ConnectionSettingsModel) Init ¶ added in v1.6.0
func (m ConnectionSettingsModel) Init() tea.Cmd
Init initializes the connection settings model
func (ConnectionSettingsModel) Update ¶ added in v1.6.0
Update handles messages for connection settings
func (ConnectionSettingsModel) View ¶ added in v1.6.0
func (m ConnectionSettingsModel) View() string
View renders the connection settings screen
type GistModel ¶
type GistModel struct {
// contains filtered or unexported fields
}
func NewGistModel ¶
type ListManagementModel ¶
type ListManagementModel struct {
// contains filtered or unexported fields
}
ListManagementModel represents the list management screen
func NewListManagementModel ¶
func NewListManagementModel(favoritePath string) ListManagementModel
NewListManagementModel creates a new list management model
func (ListManagementModel) Init ¶
func (m ListManagementModel) Init() tea.Cmd
Init initializes the list management screen
func (ListManagementModel) View ¶
func (m ListManagementModel) View() string
View renders the list management screen
type LuckyModel ¶
type LuckyModel struct {
// contains filtered or unexported fields
}
LuckyModel represents the I Feel Lucky screen
func NewLuckyModel ¶
func NewLuckyModel(apiClient *api.Client, favoritePath string) LuckyModel
NewLuckyModel creates a new lucky screen model
type PageLayout ¶
type PageLayout struct {
Title string // Main title (optional)
Subtitle string // Subtitle (optional)
Content string // Main content area
Help string // Help text at bottom
}
PageLayout represents a consistent page layout structure
type PlayModel ¶
type PlayModel struct {
// contains filtered or unexported fields
}
PlayModel represents the play screen
func NewPlayModel ¶
NewPlayModel creates a new play screen model
type SearchModel ¶
type SearchModel struct {
// contains filtered or unexported fields
}
SearchModel represents the search screen
func NewSearchModel ¶
func NewSearchModel(apiClient *api.Client, favoritePath string) SearchModel
NewSearchModel creates a new search screen model
type SettingsModel ¶
type SettingsModel struct {
// contains filtered or unexported fields
}
SettingsModel represents the settings screen
func NewSettingsModel ¶
func NewSettingsModel(favoritePath string) SettingsModel
NewSettingsModel creates a new settings screen model
func (SettingsModel) Init ¶
func (m SettingsModel) Init() tea.Cmd
Init initializes the settings screen
type ShuffleSettingsModel ¶ added in v1.5.0
type ShuffleSettingsModel struct {
// contains filtered or unexported fields
}
ShuffleSettingsModel represents the shuffle settings page
func NewShuffleSettingsModel ¶ added in v1.5.0
func NewShuffleSettingsModel() ShuffleSettingsModel
NewShuffleSettingsModel creates a new shuffle settings model
func (ShuffleSettingsModel) Init ¶ added in v1.5.0
func (m ShuffleSettingsModel) Init() tea.Cmd
Init initializes the shuffle settings model
func (ShuffleSettingsModel) View ¶ added in v1.5.0
func (m ShuffleSettingsModel) View() string
View renders the shuffle settings screen