mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[PR #19] [MERGED] Rewrite application state's data model #581
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#581
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/19
Author: @aome510
Created: 10/26/2021
Status: ✅ Merged
Merged: 10/26/2021
Merged by: @aome510
Base:
master← Head:rewrite-app-data-model📝 Commits (10+)
f7b528daddstate/data.rsandstate/model.rs831e486change data model of enums instate/ui.rs02684c3remove unneeded import inmain.rseef4426cleanupstatemodule codes07621f5re-export all state structs62485fefix the errors in theclientmodule4f54d96use a helper function to create newWindowState::Searchingb2fc628fix errors in theuimodule6bcb18buse tuple enum for majority ofstate::ui::PopupState's variants790710ffix errors ineventmodule📊 Changes
16 files changed (+1071 additions, -987 deletions)
View changed files
📝
spotify_player/src/client/mod.rs(+130 -197)📝
spotify_player/src/event/mod.rs(+12 -19)📝
spotify_player/src/event/popup.rs(+37 -25)📝
spotify_player/src/event/window.rs(+111 -93)📝
spotify_player/src/main.rs(+4 -6)➕
spotify_player/src/state/data.rs(+35 -0)📝
spotify_player/src/state/mod.rs(+8 -3)➕
spotify_player/src/state/model.rs(+418 -0)📝
spotify_player/src/state/player.rs(+11 -433)📝
spotify_player/src/state/ui.rs(+150 -99)📝
spotify_player/src/ui/context.rs(+22 -14)📝
spotify_player/src/ui/help.rs(+1 -1)📝
spotify_player/src/ui/mod.rs(+23 -23)📝
spotify_player/src/ui/popup.rs(+24 -17)📝
spotify_player/src/ui/search.rs(+63 -43)📝
spotify_player/src/utils.rs(+22 -14)📄 Description
Brief description of changes
state/model.rsmodule to store the application's Spotify modelsstate::data::AppDatais used to store those the application's data.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.