Documentation
¶
Overview ¶
Package tui provides a terminal user interface for cf
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is the main application model
type ContestsLoadedMsg ¶
ContestsLoadedMsg is sent when contests are loaded
type KeyMap ¶
type KeyMap struct {
// Navigation
Up key.Binding
Down key.Binding
Left key.Binding
Right key.Binding
PageUp key.Binding
PageDown key.Binding
Home key.Binding
End key.Binding
// Tab navigation
Tab1 key.Binding
Tab2 key.Binding
Tab3 key.Binding
Tab4 key.Binding
Tab5 key.Binding
NextTab key.Binding
PrevTab key.Binding
// Actions
Enter key.Binding
Back key.Binding
Refresh key.Binding
Search key.Binding
Filter key.Binding
Sort key.Binding
Open key.Binding
Help key.Binding
Quit key.Binding
}
KeyMap defines the keybindings for the application
type LoadingMsg ¶
LoadingMsg indicates loading state
type ProblemsLoadedMsg ¶
ProblemsLoadedMsg is sent when problems are loaded
type RatingLoadedMsg ¶
type RatingLoadedMsg struct {
RatingChanges []cfapi.RatingChange
}
RatingLoadedMsg is sent when rating history is loaded
type StatsLoadedMsg ¶
type StatsLoadedMsg struct {
TotalSolved int
TotalSubmissions int
AcceptanceRate float64
ByRating map[int]int
ByTag map[string]int
RecentSolved int
Streak int
}
StatsLoadedMsg is sent when statistics are loaded
type SubmissionsLoadedMsg ¶
type SubmissionsLoadedMsg struct {
Submissions []cfapi.Submission
}
SubmissionsLoadedMsg is sent when submissions are loaded
type SwitchViewMsg ¶
type SwitchViewMsg struct {
View View
}
SwitchViewMsg switches to a different view
type UserLoadedMsg ¶
UserLoadedMsg is sent when user data is loaded
type WindowSizeMsg ¶
WindowSizeMsg is sent when the window is resized
Click to show internal directories.
Click to hide internal directories.