Interactive interface for browsing global, full-resolution satellite imagery
Fix lint errors and warnings
ZachTRice4d485db34f58
diff --git a/e2e/features/notifications/notify-test.js b/e2e/features/notifications/notify-test.jsindex e48c84e7c..8f2f18b31 100644--- a/e2e/features/notifications/notify-test.js+++ b/e2e/features/notifications/notify-test.js@@ -10,7 +10,6 @@ const exclamationListItem = '#wv-info-menu li.exclamation-circle';const alertContentHightlighted = '.wv-notify-modal .alert';const outageContentHightlighted = '.wv-notify-modal .outage';const messageContentHightlighted = '.wv-notify-modal .message';-const notifyModal = '.wv-notify-modal';module.exports = {'No visible notifications with mockAlert parameter set to no_types': function(diff --git a/web/js/app.js b/web/js/app.jsindex a0f89719f..1d6b1a7e6 100644--- a/web/js/app.js+++ b/web/js/app.js@@ -181,6 +181,8 @@ export default connect(mapDispatchToProps)(App);App.propTypes = {+ state: PropTypes.object,+ parameters: PropTypes.object,mapMouseEvents: PropTypes.object,keyPressAction: PropTypes.func};diff --git a/web/js/components/image-download/panel.js b/web/js/components/image-download/panel.jsindex 537773125..a5c6ed53a 100644--- a/web/js/components/image-download/panel.js+++ b/web/js/components/image-download/panel.js@@ -204,5 +204,7 @@ ImageResSelection.propTypes = {secondLabel: PropTypes.string,fileTypeOptions: PropTypes.bool,url: PropTypes.string,- crs: PropTypes.string+ crs: PropTypes.string,+ getLayers: PropTypes.func,+ date: PropTypes.object};diff --git a/web/js/components/layer/product-picker/product-picker.js b/web/js/components/layer/product-picker/product-picker.jsindex c1a9ed3dc..46ac74b7a 100644--- a/web/js/components/layer/product-picker/product-picker.js+++ b/web/js/components/layer/product-picker/product-picker.js@@ -251,7 +251,7 @@ ProductPicker.propTypes = {hasMeasurementSetting: PropTypes.func,filterProjections: PropTypes.func,filterSearch: PropTypes.func,- onToggleModal: PropTypes.func,+ onToggle: PropTypes.func,category: PropTypes.object};diff --git a/web/js/components/sidebar/legend.js b/web/js/components/sidebar/legend.jsindex 48e9ed818..1567c129e 100644--- a/web/js/components/sidebar/legend.js+++ b/web/js/components/sidebar/legend.js@@ -412,7 +412,8 @@ Legend.propTypes = {height: PropTypes.number,isRunningData: PropTypes.bool,isHoveringCanvas: PropTypes.bool,- colorHex: PropTypes.string+ colorHex: PropTypes.string,+ isCustomPalette: PropTypes.bool};export default Legend;diff --git a/web/js/components/timeline/timeline-axis/timeline-axis.js b/web/js/components/timeline/timeline-axis/timeline-axis.jsindex 59c3be4cb..2430c1795 100644--- a/web/js/components/timeline/timeline-axis/timeline-axis.js+++ b/web/js/components/timeline/timeline-axis/timeline-axis.js@@ -1260,7 +1260,8 @@ TimelineAxis.propTypes = {isAnimationDraggerDragging: PropTypes.bool,isTimelineDragging: PropTypes.bool,hasMoved: PropTypes.bool,- isTourActive: PropTypes.bool+ isTourActive: PropTypes.bool,+ isAnimationPlaying: PropTypes.bool};export default TimelineAxis;diff --git a/web/js/containers/modal.js b/web/js/containers/modal.jsindex 50539d357..939ba3be1 100644--- a/web/js/containers/modal.js+++ b/web/js/containers/modal.js@@ -193,5 +193,6 @@ ModalContainer.propTypes = {bodyTemplate: PropTypes.object,isOpen: PropTypes.bool,isTemplateModal: PropTypes.bool,- customProps: PropTypes.object+ customProps: PropTypes.object,+ isMobile: PropTypes.bool};diff --git a/web/js/containers/sidebar/events.js b/web/js/containers/sidebar/events.jsindex 4717357e7..51f549d40 100644--- a/web/js/containers/sidebar/events.js+++ b/web/js/containers/sidebar/events.js@@ -269,5 +269,6 @@ Events.propTypes = {hasRequestError: PropTypes.bool,isMobile: PropTypes.bool,showAlert: PropTypes.bool,- openAlertModal: PropTypes.func+ openAlertModal: PropTypes.func,+ selectedDate: PropTypes.string};diff --git a/web/js/containers/toolbar.js b/web/js/containers/toolbar.jsindex 81f5b139b..dd5522a68 100644--- a/web/js/containers/toolbar.js+++ b/web/js/containers/toolbar.js@@ -196,5 +196,6 @@ toolbarContainer.propTypes = {notificationType: PropTypes.string,notificationContentNumber: PropTypes.number,requestNotifications: PropTypes.func,- config: PropTypes.object+ config: PropTypes.object,+ isImageDownloadActive: PropTypes.bool};diff --git a/web/js/map/animation/ui.js b/web/js/map/animation/ui.jsindex c1b42728c..f52043b7e 100644--- a/web/js/map/animation/ui.js+++ b/web/js/map/animation/ui.js@@ -8,7 +8,10 @@ import {UPDATE_START_DATE,UPDATE_END_DATE} from '../../modules/animation/constants';-import { changeEndDate } from '../../modules/animation/actions';+import { SELECT_DATE } from '../../modules/date/constants';+import { CHANGE_TAB as CHANGE_SIDEBAR_TAB } from '../../modules/sidebar/constants';+import { REMOVE_LAYER } from '../../modules/layers/constants';+import { OPEN_BASIC, OPEN_CUSTOM } from '../../modules/modal/constants';export function animationUi(models, ui, store) {var self = {};@@ -34,10 +37,10 @@ export function animationUi(models, ui, store) {case TOGGLE_GIF:case UPDATE_START_DATE:case UPDATE_END_DATE:- case modalConstants.OPEN_CUSTOM:- case modalConstants.OPEN_BASIC:- case layerConstants.REMOVE_LAYER:- case sidebarConstants.CHANGE_TAB:+ case OPEN_CUSTOM:+ case OPEN_BASIC:+ case REMOVE_LAYER:+ case CHANGE_SIDEBAR_TAB:return self.refreshState();case SELECT_DATE:return self.dateChange();