diff --git a/src-tauri/capabilities/main.json b/src-tauri/capabilities/main.json index 5cade4f..9c1089a 100644 --- a/src-tauri/capabilities/main.json +++ b/src-tauri/capabilities/main.json @@ -18,6 +18,7 @@ "notification:default", "core:webview:allow-internal-toggle-devtools", "core:window:allow-start-dragging", + "core:window:allow-start-resize-dragging", "core:window:allow-minimize", "core:window:allow-maximize", "core:window:allow-unmaximize", diff --git a/src-tauri/gen/schemas/capabilities.json b/src-tauri/gen/schemas/capabilities.json index b39b89a..255252f 100644 --- a/src-tauri/gen/schemas/capabilities.json +++ b/src-tauri/gen/schemas/capabilities.json @@ -1 +1 @@ -{"desktop-capability":{"identifier":"desktop-capability","description":"","local":true,"windows":["main"],"permissions":["window-state:default","global-shortcut:default","global-shortcut:allow-is-registered","global-shortcut:allow-register","global-shortcut:allow-unregister","shell:default"],"platforms":["macOS","windows","linux"]},"main-capabilities":{"identifier":"main-capabilities","description":"Capability for desktop window","local":true,"windows":["main"],"permissions":["store:allow-get","store:allow-set","store:allow-save","store:allow-clear","store:allow-delete","store:allow-keys","store:allow-load","updater:allow-check","updater:allow-download-and-install","updater:allow-download","updater:allow-install","notification:default","core:webview:allow-internal-toggle-devtools","core:window:allow-start-dragging","core:window:allow-minimize","core:window:allow-maximize","core:window:allow-unmaximize","core:window:allow-toggle-maximize","core:window:allow-close","core:window:allow-is-maximized","dialog:default","upload:allow-download","clipboard-manager:allow-write-text","shell:default","shell:allow-open"]},"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["core:path:default","core:event:default","core:window:default","core:app:default","core:resources:default","core:menu:default","core:tray:default","core:window:allow-set-fullscreen","shell:default"]}} \ No newline at end of file +{"desktop-capability":{"identifier":"desktop-capability","description":"","local":true,"windows":["main"],"permissions":["window-state:default","global-shortcut:default","global-shortcut:allow-is-registered","global-shortcut:allow-register","global-shortcut:allow-unregister","shell:default"],"platforms":["macOS","windows","linux"]},"main-capabilities":{"identifier":"main-capabilities","description":"Capability for desktop window","local":true,"windows":["main"],"permissions":["store:allow-get","store:allow-set","store:allow-save","store:allow-clear","store:allow-delete","store:allow-keys","store:allow-load","updater:allow-check","updater:allow-download-and-install","updater:allow-download","updater:allow-install","notification:default","core:webview:allow-internal-toggle-devtools","core:window:allow-start-dragging","core:window:allow-start-resize-dragging","core:window:allow-minimize","core:window:allow-maximize","core:window:allow-unmaximize","core:window:allow-toggle-maximize","core:window:allow-close","core:window:allow-is-maximized","dialog:default","upload:allow-download","clipboard-manager:allow-write-text","shell:default","shell:allow-open"]},"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["core:path:default","core:event:default","core:window:default","core:app:default","core:resources:default","core:menu:default","core:tray:default","core:window:allow-set-fullscreen","shell:default"]}} \ No newline at end of file diff --git a/src/components/card/card.tsx b/src/components/card/card.tsx index acf9121..874684b 100644 --- a/src/components/card/card.tsx +++ b/src/components/card/card.tsx @@ -6,7 +6,7 @@ import { type ImageType, } from "@jellyfin/sdk/lib/generated-client"; import { useNavigate } from "@tanstack/react-router"; -import React, { memo, type Ref, useCallback, useState } from "react"; +import React, { memo, type Ref, useCallback } from "react"; import { ErrorBoundary } from "react-error-boundary"; import { useInView } from "react-intersection-observer"; import getImageUrlsApi from "@/utils/methods/getImageUrlsApi"; @@ -110,6 +110,7 @@ const CardContent = ({ {image && ( {item.Name {imageUrl ? ( - + ) : (
diff --git a/src/components/carouselSlide/index.tsx b/src/components/carouselSlide/index.tsx index f9cc708..efa0d6c 100644 --- a/src/components/carouselSlide/index.tsx +++ b/src/components/carouselSlide/index.tsx @@ -102,6 +102,7 @@ const CarouselSlide = ({ item }: { item: BaseItemDto }) => { className={`hero-carousel-background-image${heroArtwork.isPortrait ? " is-poster" : ""}`} src={heroArtwork.url} loading="eager" + decoding="async" /> ) : (
diff --git a/src/components/listItemLink/index.tsx b/src/components/listItemLink/index.tsx index be2f5dd..706ccbf 100644 --- a/src/components/listItemLink/index.tsx +++ b/src/components/listItemLink/index.tsx @@ -4,7 +4,7 @@ import { type ListItemProps, ListItemText, } from "@mui/material"; -import { createLink, Link } from "@tanstack/react-router"; +import { createLink } from "@tanstack/react-router"; import React, { forwardRef, type ReactNode } from "react"; interface MUIListItemLinkProps extends ListItemProps<"a"> { diff --git a/src/components/nProgress/index.tsx b/src/components/nProgress/index.tsx index a4ac740..6b3a1d7 100644 --- a/src/components/nProgress/index.tsx +++ b/src/components/nProgress/index.tsx @@ -3,7 +3,6 @@ import { useNProgress } from "@tanem/react-nprogress"; import { useIsFetching, useIsMutating } from "@tanstack/react-query"; import { useRouterState } from "@tanstack/react-router"; import React, { useMemo } from "react"; -import { createPortal } from "react-dom"; export default function NProgress() { const isQueryFetching = useIsFetching(); diff --git a/src/components/playback/videoPlayer/bubbleSlider/index.tsx b/src/components/playback/videoPlayer/bubbleSlider/index.tsx index d6a6e17..60f7642 100644 --- a/src/components/playback/videoPlayer/bubbleSlider/index.tsx +++ b/src/components/playback/videoPlayer/bubbleSlider/index.tsx @@ -195,9 +195,6 @@ const BubbleSlider = () => { }; const imgUrlParams = new URLSearchParams(imgUrlParamsObject).toString(); - const _imageAspectRatio = - trickplayResolution.Width / trickplayResolution.Height; - trickplayStyle = { backgroundImage: `url(${api?.basePath}/Videos/${itemId}/Trickplay/${trickplayResolution.Width}/${index}.jpg?${imgUrlParams})`, backgroundPositionX: `${backgroundOffsetX}px`, diff --git a/src/components/playback/videoPlayer/buttons/SkipSegmentButton.tsx b/src/components/playback/videoPlayer/buttons/SkipSegmentButton.tsx index 1a54b91..22531b7 100644 --- a/src/components/playback/videoPlayer/buttons/SkipSegmentButton.tsx +++ b/src/components/playback/videoPlayer/buttons/SkipSegmentButton.tsx @@ -1,4 +1,4 @@ -import { Box, Button } from "@mui/material"; +import { Button } from "@mui/material"; import { AnimatePresence, motion } from "motion/react"; import React from "react"; import { useShallow } from "zustand/shallow"; diff --git a/src/components/skeleton/libraryItems.tsx b/src/components/skeleton/libraryItems.tsx index a529784..a4455ff 100644 --- a/src/components/skeleton/libraryItems.tsx +++ b/src/components/skeleton/libraryItems.tsx @@ -13,7 +13,7 @@ const LibraryItemsSkeleton = () => { justifyContent: "center", }} > - {Array.from(new Array(18)).map((item, index) => ( + {Array.from(new Array(18)).map((_, index) => ( = [ + { className: "n", direction: "North" }, + { className: "s", direction: "South" }, + { className: "e", direction: "East" }, + { className: "w", direction: "West" }, + { className: "ne", direction: "NorthEast" }, + { className: "nw", direction: "NorthWest" }, + { className: "se", direction: "SouthEast" }, + { className: "sw", direction: "SouthWest" }, +]; + +/** + * Edge/corner resize handles for the frameless Windows/Linux window. Native + * decorations are removed there, so the OS no longer gives us resize borders. + */ +const WindowResizeHandles = () => { + if (isMac) return null; + + return ( +