2026-11-18 05:18:55 +06:00
|
|
|
import { PwaLifecycle } from '@/components/pwa/PwaLifecycle';
|
2026-10-23 19:56:38 -07:00
|
|
|
import { ToastProvider } from '@/components/ui/Toast';
|
2026-11-18 05:18:55 +06:00
|
|
|
import type { Metadata, Viewport } from 'next';
|
2026-10-23 11:43:49 -05:00
|
|
|
import './globals.css';
|
|
|
|
|
|
2026-11-18 05:18:55 +06:00
|
|
|
export const viewport: Viewport = {
|
|
|
|
|
themeColor: '#0a0a0b',
|
|
|
|
|
width: 'device-width',
|
|
|
|
|
initialScale: 1,
|
|
|
|
|
};
|
|
|
|
|
|
2026-10-23 11:43:49 -05:00
|
|
|
export const metadata: Metadata = {
|
|
|
|
|
title: 'DataStack - Realtime Data Collection Platform',
|
2026-11-16 21:58:18 +06:00
|
|
|
description: 'Self-hosted universal realtime data collection engine with Socket.IO ingestion, Redis buffer, JWT client auth, CSV batch rotation, and /vcon/ admin panel.',
|
2026-10-23 11:43:49 -05:00
|
|
|
manifest: '/manifest.json',
|
2026-11-18 05:18:55 +06:00
|
|
|
appleWebApp: {
|
|
|
|
|
capable: true,
|
|
|
|
|
statusBarStyle: 'black-translucent',
|
|
|
|
|
title: 'DataStack',
|
|
|
|
|
},
|
|
|
|
|
icons: {
|
|
|
|
|
icon: [
|
|
|
|
|
{ url: '/icon.svg', type: 'image/svg+xml' },
|
|
|
|
|
{ url: '/icon-192.png', sizes: '192x192', type: 'image/png' },
|
|
|
|
|
{ url: '/icon-512.png', sizes: '512x512', type: 'image/png' },
|
|
|
|
|
],
|
|
|
|
|
apple: [{ url: '/apple-touch-icon.png', sizes: '180x180', type: 'image/png' }],
|
|
|
|
|
},
|
2026-10-23 11:43:49 -05:00
|
|
|
openGraph: {
|
|
|
|
|
title: 'DataStack - Realtime Data Collection Platform',
|
2026-11-16 21:58:18 +06:00
|
|
|
description: 'Self-hosted universal realtime data collection engine with Socket.IO ingestion, Redis buffer, JWT client auth, CSV batch rotation, and /vcon/ admin panel.',
|
2026-10-23 11:43:49 -05:00
|
|
|
type: 'website',
|
|
|
|
|
},
|
|
|
|
|
twitter: {
|
|
|
|
|
card: 'summary_large_image',
|
|
|
|
|
title: 'DataStack - Realtime Data Collection Platform',
|
2026-11-16 21:58:18 +06:00
|
|
|
description: 'Self-hosted universal realtime data collection engine with Socket.IO ingestion, Redis buffer, JWT client auth, CSV batch rotation, and /vcon/ admin panel.',
|
2026-10-23 11:43:49 -05:00
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
|
|
|
return (
|
|
|
|
|
<html lang="en" className="dark">
|
|
|
|
|
<body suppressHydrationWarning className="min-h-screen bg-[var(--bg-main)] text-[var(--text)] antialiased">
|
2026-11-18 05:18:55 +06:00
|
|
|
<ToastProvider>
|
|
|
|
|
{children}
|
|
|
|
|
<PwaLifecycle />
|
|
|
|
|
</ToastProvider>
|
2026-10-23 11:43:49 -05:00
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
);
|
|
|
|
|
}
|