From 862e70e13173ad61f072be267a46ee77c6f063b4 Mon Sep 17 00:00:00 2001 From: Pasha Frolov Date: Fri, 1 Apr 2022 13:39:23 +0300 Subject: [PATCH] chore: extend kirby default config --- www/app/config/config.php | 18 ++++++++++++++---- www/app/config/hooks.php | 3 +++ www/app/config/routes.php | 3 +++ 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 www/app/config/hooks.php create mode 100644 www/app/config/routes.php diff --git a/www/app/config/config.php b/www/app/config/config.php index 5498839..b6c7e7f 100644 --- a/www/app/config/config.php +++ b/www/app/config/config.php @@ -1,12 +1,22 @@ '../src/', 'arnoson.kirby-vite.outDir' => 'assets', 'arnoson.kirby-vite.entry' => 'app.js', - # optional values - 'debug' => true, - 'smartypants' => true + 'smartypants' => true, + 'panel' => [ + 'slug' => 'cp', + 'language' => 'ru' + ], + 'thumbs' => [ + 'format' => 'webp', + 'quality' => 80, + 'srcsets' => [ + 'default' => [640, 750, 828, 1080, 1200, 1920, 2048, 3840], + ] + ], + 'routes' => require_once 'routes.php', + 'hooks' => require_once 'hooks.php' ]; diff --git a/www/app/config/hooks.php b/www/app/config/hooks.php new file mode 100644 index 0000000..0b67a5f --- /dev/null +++ b/www/app/config/hooks.php @@ -0,0 +1,3 @@ +