feat(remote): remote control page for another Jellyfin client
- device list with live sessions, now-playing poster, metadata and overview - five round transport buttons, seek bar, subtitles menu, volume, quality and fullscreen - cover-derived wall colour, app accent and a compact service bar - reachable from the app bar, the drawer and the audio player menu
This commit is contained in:
1 parent
9f314582c0
commit
e93de2beea
5 files changed
+1289
-3
No files matched your search
@@ -29,6 +29,7 @@ const HIDDEN_PATHS = [
|
||||
"/settings",
|
||||
"/library",
|
||||
"/search",
|
||||
"/remote",
|
||||
// The home page draws its own header inside the hero frame.
|
||||
"/home",
|
||||
];
|
||||
@@ -36,9 +37,7 @@ const HIDDEN_PATHS = [
|
||||
/** Whether the global app header is drawn for this route. */
|
||||
export const shouldShowAppBar = (pathname: string) =>
|
||||
!HIDDEN_PATHS.some(
|
||||
(path) =>
|
||||
(pathname.startsWith(path) && pathname !== "/player/audio") ||
|
||||
pathname === "/",
|
||||
(path) => pathname.startsWith(path) || pathname === "/",
|
||||
);
|
||||
|
||||
const AppBarContent = () => {
|
||||
@@ -146,6 +145,14 @@ const AppBarContent = () => {
|
||||
<span className="material-symbols-rounded">search</span>
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
<Tooltip title="Пульт">
|
||||
<IconButton
|
||||
onClick={() => navigate({ to: "/remote" })}
|
||||
aria-label="Пульт"
|
||||
>
|
||||
<span className="material-symbols-rounded">settings_remote</span>
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
<Tooltip title="Избранное">
|
||||
<IconButton
|
||||
onClick={handleNavigateToFavorite}
|
||||
|
||||
@@ -90,6 +90,13 @@ export const NavigationDrawer = ({ open, onClose }: NavigationDrawerProps) => {
|
||||
primary="Поиск"
|
||||
onClick={onClose}
|
||||
/>
|
||||
<ListItemLink
|
||||
className="library-drawer-item"
|
||||
to="/remote"
|
||||
icon="settings_remote"
|
||||
primary="Пульт"
|
||||
onClick={onClose}
|
||||
/>
|
||||
<ListItemLink
|
||||
className="library-drawer-item"
|
||||
to="/favorite"
|
||||
|
||||
Reference in new issue
Block a user