Documentation
¶
Index ¶
- Variables
- func AddAccountCmd() tea.Cmd
- func ApplyToTargetsCmd(account *config.Account, targets []config.Source) tea.Cmd
- func DeleteAccountSourcesCmd(account *config.Account, sources []config.Source, activeKey string) tea.Cmd
- func FetchDataCmd(account *config.Account) tea.Cmd
- func ReloadAccountsCmd(activeKey string) tea.Cmd
- func SaveUIStateCmd(compact bool) tea.Cmd
- func SaveUIStateSnapshotCmd(state config.UIState) tea.Cmd
- type AccountsMsg
- type AnimationFrameMsg
- type DataMsg
- type ErrMsg
- type Model
- type NoticeMsg
- type NoticeTimeoutMsg
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TitleStyle = lipgloss.NewStyle(). Bold(true). Foreground(lipgloss.Color("205")). MarginBottom(1) TabActiveStyle = lipgloss.NewStyle(). Bold(true). Underline(true). Foreground(lipgloss.Color("255")) TabInactiveStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("240")) GroupHeaderStyle = lipgloss.NewStyle(). Bold(true). Foreground(lipgloss.Color("39")). MarginTop(1) LabelStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("252")) PercentStyle = lipgloss.NewStyle(). Width(8). Align(lipgloss.Right). Foreground(lipgloss.Color("170")) ResetTimeStyle = lipgloss.NewStyle(). Width(26). Align(lipgloss.Left). Foreground(lipgloss.Color("241")). MarginLeft(2) HelpStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("241")). MarginTop(1) ErrorStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("196")) WarningStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("196")) NoticeStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("42")) InfoTitleStyle = lipgloss.NewStyle(). Bold(true). Foreground(lipgloss.Color("39")) InfoKeyStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("244")) InfoValueStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("252")) InfoBoxStyle = lipgloss.NewStyle(). Border(lipgloss.NormalBorder()). BorderForeground(lipgloss.Color("240")). Padding(0, 1) SourceBadgeBracketStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("240")) SourceCodexBadgeActiveStyle = lipgloss.NewStyle(). Bold(true). Foreground(lipgloss.Color("205")) SourceOpenCodeBadgeActiveStyle = lipgloss.NewStyle(). Bold(true). Foreground(lipgloss.Color("39")) SourceCodexBadgeMutedStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("176")) SourceOpenCodeBadgeMutedStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("31")) SourceBadgeSeparatorStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("240")) SubscribedLabelActiveStyle = lipgloss.NewStyle(). Bold(true). Underline(true). Foreground(lipgloss.Color("177")) SubscribedLabelMutedStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("141")) SubscribedPercentPrefixStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("177")) CompactExhaustedHeaderStyle = lipgloss.NewStyle(). Bold(true). Foreground(lipgloss.Color("251")) BarEmptyStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("238")) )
Functions ¶
func AddAccountCmd ¶
func ApplyToTargetsCmd ¶
func DeleteAccountSourcesCmd ¶
func ReloadAccountsCmd ¶
func SaveUIStateCmd ¶
Types ¶
type AccountsMsg ¶
type AnimationFrameMsg ¶
type Model ¶
type Model struct {
Data api.UsageData
Loading bool
DeleteSourceSelect bool
DeleteSourceOptions []config.Source
DeleteSources map[config.Source]bool
DeleteSourceCursor int
DeleteConfirm bool
ApplyTargetSelect bool
ApplyTargets map[config.Source]bool
ApplyTargetCursor int
ApplyConfirm bool
ShowInfo bool
Notice string
Err error
Width int
Height int
CompactMode bool
UsageData map[string]api.UsageData
PlanTypeByAccount map[string]string
LoadingMap map[string]bool
ErrorsMap map[string]error
ExhaustedSticky map[string]bool
Accounts []*config.Account
SourcesByAccountID map[string][]string
ActiveSourcesByIdentity map[string][]string
ActiveAccountIx int
// contains filtered or unexported fields
}
func InitialModel ¶
func InitialModelWithUIState ¶
type NoticeTimeoutMsg ¶
type NoticeTimeoutMsg struct {
Seq int
}
Click to show internal directories.
Click to hide internal directories.