feat: show last played songs in web ui

This commit is contained in:
Felipe M 2025-05-13 12:49:59 +02:00
parent 7f16452a99
commit bcc1bce743
Signed by: fmartingr
GPG key ID: CCFBC5637D4000A8
6 changed files with 206 additions and 7 deletions

View file

@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Discord Jukebox Status</title>
<link rel="stylesheet" href="/static/styles.css">
<meta http-equiv="refresh" content="900"> <!-- Refresh page every 15 minutes to prevent memory issues -->
</head>
<body>
<div class="container">
@ -35,6 +36,15 @@
</div>
</div>
<div id="song-history" class="hidden">
<h2>Recently Played</h2>
<div class="history-container">
<ul id="history-list" class="history-list">
<!-- Song history will be populated here by JavaScript -->
</ul>
</div>
</div>
<div id="not-playing" class="hidden">
<div class="message">
<h2>No Song Playing</h2>