Skip to content

Commit

Permalink
Customized ModalForm, SchemaWidget, SchemaWidgetFieldset
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Aug 22, 2020
1 parent 7a75869 commit ac7f7bc
Show file tree
Hide file tree
Showing 9 changed files with 2,885 additions and 1,428 deletions.
1 change: 1 addition & 0 deletions mrs.developer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"volto-mosaic": {
"url": "https://github.com/eea/volto-mosaic.git",
"branch": "volto-7",
"path": "src"
},
"volto-gridlayout": {
Expand Down
20 changes: 19 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
"@eeacms/volto-widgets-view",
"@eeacms/volto-slate-metadata-mentions",
"@eeacms/volto-metadata-block",
"@eeacms/volto-tabs-block"
"@eeacms/volto-tabs-block",
"volto-mosaic",
"volto-addons",
"volto-datablocks",
"volto-tabsview"
],
"scripts": {
"start": "razzle start",
Expand Down Expand Up @@ -113,7 +117,21 @@
"volto-slate": "github:eea/volto-slate#0.5.2"
},
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.4",
"@babel/plugin-proposal-decorators": "^7.8.3",
"@babel/plugin-proposal-do-expressions": "^7.8.3",
"@babel/plugin-proposal-export-default-from": "^7.8.3",
"@babel/plugin-proposal-export-namespace-from": "^7.8.3",
"@babel/plugin-proposal-function-bind": "^7.8.3",
"@babel/plugin-proposal-function-sent": "^7.8.3",
"@babel/plugin-proposal-logical-assignment-operators": "^7.8.3",
"@babel/plugin-proposal-numeric-separator": "^7.8.3",
"@babel/plugin-proposal-pipeline-operator": "^7.8.3",
"@babel/plugin-proposal-throw-expressions": "^7.8.3",
"@babel/plugin-syntax-import-meta": "^7.8.3",
"eslint-plugin-prettier": "3.1.3",
"mrs-developer": "^1.4.0",
"prettier": "2.0.5",
"stylelint": "13.3.3",
"stylelint-config-idiomatic-order": "8.1.0",
Expand Down
40 changes: 34 additions & 6 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,49 @@

import * as config from '@plone/volto/config';

import {
installTableau,
installExpendableList,
installFolderListing,
} from 'volto-addons';
import { applyEditForms as mosaicEditForms } from 'volto-mosaic/config';
import {
applyConfig as eprtrConfig,
applyEditForms as eprtrEditForms,
} from './localconfig';

const addonConfig = [
mosaicEditForms,
eprtrEditForms,
installTableau,
installExpendableList,
installFolderListing,
eprtrConfig,
].reduce((acc, apply) => apply(acc), config);

export const settings = {
...config.settings,
...addonConfig.settings,
};

export const views = {
...config.views,
...addonConfig.views,
};

export const widgets = {
...config.widgets,
...addonConfig.widgets,
};

export const blocks = {
...config.blocks,
...addonConfig.blocks,
};

export const addonReducers = { ...addonConfig.addonReducers };
export const addonRoutes = [...(addonConfig.addonRoutes || [])];

export const portlets = {
...addonConfig.portlets,
};

export const addonReducers = { ...config.addonReducers };
export const addonRoutes = [...(config.addonRoutes || [])];
export const editForms = {
...addonConfig.editForms,
};
Loading

0 comments on commit ac7f7bc

Please sign in to comment.