- cataloghi...
- fix: condividi su Telegram non funzionava errore sull'immagine
This commit is contained in:
@@ -39,6 +39,7 @@ export const costanti = {
|
||||
'widthpag',
|
||||
'Printable',
|
||||
'height',
|
||||
'height_Printable',
|
||||
'numschede_perCol',
|
||||
'numschede_perRiga',
|
||||
'margine_pagina',
|
||||
@@ -54,6 +55,13 @@ export const costanti = {
|
||||
'text',
|
||||
],
|
||||
|
||||
SCHEDA_FIELDS: [
|
||||
'bgimg',
|
||||
'bgimg_printable',
|
||||
'bgSize',
|
||||
'bgSize_printable',
|
||||
],
|
||||
|
||||
TIPOFAVBOOK: {
|
||||
FAVORITE: 1,
|
||||
BOOKMARK: 2,
|
||||
@@ -350,6 +358,7 @@ export const costanti = {
|
||||
DIR_UPLOAD: 'upload/',
|
||||
DIR_PRODUCTS: 'products/',
|
||||
DIR_CATALOGO: 'catalogo/',
|
||||
DIR_SCHEDA: 'scheda/',
|
||||
|
||||
FRIENDS: 1,
|
||||
ASK_TRUST: 2,
|
||||
|
||||
@@ -147,22 +147,43 @@ export const colmylistcards = [
|
||||
AddCol({ name: 'link', label_trans: 'link' }),
|
||||
]
|
||||
|
||||
export const IBorder = [
|
||||
AddCol({ name: 'top', label_trans: 'size.top', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'bottom', label_trans: 'size.bottom', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'left', label_trans: 'size.left', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'right', label_trans: 'size.right', fieldtype: costanti.FieldType.string }),
|
||||
]
|
||||
|
||||
export const colISize = [
|
||||
AddCol({ name: 'width', label_trans: 'size.width', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'height', label_trans: 'size.height', fieldtype: costanti.FieldType.string }),
|
||||
]
|
||||
|
||||
export const colmyScheda = [
|
||||
AddCol({ name: 'name', label_trans: 'scheda.name', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'isTemplate', label_trans: 'scheda.isTemplate', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'widthscheda', label_trans: 'scheda.widthscheda', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'widthscheda', label_trans: 'scheda.widthscheda', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'widthpag', label_trans: 'scheda.widthpag', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'width', label_trans: 'scheda.width', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'height', label_trans: 'scheda.height', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'widthimg', label_trans: 'scheda.widthimg', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'heightimg', label_trans: 'scheda.heightimg', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'height_Printable', label_trans: 'scheda.height_Printable', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'numschede_perCol', label_trans: 'scheda,numschede_perCol', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'numschede_perRiga', label_trans: 'scheda.numschede_perRiga', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'margine_top', label_trans: 'scheda.margine_top', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'margine_top', label_trans: 'scheda.margine_top', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'margine_pagina', label_trans: 'scheda.margine_pagina', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'margine_paginaPrintable', label_trans: 'scheda.margine_paginaPrintable', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'margine_riga', label_trans: 'scheda.margine_riga', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'margine_rigaPrintable', label_trans: 'scheda.margine_rigaPrintable', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'text', label_trans: 'catalogo.text', fieldtype: costanti.FieldType.html }),
|
||||
AddCol({ name: 'posiz_text', label_trans: 'catalogo.posiz_text', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'line_height', label_trans: 'catalogo.line_height', fieldtype: costanti.FieldType.number }),
|
||||
|
||||
AddCol({ name: 'bgimg', label_trans: 'scheda.bgimg', fieldtype: costanti.FieldType.image }),
|
||||
AddCol({ name: 'bgimg_printable', label_trans: 'scheda.bgimg_printable', fieldtype: costanti.FieldType.image }),
|
||||
AddCol({ name: 'bgSize', label_trans: 'scheda.bgimg', fieldtype: costanti.FieldType.image }),
|
||||
AddCol({ name: 'bgSize_printable', label_trans: 'scheda.bgSize', fieldtype: costanti.FieldType.image }),
|
||||
AddCol({ name: 'widthPPrintable', label_trans: 'scheda.widthPPrintable', fieldtype: costanti.FieldType.number }),
|
||||
|
||||
AddCol({ name: 'productTypes', label_trans: 'productTypes', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'excludeproductTypes', label_trans: 'excludeproductTypes', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'Editore', label_trans: 'Editore' }),
|
||||
@@ -176,14 +197,12 @@ export const colmyelCatalogo = [
|
||||
AddCol({ name: 'excludeproductTypes', label_trans: 'excludeproductTypes', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'pdf', label_trans: 'pdf' }),
|
||||
AddCol({ name: 'Editore', label_trans: 'Editore' }),
|
||||
AddCol({ name: 'backgroundimage', label_trans: 'backgroundimage', fieldtype: costanti.FieldType.image }),
|
||||
AddCol({ name: 'backgroundimage_printable', label_trans: 'backgroundimage_printable', fieldtype: costanti.FieldType.image }),
|
||||
AddCol({ name: 'widthpag', label_trans: 'widthpag', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'widthpagPrintable', label_trans: 'widthpagPrintable', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'width', label_trans: 'width', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'height', label_trans: 'height', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'optcatalogo.', label_trans: 'catalogo.optcatalogo.', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'margine_pagina', label_trans: 'margine_pagina', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'margine_paginaPrintable', label_trans: 'margine_paginaPrintable', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'margine_riga', label_trans: 'margine_riga', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'margine_rigaPrintable', label_trans: 'margine_rigaPrintable', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'first_page_img', label_trans: 'catalogo.first_page_img', fieldtype: costanti.FieldType.image }),
|
||||
AddCol({ name: 'last_page_img', label_trans: 'catalogo.last_page_img', fieldtype: costanti.FieldType.image }),
|
||||
@@ -191,6 +210,13 @@ export const colmyelCatalogo = [
|
||||
AddCol({ name: 'first_page_height', label_trans: 'catalogo.first_page_height', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'last_page_height', label_trans: 'catalogo.last_page_html', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'last_page_html', label_trans: 'catalogo.last_page_html', fieldtype: costanti.FieldType.html }),
|
||||
|
||||
AddCol({ name: 'backgroundimage', label_trans: 'backgroundimage', fieldtype: costanti.FieldType.image }),
|
||||
AddCol({ name: 'backgroundimage_printable', label_trans: 'backgroundimage_printable', fieldtype: costanti.FieldType.image }),
|
||||
AddCol({ name: 'backgroundSize', label_trans: 'scheda.bgimg', fieldtype: costanti.FieldType.image }),
|
||||
AddCol({ name: 'backgroundSize_printable', label_trans: 'scheda.bgSize', fieldtype: costanti.FieldType.image }),
|
||||
AddCol({ name: 'widthpagPrintable', label_trans: 'widthpag', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'widthpagPrintable', label_trans: 'widthpagPrintable', fieldtype: costanti.FieldType.number }),
|
||||
]
|
||||
|
||||
export const colmyelems = [
|
||||
@@ -1541,7 +1567,7 @@ export const colmySkills = [
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
numpag_carousel: 6,
|
||||
}),
|
||||
AddCol({
|
||||
/*AddCol({
|
||||
name: 'numLevel',
|
||||
label_trans: 'level.name',
|
||||
fieldtype: costanti.FieldType.star3,
|
||||
@@ -1552,7 +1578,7 @@ export const colmySkills = [
|
||||
icon: 'grading',
|
||||
isadvanced_field: true,
|
||||
numpag_carousel: 7,
|
||||
}),
|
||||
}),*/
|
||||
AddCol({
|
||||
name: 'date_created', label_trans: 'event.dateCreated', fieldtype: costanti.FieldType.onlydate,
|
||||
required: false,
|
||||
@@ -1878,6 +1904,11 @@ export const colmyBachecas = [
|
||||
label_trans: 'event.contact_phone',
|
||||
fieldtype: costanti.FieldType.string,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'contact_email',
|
||||
label_trans: 'event.contact_email',
|
||||
fieldtype: costanti.FieldType.string,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'contact_telegram',
|
||||
label_trans: 'event.contact_telegram',
|
||||
@@ -3931,12 +3962,6 @@ export const fieldsTable = {
|
||||
},
|
||||
|
||||
|
||||
tableForUsers: [
|
||||
'myskills',
|
||||
'mygoods',
|
||||
'mybachecas',
|
||||
'myhosps',
|
||||
],
|
||||
|
||||
tableRemotePickup: [
|
||||
'countries',
|
||||
@@ -4186,8 +4211,8 @@ export const fieldsTable = {
|
||||
collabel: 'title',
|
||||
},
|
||||
{
|
||||
value: 'scheda',
|
||||
label: 'Elementi SCheda',
|
||||
value: 'myschedas',
|
||||
label: 'Elementi Scheda',
|
||||
columns: colmyScheda,
|
||||
colkey: '_id',
|
||||
collabel: 'name',
|
||||
|
||||
@@ -7895,7 +7895,7 @@ export const tools = {
|
||||
},
|
||||
|
||||
getTitleGall(table: string) {
|
||||
if (fieldsTable.tableForUsers.includes(table)) {
|
||||
if (shared_consts.TABLEFORUSERS.includes(table)) {
|
||||
return 'Profilo'
|
||||
} else {
|
||||
return fieldsTable.getTitleImgByTable(table)
|
||||
@@ -7919,7 +7919,7 @@ export const tools = {
|
||||
if (username === '') {
|
||||
username = userStore.my.username
|
||||
}
|
||||
if (fieldsTable.tableForUsers.includes(table)) {
|
||||
if (shared_consts.TABLEFORUSERS.includes(table)) {
|
||||
ris = 'profile/' + username + '/' + table
|
||||
} else if (table === 'users') {
|
||||
ris = 'profile/' + userStore.my.username
|
||||
@@ -8271,6 +8271,30 @@ export const tools = {
|
||||
return null
|
||||
},
|
||||
|
||||
getNomeTabellaStrByTable(table: string, rec: any) {
|
||||
let str = ''
|
||||
let nome = ''
|
||||
if (table === toolsext.TABMYBACHECAS) {
|
||||
nome = rec ? rec.descr : ''
|
||||
str = 'l\'Evento "' + nome + '"'
|
||||
} else if (table === toolsext.TABMYSKILLS) {
|
||||
nome = rec ? rec.descr : ''
|
||||
str = 'il Servizio "' + nome + '"'
|
||||
} else if (table === toolsext.TABMYGOODS) {
|
||||
nome = rec ? rec.descr : ''
|
||||
str = 'il Bene "' + nome + '"'
|
||||
} else if (table === toolsext.TABMYHOSPS) {
|
||||
nome = rec ? rec.descr : ''
|
||||
str = 'l\'Ospitalità "' + nome + '"'
|
||||
}
|
||||
|
||||
if (!str) {
|
||||
str = 'il record selezionato'
|
||||
}
|
||||
|
||||
return str
|
||||
},
|
||||
|
||||
extraparams(table: string, extra?: any) {
|
||||
if (table === toolsext.TABMYGROUPS) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user