[web] Replace date library moments.js with luxon

This commit is contained in:
chme
2022-04-15 19:47:36 +02:00
parent 708765537c
commit 81491367fc
16 changed files with 72 additions and 69 deletions

View File

@@ -34,7 +34,7 @@
v-if="album.item.date_released && album.item.media_kind === 'music'"
class="subtitle is-7 has-text-grey has-text-weight-normal"
>
{{ $filters.time(album.item.date_released, 'L') }}
{{ $filters.date(album.item.date_released) }}
</h2>
</div>
</div>

View File

@@ -35,7 +35,7 @@
<p v-if="album.date_released">
<span class="heading">Release date</span>
<span class="title is-6">{{
$filters.time(album.date_released, 'L')
$filters.date(album.date_released)
}}</span>
</p>
<p v-else-if="album.year > 0">
@@ -49,7 +49,7 @@
<p>
<span class="heading">Length</span>
<span class="title is-6">{{
$filters.duration(album.length_ms)
$filters.durationInHours(album.length_ms)
}}</span>
</p>
<p>
@@ -61,7 +61,7 @@
<p>
<span class="heading">Added at</span>
<span class="title is-6">{{
$filters.time(album.time_added, 'L LT')
$filters.datetime(album.time_added)
}}</span>
</p>
</div>

View File

@@ -27,7 +27,7 @@
<p>
<span class="heading">Added at</span>
<span class="title is-6">{{
$filters.time(artist.time_added, 'L LT')
$filters.datetime(artist.time_added)
}}</span>
</p>
</div>

View File

@@ -26,7 +26,7 @@
<p>
<span class="heading">Length</span>
<span class="title is-6">{{
$filters.duration(composer.length_ms)
$filters.durationInHours(composer.length_ms)
}}</span>
</p>
</div>

View File

@@ -23,7 +23,7 @@
<p>
<span class="heading">Length</span>
<span class="title is-6">{{
$filters.duration(genre.length_ms)
$filters.durationInHours(genre.length_ms)
}}</span>
</p>
</div>

View File

@@ -56,7 +56,7 @@
<p>
<span class="heading">Length</span>
<span class="title is-6">{{
$filters.duration(item.length_ms)
$filters.durationInHours(item.length_ms)
}}</span>
</p>
<p>

View File

@@ -48,7 +48,7 @@
<p v-if="track.date_released">
<span class="heading">Release date</span>
<span class="title is-6">{{
$filters.time(track.date_released, 'L')
$filters.date(track.date_released)
}}</span>
</p>
<p v-else-if="track.year > 0">
@@ -70,7 +70,7 @@
<p>
<span class="heading">Length</span>
<span class="title is-6">{{
$filters.duration(track.length_ms)
$filters.durationInHours(track.length_ms)
}}</span>
</p>
<p>
@@ -107,7 +107,7 @@
<p>
<span class="heading">Added at</span>
<span class="title is-6">{{
$filters.time(track.time_added, 'L LT')
$filters.datetime(track.time_added)
}}</span>
</p>
<p>

View File

@@ -11,7 +11,7 @@
<b>{{ album.artists[0].name }}</b>
</h2>
<h2 class="subtitle is-7 has-text-grey has-text-weight-normal">
({{ album.album_type }}, {{ $filters.time(album.release_date, 'L') }})
({{ album.album_type }}, {{ $filters.date(album.release_date) }})
</h2>
</div>
<div class="media-right">

View File

@@ -32,7 +32,7 @@
<p>
<span class="heading">Release date</span>
<span class="title is-6">{{
$filters.time(album.release_date, 'L')
$filters.date(album.release_date)
}}</span>
</p>
<p>

View File

@@ -28,7 +28,7 @@
<p>
<span class="heading">Release date</span>
<span class="title is-6">{{
$filters.time(album.release_date, 'L')
$filters.date(album.release_date)
}}</span>
</p>
<p>
@@ -40,7 +40,7 @@
<p>
<span class="heading">Length</span>
<span class="title is-6">{{
$filters.duration(track.duration_ms)
$filters.durationInHours(track.duration_ms)
}}</span>
</p>
<p>