add the search function to website

This commit is contained in:
PrinOrange
2024-01-06 11:47:18 +08:00
parent acdc77260f
commit 4fdba9d2b9
8 changed files with 1118 additions and 21 deletions

View File

@@ -4,13 +4,16 @@ import { SpeedInsights } from "@vercel/speed-insights/next";
import "katex/dist/katex.min.css";
import { ThemeProvider } from "next-themes";
import type { AppProps } from "next/app";
import { QueryClient, QueryClientProvider } from "react-query";
const queryClient = new QueryClient();
export default function App({ Component, pageProps }: AppProps) {
return (
<ThemeProvider attribute="class" enableColorScheme enableSystem={false}>
<Analytics />
<SpeedInsights />
<Component {...pageProps} />
</ThemeProvider>
<QueryClientProvider client={queryClient}>
<ThemeProvider attribute="class" enableColorScheme enableSystem={false}>
<Analytics />
<SpeedInsights />
<Component {...pageProps} />
</ThemeProvider>
</QueryClientProvider>
);
}