- varie sistemazioni: filtri iscritti, profilo, ecc...
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="13"
|
APP_ID="13"
|
||||||
DIRECTORY_LOCAL="newfreeplanet"
|
DIRECTORY_LOCAL="newfreeplanet"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="13"
|
APP_ID="13"
|
||||||
DIRECTORY_LOCAL=newfreeplanet
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="18"
|
APP_ID="18"
|
||||||
DIRECTORY_LOCAL=newfreeplanet
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="17"
|
APP_ID="17"
|
||||||
DIRECTORY_LOCAL="newfreeplanet"
|
DIRECTORY_LOCAL="newfreeplanet"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="13"
|
APP_ID="13"
|
||||||
DIRECTORY_LOCAL=newfreeplanet
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="19"
|
APP_ID="19"
|
||||||
DIRECTORY_LOCAL=newfreeplanet
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="18"
|
APP_ID="18"
|
||||||
DIRECTORY_LOCAL=newfreeplanet
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="17"
|
APP_ID="17"
|
||||||
DIRECTORY_LOCAL="newfreeplanet"
|
DIRECTORY_LOCAL="newfreeplanet"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="13"
|
APP_ID="13"
|
||||||
DIRECTORY_LOCAL=newfreeplanet
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="13"
|
APP_ID="13"
|
||||||
DIRECTORY_LOCAL=newfreeplanet
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="13"
|
APP_ID="13"
|
||||||
DIRECTORY_LOCAL=newfreeplanet
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="19"
|
APP_ID="19"
|
||||||
DIRECTORY_LOCAL="newfreeplanet"
|
DIRECTORY_LOCAL="newfreeplanet"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "abitaregliiblei",
|
"name": "abitaregliiblei",
|
||||||
"version": "1.1.15",
|
"version": "1.1.16",
|
||||||
"description": "Abitare Gli Iblei",
|
"description": "Abitare Gli Iblei",
|
||||||
"productName": "AbitareGliIblei",
|
"productName": "AbitareGliIblei",
|
||||||
"author": "Paolo Arena",
|
"author": "Paolo Arena",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="13"
|
APP_ID="13"
|
||||||
DIRECTORY_LOCAL="newfreeplanet"
|
DIRECTORY_LOCAL="newfreeplanet"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="16"
|
APP_ID="16"
|
||||||
DIRECTORY_LOCAL=newfreeplanet
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "riso",
|
"name": "riso",
|
||||||
"version": "1.1.15",
|
"version": "1.1.16",
|
||||||
"description": "Siamo la Rete Italiana di Scambio Orizzontale, abbiamo creato questa piattaforma per metterla al servizio di chi vuole riscoprire il valore della condivisione e della cooperazione. Valori semplici e profondi che ci aiutano a ritrovare il Senso della Vita, perduto in questa società consumista, e riporti quei Sani Pricìpi Naturali ed Umani di Fratellanza che intere popolazioni antiche conoscevano bene.",
|
"description": "Siamo la Rete Italiana di Scambio Orizzontale, abbiamo creato questa piattaforma per metterla al servizio di chi vuole riscoprire il valore della condivisione e della cooperazione. Valori semplici e profondi che ci aiutano a ritrovare il Senso della Vita, perduto in questa società consumista, e riporti quei Sani Pricìpi Naturali ed Umani di Fratellanza che intere popolazioni antiche conoscevano bene.",
|
||||||
"productName": "Riso",
|
"productName": "Riso",
|
||||||
"author": "Paolo Arena",
|
"author": "Paolo Arena",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="15"
|
APP_ID="15"
|
||||||
DIRECTORY_LOCAL="newfreeplanet"
|
DIRECTORY_LOCAL="newfreeplanet"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="15"
|
APP_ID="15"
|
||||||
DIRECTORY_LOCAL=newfreeplanet
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "fioredellavita",
|
"name": "fioredellavita",
|
||||||
"version": "1.1.15",
|
"version": "1.1.16",
|
||||||
"description": "Fiore Della Vita",
|
"description": "Fiore Della Vita",
|
||||||
"productName": "Fiore Della Vita",
|
"productName": "Fiore Della Vita",
|
||||||
"author": "Paolo Arena",
|
"author": "Paolo Arena",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="18"
|
APP_ID="18"
|
||||||
DIRECTORY_LOCAL="newfreeplanet"
|
DIRECTORY_LOCAL="newfreeplanet"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="18"
|
APP_ID="18"
|
||||||
DIRECTORY_LOCAL=newfreeplanet
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gruppomacro",
|
"name": "gruppomacro",
|
||||||
"version": "1.1.15",
|
"version": "1.1.16",
|
||||||
"description": "GruppoMacro",
|
"description": "GruppoMacro",
|
||||||
"productName": "Gruppo Macro",
|
"productName": "Gruppo Macro",
|
||||||
"author": "Paolo Arena",
|
"author": "Paolo Arena",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="17"
|
APP_ID="17"
|
||||||
DIRECTORY_LOCAL="newfreeplanet"
|
DIRECTORY_LOCAL="newfreeplanet"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="17"
|
APP_ID="17"
|
||||||
DIRECTORY_LOCAL="newfreeplanet"
|
DIRECTORY_LOCAL="newfreeplanet"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "piuchebuono",
|
"name": "piuchebuono",
|
||||||
"version": "1.1.15",
|
"version": "1.1.16",
|
||||||
"description": "PiuCheBuono",
|
"description": "PiuCheBuono",
|
||||||
"productName": "PiuCheBuono",
|
"productName": "PiuCheBuono",
|
||||||
"author": "Paolo Arena",
|
"author": "Paolo Arena",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="13"
|
APP_ID="13"
|
||||||
DIRECTORY_LOCAL="newfreeplanet"
|
DIRECTORY_LOCAL="newfreeplanet"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="13"
|
APP_ID="13"
|
||||||
DIRECTORY_LOCAL=newfreeplanet
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="1.1.15"
|
APP_VERSION="1.1.16"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="16"
|
APP_ID="16"
|
||||||
DIRECTORY_LOCAL=newfreeplanet
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "riso",
|
"name": "riso",
|
||||||
"version": "1.1.15",
|
"version": "1.1.16",
|
||||||
"description": "Siamo la Rete Italiana di Scambio Orizzontale, abbiamo creato questa piattaforma per metterla al servizio di chi vuole riscoprire il valore della condivisione e della cooperazione. Valori semplici e profondi che ci aiutano a ritrovare il Senso della Vita, perduto in questa società consumista, e riporti quei Sani Pricìpi Naturali ed Umani di Fratellanza che intere popolazioni antiche conoscevano bene.",
|
"description": "Siamo la Rete Italiana di Scambio Orizzontale, abbiamo creato questa piattaforma per metterla al servizio di chi vuole riscoprire il valore della condivisione e della cooperazione. Valori semplici e profondi che ci aiutano a ritrovare il Senso della Vita, perduto in questa società consumista, e riporti quei Sani Pricìpi Naturali ed Umani di Fratellanza che intere popolazioni antiche conoscevano bene.",
|
||||||
"productName": "Riso",
|
"productName": "Riso",
|
||||||
"author": "Paolo Arena",
|
"author": "Paolo Arena",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "riso",
|
"name": "riso",
|
||||||
"version": "1.1.15",
|
"version": "1.1.16",
|
||||||
"description": "Siamo la Rete Italiana di Scambio Orizzontale, abbiamo creato questa piattaforma per metterla al servizio di chi vuole riscoprire il valore della condivisione e della cooperazione. Valori semplici e profondi che ci aiutano a ritrovare il Senso della Vita, perduto in questa società consumista, e riporti quei Sani Pricìpi Naturali ed Umani di Fratellanza che intere popolazioni antiche conoscevano bene.",
|
"description": "Siamo la Rete Italiana di Scambio Orizzontale, abbiamo creato questa piattaforma per metterla al servizio di chi vuole riscoprire il valore della condivisione e della cooperazione. Valori semplici e profondi che ci aiutano a ritrovare il Senso della Vita, perduto in questa società consumista, e riporti quei Sani Pricìpi Naturali ed Umani di Fratellanza che intere popolazioni antiche conoscevano bene.",
|
||||||
"productName": "Riso",
|
"productName": "Riso",
|
||||||
"author": "Paolo Arena",
|
"author": "Paolo Arena",
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ self.addEventListener('activate', (event) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
const APP_VERSION = "1.1.15";
|
const APP_VERSION = "1.1.16";
|
||||||
|
|
||||||
console.log(' [ VER-' + APP_VERSION + ' ] _---------________------ PAO: this is my custom service worker');
|
console.log(' [ VER-' + APP_VERSION + ' ] _---------________------ PAO: this is my custom service worker');
|
||||||
|
|
||||||
|
|||||||
@@ -208,6 +208,8 @@ export const shared_consts = {
|
|||||||
FILTER_USER_WITHOUT_USERNAME_TELEGRAM: 8388608,
|
FILTER_USER_WITHOUT_USERNAME_TELEGRAM: 8388608,
|
||||||
FILTER_USER_PROVINCE: 16777216,
|
FILTER_USER_PROVINCE: 16777216,
|
||||||
FILTER_USER_SENZA_PROVINCE: 33554432,
|
FILTER_USER_SENZA_PROVINCE: 33554432,
|
||||||
|
FILTER_USER_SENZA_CIRCUITO: 67108864,
|
||||||
|
FILTER_USER_CON_CIRCUITO: 134217728,
|
||||||
|
|
||||||
OPTIONS_SEARCH_ONLY_FULL_WORDS: 1,
|
OPTIONS_SEARCH_ONLY_FULL_WORDS: 1,
|
||||||
OPTIONS_SEARCH_USER_ONLY_FULL_WORDS: 2,
|
OPTIONS_SEARCH_USER_ONLY_FULL_WORDS: 2,
|
||||||
@@ -289,6 +291,49 @@ export const shared_consts = {
|
|||||||
TABLES_MYGROUPS: 'mygroups',
|
TABLES_MYGROUPS: 'mygroups',
|
||||||
TABLES_ATTIVITAS: 'attivitas',
|
TABLES_ATTIVITAS: 'attivitas',
|
||||||
|
|
||||||
|
TABFILTRI_UTENTE: 'filtriutente',
|
||||||
|
|
||||||
|
RECFILTRI_UTENTE: [
|
||||||
|
{
|
||||||
|
label: '[Tutti]',
|
||||||
|
value: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Senza Provincia',
|
||||||
|
value: 33554432, // FILTER_USER_SENZA_PROVINCE
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Dentro ad un Circuito RIS',
|
||||||
|
value: 134217728, //FILTER_USER_CON_CIRCUITO:
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Senza Circuito RIS',
|
||||||
|
value: 67108864, // FILTER_USER_SENZA_CIRCUITO
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Con Provincia inserita',
|
||||||
|
value: 16777216, //FILTER_USER_PROVINCE:
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Non ancora approvati dall\'invitante',
|
||||||
|
value: 2097152, // shared_consts.FILTER_USER_NO_VERIFIED_APORTADOR
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Senza Telegram BOT',
|
||||||
|
value: 32, //shared_consts.FILTER_USER_NO_TELEGRAM_ID
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Senza username Telegram',
|
||||||
|
value: 8388608, // shared_consts.FILTER_USER_WITHOUT_USERNAME_TELEGRAM
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Telegram BOT Rimosso',
|
||||||
|
value: 1024, //shared_consts.FILTER_USER_TELEGRAM_BLOCKED
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
],
|
||||||
|
|
||||||
MYTABS: [{ id: 0, table: 'none' },
|
MYTABS: [{ id: 0, table: 'none' },
|
||||||
{ id: 1, table: 'myskills' },
|
{ id: 1, table: 'myskills' },
|
||||||
{ id: 2, table: 'mybachecas' },
|
{ id: 2, table: 'mybachecas' },
|
||||||
|
|||||||
@@ -938,6 +938,40 @@ export default defineComponent({
|
|||||||
arrfilter_cities.push({ key: 'prov', value: idProvince })
|
arrfilter_cities.push({ key: 'prov', value: idProvince })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else if (item.table === shared_consts.TABFILTRI_UTENTE) {
|
||||||
|
if (item.value === shared_consts.FILTER_USER_SENZA_PROVINCE) {
|
||||||
|
filtercustom.push({ 'profile.resid_province': { $exists: false } });
|
||||||
|
} else if (item.value === shared_consts.FILTER_USER_CON_CIRCUITO) {
|
||||||
|
filtercustom.push({
|
||||||
|
'profile.mycircuits': { $exists: true, $ne: [] }
|
||||||
|
});
|
||||||
|
} else if (item.value === shared_consts.FILTER_USER_SENZA_CIRCUITO) {
|
||||||
|
filtercustom.push({
|
||||||
|
$or: [
|
||||||
|
{ 'profile.mycircuits': { $exists: false } },
|
||||||
|
{ 'profile.mycircuits': { $eq: [] } }
|
||||||
|
]
|
||||||
|
});
|
||||||
|
} else if (item.value === shared_consts.FILTER_USER_PROVINCE) {
|
||||||
|
filtercustom.push({ 'profile.resid_province': { $exists: true, $ne: '' } });
|
||||||
|
} else if (item.value === shared_consts.FILTER_USER_TELEGRAM_BLOCKED) {
|
||||||
|
filtercustom.push({ 'profile.teleg_id_old': { $gt: 1 } });
|
||||||
|
} else if (item.value === shared_consts.FILTER_USER_WITHOUT_USERNAME_TELEGRAM) {
|
||||||
|
filtercustom.push({
|
||||||
|
$or: [
|
||||||
|
{ 'profile.username_telegram': { $exists: false } },
|
||||||
|
{ 'profile.username_telegram': { $exists: true, $eq: '' } }],
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
} else if (item.value === shared_consts.FILTER_USER_NO_VERIFIED_APORTADOR) {
|
||||||
|
filtercustom.push({
|
||||||
|
verified_by_aportador: { $exists: false },
|
||||||
|
});
|
||||||
|
} else if (item.value === shared_consts.FILTER_USER_NO_TELEGRAM_ID) {
|
||||||
|
filtercustom.push({ 'profile.teleg_id': { $lt: 1 } });
|
||||||
|
|
||||||
|
}
|
||||||
} else if (item.table === 'cities') {
|
} else if (item.table === 'cities') {
|
||||||
|
|
||||||
if (item.value && item.value.hasOwnProperty('_id')) {
|
if (item.value && item.value.hasOwnProperty('_id')) {
|
||||||
|
|||||||
@@ -1384,7 +1384,7 @@
|
|||||||
@hide="hidewindow"
|
@hide="hidewindow"
|
||||||
class="dialog_class"
|
class="dialog_class"
|
||||||
:persistent="true"
|
:persistent="true"
|
||||||
:maximized="false"
|
:maximized="$q.screen.lt.sm"
|
||||||
>
|
>
|
||||||
<q-card class="dialog_card">
|
<q-card class="dialog_card">
|
||||||
<q-bar dense class="bg-primary text-white">
|
<q-bar dense class="bg-primary text-white">
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ export default defineComponent({
|
|||||||
const notifStore = useNotifStore()
|
const notifStore = useNotifStore()
|
||||||
|
|
||||||
const mycards = computed(() => {
|
const mycards = computed(() => {
|
||||||
return costanti.MAINCARDS.filter((rec: any) => rec.table && rec.visible)
|
return costanti.MAINCARDS.filter((rec: any) => rec.table && rec.showinprofile)
|
||||||
})
|
})
|
||||||
const optionsMainCards = ref({})
|
const optionsMainCards = ref({})
|
||||||
|
|
||||||
@@ -105,7 +105,7 @@ export default defineComponent({
|
|||||||
// Carica il profilo di quest'utente
|
// Carica il profilo di quest'utente
|
||||||
if (username.value) {
|
if (username.value) {
|
||||||
await userStore.loadUserActivities({ username: username.value, idnotif: idnotif.value }).then((ris) => {
|
await userStore.loadUserActivities({ username: username.value, idnotif: idnotif.value }).then((ris) => {
|
||||||
// console.log('loadUserProfile = ', ris)
|
// console.log('loadUserActivities = ', ris)
|
||||||
myuser.value = ris
|
myuser.value = ris
|
||||||
if (myuser.value) {
|
if (myuser.value) {
|
||||||
// filtro_eventi.value = [{ userId: myuser.value._id }, { dateTimeStart: { $gte: today } }]
|
// filtro_eventi.value = [{ userId: myuser.value._id }, { dateTimeStart: { $gte: today } }]
|
||||||
|
|||||||
@@ -128,7 +128,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</q-list>
|
</q-list>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="card.table === shared_consts.TAB_MYCIRCUITS">
|
<div v-else-if="card.table === shared_consts.TABLES_CIRCUITS">
|
||||||
<div class="text-h6">{{ card.title }}</div>
|
<div class="text-h6">{{ card.title }}</div>
|
||||||
<q-list>
|
<q-list>
|
||||||
<span
|
<span
|
||||||
|
|||||||
@@ -728,7 +728,7 @@
|
|||||||
v-html="
|
v-html="
|
||||||
tools.getlinkhref(
|
tools.getlinkhref(
|
||||||
myrec.website,
|
myrec.website,
|
||||||
t('services.visit_website')
|
t('services.visit_website', {link: tools.getMainLink(myrec.website)})
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
/></q-item-label>
|
/></q-item-label>
|
||||||
|
|||||||
@@ -59,8 +59,9 @@
|
|||||||
v-if="circuit.longdescr"
|
v-if="circuit.longdescr"
|
||||||
caption
|
caption
|
||||||
lines="3"
|
lines="3"
|
||||||
><em>{{ circuit.longdescr }}</em></q-item-label
|
><em>
|
||||||
>
|
<div v-html="circuit.longdescr"></div> </em
|
||||||
|
></q-item-label>
|
||||||
<q-item-label caption lines="2">
|
<q-item-label caption lines="2">
|
||||||
<q-chip
|
<q-chip
|
||||||
v-if="circuit.status !== undefined && circuit.status !== 0"
|
v-if="circuit.status !== undefined && circuit.status !== 0"
|
||||||
|
|||||||
@@ -1483,7 +1483,7 @@ h3 {
|
|||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
margin-top: -10px;
|
margin-top: -10px;
|
||||||
color: white;
|
color: white;
|
||||||
z-index: 1000;
|
z-index: 100;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
@@ -2587,3 +2587,7 @@ body.body--dark {
|
|||||||
/* Supporto per lingue specifiche */
|
/* Supporto per lingue specifiche */
|
||||||
lang: it; /* Imposta la lingua a italiano */
|
lang: it; /* Imposta la lingua a italiano */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.custom-z-index {
|
||||||
|
z-index: 2000 !important;
|
||||||
|
}
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
<meta name="description" content="<%= productDescription %>">
|
<meta name="description" content="<%= productDescription %>">
|
||||||
<meta name="format-detection" content="telephone=no">
|
<meta name="format-detection" content="telephone=no">
|
||||||
<meta name="msapplication-tap-highlight" content="no">
|
<meta name="msapplication-tap-highlight" content="no">
|
||||||
<meta name="version" content="1.1.15">
|
<meta name="version" content="1.1.16">
|
||||||
<meta name="viewport"
|
<meta name="viewport"
|
||||||
content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width<% if (ctx.mode.cordova || ctx.mode.capacitor) { %>, viewport-fit=cover<% } %>">
|
content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width<% if (ctx.mode.cordova || ctx.mode.capacitor) { %>, viewport-fit=cover<% } %>">
|
||||||
|
|
||||||
|
|||||||
@@ -45,6 +45,9 @@ const msg_it = {
|
|||||||
data_choose: 'Scegli la Data',
|
data_choose: 'Scegli la Data',
|
||||||
},
|
},
|
||||||
profile: {
|
profile: {
|
||||||
|
info_pers: 'Info Personali',
|
||||||
|
annunci: 'Annunci',
|
||||||
|
share_link: 'Copia Link',
|
||||||
info_msg: 'Puoi compilare facoltativamente questi tuoi dati personali.',
|
info_msg: 'Puoi compilare facoltativamente questi tuoi dati personali.',
|
||||||
info: 'Informazioni su di te',
|
info: 'Informazioni su di te',
|
||||||
chisei: 'Chi Sei? Raccontaci di te:',
|
chisei: 'Chi Sei? Raccontaci di te:',
|
||||||
@@ -1185,7 +1188,7 @@ const msg_it = {
|
|||||||
sector_goods_select: 'Scegli i Settori Preferiti dei Beni',
|
sector_goods_select: 'Scegli i Settori Preferiti dei Beni',
|
||||||
},
|
},
|
||||||
services: {
|
services: {
|
||||||
visit_website: 'Visita il Sito Web',
|
visit_website: 'Visita il Sito Web "{link}"',
|
||||||
email: 'Email:',
|
email: 'Email:',
|
||||||
whatsapp: 'Whatsapp',
|
whatsapp: 'Whatsapp',
|
||||||
createdBy: 'Creato da',
|
createdBy: 'Creato da',
|
||||||
|
|||||||
@@ -142,6 +142,7 @@ export const costanti = {
|
|||||||
small: false,
|
small: false,
|
||||||
showfavorite: true,
|
showfavorite: true,
|
||||||
showinoptions: true,
|
showinoptions: true,
|
||||||
|
showinprofile: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
visible: true,
|
visible: true,
|
||||||
@@ -157,6 +158,7 @@ export const costanti = {
|
|||||||
small: false,
|
small: false,
|
||||||
showfavorite: true,
|
showfavorite: true,
|
||||||
showinoptions: true,
|
showinoptions: true,
|
||||||
|
showinprofile: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
visible: true,
|
visible: true,
|
||||||
@@ -174,48 +176,20 @@ export const costanti = {
|
|||||||
visuonstat: true,
|
visuonstat: true,
|
||||||
showfavorite: true,
|
showfavorite: true,
|
||||||
showinoptions: true,
|
showinoptions: true,
|
||||||
|
showinprofile: true,
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
visible: false,
|
// visible: false,
|
||||||
title: 'Scuola',
|
// title: 'Scuola',
|
||||||
strsingolo: 'Scuola',
|
// strsingolo: 'Scuola',
|
||||||
to: '/school',
|
// to: '/school',
|
||||||
icon: 'fas fa-book-open',
|
// icon: 'fas fa-book-open',
|
||||||
color: 'orange-6',
|
// color: 'orange-6',
|
||||||
hint: '',
|
// hint: '',
|
||||||
disable: true,
|
// disable: true,
|
||||||
small: false,
|
// small: false,
|
||||||
table: '',
|
// table: '',
|
||||||
},
|
// },
|
||||||
{
|
|
||||||
visible: false,
|
|
||||||
title: 'Circuiti RIS',
|
|
||||||
strsingolo: 'Circuito',
|
|
||||||
subtitle: 'Strumento di scambio alternativa alle monete',
|
|
||||||
to: '/circuits',
|
|
||||||
table: 'circuits',
|
|
||||||
icon: 'fas fa-coins',
|
|
||||||
image: 'images/1ris_rosso_100.png',
|
|
||||||
color: 'orange-6',
|
|
||||||
hint: '',
|
|
||||||
disable: true,
|
|
||||||
small: true,
|
|
||||||
visuonstat: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
visible: false,
|
|
||||||
title: 'Gruppi',
|
|
||||||
strsingolo: 'Gruppo',
|
|
||||||
subtitle: 'Associazioni, progetti, comunità, negozi',
|
|
||||||
to: '/groups',
|
|
||||||
table: 'mygroups',
|
|
||||||
icon: 'fas fa-users',
|
|
||||||
color: 'blue-6',
|
|
||||||
hint: '',
|
|
||||||
disable: true,
|
|
||||||
small: true,
|
|
||||||
visuonstat: true,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
visible: true,
|
visible: true,
|
||||||
title: 'Eventi',
|
title: 'Eventi',
|
||||||
@@ -231,32 +205,64 @@ export const costanti = {
|
|||||||
small: false,
|
small: false,
|
||||||
showfavorite: true,
|
showfavorite: true,
|
||||||
showinoptions: true,
|
showinoptions: true,
|
||||||
|
showinprofile: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
visible: false,
|
visible: false,
|
||||||
strsingolo: 'Luogo',
|
title: 'Circuiti RIS',
|
||||||
title: 'Luoghi',
|
strsingolo: 'Circuito',
|
||||||
to: '/places',
|
subtitle: 'Strumento di scambio alternativa alle monete',
|
||||||
icon: 'fas fa-map-marker-alt',
|
to: '/circuits',
|
||||||
color: 'blue-6',
|
table: 'circuits',
|
||||||
hint: '',
|
icon: 'fas fa-coins',
|
||||||
disable: true,
|
image: 'images/1ris_rosso_100.png',
|
||||||
small: false,
|
color: 'orange-6',
|
||||||
table: '',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
visible: false,
|
|
||||||
strsingolo: 'Idea',
|
|
||||||
title: 'Tue Idee',
|
|
||||||
to: '/ideas',
|
|
||||||
icon: 'fas fa-lightbulb',
|
|
||||||
color: 'red-6',
|
|
||||||
textcolor: '',
|
|
||||||
hint: '',
|
hint: '',
|
||||||
disable: true,
|
disable: true,
|
||||||
small: true,
|
small: true,
|
||||||
table: '',
|
visuonstat: true,
|
||||||
|
showinprofile: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
visible: false,
|
||||||
|
title: 'Gruppi',
|
||||||
|
strsingolo: 'Gruppo',
|
||||||
|
subtitle: 'Associazioni, progetti, comunità, negozi',
|
||||||
|
to: '/groups',
|
||||||
|
table: 'mygroups',
|
||||||
|
icon: 'fas fa-users',
|
||||||
|
color: 'blue-6',
|
||||||
|
hint: '',
|
||||||
|
disable: true,
|
||||||
|
small: true,
|
||||||
|
visuonstat: true,
|
||||||
|
showinprofile: true,
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// visible: false,
|
||||||
|
// strsingolo: 'Luogo',
|
||||||
|
// title: 'Luoghi',
|
||||||
|
// to: '/places',
|
||||||
|
// icon: 'fas fa-map-marker-alt',
|
||||||
|
// color: 'blue-6',
|
||||||
|
// hint: '',
|
||||||
|
// disable: true,
|
||||||
|
// small: false,
|
||||||
|
// table: '',
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// visible: false,
|
||||||
|
// strsingolo: 'Idea',
|
||||||
|
// title: 'Tue Idee',
|
||||||
|
// to: '/ideas',
|
||||||
|
// icon: 'fas fa-lightbulb',
|
||||||
|
// color: 'red-6',
|
||||||
|
// textcolor: '',
|
||||||
|
// hint: '',
|
||||||
|
// disable: true,
|
||||||
|
// small: true,
|
||||||
|
// table: '',
|
||||||
|
// },
|
||||||
/*{
|
/*{
|
||||||
visible: false,
|
visible: false,
|
||||||
title: 'Sostieni il Progetto️',
|
title: 'Sostieni il Progetto️',
|
||||||
@@ -281,33 +287,33 @@ export const costanti = {
|
|||||||
link: true,
|
link: true,
|
||||||
table: '',
|
table: '',
|
||||||
},*/
|
},*/
|
||||||
{
|
// {
|
||||||
visible: false,
|
// visible: false,
|
||||||
title: 'Social',
|
// title: 'Social',
|
||||||
to: '/socialising',
|
// to: '/socialising',
|
||||||
icon: 'fas fa-users',
|
// icon: 'fas fa-users',
|
||||||
color: 'blue-6',
|
// color: 'blue-6',
|
||||||
hint: '',
|
// hint: '',
|
||||||
disable: true,
|
// disable: true,
|
||||||
small: true,
|
// small: true,
|
||||||
table: '',
|
// table: '',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
visible: false,
|
// visible: false,
|
||||||
title: ' Attività ',
|
// title: ' Attività ',
|
||||||
subtitle: 'Artigiani, Aziende, Società, Negozi',
|
// subtitle: 'Artigiani, Aziende, Società, Negozi',
|
||||||
strsingolo: 'Attivita',
|
// strsingolo: 'Attivita',
|
||||||
to: '/activities',
|
// to: '/activities',
|
||||||
icon: 'fas fa-tshirt',
|
// icon: 'fas fa-tshirt',
|
||||||
color: 'indigo-6',
|
// color: 'indigo-6',
|
||||||
hint: '',
|
// hint: '',
|
||||||
table: 'attivitas',
|
// table: 'attivitas',
|
||||||
visuonstat: true,
|
// visuonstat: true,
|
||||||
small: false,
|
// small: false,
|
||||||
showfavorite: true,
|
// showfavorite: true,
|
||||||
forgroup: true,
|
// forgroup: true,
|
||||||
showinoptions: false,
|
// showinoptions: false,
|
||||||
},
|
// },
|
||||||
],
|
],
|
||||||
|
|
||||||
GROUPCARDS: [
|
GROUPCARDS: [
|
||||||
|
|||||||
@@ -4757,6 +4757,13 @@ export const fieldsTable = {
|
|||||||
colkey: 'value',
|
colkey: 'value',
|
||||||
collabel: 'label',
|
collabel: 'label',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
value: shared_consts.TABFILTRI_UTENTE,
|
||||||
|
label: 'Tipi di Filtro',
|
||||||
|
columns: colTableGeneric,
|
||||||
|
colkey: 'value',
|
||||||
|
collabel: 'label',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
value: 'otherfilters',
|
value: 'otherfilters',
|
||||||
label: 'Altri Filtri',
|
label: 'Altri Filtri',
|
||||||
|
|||||||
@@ -9511,6 +9511,24 @@ export const tools = {
|
|||||||
return optcatalogo.areadistampa!.scale
|
return optcatalogo.areadistampa!.scale
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getMainLink(url: string) {
|
||||||
|
try {
|
||||||
|
// Crea un nuovo oggetto URL a partire dall'input
|
||||||
|
const parsedUrl = new URL(url);
|
||||||
|
|
||||||
|
// Estrae solo il protocollo, l'host e la porta
|
||||||
|
const { protocol, host } = parsedUrl;
|
||||||
|
|
||||||
|
// Ricostruisce il link principale
|
||||||
|
const mainLink = `${host}`;
|
||||||
|
|
||||||
|
return mainLink;
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Errore durante l\'elaborazione dell\'URL:', error);
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// FINE !
|
// FINE !
|
||||||
|
|
||||||
// getLocale() {
|
// getLocale() {
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ export const CMD_REACTION = {
|
|||||||
SET_ATTEND: 4,
|
SET_ATTEND: 4,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export const DefaultUser: IUserFields = {
|
export const DefaultUser: IUserFields = {
|
||||||
_id: '',
|
_id: '',
|
||||||
email: '',
|
email: '',
|
||||||
|
|||||||
@@ -373,6 +373,8 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
|||||||
return calendarStore.wheres
|
return calendarStore.wheres
|
||||||
else if (table === 'contribtypes')
|
else if (table === 'contribtypes')
|
||||||
return calendarStore.contribtype
|
return calendarStore.contribtype
|
||||||
|
else if (table === shared_consts.TABFILTRI_UTENTE)
|
||||||
|
return shared_consts.RECFILTRI_UTENTE
|
||||||
else if (table === 'disciplines') ris = state.disciplines
|
else if (table === 'disciplines') ris = state.disciplines
|
||||||
else if (table === toolsext.TABNEWSLETTER) ris = state.newstosent
|
else if (table === toolsext.TABNEWSLETTER) ris = state.newstosent
|
||||||
else if (table === toolsext.TABGALLERY) ris = state.gallery
|
else if (table === toolsext.TABGALLERY) ris = state.gallery
|
||||||
@@ -445,7 +447,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
|||||||
else if (table === 'catgrps')
|
else if (table === 'catgrps')
|
||||||
return state.catgrps
|
return state.catgrps
|
||||||
else if (table === 'provinces')
|
else if (table === 'provinces')
|
||||||
return state.provinces.filter((prov: IProvince) => (!prov.card))
|
return state.provinces.filter((rec: IProvince) => (!rec.card) && (rec.prov !== 'ITA') && (rec.prov !== 'EST'))
|
||||||
else if (table === 'cards') {
|
else if (table === 'cards') {
|
||||||
const arrprov: any[] = state.provinces.filter((prov: IProvince) => prov.prov === value2 && (!!prov.card))
|
const arrprov: any[] = state.provinces.filter((prov: IProvince) => prov.prov === value2 && (!!prov.card))
|
||||||
if (arrprov) {
|
if (arrprov) {
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ export default defineComponent({
|
|||||||
const defpersmin = ref(100)
|
const defpersmin = ref(100)
|
||||||
const defpersmax = ref(200)
|
const defpersmax = ref(200)
|
||||||
const search_username = ref('')
|
const search_username = ref('')
|
||||||
|
const search = ref('')
|
||||||
const replace_username = ref('')
|
const replace_username = ref('')
|
||||||
const risultato = ref('')
|
const risultato = ref('')
|
||||||
const incaricamento = ref(false)
|
const incaricamento = ref(false)
|
||||||
@@ -62,6 +63,7 @@ export default defineComponent({
|
|||||||
numpersone: numpersone,
|
numpersone: numpersone,
|
||||||
search_username,
|
search_username,
|
||||||
replace_username,
|
replace_username,
|
||||||
|
search: search.value,
|
||||||
valmin: tools.convstrToNum(valmin),
|
valmin: tools.convstrToNum(valmin),
|
||||||
valmax: tools.convstrToNum(valmax),
|
valmax: tools.convstrToNum(valmax),
|
||||||
circuitId,
|
circuitId,
|
||||||
@@ -105,6 +107,7 @@ export default defineComponent({
|
|||||||
incaricamento,
|
incaricamento,
|
||||||
ris,
|
ris,
|
||||||
risultato,
|
risultato,
|
||||||
|
search,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -341,6 +341,13 @@
|
|||||||
EseguiFunz('ReplaceUsername', search_username, replace_username)
|
EseguiFunz('ReplaceUsername', search_username, replace_username)
|
||||||
"
|
"
|
||||||
></q-btn>
|
></q-btn>
|
||||||
|
<q-btn
|
||||||
|
label="Replace AportadorSolidario"
|
||||||
|
color="primary"
|
||||||
|
@click="
|
||||||
|
EseguiFunz('replaceAportadorSolidario', search_username, replace_username)
|
||||||
|
"
|
||||||
|
></q-btn>
|
||||||
<q-btn
|
<q-btn
|
||||||
label="Replace Circuit"
|
label="Replace Circuit"
|
||||||
color="primary"
|
color="primary"
|
||||||
@@ -350,6 +357,21 @@
|
|||||||
></q-btn>
|
></q-btn>
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<q-input
|
||||||
|
v-model="search"
|
||||||
|
label="stringa da cercare"
|
||||||
|
style="width: 300px"
|
||||||
|
></q-input>
|
||||||
|
<q-btn
|
||||||
|
label="Cerca Stringa su tutto il DB"
|
||||||
|
color="primary"
|
||||||
|
@click="
|
||||||
|
EseguiFunz('SearchString', search)
|
||||||
|
"
|
||||||
|
></q-btn>
|
||||||
|
<br />
|
||||||
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<q-btn
|
<q-btn
|
||||||
label="Create Account Circuits"
|
label="Create Account Circuits"
|
||||||
|
|||||||
@@ -512,7 +512,6 @@
|
|||||||
icon="fas fa-users"
|
icon="fas fa-users"
|
||||||
></q-tab>
|
></q-tab>
|
||||||
<q-tab
|
<q-tab
|
||||||
v-if="userStore.IsMyCircuitByName(circuit.name)"
|
|
||||||
:label="t('circuit.comunitario')"
|
:label="t('circuit.comunitario')"
|
||||||
name="comunitario"
|
name="comunitario"
|
||||||
icon="fas fa-campground"
|
icon="fas fa-campground"
|
||||||
|
|||||||
@@ -30,6 +30,19 @@ export default defineComponent({
|
|||||||
function mounted() {
|
function mounted() {
|
||||||
|
|
||||||
searchList.value = [
|
searchList.value = [
|
||||||
|
{
|
||||||
|
label: 'Filtra per',
|
||||||
|
table: shared_consts.TABFILTRI_UTENTE,
|
||||||
|
key: '',
|
||||||
|
type: costanti.FieldType.select,
|
||||||
|
value: tools.getCookie(tools.COOK_SEARCH + 'filtroutente', costanti.FILTER_TUTTI),
|
||||||
|
keycookie: '_fu',
|
||||||
|
addall: false,
|
||||||
|
arrvalue: [],
|
||||||
|
filter: null,
|
||||||
|
useinput: false,
|
||||||
|
icon: 'fas fa-filter'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'Regione',
|
label: 'Regione',
|
||||||
table: 'regions',
|
table: 'regions',
|
||||||
|
|||||||
@@ -1,24 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="">
|
<div class="">
|
||||||
<!--
|
|
||||||
<q-banner
|
|
||||||
rounded
|
|
||||||
dense
|
|
||||||
class="bg-warning text-white"
|
|
||||||
color="primary q-title"
|
|
||||||
style="text-align: center;">
|
|
||||||
<template v-slot:avatar>
|
|
||||||
<q-icon name="fas fa-exclamation-triangle" color="yellow" size="xs" />
|
|
||||||
</template>
|
|
||||||
<span class="mybanner">Questa sezione è ancora in fase di miglioramento.</span>
|
|
||||||
|
|
||||||
</q-banner>
|
|
||||||
-->
|
|
||||||
<CMyFriends v-if="searchList.length > 0" v-model="filter" :finder="true">
|
<CMyFriends v-if="searchList.length > 0" v-model="filter" :finder="true">
|
||||||
<CGridTableRec
|
<CGridTableRec
|
||||||
prop_mytable="users"
|
prop_mytable="users"
|
||||||
prop_mytitle=""
|
prop_mytitle=""
|
||||||
subtitle="Seleziona una Regione o provincia per vedere la lista degli iscritti:"
|
|
||||||
:prop_mycolumns="colmyUserPeople"
|
:prop_mycolumns="colmyUserPeople"
|
||||||
prop_colkey="_id"
|
prop_colkey="_id"
|
||||||
col_title="username"
|
col_title="username"
|
||||||
@@ -26,11 +11,11 @@
|
|||||||
nodataLabel=" "
|
nodataLabel=" "
|
||||||
:prop_search="true"
|
:prop_search="true"
|
||||||
:prop_showfilter="true"
|
:prop_showfilter="true"
|
||||||
hint="Scegli una Regione, Provincia oppure scrivi il nome o Username"
|
hint=""
|
||||||
:finder="true"
|
:finder="true"
|
||||||
:choose_visutype="false"
|
:choose_visutype="false"
|
||||||
:finder_noNull="false"
|
:finder_noNull="false"
|
||||||
:finder_noNullFilters="true"
|
:finder_noNullFilters="false"
|
||||||
:options="shared_consts.OPTIONS_SEARCH_USER_ALL_WORDS"
|
:options="shared_consts.OPTIONS_SEARCH_USER_ALL_WORDS"
|
||||||
:butt_modif_new="false"
|
:butt_modif_new="false"
|
||||||
noresultLabel="Username, Nome o Cognome non trovato"
|
noresultLabel="Username, Nome o Cognome non trovato"
|
||||||
@@ -38,6 +23,7 @@
|
|||||||
:filtercustom="filtercustom"
|
:filtercustom="filtercustom"
|
||||||
:prop_searchList="searchList"
|
:prop_searchList="searchList"
|
||||||
:showType="costanti.SHOW_USERINFO"
|
:showType="costanti.SHOW_USERINFO"
|
||||||
|
:prop_pagination="{ sortBy: 'username', descending: false, page: 1, rowsNumber: 0, rowsPerPage: 10 }"
|
||||||
:showCol="false"
|
:showCol="false"
|
||||||
:extraparams="extraparams()"
|
:extraparams="extraparams()"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -96,37 +96,12 @@
|
|||||||
<div class="col-12 text-h7 text-blue text-shadow-2">
|
<div class="col-12 text-h7 text-blue text-shadow-2">
|
||||||
{{ userStore.userprofile.username }}
|
{{ userStore.userprofile.username }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 text-h7">
|
<div
|
||||||
<span
|
v-if="
|
||||||
v-if="
|
userStore.userprofile && userStore.userprofile.profile.qualifica
|
||||||
userStore.userprofile.profile &&
|
"
|
||||||
userStore.userprofile.profile.born_city_id
|
class="col-12 text-h8 q-mt-sm"
|
||||||
"
|
>
|
||||||
>
|
|
||||||
<CMyFieldRec
|
|
||||||
title=""
|
|
||||||
table="users"
|
|
||||||
tablesel="cities"
|
|
||||||
:id="userStore.userprofile._id"
|
|
||||||
:rec="userStore.userprofile"
|
|
||||||
field="profile.born_city_id"
|
|
||||||
:canEdit="false"
|
|
||||||
:canModify="false"
|
|
||||||
>
|
|
||||||
</CMyFieldRec>
|
|
||||||
|
|
||||||
{{ userStore.userprofile.profile.born_city_str }}</span
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
v-if="
|
|
||||||
userStore.userprofile.profile &&
|
|
||||||
userStore.userprofile.profile.nationality &&
|
|
||||||
userStore.userprofile.profile.nationality !== 'Italia'
|
|
||||||
"
|
|
||||||
>({{ userStore.userprofile.profile.nationality }})</span
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
<div v-if="userStore.userprofile._id" class="col-12 text-h8 q-mt-sm">
|
|
||||||
<span v-if="userStore.userprofile.profile.qualifica">
|
<span v-if="userStore.userprofile.profile.qualifica">
|
||||||
<em
|
<em
|
||||||
><div class="qualifica">
|
><div class="qualifica">
|
||||||
@@ -135,7 +110,12 @@
|
|||||||
>
|
>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="userStore.userprofile._id" class="col-12 text-h8 q-mt-sm">
|
<div
|
||||||
|
v-if="
|
||||||
|
userStore.userprofile && userStore.userprofile.profile.biografia
|
||||||
|
"
|
||||||
|
class="col-12 text-h8 q-mt-sm"
|
||||||
|
>
|
||||||
{{ userStore.userprofile.profile.biografia }}
|
{{ userStore.userprofile.profile.biografia }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -214,36 +194,6 @@
|
|||||||
<div class="col-12 text-h7 text-blue text-shadow-2">
|
<div class="col-12 text-h7 text-blue text-shadow-2">
|
||||||
{{ userStore.userprofile.username }}
|
{{ userStore.userprofile.username }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 text-h7">
|
|
||||||
<span
|
|
||||||
v-if="
|
|
||||||
userStore.userprofile.profile &&
|
|
||||||
userStore.userprofile.profile.born_city_id
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<CMyFieldRec
|
|
||||||
title=""
|
|
||||||
table="users"
|
|
||||||
tablesel="cities"
|
|
||||||
:id="userStore.userprofile._id"
|
|
||||||
:rec="userStore.userprofile"
|
|
||||||
field="profile.born_city_id"
|
|
||||||
:canEdit="false"
|
|
||||||
:canModify="false"
|
|
||||||
>
|
|
||||||
</CMyFieldRec>
|
|
||||||
|
|
||||||
{{ userStore.userprofile.profile.born_city_str }}</span
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
v-if="
|
|
||||||
userStore.userprofile.profile &&
|
|
||||||
userStore.userprofile.profile.nationality &&
|
|
||||||
userStore.userprofile.profile.nationality !== 'Italia'
|
|
||||||
"
|
|
||||||
>({{ userStore.userprofile.profile.nationality }})</span
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
<div
|
<div
|
||||||
v-if="
|
v-if="
|
||||||
userStore.userprofile.profile.qualifica &&
|
userStore.userprofile.profile.qualifica &&
|
||||||
@@ -269,14 +219,398 @@
|
|||||||
@showed="showed"
|
@showed="showed"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<div class="row justify-center">
|
||||||
|
<q-btn
|
||||||
|
v-if="
|
||||||
|
userStore.userprofile.profile &&
|
||||||
|
userStore.userprofile.profile.handshake &&
|
||||||
|
userStore.userprofile.profile.handshake.length > 0
|
||||||
|
"
|
||||||
|
:label="quantiHandShake"
|
||||||
|
class="q-my-sm"
|
||||||
|
color="grey-3"
|
||||||
|
:text-color="$q.dark.isActive ? 'black' : 'black'"
|
||||||
|
rounded
|
||||||
|
icon="fas fa-handshake"
|
||||||
|
@click="
|
||||||
|
usersList.show = true;
|
||||||
|
usersList.title = 'Lista Strette di mano';
|
||||||
|
usersList.list = userStore.userprofile.profile.handshake;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
</q-btn>
|
||||||
|
<q-btn
|
||||||
|
v-if="
|
||||||
|
userStore.userprofile.username !== myusername() &&
|
||||||
|
handshake_inCommon &&
|
||||||
|
handshake_inCommon.length > 0
|
||||||
|
"
|
||||||
|
:label="quanteHandShakeInCommon"
|
||||||
|
class="q-my-sm"
|
||||||
|
:text-color="$q.dark.isActive ? 'black' : 'black'"
|
||||||
|
rounded
|
||||||
|
icon="fas fa-handshake"
|
||||||
|
@click="
|
||||||
|
usersList.show = true;
|
||||||
|
usersList.title = 'Strette di mano in Comune';
|
||||||
|
usersList.list = handshake_inCommon;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
</q-btn>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
v-if="userStore.userprofile.username !== myusername()"
|
||||||
|
class="row justify-center"
|
||||||
|
>
|
||||||
|
<q-chip
|
||||||
|
v-if="
|
||||||
|
userStore.IsHandShakeByMe(userStore.userprofile) &&
|
||||||
|
userStore.IsHandShakeByUsername(
|
||||||
|
userStore.userprofile.username
|
||||||
|
)
|
||||||
|
"
|
||||||
|
color="green"
|
||||||
|
dense
|
||||||
|
class="chipbooked shadow-5 q-pa-sm2"
|
||||||
|
size="md"
|
||||||
|
text-color="white"
|
||||||
|
icon="fas fa-handshake"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
> <em
|
||||||
|
class="q-pa-xxs text-white rounded-borders shadow-2"
|
||||||
|
>
|
||||||
|
{{
|
||||||
|
$t('db.both_fiducia', {
|
||||||
|
username: userStore.userprofile.username,
|
||||||
|
})
|
||||||
|
}}
|
||||||
|
</em></span
|
||||||
|
>
|
||||||
|
</q-chip>
|
||||||
|
<q-chip
|
||||||
|
v-else-if="
|
||||||
|
!userStore.IsHandShakeByMe(userStore.userprofile) &&
|
||||||
|
userStore.IsHandShakeByUsername(
|
||||||
|
userStore.userprofile.username
|
||||||
|
)
|
||||||
|
"
|
||||||
|
color="blue"
|
||||||
|
dense
|
||||||
|
class="cltexth4 chipbooked shadow-5 q-pa-sm2"
|
||||||
|
size="md"
|
||||||
|
text-color="white"
|
||||||
|
icon="fas fa-handshake"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
> <em
|
||||||
|
class="q-pa-xxs text-white rounded-borders shadow-2"
|
||||||
|
>
|
||||||
|
{{
|
||||||
|
$t('db.handshake_him', {
|
||||||
|
username: userStore.userprofile.username,
|
||||||
|
})
|
||||||
|
}}
|
||||||
|
</em></span
|
||||||
|
>
|
||||||
|
</q-chip>
|
||||||
|
<q-chip
|
||||||
|
v-else-if="
|
||||||
|
userStore.IsHandShakeByMe(userStore.userprofile) &&
|
||||||
|
!userStore.IsHandShakeByUsername(
|
||||||
|
userStore.userprofile.username
|
||||||
|
)
|
||||||
|
"
|
||||||
|
color="blue"
|
||||||
|
dense
|
||||||
|
class="cltexth4 chipbooked shadow-5 q-pa-sm2"
|
||||||
|
size="md"
|
||||||
|
text-color="white"
|
||||||
|
icon="fas fa-handshake"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
> <em
|
||||||
|
class="q-pa-xxs text-white rounded-borders shadow-2"
|
||||||
|
>
|
||||||
|
{{
|
||||||
|
$t('db.handshake_you', {
|
||||||
|
username: userStore.userprofile.username,
|
||||||
|
})
|
||||||
|
}}
|
||||||
|
</em></span
|
||||||
|
>
|
||||||
|
</q-chip>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!--HANDSHAKE-->
|
||||||
|
<div
|
||||||
|
v-if="
|
||||||
|
!isMyRecord(userStore.userprofile.username) && tools.isUserOk()
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="row centeritems q-pa-sm"
|
||||||
|
v-if="!userStore.IsHandShakeByMe(userStore.userprofile)"
|
||||||
|
>
|
||||||
|
<q-btn
|
||||||
|
v-if="
|
||||||
|
userStore.IsHandShakeByUsername(
|
||||||
|
userStore.userprofile.username
|
||||||
|
)
|
||||||
|
"
|
||||||
|
icon="fas fa-handshake"
|
||||||
|
color="positive"
|
||||||
|
dense
|
||||||
|
:label="$t('handshake.accept_you_too_handshake')"
|
||||||
|
@click="
|
||||||
|
tools.addToMyHandShake(
|
||||||
|
$q,
|
||||||
|
userStore.my.username,
|
||||||
|
userStore.userprofile.username
|
||||||
|
)
|
||||||
|
"
|
||||||
|
/>
|
||||||
|
<q-btn
|
||||||
|
v-else
|
||||||
|
icon="fas fa-handshake"
|
||||||
|
color="positive"
|
||||||
|
dense
|
||||||
|
:label="$t('handshake.accept_handshake')"
|
||||||
|
@click="
|
||||||
|
tools.addToMyHandShake(
|
||||||
|
$q,
|
||||||
|
userStore.my.username,
|
||||||
|
userStore.userprofile.username
|
||||||
|
)
|
||||||
|
"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
v-if="!isMyRecord(userStore.userprofile.username)"
|
||||||
|
class="q-ma-sm"
|
||||||
|
>
|
||||||
|
<div class="row justify-center">
|
||||||
|
<div
|
||||||
|
class="row centeritems q-ma-sm q-pa-sm"
|
||||||
|
v-if="
|
||||||
|
costanti.ENABLE_FRIENDS &&
|
||||||
|
userStore.IsReqFriendByUsername(
|
||||||
|
userStore.userprofile.username
|
||||||
|
)
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<q-btn
|
||||||
|
icon="fas fa-user-plus"
|
||||||
|
color="positive"
|
||||||
|
dense
|
||||||
|
:label="$t('friends.accept_friend')"
|
||||||
|
@click="
|
||||||
|
tools.addToMyFriends(
|
||||||
|
$q,
|
||||||
|
userStore.my.username,
|
||||||
|
userStore.userprofile.username
|
||||||
|
)
|
||||||
|
"
|
||||||
|
/>
|
||||||
|
<q-btn
|
||||||
|
icon="fas fa-user-minus"
|
||||||
|
outline
|
||||||
|
color="negative"
|
||||||
|
:label="$t('friends.reject_ask_friend')"
|
||||||
|
@click="
|
||||||
|
tools.refuseReqFriends(
|
||||||
|
$q,
|
||||||
|
userStore.my.username,
|
||||||
|
userStore.userprofile.username
|
||||||
|
)
|
||||||
|
"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
<q-btn
|
||||||
|
v-if="
|
||||||
|
costanti.ENABLE_FRIENDS &&
|
||||||
|
!userStore.IsMyFriendByUsername(
|
||||||
|
userStore.userprofile.username
|
||||||
|
) &&
|
||||||
|
!userStore.IsAskedFriendByUsername(
|
||||||
|
userStore.userprofile.username
|
||||||
|
)
|
||||||
|
"
|
||||||
|
icon="fas fa-user-plus"
|
||||||
|
color="primary"
|
||||||
|
dense
|
||||||
|
:label="$t('friends.ask_friend')"
|
||||||
|
@click="
|
||||||
|
tools.setRequestFriendship(
|
||||||
|
$q,
|
||||||
|
userStore.my.username,
|
||||||
|
userStore.userprofile.username,
|
||||||
|
true
|
||||||
|
)
|
||||||
|
"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row justify-center">
|
||||||
|
<q-btn
|
||||||
|
v-if="
|
||||||
|
userStore.IsMyFriendByUsername(
|
||||||
|
userStore.userprofile.username
|
||||||
|
) || userStore.IsHandShakeByMe(userStore.userprofile)
|
||||||
|
"
|
||||||
|
class="text-center"
|
||||||
|
rounded
|
||||||
|
dense
|
||||||
|
icon="fas fa-ellipsis-h"
|
||||||
|
>
|
||||||
|
<q-menu>
|
||||||
|
<q-list style="min-width: 150px">
|
||||||
|
<q-item
|
||||||
|
v-if="userStore.IsHandShakeByMe(userStore.userprofile)"
|
||||||
|
clickable
|
||||||
|
v-close-popup
|
||||||
|
@click="
|
||||||
|
tools.removeFromMyHandShake(
|
||||||
|
$q,
|
||||||
|
userStore.my.username,
|
||||||
|
userStore.userprofile.username
|
||||||
|
)
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<q-item-section avatar>
|
||||||
|
<q-icon
|
||||||
|
color="negative"
|
||||||
|
name="fas fa-handshake-slash"
|
||||||
|
/>
|
||||||
|
</q-item-section>
|
||||||
|
<q-item-section>{{
|
||||||
|
$t('handshake.remove_from_myhandshake')
|
||||||
|
}}</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
<q-item
|
||||||
|
v-if="
|
||||||
|
costanti.ENABLE_FRIENDS &&
|
||||||
|
userStore.IsMyFriendByUsername(
|
||||||
|
userStore.userprofile.username
|
||||||
|
)
|
||||||
|
"
|
||||||
|
clickable
|
||||||
|
icon="fas fa-user-minus"
|
||||||
|
outline
|
||||||
|
v-close-popup
|
||||||
|
@click="
|
||||||
|
tools.removeFromMyFriends(
|
||||||
|
$q,
|
||||||
|
userStore.my.username,
|
||||||
|
userStore.userprofile.username
|
||||||
|
)
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<q-item-section avatar>
|
||||||
|
<q-icon color="negative" name="fas fa-user-minus" />
|
||||||
|
</q-item-section>
|
||||||
|
<q-item-section>{{
|
||||||
|
$t('friends.remove_from_myfriends')
|
||||||
|
}}</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
<q-item
|
||||||
|
v-if="
|
||||||
|
userStore.IsMyFriendByUsername(
|
||||||
|
userStore.userprofile.username
|
||||||
|
)
|
||||||
|
"
|
||||||
|
clickable
|
||||||
|
icon="fas fa-ban"
|
||||||
|
v-close-popup
|
||||||
|
@click="
|
||||||
|
tools.blockUser(
|
||||||
|
$q,
|
||||||
|
userStore.my.username,
|
||||||
|
userStore.userprofile.username
|
||||||
|
)
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<q-item-section avatar>
|
||||||
|
<q-icon color="negative" name="fas fa-ban" />
|
||||||
|
</q-item-section>
|
||||||
|
<q-item-section>{{
|
||||||
|
$t('friends.block_user')
|
||||||
|
}}</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
<q-item
|
||||||
|
v-if="
|
||||||
|
userStore.IsMyFriendByUsername(
|
||||||
|
userStore.userprofile.username
|
||||||
|
)
|
||||||
|
"
|
||||||
|
clickable
|
||||||
|
v-close-popup
|
||||||
|
@click="
|
||||||
|
tools.reportUser(
|
||||||
|
$q,
|
||||||
|
userStore.my.username,
|
||||||
|
userStore.userprofile.username
|
||||||
|
)
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<q-item-section avatar>
|
||||||
|
<q-icon color="negative" name="fas fa-flag" />
|
||||||
|
</q-item-section>
|
||||||
|
<q-item-section>{{
|
||||||
|
$t('friends.report_user')
|
||||||
|
}}</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
</q-list>
|
||||||
|
</q-menu>
|
||||||
|
</q-btn>
|
||||||
|
|
||||||
|
<q-btn
|
||||||
|
v-if="
|
||||||
|
costanti.ENABLE_FRIENDS &&
|
||||||
|
userStore.IsAskedFriendByUsername(
|
||||||
|
userStore.userprofile.username
|
||||||
|
) &&
|
||||||
|
!userStore.IsMyFriendByUsername(
|
||||||
|
userStore.userprofile.username
|
||||||
|
)
|
||||||
|
"
|
||||||
|
icon="fas fa-user-minus"
|
||||||
|
outline
|
||||||
|
dense
|
||||||
|
:label="$t('friends.cancel_ask_friend_short')"
|
||||||
|
@click="
|
||||||
|
tools.cancelReqFriends(
|
||||||
|
$q,
|
||||||
|
userStore.my.username,
|
||||||
|
userStore.userprofile.username
|
||||||
|
)
|
||||||
|
"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<q-tabs
|
<q-tabs
|
||||||
v-model="tab"
|
v-model="tab"
|
||||||
dense
|
dense
|
||||||
no-caps
|
no-caps
|
||||||
class="bg-indigo text-white shadow-2 q-mt-sm full-width"
|
class="bg-indigo text-white shadow-2 q-mt-sm full-width"
|
||||||
>
|
>
|
||||||
<q-tab name="attivita" label="Annunci" icon="fas fa-pencil-alt" />
|
<q-tab
|
||||||
<q-tab name="info" label="Info Personali" icon="fas fa-user" />
|
name="attivita"
|
||||||
|
:label="t('profile.annunci')"
|
||||||
|
icon="fas fa-pencil-alt"
|
||||||
|
/>
|
||||||
|
<q-tab
|
||||||
|
name="info"
|
||||||
|
:label="t('profile.info_pers')"
|
||||||
|
icon="fas fa-user"
|
||||||
|
/>
|
||||||
</q-tabs>
|
</q-tabs>
|
||||||
|
|
||||||
<q-tab-panels v-model="tab" animated keep-alive>
|
<q-tab-panels v-model="tab" animated keep-alive>
|
||||||
@@ -292,386 +626,9 @@
|
|||||||
class="col-12 text-h8 q-mt-sm"
|
class="col-12 text-h8 q-mt-sm"
|
||||||
>
|
>
|
||||||
{{ userStore.userprofile.profile.biografia }}
|
{{ userStore.userprofile.profile.biografia }}
|
||||||
|
<br />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
|
||||||
<div class="row justify-center">
|
|
||||||
<q-btn
|
|
||||||
v-if="
|
|
||||||
userStore.userprofile.profile &&
|
|
||||||
userStore.userprofile.profile.handshake &&
|
|
||||||
userStore.userprofile.profile.handshake.length > 0
|
|
||||||
"
|
|
||||||
:label="quantiHandShake"
|
|
||||||
class="q-my-sm"
|
|
||||||
color="grey-3"
|
|
||||||
:text-color="$q.dark.isActive ? 'black' : 'black'"
|
|
||||||
rounded
|
|
||||||
icon="fas fa-handshake"
|
|
||||||
@click="
|
|
||||||
usersList.show = true;
|
|
||||||
usersList.title = 'Lista Strette di mano';
|
|
||||||
usersList.list = userStore.userprofile.profile.handshake;
|
|
||||||
"
|
|
||||||
>
|
|
||||||
</q-btn>
|
|
||||||
<q-btn
|
|
||||||
v-if="
|
|
||||||
userStore.userprofile.username !== myusername() &&
|
|
||||||
handshake_inCommon &&
|
|
||||||
handshake_inCommon.length > 0
|
|
||||||
"
|
|
||||||
:label="quanteHandShakeInCommon"
|
|
||||||
class="q-my-sm"
|
|
||||||
:text-color="$q.dark.isActive ? 'black' : 'black'"
|
|
||||||
rounded
|
|
||||||
icon="fas fa-handshake"
|
|
||||||
@click="
|
|
||||||
usersList.show = true;
|
|
||||||
usersList.title = 'Strette di mano in Comune';
|
|
||||||
usersList.list = handshake_inCommon;
|
|
||||||
"
|
|
||||||
>
|
|
||||||
</q-btn>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
v-if="userStore.userprofile.username !== myusername()"
|
|
||||||
class="row justify-center"
|
|
||||||
>
|
|
||||||
<q-chip
|
|
||||||
v-if="
|
|
||||||
userStore.IsHandShakeByMe(userStore.userprofile) &&
|
|
||||||
userStore.IsHandShakeByUsername(
|
|
||||||
userStore.userprofile.username
|
|
||||||
)
|
|
||||||
"
|
|
||||||
color="green"
|
|
||||||
dense
|
|
||||||
class="chipbooked shadow-5 q-pa-sm2"
|
|
||||||
size="md"
|
|
||||||
text-color="white"
|
|
||||||
icon="fas fa-handshake"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
> <em
|
|
||||||
class="q-pa-xxs text-white rounded-borders shadow-2"
|
|
||||||
>
|
|
||||||
{{
|
|
||||||
$t('db.both_fiducia', {
|
|
||||||
username: userStore.userprofile.username,
|
|
||||||
})
|
|
||||||
}}
|
|
||||||
</em></span
|
|
||||||
>
|
|
||||||
</q-chip>
|
|
||||||
<q-chip
|
|
||||||
v-else-if="
|
|
||||||
!userStore.IsHandShakeByMe(userStore.userprofile) &&
|
|
||||||
userStore.IsHandShakeByUsername(
|
|
||||||
userStore.userprofile.username
|
|
||||||
)
|
|
||||||
"
|
|
||||||
color="blue"
|
|
||||||
dense
|
|
||||||
class="cltexth4 chipbooked shadow-5 q-pa-sm2"
|
|
||||||
size="md"
|
|
||||||
text-color="white"
|
|
||||||
icon="fas fa-handshake"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
> <em
|
|
||||||
class="q-pa-xxs text-white rounded-borders shadow-2"
|
|
||||||
>
|
|
||||||
{{
|
|
||||||
$t('db.handshake_him', {
|
|
||||||
username: userStore.userprofile.username,
|
|
||||||
})
|
|
||||||
}}
|
|
||||||
</em></span
|
|
||||||
>
|
|
||||||
</q-chip>
|
|
||||||
<q-chip
|
|
||||||
v-else-if="
|
|
||||||
userStore.IsHandShakeByMe(userStore.userprofile) &&
|
|
||||||
!userStore.IsHandShakeByUsername(
|
|
||||||
userStore.userprofile.username
|
|
||||||
)
|
|
||||||
"
|
|
||||||
color="blue"
|
|
||||||
dense
|
|
||||||
class="cltexth4 chipbooked shadow-5 q-pa-sm2"
|
|
||||||
size="md"
|
|
||||||
text-color="white"
|
|
||||||
icon="fas fa-handshake"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
> <em
|
|
||||||
class="q-pa-xxs text-white rounded-borders shadow-2"
|
|
||||||
>
|
|
||||||
{{
|
|
||||||
$t('db.handshake_you', {
|
|
||||||
username: userStore.userprofile.username,
|
|
||||||
})
|
|
||||||
}}
|
|
||||||
</em></span
|
|
||||||
>
|
|
||||||
</q-chip>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!--HANDSHAKE-->
|
|
||||||
<div
|
|
||||||
v-if="
|
|
||||||
!isMyRecord(userStore.userprofile.username) &&
|
|
||||||
tools.isUserOk()
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="row centeritems q-pa-sm"
|
|
||||||
v-if="!userStore.IsHandShakeByMe(userStore.userprofile)"
|
|
||||||
>
|
|
||||||
<q-btn
|
|
||||||
v-if="
|
|
||||||
userStore.IsHandShakeByUsername(
|
|
||||||
userStore.userprofile.username
|
|
||||||
)
|
|
||||||
"
|
|
||||||
icon="fas fa-handshake"
|
|
||||||
color="positive"
|
|
||||||
dense
|
|
||||||
:label="$t('handshake.accept_you_too_handshake')"
|
|
||||||
@click="
|
|
||||||
tools.addToMyHandShake(
|
|
||||||
$q,
|
|
||||||
userStore.my.username,
|
|
||||||
userStore.userprofile.username
|
|
||||||
)
|
|
||||||
"
|
|
||||||
/>
|
|
||||||
<q-btn
|
|
||||||
v-else
|
|
||||||
icon="fas fa-handshake"
|
|
||||||
color="positive"
|
|
||||||
dense
|
|
||||||
:label="$t('handshake.accept_handshake')"
|
|
||||||
@click="
|
|
||||||
tools.addToMyHandShake(
|
|
||||||
$q,
|
|
||||||
userStore.my.username,
|
|
||||||
userStore.userprofile.username
|
|
||||||
)
|
|
||||||
"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div
|
|
||||||
v-if="!isMyRecord(userStore.userprofile.username)"
|
|
||||||
class="q-ma-sm"
|
|
||||||
>
|
|
||||||
<div class="row justify-center">
|
|
||||||
<div
|
|
||||||
class="row centeritems q-ma-sm q-pa-sm"
|
|
||||||
v-if="
|
|
||||||
costanti.ENABLE_FRIENDS &&
|
|
||||||
userStore.IsReqFriendByUsername(
|
|
||||||
userStore.userprofile.username
|
|
||||||
)
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<q-btn
|
|
||||||
icon="fas fa-user-plus"
|
|
||||||
color="positive"
|
|
||||||
dense
|
|
||||||
:label="$t('friends.accept_friend')"
|
|
||||||
@click="
|
|
||||||
tools.addToMyFriends(
|
|
||||||
$q,
|
|
||||||
userStore.my.username,
|
|
||||||
userStore.userprofile.username
|
|
||||||
)
|
|
||||||
"
|
|
||||||
/>
|
|
||||||
<q-btn
|
|
||||||
icon="fas fa-user-minus"
|
|
||||||
outline
|
|
||||||
color="negative"
|
|
||||||
:label="$t('friends.reject_ask_friend')"
|
|
||||||
@click="
|
|
||||||
tools.refuseReqFriends(
|
|
||||||
$q,
|
|
||||||
userStore.my.username,
|
|
||||||
userStore.userprofile.username
|
|
||||||
)
|
|
||||||
"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div v-else>
|
|
||||||
<q-btn
|
|
||||||
v-if="
|
|
||||||
costanti.ENABLE_FRIENDS &&
|
|
||||||
!userStore.IsMyFriendByUsername(
|
|
||||||
userStore.userprofile.username
|
|
||||||
) &&
|
|
||||||
!userStore.IsAskedFriendByUsername(
|
|
||||||
userStore.userprofile.username
|
|
||||||
)
|
|
||||||
"
|
|
||||||
icon="fas fa-user-plus"
|
|
||||||
color="primary"
|
|
||||||
dense
|
|
||||||
:label="$t('friends.ask_friend')"
|
|
||||||
@click="
|
|
||||||
tools.setRequestFriendship(
|
|
||||||
$q,
|
|
||||||
userStore.my.username,
|
|
||||||
userStore.userprofile.username,
|
|
||||||
true
|
|
||||||
)
|
|
||||||
"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row justify-center">
|
|
||||||
<q-btn
|
|
||||||
v-if="
|
|
||||||
userStore.IsMyFriendByUsername(
|
|
||||||
userStore.userprofile.username
|
|
||||||
) || userStore.IsHandShakeByMe(userStore.userprofile)
|
|
||||||
"
|
|
||||||
class="text-center"
|
|
||||||
rounded
|
|
||||||
dense
|
|
||||||
icon="fas fa-ellipsis-h"
|
|
||||||
>
|
|
||||||
<q-menu>
|
|
||||||
<q-list style="min-width: 150px">
|
|
||||||
<q-item
|
|
||||||
v-if="
|
|
||||||
userStore.IsHandShakeByMe(userStore.userprofile)
|
|
||||||
"
|
|
||||||
clickable
|
|
||||||
v-close-popup
|
|
||||||
@click="
|
|
||||||
tools.removeFromMyHandShake(
|
|
||||||
$q,
|
|
||||||
userStore.my.username,
|
|
||||||
userStore.userprofile.username
|
|
||||||
)
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<q-item-section avatar>
|
|
||||||
<q-icon
|
|
||||||
color="negative"
|
|
||||||
name="fas fa-handshake-slash"
|
|
||||||
/>
|
|
||||||
</q-item-section>
|
|
||||||
<q-item-section>{{
|
|
||||||
$t('handshake.remove_from_myhandshake')
|
|
||||||
}}</q-item-section>
|
|
||||||
</q-item>
|
|
||||||
<q-item
|
|
||||||
v-if="
|
|
||||||
costanti.ENABLE_FRIENDS &&
|
|
||||||
userStore.IsMyFriendByUsername(
|
|
||||||
userStore.userprofile.username
|
|
||||||
)
|
|
||||||
"
|
|
||||||
clickable
|
|
||||||
icon="fas fa-user-minus"
|
|
||||||
outline
|
|
||||||
v-close-popup
|
|
||||||
@click="
|
|
||||||
tools.removeFromMyFriends(
|
|
||||||
$q,
|
|
||||||
userStore.my.username,
|
|
||||||
userStore.userprofile.username
|
|
||||||
)
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<q-item-section avatar>
|
|
||||||
<q-icon color="negative" name="fas fa-user-minus" />
|
|
||||||
</q-item-section>
|
|
||||||
<q-item-section>{{
|
|
||||||
$t('friends.remove_from_myfriends')
|
|
||||||
}}</q-item-section>
|
|
||||||
</q-item>
|
|
||||||
<q-item
|
|
||||||
v-if="
|
|
||||||
userStore.IsMyFriendByUsername(
|
|
||||||
userStore.userprofile.username
|
|
||||||
)
|
|
||||||
"
|
|
||||||
clickable
|
|
||||||
icon="fas fa-ban"
|
|
||||||
v-close-popup
|
|
||||||
@click="
|
|
||||||
tools.blockUser(
|
|
||||||
$q,
|
|
||||||
userStore.my.username,
|
|
||||||
userStore.userprofile.username
|
|
||||||
)
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<q-item-section avatar>
|
|
||||||
<q-icon color="negative" name="fas fa-ban" />
|
|
||||||
</q-item-section>
|
|
||||||
<q-item-section>{{
|
|
||||||
$t('friends.block_user')
|
|
||||||
}}</q-item-section>
|
|
||||||
</q-item>
|
|
||||||
<q-item
|
|
||||||
v-if="
|
|
||||||
userStore.IsMyFriendByUsername(
|
|
||||||
userStore.userprofile.username
|
|
||||||
)
|
|
||||||
"
|
|
||||||
clickable
|
|
||||||
v-close-popup
|
|
||||||
@click="
|
|
||||||
tools.reportUser(
|
|
||||||
$q,
|
|
||||||
userStore.my.username,
|
|
||||||
userStore.userprofile.username
|
|
||||||
)
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<q-item-section avatar>
|
|
||||||
<q-icon color="negative" name="fas fa-flag" />
|
|
||||||
</q-item-section>
|
|
||||||
<q-item-section>{{
|
|
||||||
$t('friends.report_user')
|
|
||||||
}}</q-item-section>
|
|
||||||
</q-item>
|
|
||||||
</q-list>
|
|
||||||
</q-menu>
|
|
||||||
</q-btn>
|
|
||||||
|
|
||||||
<q-btn
|
|
||||||
v-if="
|
|
||||||
costanti.ENABLE_FRIENDS &&
|
|
||||||
userStore.IsAskedFriendByUsername(
|
|
||||||
userStore.userprofile.username
|
|
||||||
) &&
|
|
||||||
!userStore.IsMyFriendByUsername(
|
|
||||||
userStore.userprofile.username
|
|
||||||
)
|
|
||||||
"
|
|
||||||
icon="fas fa-user-minus"
|
|
||||||
outline
|
|
||||||
dense
|
|
||||||
:label="$t('friends.cancel_ask_friend_short')"
|
|
||||||
@click="
|
|
||||||
tools.cancelReqFriends(
|
|
||||||
$q,
|
|
||||||
userStore.my.username,
|
|
||||||
userStore.userprofile.username
|
|
||||||
)
|
|
||||||
"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
<div
|
||||||
v-if="
|
v-if="
|
||||||
userStore.userprofile &&
|
userStore.userprofile &&
|
||||||
@@ -748,37 +705,55 @@
|
|||||||
:canModify="false">
|
:canModify="false">
|
||||||
</CMyFieldRec>
|
</CMyFieldRec>
|
||||||
-->
|
-->
|
||||||
|
<div class="col-md-6 col-sm-6 q-ma-xs col-xs-12">
|
||||||
|
<CLabel
|
||||||
|
v-if="!!userStore.userprofile.useraport"
|
||||||
|
:label="t('profile.aportador_him')"
|
||||||
|
>
|
||||||
|
<CMyUser
|
||||||
|
:mycontact="userStore.userprofile.useraport"
|
||||||
|
:visu="costanti.FIND_PEOPLE"
|
||||||
|
@setCmd="tools.setCmd"
|
||||||
|
>
|
||||||
|
</CMyUser>
|
||||||
|
</CLabel>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6 col-sm-6 q-ma-xs col-xs-12">
|
|
||||||
<CLabel
|
|
||||||
v-if="!!userStore.userprofile.useraport"
|
|
||||||
:label="t('profile.aportador_him')"
|
|
||||||
>
|
|
||||||
<CMyUser
|
|
||||||
:mycontact="userStore.userprofile.useraport"
|
|
||||||
:visu="costanti.FIND_PEOPLE"
|
|
||||||
@setCmd="tools.setCmd"
|
|
||||||
>
|
|
||||||
</CMyUser>
|
|
||||||
</CLabel>
|
|
||||||
</div>
|
|
||||||
</q-tab-panel>
|
</q-tab-panel>
|
||||||
</q-tab-panels>
|
</q-tab-panels>
|
||||||
|
|
||||||
<div class="row text-center">
|
|
||||||
<q-btn
|
|
||||||
v-if="userStore.userprofile.username === myusername()"
|
|
||||||
outline
|
|
||||||
icon="fas fa-pencil-alt"
|
|
||||||
:label="$t('shared.edit_profile')"
|
|
||||||
@click.stop="gotoPage('/editprofile')"
|
|
||||||
>
|
|
||||||
</q-btn>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<q-page-sticky
|
||||||
|
position="top-right"
|
||||||
|
:offset="[18, 18]"
|
||||||
|
class="z-top"
|
||||||
|
>
|
||||||
|
<q-fab
|
||||||
|
icon="fas fa-ellipsis-v"
|
||||||
|
color="accent"
|
||||||
|
external-label
|
||||||
|
vertical-actions-align="right"
|
||||||
|
direction="down"
|
||||||
|
>
|
||||||
|
<q-fab-action
|
||||||
|
@click="tools.copyToClip($q, getlinkpage(), true)"
|
||||||
|
color="primary"
|
||||||
|
icon="fas fa-link"
|
||||||
|
label-position="right"
|
||||||
|
:label="$t('profile.share_link')"
|
||||||
|
/>
|
||||||
|
<q-fab-action
|
||||||
|
label-position="right"
|
||||||
|
v-if="userStore.userprofile.username === myusername()"
|
||||||
|
color="secondary"
|
||||||
|
icon="fas fa-user-edit"
|
||||||
|
:label="$t('shared.edit_profile')"
|
||||||
|
@click.stop="gotoPage('/editprofile')"
|
||||||
|
/>
|
||||||
|
</q-fab>
|
||||||
|
</q-page-sticky>
|
||||||
<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>
|
||||||
@@ -789,7 +764,7 @@
|
|||||||
>
|
>
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="userStore.userprofile.username === myusername()"
|
v-if="userStore.userprofile.username === myusername() && false"
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
icon="fas fa-ellipsis-h"
|
icon="fas fa-ellipsis-h"
|
||||||
@@ -821,17 +796,6 @@
|
|||||||
@click.stop="tools.copyToClip($q, getlinkpage(), true)"
|
@click.stop="tools.copyToClip($q, getlinkpage(), true)"
|
||||||
>
|
>
|
||||||
</q-btn>-->
|
</q-btn>-->
|
||||||
|
|
||||||
<q-page-sticky position="top-right" :offset="[18, 18]">
|
|
||||||
<q-btn
|
|
||||||
fab
|
|
||||||
glossy
|
|
||||||
class="semi-transparent"
|
|
||||||
icon="fas fa-link"
|
|
||||||
color="primary"
|
|
||||||
@click="tools.copyToClip($q, getlinkpage(), true)"
|
|
||||||
/>
|
|
||||||
</q-page-sticky>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user