mirror of
https://github.com/xmanrui/OpenClaw-bot-review.git
synced 2026-07-27 22:25:52 +00:00
34 lines
909 B
TypeScript
34 lines
909 B
TypeScript
import type { Metadata, Viewport } from "next";
|
|
import "./globals.css";
|
|
import { Providers } from "./providers";
|
|
import { Sidebar } from "./sidebar";
|
|
import { AlertMonitor } from "./alert-monitor";
|
|
import { GlobalBugsOverlay } from "./global-bugs-overlay";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "OpenClaw Bot Dashboard",
|
|
description: "查看所有 OpenClaw 机器人配置",
|
|
};
|
|
|
|
export const viewport: Viewport = {
|
|
width: "device-width",
|
|
initialScale: 1,
|
|
};
|
|
|
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<html lang="zh-CN">
|
|
<body>
|
|
<Providers>
|
|
<AlertMonitor />
|
|
<GlobalBugsOverlay />
|
|
<div className="min-h-screen md:flex">
|
|
<Sidebar />
|
|
<main className="flex-1 overflow-auto pt-14 md:pt-0">{children}</main>
|
|
</div>
|
|
</Providers>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|