--- Fetch command ---
(date string)
| 133 | nextPage string |
| 134 | loadingMore bool |
| 135 | moreID uint64 |
| 136 | liveID uint64 |
| 137 | |
| 138 | detailDate string |
| 139 | detailContent string |
| 140 | detailBody htmlutil.Markdown |
| 141 | detailView viewport.Model |
| 142 | inDetail bool |
| 143 | form *journalForm |
| 144 | prompt *journalPrompt |
| 145 | confirmRemove bool |
| 146 | selectDate string |
| 147 | |
| 148 | requests requestLane[journalRequestKind] |
| 149 | } |
| 150 | |
| 151 | func newJournalView(vc *viewContext) *journalView { |
| 152 | return &journalView{ |
| 153 | vc: vc, |
| 154 | detailView: viewport.New(viewport.WithWidth(0), viewport.WithHeight(0)), |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | func (v *journalView) Init() tea.Cmd { |
| 159 | if v.loaded { |
| 160 | return nil |
| 161 | } |
| 162 | return v.requestFeed("") |
| 163 | } |
| 164 | |
| 165 | func (v *journalView) Update(msg tea.Msg) (tea.Cmd, bool) { |
no test coverage detected