| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- /**
- * Root Layout - Next.js 14 App Router
- * 移动端优化:添加视口设置和安全区域支持
- */
- import type { Metadata, Viewport } from "next";
- import { Inter } from "next/font/google";
- import "./globals.css";
- import { QueryProvider } from "@/lib/react-query";
- const inter = Inter({ subsets: ["latin"] });
- export const metadata: Metadata = {
- title: "AI MCP Web UI",
- description: "AI 对话界面 - 支持 Claude AI 和 MCP 工具调用",
- manifest: "/manifest.json",
- appleWebApp: {
- capable: true,
- statusBarStyle: "default",
- title: "AI MCP Web UI",
- },
- };
- export const viewport: Viewport = {
- width: "device-width",
- initialScale: 1,
- maximumScale: 1,
- userScalable: false,
- viewportFit: "cover",
- themeColor: "#3b82f6",
- };
- export default function RootLayout({
- children,
- }: Readonly<{
- children: React.ReactNode;
- }>) {
- return (
- <html lang="zh-CN">
- <head>
- <meta name="format-detection" content="telephone=no" />
- <meta name="mobile-web-app-capable" content="yes" />
- <meta name="apple-mobile-web-app-capable" content="yes" />
- <meta name="apple-mobile-web-app-status-bar-style" content="default" />
- </head>
- <body className={inter.className}>
- <QueryProvider>{children}</QueryProvider>
- </body>
- </html>
- );
- }
|