style: restore CSS-only transitions and update config examples

This commit is contained in:
ralksta
2026-03-07 09:13:36 +01:00
parent 59ffe37cce
commit fd965c5a75
5 changed files with 82 additions and 53 deletions

View File

@@ -156,6 +156,7 @@ interface SettingsYaml {
subtitle?: string;
exifOnHover?: boolean;
map?: boolean;
transitions?: boolean;
theme?:
| string
| {
@@ -258,6 +259,8 @@ export interface AppConfig {
legal: LegalConfig;
/** Show the /map page. Default: false. */
map: boolean;
/** Enable page transitions between routes. Default: true. */
transitions: boolean;
/** Explicit album name overrides from gallery.yaml. */
albumOverrides: Record<string, string>;
cacheTtl: number;
@@ -502,6 +505,7 @@ export function getConfig(): AppConfig {
extraInfo: settings.legal?.extraInfo,
},
map: settings.map === true,
transitions: settings.transitions !== false,
albumOverrides,
cacheTtl: env.CACHE_TTL * 1000,
rateLimitRpm: env.RATE_LIMIT_RPM,