This commit is contained in:
Mark
2023-08-13 23:58:53 +02:00
commit 922e4fcc00
43 changed files with 6822 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
<h3>\:name</h3>
<button hx-post="/queue/add-album/\:id" hx-swap="none">Queue</button>
\:songs

View File

@@ -0,0 +1 @@
<button hx-get="/album-view/\:id" hx-target="#album-view">\:name</button>

View File

@@ -0,0 +1,2 @@
<h3>\:name</h3>
\:albums

View File

@@ -0,0 +1,2 @@
<h3>Artists</h3>
\:artists

View File

@@ -0,0 +1 @@
<button hx-get="/artist-view/\:id" hx-target="#artist-view">\:name</button>

View File

@@ -0,0 +1,3 @@
<h2>Queue</h2>
<div>Now Playing: <b>\:currentTitle</b></div>
\:content

View File

@@ -0,0 +1,10 @@
<div>
<small>&gt;&gt;</small>
<button hx-post="/queue/goto/\:path" hx-swap="none">&#x23F5;</button>
<small>\:name</small>
</div>
\:content
<div>
<small>&lt;&lt;</small>
<button hx-post="/queue/remove/\:path" hx-swap="none">x</button>
</div>

View File

@@ -0,0 +1,10 @@
<div>
<small>&gt;&gt;</small>
<button hx-post="/queue/goto/\:path" hx-swap="none">&#x23F5;</button>
<small><b>\:name</b></small>
</div>
\:content
<div>
<small>&lt;&lt;</small>
<button hx-post="/queue/remove/\:path" hx-swap="none">x</button>
</div>

View 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">&#x23F5;</button>
\:title
</div>

View 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">&#x23F5;</button>
<b>\:title</b>
</div>

View 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">&#x23F5;</button>
<button hx-post="/pause" hx-swap="none">&#x23F8;</button>
<button hx-post="/stop" hx-swap="none">&#x23F9;</button>
<button hx-post="/next" hx-swap="none">&#x23ED;</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>

View File

@@ -0,0 +1 @@
<button hx-post="/queue/add-song/\:id" hx-swap="none">\:title</button>