From c0c4bea988208f75fa4534b807a026de3f619eaf Mon Sep 17 00:00:00 2001 From: gammelalf Date: Wed, 25 Jan 2023 21:22:38 +0100 Subject: Switched from SvelteKit to Svelte --- web/src/main.svelte | 219 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 219 insertions(+) create mode 100644 web/src/main.svelte (limited to 'web/src/main.svelte') diff --git a/web/src/main.svelte b/web/src/main.svelte new file mode 100644 index 0000000..38b3699 --- /dev/null +++ b/web/src/main.svelte @@ -0,0 +1,219 @@ + + +
+
+

Add your song

+ + +
+
+ {#each searchResults as { title, artist, source, uri, weight } (uri)} +
+ + {artist + ' - ' + title} + {source} +
+ {/each} +
+

Playlist

+
+ {#each playlist as { title, artist, source, uri, weight } (uri)} +
+ + + {`${weight} ${artist} - ${title}`} + {`(${source})`} +
+ {/each} +
+
+ +
+ +

+ {#if currentSong !== null} + {currentSong.title}
{currentSong.artist} + {:else} + No songs schedulded :(
Try adding some. + {/if} +

+
+ + -- cgit v1.2.3