Documentation
¶
Index ¶
- func ConvertMorenotesToListItems(notes []models.Morenote) []list.Item
- func ConvertNotesToListItems(notes []models.Note) []list.Item
- func GetMorenotesCreationForm() *huh.Form
- func GetMorenotesEditForm(title *string, content *string) *huh.Form
- func GetMorenotesRemoveForm() *huh.Form
- func GetNotesCreationForm() *huh.Form
- func GetNotesEditForm(title *string, content *string) *huh.Form
- func GetNotesRemoveForm() *huh.Form
- type CredCardModel
- type MorenotesModel
- type NavBarModel
- type NavItem
- type NotesModel
- type RegisterModel
- type TextModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertNotesToListItems ¶
Helper function to get the list items from our notes list
func GetMorenotesRemoveForm ¶
func GetNotesCreationForm ¶
func GetNotesRemoveForm ¶
Types ¶
type CredCardModel ¶
type CredCardModel struct {
// contains filtered or unexported fields
}
func NewCreditCardModel ¶
func (CredCardModel) Init ¶
func (m CredCardModel) Init() tea.Cmd
func (CredCardModel) View ¶
func (m CredCardModel) View() string
type MorenotesModel ¶
type MorenotesModel struct { PubKey ssh.PublicKey List list.Model MorenotesList []models.Morenote DocStyle lipgloss.Style HelpStyle lipgloss.Style Width int IsFormMode bool IsCreating bool IsRemoving bool IsEditing bool ActiveForm *huh.Form // contains filtered or unexported fields }
func (MorenotesModel) HandleForms ¶
func (m MorenotesModel) HandleForms(commands []tea.Cmd, msg tea.Msg) (MorenotesModel, tea.Cmd)
func (MorenotesModel) Init ¶
func (m MorenotesModel) Init() tea.Cmd
func (MorenotesModel) View ¶
func (m MorenotesModel) View() string
type NavBarModel ¶
type NavBarModel struct {}
func (NavBarModel) Init ¶
func (m NavBarModel) Init() tea.Cmd
func (NavBarModel) UpdateNav ¶
func (m NavBarModel) UpdateNav(indices []int) NavBarModel
We hold all available content If something changes need to be able to update what we can see in the nav
func (NavBarModel) View ¶
func (m NavBarModel) View() string
type NotesModel ¶
type NotesModel struct { PubKey ssh.PublicKey List list.Model NotesList []models.Note DocStyle lipgloss.Style HelpStyle lipgloss.Style Width int IsFormMode bool IsCreating bool IsRemoving bool IsEditing bool ActiveForm *huh.Form // contains filtered or unexported fields }
func (NotesModel) HandleForms ¶
func (m NotesModel) HandleForms(commands []tea.Cmd, msg tea.Msg) (NotesModel, tea.Cmd)
Our logic related to the form update
func (NotesModel) Init ¶
func (m NotesModel) Init() tea.Cmd
func (NotesModel) View ¶
func (m NotesModel) View() string
type RegisterModel ¶
type RegisterModel struct {
// contains filtered or unexported fields
}
func NewRegisterModel ¶
func (RegisterModel) Init ¶
func (m RegisterModel) Init() tea.Cmd
func (RegisterModel) View ¶
func (m RegisterModel) View() string
Click to show internal directories.
Click to hide internal directories.