mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 07:00:26 +08:00
Ship folder-based workspaces and data migration, daily practice, redesigned provider and model settings, and streaming conversation improvements. Synchronize README translations and document the archive/permanent-delete upgrade behavior in assets/releases/ver1-6-9.md. Reduce initial JavaScript by deduplicating English resources and loading animation features after hydration. Keep the existing route size budgets. Update regression fixtures and browser audits for scoped URLs and the new settings and learning interfaces.
69 lines
2.0 KiB
TypeScript
69 lines
2.0 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Geist, Lora } from "next/font/google";
|
|
import "./globals.css";
|
|
import ThemeScript from "@/components/ThemeScript";
|
|
import ToastViewport from "@/components/common/ToastViewport";
|
|
import MotionProvider from "@/components/common/MotionProvider";
|
|
import SettingsReturnTracker from "@/components/settings/SettingsReturnTracker";
|
|
import { WorkspaceNavigation } from "@/components/workspaces/WorkspaceNavigation";
|
|
import { AppShellProvider } from "@/context/AppShellContext";
|
|
import { I18nClientBridge } from "@/i18n/I18nClientBridge";
|
|
|
|
// Geist matches the public site (deeptutor.info) and stays crisp at the
|
|
// small UI sizes the composer/toolbars use, unlike the rounder Jakarta.
|
|
const fontSans = Geist({
|
|
subsets: ["latin"],
|
|
display: "swap",
|
|
variable: "--font-sans",
|
|
});
|
|
|
|
const fontSerif = Lora({
|
|
subsets: ["latin"],
|
|
display: "swap",
|
|
variable: "--font-serif",
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "DeepTutor",
|
|
description: "Agent-native intelligent learning companion",
|
|
icons: {
|
|
icon: [
|
|
{ url: "/favicon-16x16.png", sizes: "16x16", type: "image/png" },
|
|
{ url: "/favicon-32x32.png", sizes: "32x32", type: "image/png" },
|
|
],
|
|
apple: "/apple-touch-icon.png",
|
|
},
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html
|
|
lang="en"
|
|
suppressHydrationWarning
|
|
data-scroll-behavior="smooth"
|
|
className={`${fontSans.variable} ${fontSerif.variable}`}
|
|
>
|
|
<head>
|
|
<ThemeScript />
|
|
</head>
|
|
<body
|
|
className="font-sans bg-[var(--background)] text-[var(--foreground)]"
|
|
suppressHydrationWarning
|
|
>
|
|
<AppShellProvider>
|
|
<SettingsReturnTracker />
|
|
<WorkspaceNavigation />
|
|
<MotionProvider>
|
|
<I18nClientBridge>{children}</I18nClientBridge>
|
|
</MotionProvider>
|
|
<ToastViewport />
|
|
</AppShellProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|