Documentation
¶
Index ¶
- Constants
- func App(state *State, window *dom.Window) *dom.Node
- func AppStatusBar(state *State) *dom.Node
- func ConfigPage(state *State) *dom.Node
- func DetailPage(state *State, id int64) *dom.Node
- func ExportVisibleEntries(filename string, visibleEntries []states.TreeEntry) error
- func MainInput(state *State, fullEntries []states.TreeEntry) *dom.Node
- func MainPage(state *State, availableHeight int) *dom.Node
- func RenderRoute(state *State, route states.Route, window *dom.Window) *dom.Node
- func SearchInput(props InputProps) *dom.Node
- type ChildNotesSection
- type EntryOptions
- type ExportData
- type ExportEntry
- type ExportNote
- type IDs
- type InputProps
- type State
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 AppStatusBar ¶ added in v0.0.17
AppState renders the application status bar
func ConfigPage ¶ added in v0.0.10
func ExportVisibleEntries ¶ added in v0.0.10
ExportVisibleEntries exports the currently visible entries to a JSON file
func RenderRoute ¶ added in v0.0.10
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
ExportNote represents a single note for export
type InputProps ¶
type InputProps = component.InputProps
InputProps is an alias for component.InputProps for backward compatibility
Source Files
¶
Click to show internal directories.
Click to hide internal directories.