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