views

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Back

func Back() key.Binding

func CursorDown

func CursorDown() key.Binding

func CursorUp

func CursorUp() key.Binding

func GenerateOfflineAscii

func GenerateOfflineAscii(_ string, url string) string

func GoToEventPage

func GoToEventPage() key.Binding

func RefreshPage

func RefreshPage() key.Binding

Types

type EventList

type EventList struct {
	Quitting bool

	DataUpdated time.Time
	// contains filtered or unexported fields
}

func NewEventsList

func NewEventsList(provider provider.Provider) EventList

func (EventList) Footer

func (m EventList) Footer() string

func (EventList) GetUpdatedAt

func (m EventList) GetUpdatedAt() string

func (EventList) Header

func (m EventList) Header() string

func (EventList) Init

func (m EventList) Init() tea.Cmd

func (EventList) Update

func (m EventList) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (EventList) View

func (m EventList) View() string

type EventViev

type EventViev struct {
	DataUpdated time.Time
	// contains filtered or unexported fields
}

func InitEventView

func InitEventView(event models.Event, provider provider.Provider) EventViev

func (EventViev) Ascii

func (m EventViev) Ascii() string

func (EventViev) Description

func (m EventViev) Description() []string

func (EventViev) GetUpdatedAt

func (m EventViev) GetUpdatedAt() string
func (m EventViev) ImageLink() string

func (EventViev) Init

func (m EventViev) Init() tea.Cmd

func (EventViev) Refresh

func (m EventViev) Refresh() tea.Cmd

func (EventViev) Update

func (m EventViev) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (EventViev) View

func (m EventViev) View() string

type EventViewKeymap

type EventViewKeymap struct{}

func (EventViewKeymap) FullHelp

func (m EventViewKeymap) FullHelp() [][]key.Binding

func (EventViewKeymap) ShortHelp

func (m EventViewKeymap) ShortHelp() []key.Binding

type EventViewListItem

type EventViewListItem struct {
	Event models.Event
}

func (EventViewListItem) Description

func (i EventViewListItem) Description() string

func (EventViewListItem) FilterValue

func (i EventViewListItem) FilterValue() string

func (EventViewListItem) Title

func (i EventViewListItem) Title() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL