mirror of
https://github.com/mmjee/Piped-Material.git
synced 2024-12-06 19:26:36 +01:00
Localize durations and update dependencies
This commit is contained in:
@@ -12,15 +12,13 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import formatDuration from 'format-duration'
|
||||
|
||||
export default {
|
||||
name: 'VideoChapters',
|
||||
props: ['chapters'],
|
||||
computed: {
|
||||
humanizedChapters () {
|
||||
return this.chapters.map(ch => {
|
||||
ch.humanizedStart = formatDuration(ch.start * 1000)
|
||||
ch.humanizedStart = this.$store.getters['i18n/fmtDuration'](ch.start)
|
||||
return ch
|
||||
})
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
{{ video.uploadedDate }}
|
||||
</span>
|
||||
<br/>
|
||||
{{ timeFormat(video.duration) }}
|
||||
{{ $store.getters['i18n/fmtDuration'](video.duration) }}
|
||||
</v-card-text>
|
||||
<slot name="bottom" />
|
||||
</v-card>
|
||||
@@ -102,9 +102,6 @@ export default {
|
||||
this.alreadyWatched = false
|
||||
}
|
||||
}
|
||||
},
|
||||
timeFormat (...args) {
|
||||
return LibPiped.timeFormat(...args)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user