components

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActiveFolderListItem

func ActiveFolderListItem(width int, name string, tokensCount int) string

Active folder list item

func InactiveFolderListItem

func InactiveFolderListItem(width int, name string, tokensCount int) string

Inactive folder list item

func InitializeInputBox

func InitializeInputBox(placeholder string) textinput.Model

Creates a new input box

func InitializeInputBoxCustomWidth

func InitializeInputBoxCustomWidth(placeholder string, width int) textinput.Model

func InputGroup

func InputGroup(title, description string, error *error, input textinput.Model) string

func ListItemActive

func ListItemActive(width int, title, suffix string) string

List item active

func ListItemInactive

func ListItemInactive(width int, title, suffix string) string

List item active

func ListViewSimple

func ListViewSimple(items []list.Item, delegate list.ItemDelegate, width, height int) list.Model

Builds a listview model devoid of every feature

func Paginator

func Paginator(listview list.Model) string

func TokenItemActive

func TokenItemActive(width int, icon, account, issuer, code string, period int, timeLeft *int, showIcon bool) string

List item active

func TokenItemInactive

func TokenItemInactive(width int, icon, account, issuer, code string, period int, timeLeft *int, showIcon bool) string

List item active

Types

type StatusBar

type StatusBar struct {
	// Message to show
	Message string

	// Is the meessage a error message
	ErrorMessage bool

	// Current user
	CurrentUser string
}

func NewStatusBar

func NewStatusBar(currentUser string) StatusBar

func (*StatusBar) Update

func (bar *StatusBar) Update(msg tea.Msg) tea.Cmd

func (*StatusBar) View

func (bar *StatusBar) View() string

type StatusBarMsg

type StatusBarMsg struct {
	Message      string
	ErrorMessage bool
}

Jump to

Keyboard shortcuts

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