ui

package
v0.0.0-...-4ec974a Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EpisodesOffsetRange = 500
)

Variables

This section is empty.

Functions

func GetMD5Hash

func GetMD5Hash(text string) string

func SetUniversalHandlers

func SetUniversalHandlers(core *core.Kanna)

SetUniversalHandlers : Set universal inputs for the app.

func ShowAnimePage

func ShowAnimePage(core *core.Kanna, anime *tohru.Anime)

ShowAnimePage : Make the app show the anime page.

func ShowHelpPage

func ShowHelpPage(core *core.Kanna)

ShowHelpPage : Make the app show the help page.

func ShowMainPage

func ShowMainPage(core *core.Kanna)

ShowMainPage : Make the app show the main page.

func ShowModal

func ShowModal(core *core.Kanna, id string, modal *tview.Modal)

ShowModal : Make the app show a modal.

func ShowSearchPage

func ShowSearchPage(core *core.Kanna)

ShowSearchPage : Make the app show the search page.

Types

type AnimePage

type AnimePage struct {
	Anime *tohru.AnimeDetails
	Grid  *tview.Grid
	Info  *tview.TextView
	Table *tview.Table
	Core  *core.Kanna
	// contains filtered or unexported fields
}

AnimePage : This struct contains the required primitives for the anime page.

type EpisodeSelection

type EpisodeSelection struct {
	// contains filtered or unexported fields
}

type HelpPage

type HelpPage struct {
	Grid *tview.Grid
	Core *core.Kanna
}

HelpPage : This struct contains the grid for the help page.

type MainPage

type MainPage struct {
	Grid          *tview.Grid
	Table         *tview.Table
	CurrentOffset int
	Core          *core.Kanna
	// contains filtered or unexported fields
}

MainPage : This struct contains the grid and the entry table.

type SearchPage

type SearchPage struct {
	MainPage
	Form *tview.Form
	Core *core.Kanna
}

SearchPage : This struct contains the search bar and the table of results for the search. This struct reuses the MainPage struct, specifically for the guest table.

type SearchParams

type SearchParams struct {
	// contains filtered or unexported fields
}

SearchParams : Convenience struct to hold parameters for setting up a search table.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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