chore: patch deps, CSP style nonces, otplib 13, and PR CI
Deploy / release (push) Skipped
Deploy / deploy (push) Successful in 1m35s

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
SimoandCursor committed 2026-07-21 20:46:02 +02:00
1 parent 87bda8dbef
commit 2ff08e5127
11 files changed
+239 -160

No files matched your search

+6 -3
View File
@@ -9,7 +9,7 @@ import {
// Injects the DB-driven CSS custom properties into :root / html.dark.
// Readable (WCAG) text colors are derived centrally in themePaletteCss.
export async function ThemeVars() {
export async function ThemeVars({ nonce }: { nonce?: string } = {}) {
const g = (k: string, d: string) => siteSettings.get(k, d);
const [
primary,
@@ -175,10 +175,13 @@ export async function ThemeVars() {
return (
<>
{googleHref ? <link rel="stylesheet" href={googleHref} /> : null}
<style dangerouslySetInnerHTML={{ __html: css }} />
<style nonce={nonce} dangerouslySetInnerHTML={{ __html: css }} />
{customCss?.trim() ? (
// Staff-authored custom CSS (housekeeping → Theme). Trusted input.
<style dangerouslySetInnerHTML={{ __html: customCss }} />
<style
nonce={nonce}
dangerouslySetInnerHTML={{ __html: customCss }}
/>
) : null}
</>
);