Release v0.19.0. See the `## [0.19.0] — 2026-09-29` section of [CHANGELOG.md](https://github.com/ralksta/immich-folio/blob/dev/CHANGELOG.md) for the full list. Highlights: client proofing links (#683), custom content pages (#738), asset picker search (#740), concurrent-edit detection (#742), env-locked settings (#739), an accessibility baseline (#741), three security fixes with advisories (#737, #755, #759), and a pre-release quality pass (#780–#797). --------- 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> Co-authored-by: Ralf <rohlenbo79@gmail.com> Co-authored-by: Paul Thies <110185070+ImScheinox@users.noreply.github.com> Co-authored-by: lancetm714 <108419425+lancetm714@users.noreply.github.com> Co-authored-by: Lance Martin <lancetaylor95@gmail.com>
58 lines
1.9 KiB
TypeScript
58 lines
1.9 KiB
TypeScript
/**
|
|
* Map page — server component shell for the interactive map.
|
|
* Loads Leaflet CSS, renders the MapView client component.
|
|
*/
|
|
|
|
import { getConfig } from '@/lib/config';
|
|
import { isListedSubpage, listedAlbumIds } from '@/lib/config/schema';
|
|
import { notFound } from 'next/navigation';
|
|
import { MapView } from '@/components/MapView';
|
|
import { BackLink } from '@/components/BackLink';
|
|
import type { Metadata } from 'next';
|
|
import { getServerDictionary } from '@/lib/i18n/server';
|
|
// Imported here as well as in LeafletMap: this page has the stylesheet in its
|
|
// server HTML, so the tiles never render before their CSS.
|
|
import 'leaflet/dist/leaflet.css';
|
|
import './map.css';
|
|
|
|
export const dynamic = 'force-dynamic';
|
|
|
|
export function generateMetadata(): Metadata {
|
|
return { title: getServerDictionary().map.title };
|
|
}
|
|
|
|
export default function MapPage() {
|
|
const config = getConfig();
|
|
const t = getServerDictionary();
|
|
|
|
if (!config.map) {
|
|
notFound();
|
|
}
|
|
|
|
// Counts what the map may show: a hidden subpage is reachable by direct
|
|
// link only, so neither it nor an album only it carries is counted.
|
|
const collectionCount = config.subpages.filter(isListedSubpage).length;
|
|
const albumCount = listedAlbumIds(config).size;
|
|
|
|
return (
|
|
<>
|
|
<div className="map-page">
|
|
<div className="map-page__header">
|
|
<div className="map-page__header-main">
|
|
<BackLink href="/" label={t.common.backToGallery} />
|
|
<p className="map-page__kicker" aria-hidden="true">
|
|
{t.map.kicker}
|
|
</p>
|
|
<h1 className="map-page__title">{t.map.title}</h1>
|
|
<p className="map-page__subtitle">{t.map.subtitle}</p>
|
|
</div>
|
|
<p className="map-page__meta" aria-hidden="true">
|
|
{t.common.collections(collectionCount)} · {t.common.albums(albumCount)}
|
|
</p>
|
|
</div>
|
|
<MapView />
|
|
</div>
|
|
</>
|
|
);
|
|
}
|