First Committ

This commit is contained in:
Paolo Arena
2021-08-31 18:09:59 +02:00
commit 1d6c55807c
299 changed files with 55382 additions and 0 deletions

View File

@@ -0,0 +1,67 @@
import {
defineComponent, onMounted, ref, toRef,
} from 'vue'
import { IMyPage } from '@src/model'
import { useQuasar } from 'quasar'
import { useGlobalStore } from '@store/globalStore'
import { Footer } from '../Footer'
import { CImgTitle } from '../CImgTitle/index'
import { CTitle } from '../CTitle/index'
import MixinsMetaTags from '../../mixins/mixin-metatags'
export default defineComponent({
name: 'CMyPage',
components: { Footer, CImgTitle, CTitle },
mixins: [MixinsMetaTags],
props: {
title: String,
mypath: {
type: String,
required: false,
default: '',
},
img: {
type: String,
required: false,
default: '',
},
imgbackground: {
type: String,
required: false,
default: '',
},
sizes: {
type: String,
required: false,
default: '',
},
styleadd: {
type: String,
required: false,
default: '',
},
nofooter: {
type: Boolean,
required: false,
default: false,
},
},
setup(props) {
const $q = useQuasar()
const rec = ref<IMyPage | null>(null)
const mypath = toRef(props, 'mypath')
const globalStore = useGlobalStore()
const load = async (): Promise<void> => {
if (mypath.value !== '') rec.value = await globalStore.loadPage(mypath.value)
}
onMounted(load)
return { rec }
},
})