PASSAGGIO A VITE !
AGG. 1.1.23
This commit is contained in:
@@ -3,21 +3,21 @@ import {
|
||||
defineComponent, onMounted, ref, toRef, watch,
|
||||
} from 'vue'
|
||||
|
||||
import { IMyElem, IMyPage } from '@src/model'
|
||||
import type { IMyElem, IMyPage } from '@src/model'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { LandingFooter } from '@/components/LandingFooter'
|
||||
import { CMyElem } from '@/components/CMyElem'
|
||||
import { CTitleBanner } from '@/components/CTitleBanner'
|
||||
import { CMyEditElem } from '@/components/CMyEditElem'
|
||||
import { CMyPageElem2 } from '@/components/CMyPageElem2'
|
||||
import { LandingFooter } from '@src/components/LandingFooter'
|
||||
import { CMyElem } from '@src/components/CMyElem'
|
||||
import { CTitleBanner } from '@src/components/CTitleBanner'
|
||||
import { CMyEditElem } from '@src/components/CMyEditElem'
|
||||
import { CMyPageElem2 } from '@src/components/CMyPageElem2'
|
||||
import { CExportImportPage } from '@src/components/CExportImportPage'
|
||||
|
||||
import { CImgTitle } from '../CImgTitle/index'
|
||||
import { CTitle } from '../CTitle/index'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { tools } from '@tools'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { useI18n } from '@/boot/i18n'
|
||||
import { shared_consts } from '@/common/shared_vuejs'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { shared_consts } from '@src/common/shared_vuejs'
|
||||
import objectId from '@src/js/objectId'
|
||||
import { useRouter } from 'vue-router'
|
||||
|
||||
@@ -95,7 +95,7 @@ export default defineComponent({
|
||||
const myelemVoid = ref({ _id: objectId(), active: true, type: shared_consts.ELEMTYPE.TEXT, container: '...', path: mypathin.value } as IMyElem)
|
||||
|
||||
|
||||
const selElem = ref(<IMyElem|null>globalStore.selElem)
|
||||
const selElem = ref(<IMyElem | null>globalStore.selElem)
|
||||
const site = ref(globalStore.site)
|
||||
|
||||
const onloading = ref(false)
|
||||
@@ -110,7 +110,7 @@ export default defineComponent({
|
||||
})
|
||||
|
||||
async function load() {
|
||||
// console.log('load', mypathin.value)
|
||||
console.log('load', mypathin.value, 'idapp', tools.getEnv('VITE_APP_ID'))
|
||||
|
||||
if (mypathin.value !== '') {
|
||||
onloading.value = true
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
<q-drawer
|
||||
v-model="visuEditor"
|
||||
v-if="selElem && editOn"
|
||||
v-if="selElem && editOn && !tools.isObjectEmpty(selElem)"
|
||||
show-if-above
|
||||
:breakpoint="350"
|
||||
side="right"
|
||||
@@ -174,30 +174,35 @@
|
||||
<q-dialog v-model="showexportPage">
|
||||
<q-card class="dialog_card">
|
||||
<q-toolbar class="bg-primary text-white">
|
||||
<q-toolbar-title>
|
||||
Esporta Pagina
|
||||
</q-toolbar-title>
|
||||
<q-toolbar-title> Esporta Pagina </q-toolbar-title>
|
||||
<q-btn flat round color="white" icon="close" v-close-popup></q-btn>
|
||||
</q-toolbar>
|
||||
<q-card-section class="q-pa-xs inset-shadow">
|
||||
<br>
|
||||
<CExportImportPage :idPage="rec._id" :nomefile="`esporta_${rec.path}.json`" :esporta="true"> </CExportImportPage>
|
||||
<br>
|
||||
<br />
|
||||
<CExportImportPage
|
||||
:idPage="rec._id"
|
||||
:nomefileprop="`esporta_${rec.path}.json`"
|
||||
:esporta="true"
|
||||
>
|
||||
</CExportImportPage>
|
||||
<br />
|
||||
</q-card-section>
|
||||
</q-card>
|
||||
</q-dialog>
|
||||
<q-dialog v-model="showimportPage">
|
||||
<q-card class="dialog_card">
|
||||
<q-toolbar class="bg-primary text-white">
|
||||
<q-toolbar-title>
|
||||
Esporta Pagina
|
||||
</q-toolbar-title>
|
||||
<q-toolbar-title> Esporta Pagina </q-toolbar-title>
|
||||
<q-btn flat round color="white" icon="close" v-close-popup></q-btn>
|
||||
</q-toolbar>
|
||||
<q-card-section class="q-pa-xs inset-shadow">
|
||||
<br>
|
||||
<CExportImportPage :idPage="rec._id" :nomefile="`esporta_${rec.path}.json`"> </CExportImportPage>
|
||||
<br>
|
||||
<br />
|
||||
<CExportImportPage
|
||||
:idPage="rec._id"
|
||||
:nomefileprop="`esporta_${rec.path}.json`"
|
||||
>
|
||||
</CExportImportPage>
|
||||
<br />
|
||||
</q-card-section>
|
||||
</q-card>
|
||||
</q-dialog>
|
||||
@@ -207,5 +212,5 @@
|
||||
<script lang="ts" src="./CMyPageElem.ts">
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import './CMyPageElem.scss';
|
||||
@import "./CMyPageElem.scss";
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user