Twenty-nine commits since v0.12.0. See CHANGELOG.md for the full list and the upgrade notes. Ten additions — the SEO package (site URL, robots.txt, sitemap.xml, JSON-LD), slideshow mode, opt-in original downloads, copy-link, previous/next album navigation, alt text from the Immich description, per-album location precision, the update notice, a Help tab, and a subpage cover grid separate from its photo grid. Two fixes: CJK album slugs, and the lightbox control bar. Photo of the Day (#476) was built on `dev` and reverted as not planned; it never appears in a release. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01DmsHVRL9yQvckUB1ZpVWre --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: ralksta <ralksta@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
25 lines
874 B
TypeScript
25 lines
874 B
TypeScript
/**
|
|
* Slideshow speeds for the lightbox (#473).
|
|
*
|
|
* Three speeds and off, cycled by one key, so a gallery can be left running at
|
|
* an exhibition, a fair booth or on a second screen without the viewer growing
|
|
* a control of its own.
|
|
*/
|
|
|
|
/** Seconds between advances, slowest last. `null` is off. */
|
|
export const SLIDESHOW_SPEEDS = [null, 3, 5, 10] as const;
|
|
|
|
export type SlideshowSpeed = (typeof SLIDESHOW_SPEEDS)[number];
|
|
|
|
/**
|
|
* The next speed in the cycle: off → 3s → 5s → 10s → off.
|
|
*
|
|
* An unrecognised value returns the first speed, so the cycle can always be
|
|
* re-entered rather than sticking.
|
|
*/
|
|
export function nextSlideshowSpeed(current: SlideshowSpeed): SlideshowSpeed {
|
|
const position = SLIDESHOW_SPEEDS.indexOf(current);
|
|
if (position === -1) return SLIDESHOW_SPEEDS[1];
|
|
return SLIDESHOW_SPEEDS[(position + 1) % SLIDESHOW_SPEEDS.length];
|
|
}
|