MCPcopy Index your code
hub / github.com/CodeGraphContext/CodeGraphContext / App

Function App

website/src/App.tsx:20–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18const queryClient = new QueryClient();
19
20const App: React.FC = () => {
21 // ✅ Initialize AOS once on mount
22 useEffect(() => {
23 AOS.init({
24 duration: 800, // Animation duration (ms)
25 easing: "ease-in-out", // Smooth transition
26 once: true, // Run animation only once
27 mirror: false, // Do not animate when scrolling back up
28 });
29 }, []);
30
31 return (
32 <BrowserRouter future={{ v7_startTransition: true, v7_relativeSplatPath: true }}>
33 <QueryClientProvider client={queryClient}>
34 <ThemeProvider
35 attribute="class"
36 defaultTheme="dark"
37 enableSystem
38 disableTransitionOnChange
39 >
40 <TooltipProvider>
41 <Toaster />
42 <Sonner />
43 <Navbar />
44 <Routes>
45 <Route path="/" element={<Index />} />
46 <Route path="/explore" element={<Explore />} />
47 {/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */}
48 <Route path="*" element={<NotFound />} />
49 </Routes>
50 {/* Move to Top button */}
51 <MoveToTop />
52 </TooltipProvider>
53 </ThemeProvider>
54 </QueryClientProvider>
55 </BrowserRouter>
56 );
57};
58
59export default App;

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected