Version 0.2.7
This commit is contained in:
@@ -34,7 +34,7 @@ export const costanti = {
|
||||
color: 'lime-7',
|
||||
textcolor: '',
|
||||
hint: '',
|
||||
disable: false,
|
||||
disable: true,
|
||||
},
|
||||
{
|
||||
title: 'Scuola',
|
||||
@@ -42,7 +42,7 @@ export const costanti = {
|
||||
icon: 'fas fa-book-open',
|
||||
color: 'orange',
|
||||
hint: '',
|
||||
disable: false,
|
||||
disable: true,
|
||||
},
|
||||
{
|
||||
title: 'Alimenti',
|
||||
@@ -50,7 +50,7 @@ export const costanti = {
|
||||
icon: 'fas fa-utensils',
|
||||
color: 'green-5',
|
||||
hint: '',
|
||||
disable: false,
|
||||
disable: true,
|
||||
},
|
||||
{
|
||||
title: 'Luoghi',
|
||||
@@ -58,34 +58,34 @@ export const costanti = {
|
||||
icon: 'fas fa-map-marker-alt',
|
||||
color: 'blue',
|
||||
hint: '',
|
||||
disable: false,
|
||||
disable: true,
|
||||
},
|
||||
{
|
||||
title: 'Tue Idee',
|
||||
to: '/ideas',
|
||||
icon: 'fas fa-lightbulb',
|
||||
color: 'red-5',
|
||||
color: 'red-7',
|
||||
textcolor: '',
|
||||
hint: '',
|
||||
disable: false,
|
||||
disable: true,
|
||||
small: true,
|
||||
},
|
||||
{
|
||||
title: 'Eventi',
|
||||
to: '/bacheca',
|
||||
icon: 'event',
|
||||
color: 'pink-5',
|
||||
color: 'green-7',
|
||||
hint: 'eventi, last minute, offerte di lavoro',
|
||||
disable: false,
|
||||
disable: true,
|
||||
small: true,
|
||||
},
|
||||
{
|
||||
title: 'Social',
|
||||
to: '/socialising',
|
||||
icon: 'fas fa-users',
|
||||
color: 'purple-5',
|
||||
color: 'blue-7',
|
||||
hint: '',
|
||||
disable: false,
|
||||
disable: true,
|
||||
small: true,
|
||||
},
|
||||
],
|
||||
|
||||
@@ -615,7 +615,7 @@ export const colmyGoods = [
|
||||
remote_field: 'comune',
|
||||
}),
|
||||
AddCol({
|
||||
name: 'adTypeGood',
|
||||
name: 'adType',
|
||||
label_trans: 'adTypes.name',
|
||||
fieldtype: costanti.FieldType.select,
|
||||
required: true,
|
||||
@@ -647,14 +647,25 @@ export const colmyGoods = [
|
||||
name: 'idGood',
|
||||
label_trans: 'skill.name',
|
||||
fieldtype: costanti.FieldType.select,
|
||||
required: true,
|
||||
required: false,
|
||||
jointable: 'goods',
|
||||
filter_table: 'sectorgoods',
|
||||
filter_field: 'idSectorGood',
|
||||
noshowlabel: true,
|
||||
icon: 'engineering',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView,
|
||||
allowNewValue: true,
|
||||
allowNewValue: false,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'idContribType',
|
||||
label_trans: 'contribtype.name',
|
||||
fieldtype: costanti.FieldType.multiselect,
|
||||
jointable: 'contribtypes',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
noshowlabel: true,
|
||||
icon: 'fas fa-hand-holding',
|
||||
//icon: 'fas fa-hands-helping',
|
||||
// isadvanced_field: true,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'idShipping',
|
||||
@@ -668,15 +679,13 @@ export const colmyGoods = [
|
||||
// isadvanced_field: true,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'idContribType',
|
||||
label_trans: 'contribtype.name',
|
||||
fieldtype: costanti.FieldType.multiselect,
|
||||
jointable: 'contribtypes',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
noshowlabel: true,
|
||||
icon: 'fas fa-hand-holding',
|
||||
//icon: 'fas fa-hands-helping',
|
||||
// isadvanced_field: true,
|
||||
name: 'photos',
|
||||
label_trans: 'skill.photos',
|
||||
fieldtype: costanti.FieldType.listimages,
|
||||
jointable: '',
|
||||
showpicprofile_ifnotset: true,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit,
|
||||
isadvanced_field: false,
|
||||
}),
|
||||
AddCol({
|
||||
name: '',
|
||||
@@ -702,15 +711,6 @@ export const colmyGoods = [
|
||||
|
||||
*/
|
||||
|
||||
AddCol({
|
||||
name: 'photos',
|
||||
label_trans: 'skill.photos',
|
||||
fieldtype: costanti.FieldType.listimages,
|
||||
jointable: '',
|
||||
showpicprofile_ifnotset: true,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView,
|
||||
isadvanced_field: true,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'note', label_trans: 'proj.longdescr', fieldtype: costanti.FieldType.html,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
@@ -801,7 +801,7 @@ export const colmySkills = [
|
||||
noshowlabel: true,
|
||||
icon: 'engineering',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView,
|
||||
allowNewValue: true,
|
||||
allowNewValue: false,
|
||||
required: false,
|
||||
}),
|
||||
AddCol({
|
||||
@@ -949,42 +949,9 @@ export const colmyBachecas = [
|
||||
noshowlabel: true,
|
||||
icon: 'engineering',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView,
|
||||
allowNewValue: true,
|
||||
allowNewValue: false,
|
||||
required: false,
|
||||
}),
|
||||
AddCol({
|
||||
name: '',
|
||||
fieldtype: costanti.FieldType.separator,
|
||||
required: false,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit,
|
||||
visible: false,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'idSubSkill',
|
||||
label_trans: 'skill.subskill',
|
||||
fieldtype: costanti.FieldType.multiselect,
|
||||
required: false,
|
||||
jointable: 'subskills',
|
||||
filter_table: 'skills',
|
||||
filter_field: 'idSkill',
|
||||
noshowlabel: true,
|
||||
icon: 'far fa-id-card',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
allowNewValue: true,
|
||||
isadvanced_field: true,
|
||||
}),
|
||||
|
||||
AddCol({
|
||||
name: 'numLevel',
|
||||
label_trans: 'level.name',
|
||||
fieldtype: costanti.FieldType.star3,
|
||||
required: false,
|
||||
jointable: 'levels',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
noshowlabel: false,
|
||||
icon: 'grading',
|
||||
isadvanced_field: true,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'idContribType',
|
||||
label_trans: 'contribtype.name',
|
||||
@@ -994,8 +961,16 @@ export const colmyBachecas = [
|
||||
noshowlabel: true,
|
||||
icon: 'fas fa-hand-holding',
|
||||
//icon: 'fas fa-hands-helping',
|
||||
isadvanced_field: true,
|
||||
isadvanced_field: false,
|
||||
}),
|
||||
AddCol({
|
||||
name: '',
|
||||
fieldtype: costanti.FieldType.separator,
|
||||
required: false,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit,
|
||||
visible: false,
|
||||
}),
|
||||
|
||||
AddCol({
|
||||
name: 'photos',
|
||||
label_trans: 'skill.photos',
|
||||
@@ -1461,7 +1436,7 @@ export const colTableUsersBase = [
|
||||
name: 'profile.nationality', field: 'profile', subfield: 'nationality', label_trans: 'reg.nationality',
|
||||
}),
|
||||
AddCol({
|
||||
name: 'profile.cell', field: 'profile', subfield: 'cell', label_trans: 'reg.cell',
|
||||
name: 'profile.cell', field: 'profile', subfield: 'cell', label_trans: 'reg.cell', maxlength: 12
|
||||
}),
|
||||
AddCol({
|
||||
name: 'perm', label_trans: 'reg.perm', fieldtype: costanti.FieldType.binary, jointable: 'permissions',
|
||||
@@ -1899,7 +1874,7 @@ export const colTableUsersISP = [
|
||||
AddCol({ name: 'profile.born_province', label_trans: 'reg.born_province', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'profile.born_country', label_trans: 'reg.born_country', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({
|
||||
name: 'profile.cell', field: 'profile', subfield: 'cell', label_trans: 'reg.cell',
|
||||
name: 'profile.cell', field: 'profile', subfield: 'cell', label_trans: 'reg.cell', maxlength: 12
|
||||
}),
|
||||
AddCol({
|
||||
name: 'profile.email_paypal',
|
||||
|
||||
@@ -4898,6 +4898,11 @@ export const tools = {
|
||||
return userStore.isUserOk()
|
||||
},
|
||||
|
||||
isTelegOk() {
|
||||
const userStore = useUserStore()
|
||||
return userStore.isTelegOk()
|
||||
},
|
||||
|
||||
getParamsByTable(table: string) {
|
||||
|
||||
let obj = {
|
||||
|
||||
@@ -267,6 +267,11 @@ export const useUserStore = defineStore('UserStore', {
|
||||
// return this.my.verified_email! && this.my.profile.teleg_id! > 0 && this.my.verified_by_aportador!
|
||||
},
|
||||
|
||||
isTelegOk(): boolean {
|
||||
return this.my.profile.teleg_id! > 0
|
||||
// return this.my.verified_email! && this.my.profile.teleg_id! > 0 && this.my.verified_by_aportador!
|
||||
},
|
||||
|
||||
getNameSurnameByUserId(userId: string): string {
|
||||
|
||||
const user = this.getUserByUserId(userId)
|
||||
|
||||
Reference in New Issue
Block a user