Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CardCommand ¶
Types ¶
type CardsModel ¶
type CardsModel struct {
AllRows []table.Row
Choice string
Error error
IllustratorMap map[string]string
ImageMap map[string]string
Loading bool
PriceMap map[string]string
Quitting bool
RegulationMarkMap map[string]string
Search textinput.Model
SelectedOption string
SeriesName string
SetID string
Spinner spinner.Model
Table table.Model
TableStyles table.Styles
ViewImage bool
}
func CardsList ¶
func CardsList(setID string) (CardsModel, error)
CardsList returns a minimal model - data fetching happens via Init()
func (CardsModel) Init ¶
func (m CardsModel) Init() tea.Cmd
func (CardsModel) View ¶
func (m CardsModel) View() string
type ImageModel ¶
type ImageModel struct {
CardName string
ImageURL string
Error error
Loading bool
Spinner spinner.Model
ImageData string
Protocol string
}
func ImageRenderer ¶
func ImageRenderer(cardName string, imageURL string) ImageModel
func (ImageModel) Init ¶
func (m ImageModel) Init() tea.Cmd
func (ImageModel) View ¶
func (m ImageModel) View() string
type SeriesModel ¶
func SeriesList ¶
func SeriesList() SeriesModel
func (SeriesModel) Init ¶
func (m SeriesModel) Init() tea.Cmd
func (SeriesModel) View ¶
func (m SeriesModel) View() string
type SetsModel ¶
type SetsModel struct {
Choice string
Error error
Loading bool
List list.Model
Quitting bool
SeriesName string
SetID string
SetsIDMap map[string]string // Maps set name -> set_id
Spinner spinner.Model
}
Click to show internal directories.
Click to hide internal directories.