Files
immich-folio/app/admin/layout.tsx
Ralksta ad8b09700b release: v0.19.0
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>
2026-09-29 22:50:30 +02:00

32 lines
1.2 KiB
TypeScript

import type { Metadata } from 'next';
import AdminShell from './AdminShell';
export const metadata: Metadata = {
title: 'Immich Folio Admin',
robots: { index: false, follow: false },
};
/**
* Required for the CSP nonce. The admin page is a pure client component, so
* Next.js would statically prerender it at build time — and a prerendered HTML
* file cannot carry the per-request nonce that proxy.ts issues. Since the
* CSP uses 'strict-dynamic' (which makes 'self' inert), unnonced script tags
* are blocked and the panel never hydrates. Rendering per request lets Next.js
* stamp the nonce onto the script tags it emits.
*/
export const dynamic = 'force-dynamic';
/**
* `lang="en"`: `<html lang>` follows the site language (settings.yaml `lang`),
* but the admin is deliberately untranslated. Without this a screen reader
* read the English interface with a German voice on a `lang: de` site.
* The Listbox popup is portalled to <body> and still inherits the root value.
*/
export default function AdminLayout({ children }: { children: React.ReactNode }) {
return (
<div className="admin-layout" lang="en">
<AdminShell>{children}</AdminShell>
</div>
);
}