Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
add missing routes
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Dec 8, 2021
1 parent 7950572 commit 8339cc2
Showing 1 changed file with 43 additions and 10 deletions.
53 changes: 43 additions & 10 deletions src/localconfig.js
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -19,6 +19,11 @@ 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';
Expand Down Expand Up @@ -80,6 +85,31 @@ 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: {
Expand Down Expand Up @@ -157,28 +187,31 @@ export function applyConfig(config) {
{
title: 'Forest Default',
colorscale: [
'#005c30',
'#168130',
'#6fb22c',
'#bed492',
'#215511',
'#77BB12',
'#CBEE66',
'#ffffff',
'#ecf0c5',
'#F4F4F1',
'#000000',
],
},
{
title: 'Forest Active',
colorscale: [
'#b94d1f ',
'#d9d9d9',
'#b92e48',
'#005e7d',
'#CA4300 ',
'#E0E1E2',
'#E30166',
'#074F7C',
'#000000',
'#ffffff',
],
},
];

config.settings.loadables.rechartsLib = loadable.lib(
() => import('recharts'),
{ ssr: false },
);
// border-tile
config.settings.pluggableStyles = [
...(config.settings.pluggableStyles || []),
Expand Down

0 comments on commit 8339cc2

Please sign in to comment.