Update icons
This commit is contained in:
18 files changed
+273
-121
No files matched your search
+12
-1
@@ -209,7 +209,18 @@ function App() {
|
|||||||
|
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
if (!initialRoute) {
|
if (!initialRoute) {
|
||||||
return <>Loading...</>;
|
return (
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
position: "fixed",
|
||||||
|
top: "50%",
|
||||||
|
left: "50%",
|
||||||
|
transform: "translate(-50%, -50%)",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<CircularProgress size={72} thickness={1.4} />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
} else if (initialRoute) {
|
} else if (initialRoute) {
|
||||||
return (
|
return (
|
||||||
<SnackbarProvider maxSnack={5}>
|
<SnackbarProvider maxSnack={5}>
|
||||||
|
|||||||
@@ -50,12 +50,11 @@ export const AppBar = () => {
|
|||||||
let usr = await getUserApi(api).getCurrentUser();
|
let usr = await getUserApi(api).getCurrentUser();
|
||||||
return usr.data;
|
return usr.data;
|
||||||
},
|
},
|
||||||
enabled: display && Boolean(api),
|
enabled: display,
|
||||||
networkMode: "always",
|
networkMode: "always",
|
||||||
});
|
});
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (user.isError) {
|
if (user.isError) {
|
||||||
console.log(api);
|
|
||||||
console.error(user.error);
|
console.error(user.error);
|
||||||
}
|
}
|
||||||
}, [user]);
|
}, [user]);
|
||||||
@@ -146,7 +145,9 @@ export const AppBar = () => {
|
|||||||
aria-label="open drawer"
|
aria-label="open drawer"
|
||||||
onClick={handleDrawerOpen}
|
onClick={handleDrawerOpen}
|
||||||
>
|
>
|
||||||
<MdiMenu />
|
<div className="material-symbols-rounded">
|
||||||
|
menu
|
||||||
|
</div>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<IconButton
|
<IconButton
|
||||||
onClick={() => navigate(-1)}
|
onClick={() => navigate(-1)}
|
||||||
@@ -159,15 +160,21 @@ export const AppBar = () => {
|
|||||||
ml: 2,
|
ml: 2,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<MdiArrowLeft />
|
<div className="material-symbols-rounded">
|
||||||
|
arrow_back
|
||||||
|
</div>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: "flex", gap: "1.2em" }}>
|
<div style={{ display: "flex", gap: "1.2em" }}>
|
||||||
<IconButton onClick={() => navigate("/search")}>
|
<IconButton onClick={() => navigate("/search")}>
|
||||||
<MdiMagnify />
|
<div className="material-symbols-rounded">
|
||||||
|
search
|
||||||
|
</div>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<IconButton onClick={() => navigate("/favorite")}>
|
<IconButton onClick={() => navigate("/favorite")}>
|
||||||
<MdiHeartOutline />
|
<div className="material-symbols-rounded">
|
||||||
|
favorite
|
||||||
|
</div>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<IconButton
|
<IconButton
|
||||||
sx={{ p: 0 }}
|
sx={{ p: 0 }}
|
||||||
@@ -209,7 +216,9 @@ export const AppBar = () => {
|
|||||||
disabled
|
disabled
|
||||||
>
|
>
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<MdiCog />
|
<div className="material-symbols-rounded">
|
||||||
|
settings
|
||||||
|
</div>
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
Settings
|
Settings
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
@@ -218,13 +227,17 @@ export const AppBar = () => {
|
|||||||
disabled
|
disabled
|
||||||
>
|
>
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<MdiInformation />
|
<div className="material-symbols-rounded">
|
||||||
|
info
|
||||||
|
</div>
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
About
|
About
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem onClick={handleLogout}>
|
<MenuItem onClick={handleLogout}>
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<MdiLogoutVariant />
|
<div className="material-symbols-rounded">
|
||||||
|
logout
|
||||||
|
</div>
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
Logout
|
Logout
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
@@ -236,7 +249,9 @@ export const AppBar = () => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<MdiDelete />
|
<div className="material-symbols-rounded appBar-icon">
|
||||||
|
delete
|
||||||
|
</div>
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
Remove Server
|
Remove Server
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
|||||||
@@ -95,11 +95,24 @@ const LikeButton = ({
|
|||||||
opacity: mutation.isPending ? 0.5 : 1,
|
opacity: mutation.isPending ? 0.5 : 1,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{isFavorite ? (
|
<div
|
||||||
<MdiHeart sx={{ color: pink[700] }} />
|
className="material-symbols-rounded"
|
||||||
) : (
|
style={
|
||||||
<MdiHeartOutline sx={{ color: color }} />
|
isFavorite
|
||||||
)}
|
? {
|
||||||
|
fontVariationSettings:
|
||||||
|
'"FILL" 1, "wght" 300, "GRAD" 25, "opsz" 40',
|
||||||
|
color: pink[700],
|
||||||
|
}
|
||||||
|
: {
|
||||||
|
fontVariationSettings:
|
||||||
|
'"FILL" 0, "wght" 300, "GRAD" 25, "opsz" 40',
|
||||||
|
color: "white",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
>
|
||||||
|
favorite
|
||||||
|
</div>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -87,11 +87,14 @@ const MarkPlayedButton = ({ itemId, isPlayed, queryKey, userId, itemName }) => {
|
|||||||
opacity: mutation.isPending ? 0.5 : 1,
|
opacity: mutation.isPending ? 0.5 : 1,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<MdiCheck
|
<div
|
||||||
sx={{
|
className="material-symbols-rounded"
|
||||||
|
style={{
|
||||||
color: isPlayed ? green[400] : "white",
|
color: isPlayed ? green[400] : "white",
|
||||||
}}
|
}}
|
||||||
/>
|
>
|
||||||
|
done
|
||||||
|
</div>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -7,8 +7,6 @@ import Fab from "@mui/material/Fab";
|
|||||||
import LinearProgress from "@mui/material/LinearProgress";
|
import LinearProgress from "@mui/material/LinearProgress";
|
||||||
import Typography from "@mui/material/Typography";
|
import Typography from "@mui/material/Typography";
|
||||||
|
|
||||||
import { MdiPlayOutline } from "../icons/mdiPlayOutline";
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
usePlaybackDataLoadStore,
|
usePlaybackDataLoadStore,
|
||||||
usePlaybackStore,
|
usePlaybackStore,
|
||||||
@@ -330,7 +328,14 @@ const PlayButton = ({
|
|||||||
size={size}
|
size={size}
|
||||||
{...buttonProps}
|
{...buttonProps}
|
||||||
>
|
>
|
||||||
<MdiPlayOutline {...iconProps} />
|
<div
|
||||||
|
className="material-symbols-rounded em-4"
|
||||||
|
style={{
|
||||||
|
fontSize: "3em",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
play_arrow
|
||||||
|
</div>
|
||||||
</Fab>
|
</Fab>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
@@ -339,7 +344,16 @@ const PlayButton = ({
|
|||||||
className={className}
|
className={className}
|
||||||
variant="contained"
|
variant="contained"
|
||||||
onClick={handleClick}
|
onClick={handleClick}
|
||||||
startIcon={<MdiPlayOutline />}
|
startIcon={
|
||||||
|
<div
|
||||||
|
className="material-symbols-rounded"
|
||||||
|
style={{
|
||||||
|
fontSize: "2em",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
play_arrow
|
||||||
|
</div>
|
||||||
|
}
|
||||||
{...buttonProps}
|
{...buttonProps}
|
||||||
sx={{
|
sx={{
|
||||||
position: "relative",
|
position: "relative",
|
||||||
|
|||||||
@@ -74,7 +74,9 @@ export const ActorCard = ({
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<div className="card-image-icon-container">
|
<div className="card-image-icon-container">
|
||||||
<MdiAccountTie className="card-image-icon" />
|
<div className="material-symbols-rounded">
|
||||||
|
person
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<img
|
<img
|
||||||
src={api.getItemImageUrl(
|
src={api.getItemImageUrl(
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import LinearProgress from "@mui/material/LinearProgress";
|
|||||||
|
|
||||||
import { Blurhash } from "react-blurhash";
|
import { Blurhash } from "react-blurhash";
|
||||||
|
|
||||||
import { TypeIconCollectionCard } from "../utils/iconsCollection";
|
import { getTypeIcon } from "../utils/iconsCollection";
|
||||||
import "./card.module.scss";
|
import "./card.module.scss";
|
||||||
import { MdiCheck } from "../icons/mdiCheck";
|
import { MdiCheck } from "../icons/mdiCheck";
|
||||||
|
|
||||||
@@ -114,7 +114,9 @@ export const Card = ({
|
|||||||
: 0,
|
: 0,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<MdiCheck />
|
<div className="material-symbols-rounded">
|
||||||
|
done
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className={`card-indicator text`}
|
className={`card-indicator text`}
|
||||||
@@ -150,8 +152,8 @@ export const Card = ({
|
|||||||
)}
|
)}
|
||||||
<div className="card-image-icon-container">
|
<div className="card-image-icon-container">
|
||||||
{overrideIcon
|
{overrideIcon
|
||||||
? TypeIconCollectionCard[overrideIcon]
|
? getTypeIcon(overrideIcon)
|
||||||
: TypeIconCollectionCard[item.Type]}
|
: getTypeIcon(item.Type)}
|
||||||
</div>
|
</div>
|
||||||
<img
|
<img
|
||||||
src={
|
src={
|
||||||
|
|||||||
@@ -32,21 +32,24 @@
|
|||||||
z-index: 0;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
&-icon {
|
&-icon {
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
left: 50%;
|
|
||||||
transform: translate(-50%, -50%);
|
|
||||||
font-size: 5.4em !important;
|
font-size: 5.4em !important;
|
||||||
fill: url(#clr-gradient-default) !important;
|
fill: url(#clr-gradient-default) !important;
|
||||||
color: transparent;
|
|
||||||
&-container {
|
&-container {
|
||||||
background: $clr-gradient-dark;
|
background: rgb(255 255 255 / 0.1);
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
.material-symbols-rounded {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
color: rgb(255 255 255 / 0.5);
|
||||||
|
font-size: 4em !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&-blurhash {
|
&-blurhash {
|
||||||
|
|||||||
@@ -76,7 +76,9 @@ export const EpisodeCard = ({
|
|||||||
: 0,
|
: 0,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<MdiCheck />
|
<div className="material-symbols-rounded">
|
||||||
|
done
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{!!imageBlurhash && (
|
{!!imageBlurhash && (
|
||||||
@@ -90,7 +92,9 @@ export const EpisodeCard = ({
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<div className="card-image-icon-container">
|
<div className="card-image-icon-container">
|
||||||
<MdiTelevisionClassic className="card-image-icon" />
|
<div className="material-symbols-rounded">
|
||||||
|
tv_gen
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<img
|
<img
|
||||||
src={api.getItemImageUrl(
|
src={api.getItemImageUrl(
|
||||||
|
|||||||
@@ -77,13 +77,17 @@ export const CardScroller = ({
|
|||||||
className="card-scroller-button"
|
className="card-scroller-button"
|
||||||
onClick={() => carouselRef.previous()}
|
onClick={() => carouselRef.previous()}
|
||||||
>
|
>
|
||||||
<MdiChevronLeft />
|
<div className="material-symbols-rounded">
|
||||||
|
chevron_left
|
||||||
|
</div>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<IconButton
|
<IconButton
|
||||||
className="card-scroller-button"
|
className="card-scroller-button"
|
||||||
onClick={() => carouselRef.next()}
|
onClick={() => carouselRef.next()}
|
||||||
>
|
>
|
||||||
<MdiChevronRight />
|
<div className="material-symbols-rounded">
|
||||||
|
chevron_right
|
||||||
|
</div>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</ButtonGroup>
|
</ButtonGroup>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import CarouselSlideError from "../errors/carousel";
|
|||||||
import { MdiStar } from "../icons/mdiStar";
|
import { MdiStar } from "../icons/mdiStar";
|
||||||
import { endsAt, getRuntime } from "../../utils/date/time";
|
import { endsAt, getRuntime } from "../../utils/date/time";
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
import { MediaTypeIconCollection } from "../utils/iconsCollection";
|
import { MediaTypeIconCollection, getTypeIcon } from "../utils/iconsCollection";
|
||||||
import { MdiChevronRight } from "../icons/mdiChevronRight";
|
import { MdiChevronRight } from "../icons/mdiChevronRight";
|
||||||
import { useQuery } from "@tanstack/react-query";
|
import { useQuery } from "@tanstack/react-query";
|
||||||
|
|
||||||
@@ -123,7 +123,7 @@ const CarouselSlide = ({ item }) => {
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<div className="hero-carousel-background-icon-container">
|
<div className="hero-carousel-background-icon-container">
|
||||||
{MediaTypeIconCollection[item.Type]}
|
{getTypeIcon(item.Type)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<motion.div
|
<motion.div
|
||||||
@@ -264,7 +264,6 @@ const CarouselSlide = ({ item }) => {
|
|||||||
{item.Overview}
|
{item.Overview}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
{/* TODO Link PLay and More info buttons in carousel */}
|
|
||||||
<Stack
|
<Stack
|
||||||
mt={3}
|
mt={3}
|
||||||
direction="row"
|
direction="row"
|
||||||
@@ -300,7 +299,16 @@ const CarouselSlide = ({ item }) => {
|
|||||||
size="large"
|
size="large"
|
||||||
color="white"
|
color="white"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
endIcon={<MdiChevronRight />}
|
endIcon={
|
||||||
|
<div
|
||||||
|
className="material-symbols-rounded"
|
||||||
|
style={{
|
||||||
|
fontSize: "2em",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
chevron_right
|
||||||
|
</div>
|
||||||
|
}
|
||||||
onClick={handleMoreInfo}
|
onClick={handleMoreInfo}
|
||||||
>
|
>
|
||||||
More info
|
More info
|
||||||
@@ -328,4 +336,4 @@ const CarouselSlide = ({ item }) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default memo(CarouselSlide);
|
export default CarouselSlide;
|
||||||
@@ -25,7 +25,10 @@ import Typography from "@mui/material/Typography";
|
|||||||
import { MdiClose } from "../icons/mdiClose";
|
import { MdiClose } from "../icons/mdiClose";
|
||||||
import { MdiLogoutVariant } from "../icons/mdiLogoutVariant";
|
import { MdiLogoutVariant } from "../icons/mdiLogoutVariant";
|
||||||
|
|
||||||
import { MediaCollectionTypeIconCollection } from "../../components/utils/iconsCollection.jsx";
|
import {
|
||||||
|
MediaCollectionTypeIconCollection,
|
||||||
|
getTypeIcon,
|
||||||
|
} from "../../components/utils/iconsCollection.jsx";
|
||||||
|
|
||||||
import { MdiHomeVariantOutline } from "../icons/mdiHomeVariantOutline";
|
import { MdiHomeVariantOutline } from "../icons/mdiHomeVariantOutline";
|
||||||
|
|
||||||
@@ -151,7 +154,7 @@ export const SideMenu = () => {
|
|||||||
className="sidemenu-item small"
|
className="sidemenu-item small"
|
||||||
>
|
>
|
||||||
<div className="sidemenu-item-icon">
|
<div className="sidemenu-item-icon">
|
||||||
<MdiHomeVariantOutline />
|
{getTypeIcon("Home")}
|
||||||
</div>
|
</div>
|
||||||
<Typography
|
<Typography
|
||||||
className="sidemenu-item-text"
|
className="sidemenu-item-text"
|
||||||
@@ -182,12 +185,9 @@ export const SideMenu = () => {
|
|||||||
className="sidemenu-item"
|
className="sidemenu-item"
|
||||||
>
|
>
|
||||||
<div className="sidemenu-item-icon">
|
<div className="sidemenu-item-icon">
|
||||||
{
|
{getTypeIcon(
|
||||||
MediaCollectionTypeIconCollection[
|
lib.CollectionType,
|
||||||
lib
|
)}
|
||||||
.CollectionType
|
|
||||||
]
|
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
<Typography
|
<Typography
|
||||||
className="sidemenu-item-text"
|
className="sidemenu-item-text"
|
||||||
|
|||||||
@@ -22,6 +22,10 @@
|
|||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: white;
|
color: white;
|
||||||
|
.material-symbols-rounded {
|
||||||
|
font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 25,
|
||||||
|
"opsz" 40;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
@@ -35,6 +39,10 @@
|
|||||||
// transform: scaleY(1);
|
// transform: scaleY(1);
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
.material-symbols-rounded {
|
||||||
|
font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 25,
|
||||||
|
"opsz" 40;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&-text {
|
&-text {
|
||||||
@@ -42,6 +50,7 @@
|
|||||||
transform-origin: top;
|
transform-origin: top;
|
||||||
transition: max-height 0.5s;
|
transition: max-height 0.5s;
|
||||||
max-height: 0;
|
max-height: 0;
|
||||||
|
transition-delay: 0.05s;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-icon {
|
&-icon {
|
||||||
@@ -62,6 +71,7 @@
|
|||||||
border-radius: 100px;
|
border-radius: 100px;
|
||||||
transition: opacity $transition-time-fast,
|
transition: opacity $transition-time-fast,
|
||||||
transform $transition-time-fast;
|
transform $transition-time-fast;
|
||||||
|
transition-delay: 0.1s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** @format */
|
/** @format */
|
||||||
|
import React from "react";
|
||||||
import { MdiMovieOutline } from "../icons/mdiMovieOutline";
|
import { MdiMovieOutline } from "../icons/mdiMovieOutline";
|
||||||
import { MdiMusicBoxMultipleOutline } from "../icons/mdiMusicBoxMultipleOutline";
|
import { MdiMusicBoxMultipleOutline } from "../icons/mdiMusicBoxMultipleOutline";
|
||||||
import { MdiPlaylistMusicOutline } from "../icons/mdiPlaylistMusicOutline";
|
import { MdiPlaylistMusicOutline } from "../icons/mdiPlaylistMusicOutline";
|
||||||
@@ -25,6 +25,7 @@ import { MdiMusic } from "../icons/mdiMusic";
|
|||||||
import { MdiAccountTie } from "../icons/mdiAccountTie";
|
import { MdiAccountTie } from "../icons/mdiAccountTie";
|
||||||
import { MdiAccount } from "../icons/mdiAccount";
|
import { MdiAccount } from "../icons/mdiAccount";
|
||||||
import { MdiFilmstripBoxMultiple } from "../icons/mdiFilmstripBoxMultiple";
|
import { MdiFilmstripBoxMultiple } from "../icons/mdiFilmstripBoxMultiple";
|
||||||
|
import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client";
|
||||||
|
|
||||||
export const MediaCollectionTypeIconCollection = {
|
export const MediaCollectionTypeIconCollection = {
|
||||||
universal: <MdiMultimedia />,
|
universal: <MdiMultimedia />,
|
||||||
@@ -43,15 +44,6 @@ export const MediaCollectionTypeIconCollection = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const MediaCollectionTypeIconCollectionCard = {
|
export const MediaCollectionTypeIconCollectionCard = {
|
||||||
universal: <MdiMultimedia className="card-image-icon" />,
|
|
||||||
movies: <MdiMovieOutline className="card-image-icon" />,
|
|
||||||
music: <MdiMusicBoxMultipleOutline className="card-image-icon" />,
|
|
||||||
playlists: <MdiPlaylistMusicOutline className="card-image-icon" />,
|
|
||||||
tvshows: <MdiTelevision className="card-image-icon" />,
|
|
||||||
boxsets: <MdiFilmstripBoxMultiple className="card-image-icon" />,
|
|
||||||
musicvideos: <MdiFolderMusicOutline className="card-image-icon" />,
|
|
||||||
trailers: <MdiYoutube className="card-image-icon" />,
|
|
||||||
books: <MdiBookMultiple className="card-image-icon" />,
|
|
||||||
photos: <MdiImageMultiple className="card-image-icon" />,
|
photos: <MdiImageMultiple className="card-image-icon" />,
|
||||||
livetv: <MdiTelevisionClassic className="card-image-icon" />,
|
livetv: <MdiTelevisionClassic className="card-image-icon" />,
|
||||||
folder: <MdiFolderOutline className="card-image-icon" />,
|
folder: <MdiFolderOutline className="card-image-icon" />,
|
||||||
@@ -67,47 +59,109 @@ export const MediaTypeIconCollection = {
|
|||||||
AudioBook: <MdiBookMusic className="hero-carousel-background-icon" />,
|
AudioBook: <MdiBookMusic className="hero-carousel-background-icon" />,
|
||||||
};
|
};
|
||||||
|
|
||||||
export const TypeIconCollectionCard = {
|
export const getTypeIcon = (icon) => {
|
||||||
Actor: <MdiAccountTie className="card-image-icon" />,
|
switch (icon) {
|
||||||
AggregateFolder: <MdiFolderMultiple className="card-image-icon" />,
|
case "Home":
|
||||||
Audio: <MdiMicrophone className="card-image-icon" />,
|
return <div className="material-symbols-rounded">home</div>;
|
||||||
AudioBook: <MdiBookMusic className="card-image-icon" />,
|
case BaseItemKind.Audio:
|
||||||
BasePluginFolder: <MdiFolderOutline className="card-image-icon" />,
|
return <div className="material-symbols-rounded">mic</div>;
|
||||||
Book: <MdiBook className="card-image-icon" />,
|
case BaseItemKind.AudioBook:
|
||||||
BoxSet: <MdiPlayBoxMultiple className="card-image-icon" />,
|
return (
|
||||||
Channel: <MdiTelevisionClassic className="card-image-icon" />,
|
<div className="material-symbols-rounded">library_book</div>
|
||||||
ChannelFolderItem: <MdiTelevisionClassic className="card-image-icon" />,
|
);
|
||||||
CollectionFolder: <MdiFolderOutline className="card-image-icon" />,
|
case BaseItemKind.Book:
|
||||||
Episode: <MdiTelevisionClassic className="card-image-icon" />,
|
return <div className="material-symbols-rounded">book</div>;
|
||||||
Folder: <MdiFolderOutline className="card-image-icon" />,
|
case "boxsets":
|
||||||
LiveTvChannel: <MdiTelevisionClassic className="card-image-icon" />,
|
case BaseItemKind.BoxSet:
|
||||||
LiveTvProgram: <MdiTelevisionClassic className="card-image-icon" />,
|
return (
|
||||||
ManualPlaylistsFolder: (
|
<div className="material-symbols-rounded">
|
||||||
<MdiPlaylistMusicOutline className="card-image-icon" />
|
video_library
|
||||||
),
|
</div>
|
||||||
Movie: <MdiFilmstrip className="card-image-icon" />,
|
);
|
||||||
MusicAlbum: <MdiAlbum className="card-image-icon" />,
|
case "livetv":
|
||||||
MusicArtist: <MdiAccountMusic className="card-image-icon" />,
|
case BaseItemKind.TvProgram:
|
||||||
MusicGenre: <MdiDramaMasks className="card-image-icon" />,
|
case BaseItemKind.TvChannel:
|
||||||
MusicVideo: <MdiMusic className="card-image-icon" />,
|
case BaseItemKind.Program:
|
||||||
Person: <MdiAccountTie className="card-image-icon" />,
|
case BaseItemKind.Recording:
|
||||||
Photo: <MdiImage className="card-image-icon" />,
|
case BaseItemKind.LiveTvChannel:
|
||||||
PhotoAlbum: <MdiImageMultiple className="card-image-icon" />,
|
case BaseItemKind.LiveTvProgram:
|
||||||
Playlist: <MdiPlaylistMusicOutline className="card-image-icon" />,
|
case BaseItemKind.ChannelFolderItem:
|
||||||
PlaylistsFolder: <MdiPlaylistMusicOutline className="card-image-icon" />,
|
case BaseItemKind.Channel:
|
||||||
Program: <MdiTelevisionClassic className="card-image-icon" />,
|
return (
|
||||||
Recording: <MdiTelevisionClassic className="card-image-icon" />,
|
<div className="material-symbols-rounded">
|
||||||
Season: <MdiTelevisionClassic className="card-image-icon" />,
|
settings_input_antenna
|
||||||
Series: <MdiTelevisionClassic className="card-image-icon" />,
|
</div>
|
||||||
Studio: <MdiMultimedia className="card-image-icon" />,
|
);
|
||||||
Trailer: <MdiYoutube className="card-image-icon" />,
|
case "tvshows":
|
||||||
TvChannel: <MdiTelevisionClassic className="card-image-icon" />,
|
case BaseItemKind.Season:
|
||||||
TvProgram: <MdiTelevisionClassic className="card-image-icon" />,
|
case BaseItemKind.Series:
|
||||||
User: <MdiAccount className="card-image-icon" />,
|
case BaseItemKind.Episode:
|
||||||
UserRootFolder: <MdiFolderOutline className="card-image-icon" />,
|
return <div className="material-symbols-rounded">tv_gen</div>;
|
||||||
UserView: <MdiMultimedia className="card-image-icon" />,
|
case "playlists":
|
||||||
Video: <MdiFilmstrip className="card-image-icon" />,
|
case BaseItemKind.Playlist:
|
||||||
Year: <MdiMultimedia className="card-image-icon" />,
|
case BaseItemKind.PlaylistsFolder:
|
||||||
Genre: <MdiDramaMasks className="card-image-icon" />,
|
case BaseItemKind.ManualPlaylistsFolder:
|
||||||
Library: <MdiMultimedia className="card-image-icon" />,
|
return (
|
||||||
|
<div className="material-symbols-rounded">queue_music</div>
|
||||||
|
);
|
||||||
|
case "movies":
|
||||||
|
case BaseItemKind.Movie:
|
||||||
|
return <div className="material-symbols-rounded">movie</div>;
|
||||||
|
case BaseItemKind.MusicAlbum:
|
||||||
|
return <div className="material-symbols-rounded">album</div>;
|
||||||
|
case BaseItemKind.MusicArtist:
|
||||||
|
return <div className="material-symbols-rounded">artist</div>;
|
||||||
|
case BaseItemKind.Genre:
|
||||||
|
case BaseItemKind.MusicGenre:
|
||||||
|
return (
|
||||||
|
<div className="material-symbols-rounded">domino_mask</div>
|
||||||
|
);
|
||||||
|
case "musicvideos":
|
||||||
|
case BaseItemKind.MusicVideo:
|
||||||
|
return (
|
||||||
|
<div className="material-symbols-rounded">music_video</div>
|
||||||
|
);
|
||||||
|
case "User":
|
||||||
|
case BaseItemKind.Person:
|
||||||
|
return <div className="material-symbols-rounded">person</div>;
|
||||||
|
case BaseItemKind.Photo:
|
||||||
|
return <div className="material-symbols-rounded">image</div>;
|
||||||
|
case "photos":
|
||||||
|
case BaseItemKind.PhotoAlbum:
|
||||||
|
return (
|
||||||
|
<div className="material-symbols-rounded">
|
||||||
|
photo_library
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
case "universal":
|
||||||
|
case BaseItemKind.Studio:
|
||||||
|
return <div className="material-symbols-rounded">category</div>;
|
||||||
|
case "trailers":
|
||||||
|
case BaseItemKind.Trailer:
|
||||||
|
return (
|
||||||
|
<div className="material-symbols-rounded">
|
||||||
|
smart_display
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
case BaseItemKind.Video:
|
||||||
|
return <div className="material-symbols-rounded">theaters</div>;
|
||||||
|
case "music":
|
||||||
|
return (
|
||||||
|
<div className="material-symbols-rounded">
|
||||||
|
library_music
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
case "books":
|
||||||
|
return (
|
||||||
|
<div className="material-symbols-rounded">
|
||||||
|
library_books
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
case "folders":
|
||||||
|
return <div className="material-symbols-rounded">folder</div>;
|
||||||
|
default:
|
||||||
|
return (
|
||||||
|
<div className="material-symbols-rounded">description</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
@@ -68,22 +68,22 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
transition: opacity 0.5s;
|
transition: opacity 0.5s;
|
||||||
}
|
}
|
||||||
&-icon {
|
|
||||||
|
&-icon-container {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
font-size: 15em !important;
|
background: $clr-gradient-dark;
|
||||||
left: 70%;
|
// background: url("/public/assetsStatic//meshbackground.png");
|
||||||
top: 50%;
|
z-index: 0;
|
||||||
transform: translate(-50%, -50%);
|
top: 0;
|
||||||
fill: url(#clr-gradient-default) !important;
|
left: 0;
|
||||||
&-container {
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
.material-symbols-rounded {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background: $clr-gradient-dark;
|
font-size: 15em !important;
|
||||||
// background: url("/public/assetsStatic//meshbackground.png");
|
left: 70%;
|
||||||
z-index: 0;
|
top: 50%;
|
||||||
top: 0;
|
transform: translate(-50%, -50%);
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -263,6 +263,9 @@ const Home = () => {
|
|||||||
)[0]
|
)[0]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
overrideIcon={
|
||||||
|
item.CollectionType
|
||||||
|
}
|
||||||
></Card>
|
></Card>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -67,7 +67,6 @@ const LibraryView = () => {
|
|||||||
return usr.data;
|
return usr.data;
|
||||||
},
|
},
|
||||||
networkMode: "always",
|
networkMode: "always",
|
||||||
enabled: Boolean(api),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const [sortAscending, setSortAscending] = useState(true);
|
const [sortAscending, setSortAscending] = useState(true);
|
||||||
@@ -348,6 +347,7 @@ const LibraryView = () => {
|
|||||||
useState(() => {
|
useState(() => {
|
||||||
// Remove App backdrop in library page
|
// Remove App backdrop in library page
|
||||||
setAppBackdrop("", "");
|
setAppBackdrop("", "");
|
||||||
|
console.log(items);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -141,8 +141,9 @@ h1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.material-symbols-rounded {
|
.material-symbols-rounded {
|
||||||
font-variation-settings: "FILL" 0, "wght" 200, "GRAD" 25, "opsz" 32;
|
font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 25, "opsz" 40;
|
||||||
font-size: 1em !important;
|
font-size: 1.1em;
|
||||||
|
transition: all $transition-time-default;
|
||||||
}
|
}
|
||||||
|
|
||||||
.audio-playing .scrollY {
|
.audio-playing .scrollY {
|
||||||
@@ -161,3 +162,8 @@ h1 {
|
|||||||
.scrollY {
|
.scrollY {
|
||||||
transition: all $transition-time-default !important;
|
transition: all $transition-time-default !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Normalize listItemIcons for material symbols
|
||||||
|
.MuiListItemIcon-root {
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user