* ❌ Updated .gitignore to ignore storybook static assets * 🏗️ Fixed cover-only config for CV detail panel * 🏗️ Added stats to dashboard * 🐯 Prowlarr integration WIP * 🐯 Prowlarr settings form scaffold * 🧲 Added a form for torrent search * 🐯 Mocked a prowlarr call
51 lines
1.8 KiB
TypeScript
51 lines
1.8 KiB
TypeScript
import React from "react";
|
|
import { render } from "react-dom";
|
|
import { createRoot } from "react-dom/client";
|
|
import App from "./components/App";
|
|
import { createBrowserRouter, RouterProvider } from "react-router-dom";
|
|
import Settings from "./components/Settings/Settings";
|
|
import { ErrorPage } from "./components/shared/ErrorPage";
|
|
const rootEl = document.getElementById("root");
|
|
const root = createRoot(rootEl);
|
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
import Import from "./components/Import/Import";
|
|
import Dashboard from "./components/Dashboard/Dashboard";
|
|
import Search from "./components/Search/Search";
|
|
import TabulatedContentContainer from "./components/Library/TabulatedContentContainer";
|
|
import { ComicDetailContainer } from "./components/ComicDetail/ComicDetailContainer";
|
|
import Volumes from "./components/Volumes/Volumes";
|
|
import WantedComics from "./components/WantedComics/WantedComics";
|
|
|
|
const queryClient = new QueryClient();
|
|
|
|
const router = createBrowserRouter([
|
|
{
|
|
path: "/",
|
|
element: <App />,
|
|
errorElement: <ErrorPage />,
|
|
children: [
|
|
{ path: "/", element: <Dashboard /> },
|
|
{ path: "dashboard", element: <Dashboard /> },
|
|
{ path: "settings", element: <Settings /> },
|
|
{
|
|
path: "library",
|
|
element: <TabulatedContentContainer category="library" />,
|
|
},
|
|
{
|
|
path: "comic/details/:comicObjectId",
|
|
element: <ComicDetailContainer />,
|
|
},
|
|
{ path: "import", element: <Import path={"./comics"} /> },
|
|
{ path: "search", element: <Search /> },
|
|
{ path: "volumes", element: <Volumes /> },
|
|
{ path: "wanted", element: <WantedComics /> },
|
|
],
|
|
},
|
|
]);
|
|
|
|
root.render(
|
|
<QueryClientProvider client={queryClient}>
|
|
<RouterProvider router={router} />
|
|
</QueryClientProvider>,
|
|
);
|