Download src/app/layout.js from shimen/kirway: direct link, hf CLI and curl.
- Browser
- Download file 2.36 kB
-
https://huggingface.co/spaces/shimen/kirway/resolve/main/src/app/layout.js
- Command line
-
hf download hf://spaces/shimen/kirway/src/app/layout.js
-
curl -L -o layout.js https://huggingface.co/spaces/shimen/kirway/resolve/main/src/app/layout.js
2.36 kB
| import { Inter } from "next/font/google"; | |
| import { GoogleAnalytics } from "@next/third-parties/google"; | |
| import "material-symbols/outlined.css"; | |
| import "./globals.css"; | |
| import { ThemeProvider } from "@/shared/components/ThemeProvider"; | |
| import "@/lib/network/initOutboundProxy"; // Auto-initialize outbound proxy env | |
| import "@/shared/services/bootstrap"; // Auto-run initializeApp (watchdog, auto-resume tunnel) | |
| import { initConsoleLogCapture } from "@/lib/consoleLogBuffer"; | |
| import { RuntimeI18nProvider } from "@/i18n/RuntimeI18nProvider"; | |
| // Hook console immediately at module load time (server-side only, runs once) | |
| initConsoleLogCapture(); | |
| 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.", | |
| icons: { | |
| icon: "/favicon.svg", | |
| }, | |
| }; | |
| export const viewport = { | |
| themeColor: "#0a0a0a", | |
| }; | |
| export default function RootLayout({ children }) { | |
| return ( | |
| <html lang="en" suppressHydrationWarning> | |
| <head> | |
| {/* Apply persisted theme before first paint so a reload does not flash the | |
| default (light) theme before the client store hydrates. Mirrors the | |
| zustand-persist "theme" key and the `dark` class applyTheme() sets. */} | |
| <script | |
| dangerouslySetInnerHTML={{ | |
| __html: `(function(){try{var s=localStorage.getItem('theme');var t=s?(JSON.parse(s).state||{}).theme:'system';t=t||'system';var m=window.matchMedia('(prefers-color-scheme: dark)').matches;if(t==='dark'||(t==='system'&&m)){document.documentElement.classList.add('dark')}}catch(e){}})();`, | |
| }} | |
| /> | |
| ); | |
| } | |