Add MusicAlbumTItlePage #160

This commit is contained in:
Prayag Prajapati committed 2023-09-17 15:56:35 +05:30
1 parent 46119c1f1d
commit be3fe48b74
6 files changed
+433 -4

No files matched your search

+5 -1
View File
@@ -25,7 +25,11 @@ const cardImageAspectRatios = {
square: 1,
};
const availableSpecialRoutes = [BaseItemKind.Series, BaseItemKind.BoxSet];
const availableSpecialRoutes = [
BaseItemKind.Series,
BaseItemKind.BoxSet,
BaseItemKind.MusicAlbum,
];
/**
* @typedef {Object} Props
+5 -1
View File
@@ -28,7 +28,11 @@ import { useCarouselStore } from "../../utils/store/carousel";
import PlayButton from "../buttons/playButton";
import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client";
const availableSpecialRoutes = [BaseItemKind.Series, BaseItemKind.BoxSet];
const availableSpecialRoutes = [
BaseItemKind.Series,
BaseItemKind.BoxSet,
BaseItemKind.MusicAlbum,
];
/**
* @typedef {Object} Props
+13
View File
@@ -39,6 +39,7 @@ import { MediaTypeIconCollection } from "../../utils/iconsCollection";
* @property {bool} disablePlayButton
* @property {bool} disableLikeButton
* @property {bool} disableMarkAsPlayedButton
* @property {string} albumBy
*/
/**
@@ -58,6 +59,7 @@ const Hero = ({
disablePlayButton,
disableLikeButton,
disableMarkAsPlayedButton,
albumBy,
}) => {
const filterMediaStreamVideo = (source) => {
if (source.Type == MediaStreamType.Video) {
@@ -200,6 +202,17 @@ const Hero = ({
item.Name
)}
</Typography>
{!!albumBy && (
<Typography
variant="h6"
fontWeight={400}
style={{
opacity: 0.8,
}}
>
By {albumBy}
</Typography>
)}
</div>
{!disableInfoStrip && (
<Stack