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>
54 lines
1.6 KiB
TypeScript
54 lines
1.6 KiB
TypeScript
/**
|
|
* Contact page (#702). The form posts to /api/contact, which stores the
|
|
* message on this server; see lib/contact.ts.
|
|
*/
|
|
|
|
import { Metadata } from 'next';
|
|
import { notFound } from 'next/navigation';
|
|
import { getConfig } from '@/lib/config';
|
|
import { BackLink } from '@/components/BackLink';
|
|
import ContactForm from '@/components/ContactForm';
|
|
import { getServerDictionary } from '@/lib/i18n/server';
|
|
import './contact.css';
|
|
|
|
export function generateMetadata(): Metadata {
|
|
// No title for a page that is switched off: it renders the 404 page.
|
|
if (!getConfig().contact.enabled) return {};
|
|
return { title: getServerDictionary().contact.title };
|
|
}
|
|
|
|
export const dynamic = 'force-dynamic';
|
|
|
|
/**
|
|
* The server's clock for the form's fill-time stamp. The check on submission
|
|
* runs on this clock, so the start has to as well (see ContactForm). A server
|
|
* component renders once per request, which is why reading the clock here is
|
|
* not the re-render hazard `react-hooks/purity` looks for.
|
|
*/
|
|
function serverNow(): number {
|
|
return Date.now();
|
|
}
|
|
|
|
export default function ContactPage() {
|
|
const { contact } = getConfig();
|
|
const t = getServerDictionary();
|
|
|
|
if (!contact.enabled) {
|
|
notFound();
|
|
}
|
|
|
|
return (
|
|
<div className="contact-page">
|
|
<header className="contact-page__header">
|
|
<BackLink href="/" label={t.common.home} />
|
|
<h1 className="contact-page__title">{t.contact.title}</h1>
|
|
<p className="contact-page__subtitle">{t.contact.subtitle}</p>
|
|
</header>
|
|
|
|
<div className="contact-page__content">
|
|
<ContactForm retentionDays={contact.retentionDays} renderedAt={serverNow()} />
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|