recently added rework #1

- recently added is now lazy loaded
- uses official AM recently-added route
- stores in vuex
todo: add clearing method that gets triggered after some time
This commit is contained in:
booploops 2022-06-01 21:47:37 -07:00
parent 215b326b13
commit 5cfbab0c43
5 changed files with 94 additions and 61 deletions

View file

@ -6,6 +6,14 @@ const store = new Vuex.Store({
// recentlyAdded: ipcRenderer.sendSync("get-library-recentlyAdded"),
// playlists: ipcRenderer.sendSync("get-library-playlists")
},
pageState: {
recentlyAdded: {
loaded: false,
nextUrl: null,
items: [],
size: "normal"
}
},
artwork: {
playerLCD: ""
}