- aggiornato la guida per installare la App

- aggiornato la Guida Completa e Breve di RISO.
- pagina per ricevere i RIS.
- sistemato problema creazione nuovi Circuiti (admin non corretti).
- corretto giro delle email, invitante, invitato e ricezione msg su telegram.
This commit is contained in:
Surya Paolo
2025-11-23 01:13:27 +01:00
parent 8ab7594f16
commit 9faaa1a4c3
39 changed files with 929 additions and 1064 deletions

View File

@@ -11372,7 +11372,7 @@ export const tools = {
isStatusNonAutorizzato() {
const userStore = useUserStore();
return userStore.servercode === serv_constants.RIS_CODE__HTTP_FORBIDDEN_PERMESSI
return userStore.servercode === serv_constants.RIS_CODE__HTTP_FORBIDDEN_PERMESSI;
},
pageExist(path: string) {
@@ -11382,6 +11382,52 @@ export const tools = {
return !!page;
},
lastUserLogged() {
return localStorage.getItem(toolsext.localStorage.lastUserLogged);
},
convertNbspToSpaces(htmlText: string) {
if (!htmlText) return '';
return htmlText.replace(/ /g, ' ');
},
removeNbsp(htmlText: string) {
if (!htmlText) return '';
return htmlText.replace(/ /g, '');
},
converteSpaziMultipliIn1solo(htmlText: string) {
if (!htmlText) return '';
// Collassa spazi multipli in uno solo (mantiene la struttura)
return htmlText
.replace(/>\s+</g, '><') // spazi TRA i tag
.replace(/\s+$/gm, '') // spazi FINE riga
.replace(/^\s+/gm, '') // spazi INIZIO riga
.replace(/[ \t]{2,}/g, ' '); // 2+ spazi → 1 spazio (MA non newline) },
},
// Nel tuo file tools.ts o dove hai le utility
convertHTMLForElement(htmlText: string, usacomeHTML?: boolean): string {
if (!htmlText) return '';
if (!usacomeHTML) {
return htmlText;
}
return this.converteSpaziMultipliIn1solo(htmlText);
},
convertinbspInSpazi(str: string) {
return str
.replace(/&nbsp;/g, ' ') // Converti &nbsp; in spazi normali
},
convertinbspInSpaziNormali(str: string) {
return str
.replace(/&nbsp;/g, ' ') // Converti &nbsp; in spazi normali
.replace(/>\s+</g, '><') // Rimuovi spazi tra tag
.trim();
},
// FINE !
// getLocale() {