feat: in-reader settings, more like this, reading history, audio filter, feed page
Some checks failed
Release / Test backend (push) Successful in 38s
Release / Check ui (push) Failing after 33s
Release / Docker / ui (push) Has been skipped
Release / Docker / caddy (push) Successful in 51s
Release / Docker / backend (push) Successful in 2m20s
Release / Docker / runner (push) Successful in 2m28s
Release / Gitea Release (push) Has been skipped

- Add floating gear button + theme/font/size drawer in chapter reader
- Add 'More like this' horizontal scroll row on book detail page
- Add reading history tab on profile page (chronological progress timeline)
- Add audio-available badge + filter toggle on catalogue (GET /api/audio/slugs)
- Fix discover card entry animation pop (split entry vs snap-back cubic-bezier)
- Add dedicated /feed page showing books followed users are reading
- Add Feed nav link (desktop + mobile) in all 5 locales
This commit is contained in:
Admin
2026-04-03 22:32:37 +05:00
parent 28fee7aee3
commit 8588475d03
27 changed files with 900 additions and 104 deletions

View File

@@ -0,0 +1,16 @@
import { json } from '@sveltejs/kit';
import type { RequestHandler } from './$types';
import { getSlugsWithAudio } from '$lib/server/pocketbase';
/**
* GET /api/audio/slugs
* Returns the list of book slugs that have at least one completed audio chapter.
* Cached for 5 minutes at the CDN/proxy level.
*/
export const GET: RequestHandler = async () => {
const slugs = await getSlugsWithAudio().catch(() => new Set<string>());
return json(
{ slugs: [...slugs] },
{ headers: { 'Cache-Control': 'public, max-age=300' } }
);
};