mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 21:29:08 +00:00
Add support for generating dynamic diagrams in flow with Excalidraw (https://github.com/excalidraw/excalidraw). This happens in three steps: 1. Default information collection & intent determination step. 2. Improving the overall guidance of the prompt for generating a JSON, Excalidraw-compatible declaration. 3. Generation of the diagram to output to the final UI. Add support in the web UI.
61 lines
2.1 KiB
TypeScript
61 lines
2.1 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Noto_Sans } from "next/font/google";
|
|
import "../globals.css";
|
|
|
|
const inter = Noto_Sans({ subsets: ["latin"] });
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Khoj AI - Chat",
|
|
description:
|
|
"Ask anything. Khoj will use the internet and your docs to answer, paint and even automate stuff for you.",
|
|
icons: {
|
|
icon: "/static/assets/icons/khoj_lantern.ico",
|
|
apple: "/static/assets/icons/khoj_lantern_256x256.png",
|
|
},
|
|
openGraph: {
|
|
siteName: "Khoj AI",
|
|
title: "Khoj AI - Chat",
|
|
description: "Your Second Brain.",
|
|
url: "https://app.khoj.dev/chat",
|
|
type: "website",
|
|
images: [
|
|
{
|
|
url: "https://assets.khoj.dev/khoj_lantern_256x256.png",
|
|
width: 256,
|
|
height: 256,
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en">
|
|
<meta
|
|
httpEquiv="Content-Security-Policy"
|
|
content="default-src 'self' https://assets.khoj.dev;
|
|
media-src * blob:;
|
|
script-src 'self' https://assets.khoj.dev 'unsafe-inline' 'unsafe-eval';
|
|
connect-src 'self' blob: https://ipapi.co/json ws://localhost:42110;
|
|
style-src 'self' https://assets.khoj.dev 'unsafe-inline' https://fonts.googleapis.com;
|
|
img-src 'self' data: blob: https://*.khoj.dev https://*.googleusercontent.com https://*.google.com/ https://*.gstatic.com;
|
|
font-src 'self' https://assets.khoj.dev https://fonts.gstatic.com;
|
|
child-src 'none';
|
|
object-src 'none';"
|
|
></meta>
|
|
<body className={inter.className}>
|
|
{children}
|
|
<script
|
|
dangerouslySetInnerHTML={{
|
|
__html: `window.EXCALIDRAW_ASSET_PATH = 'https://assets.khoj.dev/@excalidraw/excalidraw/dist/';`,
|
|
}}
|
|
/>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|