mirror of
https://github.com/aome510/hackernews-TUI.git
synced 2026-04-26 17:35:55 +03:00
[PR #16] [MERGED] [no-issue] Code Refactor I #44
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hackernews-TUI#44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/aome510/hackernews-TUI/pull/16
Author: @aome510
Created: 3/15/2021
Status: ✅ Merged
Merged: 3/16/2021
Merged by: @aome510
Base:
main← Head:no-issue-refactor-p1📝 Commits (10+)
f2dba36use String for title,url,author,comment_text instead of Option019221crefactor hn_client526885arefactor story_view8f8c6f0refactor comment_viewaccb171refactor error_view86e212crefactor othersdccf6fcuse Vec instead of Box750b69bdon't include hightlight_result when getting comments only32ba976implement text highlighting for matched string48028a1remove em from story_title in comment_view📊 Changes
12 files changed (+330 additions, -159 deletions)
View changed files
📝
src/hn_client.rs(+163 -60)📝
src/main.rs(+4 -2)📝
src/view/async_view.rs(+19 -12)📝
src/view/comment_view.rs(+30 -30)📝
src/view/error_view.rs(+25 -5)📝
src/view/event_view.rs(+2 -5)📝
src/view/fn_view_wrapper.rs(+1 -1)📝
src/view/help_view.rs(+1 -1)📝
src/view/search_view.rs(+13 -8)📝
src/view/story_view.rs(+60 -26)📝
src/view/text_view.rs(+2 -1)📝
src/view/utils.rs(+10 -8)📄 Description
Brief description of changes
SearchView.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.