Skip to content

Commit

Permalink
chore: clear custom app & header
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiggr committed May 10, 2023
1 parent beee706 commit 78286da
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 347 deletions.
339 changes: 0 additions & 339 deletions src/customizations/volto/components/theme/App/App.jsx

This file was deleted.

20 changes: 12 additions & 8 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ import CollectionBlockView from '@eeacms/volto-forest-policy/components/theme/Co
import CollectionBlockEdit from '@eeacms/volto-forest-policy/components/theme/Collection/BlockEdit';
import CollectionView from '@eeacms/volto-forest-policy/components/theme/Collection/View';

//import ImageCardsView from './ImageCards/ImageCardsView';
//import ImageCardsEdit from './ImageCards/ImageCardsEdit';
import HomePageView from '@eeacms/volto-eea-website-theme/components/theme/Homepage/HomePageView';
import HomePageInverseView from '@eeacms/volto-eea-website-theme/components/theme/Homepage/HomePageInverseView';

import {
NavigationPortlet,
Expand Down Expand Up @@ -120,6 +120,7 @@ export default function applyConfig(config) {
headerSearchBox: [
{
isDefault: true,
// to replace search path change path to whatever you want and match with the page in volto website
path: '/fisesearch',
placeholder: 'Search FISE...',
description:
Expand All @@ -140,6 +141,13 @@ export default function applyConfig(config) {
},
};

// // Custom Homepage layouts
// config.views.layoutViews = {
// ...(config.views.layoutViews || {}),
// homepage_view: HomePageView,
// homepage_inverse_view: HomePageInverseView,
// };

config.views.contentTypesViews.Collection = CollectionView;

config.widgets = {
Expand Down Expand Up @@ -367,12 +375,6 @@ export default function applyConfig(config) {
},
];

// config.settings.slate.styleMenu.blockStyles = [
// ...config.settings.slate.styleMenu.blockStyles,
// { cssClass: 'green-block-text', label: 'Green Text' },
// { cssClass: 'underline-block-text', label: 'Underline Text' },
// ];

//advancedlink is currently not working properly/not recognized in fise, so we add it to config manually
const { slate } = config.settings;

Expand Down Expand Up @@ -400,5 +402,7 @@ export default function applyConfig(config) {
const [installLinkEditor] = makeInlineElementPlugin(opts);
config = installLinkEditor(config);

console.log(config?.views?.layoutViews, 'config.views.layoutViews');

return config;
}

0 comments on commit 78286da

Please sign in to comment.