From 01cabc705d43ba0947455f8fa2d5b4edaddbbc80 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Tue, 15 May 2018 22:24:20 +0200 Subject: [PATCH] See #195: track detail page now includes bitrate, duration and size --- front/src/components/library/Track.vue | 51 +++++++++++++++++++++++++- front/src/filters.js | 19 ++++++++++ 2 files changed, 69 insertions(+), 1 deletion(-) diff --git a/front/src/components/library/Track.vue b/front/src/components/library/Track.vue index 940086e02..155a1245a 100644 --- a/front/src/components/library/Track.vue +++ b/front/src/components/library/Track.vue @@ -44,6 +44,46 @@ +
+

{{ $t('Track information') }}

+ + + + + + + + + + + + + + + + + + +
+ {{ $t('Duration') }} + + {{ time.parse(file.duration) }} + + {{ $t('N/A') }} +
+ {{ $t('Size') }} + + {{ file.size | humanSize }} + + {{ $t('N/A') }} +
+ {{ $t('Bitrate') }} + + {{ file.bitrate | humanSize }}/s + + {{ $t('N/A') }} +
+

@@ -64,6 +104,8 @@