Lista Città (prese dal server: pickup)

This commit is contained in:
paoloar77
2022-01-20 00:38:49 +01:00
parent 2d3eff1065
commit d442aa75e8
35 changed files with 1427 additions and 143 deletions

View File

@@ -75,12 +75,22 @@
</CMyFieldDb>
</div>
<CMyFieldDb
title="Qualifica"
table="users"
mykey="profile"
mysubkey="qualifica"
maxlength="40"
:showall="true"
:type="costanti.FieldType.string">
</CMyFieldDb>
<CMyFieldDb
title="Biografia"
table="users"
mykey="profile"
mysubkey="biografia"
maxlength="200"
maxlength="300"
:showall="true"
:type="costanti.FieldType.string">
</CMyFieldDb>

View File

@@ -50,6 +50,7 @@ export default defineComponent({
username: 1,
name: 1,
'profile.img': 1,
'profile.qualifica': 1,
}
}
}

View File

@@ -11,3 +11,8 @@
}
}
.qualifica{
border: solid 2px #4198ef;
border-radius: 1rem;
padding: 5px;
}

View File

@@ -26,6 +26,8 @@ export default defineComponent({
const $q = useQuasar()
const { t } = useI18n()
const animation = ref('fade')
const username = computed(() => $route.params.username ? $route.params.username.toString() : userStore.my.username)
const filtroutente = ref(<any[]>[])
@@ -92,8 +94,8 @@ export default defineComponent({
showPic,
myusername,
userStore,
$q,
t,
animation,
}
}
})

View File

@@ -19,17 +19,27 @@
</div>
<div class="col-12 text-h7">
<span v-if="myuser.profile.born_city">{{ myuser.profile.born_city }}</span> <span
v-if="myuser.profile.nationality">({{ myuser.profile.nationality }})</span>
v-if="myuser.profile.nationality && myuser.profile.nationality !== 'Italia'">({{ myuser.profile.nationality }})</span>
</div>
<div>
<div v-if="myuser.username !== userStore.my.username">
<q-btn
v-if="!userStore.IsMyFriendByUsername(myuser.username)"
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, t, userStore.my.username, myuser.username, true)"/>
@click="tools.setRequestFriendship($q, userStore.my.username, myuser.username, true)"
/>
<q-btn
v-if="userStore.IsAskedFriendByUsername(myuser.username) && !userStore.IsMyFriendByUsername(myuser.username)"
icon="fas fa-user-minus"
flat :label="$t('friends.cancel_ask_friend_short')"
@click="tools.cancelReqFriends($q, userStore.my.username, myuser.username)"
/>
</div>
<div class="col-12 text-h8 q-mt-sm">
<em><span class="qualifica">{{ myuser.profile.qualifica }}</span></em>
</div>
<div class="col-12 text-h8 q-mt-sm">
{{ myuser.profile.biografia }}
</div>
@@ -103,6 +113,7 @@
<CSkill
:filtercustom="filtroutente"
:butt_modif_new="false"
>
</CSkill>