Site Configuration by Server Params (confsites and confpages)

This commit is contained in:
Surya Paolo
2022-11-28 14:00:15 +01:00
parent fab0dbbb72
commit 58dc1dfdcc
76 changed files with 2504 additions and 5004 deletions

View File

@@ -1467,6 +1467,14 @@ export const colTableSites = [
fieldtype: costanti.FieldType.binary,
jointable: 'confsite_opt',
}),
AddCol({
name: 'confpages.lang',
field: 'confpages',
subfield: 'lang',
label_trans: 'confpages.lang',
fieldtype: costanti.FieldType.binary,
jointable: 'confpages_lang',
}),
AddCol({
name: 'policy.show',
field: 'policy',
@@ -1541,13 +1549,6 @@ export const colTableSites = [
subfield: 'whatsapp',
label_trans: 'reg.whatsapp',
}),
AddCol({
name: 'contacts.whatsapp',
field: 'contacts',
subfield: 'whatsapp',
label_trans: 'reg.whatsapp_home',
fieldtype: costanti.FieldType.boolean,
}),
AddCol({
name: 'contacts.telegram',
field: 'contacts',
@@ -1620,20 +1621,6 @@ export const colTableSites = [
label_trans: 'confpages.dark',
fieldtype: costanti.FieldType.boolean,
}),
AddCol({
name: 'footer_mobile.show_buttHome',
field: 'footer_mobile',
subfield: 'show_buttHome',
label_trans: 'reg.show_buttHome',
fieldtype: costanti.FieldType.boolean,
}),
AddCol({
name: 'footer_mobile.whatsapp',
field: 'footer_mobile',
subfield: 'show_profile',
label_trans: 'reg.show_profile',
fieldtype: costanti.FieldType.boolean,
}),
AddCol(DeleteRec),
AddCol(DuplicateRec),
]
@@ -2970,11 +2957,12 @@ export const fieldsTable = {
return this.tablesList.find((rec) => rec.value === mytable)
},
getColByTable(mytable: string, namecol: string) {
const tablerec: any = this.tablesList.find((rec) => rec.value === mytable)
if (tablerec) {
// console.log('tablerec', tablerec.columns)
console.log('tablerec', tablerec.columns)
const mycol = tablerec.columns.find((col: any) => col.name === namecol)
// console.log('mycol = ', mycol)
console.log('mycol = ', mycol)
return mycol
} else
return null
@@ -3096,15 +3084,7 @@ export const fieldsTable = {
},
userlist() {
if (static_data.functionality.ENABLE_REG_AYNI) {
return colTableUsers
} else if (static_data.functionality.ENABLE_REG_CNM) {
return colTableUsersCNM
} else if (static_data.functionality.ENABLE_REG_ISP) {
return colTableUsersISP
} else {
return colTableUsersBase
}
return colTableUsersISP
},
tablesList: [
@@ -3328,6 +3308,15 @@ export const fieldsTable = {
colicon: 'icon',
noshow: true,
},
{
value: 'confpages_lang',
label: 'Lingua',
columns: colTableGeneric,
colkey: 'value',
collabel: 'label',
colicon: 'icon',
noshow: true,
},
{
value: 'fonts_installed',
label: 'Font Installati',