diff --git a/front/package.json b/front/package.json index 44d3112ec..34231d27b 100644 --- a/front/package.json +++ b/front/package.json @@ -82,7 +82,6 @@ "vite": "2.8.6", "vite-plugin-pwa": "0.12.0", "vue-jest": "3.0.7", - "vue-template-compiler": "2.6.14", "workbox-core": "6.5.3", "workbox-precaching": "6.5.3", "workbox-routing": "6.5.3", diff --git a/front/src/components/About.vue b/front/src/components/About.vue index ece6baf24..d954a9e2e 100644 --- a/front/src/components/About.vue +++ b/front/src/components/About.vue @@ -252,7 +252,7 @@ import { mapState } from 'vuex' import { get } from 'lodash-es' import showdown from 'showdown' -import { humanSize } from '~/init/filters' +import { humanSize } from '~/utils/filters' import SignupForm from '~/components/auth/SignupForm.vue' import LogoText from '~/components/LogoText.vue' diff --git a/front/src/components/AboutPod.vue b/front/src/components/AboutPod.vue index f94308cae..4c3d0dfdd 100644 --- a/front/src/components/AboutPod.vue +++ b/front/src/components/AboutPod.vue @@ -278,7 +278,7 @@ We render some markdown to html here, the content is set by the admin so we shou class="right aligned" > - {{ defaultUploadQuota * 1000 * 1000 | humanSize }} + {{ humanSize(defaultUploadQuota * 1000 * 1000) }}
- {{ album.release_date | moment('Y') }} · + {{ momentFormat(album.release_date, 'Y') }} · import PlayButton from '~/components/audio/PlayButton.vue' +import { momentFormat} from '~/utils/filters' export default { components: { @@ -67,6 +68,9 @@ export default { props: { album: { type: Object, required: true } }, + setup () { + return { momentFormat } + }, computed: { imageUrl () { if (this.album.cover && this.album.cover.urls.original) { diff --git a/front/src/components/audio/artist/Card.vue b/front/src/components/audio/artist/Card.vue index dcfc3c031..f4e00b0f8 100644 --- a/front/src/components/audio/artist/Card.vue +++ b/front/src/components/audio/artist/Card.vue @@ -22,7 +22,7 @@ class="discrete link" :to="{name: 'library.artists.detail', params: {id: artist.id}}" > - {{ artist.name|truncate(30) }} + {{ truncate(artist.name, 30) }} @@ -67,6 +67,7 @@ + - - diff --git a/front/src/components/common/Duration.vue b/front/src/components/common/Duration.vue index 92b8725c4..5983bae3e 100644 --- a/front/src/components/common/Duration.vue +++ b/front/src/components/common/Duration.vue @@ -1,26 +1,29 @@ + + - diff --git a/front/src/components/common/HumanDate.vue b/front/src/components/common/HumanDate.vue index 5dc267adf..93b20751e 100644 --- a/front/src/components/common/HumanDate.vue +++ b/front/src/components/common/HumanDate.vue @@ -1,32 +1,32 @@ + + - diff --git a/front/src/components/common/HumanDuration.vue b/front/src/components/common/HumanDuration.vue index 83119c82e..8505a6f91 100644 --- a/front/src/components/common/HumanDuration.vue +++ b/front/src/components/common/HumanDuration.vue @@ -1,12 +1,18 @@ + + - diff --git a/front/src/components/library/AlbumBase.vue b/front/src/components/library/AlbumBase.vue index 9d69e79b0..6b6ff7daf 100644 --- a/front/src/components/library/AlbumBase.vue +++ b/front/src/components/library/AlbumBase.vue @@ -141,7 +141,7 @@ v-if="object.release_date || (totalTracks > 0)" class="ui small hidden divider" /> - {{ object.release_date | moment('Y') }} · + {{ momentFormat(object.release_date, 'Y') }} ·