mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-15 09:32:22 +03:00
1ec736b357
* feat(brainSettings): add feed process instrcution to knowledge tab * feat: prevent default brain auto fetch * feat: prevent chat submision on submit button click * feat: remove unrelevant toast * feat: remove duplicated GA initialization * feat: add brain name in notifications * fix(test): update analytics import path * refactor: move ChatsList utils to ChatsList directory * fix(test): update chatlist tests
59 lines
1.7 KiB
TypeScript
59 lines
1.7 KiB
TypeScript
import { createServerComponentSupabaseClient } from "@supabase/auth-helpers-nextjs";
|
|
import { Analytics as VercelAnalytics } from "@vercel/analytics/react";
|
|
import { Inter } from "next/font/google";
|
|
import { cookies, headers } from "next/headers";
|
|
|
|
import { ToastProvider } from "@/lib/components/ui/Toast";
|
|
import { FeatureFlagsProvider } from "@/lib/context";
|
|
import { BrainProvider } from "@/lib/context/BrainProvider";
|
|
import { SupabaseProvider } from "@/lib/context/SupabaseProvider";
|
|
|
|
import { App } from "./App";
|
|
import "./globals.css";
|
|
|
|
const inter = Inter({ subsets: ["latin"] });
|
|
|
|
export const metadata = {
|
|
title: "Quivr - Get a Second Brain with Generative AI",
|
|
description:
|
|
"Quivr is your second brain in the cloud, designed to easily store and retrieve unstructured information.",
|
|
};
|
|
|
|
const RootLayout = async ({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}): Promise<JSX.Element> => {
|
|
const supabase = createServerComponentSupabaseClient({
|
|
headers,
|
|
cookies,
|
|
});
|
|
|
|
const {
|
|
data: { session },
|
|
} = await supabase.auth.getSession();
|
|
|
|
return (
|
|
<html lang="en">
|
|
<body
|
|
className={`bg-white text-black min-h-screen flex flex-col dark:bg-black dark:text-white w-full ${inter.className}`}
|
|
>
|
|
<FeatureFlagsProvider>
|
|
<ToastProvider>
|
|
<SupabaseProvider session={session}>
|
|
<BrainProvider>
|
|
<App>
|
|
<div className="flex-1">{children}</div>
|
|
</App>
|
|
</BrainProvider>
|
|
</SupabaseProvider>
|
|
</ToastProvider>
|
|
<VercelAnalytics />
|
|
</FeatureFlagsProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
};
|
|
|
|
export default RootLayout;
|