eslint --fix --ext .js,.vue src

This commit is contained in:
Henry Jameson 2019-07-05 10:17:44 +03:00
parent 2c2b84d31d
commit 8d6750d9c2
86 changed files with 4963 additions and 2283 deletions

View file

@ -1,5 +1,8 @@
<template>
<time :datetime="time" :title="localeDateString">
<time
:datetime="time"
:title="localeDateString"
>
{{ $t(relativeTime.key, [relativeTime.num]) }}
</time>
</template>
@ -16,12 +19,6 @@ export default {
interval: null
}
},
created () {
this.refreshRelativeTimeObject()
},
destroyed () {
clearTimeout(this.interval)
},
computed: {
localeDateString () {
return typeof this.time === 'string'
@ -29,6 +26,12 @@ export default {
: this.time.toLocaleString()
}
},
created () {
this.refreshRelativeTimeObject()
},
destroyed () {
clearTimeout(this.interval)
},
methods: {
refreshRelativeTimeObject () {
const nowThreshold = typeof this.nowThreshold === 'number' ? this.nowThreshold : 1
@ -45,4 +48,4 @@ export default {
}
}
}
</script>
</script>