a simple web player for subsonic tinysub.devins.page
subsonic navidrome javascript
11
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: implement basic 2-stack undo-redo #8

open opened by oppi.li targeting main from oppi.li/tinysub: op/vvoxsqwslspz

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

Labels

None yet.

assignee

None yet.

Participants 1
Referenced by
AT URI
at://did:plc:qfpnj4og54vl56wngdriaxug/sh.tangled.repo.pull/3mjbk4gsag522
Diff #0

No differences found between the selected revisions.

History

1 round 0 comments
sign up or login to add to the discussion
oppi.li submitted #0
patch application failed: error: No valid patches in input (allow with "--allow-empty")
expand 0 comments