diff --git a/src/localconfig.js b/src/localconfig.js index 2a74a0f..926d596 100644 --- a/src/localconfig.js +++ b/src/localconfig.js @@ -1,5 +1,5 @@ import { defineMessages } from 'react-intl'; -import loadable from '@loadable/component'; + import TokenWidget from '@plone/volto/components/manage/Widgets/TokenWidget'; import CountryView from '@eeacms/volto-forests-theme/components/theme/CountryView/CountryView'; @@ -19,11 +19,6 @@ import NavigationBlockEdit from '@eeacms/volto-forests-theme/components/manage/B import NavigationBlockView from '@eeacms/volto-forests-theme/components/manage/Blocks/NavigationBlock/View'; import RedirectView from '@eeacms/volto-forests-theme/components/theme/View/RedirectView'; -import SiteMap from '@eeacms/volto-forests-theme/components/theme/SiteMap/SiteMap'; -import Header from '@eeacms/volto-forests-theme/components/theme/CatalogueViews/AppHeader.jsx'; -import Footer from '@eeacms/volto-forests-theme/components/theme/CatalogueViews/AppFooter.jsx'; -import Head from '@eeacms/volto-forests-theme/components/theme/CatalogueViews/AppHead.jsx'; - import { uniqBy } from 'lodash'; import './slate-inlineStyles.less'; @@ -85,31 +80,6 @@ export function applyConfig(config) { // ...['navigation', '&expand.navigation.depth=3'], }; - const addonRoutes = [ - { - path: '/header', - component: Header, - exact: true, - }, - { - path: '/footer', - component: Footer, - exact: true, - }, - { - path: '/head', - component: Head, - exact: true, - }, - { - path: '/sitemap', - component: SiteMap, - exact: true, - }, - ]; - - config.addonRoutes = addonRoutes; - config.views = { ...config.views, layoutViews: { @@ -187,31 +157,28 @@ export function applyConfig(config) { { title: 'Forest Default', colorscale: [ - '#215511', - '#77BB12', - '#CBEE66', + '#005c30', + '#168130', + '#6fb22c', + '#bed492', '#ffffff', - '#F4F4F1', + '#ecf0c5', '#000000', ], }, { title: 'Forest Active', colorscale: [ - '#CA4300 ', - '#E0E1E2', - '#E30166', - '#074F7C', + '#b94d1f ', + '#d9d9d9', + '#b92e48', + '#005e7d', '#000000', '#ffffff', ], }, ]; - config.settings.loadables.rechartsLib = loadable.lib( - () => import('recharts'), - { ssr: false }, - ); // border-tile config.settings.pluggableStyles = [ ...(config.settings.pluggableStyles || []),