mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[PR #287] [MERGED] Miscellaneous refactor and improvement #701
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#701
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/spotify-player/pull/287
Author: @aome510
Created: 11/12/2023
Status: ✅ Merged
Merged: 11/12/2023
Merged by: @aome510
Base:
master← Head:misc-cleanup📝 Commits (8)
4b4cfcaadd more details to no playback found message9986a48use cargo environment variables to describe the applicationfba5924move static variables inStatestruct toConfigsstruct33da062not require app's state to initialize other configs or handle CLI commandsf193be6update*_configusage669b493not return error forget_id_or_name166c9dfhandle connection refused error49d0b7drefactor the "send request" code tohandle_cli_subcommandfunction📊 Changes
19 files changed (+205 additions, -183 deletions)
View changed files
📝
spotify_player/Cargo.toml(+1 -1)📝
spotify_player/src/auth.rs(+6 -6)📝
spotify_player/src/cli/client.rs(+28 -14)📝
spotify_player/src/cli/handlers.rs(+45 -54)📝
spotify_player/src/cli/mod.rs(+2 -0)📝
spotify_player/src/client/handlers.rs(+4 -3)📝
spotify_player/src/client/mod.rs(+8 -8)📝
spotify_player/src/config/mod.rs(+1 -5)📝
spotify_player/src/event/mod.rs(+3 -1)📝
spotify_player/src/event/page.rs(+10 -4)📝
spotify_player/src/event/popup.rs(+10 -6)📝
spotify_player/src/event/window.rs(+8 -4)📝
spotify_player/src/main.rs(+21 -35)📝
spotify_player/src/state/mod.rs(+30 -23)📝
spotify_player/src/ui/mod.rs(+1 -1)📝
spotify_player/src/ui/page.rs(+3 -3)📝
spotify_player/src/ui/playback.rs(+20 -13)📝
spotify_player/src/ui/popup.rs(+2 -0)📝
spotify_player/src/ui/utils.rs(+2 -2)📄 Description
Changes
ratatuitotuiinCargo.tomlinstead ofmain.rsstate::Statestruct tostate::Configsstructclimodule🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.