2023-03-25 22:24:52 +08:00
|
|
|
/* eslint-disable @next/next/no-page-custom-font */
|
2023-03-19 22:13:00 +08:00
|
|
|
import "./styles/globals.scss";
|
|
|
|
import "./styles/markdown.scss";
|
2023-04-02 22:48:18 +08:00
|
|
|
import "./styles/highlight.scss";
|
2023-04-11 01:21:34 +08:00
|
|
|
import { getBuildConfig } from "./config/build";
|
2023-03-26 14:53:40 +08:00
|
|
|
|
2023-04-11 01:21:34 +08:00
|
|
|
const buildConfig = getBuildConfig();
|
2023-03-07 23:23:54 +08:00
|
|
|
|
|
|
|
export const metadata = {
|
2023-03-10 01:01:40 +08:00
|
|
|
title: "ChatGPT Next Web",
|
2023-03-25 22:24:52 +08:00
|
|
|
description: "Your personal ChatGPT Chat Bot.",
|
2023-05-12 19:23:49 +08:00
|
|
|
viewport: {
|
|
|
|
width: "device-width",
|
|
|
|
initialScale: 1,
|
|
|
|
maximumScale: 1,
|
|
|
|
},
|
|
|
|
themeColor: [
|
|
|
|
{ media: "(prefers-color-scheme: light)", color: "#fafafa" },
|
|
|
|
{ media: "(prefers-color-scheme: dark)", color: "#151515" },
|
|
|
|
],
|
2023-03-27 15:02:12 +08:00
|
|
|
appleWebApp: {
|
|
|
|
title: "ChatGPT Next Web",
|
2023-04-04 00:24:59 +08:00
|
|
|
statusBarStyle: "default",
|
2023-03-27 15:02:12 +08:00
|
|
|
},
|
2023-03-10 01:01:40 +08:00
|
|
|
};
|
2023-03-07 23:23:54 +08:00
|
|
|
|
|
|
|
export default function RootLayout({
|
|
|
|
children,
|
|
|
|
}: {
|
2023-03-10 01:01:40 +08:00
|
|
|
children: React.ReactNode;
|
2023-03-07 23:23:54 +08:00
|
|
|
}) {
|
|
|
|
return (
|
2023-03-16 01:24:03 +08:00
|
|
|
<html lang="en">
|
2023-03-20 14:06:29 +08:00
|
|
|
<head>
|
2023-04-11 01:21:34 +08:00
|
|
|
<meta name="version" content={buildConfig.commitId} />
|
2023-03-20 14:06:29 +08:00
|
|
|
<link rel="manifest" href="/site.webmanifest"></link>
|
2023-03-27 18:02:35 +08:00
|
|
|
<script src="/serviceWorkerRegister.js" defer></script>
|
2023-03-20 14:06:29 +08:00
|
|
|
</head>
|
2023-03-07 23:23:54 +08:00
|
|
|
<body>{children}</body>
|
|
|
|
</html>
|
2023-03-10 01:01:40 +08:00
|
|
|
);
|
2023-03-07 23:23:54 +08:00
|
|
|
}
|