mirror of
https://github.com/aome510/hackernews-TUI.git
synced 2026-04-26 09:25:56 +03:00
[PR #84] [MERGED] Refactor modeling, parsing, and client codes #97
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hackernews-TUI#97
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/84
Author: @aome510
Created: 2/1/2023
Status: ✅ Merged
Merged: 2/2/2023
Merged by: @aome510
Base:
main← Head:30-01-refactor📝 Commits (10+)
4871e91move HN structs inclientmodule to a new modulemodel39cce6cupdate structs usage, clean imports97eb199update gitignore to include .DS_Store7ae3542clean up data representing inmodel.rs80b880brenameStoryDatatoStoryHiddenData960c962remove redundant function documentations8852b64mention thatlazy_load_story_commentslazily loads top comments94762baremove text parsing codes from conversion functions inparser.rsad45a52move HTML parsing codes (to parse HN text) to a new parser module8b73986move parsing codes fromclientmodule toparsermodule📊 Changes
18 files changed (+1060 additions, -1025 deletions)
View changed files
📝
.gitignore(+3 -0)📝
hackernews_tui/src/client/mod.rs(+30 -45)➕
hackernews_tui/src/client/model.rs(+153 -0)➖
hackernews_tui/src/client/parser.rs(+0 -858)📝
hackernews_tui/src/main.rs(+2 -0)➕
hackernews_tui/src/model.rs(+235 -0)➕
hackernews_tui/src/parser/article.rs(+360 -0)➕
hackernews_tui/src/parser/html.rs(+148 -0)➕
hackernews_tui/src/parser/mod.rs(+5 -0)📝
hackernews_tui/src/parser/rcdom.rs(+0 -0)📝
hackernews_tui/src/prelude.rs(+1 -1)📝
hackernews_tui/src/utils.rs(+5 -0)📝
hackernews_tui/src/view/article_view.rs(+4 -4)📝
hackernews_tui/src/view/async_view.rs(+2 -2)📝
hackernews_tui/src/view/comment_view.rs(+98 -99)📝
hackernews_tui/src/view/mod.rs(+1 -1)📝
hackernews_tui/src/view/search_view.rs(+2 -2)📝
hackernews_tui/src/view/story_view.rs(+11 -13)📄 Description
Changes
client::parsertoclient::modelparsermoduleclientto a dedicatedparsermoduleclient::model) and HN data models (newmodelmodule)htmlfor parsing HTML textarticlefor parsing web article🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.