refactor: remove Cargo.lock from .gitignore #400
This commit is contained in:
12 files changed
+7092
-3056
No files matched your search
@@ -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