feat: plugin analytics avec custom field kirbyup + Chart.js

Refactoring complet du plugin analytics : remplacement de la section
avec template Vue inline par un custom field compilé avec kirbyup.
Dashboard avec KPIs, line chart Chart.js et filtres par date.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-03-03 10:33:15 +01:00
parent 7371e66ec1
commit 8a73da920f
15 changed files with 873 additions and 0 deletions

View file

@ -0,0 +1,18 @@
<?php
return [
'props' => [
'value' => function ($value = null) {
return null;
}
],
'computed' => [
'analyticsData' => function () {
$page = $this->model();
if (method_exists($page, 'getAnalyticsData')) {
return $page->getAnalyticsData();
}
return [];
}
]
];