refactor: remove Cargo.lock from .gitignore #400

This commit is contained in:
Prayag Prajapati committed 2024-09-28 19:00:47 +05:30
1 parent b8f2f9ae67
commit 1265e2281b
12 files changed
+7092 -3056

No files matched your search

+1 -1
View File
@@ -206,7 +206,7 @@ const Settings = () => {
<Tabs
orientation="vertical"
value={tabValue}
onChange={(e, newValue) => {
onChange={(_, newValue) => {
setSettingsTabValue(newValue);
}}
style={{
+5 -8
View File
@@ -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}
+1 -1
View File
@@ -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;
+11 -5
View File
@@ -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>