refactor: migrate to react-player v3, fixing multiple instance of video player being created
This commit is contained in:
9 files changed
+1080
-2297
No files matched your search
+12
-11
@@ -1,12 +1,12 @@
|
||||
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 { CssBaseline, ThemeProvider } from "@mui/material";
|
||||
import { Outlet, createRootRouteWithContext } from "@tanstack/react-router";
|
||||
import { createRootRouteWithContext, Outlet } from "@tanstack/react-router";
|
||||
import { SnackbarProvider } from "notistack";
|
||||
import React from "react";
|
||||
import { AppBar } from "@/components/appBar/appBar";
|
||||
// import NProgress from "@/components/nProgress";
|
||||
import AudioPlayer from "@/components/playback/audioPlayer";
|
||||
import Settings from "@/components/settings";
|
||||
|
||||
import "../styles/global.scss";
|
||||
import { theme } from "@/theme";
|
||||
@@ -17,17 +17,18 @@ import "@fontsource-variable/noto-sans";
|
||||
import "@fontsource-variable/plus-jakarta-sans";
|
||||
|
||||
import "material-symbols/rounded.scss";
|
||||
import Backdrop from "@/components/backdrop";
|
||||
import { ErrorNotice } from "@/components/notices/errorNotice/errorNotice";
|
||||
import RouterLoading from "@/components/routerLoading";
|
||||
import Updater from "@/components/updater";
|
||||
import type { Api, Jellyfin } from "@jellyfin/sdk";
|
||||
import type { UserDto } from "@jellyfin/sdk/lib/generated-client";
|
||||
import type { QueryClient } from "@tanstack/react-query";
|
||||
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
|
||||
import { TanStackRouterDevtools } from "@tanstack/react-router-devtools";
|
||||
// import { TanStackRouterDevtools } from "@tanstack/react-router-devtools";
|
||||
import { DndProvider } from "react-dnd";
|
||||
import { HTML5Backend } from "react-dnd-html5-backend";
|
||||
import Backdrop from "@/components/backdrop";
|
||||
import { ErrorNotice } from "@/components/notices/errorNotice/errorNotice";
|
||||
import RouterLoading from "@/components/routerLoading";
|
||||
import Updater from "@/components/updater";
|
||||
import { EasterEgg } from "@/components/utils/easterEgg";
|
||||
|
||||
type ApiContext = {
|
||||
api: Api | undefined;
|
||||
@@ -46,7 +47,7 @@ export const Route = createRootRouteWithContext<ApiContext>()({
|
||||
<SnackbarProvider maxSnack={5}>
|
||||
<CssBaseline />
|
||||
<Settings />
|
||||
{/* <EasterEgg /> */}
|
||||
<EasterEgg />
|
||||
{/* <NProgress /> */}
|
||||
|
||||
<RouterLoading />
|
||||
|
||||
Reference in new issue
Block a user