mirror of
https://github.com/aome510/hackernews-TUI.git
synced 2026-04-26 09:25:56 +03:00
[PR #81] [MERGED] Add authentication and upvote support #91
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hackernews-TUI#91
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/81
Author: @aome510
Created: 11/15/2022
Status: ✅ Merged
Merged: 1/30/2023
Merged by: @aome510
Base:
main← Head:add-upvote-support📝 Commits (10+)
2ad1eb9upvote kinda works031aaeefix clippy errorsa37555aimplement authentication from file2eaa7e9WIP: convert to parse all vote links from story page07b26b9add function for constructing hashmap of 'id->(auth, vote status)'1723015storeStoryDatainside the story comment view13db2b5tweakStoryDatafields' documentation0e3b595addvotecommand05192f1renameHnTexttoHnItemc39c4f1implement simple upvote mechanism📊 Changes
10 files changed (+355 additions, -176 deletions)
View changed files
📝
Cargo.lock(+136 -140)📝
hackernews_tui/Cargo.toml(+4 -1)📝
hackernews_tui/src/client/mod.rs(+117 -6)📝
hackernews_tui/src/client/parser.rs(+7 -7)📝
hackernews_tui/src/config/keybindings.rs(+4 -0)📝
hackernews_tui/src/config/mod.rs(+20 -2)📝
hackernews_tui/src/main.rs(+35 -2)📝
hackernews_tui/src/view/async_view.rs(+2 -2)📝
hackernews_tui/src/view/comment_view.rs(+28 -10)📝
hackernews_tui/src/view/text_view.rs(+2 -6)📄 Description
Note: the voting/authentication is not ready yet. This PR is just a first iteration of the feature.
Changes
cookiesfeature forureq(HTTP client)HNClient::voteandHNClient::loginfunctions and related helper functionsTODOs (for follow-up PR)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.