- aggiornamenti guida RIS, FAQ

- Editor HTML aggiunto CSS e Script
- Statistiche
- CRISBalanceBar
- Inizio Sync... (ma disattivato)
This commit is contained in:
Surya Paolo
2025-12-02 22:16:24 +01:00
parent 8b6a636a96
commit a51bc5a8a2
53 changed files with 8041 additions and 1177 deletions

View File

@@ -8,6 +8,7 @@ import {
watch,
nextTick,
onUnmounted,
onUpdated,
} from 'vue';
import type { IOptCatalogo, ICoordGPS, IMyElem, ISocial } from '@src/model';
@@ -206,6 +207,8 @@ export default defineComponent({
const enableAdd = ref(true);
const visushare = ref(false);
const htmlContainer = ref(null);
const tabcatalogo = ref('griglia');
const enablePwa = computed(() => globalStore.site.confpages?.enablePwa);
@@ -338,6 +341,10 @@ export default defineComponent({
canShowVersion.value = true;
}, 60000);
setTimeout(() => {
executeScript();
}, 500);
if (props.myelem) newtype.value = props.myelem.type;
nextTick(() => {
@@ -442,6 +449,23 @@ export default defineComponent({
console.log('Invio via Telegram...');
};
const executeScript = () => {
if (myel.value.container3 && htmlContainer.value) {
try {
console.log('Script da eseguire:', myel.value.container3);
const fn = new Function('element', myel.value.container3);
fn(htmlContainer.value);
} catch (e) {
console.error('Script execution error:', e);
}
}
};
watch(() => myel.value.container3, executeScript, { flush: 'post' });
onUpdated(executeScript);
return {
onInvitoInviato,
onTelegramClick,
@@ -494,6 +518,7 @@ export default defineComponent({
enablePwa,
mostraInviti,
nascondiBottone,
htmlContainer,
};
},
});

View File

@@ -153,6 +153,7 @@
>
<div>
<div
ref="htmlContainer"
:class="
myel.class +
(editOn ? ` clEdit` : ``) +
@@ -161,7 +162,13 @@
tools.getClassAnim(myel.anim)
"
@click="clickOnElem"
v-html="tools.convertHTMLForElement(myel.containerHtml, myel.parambool2)"
v-html="
tools.convertHTMLForElement(
myel.containerHtml,
myel.parambool2,
myel.container2
)
"
></div>
</div>
</div>