- aggiornamento catalogo: lista titoli del catalogo

- scheda prodotto libro
- migliorata tabella prodotto
This commit is contained in:
Surya Paolo
2025-04-04 18:15:14 +02:00
parent 79d1c5fe1d
commit 9cfc308d09
49 changed files with 1760 additions and 934 deletions

View File

@@ -2244,11 +2244,15 @@ export const tools = {
},
strToObj(mystr: string): any {
if (mystr) {
mystr = decodeURIComponent(mystr)
return JSON.parse(mystr)
} else
try {
if (mystr) {
mystr = decodeURIComponent(mystr)
return JSON.parse(mystr)
} else
return null
} catch (e) {
return null
}
},
objToStr(myobj: any): string {
@@ -9839,7 +9843,20 @@ export const tools = {
const url = import.meta.env.VITE_APP_URL
const protocol = url.startsWith('http://') ? 'http://' : url.startsWith('https://') ? 'https://' : ''
return protocol
}
},
isRisoApp() {
return this.appid() === tools.IDAPP_RISO
},
isValueNotEmpty(value: any) {
// Verifica se `value` è un oggetto non vuoto o un valore valido
return (
value !== null &&
typeof value === "object" &&
Object.keys(value).length > 0
);
},
// FINE !