diff --git a/src/App.jsx b/src/App.jsx
index 0944a06..0fccbe6 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -209,7 +209,18 @@ function App() {
const navigate = useNavigate();
if (!initialRoute) {
- return <>Loading...>;
+ return (
+
+
+
+ );
} else if (initialRoute) {
return (
diff --git a/src/components/appBar/appBar.jsx b/src/components/appBar/appBar.jsx
index d2262e7..d600813 100644
--- a/src/components/appBar/appBar.jsx
+++ b/src/components/appBar/appBar.jsx
@@ -50,12 +50,11 @@ export const AppBar = () => {
let usr = await getUserApi(api).getCurrentUser();
return usr.data;
},
- enabled: display && Boolean(api),
+ enabled: display,
networkMode: "always",
});
useEffect(() => {
if (user.isError) {
- console.log(api);
console.error(user.error);
}
}, [user]);
@@ -146,7 +145,9 @@ export const AppBar = () => {
aria-label="open drawer"
onClick={handleDrawerOpen}
>
-
+
+ menu
+
navigate(-1)}
@@ -159,15 +160,21 @@ export const AppBar = () => {
ml: 2,
}}
>
-
+
+ arrow_back
+
navigate("/search")}>
-
+
+ search
+
navigate("/favorite")}>
-
+
+ favorite
+
{
disabled
>
-
+
+ settings
+
Settings
@@ -218,13 +227,17 @@ export const AppBar = () => {
disabled
>
-
+
+ info
+
About
@@ -236,7 +249,9 @@ export const AppBar = () => {
}}
>
-
+
+ delete
+
Remove Server
diff --git a/src/components/buttons/likeButton.jsx b/src/components/buttons/likeButton.jsx
index 3cd9507..9767d9d 100644
--- a/src/components/buttons/likeButton.jsx
+++ b/src/components/buttons/likeButton.jsx
@@ -95,11 +95,24 @@ const LikeButton = ({
opacity: mutation.isPending ? 0.5 : 1,
}}
>
- {isFavorite ? (
-
- ) : (
-
- )}
+
+ favorite
+
);
diff --git a/src/components/buttons/markPlayedButton.jsx b/src/components/buttons/markPlayedButton.jsx
index 670d036..7d7fdaf 100644
--- a/src/components/buttons/markPlayedButton.jsx
+++ b/src/components/buttons/markPlayedButton.jsx
@@ -87,11 +87,14 @@ const MarkPlayedButton = ({ itemId, isPlayed, queryKey, userId, itemName }) => {
opacity: mutation.isPending ? 0.5 : 1,
}}
>
-
+ >
+ done
+
);
diff --git a/src/components/buttons/playButton.jsx b/src/components/buttons/playButton.jsx
index c4b494e..2bac558 100644
--- a/src/components/buttons/playButton.jsx
+++ b/src/components/buttons/playButton.jsx
@@ -7,8 +7,6 @@ import Fab from "@mui/material/Fab";
import LinearProgress from "@mui/material/LinearProgress";
import Typography from "@mui/material/Typography";
-import { MdiPlayOutline } from "../icons/mdiPlayOutline";
-
import {
usePlaybackDataLoadStore,
usePlaybackStore,
@@ -330,7 +328,14 @@ const PlayButton = ({
size={size}
{...buttonProps}
>
-
+
+ play_arrow
+
);
} else {
@@ -339,7 +344,16 @@ const PlayButton = ({
className={className}
variant="contained"
onClick={handleClick}
- startIcon={}
+ startIcon={
+
+ play_arrow
+
+ }
{...buttonProps}
sx={{
position: "relative",
diff --git a/src/components/card/actorCards.jsx b/src/components/card/actorCards.jsx
index 645e4dc..56815c5 100644
--- a/src/components/card/actorCards.jsx
+++ b/src/components/card/actorCards.jsx
@@ -74,7 +74,9 @@ export const ActorCard = ({
/>
)}
-
+
+ done
+
{overrideIcon
- ? TypeIconCollectionCard[overrideIcon]
- : TypeIconCollectionCard[item.Type]}
+ ? getTypeIcon(overrideIcon)
+ : getTypeIcon(item.Type)}
-
+
+ done
+
)}
{!!imageBlurhash && (
@@ -90,7 +92,9 @@ export const EpisodeCard = ({
/>
)}
carouselRef.previous()}
>
-
+
+ chevron_left
+
carouselRef.next()}
>
-
+
+ chevron_right
+
diff --git a/src/components/carouselSlide/index.jsx b/src/components/carouselSlide/index.jsx
index 91535ed..c46d767 100644
--- a/src/components/carouselSlide/index.jsx
+++ b/src/components/carouselSlide/index.jsx
@@ -17,7 +17,7 @@ import CarouselSlideError from "../errors/carousel";
import { MdiStar } from "../icons/mdiStar";
import { endsAt, getRuntime } from "../../utils/date/time";
import { useNavigate } from "react-router-dom";
-import { MediaTypeIconCollection } from "../utils/iconsCollection";
+import { MediaTypeIconCollection, getTypeIcon } from "../utils/iconsCollection";
import { MdiChevronRight } from "../icons/mdiChevronRight";
import { useQuery } from "@tanstack/react-query";
@@ -123,7 +123,7 @@ const CarouselSlide = ({ item }) => {
>
)}
- {MediaTypeIconCollection[item.Type]}
+ {getTypeIcon(item.Type)}
{
{item.Overview}
- {/* TODO Link PLay and More info buttons in carousel */}
{
size="large"
color="white"
variant="outlined"
- endIcon={}
+ endIcon={
+
+ chevron_right
+
+ }
onClick={handleMoreInfo}
>
More info
@@ -328,4 +336,4 @@ const CarouselSlide = ({ item }) => {
);
};
-export default memo(CarouselSlide);
+export default CarouselSlide;
diff --git a/src/components/menu/sidemenu.jsx b/src/components/menu/sidemenu.jsx
index 324ca23..1722b16 100644
--- a/src/components/menu/sidemenu.jsx
+++ b/src/components/menu/sidemenu.jsx
@@ -25,7 +25,10 @@ import Typography from "@mui/material/Typography";
import { MdiClose } from "../icons/mdiClose";
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";
@@ -151,7 +154,7 @@ export const SideMenu = () => {
className="sidemenu-item small"
>
-
+ {getTypeIcon("Home")}
{
className="sidemenu-item"
>
- {
- MediaCollectionTypeIconCollection[
- lib
- .CollectionType
- ]
- }
+ {getTypeIcon(
+ lib.CollectionType,
+ )}
,
@@ -43,15 +44,6 @@ export const MediaCollectionTypeIconCollection = {
};
export const MediaCollectionTypeIconCollectionCard = {
- universal: ,
- movies: ,
- music: ,
- playlists: ,
- tvshows: ,
- boxsets: ,
- musicvideos: ,
- trailers: ,
- books: ,
photos: ,
livetv: ,
folder: ,
@@ -67,47 +59,109 @@ export const MediaTypeIconCollection = {
AudioBook: ,
};
-export const TypeIconCollectionCard = {
- Actor: ,
- AggregateFolder: ,
- Audio: ,
- AudioBook: ,
- BasePluginFolder: ,
- Book: ,
- BoxSet: ,
- Channel: ,
- ChannelFolderItem: ,
- CollectionFolder: ,
- Episode: ,
- Folder: ,
- LiveTvChannel: ,
- LiveTvProgram: ,
- ManualPlaylistsFolder: (
-
- ),
- Movie: ,
- MusicAlbum: ,
- MusicArtist: ,
- MusicGenre: ,
- MusicVideo: ,
- Person: ,
- Photo: ,
- PhotoAlbum: ,
- Playlist: ,
- PlaylistsFolder: ,
- Program: ,
- Recording: ,
- Season: ,
- Series: ,
- Studio: ,
- Trailer: ,
- TvChannel: ,
- TvProgram: ,
- User: ,
- UserRootFolder: ,
- UserView: ,
- Video: ,
- Year: ,
- Genre: ,
- Library: ,
+export const getTypeIcon = (icon) => {
+ switch (icon) {
+ case "Home":
+ return home
;
+ case BaseItemKind.Audio:
+ return mic
;
+ case BaseItemKind.AudioBook:
+ return (
+ library_book
+ );
+ case BaseItemKind.Book:
+ return book
;
+ case "boxsets":
+ case BaseItemKind.BoxSet:
+ return (
+
+ video_library
+
+ );
+ case "livetv":
+ case BaseItemKind.TvProgram:
+ case BaseItemKind.TvChannel:
+ case BaseItemKind.Program:
+ case BaseItemKind.Recording:
+ case BaseItemKind.LiveTvChannel:
+ case BaseItemKind.LiveTvProgram:
+ case BaseItemKind.ChannelFolderItem:
+ case BaseItemKind.Channel:
+ return (
+
+ settings_input_antenna
+
+ );
+ case "tvshows":
+ case BaseItemKind.Season:
+ case BaseItemKind.Series:
+ case BaseItemKind.Episode:
+ return tv_gen
;
+ case "playlists":
+ case BaseItemKind.Playlist:
+ case BaseItemKind.PlaylistsFolder:
+ case BaseItemKind.ManualPlaylistsFolder:
+ return (
+ queue_music
+ );
+ case "movies":
+ case BaseItemKind.Movie:
+ return movie
;
+ case BaseItemKind.MusicAlbum:
+ return album
;
+ case BaseItemKind.MusicArtist:
+ return artist
;
+ case BaseItemKind.Genre:
+ case BaseItemKind.MusicGenre:
+ return (
+ domino_mask
+ );
+ case "musicvideos":
+ case BaseItemKind.MusicVideo:
+ return (
+ music_video
+ );
+ case "User":
+ case BaseItemKind.Person:
+ return person
;
+ case BaseItemKind.Photo:
+ return image
;
+ case "photos":
+ case BaseItemKind.PhotoAlbum:
+ return (
+
+ photo_library
+
+ );
+ case "universal":
+ case BaseItemKind.Studio:
+ return category
;
+ case "trailers":
+ case BaseItemKind.Trailer:
+ return (
+
+ smart_display
+
+ );
+ case BaseItemKind.Video:
+ return theaters
;
+ case "music":
+ return (
+
+ library_music
+
+ );
+ case "books":
+ return (
+
+ library_books
+
+ );
+ case "folders":
+ return folder
;
+ default:
+ return (
+ description
+ );
+ }
};
diff --git a/src/routes/home/home.module.scss b/src/routes/home/home.module.scss
index f39df3d..4fc34cd 100644
--- a/src/routes/home/home.module.scss
+++ b/src/routes/home/home.module.scss
@@ -68,22 +68,22 @@
height: 100%;
transition: opacity 0.5s;
}
- &-icon {
+
+ &-icon-container {
position: absolute;
- font-size: 15em !important;
- left: 70%;
- top: 50%;
- transform: translate(-50%, -50%);
- fill: url(#clr-gradient-default) !important;
- &-container {
+ background: $clr-gradient-dark;
+ // background: url("/public/assetsStatic//meshbackground.png");
+ z-index: 0;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ .material-symbols-rounded {
position: absolute;
- background: $clr-gradient-dark;
- // background: url("/public/assetsStatic//meshbackground.png");
- z-index: 0;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
+ font-size: 15em !important;
+ left: 70%;
+ top: 50%;
+ transform: translate(-50%, -50%);
}
}
}
diff --git a/src/routes/home/index.jsx b/src/routes/home/index.jsx
index ce97dca..bed0cb3 100644
--- a/src/routes/home/index.jsx
+++ b/src/routes/home/index.jsx
@@ -263,6 +263,9 @@ const Home = () => {
)[0]
]
}
+ overrideIcon={
+ item.CollectionType
+ }
>
);
},
diff --git a/src/routes/library/index.jsx b/src/routes/library/index.jsx
index 8233d87..c4fc54f 100644
--- a/src/routes/library/index.jsx
+++ b/src/routes/library/index.jsx
@@ -67,7 +67,6 @@ const LibraryView = () => {
return usr.data;
},
networkMode: "always",
- enabled: Boolean(api),
});
const [sortAscending, setSortAscending] = useState(true);
@@ -348,6 +347,7 @@ const LibraryView = () => {
useState(() => {
// Remove App backdrop in library page
setAppBackdrop("", "");
+ console.log(items);
}, []);
return (
diff --git a/src/styles/global.scss b/src/styles/global.scss
index 2e9e55f..5dee9fa 100644
--- a/src/styles/global.scss
+++ b/src/styles/global.scss
@@ -141,8 +141,9 @@ h1 {
}
.material-symbols-rounded {
- font-variation-settings: "FILL" 0, "wght" 200, "GRAD" 25, "opsz" 32;
- font-size: 1em !important;
+ font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 25, "opsz" 40;
+ font-size: 1.1em;
+ transition: all $transition-time-default;
}
.audio-playing .scrollY {
@@ -161,3 +162,8 @@ h1 {
.scrollY {
transition: all $transition-time-default !important;
}
+
+// Normalize listItemIcons for material symbols
+.MuiListItemIcon-root {
+ font-size: 24px;
+}