diff --git a/README.md b/README.md index 32c51c4..2c8280d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # RpgMaestro ## TODO - Youtube to mp3 - - make a script that do conversion on my server and put it in correct directory + - make a script that do conversion on my server and put it in correct directory ✅ - upload on fourgate.cloud.private by default - for now, add them to default session via API - auto create the track in RPG maestro shared db <- this is not possible yet, might want to think about that.. like a catalogue ? diff --git a/apps/rpg-maestro-ui/src/app/app.tsx b/apps/rpg-maestro-ui/src/app/app.tsx index f248412..401bc07 100644 --- a/apps/rpg-maestro-ui/src/app/app.tsx +++ b/apps/rpg-maestro-ui/src/app/app.tsx @@ -17,9 +17,6 @@ export function App() { {/* START: routes */} {/* These routes and navigation have been generated for you */} {/* Feel free to move and update them to fit your needs */} -
-
-
} /> } /> diff --git a/apps/rpg-maestro-ui/src/app/clients/audio-player-readonly.css b/apps/rpg-maestro-ui/src/app/clients/audio-player-readonly.css new file mode 100644 index 0000000..f8cd311 --- /dev/null +++ b/apps/rpg-maestro-ui/src/app/clients/audio-player-readonly.css @@ -0,0 +1,33 @@ +.rhap_controls-section { + display: flex; + justify-content: space-evenly; + align-content: center; + align-items: center; + width: 80%; +} + +.rhap_main-controls { +} + +.rhap_volume-controls { + flex: none; + +} + +.rhap_volume-container { + flex: none; + min-width: 100px; + width: 10vw; +} + +.rhap_additional-controls { + display: none; +} + +.rhap_progress-section{ + cursor: not-allowed; +} +.rhap_progress-section .rhap_progress-bar, +.rhap_progress-section .rhap_progress-container { + pointer-events: none; +} \ No newline at end of file diff --git a/apps/rpg-maestro-ui/src/app/clients/clients-ui.tsx b/apps/rpg-maestro-ui/src/app/clients/clients-ui.tsx index efcb0be..93e1918 100644 --- a/apps/rpg-maestro-ui/src/app/clients/clients-ui.tsx +++ b/apps/rpg-maestro-ui/src/app/clients/clients-ui.tsx @@ -6,6 +6,8 @@ import { resyncCurrentTrackIfNeeded } from '../track-sync/track-sync'; import { displayError } from '../error-utils'; import { PlayingTrack } from '@rpg-maestro/rpg-maestro-api-contract'; import GithubSourceCodeLink from '../ui-components/github-source-code-link/github-source-code-link'; +import './audio-player-readonly.css'; +import MusicNoteIcon from '@mui/icons-material/MusicNote'; export function ClientsUi() { const [currentTrack, setCurrentTrack] = useState(null); @@ -64,15 +66,43 @@ export function ClientsUi() { return ( <> -
-
-

RPG-Maestro player UI

-
-

{currentTrack?.name}

- -
- +
+

RPG-Maestro player UI

+
+ {currentTrack?.name}} + customIcons={{ + pause: + }} + />
+