++ DebugOn status (to see what happened)

fix visu activities
This commit is contained in:
Surya Paolo
2022-12-14 22:07:23 +01:00
parent bd0eab53ae
commit fbcd076705
22 changed files with 69 additions and 33 deletions

View File

@@ -279,7 +279,12 @@ export default defineComponent({
const tablesel = ref('') const tablesel = ref('')
const loading = ref(false) const loading = ref(false)
const editOn = ref(false) const editOn = computed({
get: () => globalStore.editOn,
set: val => {
globalStore.editOn = val
},
})
const visupagedialog = ref(false) const visupagedialog = ref(false)
const myrecdialog = ref(null) const myrecdialog = ref(null)
@@ -1017,6 +1022,7 @@ export default defineComponent({
// @ts-ignore // @ts-ignore
myinfscroll.value.resume() myinfscroll.value.resume()
} }
done()
} }
} }

View File

@@ -1,4 +1,7 @@
<template> <template>
<div v-if="tools.isDebugOn()">
</div>
<div :class="$q.screen.lt.sm ? `` : `q-pa-xs`" v-if="isfinishLoading"> <div :class="$q.screen.lt.sm ? `` : `q-pa-xs`" v-if="isfinishLoading">
<q-toggle <q-toggle
v-if="tools.isManager()" v-if="tools.isManager()"
@@ -312,7 +315,7 @@
</div> </div>
<q-infinite-scroll <q-infinite-scroll
ref="myinfscroll" ref="myinfscroll"
v-if="shared_consts.VERTIC_SHOW_GRID.includes(myvertical)" v-if="shared_consts.VERTIC_SHOW_GRID.includes(myvertical) && !loading"
:initial-index="0" :initial-index="0"
@load="onLoadScroll" @load="onLoadScroll"
:offset="350" :offset="350"
@@ -486,7 +489,7 @@
</div> </div>
</div> </div>
<template v-slot:loading> <template v-slot:loading>
<div class="row justify-center q-my-md"> <div class="text-center">
<q-spinner-dots color="primary" size="40px" /> <q-spinner-dots color="primary" size="40px" />
</div> </div>
</template> </template>

View File

@@ -17,7 +17,7 @@
</q-item-label> </q-item-label>
<q-item-label @click="naviga(tools.getPathByTableAndRec(table, circuit))" v-if="circuit.longdescr" caption lines="3"><em>{{ circuit.longdescr }}</em> <q-item-label @click="naviga(tools.getPathByTableAndRec(table, circuit))" v-if="circuit.longdescr" caption lines="3"><em>{{ circuit.longdescr }}</em>
</q-item-label> </q-item-label>
<q-item-label caption lines="1"> <q-item-label caption lines="3">
<q-chip <q-chip
v-if="circuit.status !== undefined && circuit.status !== 0" :color="circuitStore.getColorCircuitClass(circuit)" v-if="circuit.status !== undefined && circuit.status !== 0" :color="circuitStore.getColorCircuitClass(circuit)"
text-color="white" text-color="white"

View File

@@ -1,4 +1,5 @@
import { import {
computed,
defineComponent, onMounted, PropType, ref, toRef, watch, defineComponent, onMounted, PropType, ref, toRef, watch,
} from 'vue' } from 'vue'
@@ -100,6 +101,8 @@ export default defineComponent({
const myel = toRef(props, 'myelem') const myel = toRef(props, 'myelem')
const newtype = ref(<any>'') const newtype = ref(<any>'')
const isAppRunning = computed(() => globalStore.isAppRunning )
watch(() => myel.value.order, (value, oldval) => { watch(() => myel.value.order, (value, oldval) => {
mounted() mounted()
}) })
@@ -280,6 +283,7 @@ export default defineComponent({
visushare, visushare,
social, social,
clickshare, clickshare,
isAppRunning,
} }
}, },

View File

@@ -441,8 +441,11 @@
</div> </div>
<div v-else-if="myel.type === shared_consts.ELEMTYPE.REGISTRATION"> <div v-else-if="myel.type === shared_consts.ELEMTYPE.REGISTRATION">
<div v-if="editOn" class="elemEdit">Registrazione</div> <div v-if="editOn" class="elemEdit">Registrazione</div>
<div v-if="isAppRunning || $q.screen.gt.xs">
<CRegistration /> <CRegistration />
</div> </div>
</div>
<div v-else-if="myel.type === shared_consts.ELEMTYPE.BUTTON"> <div v-else-if="myel.type === shared_consts.ELEMTYPE.BUTTON">
<div v-if="editOn" class="elemEdit"></div> <div v-if="editOn" class="elemEdit"></div>
<div <div

View File

@@ -11,7 +11,7 @@
<q-item-section @click="naviga(tools.getPathByGroup(grp, table))"> <q-item-section @click="naviga(tools.getPathByGroup(grp, table))">
<q-item-label><strong>{{ grp.title }}</strong> ({{ grp.groupname }}) <q-item-label><strong>{{ grp.title }}</strong> ({{ grp.groupname }})
</q-item-label> </q-item-label>
<q-item-label v-if="grp.descr" caption lines="1"><em>{{ grp.descr }}</em></q-item-label> <q-item-label v-if="grp.descr" caption lines="3"><em>{{ grp.descr }}</em></q-item-label>
</q-item-section> </q-item-section>
<q-item-section side v-if="visu === costanti.MY_GROUPS"> <q-item-section side v-if="visu === costanti.MY_GROUPS">

View File

@@ -10,7 +10,6 @@
/*border-radius: $generic-border-radius */ /*border-radius: $generic-border-radius */
} }
.extrafield{ .extrafield{
color: black;
font-size: 1rem; font-size: 1rem;
padding: 4px; padding: 4px;
} }

View File

@@ -80,12 +80,12 @@
</div> </div>
</div> </div>
<div v-else-if="col.fieldtype === costanti.FieldType.username_chip"> <div v-else-if="col.fieldtype === costanti.FieldType.username_chip">
<div class="q-ma-xs chip_shadow"> <div class="">
<span v-if="col.extrafield"> <span v-if="col.extrafield">
<span class="extrafield">{{ $t(col.extrafield) }}</span> <span class="extrafield">{{ $t(col.extrafield) }}</span>
</span> </span>
</div>
<div class="q-ma-xs chip_shadow">
<div <div
v-if=" v-if="
(col.tipovisu === costanti.TipoVisu.LINK || (col.tipovisu === costanti.TipoVisu.LINK ||

View File

@@ -34,7 +34,7 @@
</q-item-section> </q-item-section>
<q-item-section @click="navigaExt(myrec)"> <q-item-section @click="navigaExt(myrec)">
<q-item-label lines="1" class="full-width" > <q-item-label lines="2" class="full-width" >
<span v-for="(rec, ind) of tools.getArrSubSector(table, myrec)" :key="ind"> <span v-for="(rec, ind) of tools.getArrSubSector(table, myrec)" :key="ind">
<q-chip dense class="text-center shadow-5 glossy text-white bg-green">{{ rec.descr }}</q-chip> <q-chip dense class="text-center shadow-5 glossy text-white bg-green">{{ rec.descr }}</q-chip>
</span> </span>
@@ -49,7 +49,7 @@
</q-item-label> </q-item-label>
<q-item-label lines="4" v-if="myrec.descr">{{ myrec.descr }}<br> <q-item-label lines="4" v-if="myrec.descr">{{ myrec.descr }}<br>
</q-item-label> </q-item-label>
<q-item-label lines="1" style="text-align: right" class="text_user_city"> <q-item-label lines="2" style="text-align: right" class="text_user_city">
<span class="text-weight-bold">{{ getNameToShow(myrec) }}</span> - <span class="text-weight-bold">{{ getNameToShow(myrec) }}</span> -
<span v-for="(rec, ind) of myrec.mycities" :key="ind"><span v-if="ind > 0">, </span>{{ rec.comune }} ({{ rec.prov }})</span> <span v-for="(rec, ind) of myrec.mycities" :key="ind"><span v-if="ind > 0">, </span>{{ rec.comune }} ({{ rec.prov }})</span>
</q-item-label> </q-item-label>

View File

@@ -18,7 +18,7 @@
<q-item-label @click="naviga(tools.getPathByTableAndRec(table, circuit))"><strong>{{ circuit.name }}</strong> <span v-if="circuit.subname"> ({{ circuit.subname }})</span> <q-item-label @click="naviga(tools.getPathByTableAndRec(table, circuit))"><strong>{{ circuit.name }}</strong> <span v-if="circuit.subname"> ({{ circuit.subname }})</span>
</q-item-label> </q-item-label>
<q-item-label @click="naviga(tools.getPathByTableAndRec(table, circuit))" v-if="circuit.longdescr" caption lines="3"><em>{{ circuit.longdescr }}</em></q-item-label> <q-item-label @click="naviga(tools.getPathByTableAndRec(table, circuit))" v-if="circuit.longdescr" caption lines="3"><em>{{ circuit.longdescr }}</em></q-item-label>
<q-item-label caption lines="1"> <q-item-label caption lines="2">
<q-chip <q-chip
v-if="circuit.status !== undefined && circuit.status !== 0" :color="circuitStore.getColorCircuitClass(circuit)" v-if="circuit.status !== undefined && circuit.status !== 0" :color="circuitStore.getColorCircuitClass(circuit)"
text-color="white" text-color="white"

View File

@@ -48,7 +48,7 @@
@remove="scope.removeAtIndex(scope.index)" @remove="scope.removeAtIndex(scope.index)"
v-if="checkIfShowRec(scope.opt)" v-if="checkIfShowRec(scope.opt)"
:color="$q.dark.isActive ? `black` : `white`" :color="$q.dark.isActive ? `black` : `white`"
text-color="mycol" :text-color="$q.dark.isActive ? `white` : `black`"
class="q-my-none q-ml-xs q-mr-none" class="q-my-none q-ml-xs q-mr-none"
> >
<q-avatar color="primary" text-color="white" icon="" size="12px"/> <q-avatar color="primary" text-color="white" icon="" size="12px"/>

View File

@@ -24,9 +24,8 @@
control-color="white" control-color="white"
navigation navigation
padding padding
arrows height="500px"
height="400px" :class="`text-white bg-primary shadow-1 rounded-borders`"
:class="($q.dark.isActive ? `text-white`: `text-black`) + ` bg-primary shadow-1 rounded-borders`"
> >
<q-carousel-slide name="start" class="column no-wrap flex-center"> <q-carousel-slide name="start" class="column no-wrap flex-center">
<q-icon name="fas fa-user" size="56px" /> <q-icon name="fas fa-user" size="56px" />
@@ -104,16 +103,9 @@
> >
<span :class="($q.dark.isActive ? `text-white`: `text-black`) + `text-h7`" <span :class="($q.dark.isActive ? `text-white`: `text-black`) + `text-h7`"
>Chiedi alla persona che ti ha invitato su RISO il suo >Chiedi alla persona che ti ha invitato su RISO il suo
Username e poi :</span Username e poi :</span>
><br />
<div class="row items-center"> <div class="row items-center">
<div class="col-12"> <div class="col-12">
<p class="text-bold text-center">
<span style="font-size: 1.5rem">👇🏻 </span>
<span :class="$q.dark.isActive ? `text-white`: `text-black`">Consigliato </span>
<span style="font-size: 1.5rem"> 👇🏻 </span>
</p>
<q-btn <q-btn
rounded rounded
class="flex-item-btn" class="flex-item-btn"
@@ -123,6 +115,7 @@
to="/bot" to="/bot"
:label="$t('reg.bytelegram')" :label="$t('reg.bytelegram')"
> >
<q-badge color="red" align="bottom" floating>Consigliato</q-badge>
</q-btn> </q-btn>
</div> </div>
</div> </div>

View File

@@ -20,7 +20,7 @@
</CCurrencyValue> </CCurrencyValue>
<div v-if="!small && account && account.notifspending && account.notifspending.length > 0" :class="`text-h5 full-width`" <div v-if="!small && account && account.notifspending && account.notifspending.length > 0" :class="`text-h7 full-width`"
:style="(!$q.screen.lt.sm ? `min-width: 250px; ` : ``) + (color_border ? `border-color: ` + color_border + `!important;`: '')"> :style="(!$q.screen.lt.sm ? `min-width: 250px; ` : ``) + (color_border ? `border-color: ` + color_border + `!important;`: '')">
<div class="text-center text-h7-dense text-italic text-grey-14"> <div class="text-center text-h7-dense text-italic text-grey-14">
{{ t('movement.pendingtransaction') }} {{ t('movement.pendingtransaction') }}

View File

@@ -1,6 +1,6 @@
ù<template> ù<template>
<div> <div>
<div class="q-my-sm q-gutter-xs q-py-xs"> <div class="q-my-xs">
<CGridTableRec <CGridTableRec
v-if="filtercustom.length > 0 && col && col.length > 0" v-if="filtercustom.length > 0 && col && col.length > 0"
:prop_mytable="table" :prop_mytable="table"

View File

@@ -239,6 +239,7 @@ export interface IConfPages {
enableTodos: boolean enableTodos: boolean
enableRegByBot: boolean enableRegByBot: boolean
enableRegMultiChoice: boolean enableRegMultiChoice: boolean
enableDebugOn: boolean
enabledRegNeedTelegram: boolean enabledRegNeedTelegram: boolean
showViewGroups: boolean showViewGroups: boolean
showViewCircuits: boolean showViewCircuits: boolean

View File

@@ -583,6 +583,16 @@
:type="costanti.FieldType.boolean" :type="costanti.FieldType.boolean"
> >
</CMyFieldDb> </CMyFieldDb>
<CMyFieldDb
table="sites"
:title="$t('confpages.enableDebugOn')"
:id="mysite._id"
:rec="mysite"
mykey="confpages"
mysubkey="enableDebugOn"
:type="costanti.FieldType.boolean"
>
</CMyFieldDb>
<CMyFieldDb <CMyFieldDb
table="sites" table="sites"
:title="$t('confpages.enabledRegNeedTelegram')" :title="$t('confpages.enabledRegNeedTelegram')"

View File

@@ -1332,6 +1332,7 @@ const msg_it = {
enableTodos: 'Mostra Todos', enableTodos: 'Mostra Todos',
enableRegByBot: 'Registratione By Bot', enableRegByBot: 'Registratione By Bot',
enableRegMultiChoice: 'Registratione a Scelta tra Email e Telegram', enableRegMultiChoice: 'Registratione a Scelta tra Email e Telegram',
enableDebugOn: 'Attiva Debug',
enabledRegNeedTelegram: 'Reg con Telegram', enabledRegNeedTelegram: 'Reg con Telegram',
showViewGroups: 'Bott. Gruppi', showViewGroups: 'Bott. Gruppi',
showViewUsers: 'Bott. Users', showViewUsers: 'Bott. Users',

View File

@@ -5003,6 +5003,12 @@ export const tools = {
return userStore.my.profile ? userStore.my.profile.teleg_id! > 0 : false return userStore.my.profile ? userStore.my.profile.teleg_id! > 0 : false
}, },
isDebugOn(): boolean {
const globalStore = useGlobalStore()
const site = globalStore.site
return (site.confpages.enableDebugOn)
},
isVerified(): boolean { isVerified(): boolean {
const globalStore = useGlobalStore() const globalStore = useGlobalStore()
const site = globalStore.site const site = globalStore.site

View File

@@ -165,6 +165,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
enableRegByBot: false, enableRegByBot: false,
enableRegMultiChoice: false, enableRegMultiChoice: false,
enabledRegNeedTelegram: false, enabledRegNeedTelegram: false,
enableDebugOn: false,
showButtHome: false, showButtHome: false,
showViewGroups: false, showViewGroups: false,
showViewCircuits: false, showViewCircuits: false,

View File

@@ -45,8 +45,8 @@
> >
<div v-if="site.confpages.showNameSurname"> <div v-if="site.confpages.showNameSurname">
<div class="text-h6"> <div class="text-h6">
<span v-if="checkifShow('name')"> {{ myuser.name }}</span> <span v-if="checkifShow('name') && myuser.name"> {{ myuser.name }}</span>
<span v-if="checkifShow('surname')">{{ <span v-if="checkifShow('surname') && myuser.surname">{{
myuser.surname myuser.surname
}}</span> }}</span>
</div> </div>

View File

@@ -53,6 +53,7 @@ export default defineComponent({
const username = computed(() => $route.params.username ? $route.params.username.toString() : userStore.my.username) const username = computed(() => $route.params.username ? $route.params.username.toString() : userStore.my.username)
const idnotif = computed(() => $route.query.idnotif ? $route.query.idnotif.toString() : '') const idnotif = computed(() => $route.query.idnotif ? $route.query.idnotif.toString() : '')
const isDebugOn = computed(() => tools.isDebugOn())
const filtroutente = ref(<any[]>[]) const filtroutente = ref(<any[]>[])
const showPic = ref(false) const showPic = ref(false)
@@ -108,8 +109,8 @@ export default defineComponent({
} }
}) })
}
caricato.value = true caricato.value = true
}
}catch (e) { }catch (e) {
console.error('ERR loadProfile', e) console.error('ERR loadProfile', e)
} }
@@ -199,6 +200,7 @@ export default defineComponent({
showsendCoinTo, showsendCoinTo,
site, site,
listcircuitsfiltered, listcircuitsfiltered,
isDebugOn,
} }
} }
}) })

View File

@@ -1,4 +1,10 @@
<template> <template>
<div v-if="isDebugOn" class="bg-red text-white">
Logged: {{tools.isLogged()}}
UserOk: {{tools.isUserOk()}}
caricato: {{caricato}}
myuser: {{myuser.username}}
</div>
<div v-if="!tools.isLogged()"> <div v-if="!tools.isLogged()">
<CCheckIfIsLogged></CCheckIfIsLogged> <CCheckIfIsLogged></CCheckIfIsLogged>
</div> </div>
@@ -30,6 +36,7 @@
<div v-if="myuser"> <div v-if="myuser">
<CNotifAtTop /> <CNotifAtTop />
<div class="q-gutter-sm q-pa-sm q-pb-md"> <div class="q-gutter-sm q-pa-sm q-pb-md">
<div <div
v-if="myuser && myuser.date_reg" v-if="myuser && myuser.date_reg"
class="fit column no-wrap justify-evenly items-center content-start" class="fit column no-wrap justify-evenly items-center content-start"
@@ -54,7 +61,7 @@
</div> </div>
<div class="last_access"> <div class="last_access">
Ultimo accesso: {{tools.timeAgo(myuser.lasttimeonline)}} OnLine: {{tools.timeAgo(myuser.lasttimeonline)}}
</div> </div>
<div v-if="myuser.reported"> <div v-if="myuser.reported">
@@ -68,8 +75,8 @@
<div v-if="site.confpages.showNameSurname"> <div v-if="site.confpages.showNameSurname">
<div class="text-h6"> <div class="text-h6">
<span v-if="checkifShow('name')"> {{ myuser.name }}</span> <span v-if="checkifShow('name') && myuser.name"> {{ myuser.name }}</span>
<span v-if="checkifShow('surname')">{{ myuser.surname }}</span> <span v-if="checkifShow('surname') && myuser.surname">{{ myuser.surname }}</span>
</div> </div>
</div> </div>
<div class="col-12 text-h7 text-blue text-shadow-2"> <div class="col-12 text-h7 text-blue text-shadow-2">