Animations, Policy, Toolbar Colors

This commit is contained in:
Surya Paolo
2022-11-23 10:27:36 +01:00
parent 358bdd5d1e
commit 46bf74e9e2
48 changed files with 1852 additions and 630 deletions

View File

@@ -9,6 +9,7 @@ import { CMyFieldDb } from '@/components/CMyFieldDb'
import { useGlobalStore } from '@store/globalStore'
import { costanti } from '@costanti'
import { tools } from '@src/store/Modules/tools'
export default defineComponent({
name: 'Confsite',
@@ -24,12 +25,34 @@ export default defineComponent({
mysite.value = await globalStore.caricaTabella('sites', process.env.APP_ID!)
}
function save(newval: any) {
console.log('ConfSite save')
tools.updateFonts(newval)
}
function saveCol(mycol: any) {
if (globalStore.site?.confpages) {
globalStore.site.confpages.col_toolbar = mycol
}
}
function saveBgCol(mycol: any) {
if (globalStore.site?.confpages) {
globalStore.site.confpages.col_bgfooter = mycol
}
}
onMounted(mounted)
return {
mysite,
costanti,
tab,
tools,
save,
saveCol,
saveBgCol,
globalStore,
}
}
})