- piuchebuono: possiblità di modificare l'immagine dalla scheda direttamente

- migliorata di poco la grafica dell'immagine.
This commit is contained in:
Surya Paolo
2024-10-03 03:55:05 +02:00
parent f9e0175f9b
commit d438867e3a
7 changed files with 85 additions and 15 deletions

View File

@@ -5646,7 +5646,7 @@ module.exports = {
// mystr = t('movement.from') + userfrom + ' ' + t('movement.to') + userto
return { userfrom: {profile: profilefrom, username: userfrom}, userto: {profile: profileto, username: userto}, tipocontofrom, tipocontoto }
return { userfrom: { profile: profilefrom, username: userfrom }, userto: { profile: profileto, username: userto }, tipocontofrom, tipocontoto }
},
ImageDownloader,
@@ -5703,8 +5703,20 @@ module.exports = {
},
// **ADDFIELD_ANNUNCI
};
return annunciFields;
},
},
// Funzione per pulire il nome del file
cleanFileName(filePath) {
// Ottieni solo il nome del file dall'intero percorso
// const fileName = filePath.split('/').pop();
// Rimuovi apostrofi e sostituisci gli spazi con underscore
const cleanedName = fileName.replace(/'/g, '').replace(/\s+/g, '_');
// Restituisci il percorso chiaro; puoi decidere di mantenere il resto del percorso
return cleanedName;
},
};