Files
newfreeplanet_OLD/src/components/Footer/Footer.ts

76 lines
1.8 KiB
TypeScript
Raw Normal View History

2021-08-31 18:09:59 +02:00
import {
defineComponent,
} from 'vue'
import { tools } from '@src/store/Modules/tools'
import { static_data } from '@src/db/static_data'
import { useQuasar } from 'quasar'
import { useGlobalStore } from '@store/globalStore'
2021-09-16 21:08:02 +02:00
import { Logo } from '@/components/logo'
2021-08-31 18:09:59 +02:00
import { useI18n } from '@src/boot/i18n'
2021-09-16 21:08:02 +02:00
import { toolsext } from '@store/Modules/toolsext'
import { FormNewsletter } from '@/components/FormNewsletter'
import { CFacebookFrame } from '@/components/CFacebookFrame'
import MixinBase from '../../mixins/mixin-base'
2021-08-31 18:09:59 +02:00
export default defineComponent({
name: 'Footer',
2021-09-16 21:08:02 +02:00
components: { Logo, FormNewsletter, CFacebookFrame },
2021-08-31 18:09:59 +02:00
setup() {
const $q = useQuasar()
const globalStore = useGlobalStore()
2021-09-16 21:08:02 +02:00
const { getarrValDb, getValDb } = MixinBase()
2021-08-31 18:09:59 +02:00
console.log('Footer - INIT')
function TelegramSupport() {
return globalStore.getValueSettingsByKey('TELEGRAM_SUPPORT', false)
}
function Whatsapp_Cell() {
return globalStore.getValueSettingsByKey('WHATSAPP_CELL', false)
}
function Telegram_UsernameHttp() {
return tools.getHttpForTelegram(globalStore.getValueSettingsByKey('TELEGRAM_USERNAME', false))
}
function FBPage() {
const fb = globalStore.getValueSettingsByKey('URL_FACEBOOK', false)
return fb
}
function InstagramPage() {
return globalStore.getValueSettingsByKey('URL_INSTAGRAM', false)
}
function TwitterPage() {
return globalStore.getValueSettingsByKey('URL_TWITTER', false)
}
function ChatWhatsapp() {
// @ts-ignore
2021-09-16 21:08:02 +02:00
return tools.getHttpForWhatsapp(this.Whatsapp_Cell())
2021-08-31 18:09:59 +02:00
}
return {
TelegramSupport,
InstagramPage,
Whatsapp_Cell,
TwitterPage,
ChatWhatsapp,
FBPage,
Telegram_UsernameHttp,
static_data,
2021-09-16 21:08:02 +02:00
tools,
toolsext,
getarrValDb,
getValDb
2021-08-31 18:09:59 +02:00
}
},
})