mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-12 00:19:09 +02:00
Add:Listening sessions calendar heat map
This commit is contained in:
@ -23,6 +23,11 @@ Vue.prototype.$addDaysToToday = (daysToAdd) => {
|
||||
if (!date || !isDate(date)) return null
|
||||
return date
|
||||
}
|
||||
Vue.prototype.$addDaysToDate = (jsdate, daysToAdd) => {
|
||||
var date = addDays(jsdate, daysToAdd)
|
||||
if (!date || !isDate(date)) return null
|
||||
return date
|
||||
}
|
||||
|
||||
Vue.prototype.$bytesPretty = (bytes, decimals = 2) => {
|
||||
if (isNaN(bytes) || bytes == 0) {
|
||||
|
Reference in New Issue
Block a user