2019-10-11 18:34:14 +02:00
|
|
|
<template lang='pug'>
|
2020-01-15 23:47:17 +01:00
|
|
|
Home
|
2019-04-03 00:25:12 +02:00
|
|
|
</template>
|
2019-05-30 12:04:14 +02:00
|
|
|
<script>
|
|
|
|
import Home from '~/components/Home.vue'
|
2019-10-20 14:22:55 +02:00
|
|
|
import moment from 'moment-timezone'
|
|
|
|
import { mapState } from 'vuex'
|
2019-05-30 12:04:14 +02:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'Index',
|
2020-01-21 01:24:10 +01:00
|
|
|
components: { Home },
|
2020-01-15 23:47:17 +01:00
|
|
|
fetch ({ store }) {
|
|
|
|
moment.tz.setDefault(store.state.settings.instance_timezone)
|
2019-06-06 23:54:32 +02:00
|
|
|
},
|
2020-01-15 23:47:17 +01:00
|
|
|
computed: mapState(['settings']),
|
2019-10-28 17:33:20 +01:00
|
|
|
mounted (ctx) {
|
|
|
|
moment.tz.setDefault(this.settings.instance_timezone)
|
2020-01-15 23:47:17 +01:00
|
|
|
}
|
2019-05-30 12:04:14 +02:00
|
|
|
}
|
|
|
|
</script>
|