diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 00000000..f5c858df --- /dev/null +++ b/.eslintrc @@ -0,0 +1,63 @@ +{ + "extends": "./node_modules/@plone/volto/.eslintrc", + "settings": { + "import/resolver": { + "alias": { + "map": [ + [ + "@plone/volto", + "@plone/volto/src" + ], + [ + "@package", + "./src" + ], + [ + "~", + "./src" + ], + [ + "volto-mosaic", + "./src/develop/volto-mosaic/src" + ], + [ + "volto-datablocks", + "./src/develop/volto-datablocks/src" + ], + [ + "volto-addons", + "./src/develop/volto-addons/src" + ], + [ + "volto-ckeditor", + "./src/develop/volto-ckeditor/src" + ], + [ + "volto-blocks", + "./src/develop/volto-blocks/src" + ], + [ + "volto-drafteditor", + "./src/develop/volto-drafteditor/src" + ], + [ + "volto-base", + "./src/develop/volto-base/src" + ], + [ + "volto-plotlycharts", + "./src/develop/volto-plotlycharts/src" + ], + [ + "volto-embed", + "./src/develop/volto-embed/src" + ], + [ + "volto-sidebar", + "./src/develop/volto-sidebar/src" + ] + ] + } + } + } +} \ No newline at end of file diff --git a/jsconfig.json b/jsconfig.json index 231dd654..be3f3abe 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -1,47 +1,47 @@ { "addons": [ - "volto-addons", - "volto-blocks", - "volto-ckeditor", - "volto-corsproxy", - "volto-datablocks", - "volto-drafteditor", - "volto-mosaic", - "volto-plotlycharts", + "volto-addons", + "volto-blocks", + "volto-ckeditor", + "volto-corsproxy", + "volto-datablocks", + "volto-drafteditor", + "volto-mosaic", + "volto-plotlycharts", "volto-sidebar" - ], + ], "compilerOptions": { - "baseUrl": "src", + "baseUrl": "src", "paths": { - "volto-mosaic": [ - "develop/volto-mosaic/src" - ], - "volto-datablocks": [ - "develop/volto-datablocks/src" - ], - "volto-blocks": [ - "develop/volto-blocks/src" - ], "volto-addons": [ "develop/volto-addons/src" - ], + ], + "volto-base": [ + "develop/volto-base/src" + ], + "volto-blocks": [ + "develop/volto-blocks/src" + ], "volto-ckeditor": [ "develop/volto-ckeditor/src" - ], + ], + "volto-datablocks": [ + "develop/volto-datablocks/src" + ], "volto-drafteditor": [ "develop/volto-drafteditor/src" - ], + ], + "volto-embed": [ + "develop/volto-embed/src" + ], + "volto-mosaic": [ + "develop/volto-mosaic/src" + ], "volto-plotlycharts": [ "develop/volto-plotlycharts/src" - ], + ], "volto-sidebar": [ "develop/volto-sidebar/src" - ], - "volto-base": [ - "develop/volto-base/src" - ], - "volto-embed": [ - "develop/volto-embed/src" ] } } diff --git a/package.json b/package.json index 078ee8e4..da8585c9 100644 --- a/package.json +++ b/package.json @@ -111,7 +111,7 @@ "eslint-plugin-react": "^7.14.3", "eslint-plugin-react-hooks": "^1.7.0", "mr-developer": "^1.4.0", - "mrs-developer": "^1.1.4", + "mrs-developer": "^1.1.6", "postcss-overrides": "3.1.4", "prettier": "1.17.0", "prettier-eslint": "^9.0.0", diff --git a/src/components/theme/View/BrowseView.jsx b/src/components/theme/View/BrowseView.jsx new file mode 100644 index 00000000..fb971667 --- /dev/null +++ b/src/components/theme/View/BrowseView.jsx @@ -0,0 +1,79 @@ +/** + * Document view component. + * @module components/theme/View/DefaultView + */ + +import React, { Component } from 'react'; +import { compose } from 'redux'; +import { defineMessages, injectIntl } from 'react-intl'; +import { connect } from 'react-redux'; +import { Grid, Button, Input } from 'semantic-ui-react'; + +class BrowseView extends Component { + constructor(props) { + super(props); + this.state = { + tabs: null, + }; + } + + render() { + return ( +
or
+ +Dynamic filter +
+Reporting year
+