- aggiornamenti guida RIS, FAQ
- Editor HTML aggiunto CSS e Script - Statistiche - CRISBalanceBar - Inizio Sync... (ma disattivato)
This commit is contained in:
@@ -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 !
|
||||
|
||||
Reference in New Issue
Block a user