refactoring: update severals components

This commit is contained in:
Simon Vieille 2025-04-04 20:13:15 +02:00
commit d8a622ce0f
Signed by: deblan
GPG key ID: 579388D585F70417
37 changed files with 1870 additions and 1795 deletions

View file

@ -119,26 +119,26 @@ class Application extends App implements IBootstrap
protected function addAssets()
{
Util::addScript(self::APP_ID, 'sideMenu');
Util::addStyle(self::APP_ID, 'sideMenu');
Util::addScript(self::APP_ID, 'side_menu-menu');
//Util::addStyle(self::APP_ID, 'sideMenu');
$assets = [
'stylesheet' => [
'route' => 'side_menu.Css.stylesheet',
'type' => 'link',
'route_attr' => 'href',
'attr' => [
'rel' => 'stylesheet',
],
],
'script' => [
'route' => 'side_menu.Js.script',
'type' => 'script',
'route_attr' => 'src',
'attr' => [
'nonce' => $this->cspnm->getNonce(),
],
],
// 'stylesheet' => [
// 'route' => 'side_menu.Css.stylesheet',
// 'type' => 'link',
// 'route_attr' => 'href',
// 'attr' => [
// 'rel' => 'stylesheet',
// ],
// ],
// 'script' => [
// 'route' => 'side_menu.Js.script',
// 'type' => 'script',
// 'route_attr' => 'src',
// 'attr' => [
// 'nonce' => $this->cspnm->getNonce(),
// ],
// ],
];
$cache = $this->config->getAppValue(self::APP_ID, 'cache', '0');