Add support for full year display in isocalendar (#10)

* fix(inst): base=0 flag combined with other base.part flags is now correctly handled

* ref(plugins): Space adjustements in plugins code

* feat(plugins/isocalendar): Add support for full year

* feat(repo): Update package.json

* fix(plugins/isocalendar): Isocalendar first row sometimes displayed 6 days instead of 7
This commit is contained in:
Simon Lecoq
2020-11-26 18:42:59 +01:00
committed by GitHub
parent 3a180efb5b
commit eaa844e275
11 changed files with 124 additions and 164 deletions

View File

@@ -23,14 +23,12 @@
//Check if plugin is enabled and requirements are met
if ((!enabled)||(!q.music))
return null
//Initialization
const raw = {
get provider() { return providers[provider]?.name ?? "" },
get mode() { return modes[mode] ?? "Unconfigured music plugin"},
}
let tracks = null
//Parameters override
let {"music.provider":provider = "", "music.mode":mode = "", "music.playlist":playlist = null, "music.limit":limit = 4} = q
//Auto-guess parameters
@@ -57,7 +55,6 @@
}
//Limit
limit = Math.max(1, Math.min(100, Number(limit)))
//Handle mode
switch (mode) {
//Playlist mode