chore(deps): update to react 19

This commit is contained in:
Prayag Prajapati committed 2025-02-19 22:18:47 +05:30
1 parent 412e54fd82
commit 83c96cf65c
5 files changed
+1662 -1453

No files matched your search

+48 -50
View File
@@ -13,78 +13,76 @@
"tanstack-router-dev": "tsr watch"
},
"dependencies": {
"@dnd-kit/core": "^6.2.0",
"@dnd-kit/modifiers": "^8.0.0",
"@dnd-kit/sortable": "^9.0.0",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/modifiers": "^9.0.0",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@emotion/react": "^11.13.5",
"@emotion/styled": "^11.13.5",
"@fontsource-variable/jetbrains-mono": "^5.1.1",
"@fontsource-variable/noto-sans": "^5.1.0",
"@fontsource-variable/plus-jakarta-sans": "^5.1.0",
"@fontsource-variable/space-grotesk": "^5.1.0",
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@fontsource-variable/jetbrains-mono": "^5.1.2",
"@fontsource-variable/noto-sans": "^5.1.1",
"@fontsource-variable/plus-jakarta-sans": "^5.1.1",
"@fontsource-variable/space-grotesk": "^5.1.1",
"@jellyfin/sdk": "0.11.0",
"@million/lint": "^1.0.13",
"@mui/lab": "6.0.0-beta.17",
"@mui/material": "6.1.9",
"@million/lint": "^1.0.14",
"@mui/lab": "6.0.0-beta.28",
"@mui/material": "6.4.5",
"@popperjs/core": "^2.11.8",
"@react-spring/web": "^9.7.5",
"@tanem/react-nprogress": "^5.0.53",
"@tanstack/react-query": "^5.62.0",
"@tanstack/react-query-devtools": "^5.62.0",
"@tanstack/react-router": "^1.85.0",
"@tanstack/react-virtual": "^3.10.9",
"@tauri-apps/api": "2.1.1",
"@tauri-apps/plugin-clipboard-manager": "2.1.0-beta.6",
"@tauri-apps/plugin-dialog": "2.0.1",
"@tauri-apps/plugin-notification": "2.0.0",
"@tauri-apps/plugin-process": "2.0.0",
"@tanem/react-nprogress": "^5.0.55",
"@tanstack/react-query": "^5.66.7",
"@tanstack/react-query-devtools": "^5.66.7",
"@tanstack/react-router": "^1.106.0",
"@tanstack/react-virtual": "^3.13.0",
"@tauri-apps/api": "2.2.0",
"@tauri-apps/plugin-clipboard-manager": "2.2.1",
"@tauri-apps/plugin-dialog": "2.2.0",
"@tauri-apps/plugin-notification": "2.2.1",
"@tauri-apps/plugin-process": "2.2.0",
"@tauri-apps/plugin-store": "github:tauri-apps/tauri-plugin-store#v2",
"@tauri-apps/plugin-updater": "2.0.0",
"@tauri-apps/plugin-upload": "2.1.0",
"@types/node": "^22.10.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"axios": "^1.7.8",
"axios-tauri-api-adapter": "^2.0.3",
"@tauri-apps/plugin-updater": "2.5.0",
"@tauri-apps/plugin-upload": "2.2.1",
"@types/node": "^22.13.4",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"axios": "^1.7.9",
"axios-tauri-api-adapter": "^2.0.6",
"blurhash": "^2.0.5",
"framer-motion": "^11.12.0",
"framer-motion": "^12.4.5",
"immer": "^10.1.1",
"jassub": "^1.7.17",
"lodash": "^4.17.21",
"material-symbols": "^0.27.1",
"material-symbols": "^0.28.2",
"million": "^3.1.11",
"notistack": "^3.0.1",
"react": "18.3.1",
"notistack": "^3.0.2",
"react": "19.0.0",
"react-blurhash": "^0.3.0",
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "18.3.1",
"react-error-boundary": "^4.1.2",
"react-intersection-observer": "^9.13.1",
"react-markdown": "^9.0.1",
"react-dom": "19.0.0",
"react-error-boundary": "^5.0.0",
"react-intersection-observer": "^9.15.1",
"react-markdown": "^9.0.3",
"react-multi-carousel": "^2.8.5",
"react-player": "^2.16.0",
"react-popper": "^2.3.0",
"react-use-konami": "^1.1.0",
"remark-gfm": "^4.0.0",
"typescript": "^5.7.2",
"remark-gfm": "^4.0.1",
"typescript": "^5.7.3",
"vite-plugin-svgr": "^4.3.0",
"wavesurfer.js": "^7.8.10",
"zustand": "5.0.1"
"wavesurfer.js": "^7.9.1",
"zustand": "5.0.3"
},
"devDependencies": {
"@babel/plugin-proposal-optional-chaining-assign": "^7.25.9",
"@biomejs/biome": "^1.9.4",
"@tanstack/router-cli": "^1.84.4",
"@tanstack/router-devtools": "^1.85.0",
"@tanstack/router-vite-plugin": "^1.84.4",
"@tauri-apps/cli": "2.1.0",
"@types/lodash": "^4.17.13",
"@tanstack/router-cli": "^1.106.0",
"@tanstack/router-devtools": "^1.106.0",
"@tanstack/router-vite-plugin": "^1.106.0",
"@tauri-apps/cli": "2.2.7",
"@types/lodash": "^4.17.15",
"@vitejs/plugin-react": "^4.3.4",
"prop-types": "^15.8.1",
"sass": "^1.81.0",
"vite": "^6.0.2"
"sass": "^1.85.0",
"vite": "^6.1.1"
},
"license": "GPL-3.0-only"
}
+1566 -1353
View File
File diff suppressed because it is too large. Load diff
+43 -42
View File
@@ -1,51 +1,52 @@
import React, { useCallback, useMemo } from "react";
import { Dialog, Slide } from "@mui/material";
import { useKonamiEasterEgg } from "../../utils/misc/konami";
// import { useKonamiEasterEgg } from "../../utils/misc/konami";
export const EasterEgg = () => {
const [easterEgg, setEasterEgg] = useKonamiEasterEgg();
// const [easterEgg, setEasterEgg] = useKonamiEasterEgg();
// Memoize the onClose function
const handleClose = useCallback(() => {
setEasterEgg(false);
}, [setEasterEgg]);
// // Memoize the onClose function
// const handleClose = useCallback(() => {
// setEasterEgg(false);
// }, [setEasterEgg]);
// Memoize the sx object
const dialogSx = useMemo(
() => ({
background: "black",
}),
[],
);
// // Memoize the sx object
// const dialogSx = useMemo(
// () => ({
// background: "black",
// }),
// [],
// );
return (
<>
<Dialog open={easterEgg} onClose={handleClose} sx={dialogSx}>
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/dQw4w9WgXcQ?autoplay=1&disablekb=1"
title="EasterEgg"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
/>
</Dialog>
<Slide direction="up" in={easterEgg} mountOnEnter unmountOnExit>
<img
src="https://i.gifer.com/PYh.gif"
loading="lazy"
width={320}
height={320}
alt="nyan cat gif"
style={{
zIndex: "99999999",
position: "fixed",
bottom: 0,
left: 0,
objectFit: "cover",
}}
/>
</Slide>
</>
);
// return (
// <>
// <Dialog open={easterEgg} onClose={handleClose} sx={dialogSx}>
// <iframe
// width="560"
// height="315"
// src="https://www.youtube.com/embed/dQw4w9WgXcQ?autoplay=1&disablekb=1"
// title="EasterEgg"
// allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
// />
// </Dialog>
// <Slide direction="up" in={easterEgg} mountOnEnter unmountOnExit>
// <img
// src="https://i.gifer.com/PYh.gif"
// loading="lazy"
// width={320}
// height={320}
// alt="nyan cat gif"
// style={{
// zIndex: "99999999",
// position: "fixed",
// bottom: 0,
// left: 0,
// objectFit: "cover",
// }}
// />
// </Slide>
// </>
// );
return <></>;
};
+2
View File
@@ -24,6 +24,8 @@ const router = createRouter({
fetchCurrentUser: undefined!,
},
defaultPreload: "intent",
scrollRestoration: true,
scrollRestorationBehavior: "smooth",
});
// Register the router instance for type safety
+3 -8
View File
@@ -2,13 +2,9 @@ import { AppBar } from "@/components/appBar/appBar";
import NProgress from "@/components/nProgress";
import AudioPlayer from "@/components/playback/audioPlayer";
import Settings from "@/components/settings";
import { EasterEgg } from "@/components/utils/easterEgg";
// import { EasterEgg } from "@/components/utils/easterEgg";
import { CssBaseline, ThemeProvider } from "@mui/material";
import {
Outlet,
ScrollRestoration,
createRootRouteWithContext,
} from "@tanstack/react-router";
import { Outlet, createRootRouteWithContext } from "@tanstack/react-router";
import { SnackbarProvider } from "notistack";
import React from "react";
@@ -46,9 +42,8 @@ export const Route = createRootRouteWithContext<ApiContext>()({
<ThemeProvider theme={theme}>
<SnackbarProvider maxSnack={5}>
<CssBaseline />
<ScrollRestoration />
<Settings />
<EasterEgg />
{/* <EasterEgg /> */}
<NProgress />
<RouterLoading />