Some checks are pending
E2E / Playwright e2e (push) Waiting to run
- Added SessionGuard component to manage session expiration and online status. - Updated AuthProvider to streamline session fetching and handling. - Introduced IdentityProvidersSection for managing OAuth, SAML, and LDAP identity providers. - Implemented identity provider guides for easier configuration. - Enhanced mail settings with infinite scroll option for improved user experience. - Updated global styles and layout components for better consistency across the application.
48 lines
1.6 KiB
TypeScript
48 lines
1.6 KiB
TypeScript
import type { Metadata, Viewport } from 'next'
|
|
import { Geist, Geist_Mono } from 'next/font/google'
|
|
import { Analytics } from '@vercel/analytics/next'
|
|
import './globals.css'
|
|
import { ThemeInitScript } from '@/components/theme-init-script'
|
|
import { FirstLaunchSplash } from '@/components/first-launch-splash'
|
|
import { QueryProvider } from '@/lib/api/query-provider'
|
|
import { AuthProvider } from '@/components/auth/auth-provider'
|
|
import { SessionGuard } from '@/components/auth/session-guard'
|
|
import { MailToaster } from '@/components/gmail/mail-toaster'
|
|
import { suiteRootMetadata } from '@/lib/suite/page-metadata'
|
|
|
|
const _geist = Geist({ subsets: ["latin"] });
|
|
const _geistMono = Geist_Mono({ subsets: ["latin"] });
|
|
|
|
export const metadata: Metadata = suiteRootMetadata()
|
|
|
|
/** Fit visible viewport on tablet/mobile; disable pinch/double-tap zoom on the shell. */
|
|
export const viewport: Viewport = {
|
|
width: 'device-width',
|
|
initialScale: 1,
|
|
maximumScale: 1,
|
|
userScalable: false,
|
|
viewportFit: 'cover',
|
|
}
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode
|
|
}>) {
|
|
return (
|
|
<html lang="fr" suppressHydrationWarning className="h-dvh max-h-dvh overflow-hidden">
|
|
<body className="h-dvh max-h-dvh overflow-hidden bg-background font-sans antialiased touch-manipulation">
|
|
<ThemeInitScript />
|
|
<QueryProvider>
|
|
<AuthProvider>
|
|
<SessionGuard />
|
|
<FirstLaunchSplash>{children}</FirstLaunchSplash>
|
|
</AuthProvider>
|
|
</QueryProvider>
|
|
<MailToaster />
|
|
{process.env.NODE_ENV === 'production' && <Analytics />}
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|