From 272f74473a420777211250d6292b634bafd3e969 Mon Sep 17 00:00:00 2001 From: prayag17 Date: Sun, 2 Apr 2023 18:07:10 +0530 Subject: [PATCH] Start working on LibraryView #9 --- package-lock.json | 14 ++--- package.json | 2 +- src/App.jsx | 118 +++++++++++++++--------------------- src/routes/library/root.jsx | 9 +++ 4 files changed, 67 insertions(+), 76 deletions(-) create mode 100644 src/routes/library/root.jsx diff --git a/package-lock.json b/package-lock.json index f5c64f8..9fd1c9a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "@tanstack/react-query-devtools": "^4.28.0", "blurhash": "^2.0.5", "events": "^3.3.0", - "framer-motion": "^10.9.1", + "framer-motion": "^10.10.0", "localforage": "^1.10.0", "match-sorter": "^6.3.1", "notistack": "^3.0.1", @@ -2254,9 +2254,9 @@ } }, "node_modules/framer-motion": { - "version": "10.9.1", - "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-10.9.1.tgz", - "integrity": "sha512-fuCDRGKOu5n9gN2/R7O22mE+BHMGK5D57S3Oq8n2ITd4aYR7D22QM5I4VPD3CWahNt/lyDUs20u9Aw+6ah9oAQ==", + "version": "10.10.0", + "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-10.10.0.tgz", + "integrity": "sha512-eCsyOcJimIRbx9KOzBTO3j9u1rF/H8/o/ybizYqdrzHkEeHx9L2NcEfGWfV0OHTc1JV17ECVzuZpomupEJ4+dw==", "dependencies": { "tslib": "^2.4.0" }, @@ -4642,9 +4642,9 @@ } }, "framer-motion": { - "version": "10.9.1", - "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-10.9.1.tgz", - "integrity": "sha512-fuCDRGKOu5n9gN2/R7O22mE+BHMGK5D57S3Oq8n2ITd4aYR7D22QM5I4VPD3CWahNt/lyDUs20u9Aw+6ah9oAQ==", + "version": "10.10.0", + "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-10.10.0.tgz", + "integrity": "sha512-eCsyOcJimIRbx9KOzBTO3j9u1rF/H8/o/ybizYqdrzHkEeHx9L2NcEfGWfV0OHTc1JV17ECVzuZpomupEJ4+dw==", "requires": { "@emotion/is-prop-valid": "^0.8.2", "tslib": "^2.4.0" diff --git a/package.json b/package.json index a3d9e72..934b3f1 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "@tanstack/react-query-devtools": "^4.28.0", "blurhash": "^2.0.5", "events": "^3.3.0", - "framer-motion": "^10.9.1", + "framer-motion": "^10.10.0", "localforage": "^1.10.0", "match-sorter": "^6.3.1", "notistack": "^3.0.1", diff --git a/src/App.jsx b/src/App.jsx index e604665..3b34a47 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,12 +1,11 @@ /** @format */ -import React, { useState, Suspense } from "react"; +import React, { useState } from "react"; import { ThemeProvider } from "@mui/material/styles"; import { SnackbarProvider } from "notistack"; import { Routes, Route, - Navigate, useNavigate, useLocation, Outlet, @@ -45,8 +44,10 @@ import { LoginWithImage, UserLoginManual, } from "./routes/login/root"; +import LibraryView from "./routes/library/root.jsx"; import { SideMenu } from "./components/menu/sidemenu.jsx"; +import { AppBar } from "./components/appBar/appBar.jsx"; // Fonts import "@fontsource/open-sans"; @@ -57,7 +58,6 @@ import { version as appVer } from "../package.json"; import { v4 as uuidv4 } from "uuid"; import { delServer, getServer } from "./utils/storage/servers.js"; import { getUser } from "./utils/storage/user.js"; -import { AppBar } from "./components/appBar/appBar.jsx"; const jellyfin = new Jellyfin({ clientInfo: { @@ -308,74 +308,56 @@ function App() { - - - - } + - - }> - {/* Main Routes */} - } - /> - } - /> - } - /> - } - /> - } - /> - } - /> - } - /> + }> + {/* Main Routes */} + } + /> + } + /> + } + /> + } + /> + } + /> + } + /> + } + /> - {/* Logical Routes */} + {/* Logical Routes */} - } - /> - - } - /> - - - + } + /> + } + /> + + diff --git a/src/routes/library/root.jsx b/src/routes/library/root.jsx new file mode 100644 index 0000000..04184dc --- /dev/null +++ b/src/routes/library/root.jsx @@ -0,0 +1,9 @@ +/** @format */ +import { useParams } from "react-router-dom"; + +const LibraryView = () => { + const { id } = useParams(); + return

{id}

; +}; + +export default LibraryView;