- Aggiunto le Statistiche di visualizzazione delle pagine.

- Aggiunto il componente per visualizzare le statistiche
This commit is contained in:
Surya Paolo
2025-07-08 16:19:12 +02:00
parent 7f5ff3da64
commit 40ec5465b2
61 changed files with 3593791 additions and 654 deletions

View File

@@ -11138,6 +11138,19 @@ export const tools = {
}
},
escludiUrlDominio(url: string) {
const urlObj = new URL(url);
// da 'https://miodominio.com/...' diventa '/...'
return urlObj.pathname;
},
getWeekOfYear(data: Date) {
const startOfYear = new Date(data.getFullYear(), 0, 1);
const pastDaysOfYear = (data.getTime() - startOfYear.getTime()) / 86400000;
return Math.ceil((pastDaysOfYear + startOfYear.getDay() + 1) / 7);
},
// FINE !
// getLocale() {