add twitch API stuff, add follow/sub/cheer labels

This commit is contained in:
ari melody 2026-07-24 03:54:29 +01:00
parent 8a7210ad56
commit 626540e728
Signed by: ari
GPG key ID: 60B5F0386E3DDB7E
17 changed files with 1143 additions and 3 deletions

View file

@ -106,7 +106,7 @@ func (srv *Service) BindRoutes(group *gin.RouterGroup) {
})
group.GET("/artwork", func(ctx *gin.Context) {
ctx.Header("cache-control", "no-cache")
ctx.Header("cache-control", "no-store")
if srv.track == nil || srv.track.ArtworkURL == "" {
http.ServeFileFS(ctx.Writer, ctx.Request, publicFS, "public/default-cover-art.png")

View file

@ -26,6 +26,5 @@
</div>
</div>
<script type="module" src="/music/public/music.js"></script>
<div id="cover"></div>
</body>
</html>

View file

@ -65,6 +65,7 @@ p {
left: 0;
bottom: 0;
width: min-content;
max-width: calc(100% - 4em);
padding: 2em;
}
@ -87,7 +88,7 @@ p {
}
.title-artist {
max-width: calc(100vw - 2em - 80px);
max-width: calc(100vw - 4em - 80px);
}
.title {
@ -118,3 +119,9 @@ p {
opacity: 0;
}
}
#music.switching {
.artwork {
filter: blur(4px);
}
}