poter visualizzare i propri beni e servizi anche se non sei registrato alla app !
This commit is contained in:
@@ -246,6 +246,11 @@ export default defineComponent({
|
|||||||
required: false,
|
required: false,
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
noaut: {
|
||||||
|
type: Boolean,
|
||||||
|
required: false,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
CMyPopupEdit, CTitleBanner, CMyFieldDb, CMySelect, CMyFriends, CMyGroups,
|
CMyPopupEdit, CTitleBanner, CMyFieldDb, CMySelect, CMyFriends, CMyGroups,
|
||||||
@@ -845,6 +850,7 @@ export default defineComponent({
|
|||||||
userId: userStore.my._id,
|
userId: userStore.my._id,
|
||||||
codeId: '',
|
codeId: '',
|
||||||
options: props.options,
|
options: props.options,
|
||||||
|
noaut: props.noaut,
|
||||||
}
|
}
|
||||||
|
|
||||||
params.codeId = mycodeid.value
|
params.codeId = mycodeid.value
|
||||||
|
|||||||
@@ -32,6 +32,11 @@ export default defineComponent({
|
|||||||
visu: {
|
visu: {
|
||||||
type: Number,
|
type: Number,
|
||||||
required: true,
|
required: true,
|
||||||
|
},
|
||||||
|
noaut: {
|
||||||
|
type: Boolean,
|
||||||
|
required: false,
|
||||||
|
default: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-if="tools.isUserOk()">
|
<div v-if="tools.isUserOk() || noaut">
|
||||||
<div v-if="circuit">
|
<div v-if="circuit">
|
||||||
<q-item :class="`q-my-sm bordo_stondato_circuiti ` + ($q.dark.isActive ? `text-white` : `text-black`)" clickable>
|
<q-item :class="`q-my-sm bordo_stondato_circuiti ` + ($q.dark.isActive ? `text-white` : `text-black`)" clickable>
|
||||||
<q-item-section avatar @click="naviga(tools.getPathByTableAndRec(table, circuit))">
|
<q-item-section avatar @click="naviga(tools.getPathByTableAndRec(table, circuit))">
|
||||||
@@ -44,6 +44,7 @@
|
|||||||
|
|
||||||
<q-item-label @click="naviga(tools.getPathByTableAndRec(table, circuit))" lines="1">
|
<q-item-label @click="naviga(tools.getPathByTableAndRec(table, circuit))" lines="1">
|
||||||
<CSaldo
|
<CSaldo
|
||||||
|
v-if="tools.isUserOk()"
|
||||||
:account="account"
|
:account="account"
|
||||||
:symbol="circuit.symbol"
|
:symbol="circuit.symbol"
|
||||||
:color="circuit.color"
|
:color="circuit.color"
|
||||||
@@ -54,7 +55,7 @@
|
|||||||
</q-item-label>
|
</q-item-label>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
|
|
||||||
<q-item-section side v-if="visu === costanti.USER_CIRCUITS">
|
<q-item-section side v-if="visu === costanti.USER_CIRCUITS && tools.isUserOk()">
|
||||||
<q-item-label>
|
<q-item-label>
|
||||||
<q-btn rounded :icon="userStore.IsMyCircuitByName(circuit.name) ? `fas fa-ellipsis-h` : `fas fa-user`">
|
<q-btn rounded :icon="userStore.IsMyCircuitByName(circuit.name) ? `fas fa-ellipsis-h` : `fas fa-user`">
|
||||||
<q-menu>
|
<q-menu>
|
||||||
@@ -89,7 +90,7 @@
|
|||||||
</q-btn>
|
</q-btn>
|
||||||
</q-item-label>
|
</q-item-label>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
<q-item-section side v-if="visu === costanti.REQ_CIRCUIT">
|
<q-item-section side v-if="visu === costanti.REQ_CIRCUIT && tools.isUserOk()">
|
||||||
<q-item-label>
|
<q-item-label>
|
||||||
<q-btn rounded icon="fas fa-ellipsis-h">
|
<q-btn rounded icon="fas fa-ellipsis-h">
|
||||||
<q-menu>
|
<q-menu>
|
||||||
@@ -103,7 +104,7 @@
|
|||||||
</q-btn>
|
</q-btn>
|
||||||
</q-item-label>
|
</q-item-label>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
<q-item-section side v-if="visu === costanti.ASK_SENT_CIRCUIT">
|
<q-item-section side v-if="visu === costanti.ASK_SENT_CIRCUIT && tools.isUserOk()">
|
||||||
<q-item-label>
|
<q-item-label>
|
||||||
<q-btn rounded icon="fas fa-ellipsis-h">
|
<q-btn rounded icon="fas fa-ellipsis-h">
|
||||||
<q-menu>
|
<q-menu>
|
||||||
|
|||||||
@@ -37,6 +37,11 @@ export default defineComponent({
|
|||||||
required: false,
|
required: false,
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
noaut: {
|
||||||
|
type: Boolean,
|
||||||
|
required: false,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
setup(props, { emit }) {
|
setup(props, { emit }) {
|
||||||
|
|||||||
@@ -35,6 +35,11 @@ export default defineComponent({
|
|||||||
required: false,
|
required: false,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
noaut: {
|
||||||
|
type: Boolean,
|
||||||
|
required: false,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
username: {
|
username: {
|
||||||
type: String,
|
type: String,
|
||||||
required: false,
|
required: false,
|
||||||
|
|||||||
@@ -19,7 +19,8 @@
|
|||||||
:defaultnewrec="getdefaultnewrec"
|
:defaultnewrec="getdefaultnewrec"
|
||||||
:filtercustom="filtercustom"
|
:filtercustom="filtercustom"
|
||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
:extraparams="extraparams">
|
:extraparams="extraparams"
|
||||||
|
:noaut="noaut">
|
||||||
|
|
||||||
</CGridTableRec>
|
</CGridTableRec>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -675,6 +675,7 @@ export interface IParamsQuery {
|
|||||||
lookup4?: IParLookup
|
lookup4?: IParLookup
|
||||||
options?: number
|
options?: number
|
||||||
extrapar?: string
|
extrapar?: string
|
||||||
|
noaut?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ISocial {
|
export interface ISocial {
|
||||||
|
|||||||
@@ -99,7 +99,8 @@ export default defineComponent({
|
|||||||
filter_gte: '',
|
filter_gte: '',
|
||||||
sortBy: myobj,
|
sortBy: myobj,
|
||||||
descending,
|
descending,
|
||||||
userId: ''
|
userId: '',
|
||||||
|
noaut: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (true) {
|
if (true) {
|
||||||
|
|||||||
@@ -440,7 +440,7 @@ export const useUserStore = defineStore('UserStore', {
|
|||||||
},
|
},
|
||||||
|
|
||||||
isUserWaitingVerifAportador(): boolean {
|
isUserWaitingVerifAportador(): boolean {
|
||||||
return !this.my.verified_by_aportador
|
return tools.isLogged() && !this.my.verified_by_aportador
|
||||||
},
|
},
|
||||||
|
|
||||||
isOldRegNotFinished(): boolean {
|
isOldRegNotFinished(): boolean {
|
||||||
|
|||||||
@@ -980,7 +980,8 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
|||||||
sortBy: myobj,
|
sortBy: myobj,
|
||||||
descending,
|
descending,
|
||||||
userId: '',
|
userId: '',
|
||||||
extrapar
|
extrapar,
|
||||||
|
noaut: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
params.table = table
|
params.table = table
|
||||||
|
|||||||
@@ -23,9 +23,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="tools.isUserOk() || tools.isLogged()">
|
<div v-else>
|
||||||
<div v-if="myuser">
|
<div v-if="myuser">
|
||||||
<CNotifAtTop />
|
<div v-if="tools.isUserOk() || tools.isLogged()">
|
||||||
|
<CNotifAtTop />
|
||||||
|
</div>
|
||||||
<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"
|
||||||
@@ -76,7 +78,7 @@
|
|||||||
<div class="col-12 text-h7 text-blue text-shadow-2">
|
<div class="col-12 text-h7 text-blue text-shadow-2">
|
||||||
{{ myuser.username }}
|
{{ myuser.username }}
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br />
|
||||||
|
|
||||||
<CTitleBanner
|
<CTitleBanner
|
||||||
v-if="site.confpages.showCompetenze"
|
v-if="site.confpages.showCompetenze"
|
||||||
@@ -87,8 +89,6 @@
|
|||||||
myclass="myshad"
|
myclass="myshad"
|
||||||
:canopen="true"
|
:canopen="true"
|
||||||
>
|
>
|
||||||
|
|
||||||
|
|
||||||
<div v-for="(card, ind) of mycards" :key="ind" :name="card.table">
|
<div v-for="(card, ind) of mycards" :key="ind" :name="card.table">
|
||||||
<div class="text-h6">{{ card.title }}</div>
|
<div class="text-h6">{{ card.title }}</div>
|
||||||
<div v-if="card.table === 'mygroups'">
|
<div v-if="card.table === 'mygroups'">
|
||||||
@@ -99,7 +99,11 @@
|
|||||||
class="q-my-sm q-mx-none"
|
class="q-my-sm q-mx-none"
|
||||||
clickable
|
clickable
|
||||||
>
|
>
|
||||||
<CMyGroup :mygrp="grp" :visu="costanti.USER_GROUPS">
|
<CMyGroup
|
||||||
|
:mygrp="grp"
|
||||||
|
:visu="costanti.USER_GROUPS"
|
||||||
|
:noaut="true"
|
||||||
|
>
|
||||||
</CMyGroup>
|
</CMyGroup>
|
||||||
</span>
|
</span>
|
||||||
</q-list>
|
</q-list>
|
||||||
@@ -115,6 +119,7 @@
|
|||||||
<CMyCircuit
|
<CMyCircuit
|
||||||
:mycircuit="circuit"
|
:mycircuit="circuit"
|
||||||
:visu="costanti.USER_CIRCUITS"
|
:visu="costanti.USER_CIRCUITS"
|
||||||
|
:noaut="true"
|
||||||
>
|
>
|
||||||
</CMyCircuit>
|
</CMyCircuit>
|
||||||
</span>
|
</span>
|
||||||
@@ -126,6 +131,7 @@
|
|||||||
:filtercustom="filtroutente"
|
:filtercustom="filtroutente"
|
||||||
:butt_modif_new="isMyRecord(myuser.username)"
|
:butt_modif_new="isMyRecord(myuser.username)"
|
||||||
:visuinpage="true"
|
:visuinpage="true"
|
||||||
|
:noaut="true"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -133,6 +139,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div v-if="!tools.isLogged()">
|
||||||
|
<CCheckIfIsLogged></CCheckIfIsLogged>
|
||||||
|
</div>
|
||||||
|
|
||||||
<q-dialog v-model="showPic" full-height full-width>
|
<q-dialog v-model="showPic" full-height full-width>
|
||||||
<img :src="getImgUser()" :alt="username" class="full-width" />
|
<img :src="getImgUser()" :alt="username" class="full-width" />
|
||||||
</q-dialog>
|
</q-dialog>
|
||||||
|
|||||||
@@ -5,9 +5,6 @@
|
|||||||
<div v-if="caricato">caricato: {{ caricato }}</div>
|
<div v-if="caricato">caricato: {{ caricato }}</div>
|
||||||
<div v-if="myuser">myuser: {{ myuser.username }}</div>
|
<div v-if="myuser">myuser: {{ myuser.username }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!tools.isLogged()">
|
|
||||||
<CCheckIfIsLogged></CCheckIfIsLogged>
|
|
||||||
</div>
|
|
||||||
<div
|
<div
|
||||||
v-if="!caricato"
|
v-if="!caricato"
|
||||||
class="fit column no-wrap justify-evenly items-center content-start"
|
class="fit column no-wrap justify-evenly items-center content-start"
|
||||||
@@ -32,6 +29,96 @@
|
|||||||
</div>
|
</div>
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-else-if="!tools.isLogged()">
|
||||||
|
<div class="q-gutter-sm q-pa-sm q-pb-md">
|
||||||
|
<div
|
||||||
|
v-if="myuser && myuser.date_reg"
|
||||||
|
class="fit column no-wrap justify-evenly items-center content-start"
|
||||||
|
>
|
||||||
|
<div class="">
|
||||||
|
<q-avatar size="140px">
|
||||||
|
<q-img
|
||||||
|
:src="myuser.profile ? getImgUser(myuser.profile) : ''"
|
||||||
|
:alt="username"
|
||||||
|
img-class="imgprofile"
|
||||||
|
height="140px"
|
||||||
|
@click="showPic = true"
|
||||||
|
/>
|
||||||
|
<q-badge
|
||||||
|
v-if="tools.isUserOnline(myuser)"
|
||||||
|
align="top"
|
||||||
|
floating
|
||||||
|
color="green"
|
||||||
|
>online</q-badge
|
||||||
|
>
|
||||||
|
</q-avatar>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="last_access">
|
||||||
|
OnLine: {{ tools.timeAgo(myuser.lasttimeonline) }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-if="myuser.reported">
|
||||||
|
<CTitleBanner
|
||||||
|
title="⚠️ L'utente è stato Segnalato per comportamento non idoneo."
|
||||||
|
bgcolor="bg-red"
|
||||||
|
clcolor="text-white"
|
||||||
|
>
|
||||||
|
</CTitleBanner>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-if="site && site.confpages && site.confpages.showNameSurname">
|
||||||
|
<div class="text-h6">
|
||||||
|
<span v-if="checkifShow('name') && myuser.name">
|
||||||
|
{{ myuser.name }}</span
|
||||||
|
>
|
||||||
|
<span v-if="checkifShow('surname') && myuser.surname"
|
||||||
|
> {{ myuser.surname }}</span
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-12 text-h7 text-blue text-shadow-2">
|
||||||
|
{{ myuser.username }}
|
||||||
|
</div>
|
||||||
|
<div class="col-12 text-h7">
|
||||||
|
<span v-if="myuser.profile && myuser.profile.born_city_id">
|
||||||
|
<CMyFieldRec
|
||||||
|
title=""
|
||||||
|
table="users"
|
||||||
|
tablesel="cities"
|
||||||
|
:id="myuser._id"
|
||||||
|
:rec="myuser"
|
||||||
|
field="profile.born_city_id"
|
||||||
|
:canEdit="false"
|
||||||
|
:canModify="false"
|
||||||
|
>
|
||||||
|
</CMyFieldRec>
|
||||||
|
|
||||||
|
{{ myuser.profile.born_city_str }}</span
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
v-if="
|
||||||
|
myuser.profile &&
|
||||||
|
myuser.profile.nationality &&
|
||||||
|
myuser.profile.nationality !== 'Italia'
|
||||||
|
"
|
||||||
|
>({{ myuser.profile.nationality }})</span
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
<div v-if="myuser._id" class="col-12 text-h8 q-mt-sm">
|
||||||
|
<span v-if="myuser.profile.qualifica">
|
||||||
|
<em
|
||||||
|
><span class="qualifica">{{ myuser.profile.qualifica }}</span></em
|
||||||
|
>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div v-if="myuser._id" class="col-12 text-h8 q-mt-sm">
|
||||||
|
{{ myuser.profile.biografia }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<CCheckIfIsLogged></CCheckIfIsLogged>
|
||||||
|
</div>
|
||||||
<div v-else-if="tools.isUserOk() || tools.isLogged()">
|
<div v-else-if="tools.isUserOk() || tools.isLogged()">
|
||||||
<div v-if="myuser">
|
<div v-if="myuser">
|
||||||
<CNotifAtTop />
|
<CNotifAtTop />
|
||||||
@@ -274,18 +361,17 @@
|
|||||||
:label="$t('reg.email')"
|
:label="$t('reg.email')"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<q-btn
|
<q-btn
|
||||||
|
outline
|
||||||
outline
|
icon="fas fa-envelope"
|
||||||
icon="fas fa-envelope"
|
:color="$q.dark.isActive ? `shite` : `black`"
|
||||||
:color="$q.dark.isActive ? `shite` : `black`"
|
type="a"
|
||||||
type="a"
|
size="md"
|
||||||
size="md"
|
:label="$t('msgs.send_email')"
|
||||||
:label="$t('msgs.send_email')"
|
:href="tools.getemailto(myuser.email)"
|
||||||
:href="tools.getemailto(myuser.email)"
|
target="__blank"
|
||||||
target="__blank"
|
>
|
||||||
>
|
</q-btn>
|
||||||
</q-btn>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6 col-sm-6 q-ma-xs col-xs-12">
|
<div class="col-md-6 col-sm-6 q-ma-xs col-xs-12">
|
||||||
|
|||||||
Reference in New Issue
Block a user