From 1fe60ad69325b317b7f1d07820bba42ad1822924 Mon Sep 17 00:00:00 2001 From: nacadmin Date: Sun, 22 Mar 2026 09:07:47 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=20App.tsx=20(2026-0?= =?UTF-8?q?3-22)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/App.tsx | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 client/src/App.tsx diff --git a/client/src/App.tsx b/client/src/App.tsx new file mode 100644 index 0000000..382c633 --- /dev/null +++ b/client/src/App.tsx @@ -0,0 +1,46 @@ +import { Toaster } from "@/components/ui/sonner"; +import { TooltipProvider } from "@/components/ui/tooltip"; +import NotFound from "@/pages/NotFound"; +import { Route, Switch } from "wouter"; +import ErrorBoundary from "./components/ErrorBoundary"; +import { ThemeProvider } from "./contexts/ThemeContext"; +import Home from "./pages/Home"; +import Tutorial from "./pages/Tutorial"; +import Admin from "./pages/Admin"; + +function Router() { + // make sure to consider if you need authentication for certain routes + return ( + + + + + + {/* Final fallback route */} + + + ); +} + +// NOTE: About Theme +// - First choose a default theme according to your design style (dark or light bg), than change color palette in index.css +// to keep consistent foreground/background color across components +// - If you want to make theme switchable, pass `switchable` ThemeProvider and use `useTheme` hook + +function App() { + return ( + + + + + + + + + ); +} + +export default App;