Complete Discography #64
This commit is contained in:
4 files changed
+44
-6
No files matched your search
@@ -14,6 +14,10 @@ import LinearProgress from "@mui/material/LinearProgress";
|
|||||||
import Chip from "@mui/material/Chip";
|
import Chip from "@mui/material/Chip";
|
||||||
import ButtonGroup from "@mui/material/ButtonGroup";
|
import ButtonGroup from "@mui/material/ButtonGroup";
|
||||||
import IconButton from "@mui/material/IconButton";
|
import IconButton from "@mui/material/IconButton";
|
||||||
|
import MuiLink from "@mui/material/Link";
|
||||||
|
|
||||||
|
import { Link } from "react-router-dom";
|
||||||
|
|
||||||
import { Blurhash } from "react-blurhash";
|
import { Blurhash } from "react-blurhash";
|
||||||
import { green, pink } from "@mui/material/colors";
|
import { green, pink } from "@mui/material/colors";
|
||||||
|
|
||||||
@@ -347,9 +351,10 @@ export const Card = ({
|
|||||||
>
|
>
|
||||||
{itemName}
|
{itemName}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Typography
|
<Typography
|
||||||
gutterBottom
|
gutterBottom
|
||||||
variant="subtitle2"
|
variant="subtitle1"
|
||||||
component="div"
|
component="div"
|
||||||
textAlign="left"
|
textAlign="left"
|
||||||
width="fit-content"
|
width="fit-content"
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import { MdiAlbum } from "../../icons/mdiAlbum";
|
|||||||
|
|
||||||
import "./albumArtist.scss";
|
import "./albumArtist.scss";
|
||||||
|
|
||||||
export const ArtistAlbum = ({ user, album }) => {
|
export const ArtistAlbum = ({ user, album, boxProps }) => {
|
||||||
const albumTracks = useQuery({
|
const albumTracks = useQuery({
|
||||||
queryKey: ["artist", "album", album.Id],
|
queryKey: ["artist", "album", album.Id],
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
@@ -58,7 +58,7 @@ export const ArtistAlbum = ({ user, album }) => {
|
|||||||
const [imgLoaded, setImgLoaded] = useState(false);
|
const [imgLoaded, setImgLoaded] = useState(false);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Box sx={{ mb: 6 }} {...boxProps}>
|
||||||
<Stack direction="row" gap={3} mb={3}>
|
<Stack direction="row" gap={3} mb={3}>
|
||||||
{!!album.ImageTags?.Primary && (
|
{!!album.ImageTags?.Primary && (
|
||||||
<Box
|
<Box
|
||||||
@@ -108,7 +108,10 @@ export const ArtistAlbum = ({ user, album }) => {
|
|||||||
</Box>
|
</Box>
|
||||||
)}
|
)}
|
||||||
<Stack>
|
<Stack>
|
||||||
<Typography variant="h5" sx={{ opacity: `0.7` }}>
|
<Typography
|
||||||
|
variant="h5"
|
||||||
|
sx={{ opacity: `0.7`, mb: 1 }}
|
||||||
|
>
|
||||||
{album.ProductionYear}
|
{album.ProductionYear}
|
||||||
</Typography>
|
</Typography>
|
||||||
<MuiLink
|
<MuiLink
|
||||||
|
|||||||
@@ -2460,6 +2460,7 @@ const ItemDetail = () => {
|
|||||||
sx={{
|
sx={{
|
||||||
borderBottom: 1,
|
borderBottom: 1,
|
||||||
borderColor: "divider",
|
borderColor: "divider",
|
||||||
|
mb: 5,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{artistTabs.map((pitem, index) => {
|
{artistTabs.map((pitem, index) => {
|
||||||
@@ -2484,7 +2485,10 @@ const ItemDetail = () => {
|
|||||||
{pitem ==
|
{pitem ==
|
||||||
"Discography" &&
|
"Discography" &&
|
||||||
artistDiscography.data.Items.map(
|
artistDiscography.data.Items.map(
|
||||||
(album) => {
|
(
|
||||||
|
album,
|
||||||
|
mindex,
|
||||||
|
) => {
|
||||||
return (
|
return (
|
||||||
<ArtistAlbum
|
<ArtistAlbum
|
||||||
key={
|
key={
|
||||||
@@ -2496,6 +2500,26 @@ const ItemDetail = () => {
|
|||||||
album={
|
album={
|
||||||
album
|
album
|
||||||
}
|
}
|
||||||
|
boxProps={{
|
||||||
|
component:
|
||||||
|
motion.div,
|
||||||
|
initial: {
|
||||||
|
y: 30,
|
||||||
|
opacity: 0,
|
||||||
|
},
|
||||||
|
animate: {
|
||||||
|
y: 0,
|
||||||
|
opacity: 1,
|
||||||
|
},
|
||||||
|
transition:
|
||||||
|
{
|
||||||
|
duration: 0.35,
|
||||||
|
ease: "easeInOut",
|
||||||
|
delay:
|
||||||
|
mindex *
|
||||||
|
0.05,
|
||||||
|
},
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -955,7 +955,13 @@ const LibraryView = () => {
|
|||||||
imageTags={
|
imageTags={
|
||||||
!!item.ImageTags.Primary
|
!!item.ImageTags.Primary
|
||||||
}
|
}
|
||||||
subText={item.ProductionYear}
|
subText={
|
||||||
|
item.Type.includes(
|
||||||
|
"Music",
|
||||||
|
)
|
||||||
|
? item.AlbumArtist
|
||||||
|
: item.ProductionYear
|
||||||
|
}
|
||||||
iconType={item.Type}
|
iconType={item.Type}
|
||||||
playedPercent={
|
playedPercent={
|
||||||
!!item.UserData
|
!!item.UserData
|
||||||
|
|||||||
Reference in new issue
Block a user