- Cataloghi

- Import ed Export Pagine
- ObjectID sostituita con ObjectId
This commit is contained in:
Surya Paolo
2024-12-17 17:56:03 +01:00
parent 8baf1e99f0
commit 7619ce5b51
67 changed files with 287 additions and 173 deletions

View File

@@ -368,11 +368,11 @@ export default defineComponent({
return importMacroCatalogoJson(cmd, testo);
} else if (cmd === shared_consts.Cmd.MACRO_DESCRELINKSITOWEB) {
console.log('TESTO PRIMA:', testo)
// console.log('TESTO PRIMA:', testo)
const testoJSON = tools.convertXMLStringToJSON(testo)
const testoJSONtoPrint = JSON.stringify(testoJSON, null, 2)
console.log(testoJSONtoPrint)
// console.log(testoJSONtoPrint)
return importMacroCatalogoJson(cmd, testoJSONtoPrint)
}

View File

@@ -65,7 +65,11 @@ export default defineComponent({
{
label: 'Provincia',
value: shared_consts.FILTER_USER_PROVINCE
}
},
{
label: 'Senza Provincia',
value: shared_consts.FILTER_USER_SENZA_PROVINCE
},
]
} else if (tools.appid() === tools.IDAPP_FREEPLANET) {

View File

@@ -0,0 +1,29 @@
.maintenance-page {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-color: #f8f9fa;
color: #343a40;
text-align: center;
}
h1 {
margin-bottom: 16px;
}
button {
margin-top: 16px;
padding: 10px 15px;
font-size: 16px;
color: white;
background-color: #007bff;
border: none;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}

View File

@@ -1,8 +1,25 @@
import { defineComponent } from 'vue'
import { computed, defineComponent, onMounted, ref } from 'vue'
import { tools } from '@store/Modules/tools'
import { useRouter } from 'vue-router';
export default defineComponent({
name: 'sito_offline',
setup() {
return {}
const $router = useRouter()
onMounted(() => {
});
const checkStatus = () => {
// Logica per controllare lo stato del servizio (opzionale)
$router.replace('/')
};
return {
checkStatus,
tools,
};
},
})

View File

@@ -1,7 +1,19 @@
<template>
<div>
sito_offline
<div class="maintenance-page">
<h1 class="text-blue text-bold">Sito "{{ tools.getappname() }}" In Manutenzione</h1>
<q-img src="images/sito_in_manutenzione.jpg" width="200px" height="200px">
</q-img>
<br>
<p>Ci scusiamo per l'inconveniente, ma stiamo effettuando lavori di manutenzione sul sito.</p>
<p>Ritorneremo online il prima possibile. Grazie per la vostra pazienza!</p>
<button @click="checkStatus">Riaggiorna la pagina</button>
</div>
</template>
<script lang="ts" src="./sito_offline.ts">
</script>
<style lang="scss" scoped>
@import "./sito_offline.scss";
</style>