From 54969fb30c4512d639099c55eacda1fe1ba4db96 Mon Sep 17 00:00:00 2001 From: Giulia Ghisini Date: Fri, 15 Sep 2023 10:52:39 +0200 Subject: [PATCH] chore: added release-log link in controlpanel --- src/config/italiaConfig.js | 11 +++++++++++ src/icons/log.svg | 3 +++ src/routes.js | 4 ++++ 3 files changed, 18 insertions(+) create mode 100644 src/icons/log.svg diff --git a/src/config/italiaConfig.js b/src/config/italiaConfig.js index b2abde35b..a5f61ff0f 100644 --- a/src/config/italiaConfig.js +++ b/src/config/italiaConfig.js @@ -44,6 +44,7 @@ import faBuildingSVG from 'design-comuni-plone-theme/icons/building.svg'; import faFileDownloadSVG from 'design-comuni-plone-theme/icons/file-download.svg'; import faQuestionSVG from 'design-comuni-plone-theme/icons/question-solid.svg'; import bandoSVG from 'design-comuni-plone-theme/icons/bando.svg'; +import logSVG from 'design-comuni-plone-theme/icons/log.svg'; import applyRichTextConfig from 'design-comuni-plone-theme/config/RichTextEditor/config'; @@ -135,6 +136,15 @@ export default function applyConfig(voltoConfig) { great: 1200, huge: 1600, }, + controlpanels: [ + ...(config.settings.controlpanels ?? []), + { + '@id': '/release-log', + group: 'Generali', + title: 'Novità ultimi rilasci', + id: 'release-log', + }, + ], controlPanelsIcons: { ...config.settings.controlPanelsIcons, 'dropdown-menu-settings': menuSVG, @@ -143,6 +153,7 @@ export default function applyConfig(voltoConfig) { 'design-plone-settings': contentSVG, 'bandi-settings': bookSVG, 'social-settings': shareSVG, + 'release-log': logSVG, }, defaultBlockType: 'text', defaultExcludedFromSearch: { diff --git a/src/icons/log.svg b/src/icons/log.svg new file mode 100644 index 000000000..f20d03c9e --- /dev/null +++ b/src/icons/log.svg @@ -0,0 +1,3 @@ + + LOG + \ No newline at end of file diff --git a/src/routes.js b/src/routes.js index 1e51d30c4..bc5b63323 100644 --- a/src/routes.js +++ b/src/routes.js @@ -18,6 +18,10 @@ export const italiaRoutes = [ path: '/**/search', component: Search, }, + { + path: '/controlpanel/release-log', + component: ReleaseLog, + }, { path: '/release-log', component: ReleaseLog,