Files
newfreeplanet_OLD/src/root/home/home.ts
2022-11-17 08:10:43 +01:00

55 lines
1.3 KiB
TypeScript
Executable File

import { defineComponent, ref, onMounted, watch, computed } from 'vue'
import { useGlobalStore } from '@store/globalStore'
import { useRoute } from 'vue-router'
import { useUserStore } from '@store/UserStore'
import { tools } from '@src/store/Modules/tools'
import { static_data } from '@src/db/static_data'
import { toolsext } from '@src/store/Modules/toolsext'
import { CMyPageElem } from '@components'
import MixinBase from '@src/mixins/mixin-base'
import MixinMetaTags from '@/mixins/mixin-metatags'
import { useMeta } from 'quasar'
import { useI18n } from '@src/boot/i18n'
export default defineComponent({
name: 'Home',
components: { CMyPageElem },
setup() {
const userStore = useUserStore()
const globalStore = useGlobalStore()
const { t } = useI18n()
const isfinishLoading = computed(() => globalStore.finishLoading)
const { getMeta } = MixinMetaTags()
const { setValDb, getValDb } = MixinBase()
function inizia() {
if (globalStore.site) {
useMeta(getMeta({
title: globalStore.site.name,
description: globalStore.site.description,
keywords: globalStore.site.keywords,
}, t))
}
}
inizia()
return {
tools,
toolsext,
static_data,
getValDb,
globalStore,
isfinishLoading,
}
},
})