Some checks are pending
E2E / Playwright e2e (push) Waiting to run
- Introduced turbopack alias for canvas in next.config.mjs. - Updated package.json scripts for development and branding tasks. - Added new dependencies for Tiptap extensions. - Implemented new demo layouts for agenda, contacts, drive, and mail applications. - Enhanced globals.css for improved theming and splash screen animations. - Added OAuth callback handling for drive mounts. - Updated layout components to integrate new demo shells and improve structure.
52 lines
1.8 KiB
TypeScript
52 lines
1.8 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 geistSans = Geist({ subsets: ['latin'], variable: '--font-geist-sans' })
|
|
const geistMono = Geist_Mono({ subsets: ['latin'], variable: '--font-geist-mono' })
|
|
|
|
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={`${geistSans.variable} ${geistMono.variable} 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>
|
|
)
|
|
}
|