Web Editor home made

This commit is contained in:
Surya Paolo
2022-11-17 08:10:43 +01:00
parent 711f1b515d
commit 495abc33be
77 changed files with 1742 additions and 1771 deletions

View File

@@ -6,23 +6,36 @@ import { tools } from '@store/Modules/tools'
import { useQuasar } from 'quasar'
import { useMeta } from 'quasar'
// You can declare a mixin as the same style as components.
export default function () {
function setmeta(mym: IMetaTags) {
// cancellarlo...
return true
}
function getMeta(mym: IMetaTags, t: any) {
//++Todo META TAGS!
/*
useMeta(() => {
return {
title: mym.title,
description: mym.description,
keywords: mym.keywords,
}
})
if (!mym || !mym.title)
return
return {
title: t('ws.sitename'),
titleTemplate: (title: any) => `${tools.getsuffisso()} ${mym.title} - ${t('ws.sitename')}`,
meta: {
keywords: {
name: 'keywords',
content: mym.keywords,
},
description: {
name: 'description',
content: mym.description,
},
equiv: { 'http-equiv': 'Content-Type', 'content': 'text/html; charset=UTF-8' },
},
}
*/
}
function getsrcbyimg(myimg: string) {
@@ -35,5 +48,6 @@ export default function () {
return {
setmeta,
getsrcbyimg,
getMeta,
}
}