chore: migrate to script setup style

This commit is contained in:
argoyle committed 2024-02-02 19:08:02 +01:00
1 parent d1bcaf423f
commit 171e1039a7
15 files changed
+3468 -4540

No files matched your search

+6 -13
View File
@@ -2,20 +2,13 @@
<events />
</template>
<script lang='ts'>
<script setup lang='ts'>
import { useHead } from '@unhead/vue'
import Events from '~/components/pages/events/index.vue'
import { useTranslation } from '~/plugins/i18n'
export default {
name: 'IndexPage',
components: {
Events
},
head () {
const { t } = useTranslation()
return {
title: t('events.title')
}
}
}
const { t } = useTranslation()
useHead({
title: t('events.title')
})
</script>