- Aggiunto le Statistiche di visualizzazione delle pagine.
- Aggiunto il componente per visualizzare le statistiche
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user