Aggiunto messaggio nella registrazione, dicendo che occorre avere Telegram installato.

PASSARE TUTTI I _DOC e mettergli .lean() prima dello then()  -> velocizza le Query di Mongodb
"Floriterapia
costellazioni familiari
coach motivazionale
Tecniche Essene"
Inserimento Gruppi: anche il comune obbligatorio
Far comparire le ultime persone registrate
Mettere il controllo dell'abilitazione del BOT Telegram solo dopo che conosco il suo username, e cosi gli metto anche il contatto telegram.
risolto foto profilo di telegram che non si salvava in automatico
tolto il controllo della email
aggiunto msg se errore al server, installare altro browser.
This commit is contained in:
paoloar77
2022-03-03 20:31:47 +01:00
parent aaa67ae0aa
commit e244dd3a91
39 changed files with 640 additions and 144 deletions

View File

@@ -1,3 +1,15 @@
export interface IMainCard {
visible: boolean
title: string
to?: string
icon?: string
color: string
hint?: string
table: string
visuonstat?: boolean,
small?: boolean,
}
export const costanti = {
AdType: {
OFFRO: 1,
@@ -19,83 +31,112 @@ export const costanti = {
MAINCARDS: [
{
visible: true,
title: ' Beni ',
to: '/goods',
icon: 'fas fa-tshirt',
color: 'indigo',
color: 'indigo-6',
hint: '',
table: 'mygoods',
visuonstat: true,
small: false,
},
{
visible: true,
title: 'Servizi',
to: '/services',
icon: 'fas fa-house-user',
color: 'red',
color: 'red-6',
hint: '',
table: 'myskills',
visuonstat: true,
small: false,
},
{
visible: true,
title: 'Mobilità',
to: '/places',
icon: 'fas fa-taxi',
color: 'lime-7',
color: 'lime-6',
textcolor: '',
hint: '',
disable: true,
small: false,
},
{
visible: true,
title: 'Scuola',
to: '/school',
icon: 'fas fa-book-open',
color: 'orange',
color: 'orange-6',
hint: '',
disable: true,
small: false,
},
{
visible: true,
title: 'Eventi',
to: '/events',
icon: 'event',
color: 'green',
color: 'green-6',
hint: 'eventi, last minute, offerte di lavoro',
disable: false,
table: 'mybachecas',
visuonstat: true,
small: false,
},
{
visible: true,
title: 'Luoghi',
to: '/places',
icon: 'fas fa-map-marker-alt',
color: 'blue',
color: 'blue-6',
hint: '',
disable: true,
small: false,
},
{
visible: true,
title: 'Tue Idee',
to: '/ideas',
icon: 'fas fa-lightbulb',
color: 'red-7',
color: 'red-6',
textcolor: '',
hint: '',
disable: true,
small: true,
},
{
visible: true,
title: 'Help',
to: '/help',
icon: 'fas fa-users',
color: 'green-7',
color: 'green-6',
hint: '',
disable: true,
small: true,
},
{
visible: true,
title: 'Social',
to: '/socialising',
icon: 'fas fa-users',
color: 'blue-7',
color: 'blue-6',
hint: '',
disable: true,
small: true,
},
{
visible: false,
title: 'Gruppi',
to: '',
icon: 'fas fa-users',
color: 'blue-6',
hint: '',
disable: true,
small: true,
visuonstat: true,
},
],
BINARY_CHECK: 1,

View File

@@ -4252,6 +4252,9 @@ export const tools = {
'black': '#000000',
'blanchedalmond': '#ffebcd',
'blue': '#0000ff',
'blue-3': '#90caf9',
'blue-4': '#64b5f6',
'blue-6': '#2196f3',
'blueviolet': '#8a2be2',
'brown': '#a52a2a',
'burlywood': '#deb887',
@@ -4294,10 +4297,16 @@ export const tools = {
'goldenrod': '#daa520',
'gray': '#808080',
'green': '#008000',
'green-3': '#a5d6a7',
'green-4': '#81c784',
'green-6': '#4caf50',
'greenyellow': '#adff2f',
'honeydew': '#f0fff0',
'hotpink': '#ff69b4',
'indianred ': '#cd5c5c',
'indigo-3': '#9fa8da',
'indigo-4': '#7986cb',
'indigo-6': '#3f51b5',
'indigo': '#4b0082',
'ivory': '#fffff0',
'khaki': '#f0e68c',
@@ -4319,6 +4328,9 @@ export const tools = {
'lightsteelblue': '#b0c4de',
'lightyellow': '#ffffe0',
'lime': '#00ff00',
'lime-3': '#e6ee9c',
'lime-4': '#dce775',
'lime-6': '#cddc39',
'limegreen': '#32cd32',
'linen': '#faf0e6',
'magenta': '#ff00ff',
@@ -4342,6 +4354,9 @@ export const tools = {
'olive': '#808000',
'olivedrab': '#6b8e23',
'orange': '#ffa500',
'orange-3': '#ffcc80',
'orange-4': '#ffb74d',
'orange-6': '#ff9800',
'orangered': '#ff4500',
'orchid': '#da70d6',
'palegoldenrod': '#eee8aa',
@@ -4357,6 +4372,9 @@ export const tools = {
'purple': '#800080',
'rebeccapurple': '#663399',
'red': '#ff0000',
'red-3': '#ef9a9a',
'red-4': '#e57373',
'red-6': '#f44336',
'rosybrown': '#bc8f8f',
'royalblue': '#4169e1',
'saddlebrown': '#8b4513',
@@ -5044,7 +5062,7 @@ export const tools = {
let ris = mydef
if (arrtable.includes(table)) {
ris =tools.getCookie(tools.COOK_SEARCH + table, mydef)
ris = tools.getCookie(tools.COOK_SEARCH + table, mydef)
} else if (arrmultisel_tab.includes(table)) {
const rec = arrmultisel.find((rec) => rec.table === table)
if (rec) {
@@ -5052,7 +5070,7 @@ export const tools = {
}
}
if (ris.toString() === costanti.FILTER_TUTTI.toString()){
if (ris.toString() === costanti.FILTER_TUTTI.toString()) {
ris = ''
}
@@ -5227,6 +5245,25 @@ export const tools = {
globalStore.rightDrawerOpen = true
},
getbackgroundGradient(color: string, degree: number) {
const mycol = tools.colourNameToHex(color)
const arrcol = color.split('-')
let newcol = arrcol[0] + '-4'
const mycolchiaro = tools.colourNameToHex(newcol)
return 'background: ' + mycol +
' background: -webkit-linear-gradient('+degree+'deg, ' + mycol + ', ' + mycolchiaro + ') !important; ' +
' background: linear-gradient('+degree+'deg, ' + mycol + ', ' + mycolchiaro + ') !important;'
},
getCurrentUrl(){
return window.location.pathname
},
isCurrentUrlSignUp(){
return window.location.pathname.indexOf('signup') >= 0
},
// getLocale() {
// if (navigator.languages && navigator.languages.length > 0) {

View File

@@ -908,6 +908,10 @@ export const useGlobalStore = defineStore('GlobalStore', {
})
},
isErroreDispositivoServer() {
return this.serverMsgError.code === -2
},
async saveSubRec(mydata: any) {
// console.log('saveTable', mydata)
const userStore = useUserStore()
@@ -1464,11 +1468,11 @@ export const useGlobalStore = defineStore('GlobalStore', {
return Api.SendReq('/site/load', 'POST', paramquery)
.then((res) => {
console.log('res', res)
// console.log('datastat', res)
this.datastat = res.data.datastat
return this.datastat
}).catch((error) => {
return null
return {}
})
},