Notifica Telegram e Push quando mandi la stretta di mano
This commit is contained in:
@@ -142,6 +142,8 @@ export default defineComponent({
|
|||||||
const mypagination = computed(() => {
|
const mypagination = computed(() => {
|
||||||
if (props.table === toolsext.TABMYBACHECAS)
|
if (props.table === toolsext.TABMYBACHECAS)
|
||||||
return { sortBy: 'dateTimeStart', descending: false, page: 1, rowsNumber: 20, rowsPerPage: 20 }
|
return { sortBy: 'dateTimeStart', descending: false, page: 1, rowsNumber: 20, rowsPerPage: 20 }
|
||||||
|
else if (props.table === toolsext.TABMYGROUPS)
|
||||||
|
return { sortBy: 'date_created', descending: true, page: 1, rowsNumber: 20, rowsPerPage: 20 }
|
||||||
else if (props.table === toolsext.TABMOVEMENTS)
|
else if (props.table === toolsext.TABMOVEMENTS)
|
||||||
return { sortBy: 'transactionDate', descending: true, page: 1, rowsNumber: 20, rowsPerPage: 20 }
|
return { sortBy: 'transactionDate', descending: true, page: 1, rowsNumber: 20, rowsPerPage: 20 }
|
||||||
else if (props.table === toolsext.TABCIRCUITS)
|
else if (props.table === toolsext.TABCIRCUITS)
|
||||||
@@ -951,18 +953,6 @@ export default defineComponent({
|
|||||||
tablesel: 'cities',
|
tablesel: 'cities',
|
||||||
icon: 'fas fa-map-marker-alt',
|
icon: 'fas fa-map-marker-alt',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: 'Visiblità',
|
|
||||||
table: 'visibilGroup',
|
|
||||||
key: 'visibility',
|
|
||||||
type: costanti.FieldType.multiselect,
|
|
||||||
value: tools.getCookie(tools.COOK_SEARCH + 'visibility', costanti.FILTER_TUTTI),
|
|
||||||
addall: true,
|
|
||||||
arrvalue: [],
|
|
||||||
useinput: true,
|
|
||||||
filter: null,
|
|
||||||
tablesel: 'visibility',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: 'Categorie',
|
label: 'Categorie',
|
||||||
table: 'catgrps',
|
table: 'catgrps',
|
||||||
@@ -975,6 +965,18 @@ export default defineComponent({
|
|||||||
useinput: false,
|
useinput: false,
|
||||||
icon: 'engineering',
|
icon: 'engineering',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'Visiblità',
|
||||||
|
table: 'visibilGroup',
|
||||||
|
key: 'visibility',
|
||||||
|
type: costanti.FieldType.multiselect,
|
||||||
|
value: tools.getCookie(tools.COOK_SEARCH + 'visibility', costanti.FILTER_TUTTI),
|
||||||
|
addall: true,
|
||||||
|
arrvalue: [],
|
||||||
|
useinput: true,
|
||||||
|
filter: null,
|
||||||
|
tablesel: 'visibility',
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
filtercustom.value = []
|
filtercustom.value = []
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
>
|
>
|
||||||
</CGalleryImages>
|
</CGalleryImages>
|
||||||
|
|
||||||
|
|
||||||
<q-card-actions align="right">
|
<q-card-actions align="right">
|
||||||
<div v-if="table === shared_consts.TABLES_MYBACHECAS" class="">
|
<div v-if="table === shared_consts.TABLES_MYBACHECAS" class="">
|
||||||
<q-btn
|
<q-btn
|
||||||
@@ -519,7 +520,11 @@
|
|||||||
/></q-item-label>
|
/></q-item-label>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item clickable v-if="table === 'mybachecas'">
|
<q-item clickable v-if="table === 'mybachecas' && calendarStore.getNumParticipants(
|
||||||
|
myrec,
|
||||||
|
true,
|
||||||
|
tools.peopleWhere.participants
|
||||||
|
) > 0 ">
|
||||||
<q-item-section avatar>
|
<q-item-section avatar>
|
||||||
<q-icon color="blue" name="fas fa-user-check" />
|
<q-icon color="blue" name="fas fa-user-check" />
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
|
|||||||
@@ -173,7 +173,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="q-mx-sm">
|
<div class="q-mx-sm">
|
||||||
(
|
(
|
||||||
<span v-if="table === shared_consts.TABLES_MYBACHECAS">
|
<span v-if="table === shared_consts.TABLES_MYBACHECAS && tools.getNumPartecipantes(myrec) > 0">
|
||||||
<span class="q-mx-xxs text-bold">{{
|
<span class="q-mx-xxs text-bold">{{
|
||||||
tools.getNumPartecipantes(myrec)
|
tools.getNumPartecipantes(myrec)
|
||||||
}}</span>
|
}}</span>
|
||||||
|
|||||||
@@ -80,8 +80,9 @@
|
|||||||
<div v-if="signup.terms">
|
<div v-if="signup.terms">
|
||||||
<q-input
|
<q-input
|
||||||
v-if="
|
v-if="
|
||||||
showaportador &&
|
(showaportador &&
|
||||||
signup.aportador_solidario !== tools.APORTADOR_NONE
|
signup.aportador_solidario !== tools.APORTADOR_NONE)
|
||||||
|
&& v$.aportador_solidario.$error
|
||||||
"
|
"
|
||||||
ref="inputAportador"
|
ref="inputAportador"
|
||||||
bg-color="lightblue"
|
bg-color="lightblue"
|
||||||
@@ -204,7 +205,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
|
|
||||||
<q-input
|
<!--<q-input
|
||||||
ref="inputSurname"
|
ref="inputSurname"
|
||||||
v-model="signup.surname"
|
v-model="signup.surname"
|
||||||
rounded
|
rounded
|
||||||
@@ -222,7 +223,7 @@
|
|||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon name="person" />
|
<q-icon name="person" />
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>-->
|
||||||
<q-input
|
<q-input
|
||||||
ref="inputPassword"
|
ref="inputPassword"
|
||||||
v-model="signup.password"
|
v-model="signup.password"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { computed, defineComponent, PropType, ref } from 'vue'
|
import { computed, defineComponent, onMounted, PropType, ref } from 'vue'
|
||||||
|
|
||||||
import { ICalcStat, IOperators } from '../../model'
|
import { ICalcStat, IOperators } from '../../model'
|
||||||
import { useUserStore } from '../../store/UserStore'
|
import { useUserStore } from '../../store/UserStore'
|
||||||
@@ -27,12 +27,20 @@ export default defineComponent({
|
|||||||
const globalStore = useGlobalStore()
|
const globalStore = useGlobalStore()
|
||||||
|
|
||||||
const site = ref(globalStore.site)
|
const site = ref(globalStore.site)
|
||||||
|
const username_telegram_aportador = ref('')
|
||||||
|
|
||||||
|
function load() {
|
||||||
|
///
|
||||||
|
}
|
||||||
|
|
||||||
|
onMounted(load)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
userStore,
|
userStore,
|
||||||
globalStore,
|
globalStore,
|
||||||
tools,
|
tools,
|
||||||
site,
|
site,
|
||||||
|
username_telegram_aportador,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -13,16 +13,15 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="userStore.isUserWaitingVerifAportador()" class="centeritems">
|
<div v-if="userStore.isUserWaitingVerifAportador()" class="centeritems">
|
||||||
<q-banner inline-actions rounded class="bg-orange text-black">
|
<q-banner inline-actions rounded class="bg-green text-black">
|
||||||
<template v-slot:avatar>
|
<template v-slot:avatar>
|
||||||
<q-icon name="info" color="primary" />
|
<q-icon name="info" color="primary" />
|
||||||
</template>
|
</template>
|
||||||
<strong
|
<strong class="text-h5"
|
||||||
>Appena sarai abilitato, dal tuo invitante
|
>Appena sarai abilitato, dal tuo invitante
|
||||||
{{ tools.getAportadorSolidario() }}, ti arriverà una
|
{{ tools.getAportadorSolidario() }}, ti arriverà una
|
||||||
<strong>notifica su Telegram</strong>.<br /><br />
|
<strong>notifica sulla Chat Telegram 'BOT RISO'</strong>.<br /><br />
|
||||||
Se non dovesse arrivarti entro 24 ore prova a mandargli un
|
Se non dovesse arrivarti entro 24 ore, apri il suo profilo e clicca su 'Messaggia' e scrivigli.<br />
|
||||||
messaggio.<br />
|
|
||||||
</strong>
|
</strong>
|
||||||
|
|
||||||
<q-btn
|
<q-btn
|
||||||
@@ -31,9 +30,23 @@
|
|||||||
color="primary"
|
color="primary"
|
||||||
icon="fas fa-user"
|
icon="fas fa-user"
|
||||||
:to="tools.getLinkProfileAportador()"
|
:to="tools.getLinkProfileAportador()"
|
||||||
:label="`Profilo di ` + tools.getAportadorSolidario()"
|
:label="`Apri il Profilo di ` + tools.getAportadorSolidario()"
|
||||||
>
|
>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
|
<br><br>
|
||||||
|
<div class="text-h5"> Oppure manda un messaggio all'assistenza:</div>
|
||||||
|
<q-btn
|
||||||
|
rounded
|
||||||
|
type="a"
|
||||||
|
class="q-ma-sm"
|
||||||
|
color="primary"
|
||||||
|
icon="fab fa-telegram"
|
||||||
|
href="https://t.me/surya1977"
|
||||||
|
:label="`Contatta l'Assistenza (Paolo)`"
|
||||||
|
>
|
||||||
|
</q-btn>
|
||||||
|
|
||||||
|
|
||||||
</q-banner>
|
</q-banner>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -24,12 +24,19 @@
|
|||||||
:label="$t('tabdown.home')"
|
:label="$t('tabdown.home')"
|
||||||
icon="fas fa-home"
|
icon="fas fa-home"
|
||||||
/>
|
/>
|
||||||
<q-route-tab
|
<!--<q-route-tab
|
||||||
v-if="site.confpages.showViewGroups"
|
v-if="site.confpages.showViewGroups"
|
||||||
class="mylabfooter"
|
class="mylabfooter"
|
||||||
:label="$t('tabdown.groups')"
|
:label="$t('tabdown.groups')"
|
||||||
to="/groups"
|
to="/groups"
|
||||||
icon="fas fa-users"
|
icon="fas fa-users"
|
||||||
|
/>-->
|
||||||
|
<q-route-tab
|
||||||
|
v-if="site.confpages.showViewEventi"
|
||||||
|
class="mylabfooter"
|
||||||
|
:label="$t('tabdown.eventi')"
|
||||||
|
to="/events"
|
||||||
|
icon="fas fa-calendar-week"
|
||||||
/>
|
/>
|
||||||
<q-route-tab
|
<q-route-tab
|
||||||
v-if="site.confpages.showViewCircuits"
|
v-if="site.confpages.showViewCircuits"
|
||||||
|
|||||||
@@ -245,6 +245,7 @@ export interface IConfPages {
|
|||||||
enableDebugOn: boolean
|
enableDebugOn: boolean
|
||||||
enabledRegNeedTelegram: boolean
|
enabledRegNeedTelegram: boolean
|
||||||
showViewGroups: boolean
|
showViewGroups: boolean
|
||||||
|
showViewEventi: boolean
|
||||||
showViewCircuits: boolean
|
showViewCircuits: boolean
|
||||||
showViewUsers: boolean
|
showViewUsers: boolean
|
||||||
showViewBooking: boolean
|
showViewBooking: boolean
|
||||||
|
|||||||
@@ -624,6 +624,16 @@
|
|||||||
:type="costanti.FieldType.boolean"
|
:type="costanti.FieldType.boolean"
|
||||||
>
|
>
|
||||||
</CMyFieldDb>
|
</CMyFieldDb>
|
||||||
|
<CMyFieldDb
|
||||||
|
table="sites"
|
||||||
|
:title="$t('confpages.showViewEventi')"
|
||||||
|
:id="mysite._id"
|
||||||
|
:rec="mysite"
|
||||||
|
mykey="confpages"
|
||||||
|
mysubkey="showViewEventi"
|
||||||
|
:type="costanti.FieldType.boolean"
|
||||||
|
>
|
||||||
|
</CMyFieldDb>
|
||||||
<CMyFieldDb
|
<CMyFieldDb
|
||||||
table="sites"
|
table="sites"
|
||||||
:title="$t('confpages.showViewUsers')"
|
:title="$t('confpages.showViewUsers')"
|
||||||
|
|||||||
@@ -1386,6 +1386,7 @@ const msg_it = {
|
|||||||
tabdown: {
|
tabdown: {
|
||||||
home: 'Home',
|
home: 'Home',
|
||||||
groups: 'Gruppi',
|
groups: 'Gruppi',
|
||||||
|
eventi: 'Eventi',
|
||||||
friends: 'Amici',
|
friends: 'Amici',
|
||||||
bookings: 'Prenotaz.',
|
bookings: 'Prenotaz.',
|
||||||
profile: 'Profilo',
|
profile: 'Profilo',
|
||||||
@@ -1458,6 +1459,7 @@ const msg_it = {
|
|||||||
enableDebugOn: 'Attiva Debug',
|
enableDebugOn: 'Attiva Debug',
|
||||||
enabledRegNeedTelegram: 'Reg con Telegram',
|
enabledRegNeedTelegram: 'Reg con Telegram',
|
||||||
showViewGroups: 'Bott. Gruppi',
|
showViewGroups: 'Bott. Gruppi',
|
||||||
|
showViewEventi: 'Bott. Eventi',
|
||||||
showViewUsers: 'Bott. Users',
|
showViewUsers: 'Bott. Users',
|
||||||
showViewCircuits: 'Bott. Circuiti',
|
showViewCircuits: 'Bott. Circuiti',
|
||||||
videoPromo: 'Video Presentazione',
|
videoPromo: 'Video Presentazione',
|
||||||
|
|||||||
@@ -7188,6 +7188,10 @@ export const tools = {
|
|||||||
return '/my/' + tools.getAportadorSolidario()
|
return '/my/' + tools.getAportadorSolidario()
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getLinkTelegramAportador(username_telegram_aportador: string) {
|
||||||
|
return this.getHttpForTelegram(username_telegram_aportador)
|
||||||
|
},
|
||||||
|
|
||||||
openrighttoolbar() {
|
openrighttoolbar() {
|
||||||
const globalStore = useGlobalStore()
|
const globalStore = useGlobalStore()
|
||||||
globalStore.rightDrawerOpen = true
|
globalStore.rightDrawerOpen = true
|
||||||
|
|||||||
@@ -168,6 +168,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
|||||||
enableDebugOn: false,
|
enableDebugOn: false,
|
||||||
showButtHome: false,
|
showButtHome: false,
|
||||||
showViewGroups: false,
|
showViewGroups: false,
|
||||||
|
showViewEventi: false,
|
||||||
showViewCircuits: false,
|
showViewCircuits: false,
|
||||||
showViewUsers: false,
|
showViewUsers: false,
|
||||||
showViewBooking: false,
|
showViewBooking: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user