mirror of
https://github.com/aome510/hackernews-TUI.git
synced 2026-04-26 17:35:55 +03:00
[PR #74] [MERGED] Code refactor and cleanup part I #87
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hackernews-TUI#87
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/74
Author: @aome510
Created: 5/7/2022
Status: ✅ Merged
Merged: 5/8/2022
Merged by: @aome510
Base:
main← Head:05-07-22/code-refactor-and-cleanup📝 Commits (10+)
b18c5c2try to remove redudantclone(), minor refactor code structurea1bc032useinto_par_iterwhen parsing stories3946ee3addHTMLParsedResult3eb84d5refactor article parse functions0196751minor wording changes0e7b9e0move the tab-to-spaces code toHNClient::get_articlefunctionaa47eb2wip rewriteasync_viewusingresult_view::ResultViewa71f047rewriteasync_viewusing newResultView2404bf5cleanup formattinga24d233add more code documents📊 Changes
14 files changed (+436 additions, -379 deletions)
View changed files
📝
hackernews_tui/src/client/mod.rs(+20 -17)📝
hackernews_tui/src/client/parser.rs(+244 -177)📝
hackernews_tui/src/config/keybindings.rs(+4 -4)📝
hackernews_tui/src/view/article_view.rs(+18 -16)📝
hackernews_tui/src/view/async_view.rs(+29 -47)📝
hackernews_tui/src/view/comment_view.rs(+0 -4)➖
hackernews_tui/src/view/error_view.rs(+0 -56)📝
hackernews_tui/src/view/fn_view_wrapper.rs(+6 -9)📝
hackernews_tui/src/view/mod.rs(+1 -1)➕
hackernews_tui/src/view/result_view.rs(+70 -0)📝
hackernews_tui/src/view/search_view.rs(+11 -14)📝
hackernews_tui/src/view/story_view.rs(+32 -25)📝
hackernews_tui/src/view/text_view.rs(+0 -8)📝
hackernews_tui/src/view/utils.rs(+1 -1)📄 Description
Brief description of changes
view::async_viewcodesResultView, modifiedErrorViewanyhow::Contextto decorate the encountered error when constructing async viewsview::error_viewmodule withview::result_viewclient::parserArticle::parsed_content, replacedArticle::linkswithArticleView::linksclones🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
url_open_command#95