mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 16:56:22 +02:00
feat(create-turbo): apply official-starter transform
This commit is contained in:
parent
55332d1ddb
commit
856eb69577
201 changed files with 2812 additions and 14413 deletions
|
|
@ -1,48 +1,30 @@
|
|||
import "./globals.css";
|
||||
import type { Metadata } from "next";
|
||||
import { Inter as FontSans } from "next/font/google";
|
||||
import { DashboardLayout } from "@/components/layouts/dashboard";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { ThemeProvider } from "@/components/theme/theme-provider";
|
||||
import { OpenAPI } from "@/lib/api/client";
|
||||
import { TailwindIndicator } from "@/components/tailwind-indicator";
|
||||
import localFont from "next/font/local";
|
||||
import "./globals.css";
|
||||
|
||||
export const fontSans = FontSans({
|
||||
subsets: ["latin"],
|
||||
variable: "--font-sans",
|
||||
const geistSans = localFont({
|
||||
src: "./fonts/GeistVF.woff",
|
||||
variable: "--font-geist-sans",
|
||||
});
|
||||
const geistMono = localFont({
|
||||
src: "./fonts/GeistMonoVF.woff",
|
||||
variable: "--font-geist-mono",
|
||||
});
|
||||
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
OpenAPI.BASE = "https://next-fast-turbo.vercel.app";
|
||||
}
|
||||
|
||||
console.log("Using OpenAPI.base", OpenAPI.BASE);
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Next-Fast-Turbo",
|
||||
description: "A Next.js, FastAPI and Turbo project scaffol",
|
||||
icons: {
|
||||
icon: ["/favicon.png"],
|
||||
},
|
||||
title: "Create Next App",
|
||||
description: "Generated by create next app",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: {
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}): JSX.Element {
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<body className={cn(fontSans.variable, "bg-background font-sans")}>
|
||||
<ThemeProvider
|
||||
attribute="class"
|
||||
defaultTheme="system"
|
||||
enableSystem
|
||||
disableTransitionOnChange
|
||||
>
|
||||
<DashboardLayout>{children}</DashboardLayout>
|
||||
<TailwindIndicator />
|
||||
</ThemeProvider>
|
||||
<html lang="en">
|
||||
<body className={`${geistSans.variable} ${geistMono.variable}`}>
|
||||
{children}
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue