mirror of
https://github.com/Dummi26/musicdb.git
synced 2025-12-14 20:06:16 +01:00
init
This commit is contained in:
3
musicdb-server/assets/album-view.html
Normal file
3
musicdb-server/assets/album-view.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<h3>\:name</h3>
|
||||
<button hx-post="/queue/add-album/\:id" hx-swap="none">Queue</button>
|
||||
\:songs
|
||||
1
musicdb-server/assets/albums_one.html
Normal file
1
musicdb-server/assets/albums_one.html
Normal file
@@ -0,0 +1 @@
|
||||
<button hx-get="/album-view/\:id" hx-target="#album-view">\:name</button>
|
||||
2
musicdb-server/assets/artist-view.html
Normal file
2
musicdb-server/assets/artist-view.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<h3>\:name</h3>
|
||||
\:albums
|
||||
2
musicdb-server/assets/artists.html
Normal file
2
musicdb-server/assets/artists.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<h3>Artists</h3>
|
||||
\:artists
|
||||
1
musicdb-server/assets/artists_one.html
Normal file
1
musicdb-server/assets/artists_one.html
Normal file
@@ -0,0 +1 @@
|
||||
<button hx-get="/artist-view/\:id" hx-target="#artist-view">\:name</button>
|
||||
3
musicdb-server/assets/queue.html
Normal file
3
musicdb-server/assets/queue.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<h2>Queue</h2>
|
||||
<div>Now Playing: <b>\:currentTitle</b></div>
|
||||
\:content
|
||||
10
musicdb-server/assets/queue_folder.html
Normal file
10
musicdb-server/assets/queue_folder.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<div>
|
||||
<small>>></small>
|
||||
<button hx-post="/queue/goto/\:path" hx-swap="none">⏵</button>
|
||||
<small>\:name</small>
|
||||
</div>
|
||||
\:content
|
||||
<div>
|
||||
<small><<</small>
|
||||
<button hx-post="/queue/remove/\:path" hx-swap="none">x</button>
|
||||
</div>
|
||||
10
musicdb-server/assets/queue_folder_current.html
Normal file
10
musicdb-server/assets/queue_folder_current.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<div>
|
||||
<small>>></small>
|
||||
<button hx-post="/queue/goto/\:path" hx-swap="none">⏵</button>
|
||||
<small><b>\:name</b></small>
|
||||
</div>
|
||||
\:content
|
||||
<div>
|
||||
<small><<</small>
|
||||
<button hx-post="/queue/remove/\:path" hx-swap="none">x</button>
|
||||
</div>
|
||||
5
musicdb-server/assets/queue_song.html
Normal file
5
musicdb-server/assets/queue_song.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<div>
|
||||
<button hx-post="/queue/remove/\:path" hx-swap="none">x</button>
|
||||
<button hx-post="/queue/goto/\:path" hx-swap="none">⏵</button>
|
||||
\:title
|
||||
</div>
|
||||
5
musicdb-server/assets/queue_song_current.html
Normal file
5
musicdb-server/assets/queue_song_current.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<div>
|
||||
<button hx-post="/queue/remove/\:path" hx-swap="none">x</button>
|
||||
<button hx-post="/queue/goto/\:path" hx-swap="none">⏵</button>
|
||||
<b>\:title</b>
|
||||
</div>
|
||||
24
musicdb-server/assets/root.html
Normal file
24
musicdb-server/assets/root.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="color-scheme" content="light dark">
|
||||
<script src="https://unpkg.com/htmx.org@1.9.3"></script>
|
||||
<title>MusicDb</title>
|
||||
</head>
|
||||
<body>
|
||||
<div hx-sse="connect:/sse">
|
||||
<div hx-sse="swap:playing">(loading)</div>
|
||||
<button hx-post="/resume" hx-swap="none">⏵</button>
|
||||
<button hx-post="/pause" hx-swap="none">⏸</button>
|
||||
<button hx-post="/stop" hx-swap="none">⏹</button>
|
||||
<button hx-post="/next" hx-swap="none">⏭</button>
|
||||
<button hx-post="/queue/clear" hx-swap="none">-</button>
|
||||
<div hx-sse="swap:queue">(loading)</div>
|
||||
<div hx-sse="swap:artists">(loading)</div>
|
||||
<div id="artist-view"></div>
|
||||
<div id="album-view"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
1
musicdb-server/assets/songs_one.html
Normal file
1
musicdb-server/assets/songs_one.html
Normal file
@@ -0,0 +1 @@
|
||||
<button hx-post="/queue/add-song/\:id" hx-swap="none">\:title</button>
|
||||
Reference in New Issue
Block a user