Files
pulse/app/layout.tsx
Usman Baig 205cdf314c perf: bound SWR cache, clean stale storage, cap annotations
Add LRU cache provider (200 entries) to prevent unbounded SWR memory
growth. Clean up stale PKCE localStorage keys on app init. Cap chart
annotations to 20 visible reference lines with overflow indicator.
2026-03-10 21:19:33 +01:00

62 lines
1.7 KiB
TypeScript

import { ThemeProviders, Toaster } from '@ciphera-net/ui'
import { AuthProvider } from '@/lib/auth/context'
import SWRProvider from '@/components/SWRProvider'
import type { Metadata, Viewport } from 'next'
import { Plus_Jakarta_Sans } from 'next/font/google'
import LayoutContent from './layout-content'
import '../styles/globals.css'
const plusJakartaSans = Plus_Jakarta_Sans({
subsets: ['latin'],
variable: '--font-plus-jakarta-sans',
display: 'swap',
})
export const viewport: Viewport = {
width: 'device-width',
initialScale: 1,
maximumScale: 5,
userScalable: true,
themeColor: '#FD5E0F',
}
export const metadata: Metadata = {
title: 'Pulse - Privacy-First Web Analytics',
description: 'Simple, privacy-focused web analytics. No cookies, no tracking. GDPR compliant.',
keywords: ['analytics', 'privacy', 'web analytics', 'ciphera', 'GDPR'],
authors: [{ name: 'Ciphera' }],
creator: 'Ciphera',
publisher: 'Ciphera',
icons: {
icon: '/favicon.ico',
shortcut: '/favicon.ico',
apple: '/pulse_icon_no_margins.png',
},
manifest: '/manifest.json',
robots: {
index: true,
follow: true,
},
}
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<html lang="en" className={plusJakartaSans.variable} suppressHydrationWarning>
<body className="antialiased min-h-screen flex flex-col bg-white dark:bg-neutral-950 text-neutral-900 dark:text-neutral-50">
<SWRProvider>
<ThemeProviders>
<AuthProvider>
<LayoutContent>{children}</LayoutContent>
<Toaster />
</AuthProvider>
</ThemeProviders>
</SWRProvider>
</body>
</html>
)
}