diff --git a/backend/ui/showcase.css b/backend/ui/showcase.css
index adb209a..24bdd56 100644
--- a/backend/ui/showcase.css
+++ b/backend/ui/showcase.css
@@ -21,12 +21,21 @@ body {
.content {
width: 100%;
- display: flex;
+ display: none;
justify-content: center;
align-items: center;
flex-direction: column;
}
+.loaded {
+ display: block;
+}
+
+.loading {
+ display: flex;
+ height: 100vh;
+}
+
.playing-symbols {
position: absolute;
left: 10vw;
diff --git a/backend/ui/showcase.js b/backend/ui/showcase.js
index 84325a8..e9d6e83 100644
--- a/backend/ui/showcase.js
+++ b/backend/ui/showcase.js
@@ -98,6 +98,16 @@ createApp( {
source.onopen = () => {
this.hasLoaded = true;
+ if ( document.fonts.status === 'loaded' ) {
+ document.getElementById( 'loading' ).classList.remove( 'loading' );
+ document.getElementById( 'app' ).classList.add( 'loaded' );
+ } else {
+ document.fonts.onloadingdone = () => {
+ document.getElementById( 'loading' ).classList.remove( 'loading' );
+ document.getElementById( 'app' ).classList.add( 'loaded' );
+ };
+ }
+
};
let self = this;
diff --git a/frontend/src/app.js b/frontend/src/app.js
index 79e799c..69abcd2 100644
--- a/frontend/src/app.js
+++ b/frontend/src/app.js
@@ -82,8 +82,8 @@ app.get( '/useAppleMusic', ( req, res ) => {
app.get( '/openSongs', ( req, res ) => {
// res.send( '{ "data": [ "/home/janis/Music/KB2022" ] }' );
- res.send( '{ "data": [ "/mnt/storage/SORTED/Music/audio/KB2022" ] }' );
- // res.send( { 'data': dialog.showOpenDialogSync( { properties: [ 'openDirectory' ], title: 'Open music library folder' } ) } );
+ // res.send( '{ "data": [ "/mnt/storage/SORTED/Music/audio/KB2022" ] }' );
+ res.send( { 'data': dialog.showOpenDialogSync( { properties: [ 'openDirectory' ], title: 'Open music library folder' } ) } );
} );
app.get( '/showcase.js', ( req, res ) => {
diff --git a/frontend/src/client/appleMusic/appleMusicIcon.svg b/frontend/src/client/appleMusic/appleMusicIcon.svg
new file mode 100644
index 0000000..7fcf6a0
--- /dev/null
+++ b/frontend/src/client/appleMusic/appleMusicIcon.svg
@@ -0,0 +1,56 @@
+
+
+
diff --git a/frontend/src/client/appleMusic/index.html b/frontend/src/client/appleMusic/index.html
index 0cdc334..2d534c9 100644
--- a/frontend/src/client/appleMusic/index.html
+++ b/frontend/src/client/appleMusic/index.html
@@ -11,12 +11,25 @@
-
-
Apple Music
- +
+ autorenew
+
+ Loading player...
+
+
+
+
+
+
+ Apple Music integration
+
+
@@ -82,9 +95,9 @@
Your playlists
+
+ autorenew
+
Loading playlists...
+{{ playlist.title }}
-
+
-