views

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base64View

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

Base64View is the TUI view for Base64 encoding/decoding.

func NewBase64View

func NewBase64View() *Base64View

NewBase64View creates a new Base64 tool view.

func (*Base64View) Init

func (v *Base64View) Init() tea.Cmd

func (*Base64View) KeyHints

func (v *Base64View) KeyHints() string

func (*Base64View) SetSize

func (v *Base64View) SetSize(width, height int)

func (*Base64View) Update

func (v *Base64View) Update(msg tea.Msg) (ToolView, tea.Cmd)

func (*Base64View) View

func (v *Base64View) View() string

type CSVView

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

CSVView is the TUI view for JSON/CSV conversion.

func NewCSVView

func NewCSVView() *CSVView

NewCSVView creates a new JSON to CSV tool view.

func (*CSVView) Init

func (v *CSVView) Init() tea.Cmd

func (*CSVView) KeyHints

func (v *CSVView) KeyHints() string

func (*CSVView) SetSize

func (v *CSVView) SetSize(width, height int)

func (*CSVView) Update

func (v *CSVView) Update(msg tea.Msg) (ToolView, tea.Cmd)

func (*CSVView) View

func (v *CSVView) View() string

type ColorView

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

ColorView is the TUI view for color conversion.

func NewColorView

func NewColorView() *ColorView

NewColorView creates a new Color Converter tool view.

func (*ColorView) Init

func (v *ColorView) Init() tea.Cmd

func (*ColorView) KeyHints

func (v *ColorView) KeyHints() string

func (*ColorView) SetSize

func (v *ColorView) SetSize(width, height int)

func (*ColorView) Update

func (v *ColorView) Update(msg tea.Msg) (ToolView, tea.Cmd)

func (*ColorView) View

func (v *ColorView) View() string

type CronView

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

CronView is the TUI view for cron expression parsing.

func NewCronView

func NewCronView() *CronView

NewCronView creates a new Cron Expression Parser tool view.

func (*CronView) Init

func (v *CronView) Init() tea.Cmd

func (*CronView) KeyHints

func (v *CronView) KeyHints() string

func (*CronView) SetSize

func (v *CronView) SetSize(width, height int)

func (*CronView) Update

func (v *CronView) Update(msg tea.Msg) (ToolView, tea.Cmd)

func (*CronView) View

func (v *CronView) View() string

type DiffView

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

DiffView is the TUI view for text comparison.

func NewDiffView

func NewDiffView() *DiffView

NewDiffView creates a new Text Diff tool view.

func (*DiffView) Init

func (v *DiffView) Init() tea.Cmd

func (*DiffView) KeyHints

func (v *DiffView) KeyHints() string

func (*DiffView) SetSize

func (v *DiffView) SetSize(width, height int)

func (*DiffView) Update

func (v *DiffView) Update(msg tea.Msg) (ToolView, tea.Cmd)

func (*DiffView) View

func (v *DiffView) View() string

type GZipView

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

GZipView is the TUI view for gzip compression/decompression.

func NewGZipView

func NewGZipView() *GZipView

NewGZipView creates a new GZip Compress / Decompress tool view.

func (*GZipView) Init

func (v *GZipView) Init() tea.Cmd

func (*GZipView) KeyHints

func (v *GZipView) KeyHints() string

func (*GZipView) SetSize

func (v *GZipView) SetSize(width, height int)

func (*GZipView) Update

func (v *GZipView) Update(msg tea.Msg) (ToolView, tea.Cmd)

func (*GZipView) View

func (v *GZipView) View() string

type HTMLEntityView

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

HTMLEntityView is the TUI view for HTML entity encoding/decoding.

func NewHTMLEntityView

func NewHTMLEntityView() *HTMLEntityView

NewHTMLEntityView creates a new HTML Entity tool view.

func (*HTMLEntityView) Init

func (v *HTMLEntityView) Init() tea.Cmd

func (*HTMLEntityView) KeyHints

func (v *HTMLEntityView) KeyHints() string

func (*HTMLEntityView) SetSize

func (v *HTMLEntityView) SetSize(width, height int)

func (*HTMLEntityView) Update

func (v *HTMLEntityView) Update(msg tea.Msg) (ToolView, tea.Cmd)

func (*HTMLEntityView) View

func (v *HTMLEntityView) View() string

type HashView

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

HashView is the TUI view for hash generation.

func NewHashView

func NewHashView() *HashView

NewHashView creates a new Hash Generator tool view.

func (*HashView) Init

func (v *HashView) Init() tea.Cmd

func (*HashView) KeyHints

func (v *HashView) KeyHints() string

func (*HashView) SetSize

func (v *HashView) SetSize(width, height int)

func (*HashView) Update

func (v *HashView) Update(msg tea.Msg) (ToolView, tea.Cmd)

func (*HashView) View

func (v *HashView) View() string

type JSONView

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

JSONView is the TUI view for JSON formatting, minifying, and validating.

func NewJSONView

func NewJSONView() *JSONView

NewJSONView creates a new JSON tool view.

func (*JSONView) Init

func (v *JSONView) Init() tea.Cmd

func (*JSONView) KeyHints

func (v *JSONView) KeyHints() string

func (*JSONView) SetSize

func (v *JSONView) SetSize(width, height int)

func (*JSONView) Update

func (v *JSONView) Update(msg tea.Msg) (ToolView, tea.Cmd)

func (*JSONView) View

func (v *JSONView) View() string

type JWTView

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

JWTView is the TUI view for JWT decoding.

func NewJWTView

func NewJWTView() *JWTView

NewJWTView creates a new JWT tool view.

func (*JWTView) Init

func (v *JWTView) Init() tea.Cmd

func (*JWTView) KeyHints

func (v *JWTView) KeyHints() string

func (*JWTView) SetSize

func (v *JWTView) SetSize(width, height int)

func (*JWTView) Update

func (v *JWTView) Update(msg tea.Msg) (ToolView, tea.Cmd)

func (*JWTView) View

func (v *JWTView) View() string

type LoremView

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

LoremView is the TUI view for lorem ipsum generation.

func NewLoremView

func NewLoremView() *LoremView

NewLoremView creates a new Lorem Ipsum Generator tool view.

func (*LoremView) Init

func (v *LoremView) Init() tea.Cmd

func (*LoremView) KeyHints

func (v *LoremView) KeyHints() string

func (*LoremView) SetSize

func (v *LoremView) SetSize(width, height int)

func (*LoremView) Update

func (v *LoremView) Update(msg tea.Msg) (ToolView, tea.Cmd)

func (*LoremView) View

func (v *LoremView) View() string

type NumberBaseView

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

NumberBaseView is the TUI view for number base conversion.

func NewNumberBaseView

func NewNumberBaseView() *NumberBaseView

NewNumberBaseView creates a new Number Base Converter tool view.

func (*NumberBaseView) Init

func (v *NumberBaseView) Init() tea.Cmd

func (*NumberBaseView) KeyHints

func (v *NumberBaseView) KeyHints() string

func (*NumberBaseView) SetSize

func (v *NumberBaseView) SetSize(width, height int)

func (*NumberBaseView) Update

func (v *NumberBaseView) Update(msg tea.Msg) (ToolView, tea.Cmd)

func (*NumberBaseView) View

func (v *NumberBaseView) View() string

type PasswordView

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

PasswordView is the TUI view for password generation.

func NewPasswordView

func NewPasswordView() *PasswordView

NewPasswordView creates a new Password Generator tool view.

func (*PasswordView) Init

func (v *PasswordView) Init() tea.Cmd

func (*PasswordView) KeyHints

func (v *PasswordView) KeyHints() string

func (*PasswordView) SetSize

func (v *PasswordView) SetSize(width, height int)

func (*PasswordView) Update

func (v *PasswordView) Update(msg tea.Msg) (ToolView, tea.Cmd)

func (*PasswordView) View

func (v *PasswordView) View() string

type PlaceholderView

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

PlaceholderView shows "Coming soon" for unimplemented tools.

func NewPlaceholder

func NewPlaceholder(name string) *PlaceholderView

NewPlaceholder creates a placeholder view for the given tool name.

func (*PlaceholderView) Init

func (p *PlaceholderView) Init() tea.Cmd

func (*PlaceholderView) KeyHints

func (p *PlaceholderView) KeyHints() string

func (*PlaceholderView) SetSize

func (p *PlaceholderView) SetSize(width, height int)

func (*PlaceholderView) Update

func (p *PlaceholderView) Update(_ tea.Msg) (ToolView, tea.Cmd)

func (*PlaceholderView) View

func (p *PlaceholderView) View() string

type RegexView

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

RegexView is the TUI view for regex testing.

func NewRegexView

func NewRegexView() *RegexView

NewRegexView creates a new Regex Tester tool view.

func (*RegexView) Init

func (v *RegexView) Init() tea.Cmd

func (*RegexView) KeyHints

func (v *RegexView) KeyHints() string

func (*RegexView) SetSize

func (v *RegexView) SetSize(width, height int)

func (*RegexView) Update

func (v *RegexView) Update(msg tea.Msg) (ToolView, tea.Cmd)

func (*RegexView) View

func (v *RegexView) View() string

type TextEscapeView

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

TextEscapeView is the TUI view for text escaping/unescaping.

func NewTextEscapeView

func NewTextEscapeView() *TextEscapeView

NewTextEscapeView creates a new Text Escape / Unescape tool view.

func (*TextEscapeView) Init

func (v *TextEscapeView) Init() tea.Cmd

func (*TextEscapeView) KeyHints

func (v *TextEscapeView) KeyHints() string

func (*TextEscapeView) SetSize

func (v *TextEscapeView) SetSize(width, height int)

func (*TextEscapeView) Update

func (v *TextEscapeView) Update(msg tea.Msg) (ToolView, tea.Cmd)

func (*TextEscapeView) View

func (v *TextEscapeView) View() string

type TextStatsView

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

TextStatsView is the TUI view for text analysis and case conversion.

func NewTextStatsView

func NewTextStatsView() *TextStatsView

NewTextStatsView creates a new Text Analyzer tool view.

func (*TextStatsView) Init

func (v *TextStatsView) Init() tea.Cmd

func (*TextStatsView) KeyHints

func (v *TextStatsView) KeyHints() string

func (*TextStatsView) SetSize

func (v *TextStatsView) SetSize(width, height int)

func (*TextStatsView) Update

func (v *TextStatsView) Update(msg tea.Msg) (ToolView, tea.Cmd)

func (*TextStatsView) View

func (v *TextStatsView) View() string

type TimestampView

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

TimestampView is the TUI view for timestamp conversion.

func NewTimestampView

func NewTimestampView() *TimestampView

NewTimestampView creates a new Timestamp converter tool view.

func (*TimestampView) Init

func (v *TimestampView) Init() tea.Cmd

func (*TimestampView) KeyHints

func (v *TimestampView) KeyHints() string

func (*TimestampView) SetSize

func (v *TimestampView) SetSize(width, height int)

func (*TimestampView) Update

func (v *TimestampView) Update(msg tea.Msg) (ToolView, tea.Cmd)

func (*TimestampView) View

func (v *TimestampView) View() string

type ToolView

type ToolView interface {
	Init() tea.Cmd
	Update(msg tea.Msg) (ToolView, tea.Cmd)
	View() string
	SetSize(width, height int)
	KeyHints() string // tool-specific keybinding hints for the status bar
}

ToolView is the interface that all tool views implement. This is NOT tea.Model — only AppModel satisfies tea.Model.

type URLView

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

URLView is the TUI view for URL encoding/decoding/parsing.

func NewURLView

func NewURLView() *URLView

NewURLView creates a new URL tool view.

func (*URLView) Init

func (v *URLView) Init() tea.Cmd

func (*URLView) KeyHints

func (v *URLView) KeyHints() string

func (*URLView) SetSize

func (v *URLView) SetSize(width, height int)

func (*URLView) Update

func (v *URLView) Update(msg tea.Msg) (ToolView, tea.Cmd)

func (*URLView) View

func (v *URLView) View() string

type UUIDView

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

UUIDView is the TUI view for UUID generation, validation, and parsing.

func NewUUIDView

func NewUUIDView() *UUIDView

NewUUIDView creates a new UUID tool view.

func (*UUIDView) Init

func (v *UUIDView) Init() tea.Cmd

func (*UUIDView) KeyHints

func (v *UUIDView) KeyHints() string

func (*UUIDView) SetSize

func (v *UUIDView) SetSize(width, height int)

func (*UUIDView) Update

func (v *UUIDView) Update(msg tea.Msg) (ToolView, tea.Cmd)

func (*UUIDView) View

func (v *UUIDView) View() string

type XMLView

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

XMLView is the TUI view for XML formatting/minifying.

func NewXMLView

func NewXMLView() *XMLView

NewXMLView creates a new XML Formatter tool view.

func (*XMLView) Init

func (v *XMLView) Init() tea.Cmd

func (*XMLView) KeyHints

func (v *XMLView) KeyHints() string

func (*XMLView) SetSize

func (v *XMLView) SetSize(width, height int)

func (*XMLView) Update

func (v *XMLView) Update(msg tea.Msg) (ToolView, tea.Cmd)

func (*XMLView) View

func (v *XMLView) View() string

type YAMLView

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

YAMLView is the TUI view for JSON/YAML conversion.

func NewYAMLView

func NewYAMLView() *YAMLView

NewYAMLView creates a new YAML converter tool view.

func (*YAMLView) Init

func (v *YAMLView) Init() tea.Cmd

func (*YAMLView) KeyHints

func (v *YAMLView) KeyHints() string

func (*YAMLView) SetSize

func (v *YAMLView) SetSize(width, height int)

func (*YAMLView) Update

func (v *YAMLView) Update(msg tea.Msg) (ToolView, tea.Cmd)

func (*YAMLView) View

func (v *YAMLView) View() string

Jump to

Keyboard shortcuts

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