feat(web): configure slideshow (#7219)

* feat: configure slideshow delay

* feat: show/hide progressbar

* fix: slider

* refactor: use grid instead of flex

* fix: default delay

* refactor: progress bar props

* refactor: slideshow settings

* fix: enforce min/max value

* chore: linting

---------

Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
This commit is contained in:
martin 2024-02-23 06:01:19 +01:00 committed by GitHub
parent 6bb30291de
commit b3b6426695
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 183 additions and 119 deletions

View file

@ -14,6 +14,9 @@ function createSlideshowStore() {
const slideshowShuffle = persisted<boolean>('slideshow-shuffle', true);
const slideshowState = writable<SlideshowState>(SlideshowState.None);
const showProgressBar = persisted<boolean>('slideshow-show-progressbar', true);
const slideshowDelay = persisted<number>('slideshow-delay', 5, {});
return {
restartProgress: {
subscribe: restartState.subscribe,
@ -39,6 +42,8 @@ function createSlideshowStore() {
},
slideshowShuffle,
slideshowState,
slideshowDelay,
showProgressBar,
};
}