- aggiornamenti guida RIS, FAQ

- Editor HTML aggiunto CSS e Script
- Statistiche
- CRISBalanceBar
- Inizio Sync... (ma disattivato)
This commit is contained in:
Surya Paolo
2025-12-02 22:16:24 +01:00
parent 8b6a636a96
commit a51bc5a8a2
53 changed files with 8041 additions and 1177 deletions

View File

@@ -4232,7 +4232,7 @@ export const tools = {
},
sitename() {
return this.getappname()
return this.getappname();
},
getproc() {
@@ -4681,9 +4681,9 @@ export const tools = {
return def;
}
},
getCookieBool(mytok: any, def?: any) {
getCookieBool(mytok: any, def?: any): boolean {
const ris = Cookies.get(mytok);
if (ris === 'null') return def;
if (ris === 'null' || ris === undefined || ris === null) return def;
return ris === '1' ? true : false;
},
@@ -11430,14 +11430,29 @@ export const tools = {
.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 {
convertHTMLForElement(
htmlText: string,
usacomeHTML?: boolean,
customCss?: string
): string {
if (!htmlText) return '';
if (!usacomeHTML) {
return htmlText;
}
return this.converteSpaziMultipliIn1solo(htmlText);
let str = this.converteSpaziMultipliIn1solo(htmlText);
if (customCss) {
str = `
<style scoped>
${customCss}
</style>
${str}
`;
}
return str;
},
convertinbspInSpazi(str: string) {
@@ -11459,7 +11474,7 @@ export const tools = {
},
isGruppoMacro() {
return this.getIdApp() === this.IDAPP_MACRO
return this.getIdApp() === this.IDAPP_MACRO;
},
// FINE !