ui

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetUniversalHandlers

func SetUniversalHandlers()

SetUniversalHandlers : Set universal inputs for the app.

func ShowHelpPage

func ShowHelpPage()

ShowHelpPage : Make the app show the help page.

func ShowLoginPage

func ShowLoginPage()

ShowLoginPage : Make the app show the login page.

func ShowMainPage

func ShowMainPage()

ShowMainPage : Make the app show the main page.

func ShowMangaPage

func ShowMangaPage(manga *mangodex.Manga)

ShowMangaPage : Make the app show the manga page.

func ShowModal

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

ShowModal : Make the app show a modal.

func ShowSearchPage

func ShowSearchPage()

ShowSearchPage : Make the app show the search page.

Types

type HelpPage

type HelpPage struct {
	Grid *tview.Grid
}

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

type LoginPage

type LoginPage struct {
	Grid *tview.Grid
	Form *tview.Form
}

LoginPage : This struct contains the grid and form for the login page.

type MainPage

type MainPage struct {
	Grid          *tview.Grid  // The page grid.
	Table         *tview.Table // The table that contains the list of manga.
	CurrentOffset int
	MaxOffset     int
	// contains filtered or unexported fields
}

MainPage : This struct contains the grid and the entry table. In addition, it also keeps track of whether to show followed/popular manga based on login status as well as the entry offset.

type MangaPage

type MangaPage struct {
	Manga *mangodex.Manga
	Grid  *tview.Grid
	Info  *tview.TextView
	Table *tview.Table
	// contains filtered or unexported fields
}

MangaPage : This struct contains the required primitives for the manga page.

type SearchPage

type SearchPage struct {
	MainPage
	Form *tview.Form
}

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 added in v0.7.2

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