feat(history): browse my listening by year and month

GET /listens/months counts the listens that count in each calendar month,
newest first, in the time zone the client sends (the zone database is built
into the binary). GET /listens takes from and until to read one month, and
each listen now names its artists.

The web app has a History page: a button for each year with its listens, the
months of the year as bars, and the listens of the chosen month a day at a
time, with the choice kept in the address.
This commit is contained in:
tgiachi 2026-11-15 12:07:19 +01:00
commit 9f63121028

View file

@ -10,6 +10,7 @@ import (
"os/signal"
"syscall"
"time"
_ "time/tzdata" // the time zones that browsers send, also on a machine that has none
"github.com/gin-gonic/gin"
"go.uber.org/zap"