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

Commit

Permalink
lint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Nov 3, 2021
1 parent ce3dc70 commit 7bd7408
Show file tree
Hide file tree
Showing 58 changed files with 1,568 additions and 1,904 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@eeacms/volto-plotlycharts": "*",
"@eeacms/volto-addons-forest": "0.1.1",
"raven-js": "3.27.2",
"recharts": "2.1.6",
"react-highlight-words": "^0.16.0",
"react-image-gallery": "1.0.8",
"react-lazy-load-image-component": "^1.5.0",
Expand Down
14 changes: 7 additions & 7 deletions src/actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
GET_CHART_DATA_FROM_VISUALIZATION,
GET_NAVSITEMAP,
SET_CURRENT_VERSION,
} from "@eeacms/volto-forests-theme/constants/ActionTypes";
} from '@eeacms/volto-forests-theme/constants/ActionTypes';

export function setCurrentVersion(payload) {
return {
Expand All @@ -21,7 +21,7 @@ export function getFrontpageSlides() {
return {
type: GET_FRONTPAGESLIDES,
request: {
op: "get",
op: 'get',
path: `/frontpage_slides?fullobjects`,
},
};
Expand All @@ -31,7 +31,7 @@ export function getDefaultHeaderImage() {
return {
type: GET_DEFAULT_HEADER_IMAGE,
request: {
op: "get",
op: 'get',
path: `/default_header_image?fullobjects`,
},
};
Expand All @@ -41,7 +41,7 @@ export function getLocalnavigation(folder) {
return {
type: GET_LOCALNAVIGATION,
request: {
op: "get",
op: 'get',
path: `${folder}/@localnavigation`,
},
};
Expand Down Expand Up @@ -75,7 +75,7 @@ export function getParentFolderData(url) {
return {
type: GET_PARENT_FOLDER_DATA,
request: {
op: "get",
op: 'get',
path: `/${url}?fullobjects`,
},
};
Expand All @@ -95,7 +95,7 @@ export function getChartDataFromVisualization(path) {
return {
type: GET_CHART_DATA_FROM_VISUALIZATION,
request: {
op: "get",
op: 'get',
path,
},
};
Expand All @@ -106,7 +106,7 @@ export function getNavSiteMap(url, depth) {
return {
type: GET_NAVSITEMAP,
request: {
op: "get",
op: 'get',
path: `${url}/@navigation?expand.navigation.depth=${depth || 3}`,
},
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
* Footer,
* };
*/
export CountryView from "@eeacms/volto-forests-theme/components/theme/CountryView/CountryView";
export CountryView from '@eeacms/volto-forests-theme/components/theme/CountryView/CountryView';
1 change: 1 addition & 0 deletions src/components/manage/Blocks/NavigationBlock/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const View = ({ content, ...props }) => {
if (width && width > 600) {
setIsMobile(false);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [props.navigation, data.pages?.value]);

const isFixed = props.fixedTabs;
Expand Down
2 changes: 1 addition & 1 deletion src/components/manage/Widgets/ObjectListInlineWidget.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Accordion, Button, Segment, Modal, Grid } from 'semantic-ui-react';
import { Accordion, Button, Segment, Modal } from 'semantic-ui-react';

import React, { useState } from 'react';
import { Icon as VoltoIcon, FormFieldWrapper } from '@plone/volto/components';
Expand Down
5 changes: 1 addition & 4 deletions src/components/theme/CatalogueViews/AppHead.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
* @module components/theme/App/App
*/

import React, { Component } from 'react';

import { Footer } from '@plone/volto/components';

import { Component } from 'react';
class App extends Component {
render() {
return '';
Expand Down
58 changes: 29 additions & 29 deletions src/components/theme/CatalogueViews/AppHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,27 @@
* @module components/theme/App/App
*/

import React, { Component, Fragment } from "react";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import { compose } from "redux";
import { asyncConnect } from "redux-connect";
import loadable from "@loadable/component";
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { compose } from 'redux';
import { asyncConnect } from 'redux-connect';
import loadable from '@loadable/component';

import { Header } from "@plone/volto/components";
import { BodyClass, getBaseUrl, getView } from "@plone/volto/helpers";
import { Header } from '@plone/volto/components';
import { BodyClass, getBaseUrl, getView } from '@plone/volto/helpers';
import {
getContent,
getNavigation,
getTypes,
getWorkflow,
purgeMessages,
} from "@plone/volto/actions";
} from '@plone/volto/actions';
import {
getFrontpageSlides,
getDefaultHeaderImage,
} from "@eeacms/volto-forests-theme/actions";
import { getPortlets } from "@eeacms/volto-addons-forest/actions";
} from '@eeacms/volto-forests-theme/actions';
import { getPortlets } from '@eeacms/volto-addons-forest/actions';

class App extends Component {
static propTypes = {
Expand All @@ -50,7 +50,7 @@ class App extends Component {
componentDidMount() {
// this.props.getDefaultHeaderImage();
if (__CLIENT__ && process.env.SENTRY_DSN) {
const Raven = loadable(() => import("raven-js"));
const Raven = loadable(() => import('raven-js'));

Raven.config(process.env.SENTRY_DSN).install();
}
Expand Down Expand Up @@ -89,7 +89,7 @@ class App extends Component {
componentDidCatch(error, info) {
this.setState({ hasError: true, error, errorInfo: info });
if (__CLIENT__ && process.env.SENTRY_DSN) {
const Raven = loadable(() => import("raven-js"));
const Raven = loadable(() => import('raven-js'));
Raven.captureException(error, { extra: info });
}
}
Expand Down Expand Up @@ -122,68 +122,68 @@ class App extends Component {

export const __test__ = connect(
(state, props) => ({ pathname: props.location.pathname }),
{ purgeMessages }
{ purgeMessages },
)(App);

export default compose(
asyncConnect([
{
key: "content",
key: 'content',
promise: ({ location, store: { dispatch } }) =>
dispatch(getContent(getBaseUrl(location.pathname))),
},
{
key: "frontpage_slides",
key: 'frontpage_slides',
promise: ({ store: { dispatch } }) =>
__SERVER__ && dispatch(getFrontpageSlides()),
},
{
key: "defaultHeaderImage",
key: 'defaultHeaderImage',
promise: ({ store: { dispatch } }) =>
__SERVER__ && dispatch(getDefaultHeaderImage()),
},
{
key: "navigation",
key: 'navigation',
promise: ({ location, store: { dispatch } }) =>
__SERVER__ && dispatch(getNavigation(getBaseUrl(location.pathname))),
},
{
key: "types",
key: 'types',
promise: ({ location, store: { dispatch } }) =>
__SERVER__ && dispatch(getTypes(getBaseUrl(location.pathname))),
},
{
key: "workflow",
key: 'workflow',
promise: ({ location, store: { dispatch } }) =>
__SERVER__ && dispatch(getWorkflow(getBaseUrl(location.pathname))),
},
{
key: "portlets",
key: 'portlets',
promise: ({ location, store: { dispatch } }) =>
__SERVER__ && dispatch(getPortlets(getBaseUrl(location.pathname))),
},
{
key: "portlets_left",
key: 'portlets_left',
promise: ({ location, store: { dispatch } }) =>
__SERVER__ &&
dispatch(
getPortlets(getBaseUrl(location.pathname), "plone.leftcolumn")
getPortlets(getBaseUrl(location.pathname), 'plone.leftcolumn'),
),
},
{
key: "portlets_right",
key: 'portlets_right',
promise: ({ location, store: { dispatch } }) =>
__SERVER__ &&
dispatch(
getPortlets(getBaseUrl(location.pathname), "plone.rightcolumn")
getPortlets(getBaseUrl(location.pathname), 'plone.rightcolumn'),
),
},
{
key: "portlets_footer",
key: 'portlets_footer',
promise: ({ location, store: { dispatch } }) =>
__SERVER__ &&
dispatch(
getPortlets(getBaseUrl(location.pathname), "plone.footerportlets")
getPortlets(getBaseUrl(location.pathname), 'plone.footerportlets'),
),
},
]),
Expand All @@ -200,6 +200,6 @@ export default compose(
// loadingContent: state.content?.get,
// search: state.search,
}),
{ purgeMessages }
)
{ purgeMessages },
),
)(App);
Loading

0 comments on commit 7bd7408

Please sign in to comment.