Next.js full-stack analytics dashboard for new-api. - Direct PostgreSQL readonly queries on logs table - 5 pages: Dashboard, Rankings, Aggregation, Logs, Detail - Dark/Light/System theme with CSS variables - Chinese/English i18n (default Chinese) - Recharts with dual Y-axis for input/output tokens - Lucide icons + Motion animations - Docker + docker-compose with external sinobridge network, port 8019
18 lines
466 B
TypeScript
18 lines
466 B
TypeScript
"use client";
|
|
|
|
import { type ReactNode } from "react";
|
|
import { I18nProvider } from "@/lib/i18n";
|
|
import { ThemeProvider } from "@/lib/theme";
|
|
import { Sidebar } from "@/components/Sidebar";
|
|
|
|
export function ClientProviders({ children }: { children: ReactNode }) {
|
|
return (
|
|
<ThemeProvider>
|
|
<I18nProvider>
|
|
<Sidebar />
|
|
<main className="ml-[220px] min-h-screen p-6 lg:p-8">{children}</main>
|
|
</I18nProvider>
|
|
</ThemeProvider>
|
|
);
|
|
}
|