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:
parent
7371e66ec1
commit
8a73da920f
15 changed files with 873 additions and 0 deletions
18
public/site/plugins/analytics/fields/dashboard.php
Normal file
18
public/site/plugins/analytics/fields/dashboard.php
Normal 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 [];
|
||||
}
|
||||
]
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue