chore(deps); update and migrate to latest node and cargo packages
This commit is contained in:
100 files changed
+7417
-8802
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import type { Api } from "@jellyfin/sdk";
|
||||
import type { BaseItemDto } from "@jellyfin/sdk/lib/generated-client";
|
||||
import { getLyricsApi } from "@jellyfin/sdk/lib/utils/api/lyrics-api";
|
||||
import { getLyricApi } from "@jellyfin/sdk/lib/utils/api/lyric-api";
|
||||
import { Typography } from "@mui/material";
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import React, { useEffect, useRef, useState } from "react";
|
||||
@@ -22,7 +22,7 @@ const LyricsPanel = ({ item, api, currentTime }: LyricsPanelProps) => {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
const response = await getLyricsApi(api).getLyrics({
|
||||
const response = await getLyricApi(api).getLyrics({
|
||||
itemId: item?.Id,
|
||||
});
|
||||
return response.data;
|
||||
|
||||
@@ -50,13 +50,15 @@ const PlayerProgress = ({
|
||||
>
|
||||
<Typography
|
||||
variant="subtitle2"
|
||||
fontWeight={300}
|
||||
style={{
|
||||
opacity: 0.8,
|
||||
minWidth: "3.5em",
|
||||
textAlign: "right",
|
||||
fontVariantNumeric: "tabular-nums",
|
||||
}}
|
||||
sx={{
|
||||
fontWeight: 300,
|
||||
}}
|
||||
>
|
||||
{getRuntimeMusic(sliderValue)}
|
||||
</Typography>
|
||||
@@ -70,13 +72,15 @@ const PlayerProgress = ({
|
||||
/>
|
||||
<Typography
|
||||
variant="subtitle2"
|
||||
fontWeight={300}
|
||||
style={{
|
||||
opacity: 0.8,
|
||||
minWidth: "3.5em",
|
||||
textAlign: "left",
|
||||
fontVariantNumeric: "tabular-nums",
|
||||
}}
|
||||
sx={{
|
||||
fontWeight: 300,
|
||||
}}
|
||||
>
|
||||
{getRuntimeMusic(duration)}
|
||||
</Typography>
|
||||
|
||||
@@ -206,7 +206,12 @@ const QueuePanel = ({ queue, currentTrackIndex }: QueuePanelProps) => {
|
||||
px: 1,
|
||||
}}
|
||||
>
|
||||
<Typography variant="h6" fontWeight={700}>
|
||||
<Typography
|
||||
variant="h6"
|
||||
sx={{
|
||||
fontWeight: 700,
|
||||
}}
|
||||
>
|
||||
Queue
|
||||
</Typography>
|
||||
<Box sx={{ display: "flex", gap: 1 }}>
|
||||
|
||||
@@ -109,7 +109,12 @@ const StatsForNerds = ({ playerRef }: StatsForNerdsProps) => {
|
||||
marginBottom: "0.5em",
|
||||
}}
|
||||
>
|
||||
<Typography variant="subtitle2" fontWeight="bold">
|
||||
<Typography
|
||||
variant="subtitle2"
|
||||
sx={{
|
||||
fontWeight: "bold",
|
||||
}}
|
||||
>
|
||||
Stats for Nerds
|
||||
</Typography>
|
||||
<IconButton
|
||||
@@ -136,8 +141,7 @@ const StatsForNerds = ({ playerRef }: StatsForNerdsProps) => {
|
||||
<span>Video ID:</span> <span>{itemId}</span>
|
||||
<span>Media Source ID:</span> <span>{mediaSourceId}</span>
|
||||
<span>Play Session ID:</span> <span>{playsessionId}</span>
|
||||
<span>Playback Method:</span>{" "}
|
||||
<span>{mediaSource.playMethod}</span>
|
||||
<span>Playback Method:</span> <span>{mediaSource.playMethod}</span>
|
||||
<span>Container:</span> <span>{mediaSource.container}</span>
|
||||
<span>Video Codec:</span> <span>{mediaSource.videoCodec}</span>
|
||||
<span>Audio Codec:</span> <span>{mediaSource.audioCodec}</span>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TrickplayInfo } from "@jellyfin/sdk/lib/generated-client";
|
||||
import type { TrickplayInfoDto } from "@jellyfin/sdk/lib/generated-client";
|
||||
import { Slider, Tooltip, Typography } from "@mui/material";
|
||||
import type { Instance } from "@popperjs/core";
|
||||
import React, {
|
||||
@@ -143,7 +143,7 @@ const BubbleSlider = () => {
|
||||
return false;
|
||||
});
|
||||
|
||||
let trickplayResolution: TrickplayInfo | undefined;
|
||||
let trickplayResolution: TrickplayInfoDto | undefined;
|
||||
const trickplayResolutions = mediaSource.id
|
||||
? itemTrickplay?.[mediaSource.id]
|
||||
: null;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getPlaystateApi } from "@jellyfin/sdk/lib/utils/api/playstate-api";
|
||||
import { getSessionApi } from "@jellyfin/sdk/lib/utils/api/session-api";
|
||||
import { IconButton, Slider, Typography } from "@mui/material";
|
||||
import { WebviewWindow as appWindow } from "@tauri-apps/api/webviewWindow";
|
||||
import { AnimatePresence, motion } from "motion/react";
|
||||
@@ -156,7 +156,7 @@ const VideoPlayerControls = ({
|
||||
throw Error("API is not available, cannot report playback stopped.");
|
||||
}
|
||||
// Report Jellyfin server: Playback has ended/stopped
|
||||
getPlaystateApi(api).reportPlaybackStopped({
|
||||
getSessionApi(api).reportPlaybackStopped({
|
||||
playbackStopInfo: {
|
||||
Failed: false,
|
||||
ItemId: itemId,
|
||||
@@ -219,11 +219,23 @@ const VideoPlayerControls = ({
|
||||
</div>
|
||||
<div className="video-player-osd-info">
|
||||
<div>
|
||||
<Typography variant="h4" fontWeight={500} mb={2}>
|
||||
<Typography
|
||||
variant="h4"
|
||||
sx={{
|
||||
fontWeight: 500,
|
||||
mb: 2,
|
||||
}}
|
||||
>
|
||||
{String(itemName)}
|
||||
</Typography>
|
||||
{episodeTitle && (
|
||||
<Typography variant="h6" fontWeight={300} mt={1}>
|
||||
<Typography
|
||||
variant="h6"
|
||||
sx={{
|
||||
fontWeight: 300,
|
||||
mt: 1,
|
||||
}}
|
||||
>
|
||||
{String(episodeTitle)}
|
||||
</Typography>
|
||||
)}
|
||||
|
||||
@@ -145,7 +145,13 @@ const VideoPlayerSettingsMenu = ({
|
||||
))}
|
||||
</TextField>
|
||||
<MenuItem onClick={toggleShowStatsForNerds}>
|
||||
<Typography flexGrow={1}>Stats for Nerds</Typography>
|
||||
<Typography
|
||||
sx={{
|
||||
flexGrow: 1,
|
||||
}}
|
||||
>
|
||||
Stats for Nerds
|
||||
</Typography>
|
||||
<Switch checked={showStatsForNerds} />
|
||||
</MenuItem>
|
||||
</Popover>
|
||||
|
||||
@@ -158,8 +158,8 @@ const UpNextFlyout = () => {
|
||||
</Typography>
|
||||
<Typography
|
||||
variant="body2"
|
||||
color="text.secondary"
|
||||
sx={{
|
||||
color: "text.secondary",
|
||||
mb: 2,
|
||||
display: "-webkit-box",
|
||||
WebkitLineClamp: 1,
|
||||
|
||||
Reference in new issue
Block a user