2026-01-05 09:58:59 +07:00
|
|
|
import { Inter } from "next/font/google";
|
2026-05-10 21:54:54 +07:00
|
|
|
import "material-symbols/outlined.css";
|
2026-01-05 09:58:59 +07:00
|
|
|
import "./globals.css";
|
|
|
|
|
import { ThemeProvider } from "@/shared/components/ThemeProvider";
|
2026-02-28 10:11:53 +07:00
|
|
|
import "@/lib/network/initOutboundProxy"; // Auto-initialize outbound proxy env
|
2026-03-02 09:31:16 +07:00
|
|
|
import { initConsoleLogCapture } from "@/lib/consoleLogBuffer";
|
2026-03-06 10:57:42 +07:00
|
|
|
import { RuntimeI18nProvider } from "@/i18n/RuntimeI18nProvider";
|
2026-03-02 09:31:16 +07:00
|
|
|
|
|
|
|
|
// Hook console immediately at module load time (server-side only, runs once)
|
|
|
|
|
initConsoleLogCapture();
|
2026-01-05 09:58:59 +07:00
|
|
|
|
|
|
|
|
const inter = Inter({
|
|
|
|
|
subsets: ["latin"],
|
|
|
|
|
variable: "--font-inter",
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const metadata = {
|
|
|
|
|
title: "9Router - AI Infrastructure Management",
|
|
|
|
|
description: "One endpoint for all your AI providers. Manage keys, monitor usage, and scale effortlessly.",
|
2026-01-20 13:16:34 +07:00
|
|
|
icons: {
|
|
|
|
|
icon: "/favicon.svg",
|
|
|
|
|
},
|
2026-01-05 09:58:59 +07:00
|
|
|
};
|
|
|
|
|
|
2026-02-25 11:40:50 +07:00
|
|
|
export const viewport = {
|
|
|
|
|
themeColor: "#0a0a0a",
|
|
|
|
|
};
|
|
|
|
|
|
2026-01-05 09:58:59 +07:00
|
|
|
export default function RootLayout({ children }) {
|
|
|
|
|
return (
|
|
|
|
|
<html lang="en" suppressHydrationWarning>
|
|
|
|
|
<head>
|
2026-05-09 17:48:20 +07:00
|
|
|
<script
|
|
|
|
|
dangerouslySetInnerHTML={{
|
2026-05-10 21:54:54 +07:00
|
|
|
__html: `if(document.fonts&&document.fonts.ready){document.fonts.ready.then(function(){document.documentElement.classList.add('fonts-loaded')})}else{document.documentElement.classList.add('fonts-loaded')}`,
|
2026-05-09 17:48:20 +07:00
|
|
|
}}
|
|
|
|
|
/>
|
2026-01-05 09:58:59 +07:00
|
|
|
</head>
|
|
|
|
|
<body className={`${inter.variable} font-sans antialiased`}>
|
|
|
|
|
<ThemeProvider>
|
2026-03-06 10:57:42 +07:00
|
|
|
<RuntimeI18nProvider>
|
|
|
|
|
{children}
|
|
|
|
|
</RuntimeI18nProvider>
|
2026-01-05 09:58:59 +07:00
|
|
|
</ThemeProvider>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
);
|
|
|
|
|
}
|