All checks were successful
Release / Test backend (push) Successful in 47s
Release / Check ui (push) Successful in 1m38s
Release / Docker / caddy (push) Successful in 42s
Release / Docker / backend (push) Successful in 2m38s
Release / Docker / runner (push) Successful in 2m38s
Release / Upload source maps (push) Successful in 1m23s
Release / Docker / ui (push) Successful in 2m26s
Release / Gitea Release (push) Successful in 31s
Bug 1 — Auto-next not transitioning: audioExpanded defaulted to false on the new chapter page because audioStore.chapter still held the old chapter number when the page script initialized. The $effect only opened the panel when isPlaying was already true — a circular dependency (can't play without the panel, panel only opens when playing). Fix: also set audioExpanded=true when autoStartChapter targets this chapter, both in the initial $state and in the reactive $effect. Bug 2 — Resume starts at the end: onended called saveAudioTime() which captured currentTime≈duration and fired a PATCH 2 seconds later (after navigation had already completed). Next visit to that chapter restored the end-of-file position. Fix: in onended, cancel the debounced timer (clearTimeout) and immediately PATCH audioTime=0 for the finished chapter, so it always resumes from the beginning on re-visit.
sv
Everything you need to build a Svelte project, powered by sv.
Creating a project
If you're seeing this, you've probably already done this step. Congrats!
# create a new project
npx sv create my-app
To recreate this project with the same configuration:
# recreate this project
npx sv@0.12.4 create --template minimal --types ts --install npm ui
Developing
Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
Building
To create a production version of your app:
npm run build
You can preview the production build with npm run preview.
To deploy your app, you may need to install an adapter for your target environment.