- aggiornamento refreshtoken (parte 1)

- PCB: fix listino
This commit is contained in:
Surya Paolo
2024-04-09 21:57:04 +02:00
parent ae08bc9ad6
commit 62c0f497e5
84 changed files with 317 additions and 301 deletions

View File

@@ -4,47 +4,40 @@
</div>
<q-card class="dialog_card q-mb-lg" v-if="myrec">
<q-footer
class="bg-white small-screen-only text-center"
bordered
>
<q-footer class="bg-white small-screen-only text-center" bordered>
<q-btn push rounded color="primary" icon="close" label="Chiudi" v-close-popup></q-btn>
</q-footer>
<q-bar dense class="bg-primary text-white">
{{ myrec.title }} ({{ myrec.groupname }})
<q-space/>
<q-space />
<q-btn flat round color="white" icon="close" v-close-popup></q-btn>
</q-bar>
<q-card-section class="inset-shadow">
<!-- Per ora visualizzo solo la Prima Immagine -->
<div class="text-center">
<q-img
v-if="tools.getValue(myrec, 'photos', '')"
:src="tools.getFullFileName(tools.getValue(myrec, 'photos', ''), table, myrec.username, myrec.groupname)"
class="img"
alt="immagine del gruppo"></q-img>
alt="immagine del gruppo"
></q-img>
</div>
<!--:title="t(mycol.label_trans)"-->
<div v-for="(mycol, index) of col" :key="index">
<div
v-if="(mycol.visible && (tools.checkIfShowField(mycol, tools.TIPOVIS_SHOW_RECORD, false, tools.getValue(myrec, mycol.field, mycol.subfield))))">
<div v-if="mycol.fieldtype === costanti.FieldType.html && tools.getValue(myrec, mycol.field, mycol.subfield)">
<div class="note-bacheca"
v-html="tools.getValue(myrec, mycol.field, mycol.subfield)">
</div>
v-if="(mycol.visible && (tools.checkIfShowField(mycol, tools.TIPOVIS_SHOW_RECORD, false, tools.getValue(myrec, mycol.field, mycol.subfield))))"
>
<div
v-if="mycol.fieldtype === costanti.FieldType.html && tools.getValue(myrec, mycol.field, mycol.subfield)"
>
<div class="note-bacheca" v-html="tools.getValue(myrec, mycol.field, mycol.subfield)"></div>
</div>
<div v-else-if="mycol.name === 'name'">
<div class="text-bacheca">
{{ tools.getValue(myrec, mycol.field, mycol.subfield) }}
</div>
</div>
<div v-else-if="mycol.name === 'photos' && myrec.photos.length <= 1">
<div class="text-bacheca">{{ tools.getValue(myrec, mycol.field, mycol.subfield) }}</div>
</div>
<div v-else-if="mycol.name === 'photos' && myrec.photos.length <= 1"></div>
<div v-else-if="mycol.name === 'admins'">
<CMyFieldRec
title="Amministratori:"
@@ -53,9 +46,8 @@
:rec="myrec"
:field="mycol.field"
:canEdit="false"
:canModify="false">
</CMyFieldRec>
:canModify="false"
></CMyFieldRec>
</div>
<CMyFieldRec
v-else
@@ -64,30 +56,35 @@
:rec="myrec"
:field="mycol.field"
:canEdit="false"
:canModify="false">
</CMyFieldRec>
:canModify="false"
></CMyFieldRec>
</div>
</div>
<div class="row q-ma-sm q-pa-sm justify-center">
<div class="q-ma-sm">
<q-btn
icon="far fa-file-alt" label="Apri" color="primary" text-color="white"
icon="far fa-file-alt"
label="Apri"
color="primary"
text-color="white"
:to="tools.getToByCol(col, table, myrec)"
/>
</div>
<div class="q-ma-sm">
<q-btn
v-if="myrec._id"
:text-color="$q.dark.isActive ? `white` : `black`" icon="fas fa-link"
:text-color="$q.dark.isActive ? `white` : `black`"
icon="fas fa-link"
label="Condividi"
@click="condividipag"></q-btn>
@click="condividipag"
></q-btn>
</div>
</div>
<br><br>
<br />
<br />
</q-card-section>
</q-card>
</template>
@@ -95,6 +92,6 @@
</script>
<style lang="scss" scoped>
@import './CMyCardGrpPopup.scss';
@import "./CMyCardGrpPopup.scss";
</style>

View File

@@ -29,7 +29,7 @@
@click.stop="tools.copyToClip($q, getlinkpage(), true)"
>
<q-item-section avatar>
<q-icon color="blue" name="fas fa-share" />
<q-icon color="blue" name="fas fa-share" />
</q-item-section>
<q-item-section>
{{ $t('reaction.condividi') }}

View File

@@ -112,7 +112,8 @@ export default defineComponent({
const neworder = ref(<number | undefined>0)
const myel = toRef(props, 'myelem')
const myel = ref(<IMyElem>{})
const newtype = ref(<any>'')
const isAppRunning = computed(() => globalStore.isAppRunning )
@@ -170,7 +171,7 @@ export default defineComponent({
const newrec = props.myelem
newrec._id = undefined
newrec.order = order ? order : newrec.order! + 10
newrec.order = order ? order : (newrec.order! + 10)
globalStore.addNewElem($q, t, newrec)
}
@@ -204,6 +205,9 @@ export default defineComponent({
}
function mounted() {
console.log('mounted elem ')
console.log(props.myelem.type)
myel.value = props.myelem
neworder.value = props.myelem.order
if (props.myelem)
@@ -240,7 +244,7 @@ export default defineComponent({
}
function showFit() {
if (props.myelem.type)
if (props.myelem && props.myelem.type)
return [shared_consts.ELEMTYPE.TEXT].includes(props.myelem.type)
else
return false

View File

@@ -9,7 +9,7 @@
"
@click="clickOnElem"
>
<div>
<div v-if="myel.type">
<div v-if="myel.type === shared_consts.ELEMTYPE.TEXT">
<transition
appear
@@ -636,7 +636,7 @@
rounded
size="md"
color="primary"
to="/registrati/" + tools.getInvitante()
:to="`/registrati/${tools.getInvitante()}`"
:label="$t('reg.submit')"
>
</q-btn>

View File

@@ -90,11 +90,12 @@ export default defineComponent({
})
function load() {
// console.log('load', mypathin.value)
console.log('load', mypathin.value)
if (mypathin.value !== '') {
globalStore.loadPage('/' + mypathin.value, 'cmypageelem').then(ris => {
rec.value = ris
console.log('LoadPage', ris)
})
}

View File

@@ -32,6 +32,7 @@
@click="visuEditor = false; selElem = {};"
></q-btn>
</q-bar>
<CMyEditElem
:myelem="selElem"
:editOn="true"
@@ -75,6 +76,7 @@
<div v-for="(myelem, ind) in myelems" :key="ind">
<div>
<CMyElem
v-if="(myelem.active || editOn) && !!rec.path"
:myelem="myelem"