refactor: remove Cargo.lock from .gitignore #400
This commit is contained in:
12 files changed
+7092
-3056
No files matched your search
@@ -206,7 +206,7 @@ const Settings = () => {
|
||||
<Tabs
|
||||
orientation="vertical"
|
||||
value={tabValue}
|
||||
onChange={(e, newValue) => {
|
||||
onChange={(_, newValue) => {
|
||||
setSettingsTabValue(newValue);
|
||||
}}
|
||||
style={{
|
||||
|
||||
+5
-8
@@ -1,8 +1,4 @@
|
||||
import {
|
||||
QueryClient,
|
||||
QueryClientProvider,
|
||||
useQuery,
|
||||
} from "@tanstack/react-query";
|
||||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
||||
import { RouterProvider, createRouter } from "@tanstack/react-router";
|
||||
import React, { Suspense } from "react";
|
||||
import ReactDOM from "react-dom/client";
|
||||
@@ -37,10 +33,9 @@ declare module "@tanstack/react-router" {
|
||||
}
|
||||
}
|
||||
|
||||
import { ApiProvider, useApiInContext } from "./utils/store/api";
|
||||
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||
import { ErrorBoundary } from "react-error-boundary";
|
||||
import { ErrorNotice } from "./components/notices/errorNotice/errorNotice";
|
||||
import { ApiProvider, useApiInContext } from "./utils/store/api";
|
||||
import { CentralProvider, useCentralStore } from "./utils/store/central";
|
||||
|
||||
export const queryClient = new QueryClient({
|
||||
@@ -64,7 +59,9 @@ function ProviderWrapper() {
|
||||
s.currentUser,
|
||||
s.fetchCurrentUser,
|
||||
]);
|
||||
if (api?.accessToken) fetchCurrentUser(api);
|
||||
if (api?.accessToken && !user?.Id) {
|
||||
fetchCurrentUser(api);
|
||||
}
|
||||
return (
|
||||
<RouterProvider
|
||||
router={router}
|
||||
|
||||
@@ -43,12 +43,12 @@ import "@fontsource-variable/jetbrains-mono";
|
||||
import "@fontsource-variable/noto-sans";
|
||||
|
||||
import "material-symbols/rounded.scss";
|
||||
import { ErrorNotice } from "@/components/notices/errorNotice/errorNotice";
|
||||
import type { Api, Jellyfin } from "@jellyfin/sdk";
|
||||
import type { UserDto } from "@jellyfin/sdk/lib/generated-client";
|
||||
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
|
||||
import { DndProvider } from "react-dnd";
|
||||
import { HTML5Backend } from "react-dnd-html5-backend";
|
||||
import { ErrorNotice } from "@/components/notices/errorNotice/errorNotice";
|
||||
|
||||
type ApiContext = {
|
||||
api: Api;
|
||||
|
||||
@@ -126,9 +126,11 @@ function AudioPlayerRoute() {
|
||||
Array.isArray(newVal)
|
||||
? setProgress(ticksToSec(newVal[0]))
|
||||
: setProgress(ticksToSec(newVal));
|
||||
audioPlayer?.currentTime = Array.isArray(newVal)
|
||||
? ticksToSec(newVal[0])
|
||||
: ticksToSec(newVal);
|
||||
if (audioPlayer) {
|
||||
audioPlayer.currentTime = Array.isArray(newVal)
|
||||
? ticksToSec(newVal[0])
|
||||
: ticksToSec(newVal);
|
||||
}
|
||||
}}
|
||||
sx={{
|
||||
"& .MuiSlider-thumb": {
|
||||
@@ -167,7 +169,9 @@ function AudioPlayerRoute() {
|
||||
<PlayPreviousButton />
|
||||
<IconButton
|
||||
onClick={() => {
|
||||
audioPlayer?.currentTime -= SEEK_AMOUNT;
|
||||
if (audioPlayer) {
|
||||
audioPlayer.currentTime -= SEEK_AMOUNT;
|
||||
}
|
||||
}}
|
||||
>
|
||||
<span className="material-symbols-rounded">fast_rewind</span>
|
||||
@@ -193,7 +197,9 @@ function AudioPlayerRoute() {
|
||||
</Fab>
|
||||
<IconButton
|
||||
onClick={() => {
|
||||
audioPlayer?.currentTime += SEEK_AMOUNT;
|
||||
if (audioPlayer) {
|
||||
audioPlayer.currentTime += SEEK_AMOUNT;
|
||||
}
|
||||
}}
|
||||
>
|
||||
<span className="material-symbols-rounded">fast_forward</span>
|
||||
|
||||
Reference in new issue
Block a user