Files
DataStack/app/layout.tsx
T

52 lines
1.9 KiB
TypeScript
Raw Normal View History

import { PwaLifecycle } from '@/components/pwa/PwaLifecycle';
2026-10-23 19:56:38 -07:00
import { ToastProvider } from '@/components/ui/Toast';
import type { Metadata, Viewport } from 'next';
2026-10-23 11:43:49 -05:00
import './globals.css';
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',
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',
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',
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',
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">
<ToastProvider>
{children}
<PwaLifecycle />
</ToastProvider>
2026-10-23 11:43:49 -05:00
</body>
</html>
);
}