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:
parent
9ce7beb42d
commit
9f63121028
1 changed files with 909 additions and 16 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue