2022-01-03 21:53:41 +01:00
|
|
|
<template>
|
2022-02-14 10:25:09 +01:00
|
|
|
<div v-if="tools.isUserOk()">
|
|
|
|
|
<div class="q-gutter-sm q-pa-sm q-pb-md">
|
|
|
|
|
<div v-if="myuser.date_reg" class="fit column no-wrap justify-evenly items-center content-start">
|
|
|
|
|
|
|
|
|
|
<div class="">
|
|
|
|
|
<q-avatar size="140px">
|
|
|
|
|
<q-img :src="getImgUser()" :alt="username" img-class="imgprofile" height="140px" @click="showPic = true"/>
|
|
|
|
|
</q-avatar>
|
|
|
|
|
</div>
|
2022-02-12 02:19:49 +01:00
|
|
|
|
2022-02-14 10:25:09 +01:00
|
|
|
<div v-if="static_data.functionality.SHOW_NAMESURNAME">
|
|
|
|
|
<div class="text-h6">
|
|
|
|
|
<span v-if="checkifShow('name')"> {{ myuser.name }}</span> <span v-if="checkifShow('surname')">{{
|
|
|
|
|
myuser.surname
|
|
|
|
|
}}</span>
|
|
|
|
|
</div>
|
2022-02-12 02:19:49 +01:00
|
|
|
</div>
|
2022-02-14 10:25:09 +01:00
|
|
|
<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">{{ myuser.profile.born_city }}</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">
|
2022-02-12 02:19:49 +01:00
|
|
|
<span v-if="myuser.profile.qualifica">
|
|
|
|
|
<em><span class="qualifica">{{ myuser.profile.qualifica }}</span></em>
|
|
|
|
|
</span>
|
2022-02-14 10:25:09 +01:00
|
|
|
</div>
|
|
|
|
|
<div v-if="myuser._id" class="col-12 text-h8 q-mt-sm">
|
|
|
|
|
{{ myuser.profile.biografia }}
|
|
|
|
|
</div>
|
2022-02-12 02:19:49 +01:00
|
|
|
|
2022-02-14 10:25:09 +01:00
|
|
|
<div v-if="!isMyRecord(myuser.username)">
|
|
|
|
|
<q-btn
|
|
|
|
|
v-if="userStore.IsReqFriendByUsername(myuser.username)"
|
|
|
|
|
icon="fas fa-user-plus"
|
|
|
|
|
color="primary" :label="$t('friends.accept_friend')"
|
|
|
|
|
@click="tools.addToMyFriends($q, userStore.my.username, myuser.username)"
|
|
|
|
|
/>
|
|
|
|
|
<div v-else>
|
|
|
|
|
<q-btn
|
|
|
|
|
v-if="!userStore.IsMyFriendByUsername(myuser.username) && !userStore.IsAskedFriendByUsername(myuser.username)"
|
|
|
|
|
icon="fas fa-user-plus"
|
|
|
|
|
color="primary" :label="$t('friends.ask_friend')"
|
|
|
|
|
@click="tools.setRequestFriendship($q, userStore.my.username, myuser.username, true)"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2022-02-12 02:19:49 +01:00
|
|
|
|
2022-02-14 10:25:09 +01:00
|
|
|
<q-btn v-if="userStore.IsMyFriendByUsername(myuser.username)" rounded icon="fas fa-ellipsis-h" >
|
|
|
|
|
<q-menu>
|
|
|
|
|
<q-list v-if="true" style="min-width: 150px">
|
|
|
|
|
<q-item clickable
|
|
|
|
|
icon="fas fa-user-minus"
|
|
|
|
|
v-close-popup @click="tools.removeFromMyFriends($q, userStore.my.username, myuser.username)">
|
|
|
|
|
<q-item-section>{{ $t('friends.remove_from_myfriends') }}</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
<q-item clickable
|
|
|
|
|
icon="fas fa-ban"
|
|
|
|
|
v-close-popup @click="tools.blockUser($q, userStore.my.username, myuser.username)">
|
|
|
|
|
<q-item-section>{{ $t('friends.block_user') }}</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
|
|
|
|
</q-menu>
|
|
|
|
|
</q-btn>
|
2022-02-12 02:19:49 +01:00
|
|
|
|
2022-02-14 10:25:09 +01:00
|
|
|
<q-btn
|
|
|
|
|
v-if="userStore.IsAskedFriendByUsername(myuser.username) && !userStore.IsMyFriendByUsername(myuser.username)"
|
|
|
|
|
icon="fas fa-user-minus"
|
|
|
|
|
:label="$t('friends.cancel_ask_friend_short')"
|
|
|
|
|
@click="tools.cancelReqFriends($q, userStore.my.username, myuser.username)"
|
|
|
|
|
/>
|
2022-02-12 02:19:49 +01:00
|
|
|
|
2022-02-14 10:25:09 +01:00
|
|
|
</div>
|
2022-02-12 02:19:49 +01:00
|
|
|
|
|
|
|
|
|
2022-02-14 10:25:09 +01:00
|
|
|
<q-btn
|
|
|
|
|
v-if="myuser.username === myusername()" icon="fas fa-pencil-alt"
|
|
|
|
|
color="blue"
|
|
|
|
|
size="md"
|
|
|
|
|
:label="$t('otherpages.modifprof')"
|
|
|
|
|
to="/editprofile">
|
|
|
|
|
</q-btn>
|
|
|
|
|
|
|
|
|
|
<div v-if="myuser._id" class="myrow justify-evenly items-center q-pa-sm q-ma-sm">
|
|
|
|
|
|
|
|
|
|
<div class="col-md-6 col-sm-6 q-ma-xs col-xs-12">
|
|
|
|
|
<q-btn
|
|
|
|
|
v-if="getLinkUserTelegram()" icon="fab fa-telegram"
|
|
|
|
|
color="blue" type="a"
|
|
|
|
|
size="md"
|
|
|
|
|
rounded
|
|
|
|
|
:label="$t('msgs.telegrammsg')"
|
|
|
|
|
:href="getLinkUserTelegram()" target="__blank">
|
|
|
|
|
</q-btn>
|
2022-02-12 02:19:49 +01:00
|
|
|
|
2022-02-14 10:25:09 +01:00
|
|
|
</div>
|
|
|
|
|
<div class="col-md-6 col-sm-6 q-ma-xs col-xs-12">
|
|
|
|
|
<q-btn
|
|
|
|
|
v-if="getLinkWebSite()" icon="fas fa-globe"
|
|
|
|
|
color="blue" type="a"
|
|
|
|
|
size="md"
|
|
|
|
|
rounded
|
|
|
|
|
:label="$t('reg.website')"
|
|
|
|
|
:href="getLinkWebSite()" target="__blank">
|
|
|
|
|
</q-btn>
|
|
|
|
|
</div>
|
2022-02-12 17:02:10 +01:00
|
|
|
|
2022-02-14 10:25:09 +01:00
|
|
|
<CCopyBtn v-if="myuser.username === myusername()" :title="$t('reg.link_reg')"
|
|
|
|
|
:texttocopy="getRefLink(username)">
|
2022-02-12 17:02:10 +01:00
|
|
|
|
2022-02-14 10:25:09 +01:00
|
|
|
</CCopyBtn>
|
2022-02-12 17:02:10 +01:00
|
|
|
|
2022-01-14 23:54:12 +01:00
|
|
|
</div>
|
2022-02-14 10:25:09 +01:00
|
|
|
</div>
|
|
|
|
|
<div v-else class="fit column no-wrap justify-evenly items-center content-start">
|
|
|
|
|
<q-skeleton type="QAvatar" size="140px" height="140px" animation="fade"/>
|
|
|
|
|
<q-card flat bordered style="width: 250px">
|
|
|
|
|
<div class="text-h6">
|
|
|
|
|
<q-skeleton :animation="animation"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12 text-h7 text-grey text-center">
|
|
|
|
|
{{ username }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12 text-h7">
|
|
|
|
|
<q-skeleton :animation="animation"/>
|
|
|
|
|
</div>
|
2022-01-14 23:54:12 +01:00
|
|
|
|
2022-02-14 10:25:09 +01:00
|
|
|
<div class="col-12 text-h8 q-mt-sm">
|
|
|
|
|
<q-skeleton :animation="animation"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12 text-h8 q-mt-sm">
|
|
|
|
|
<q-skeleton :animation="animation"/>
|
|
|
|
|
</div>
|
|
|
|
|
</q-card>
|
|
|
|
|
</div>
|
2022-01-03 21:53:41 +01:00
|
|
|
|
2022-02-14 10:25:09 +01:00
|
|
|
<CTitleBanner
|
|
|
|
|
class="" title="Competenze e Talenti" bgcolor="bg-positive" clcolor="text-white"
|
|
|
|
|
myclass="myshad" :canopen="true">
|
2022-02-03 00:33:05 +01:00
|
|
|
|
2022-02-14 10:25:09 +01:00
|
|
|
<CSkill
|
|
|
|
|
:filtercustom="filtroutente"
|
|
|
|
|
:butt_modif_new="isMyRecord(myuser.username)"
|
2022-02-03 00:33:05 +01:00
|
|
|
|
2022-02-14 10:25:09 +01:00
|
|
|
>
|
2022-02-03 00:33:05 +01:00
|
|
|
|
2022-02-14 10:25:09 +01:00
|
|
|
</CSkill>
|
2022-02-03 00:33:05 +01:00
|
|
|
|
|
|
|
|
|
2022-02-14 10:25:09 +01:00
|
|
|
</CTitleBanner>
|
2022-02-03 00:33:05 +01:00
|
|
|
|
2022-02-14 10:25:09 +01:00
|
|
|
<div v-if="myuser._id">
|
|
|
|
|
<CTitleBanner
|
|
|
|
|
class="" :title="$t('dashboard.info')" bgcolor="bg-primary" clcolor="text-white"
|
|
|
|
|
myclass="myshad" :canopen="true">
|
|
|
|
|
|
|
|
|
|
<div v-if="myuser.profile" class="fit column no-wrap justify-evenly content-start">
|
2022-02-12 02:19:49 +01:00
|
|
|
|
2022-02-14 10:25:09 +01:00
|
|
|
<div class="col-6 text-h6">
|
|
|
|
|
<CDateTime
|
|
|
|
|
v-if="checkifShow('profile.dateofbirth') && !!myuser.profile.dateofbirth"
|
|
|
|
|
v-model:value="myuser.profile.dateofbirth"
|
|
|
|
|
:label="$t('reg.dateofbirth')"
|
|
|
|
|
:canEdit="false">
|
|
|
|
|
</CDateTime>
|
2022-02-12 02:19:49 +01:00
|
|
|
|
2022-02-14 10:25:09 +01:00
|
|
|
</div>
|
2022-02-12 02:19:49 +01:00
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
2022-02-14 10:25:09 +01:00
|
|
|
</CTitleBanner>
|
|
|
|
|
</div>
|
|
|
|
|
|
2022-02-12 02:19:49 +01:00
|
|
|
|
|
|
|
|
</div>
|
2022-02-14 10:25:09 +01:00
|
|
|
<q-dialog
|
|
|
|
|
v-model="showPic"
|
|
|
|
|
full-height full-width
|
|
|
|
|
>
|
2022-02-12 02:19:49 +01:00
|
|
|
|
2022-02-14 10:25:09 +01:00
|
|
|
<img :src="getImgUser()" :alt="username" class="full-width">
|
2022-01-03 21:53:41 +01:00
|
|
|
|
2022-02-14 10:25:09 +01:00
|
|
|
</q-dialog>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else>
|
|
|
|
|
<CUserNonVerif></CUserNonVerif>
|
2022-01-03 21:53:41 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" src="./myprofile.ts">
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
@import './myprofile.scss';
|
|
|
|
|
</style>
|
|
|
|
|
|