commits
the undo bind loads the last snapshot from undo-stack and applies state.
the redo does exactly the same from the redo-stack.
Signed-off-by: oppiliappan <me@oppi.li>
before queue mutations, store the state of the queue into the queue
history manager.
Signed-off-by: oppiliappan <me@oppi.li>
this is quite basic, uses a snapshot style history instead of a
command-style storage, where we could store forward/reverse callbacks.
as a result, this can presently only be used for storing and loading
full snapshots. you cannot undo favourites/ratings with this model.
to improve this, i would probably update this down the line to make each
item of the undostack store a:
{forwardOp, reverseOp}
and the queue snapshotting logic can be augmented to simply be:
{() => {return newState;}, () => {return oldState;}}
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
only caches responses from all artists, single artist, and album
requests
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
and run prettier
Signed-off-by: oppiliappan <me@oppi.li>
keeps color-scheme: light dark for browser elements like scrollbars
was testing in falkon on an old computer because firefox was too heavy and this commit fixes issues with that
this is usually hard-refresh on browsers. this keybind is quite handy to
bypass cached data, so it would be nice to not swallow it, to bypass
tinysub's image/album cache.
Signed-off-by: oppiliappan <me@oppi.li>
off by default
for consistency, also adds "show favorites" setting
was using this on a chromebook and i wasn't sure what the context menu button was on chromebook, so here's more easily accessible ones in adition
only show action buttons and adjust font size *specifically* on mobile devices and not just narrow viewports
i removed a lot of wrappers that weren't necessary anymore
also added all icons to cache, and fixed an issue with index saving when skipping last track in queue
also separated the library and queue selection managers into their own modules just to make it a little easier to maintain :p along with changing name of drag module to be more fitting since it's made for queue
also removed a lot of comments that were probably not necessary
also fixed script reordering
also many other things
goodnight zzzz....🐈
also make alt text/aria-label more consistent
this is quite basic, uses a snapshot style history instead of a
command-style storage, where we could store forward/reverse callbacks.
as a result, this can presently only be used for storing and loading
full snapshots. you cannot undo favourites/ratings with this model.
to improve this, i would probably update this down the line to make each
item of the undostack store a:
{forwardOp, reverseOp}
and the queue snapshotting logic can be augmented to simply be:
{() => {return newState;}, () => {return oldState;}}
Signed-off-by: oppiliappan <me@oppi.li>
i removed a lot of wrappers that weren't necessary anymore
also added all icons to cache, and fixed an issue with index saving when skipping last track in queue
also separated the library and queue selection managers into their own modules just to make it a little easier to maintain :p along with changing name of drag module to be more fitting since it's made for queue
also removed a lot of comments that were probably not necessary
also fixed script reordering
also many other things
goodnight zzzz....🐈