app

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CtrlCExitDelayMs = 1000
	UIWidth          = 50 // Shared width for status bar and input components
)
View Source
const INPUT_HEIGHT = 3

an input actually takes 3 lines, not 1 line because the upper and lower border takes 1 line each

Variables

This section is empty.

Functions

func App

func App(state *State, window *dom.Window) *dom.Node

func AppStatusBar added in v0.0.17

func AppStatusBar(state *State) *dom.Node

AppState renders the application status bar

func ConfigPage added in v0.0.10

func ConfigPage(state *State) *dom.Node

func DetailPage added in v0.0.4

func DetailPage(state *State, id int64) *dom.Node

func ExportVisibleEntries added in v0.0.10

func ExportVisibleEntries(filename string, visibleEntries []states.TreeEntry) error

ExportVisibleEntries exports the currently visible entries to a JSON file

func MainInput added in v0.0.9

func MainInput(state *State, fullEntries []states.TreeEntry) *dom.Node

func MainPage added in v0.0.4

func MainPage(state *State, availableHeight int) *dom.Node

func RenderRoute added in v0.0.10

func RenderRoute(state *State, route states.Route, window *dom.Window) *dom.Node

func SearchInput added in v0.0.4

func SearchInput(props InputProps) *dom.Node

SearchInput wraps the component.SearchInput with app-specific defaults

Types

type ChildNotesSection added in v0.0.10

type ChildNotesSection struct {
	Entry *models.LogEntryView
	Path  string
	Notes []*models.NoteView
}

type EntryOptions added in v0.0.16

type EntryOptions struct {
	// MaxEntries int
	// SliceStart         int
	SelectedID         models.EntryIdentity
	SearchSelectedID   models.EntryIdentity
	SelectedSource     states.SelectedSource
	ZenMode            bool
	SearchActive       bool
	Search             string
	ShowNotes          bool
	FocusingEntryID    models.EntryIdentity
	ExpandAll          bool
	ViewMode           states.ViewMode
	GroupCollapseState map[int64]bool
}

type ExportData added in v0.0.10

type ExportData struct {
	Entries []ExportEntry `json:"entries"`
}

ExportData represents the structure for exporting entries

type ExportEntry added in v0.0.10

type ExportEntry struct {
	Data  *models.LogEntry `json:"data"`
	Notes []ExportNote     `json:"notes"`
}

ExportEntry represents a single entry with its notes for export

type ExportNote added in v0.0.10

type ExportNote struct {
	Data *models.Note `json:"data"`
}

ExportNote represents a single note for export

type IDs added in v0.0.10

type IDs []int64

func (IDs) Last added in v0.0.10

func (ids IDs) Last() int64

func (*IDs) Pop added in v0.0.10

func (ids *IDs) Pop()

func (*IDs) Push added in v0.0.10

func (ids *IDs) Push(id int64)

func (IDs) SetLast added in v0.0.10

func (ids IDs) SetLast(id int64)

type InputProps

type InputProps = component.InputProps

InputProps is an alias for component.InputProps for backward compatibility

type State

type State = states.State

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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