mirror of
https://github.com/SamyRai/tercul-frontend.git
synced 2025-12-27 04:51:34 +00:00
Replaces NewWorkReading with SimpleWorkReading, offering an enhanced user experience for reading works and translations. Replit-Commit-Author: Agent Replit-Commit-Session-Id: cbacfb18-842a-4116-a907-18c0105ad8ec Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/39b5c689-6e8a-4d5a-9792-69cc81a56534/1f76b9e3-7e1d-40a8-9d9d-b6b05841a7de.jpg
54 lines
2.0 KiB
TypeScript
54 lines
2.0 KiB
TypeScript
import { Switch, Route } from "wouter";
|
|
import { queryClient } from "./lib/queryClient";
|
|
import { QueryClientProvider } from "@tanstack/react-query";
|
|
import { Toaster } from "@/components/ui/toaster";
|
|
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
import NotFound from "@/pages/not-found";
|
|
import Home from "@/pages/Home";
|
|
import Explore from "@/pages/Explore";
|
|
import Search from "@/pages/Search";
|
|
import AuthorProfile from "@/pages/authors/AuthorProfile";
|
|
import Authors from "@/pages/authors/Authors";
|
|
import SimpleWorkReading from "@/pages/works/SimpleWorkReading";
|
|
import WorkCompare from "@/pages/works/WorkCompare";
|
|
import Collections from "@/pages/collections/Collections";
|
|
import CreateCollection from "@/pages/collections/CreateCollection";
|
|
import Profile from "@/pages/user/Profile";
|
|
import Submit from "@/pages/Submit";
|
|
import { BlogList, BlogDetail, BlogCreate } from "@/pages/blog";
|
|
|
|
function Router() {
|
|
return (
|
|
<Switch>
|
|
<Route path="/" component={Home} />
|
|
<Route path="/explore" component={Explore} />
|
|
<Route path="/search" component={Search} />
|
|
<Route path="/authors" component={Authors} />
|
|
<Route path="/authors/:slug" component={AuthorProfile} />
|
|
<Route path="/works/:slug" component={SimpleWorkReading} />
|
|
<Route path="/works/:slug/compare/:translationId" component={WorkCompare} />
|
|
<Route path="/collections" component={Collections} />
|
|
<Route path="/collections/create" component={CreateCollection} />
|
|
<Route path="/profile" component={Profile} />
|
|
<Route path="/submit" component={Submit} />
|
|
<Route path="/blog" component={BlogList} />
|
|
<Route path="/blog/create" component={BlogCreate} />
|
|
<Route path="/blog/:slug" component={BlogDetail} />
|
|
<Route component={NotFound} />
|
|
</Switch>
|
|
);
|
|
}
|
|
|
|
function App() {
|
|
return (
|
|
<QueryClientProvider client={queryClient}>
|
|
<TooltipProvider>
|
|
<Toaster />
|
|
<Router />
|
|
</TooltipProvider>
|
|
</QueryClientProvider>
|
|
);
|
|
}
|
|
|
|
export default App;
|