diff --git a/app/layout.tsx b/app/layout.tsx index a53754716..5db87a235 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,46 +1,3 @@ -/* eslint-disable @next/next/no-page-custom-font */ -import "./styles/globals.scss"; -import "./styles/markdown.scss"; -import "./styles/highlight.scss"; -import process from "child_process"; -import { ACCESS_CODES, IS_IN_DOCKER } from "./api/access"; - -let COMMIT_ID: string | undefined; -try { - COMMIT_ID = process - // .execSync("git describe --tags --abbrev=0") - .execSync("git rev-parse --short HEAD") - .toString() - .trim(); -} catch (e) { - console.error("No git or not from git repo."); -} - -export const metadata = { - title: "Mr.Y's ChatGPT Web", - description: "Your personal ChatGPT Chat Bot.QQ2296388043", - appleWebApp: { - title: "Mr.Y's ChatGPT Web", - statusBarStyle: "black-translucent", - }, - themeColor: "#fafafa", -}; - -function Meta() { - const metas = { - version: COMMIT_ID ?? "unknown", - access: ACCESS_CODES.size > 0 || IS_IN_DOCKER ? "enabled" : "disabled", - }; - - return ( - <> - {Object.entries(metas).map(([k, v]) => ( - - ))} - - ); -} - export default function RootLayout({ children, }: { @@ -62,7 +19,7 @@ export default function RootLayout({ rel="stylesheet" > - < + {children}