chore: add kitsu icon to iconLink

This commit is contained in:
Prayag Prajapati committed 2024-03-28 21:58:55 +05:30
1 parent dbd394619f
commit 8a4b41c0e0
4 files changed
+22 -30

No files matched your search

+3 -3
View File
@@ -1,4 +1,4 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.5333 15.5101V5.72477C15.5333 5.16398 15.224 4.85449 14.6632 4.85449H12.7486C12.1878 4.85449 11.8783 5.16398 11.8783 5.72477C11.8783 5.72477 11.8783 7.86077 11.8783 10.3718C11.8783 10.5027 13.1393 11.1104 13.1722 11.2389C14.1329 14.9927 13.381 17.997 12.4702 18.1372C13.9594 18.2109 14.1232 18.9269 13.014 18.4377C13.1837 16.4348 13.8458 16.4387 15.7492 18.364C15.7655 18.3806 16.1394 19.1651 16.1627 19.1651C18.3028 19.1651 20.6581 19.1651 20.6581 19.1651C21.2189 19.1651 21.5283 18.8557 21.5283 18.2949V16.3804C21.5283 15.8196 21.2189 15.5101 20.6581 15.5101H15.5333Z" fill="#02A9FF"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.58582 4.85449L2.55782 19.1651H6.46423L7.31512 16.6897H11.5695L12.4012 19.1651H16.2882L11.2794 4.85449H7.58582ZM8.20465 13.5182L9.42293 9.55375L10.7573 13.5182H8.20465Z" fill="#FEFEFE"/>
<svg width="24" height="19" viewBox="0 0 24 19" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.36105 7.01466e-08L0 18.1046H4.94211L6.01858 14.973H11.401L12.4531 18.1046H17.3706L11.7916 2.16472L11.0339 7.01466e-08H6.36105ZM7.14395 10.9607L8.68523 5.94514L10.3734 10.9607H7.14395Z" fill="#FEFEFE"/>
<path d="M16.4156 13.4806V1.10101C16.4156 0.391541 16.0242 0 15.3148 0H12.8926C12.1831 0 11.7916 0.391541 11.7916 1.10101V2.16472L17.3706 18.1046H22.8992C23.6086 18.1046 24 17.7133 24 17.0038V14.5816C24 13.8722 23.6086 13.4806 22.8992 13.4806H16.4156Z" fill="#02A9FF"/>
</svg>

Before

Width:  |  Height:  |  Size: 981 B

After

Width:  |  Height:  |  Size: 627 B

+4
View File
@@ -0,0 +1,4 @@
<svg width="22" height="24" viewBox="0 0 22 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M16.4308 5.16116C15.6987 4.89203 14.9129 4.71979 14.084 4.6875C12.7168 4.62291 11.4142 4.92433 10.2732 5.50564C10.2086 5.53794 10.1332 5.57023 10.0579 5.61329V9.53177C10.0579 9.58559 10.0579 9.79013 10.0256 9.96237C9.9502 10.3607 9.71337 10.7159 9.37965 10.942C9.09976 11.1358 8.77681 11.2219 8.43233 11.2111C8.36774 11.2111 8.29238 11.2004 8.22779 11.1896C8.05555 11.1573 7.87254 11.0927 7.81872 11.0712C7.66801 11.0173 5.47194 10.1669 4.41696 9.75784C4.28778 9.70401 4.18013 9.66095 4.09401 9.62866C2.8345 10.6944 1.5104 11.9647 0.272418 13.461C0.261653 13.4718 0.207828 13.5364 0.197063 13.5471C0.0355869 13.7732 0.0248218 14.0962 0.197063 14.3437C0.326243 14.5268 0.530779 14.6344 0.735315 14.6452C0.875261 14.6559 1.02597 14.6129 1.15515 14.5268C1.16592 14.516 1.17668 14.5052 1.19821 14.4945C2.51155 13.5471 3.95407 12.7828 5.4827 12.1692C5.59035 12.1154 5.71953 12.0831 5.83795 12.0939C6.01019 12.1046 6.17167 12.1692 6.30085 12.2984C6.54844 12.546 6.55921 12.9443 6.35467 13.2134C6.26855 13.3426 6.1932 13.4718 6.11784 13.601C5.2997 14.9358 4.64303 16.3891 4.14784 17.907C4.13707 17.95 4.12631 17.9823 4.11554 18.0254V18.0362C4.07248 18.2192 4.10478 18.4129 4.22319 18.5744C4.35237 18.7574 4.55691 18.8651 4.77221 18.8758C4.92292 18.8866 5.06287 18.8435 5.19205 18.7574C5.24587 18.7144 5.2997 18.6713 5.34276 18.6175C5.35352 18.5959 5.37505 18.5744 5.38582 18.5529C5.92407 17.7886 6.51615 17.0673 7.15129 16.3999C9.98249 13.3641 13.7395 11.2219 17.9486 10.3822C17.9809 10.3714 18.0132 10.3714 18.0455 10.3714C18.2823 10.3822 18.4654 10.5867 18.4546 10.8236C18.4438 11.0281 18.3039 11.1788 18.1101 11.2219C14.2024 12.0508 7.16205 16.6905 9.62725 23.4295C9.67031 23.5371 9.7026 23.6017 9.75643 23.6986C9.88561 23.8816 10.0901 23.9892 10.2947 24C10.4131 24 10.7468 23.9677 10.9514 23.6017C11.3497 22.8481 12.1032 22.0085 14.2777 21.1042C20.3385 18.5959 21.3396 15.0112 21.4473 12.7398V12.6106C21.5442 9.23035 19.445 6.28072 16.4308 5.16116ZM10.3485 22.9235C9.78872 21.2549 9.84255 19.6402 10.4992 18.1008C11.7587 20.1353 13.9548 20.3076 13.9548 20.3076C11.7049 21.2441 10.8222 22.1699 10.3485 22.9235Z" fill="#E75E45"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.110942 5.38722C0.121707 5.40875 0.143237 5.43028 0.154002 5.44105C0.72455 6.21613 1.37045 6.89433 2.07018 7.49717C2.08095 7.50794 2.09171 7.50794 2.09171 7.51871C2.54384 7.90625 3.40505 8.46603 4.02942 8.6921C4.02942 8.6921 7.91561 10.1884 8.12014 10.2746C8.1955 10.3069 8.30315 10.3391 8.35697 10.3499C8.52921 10.3822 8.71222 10.3499 8.87369 10.2423C9.03517 10.1346 9.13206 9.97314 9.16435 9.8009C9.17512 9.73631 9.18588 9.62866 9.18588 9.5533V5.16116C9.19665 4.49373 8.98134 3.48181 8.78757 2.92203C8.78757 2.91126 8.77681 2.9005 8.77681 2.88973C8.47539 2.01776 8.06632 1.16732 7.54959 0.359945L7.5173 0.295355L7.50653 0.28459C7.29123 -0.0168314 6.86063 -0.0921868 6.54844 0.123114C6.49462 0.155409 6.46232 0.19847 6.41926 0.24153C6.38697 0.28459 6.36544 0.316885 6.33314 0.359945C5.64418 1.3611 5.36429 2.57755 5.54729 3.77247C5.19205 3.95547 4.81527 4.20307 4.77221 4.23536C4.72915 4.26766 4.35237 4.52602 4.06172 4.79515C3.01751 4.20307 1.76876 4.02006 0.59537 4.29995C0.552309 4.31072 0.498484 4.32148 0.455424 4.33225C0.401599 4.35378 0.347773 4.37531 0.304713 4.40761C-0.00747332 4.62291 -0.0935937 5.04274 0.110942 5.36569V5.38722ZM6.94675 1.07044C7.31276 1.68405 7.62495 2.31918 7.87254 2.98662C7.37735 3.07274 6.89292 3.20192 6.41926 3.37416C6.35467 2.56678 6.53768 1.77017 6.94675 1.07044ZM3.38352 5.46258C3.03904 5.83936 2.74838 6.24843 2.49002 6.67903C1.96253 6.21613 1.4781 5.68865 1.03674 5.12886C1.84412 4.98892 2.65149 5.10733 3.38352 5.46258Z" fill="#E75E45"/>
</svg>

After

Width:  |  Height:  |  Size: 3.7 KiB

+10 -27
View File
@@ -89,16 +89,12 @@ export const Card = ({
opacity: item.UserData?.Played ? 1 : 0,
}}
>
<div className="material-symbols-rounded">
done
</div>
<div className="material-symbols-rounded">done</div>
</div>
<div
className={"card-indicator text"}
style={{
opacity: item.UserData?.UnplayedItemCount
? 1
: 0,
opacity: item.UserData?.UnplayedItemCount ? 1 : 0,
}}
>
<Typography
@@ -121,9 +117,7 @@ export const Card = ({
/>
)} */}
<div className="card-image-icon-container">
{overrideIcon
? getTypeIcon(overrideIcon)
: getTypeIcon(item.Type)}
{overrideIcon ? getTypeIcon(overrideIcon) : getTypeIcon(item.Type)}
</div>
<img
alt={item.Name}
@@ -131,15 +125,13 @@ export const Card = ({
overrideIcon === "User"
? `${api.basePath}/Users/${item.Id}/Images/Primary`
: api.getItemImageUrl(
seriesId
? item.SeriesId
: item.AlbumId ?? item.Id,
seriesId ? item.SeriesId : item.AlbumId ?? item.Id,
imageType,
{
quality: 80,
quality: 90,
fillWidth: cardType === "thumb" ? 560 : 280,
},
)
)
}
style={{
height: "100%",
@@ -169,16 +161,12 @@ export const Card = ({
}}
iconOnly
audio={
item.Type ===
BaseItemKind.MusicAlbum ||
item.Type === BaseItemKind.MusicAlbum ||
item.Type === BaseItemKind.Audio ||
item.Type ===
BaseItemKind.AudioBook ||
item.Type === BaseItemKind.Playlist
}
playlistItem={
item.Type === BaseItemKind.AudioBook ||
item.Type === BaseItemKind.Playlist
}
playlistItem={item.Type === BaseItemKind.Playlist}
playlistItemId={item.Id}
/>
<LikeButton
@@ -231,12 +219,7 @@ export const Card = ({
className="card-text-container"
style={{ display: hideText ? "none" : "block" }}
>
<Typography
mt={1}
variant="subtitle2"
noWrap
style={{ opacity: 0.9 }}
>
<Typography mt={1} variant="subtitle2" noWrap style={{ opacity: 0.9 }}>
{cardTitle}
</Typography>
<Typography
+5
View File
@@ -5,6 +5,7 @@ import anidbIcon from "../../assets/icons/anidb.png";
import anilistIcon from "../../assets/icons/anilist.svg";
import audioDBIcon from "../../assets/icons/audioDB.png";
import imdbIcon from "../../assets/icons/imdb.svg";
import kitsuIcon from "../../assets/icons/kitsu.svg";
import musicBrainzIcon from "../../assets/icons/musicbrainz.svg";
import tvDbIcon from "../../assets/icons/the-tvdb.svg";
import tmdbIcon from "../../assets/icons/themoviedatabase.svg";
@@ -21,6 +22,7 @@ const knownIcons = [
"anilist",
"tvmaze",
"theaudiodb",
"kitsu",
];
const IconLink = ({ name, url }: { name: string; url: string }) => {
@@ -51,6 +53,9 @@ const IconLink = ({ name, url }: { name: string; url: string }) => {
{name.toLocaleLowerCase() === "theaudiodb" && (
<img src={audioDBIcon} alt="TheAudioDB" />
)}
{name.toLocaleLowerCase() === "kitsu" && (
<img src={kitsuIcon} alt="Kitsu" />
)}
{!knownIcons.includes(name.toLocaleLowerCase()) && (
<Typography>{name}</Typography>
)}