refactor(web): change all icons to material-symbols from mdi
This commit is contained in:
94 files changed
+393
-1297
No files matched your search
@@ -21,7 +21,6 @@ import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||
import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api";
|
||||
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import { MdiClockOutline } from "../../components/icons/mdiClockOutline";
|
||||
|
||||
import { getRuntimeMusic } from "../../utils/date/time";
|
||||
|
||||
@@ -248,7 +247,7 @@ const MusicAlbumTitlePage = () => {
|
||||
>
|
||||
Name
|
||||
</Typography>
|
||||
<MdiClockOutline />
|
||||
<span className="material-symbols-rounded">schedule</span>
|
||||
</div>
|
||||
{musicTracks.data.Items.map((track, index) => {
|
||||
return (
|
||||
|
||||
@@ -28,7 +28,6 @@ import Typography from "@mui/material/Typography";
|
||||
import { useSnackbar } from "notistack";
|
||||
import { ErrorBoundary } from "react-error-boundary";
|
||||
import CarouselSlide from "../../components/carouselSlide";
|
||||
import CarouselSlideError from "../../components/errors/carousel";
|
||||
import { ErrorNotice } from "../../components/notices/errorNotice/errorNotice";
|
||||
import { useApi } from "../../utils/store/api";
|
||||
|
||||
|
||||
@@ -178,7 +178,7 @@ const ItemDetail = () => {
|
||||
setAudioTracks(audios);
|
||||
setSubtitleTracks(subs);
|
||||
}
|
||||
});
|
||||
}, [item.isSuccess]);
|
||||
|
||||
const [setAppBackdrop] = useBackdropStore((state) => [state.setBackdrop]);
|
||||
|
||||
@@ -207,7 +207,7 @@ const ItemDetail = () => {
|
||||
const actorTp = item.data.People.filter((itm) => itm.Type === "Actor");
|
||||
setActors(actorTp);
|
||||
}
|
||||
});
|
||||
}, [item.isSuccess]);
|
||||
|
||||
const qualityLabel = () => {
|
||||
if (
|
||||
|
||||
@@ -15,12 +15,11 @@
|
||||
max-height: 100%;
|
||||
overflow: hidden;
|
||||
border-radius: $border-radius-default;
|
||||
width: fit-content;
|
||||
box-shadow: $shadow-card;
|
||||
flex-grow: 1;
|
||||
flex-shrink: 0;
|
||||
position: relative;
|
||||
width: 20%;
|
||||
width: 18% !important;
|
||||
}
|
||||
&-blurhash {
|
||||
position: absolute !important;
|
||||
|
||||
@@ -34,11 +34,6 @@ import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||
import { Card } from "../../components/card/card";
|
||||
import { EmptyNotice } from "../../components/notices/emptyNotice/emptyNotice";
|
||||
|
||||
import { MdiChevronDown } from "../../components/icons/mdiChevronDown";
|
||||
import { MdiFilterOutline } from "../../components/icons/mdiFilterOutline";
|
||||
import { MdiSortAscending } from "../../components/icons/mdiSortAscending";
|
||||
import { MdiSortDescending } from "../../components/icons/mdiSortDescending";
|
||||
|
||||
import {
|
||||
BaseItemKind,
|
||||
ItemFields,
|
||||
@@ -406,11 +401,16 @@ const LibraryView = () => {
|
||||
) : (
|
||||
<>
|
||||
<IconButton onClick={() => setSortAscending(!sortAscending)}>
|
||||
{sortAscending ? (
|
||||
<MdiSortAscending />
|
||||
) : (
|
||||
<MdiSortDescending />
|
||||
)}
|
||||
<span
|
||||
className="material-symbols-rounded"
|
||||
style={{
|
||||
transform: sortAscending
|
||||
? "rotateX(0deg)"
|
||||
: "rotateX(180deg)",
|
||||
}}
|
||||
>
|
||||
sort
|
||||
</span>
|
||||
</IconButton>
|
||||
|
||||
<TextField
|
||||
@@ -455,7 +455,11 @@ const LibraryView = () => {
|
||||
<>
|
||||
<Divider flexItem orientation="vertical" />
|
||||
<Button
|
||||
startIcon={<MdiFilterOutline />}
|
||||
startIcon={
|
||||
<span className="material-symbols-rounded">
|
||||
filter_list
|
||||
</span>
|
||||
}
|
||||
color="white"
|
||||
onClick={(event) => {
|
||||
setFilterButtonAnchorEl(event.currentTarget);
|
||||
@@ -477,7 +481,13 @@ const LibraryView = () => {
|
||||
<Grow {...TransitionProps} timeout={200}>
|
||||
<div className="library-filter-container">
|
||||
<Accordion className="library-filter-accordian">
|
||||
<AccordionSummary expandIcon={<MdiChevronDown />}>
|
||||
<AccordionSummary
|
||||
expandIcon={
|
||||
<span className="material-symbols-rounded">
|
||||
expand_more
|
||||
</span>
|
||||
}
|
||||
>
|
||||
<Typography variant="subtitle1">Filters</Typography>
|
||||
</AccordionSummary>
|
||||
<AccordionDetails
|
||||
@@ -682,7 +692,13 @@ const LibraryView = () => {
|
||||
</Accordion>
|
||||
{currentLib.data.CollectionType === "movies" && (
|
||||
<Accordion className="library-filter-accordian">
|
||||
<AccordionSummary expandIcon={<MdiChevronDown />}>
|
||||
<AccordionSummary
|
||||
expandIcon={
|
||||
<span className="material-symbols-rounded">
|
||||
expand_more
|
||||
</span>
|
||||
}
|
||||
>
|
||||
<Typography variant="subtitle1">Quality</Typography>
|
||||
</AccordionSummary>
|
||||
<AccordionDetails
|
||||
@@ -822,7 +838,13 @@ const LibraryView = () => {
|
||||
currentLib.data.CollectionType,
|
||||
) && (
|
||||
<Accordion className="library-filter-accordian">
|
||||
<AccordionSummary expandIcon={<MdiChevronDown />}>
|
||||
<AccordionSummary
|
||||
expandIcon={
|
||||
<span className="material-symbols-rounded">
|
||||
expand_more
|
||||
</span>
|
||||
}
|
||||
>
|
||||
<Typography variant="subtitle1">
|
||||
Features
|
||||
</Typography>
|
||||
|
||||
@@ -5,11 +5,6 @@ import { EventEmitter as event } from "../../eventEmitter.js";
|
||||
|
||||
import { saveUser } from "../../utils/storage/user";
|
||||
|
||||
import { MdiChevronRight } from "../../components/icons/mdiChevronRight.jsx";
|
||||
// import Icon from "mdi-material-ui";
|
||||
import { MdiEyeOffOutline } from "../../components/icons/mdiEyeOffOutline.jsx";
|
||||
import { MdiEyeOutline } from "../../components/icons/mdiEyeOutline.jsx";
|
||||
|
||||
import LoadingButton from "@mui/lab/LoadingButton";
|
||||
import Button from "@mui/material/Button";
|
||||
import Checkbox from "@mui/material/Checkbox";
|
||||
@@ -198,9 +193,13 @@ export const LoginWithImage = () => {
|
||||
aria-label="toggle password visibility"
|
||||
>
|
||||
{password.showpass ? (
|
||||
<MdiEyeOffOutline />
|
||||
<span className="material-symbols-rounded">
|
||||
visibility_off
|
||||
</span>
|
||||
) : (
|
||||
<MdiEyeOutline />
|
||||
<span className="material-symbols-rounded">
|
||||
visibility
|
||||
</span>
|
||||
)}
|
||||
</IconButton>
|
||||
</InputAdornment>
|
||||
|
||||
@@ -14,8 +14,6 @@ import Typography from "@mui/material/Typography";
|
||||
|
||||
import ReactPlayer from "react-player";
|
||||
|
||||
import { MdiArrowLeft } from "../../components/icons/mdiArrowLeft";
|
||||
import { MdiPlay } from "../../components/icons/mdiPlay";
|
||||
import { usePlaybackStore } from "../../utils/store/playback";
|
||||
|
||||
import { useCallback, useEffect, useRef, useState } from "react";
|
||||
@@ -26,26 +24,14 @@ import { getMediaInfoApi } from "@jellyfin/sdk/lib/utils/api/media-info-api";
|
||||
import { getPlaystateApi } from "@jellyfin/sdk/lib/utils/api/playstate-api";
|
||||
import { getTvShowsApi } from "@jellyfin/sdk/lib/utils/api/tv-shows-api";
|
||||
|
||||
import { MdiFastForward } from "../../components/icons/mdiFastForward";
|
||||
import { MdiFullscreen } from "../../components/icons/mdiFullscreen";
|
||||
import { MdiFullscreenExit } from "../../components/icons/mdiFullscreenExit";
|
||||
import { MdiPause } from "../../components/icons/mdiPause";
|
||||
import { MdiPictureInPictureBottomRight } from "../../components/icons/mdiPictureInPictureBottomRight";
|
||||
import { MdiPlaySpeed } from "../../components/icons/mdiPlaySpeed";
|
||||
import { MdiRewind } from "../../components/icons/mdiRewind";
|
||||
import { MdiVolumeHigh } from "../../components/icons/mdiVolumeHigh";
|
||||
import { MdiVolumeOff } from "../../components/icons/mdiVolumeOff";
|
||||
import "./videoPlayer.module.scss";
|
||||
|
||||
import { endsAt } from "../../utils/date/time";
|
||||
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import { MdiCog } from "../../components/icons/mdiCog";
|
||||
import { MdiSkipNext } from "../../components/icons/mdiSkipNext";
|
||||
|
||||
import { ItemFields, LocationType } from "@jellyfin/sdk/lib/generated-client";
|
||||
import { AnimatePresence, motion } from "framer-motion";
|
||||
import { MdiSkipPrevious } from "../../components/icons/mdiSkipPrevious";
|
||||
|
||||
import { useApi } from "../../utils/store/api";
|
||||
|
||||
@@ -599,7 +585,7 @@ export const VideoPlayer = () => {
|
||||
}}
|
||||
>
|
||||
<IconButton onClick={handleExit}>
|
||||
<MdiArrowLeft />
|
||||
<span className="material-symbols-rounded">arrow_back</span>
|
||||
</IconButton>
|
||||
|
||||
{itemName}
|
||||
|
||||
@@ -6,8 +6,6 @@ import TextField from "@mui/material/TextField";
|
||||
|
||||
import { useBackdropStore } from "../../utils/store/backdrop";
|
||||
|
||||
import { MdiMagnify } from "../../components/icons/mdiMagnify";
|
||||
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
|
||||
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||
@@ -207,7 +205,7 @@ const SearchPage = () => {
|
||||
}}
|
||||
size={35}
|
||||
/>
|
||||
<MdiMagnify />
|
||||
<span className="material-symbols-rounded">search</span>
|
||||
</div>
|
||||
</InputAdornment>
|
||||
),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import PropTypes from "prop-types";
|
||||
import React, { useState, useEffect } from "react";
|
||||
import React, { useState, useEffect, useLayoutEffect } from "react";
|
||||
|
||||
import Box from "@mui/material/Box";
|
||||
import MuiCard from "@mui/material/Card";
|
||||
@@ -204,7 +204,7 @@ const SeriesTitlePage = () => {
|
||||
const [actors, setActors] = useState([]);
|
||||
const [producers, setProducers] = useState([]);
|
||||
|
||||
useEffect(() => {
|
||||
useLayoutEffect(() => {
|
||||
if (item.isSuccess) {
|
||||
setAppBackdrop(
|
||||
item.data.Type === BaseItemKind.MusicAlbum ||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import React, { useState } from "react";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
|
||||
@@ -13,13 +12,10 @@ import SvgIcon from "@mui/material/SvgIcon";
|
||||
import TextField from "@mui/material/TextField";
|
||||
import Typography from "@mui/material/Typography";
|
||||
|
||||
import { mdiChevronRight } from "@mdi/js";
|
||||
|
||||
import { useSnackbar } from "notistack";
|
||||
|
||||
import { yellow } from "@mui/material/colors";
|
||||
import { useMutation } from "@tanstack/react-query";
|
||||
import { MdiInformation } from "../../../components/icons/mdiInformation.jsx";
|
||||
import { createApi, useApi } from "../../../utils/store/api";
|
||||
// SCSS
|
||||
import "./server.module.scss";
|
||||
@@ -117,9 +113,7 @@ export const ServerSetup = () => {
|
||||
size="large"
|
||||
loading={checkServer.isPending}
|
||||
endIcon={
|
||||
<SvgIcon>
|
||||
<path d={mdiChevronRight} />
|
||||
</SvgIcon>
|
||||
<span className="material-symbols-rounded">chevron_right</span>
|
||||
}
|
||||
loadingPosition="end"
|
||||
onClick={checkServer.mutate}
|
||||
@@ -139,11 +133,14 @@ export const ServerSetup = () => {
|
||||
opacity: 0.6,
|
||||
}}
|
||||
>
|
||||
<MdiInformation
|
||||
sx={{
|
||||
<span
|
||||
className="material-symbols-rounded"
|
||||
style={{
|
||||
color: yellow[700],
|
||||
}}
|
||||
/>
|
||||
>
|
||||
info
|
||||
</span>
|
||||
<Typography variant="subtitle1">
|
||||
Example: https://demo.jellyfin.org/stable
|
||||
</Typography>
|
||||
|
||||
Reference in new issue
Block a user