mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-22 02:35:32 -05:00
[web] Rename formatters library
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
:lines="[
|
||||
item.item.name,
|
||||
item.item.artist,
|
||||
$filters.toDate(item.item.date_released)
|
||||
$formatters.toDate(item.item.date_released)
|
||||
]"
|
||||
@open="open(item.item)"
|
||||
@open-details="openDetails(item.item)"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
:lines="[
|
||||
item.name,
|
||||
item.artists[0]?.name,
|
||||
$filters.toDate(item.release_date)
|
||||
$formatters.toDate(item.release_date)
|
||||
]"
|
||||
@open="open(item)"
|
||||
@open-details="openDetails(item)"
|
||||
|
||||
@@ -89,13 +89,13 @@ export default {
|
||||
},
|
||||
{
|
||||
key: 'property.release-date',
|
||||
value: this.$filters.toDate(this.item.date_released)
|
||||
value: this.$formatters.toDate(this.item.date_released)
|
||||
},
|
||||
{ key: 'property.year', value: this.item.year },
|
||||
{ key: 'property.tracks', value: this.item.track_count },
|
||||
{
|
||||
key: 'property.duration',
|
||||
value: this.$filters.toTimecode(this.item.length_ms)
|
||||
value: this.$formatters.toTimecode(this.item.length_ms)
|
||||
},
|
||||
{
|
||||
key: 'property.type',
|
||||
@@ -103,7 +103,7 @@ export default {
|
||||
},
|
||||
{
|
||||
key: 'property.added-on',
|
||||
value: this.$filters.toDateTime(this.item.time_added)
|
||||
value: this.$formatters.toDateTime(this.item.time_added)
|
||||
}
|
||||
],
|
||||
uri: this.item.uri
|
||||
|
||||
@@ -27,7 +27,7 @@ export default {
|
||||
},
|
||||
{
|
||||
key: 'property.release-date',
|
||||
value: this.$filters.toDate(this.item.release_date)
|
||||
value: this.$formatters.toDate(this.item.release_date)
|
||||
},
|
||||
{ key: 'property.type', value: this.item.album_type }
|
||||
],
|
||||
|
||||
@@ -27,7 +27,7 @@ export default {
|
||||
},
|
||||
{
|
||||
key: 'property.added-on',
|
||||
value: this.$filters.toDateTime(this.item.time_added)
|
||||
value: this.$formatters.toDateTime(this.item.time_added)
|
||||
}
|
||||
],
|
||||
uri: this.item.uri
|
||||
|
||||
@@ -32,7 +32,7 @@ export default {
|
||||
},
|
||||
{
|
||||
key: 'property.duration',
|
||||
value: this.$filters.toTimecode(this.item.length_ms)
|
||||
value: this.$formatters.toTimecode(this.item.length_ms)
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ export default {
|
||||
{ key: 'property.tracks', value: this.item.track_count },
|
||||
{
|
||||
key: 'property.duration',
|
||||
value: this.$filters.toTimecode(this.item.length_ms)
|
||||
value: this.$formatters.toTimecode(this.item.length_ms)
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ export default {
|
||||
},
|
||||
{
|
||||
key: 'property.duration',
|
||||
value: this.$filters.toTimecode(this.item.length_ms)
|
||||
value: this.$formatters.toTimecode(this.item.length_ms)
|
||||
},
|
||||
{ key: 'property.path', value: this.item.path },
|
||||
{
|
||||
|
||||
@@ -42,7 +42,7 @@ export default {
|
||||
{ key: 'property.composer', value: this.item.composer },
|
||||
{
|
||||
key: 'property.release-date',
|
||||
value: this.$filters.toDate(this.item.date_released)
|
||||
value: this.$formatters.toDate(this.item.date_released)
|
||||
},
|
||||
{ key: 'property.year', value: this.item.year },
|
||||
{ key: 'property.genre', value: this.item.genre },
|
||||
@@ -56,7 +56,7 @@ export default {
|
||||
key: 'property.duration',
|
||||
value:
|
||||
this.item.length_ms > 0 &&
|
||||
this.$filters.toTimecode(this.item.length_ms)
|
||||
this.$formatters.toTimecode(this.item.length_ms)
|
||||
},
|
||||
{
|
||||
key: 'property.type',
|
||||
@@ -75,7 +75,7 @@ export default {
|
||||
},
|
||||
{
|
||||
key: 'property.added-on',
|
||||
value: this.$filters.toDateTime(this.item.time_added)
|
||||
value: this.$formatters.toDateTime(this.item.time_added)
|
||||
},
|
||||
{
|
||||
key: 'property.rating',
|
||||
|
||||
@@ -34,7 +34,7 @@ export default {
|
||||
},
|
||||
{
|
||||
key: 'property.release-date',
|
||||
value: this.$filters.toDate(this.item.album.release_date)
|
||||
value: this.$formatters.toDate(this.item.album.release_date)
|
||||
},
|
||||
{
|
||||
key: 'property.position',
|
||||
@@ -42,7 +42,7 @@ export default {
|
||||
},
|
||||
{
|
||||
key: 'property.duration',
|
||||
value: this.$filters.toTimecode(this.item.duration_ms)
|
||||
value: this.$formatters.toTimecode(this.item.duration_ms)
|
||||
},
|
||||
{ key: 'property.path', value: this.item.uri }
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user