diff --git a/plugins/API.jsx b/plugins/API.jsx index 1d6d8eee4..f26f64265 100644 --- a/plugins/API.jsx +++ b/plugins/API.jsx @@ -6,14 +6,19 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; +import React from 'react'; +// absolute named imports import {connect} from 'react-redux'; -import {LayerRole} from '../actions/layers'; -import LayerUtils from '../utils/LayerUtils'; +// relative default imports import CoordinatesUtils from '../utils/CoordinatesUtils'; +import LayerUtils from '../utils/LayerUtils'; import ServiceLayerUtils from '../utils/ServiceLayerUtils'; import VectorLayerUtils from '../utils/VectorLayerUtils'; +// relative named imports +import {LayerRole} from '../actions/layers'; +// styles import * as displayActions from '../actions/display'; import * as layerActions from '../actions/layers'; diff --git a/plugins/AttributeTable.jsx b/plugins/AttributeTable.jsx index aafd08d42..f415c6894 100644 --- a/plugins/AttributeTable.jsx +++ b/plugins/AttributeTable.jsx @@ -6,29 +6,34 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports +import FileSaver from 'file-saver'; import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; import isEmpty from 'lodash.isempty'; -import FileSaver from 'file-saver'; -import {getFeatureTemplate} from '../actions/editing'; -import {LayerRole} from '../actions/layers'; -import {zoomToExtent, zoomToPoint} from '../actions/map'; -import {setCurrentTask, setCurrentTaskBlocked} from '../actions/task'; -import EditComboField, {KeyValCache} from '../components/EditComboField'; -import EditUploadField from '../components/EditUploadField'; -import Icon from '../components/Icon'; -import ResizeableWindow from '../components/ResizeableWindow'; -import NavBar from '../components/widgets/NavBar'; -import Spinner from '../components/Spinner'; -import TextInput from '../components/widgets/TextInput'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports import ConfigUtils from '../utils/ConfigUtils'; -import EditingInterface from '../utils/EditingInterface'; import CoordinatesUtils from '../utils/CoordinatesUtils'; +import EditUploadField from '../components/EditUploadField'; +import EditingInterface from '../utils/EditingInterface'; +import Icon from '../components/Icon'; import LayerUtils from '../utils/LayerUtils'; import LocaleUtils from '../utils/LocaleUtils'; import MapUtils from '../utils/MapUtils'; +import NavBar from '../components/widgets/NavBar'; +import ResizeableWindow from '../components/ResizeableWindow'; +import Spinner from '../components/Spinner'; +import TextInput from '../components/widgets/TextInput'; import VectorLayerUtils from '../utils/VectorLayerUtils'; +// relative named imports +import {LayerRole} from '../actions/layers'; +import {getFeatureTemplate} from '../actions/editing'; +import EditComboField, {KeyValCache} from '../components/EditComboField'; +import {setCurrentTask, setCurrentTaskBlocked} from '../actions/task'; +import {zoomToExtent, zoomToPoint} from '../actions/map'; +// styles import './style/AttributeTable.css'; /** diff --git a/plugins/Authentication.jsx b/plugins/Authentication.jsx index f2fa502fd..1d1ffcd71 100644 --- a/plugins/Authentication.jsx +++ b/plugins/Authentication.jsx @@ -6,11 +6,16 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; import url from 'url'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports import ConfigUtils from '../utils/ConfigUtils'; +// relative named imports +// styles /** diff --git a/plugins/BackgroundSwitcher.jsx b/plugins/BackgroundSwitcher.jsx index d288344fe..6d4b9bb90 100644 --- a/plugins/BackgroundSwitcher.jsx +++ b/plugins/BackgroundSwitcher.jsx @@ -6,16 +6,21 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; import classnames from 'classnames'; import isEmpty from 'lodash.isempty'; import sortBy from 'lodash.sortby'; -import {LayerRole, changeLayerProperty} from '../actions/layers'; -import Icon from '../components/Icon'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports import ConfigUtils from '../utils/ConfigUtils'; +import Icon from '../components/Icon'; import LocaleUtils from '../utils/LocaleUtils'; +// relative named imports +import {LayerRole, changeLayerProperty} from '../actions/layers'; +// styles import './style/BackgroundSwitcher.css'; diff --git a/plugins/Bookmark.jsx b/plugins/Bookmark.jsx index 837683e61..70923f6a1 100644 --- a/plugins/Bookmark.jsx +++ b/plugins/Bookmark.jsx @@ -6,19 +6,23 @@ * LICENSE file in the root directory of this source tree. */ +// absolute default imports +import PropTypes from 'prop-types'; import React from 'react'; -import {connect} from 'react-redux'; import classnames from 'classnames'; -import PropTypes from 'prop-types'; -import LocaleUtils from '../utils/LocaleUtils'; +import isEmpty from 'lodash.isempty'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports import ConfigUtils from '../utils/ConfigUtils'; import Icon from '../components/Icon'; +import LocaleUtils from '../utils/LocaleUtils'; import SideBar from '../components/SideBar'; import Spinner from '../components/Spinner'; +// relative named imports import {createBookmark, getUserBookmarks, removeBookmark, updateBookmark} from '../utils/PermaLinkUtils'; +// styles import './style/Bookmark.css'; -import isEmpty from 'lodash.isempty'; - /** * Allows managing user bookmarks. diff --git a/plugins/BottomBar.jsx b/plugins/BottomBar.jsx index 5c0a155ba..c7bce40a1 100644 --- a/plugins/BottomBar.jsx +++ b/plugins/BottomBar.jsx @@ -6,20 +6,25 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; +import React from 'react'; +import pickBy from 'lodash.pickby'; +// absolute named imports import {connect} from 'react-redux'; import {createSelector} from 'reselect'; -import pickBy from 'lodash.pickby'; -import {changeMousePositionState} from '../actions/mousePosition'; -import {changeZoomLevel, setBottombarHeight} from '../actions/map'; -import {openExternalUrl} from '../actions/task'; +// relative default imports import CoordinateDisplayer from '../components/CoordinateDisplayer'; -import InputContainer from '../components/InputContainer'; -import displayCrsSelector from '../selectors/displaycrs'; import CoordinatesUtils from '../utils/CoordinatesUtils'; +import InputContainer from '../components/InputContainer'; import LocaleUtils from '../utils/LocaleUtils'; import MapUtils from '../utils/MapUtils'; +import displayCrsSelector from '../selectors/displaycrs'; +// relative named imports +import {changeMousePositionState} from '../actions/mousePosition'; +import {openExternalUrl} from '../actions/task'; +import {changeZoomLevel, setBottombarHeight} from '../actions/map'; +// styles import './style/BottomBar.css'; diff --git a/plugins/Cyclomedia.jsx b/plugins/Cyclomedia.jsx index 7187dec2a..653e8b524 100644 --- a/plugins/Cyclomedia.jsx +++ b/plugins/Cyclomedia.jsx @@ -6,18 +6,23 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; +import React from 'react'; +// absolute named imports import {connect} from 'react-redux'; -import {addLayer, addLayerFeatures, changeLayerProperty, removeLayer, LayerRole} from '../actions/layers'; -import {setCurrentTask} from '../actions/task'; -import ResizeableWindow from '../components/ResizeableWindow'; -import Spinner from '../components/Spinner'; +// relative default imports import CoordinatesUtils from '../utils/CoordinatesUtils'; import LocaleUtils from '../utils/LocaleUtils'; -import './style/Cyclomedia.css'; import MapUtils from 'qwc2/utils/MapUtils'; +import ResizeableWindow from '../components/ResizeableWindow'; import ResourceRegistry from 'qwc2/utils/ResourceRegistry'; +import Spinner from '../components/Spinner'; +// relative named imports +import {setCurrentTask} from '../actions/task'; +import {LayerRole, addLayer, addLayerFeatures, changeLayerProperty, removeLayer} from '../actions/layers'; +// styles +import './style/Cyclomedia.css'; const Status = {LOGIN: 0, INITIALIZING: 1, INITIALIZED: 2, ERROR: 3, LOADPOS: 4, HAVEPOS: 5}; diff --git a/plugins/DxfExport.jsx b/plugins/DxfExport.jsx index f3d8fb95a..9a9cb7950 100644 --- a/plugins/DxfExport.jsx +++ b/plugins/DxfExport.jsx @@ -6,21 +6,26 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports +import FileSaver from 'file-saver'; import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; import axios from 'axios'; -import isEmpty from 'lodash.isempty'; import formDataEntries from 'formdata-json'; -import FileSaver from 'file-saver'; -import {LayerRole} from '../actions/layers'; -import {setCurrentTask} from '../actions/task'; -import InputContainer from '../components/InputContainer'; -import TaskBar from '../components/TaskBar'; -import PrintFrame from '../components/PrintFrame'; +import isEmpty from 'lodash.isempty'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports import CoordinatesUtils from '../utils/CoordinatesUtils'; +import InputContainer from '../components/InputContainer'; import LocaleUtils from '../utils/LocaleUtils'; import MiscUtils from '../utils/MiscUtils'; +import PrintFrame from '../components/PrintFrame'; +import TaskBar from '../components/TaskBar'; +// relative named imports +import {LayerRole} from '../actions/layers'; +import {setCurrentTask} from '../actions/task'; +// styles import './style/DxfExport.css'; diff --git a/plugins/Editing.jsx b/plugins/Editing.jsx index 9d294fcb8..911ff29ea 100644 --- a/plugins/Editing.jsx +++ b/plugins/Editing.jsx @@ -6,26 +6,31 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; import isEmpty from 'lodash.isempty'; import isEqual from 'lodash.isequal'; +// absolute named imports +import {connect} from 'react-redux'; import {v1 as uuidv1} from 'uuid'; -import {setEditContext, clearEditContext, getFeatureTemplate} from '../actions/editing'; -import {setCurrentTask, setCurrentTaskBlocked} from '../actions/task'; -import {LayerRole, addLayerFeatures, removeLayer, refreshLayer, changeLayerProperty} from '../actions/layers'; -import {setSnappingConfig} from '../actions/map'; +// relative default imports import AttributeForm from '../components/AttributeForm'; -import Icon from '../components/Icon'; -import PickFeature from '../components/PickFeature'; -import SideBar from '../components/SideBar'; import ButtonBar from '../components/widgets/ButtonBar'; import ConfigUtils from '../utils/ConfigUtils'; import EditingInterface from '../utils/EditingInterface'; +import Icon from '../components/Icon'; import LayerUtils from '../utils/LayerUtils'; import LocaleUtils from '../utils/LocaleUtils'; import MapUtils from '../utils/MapUtils'; +import PickFeature from '../components/PickFeature'; +import SideBar from '../components/SideBar'; +// relative named imports +import {setSnappingConfig} from '../actions/map'; +import {LayerRole, addLayerFeatures, changeLayerProperty, refreshLayer, removeLayer} from '../actions/layers'; +import {clearEditContext, getFeatureTemplate, setEditContext} from '../actions/editing'; +import {setCurrentTask, setCurrentTaskBlocked} from '../actions/task'; +// styles import './style/Editing.css'; diff --git a/plugins/FeatureForm.jsx b/plugins/FeatureForm.jsx index 1f143beb2..d2cfec79d 100644 --- a/plugins/FeatureForm.jsx +++ b/plugins/FeatureForm.jsx @@ -6,20 +6,25 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; import isEmpty from 'lodash.isempty'; -import {setEditContext, clearEditContext} from '../actions/editing'; -import {LayerRole} from '../actions/layers'; -import {setCurrentTask} from '../actions/task'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports import AttributeForm from '../components/AttributeForm'; -import ResizeableWindow from '../components/ResizeableWindow'; -import TaskBar from '../components/TaskBar'; import EditingInterface from '../utils/EditingInterface'; import LayerUtils from '../utils/LayerUtils'; import LocaleUtils from '../utils/LocaleUtils'; import MapUtils from '../utils/MapUtils'; +import ResizeableWindow from '../components/ResizeableWindow'; +import TaskBar from '../components/TaskBar'; +// relative named imports +import {LayerRole} from '../actions/layers'; +import {setCurrentTask} from '../actions/task'; +import {clearEditContext, setEditContext} from '../actions/editing'; +// styles import './style/FeatureForm.css'; diff --git a/plugins/FeatureSearch.jsx b/plugins/FeatureSearch.jsx index 4e8c82222..545dc0c1f 100644 --- a/plugins/FeatureSearch.jsx +++ b/plugins/FeatureSearch.jsx @@ -6,18 +6,22 @@ * LICENSE file in the root directory of this source tree. */ - +// absolute default imports +import PropTypes from 'prop-types'; import React from 'react'; import axios from 'axios'; -import PropTypes from 'prop-types'; +import isEmpty from 'lodash.isempty'; +// absolute named imports import {connect} from 'react-redux'; import {v1 as uuidv1} from 'uuid'; -import isEmpty from 'lodash.isempty'; +// relative default imports +import IdentifyUtils from '../utils/IdentifyUtils'; import IdentifyViewer from '../components/IdentifyViewer'; +import LocaleUtils from '../utils/LocaleUtils'; import SideBar from '../components/SideBar'; import Spinner from '../components/Spinner'; -import IdentifyUtils from '../utils/IdentifyUtils'; -import LocaleUtils from '../utils/LocaleUtils'; +// relative named imports +// styles import "./style/FeatureSearch.css"; diff --git a/plugins/HeightProfile.jsx b/plugins/HeightProfile.jsx index c3bedd0c5..75d64e7a5 100644 --- a/plugins/HeightProfile.jsx +++ b/plugins/HeightProfile.jsx @@ -6,36 +6,40 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; -import axios from 'axios'; +// absolute default imports +import FileSaver from 'file-saver'; import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; import ReactDOM from 'react-dom'; +import axios from 'axios'; import isEmpty from 'lodash.isempty'; +// absolute named imports import {Line} from "react-chartjs-2"; +import {connect} from 'react-redux'; import { - Chart as ChartJS, + BubbleController, CategoryScale, + Chart as ChartJS, + Filler, + LineElement, LinearScale, PointElement, - LineElement, Title, - Tooltip, - Filler, - BubbleController + Tooltip } from 'chart.js'; -import FileSaver from 'file-saver'; -import {addMarker, removeMarker} from '../actions/layers'; -import {changeMeasurementState} from '../actions/measurement'; -import ResizeableWindow from '../components/ResizeableWindow'; -import Spinner from '../components/Spinner'; +// relative default imports import ConfigUtils from '../utils/ConfigUtils'; import LayerUtils from '../utils/LayerUtils'; import LocaleUtils from '../utils/LocaleUtils'; import MeasureUtils from '../utils/MeasureUtils'; import MiscUtils from '../utils/MiscUtils'; +import ResizeableWindow from '../components/ResizeableWindow'; +import Spinner from '../components/Spinner'; import VectorLayerUtils from '../utils/VectorLayerUtils'; - +// relative named imports +import {changeMeasurementState} from '../actions/measurement'; +import {addMarker, removeMarker} from '../actions/layers'; +// styles import './style/HeightProfile.css'; ChartJS.register( diff --git a/plugins/Help.jsx b/plugins/Help.jsx index fbdc42bbd..86e916966 100644 --- a/plugins/Help.jsx +++ b/plugins/Help.jsx @@ -6,12 +6,16 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; import axios from 'axios'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports import SideBar from '../components/SideBar'; - +// relative named imports +// styles /** * Displays a custom help dialog in a sidebar. diff --git a/plugins/HomeButton.jsx b/plugins/HomeButton.jsx index 4682aa3cb..8e6a671c3 100644 --- a/plugins/HomeButton.jsx +++ b/plugins/HomeButton.jsx @@ -6,13 +6,18 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; +import React from 'react'; +// absolute named imports import {connect} from 'react-redux'; -import LocaleUtils from '../utils/LocaleUtils'; -import {zoomToExtent} from '../actions/map'; +// relative default imports import Icon from '../components/Icon'; +import LocaleUtils from '../utils/LocaleUtils'; import ThemeUtils from '../utils/ThemeUtils'; +// relative named imports +import {zoomToExtent} from '../actions/map'; +// styles import './style/Buttons.css'; diff --git a/plugins/Identify.jsx b/plugins/Identify.jsx index d33820c09..c9ca2380d 100644 --- a/plugins/Identify.jsx +++ b/plugins/Identify.jsx @@ -6,22 +6,26 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; import isEmpty from 'lodash.isempty'; -import {LayerRole, addLayerFeatures, addMarker, removeMarker, removeLayer} from '../actions/layers'; -import {setCurrentTask} from '../actions/task'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports +import IdentifyUtils from '../utils/IdentifyUtils'; import IdentifyViewer from '../components/IdentifyViewer'; +import LocaleUtils from '../utils/LocaleUtils'; import MapSelection from '../components/MapSelection'; +import MeasureUtils from '../utils/MeasureUtils'; import NumberInput from '../components/widgets/NumberInput'; import ResizeableWindow from '../components/ResizeableWindow'; import TaskBar from '../components/TaskBar'; -import IdentifyUtils from '../utils/IdentifyUtils'; -import LocaleUtils from '../utils/LocaleUtils'; -import MeasureUtils from '../utils/MeasureUtils'; import VectorLayerUtils from '../utils/VectorLayerUtils'; - +// relative named imports +import {setCurrentTask} from '../actions/task'; +import {LayerRole, addLayerFeatures, addMarker, removeLayer, removeMarker} from '../actions/layers'; +// styles import './style/Identify.css'; diff --git a/plugins/LayerCatalog.jsx b/plugins/LayerCatalog.jsx index b7a8ee355..3d461f2f5 100644 --- a/plugins/LayerCatalog.jsx +++ b/plugins/LayerCatalog.jsx @@ -6,14 +6,19 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; -import {connect} from 'react-redux'; +// absolute default imports import PropTypes from 'prop-types'; +import React from 'react'; import axios from 'axios'; -import {setCurrentTask} from '../actions/task'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports import LayerCatalogWidget from '../components/widgets/LayerCatalogWidget'; -import ResizeableWindow from '../components/ResizeableWindow'; import LocaleUtils from '../utils/LocaleUtils'; +import ResizeableWindow from '../components/ResizeableWindow'; +// relative named imports +import {setCurrentTask} from '../actions/task'; +// styles import './style/LayerCatalog.css'; diff --git a/plugins/LayerTree.jsx b/plugins/LayerTree.jsx index 81efaa71e..324d0591b 100644 --- a/plugins/LayerTree.jsx +++ b/plugins/LayerTree.jsx @@ -6,30 +6,35 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports +import FileSaver from 'file-saver'; import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; +import Sortable from 'react-sortablejs'; import classnames from 'classnames'; import isEmpty from 'lodash.isempty'; -import Sortable from 'react-sortablejs'; -import FileSaver from 'file-saver'; -import {LayerRole, changeLayerProperty, removeLayer, reorderLayer, setSwipe, addLayerSeparator} from '../actions/layers'; -import {setActiveLayerInfo} from '../actions/layerinfo'; -import {setActiveServiceInfo} from '../actions/serviceinfo'; -import {toggleMapTips, zoomToExtent} from '../actions/map'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports +import ConfigUtils from '../utils/ConfigUtils'; import Icon from '../components/Icon'; import ImportLayer from '../components/ImportLayer'; import LayerInfoWindow from '../components/LayerInfoWindow'; -import ServiceInfoWindow from '../components/ServiceInfoWindow'; -import SideBar from '../components/SideBar'; -import Spinner from '../components/Spinner'; -import {Image} from '../components/widgets/Primitives'; -import ConfigUtils from '../utils/ConfigUtils'; import LayerUtils from '../utils/LayerUtils'; import LocaleUtils from '../utils/LocaleUtils'; import MapUtils from '../utils/MapUtils'; import MiscUtils from '../utils/MiscUtils'; +import ServiceInfoWindow from '../components/ServiceInfoWindow'; +import SideBar from '../components/SideBar'; +import Spinner from '../components/Spinner'; import VectorLayerUtils from '../utils/VectorLayerUtils'; +// relative named imports +import {Image} from '../components/widgets/Primitives'; +import {setActiveLayerInfo} from '../actions/layerinfo'; +import {setActiveServiceInfo} from '../actions/serviceinfo'; +import {LayerRole, addLayerSeparator, changeLayerProperty, removeLayer, reorderLayer, setSwipe} from '../actions/layers'; +import {toggleMapTips, zoomToExtent} from '../actions/map'; +// styles import './style/LayerTree.css'; diff --git a/plugins/LocateButton.jsx b/plugins/LocateButton.jsx index 73ddd476a..3da3c716c 100644 --- a/plugins/LocateButton.jsx +++ b/plugins/LocateButton.jsx @@ -7,15 +7,20 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; import classnames from 'classnames'; -import LocaleUtils from '../utils/LocaleUtils'; -import {changeLocateState} from '../actions/locate'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports import Icon from '../components/Icon'; +import LocaleUtils from '../utils/LocaleUtils'; import Spinner from '../components/Spinner'; import ThemeUtils from '../utils/ThemeUtils'; +// relative named imports +import {changeLocateState} from '../actions/locate'; +// styles import './style/Buttons.css'; diff --git a/plugins/LoginUser.jsx b/plugins/LoginUser.jsx index 81ed7a841..a9d56d333 100644 --- a/plugins/LoginUser.jsx +++ b/plugins/LoginUser.jsx @@ -6,11 +6,16 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; +import React from 'react'; +// absolute named imports import {connect} from 'react-redux'; -import Icon from '../components/Icon'; +// relative default imports import ConfigUtils from '../utils/ConfigUtils'; +import Icon from '../components/Icon'; +// relative named imports +// styles import './style/LoginUser.css'; diff --git a/plugins/Map.jsx b/plugins/Map.jsx index f86839584..4ff13ffce 100644 --- a/plugins/Map.jsx +++ b/plugins/Map.jsx @@ -7,17 +7,21 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; import isEmpty from 'lodash.isempty'; -import {LayerRole} from '../actions/layers'; -import OlMap from '../components/map/OlMap'; -import OlLayer from '../components/map/OlLayer'; -import Spinner from '../components/Spinner'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports import LayerUtils from '../utils/LayerUtils'; import LocaleUtils from '../utils/LocaleUtils'; - +import OlLayer from '../components/map/OlLayer'; +import OlMap from '../components/map/OlMap'; +import Spinner from '../components/Spinner'; +// relative named imports +import {LayerRole} from '../actions/layers'; +// styles import './style/Map.css'; diff --git a/plugins/MapCompare.jsx b/plugins/MapCompare.jsx index df616cc90..ae3e3cb3d 100644 --- a/plugins/MapCompare.jsx +++ b/plugins/MapCompare.jsx @@ -6,12 +6,16 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; +import React from 'react'; +// absolute named imports import {connect} from 'react-redux'; import {setSwipe} from '../actions/layers'; +// relative default imports import Icon from '../components/Icon'; - +// relative named imports +// styles import './style/MapCompare.css'; /** diff --git a/plugins/MapCopyright.jsx b/plugins/MapCopyright.jsx index 9f98522a9..f7da0e733 100644 --- a/plugins/MapCopyright.jsx +++ b/plugins/MapCopyright.jsx @@ -6,12 +6,17 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; import isEmpty from 'lodash.isempty'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports import LayerUtils from '../utils/LayerUtils'; import LocaleUtils from '../utils/LocaleUtils'; +// relative named imports +// styles import './style/MapCopyright.css'; diff --git a/plugins/MapExport.jsx b/plugins/MapExport.jsx index 05c555c06..746d377d8 100644 --- a/plugins/MapExport.jsx +++ b/plugins/MapExport.jsx @@ -6,27 +6,32 @@ * LICENSE file in the root directory of this source tree. */ -import axios from 'axios'; -import React from 'react'; -import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +// absolute default imports import FileSaver from 'file-saver'; -import isEmpty from 'lodash.isempty'; +import PropTypes from 'prop-types'; +import React from 'react'; +import axios from 'axios'; import formDataEntries from 'formdata-json'; -import {LayerRole} from '../actions/layers'; -import {setCurrentTask} from '../actions/task'; -import Icon from '../components/Icon'; -import InputContainer from '../components/InputContainer'; -import PrintFrame from '../components/PrintFrame'; -import SideBar from '../components/SideBar'; -import Spinner from '../components/Spinner'; +import isEmpty from 'lodash.isempty'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports import ConfigUtils from '../utils/ConfigUtils'; import CoordinatesUtils from '../utils/CoordinatesUtils'; +import Icon from '../components/Icon'; +import InputContainer from '../components/InputContainer'; import LayerUtils from '../utils/LayerUtils'; import LocaleUtils from '../utils/LocaleUtils'; import MapUtils from '../utils/MapUtils'; import MiscUtils from '../utils/MiscUtils'; +import PrintFrame from '../components/PrintFrame'; +import SideBar from '../components/SideBar'; +import Spinner from '../components/Spinner'; import VectorLayerUtils from '../utils/VectorLayerUtils'; +// relative named imports +import {LayerRole} from '../actions/layers'; +import {setCurrentTask} from '../actions/task'; +// styles import './style/MapExport.css'; diff --git a/plugins/MapFilter.jsx b/plugins/MapFilter.jsx index 73969797f..ae9e10ee6 100644 --- a/plugins/MapFilter.jsx +++ b/plugins/MapFilter.jsx @@ -6,28 +6,33 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; import axios from 'axios'; import classNames from 'classnames'; import isEmpty from 'lodash.isempty'; +// absolute named imports +import {connect} from 'react-redux'; import {v1 as uuidv1} from 'uuid'; -import {setPermalinkParameters} from '../actions/localConfig'; -import {LayerRole, setFilter} from '../actions/layers'; -import {setCurrentTask} from '../actions/task'; +// relative default imports import ButtonBar from '../components/widgets/ButtonBar'; import ComboBox from '../components/widgets/ComboBox'; +import ConfigUtils from '../utils/ConfigUtils'; import DateTimeInput from '../components/widgets/DateTimeInput'; import Icon from '../components/Icon'; +import LayerUtils from '../utils/LayerUtils'; +import LocaleUtils from '../utils/LocaleUtils'; import MapSelection from '../components/MapSelection'; import PickFeature from '../components/PickFeature'; import SideBar from '../components/SideBar'; import TextInput from '../components/widgets/TextInput'; import ToggleSwitch from '../components/widgets/ToggleSwitch'; -import ConfigUtils from '../utils/ConfigUtils'; -import LayerUtils from '../utils/LayerUtils'; -import LocaleUtils from '../utils/LocaleUtils'; +// relative named imports +import {setCurrentTask} from '../actions/task'; +import {setPermalinkParameters} from '../actions/localConfig'; +import {LayerRole, setFilter} from '../actions/layers'; +// styles import './style/MapFilter.css'; diff --git a/plugins/MapInfoTooltip.jsx b/plugins/MapInfoTooltip.jsx index cda3b3b73..fce01eed9 100644 --- a/plugins/MapInfoTooltip.jsx +++ b/plugins/MapInfoTooltip.jsx @@ -6,19 +6,24 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; +import React from 'react'; +import axios from 'axios'; +// absolute named imports import {connect} from 'react-redux'; import {createSelector} from 'reselect'; -import axios from 'axios'; -import {setCurrentTask} from '../actions/task'; +// relative default imports import ConfigUtils from '../utils/ConfigUtils'; import CoordinatesUtils from '../utils/CoordinatesUtils'; -import LocaleUtils from '../utils/LocaleUtils'; -import MapUtils from '../utils/MapUtils'; import CopyButton from '../components/widgets/CopyButton'; import Icon from '../components/Icon'; +import LocaleUtils from '../utils/LocaleUtils'; +import MapUtils from '../utils/MapUtils'; import displayCrsSelector from '../selectors/displaycrs'; +// relative named imports +import {setCurrentTask} from '../actions/task'; +// styles import './style/MapInfoTooltip.css'; diff --git a/plugins/MapLegend.jsx b/plugins/MapLegend.jsx index 8bf3c360e..5a5f74a0d 100644 --- a/plugins/MapLegend.jsx +++ b/plugins/MapLegend.jsx @@ -6,17 +6,22 @@ * LICENSE file in the root directory of this source tree. */ +// absolute default imports +import PropTypes from 'prop-types'; import React from 'react'; +import isEmpty from 'lodash.isempty'; +// absolute named imports import {connect} from 'react-redux'; -import PropTypes from 'prop-types'; -import {setCurrentTask} from '../actions/task'; -import ResizeableWindow from '../components/ResizeableWindow'; -import {Image} from '../components/widgets/Primitives'; +// relative default imports import LayerUtils from '../utils/LayerUtils'; import LocaleUtils from '../utils/LocaleUtils'; import MapUtils from '../utils/MapUtils'; +import ResizeableWindow from '../components/ResizeableWindow'; +// relative named imports +import {Image} from '../components/widgets/Primitives'; +import {setCurrentTask} from '../actions/task'; +// styles import './style/MapLegend.css'; -import isEmpty from 'lodash.isempty'; /** * Displays the map legend in a floating dialog. diff --git a/plugins/MapTip.jsx b/plugins/MapTip.jsx index 80550b95b..c9ce8669b 100644 --- a/plugins/MapTip.jsx +++ b/plugins/MapTip.jsx @@ -6,16 +6,21 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; import isEmpty from 'lodash.isempty'; +// absolute named imports +import {connect} from 'react-redux'; import {v1 as uuidv1} from 'uuid'; import htmlReactParser, {domToReact} from 'html-react-parser'; -import {openExternalUrl} from '../actions/task'; +// relative default imports import ConfigUtils from '../utils/ConfigUtils'; import IdentifyUtils from '../utils/IdentifyUtils'; +// relative named imports +import {openExternalUrl} from '../actions/task'; import {LayerRole, addLayerFeatures, removeLayer} from '../actions/layers'; +// styles import './style/MapTip.css'; /** diff --git a/plugins/Measure.jsx b/plugins/Measure.jsx index 92d9f6997..6866f4256 100644 --- a/plugins/Measure.jsx +++ b/plugins/Measure.jsx @@ -6,18 +6,23 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; +import React from 'react'; +// absolute named imports import {connect} from 'react-redux'; import {createSelector} from 'reselect'; +// relative default imports +import ButtonBar from '../components/widgets/ButtonBar'; +import CopyButton from '../components/widgets/CopyButton'; import LocaleUtils from '../utils/LocaleUtils'; import MeasureUtils from '../utils/MeasureUtils'; -import {setSnappingConfig} from '../actions/map.js'; -import {changeMeasurementState} from '../actions/measurement.js'; -import displayCrsSelector from '../selectors/displaycrs'; import TaskBar from '../components/TaskBar'; -import ButtonBar from '../components/widgets/ButtonBar'; -import CopyButton from '../components/widgets/CopyButton'; +import displayCrsSelector from '../selectors/displaycrs'; +// relative named imports +import {changeMeasurementState} from '../actions/measurement.js'; +import {setSnappingConfig} from '../actions/map.js'; +// styles import './style/Measure.css'; diff --git a/plugins/NewsPopup.jsx b/plugins/NewsPopup.jsx index c1e4a7735..0e0db0a47 100644 --- a/plugins/NewsPopup.jsx +++ b/plugins/NewsPopup.jsx @@ -6,10 +6,15 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; +import React from 'react'; +// absolute named imports +// relative default imports import Icon from '../components/Icon'; import LocaleUtils from '../utils/LocaleUtils'; +// relative named imports +// styles import './style/NewsPopup.css'; diff --git a/plugins/Portal.jsx b/plugins/Portal.jsx index c3dc84161..9653788cb 100644 --- a/plugins/Portal.jsx +++ b/plugins/Portal.jsx @@ -6,17 +6,22 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; +import React from 'react'; +// absolute named imports import {connect} from 'react-redux'; -import {setCurrentTask, openExternalUrl} from '../actions/task'; +// relative default imports import AppMenu from '../components/AppMenu'; -import Icon from '../components/Icon'; -import ThemeList from '../components/ThemeList'; import ConfigUtils from '../utils/ConfigUtils'; +import Icon from '../components/Icon'; import LocaleUtils from '../utils/LocaleUtils'; -import {UrlParams} from '../utils/PermaLinkUtils'; +import ThemeList from '../components/ThemeList'; import ThemeUtils from '../utils/ThemeUtils'; +// relative named imports +import {UrlParams} from '../utils/PermaLinkUtils'; +import {openExternalUrl, setCurrentTask} from '../actions/task'; +// styles import './style/Portal.css'; diff --git a/plugins/Print.jsx b/plugins/Print.jsx index bf278db66..d16327e9c 100644 --- a/plugins/Print.jsx +++ b/plugins/Print.jsx @@ -6,29 +6,34 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports +import FileSaver from 'file-saver'; import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; import axios from 'axios'; -import isEmpty from 'lodash.isempty'; -import FileSaver from 'file-saver'; import formDataEntries from 'formdata-json'; -import {LayerRole, addLayerFeatures, clearLayer} from '../actions/layers'; -import {changeRotation, panTo} from '../actions/map'; +import isEmpty from 'lodash.isempty'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports +import CoordinatesUtils from '../utils/CoordinatesUtils'; import Icon from '../components/Icon'; import InputContainer from '../components/InputContainer'; +import LayerUtils from '../utils/LayerUtils'; +import LocaleUtils from '../utils/LocaleUtils'; +import MapUtils from '../utils/MapUtils'; +import MiscUtils from '../utils/MiscUtils'; import PickFeature from '../components/PickFeature'; import PrintFrame from '../components/PrintFrame'; import ResizeableWindow from '../components/ResizeableWindow'; import SideBar from '../components/SideBar'; import Spinner from '../components/Spinner'; import ToggleSwitch from '../components/widgets/ToggleSwitch'; -import CoordinatesUtils from '../utils/CoordinatesUtils'; -import LayerUtils from '../utils/LayerUtils'; -import LocaleUtils from '../utils/LocaleUtils'; -import MapUtils from '../utils/MapUtils'; -import MiscUtils from '../utils/MiscUtils'; import VectorLayerUtils from '../utils/VectorLayerUtils'; +// relative named imports +import {LayerRole, addLayerFeatures, clearLayer} from '../actions/layers'; +import {changeRotation, panTo} from '../actions/map'; +// styles import './style/Print.css'; diff --git a/plugins/ProcessNotifications.jsx b/plugins/ProcessNotifications.jsx index c956fa685..bc1a037b8 100644 --- a/plugins/ProcessNotifications.jsx +++ b/plugins/ProcessNotifications.jsx @@ -6,13 +6,18 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; import classnames from 'classnames'; -import {clearProcess, ProcessStatus} from '../actions/processNotifications'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports import Icon from '../components/Icon'; import Spinner from '../components/Spinner'; +// relative named imports +import {ProcessStatus, clearProcess} from '../actions/processNotifications'; +// styles import './style/ProcessNotifications.css'; /** diff --git a/plugins/RasterExport.jsx b/plugins/RasterExport.jsx index a411fe15e..290a7648d 100644 --- a/plugins/RasterExport.jsx +++ b/plugins/RasterExport.jsx @@ -6,27 +6,32 @@ * LICENSE file in the root directory of this source tree. */ -import axios from 'axios'; -import React from 'react'; -import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +// absolute default imports import FileSaver from 'file-saver'; -import isEmpty from 'lodash.isempty'; +import PropTypes from 'prop-types'; +import React from 'react'; +import axios from 'axios'; import formDataEntries from 'formdata-json'; -import {LayerRole} from '../actions/layers'; -import {setCurrentTask} from '../actions/task'; -import Icon from '../components/Icon'; -import InputContainer from '../components/InputContainer'; -import PrintFrame from '../components/PrintFrame'; -import SideBar from '../components/SideBar'; -import Spinner from '../components/Spinner'; +import isEmpty from 'lodash.isempty'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports import ConfigUtils from '../utils/ConfigUtils'; import CoordinatesUtils from '../utils/CoordinatesUtils'; +import Icon from '../components/Icon'; +import InputContainer from '../components/InputContainer'; import LayerUtils from '../utils/LayerUtils'; import LocaleUtils from '../utils/LocaleUtils'; import MapUtils from '../utils/MapUtils'; import MiscUtils from '../utils/MiscUtils'; +import PrintFrame from '../components/PrintFrame'; +import SideBar from '../components/SideBar'; +import Spinner from '../components/Spinner'; import VectorLayerUtils from '../utils/VectorLayerUtils'; +// relative named imports +import {LayerRole} from '../actions/layers'; +import {setCurrentTask} from '../actions/task'; +// styles import './style/RasterExport.css'; diff --git a/plugins/Redlining.jsx b/plugins/Redlining.jsx index eb62503cf..484de91f5 100644 --- a/plugins/Redlining.jsx +++ b/plugins/Redlining.jsx @@ -6,27 +6,32 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; -import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; -import NumericInput from 'react-numeric-input2'; -import Mousetrap from 'mousetrap'; +// absolute default imports import FileSaver from 'file-saver'; +import Mousetrap from 'mousetrap'; +import NumericInput from 'react-numeric-input2'; +import PropTypes from 'prop-types'; +import React from 'react'; import ol from 'openlayers'; -import {changeRedliningState} from '../actions/redlining'; -import {LayerRole, addLayer} from '../actions/layers'; -import {setSnappingConfig} from '../actions/map'; -import Icon from '../components/Icon'; -import TaskBar from '../components/TaskBar'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports import ButtonBar from '../components/widgets/ButtonBar'; import ColorButton from '../components/widgets/ColorButton'; import ComboBox from '../components/widgets/ComboBox'; -import MenuButton from '../components/widgets/MenuButton'; -import VectorLayerPicker from '../components/widgets/VectorLayerPicker'; +import Icon from '../components/Icon'; import LocaleUtils from '../utils/LocaleUtils'; import MapUtils from '../utils/MapUtils'; -import {END_MARKERS} from '../utils/FeatureStyles'; +import MenuButton from '../components/widgets/MenuButton'; +import TaskBar from '../components/TaskBar'; +import VectorLayerPicker from '../components/widgets/VectorLayerPicker'; import VectorLayerUtils from '../utils/VectorLayerUtils'; +// relative named imports +import {END_MARKERS} from '../utils/FeatureStyles'; +import {changeRedliningState} from '../actions/redlining'; +import {setSnappingConfig} from '../actions/map'; +import {LayerRole, addLayer} from '../actions/layers'; +// styles import './style/Redlining.css'; diff --git a/plugins/Routing.jsx b/plugins/Routing.jsx index 7840fc727..2e44c7edb 100644 --- a/plugins/Routing.jsx +++ b/plugins/Routing.jsx @@ -6,33 +6,38 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; -import {connect} from 'react-redux'; -import PropTypes from 'prop-types'; -import {createSelector} from 'reselect'; +// absolute default imports import FileSaver from 'file-saver'; import NumericInput from 'react-numeric-input2'; +import PropTypes from 'prop-types'; +import React from 'react'; import Sortable from 'react-sortablejs'; -import {LayerRole, addLayerFeatures, removeLayer} from '../actions/layers'; -import {zoomToExtent} from '../actions/map'; -import {setCurrentTask} from '../actions/task'; -import Icon from '../components/Icon'; -import InputContainer from '../components/InputContainer'; +// absolute named imports +import {connect} from 'react-redux'; +import {createSelector} from 'reselect'; +// relative default imports import ButtonBar from '../components/widgets/ButtonBar'; +import ConfigUtils from '../utils/ConfigUtils'; +import CoordinatesUtils from '../utils/CoordinatesUtils'; import DateTimeInput from '../components/widgets/DateTimeInput'; +import Icon from '../components/Icon'; +import InputContainer from '../components/InputContainer'; +import LocaleUtils from '../utils/LocaleUtils'; +import MeasureUtils from '../utils/MeasureUtils'; +import ResizeableWindow from '../components/ResizeableWindow'; +import RoutingInterface from '../utils/RoutingInterface'; import SearchWidget from '../components/widgets/SearchWidget'; import Spinner from '../components/Spinner'; -import ResizeableWindow from '../components/ResizeableWindow'; import ToggleSwitch from '../components/widgets/ToggleSwitch'; import VectorLayerPicker from '../components/widgets/VectorLayerPicker'; +import VectorLayerUtils from '../utils/VectorLayerUtils'; import displayCrsSelector from '../selectors/displaycrs'; -import ConfigUtils from '../utils/ConfigUtils'; -import CoordinatesUtils from '../utils/CoordinatesUtils'; -import LocaleUtils from '../utils/LocaleUtils'; -import MeasureUtils from '../utils/MeasureUtils'; -import RoutingInterface from '../utils/RoutingInterface'; +// relative named imports +import {setCurrentTask} from '../actions/task'; +import {zoomToExtent} from '../actions/map'; +import {LayerRole, addLayerFeatures, removeLayer} from '../actions/layers'; +// styles import './style/Routing.css'; -import VectorLayerUtils from '../utils/VectorLayerUtils'; /** diff --git a/plugins/ScratchDrawing.jsx b/plugins/ScratchDrawing.jsx index 342f8d89d..470ccf9ca 100644 --- a/plugins/ScratchDrawing.jsx +++ b/plugins/ScratchDrawing.jsx @@ -6,18 +6,22 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports +import Mousetrap from 'mousetrap'; import PropTypes from 'prop-types'; +import React from 'react'; +// absolute named imports import {connect} from 'react-redux'; -import Mousetrap from 'mousetrap'; import {v1 as uuidv1} from 'uuid'; +// relative default imports +import LocaleUtils from '../utils/LocaleUtils'; +import TaskBar from '../components/TaskBar'; +// relative named imports import {changeRedliningState} from '../actions/redlining'; -import {LayerRole, addLayerFeatures, removeLayer, clearLayer} from '../actions/layers'; -import {setSnappingConfig} from '../actions/map'; import {setCurrentTask} from '../actions/task'; -import TaskBar from '../components/TaskBar'; -import LocaleUtils from '../utils/LocaleUtils'; - +import {setSnappingConfig} from '../actions/map'; +import {LayerRole, addLayerFeatures, clearLayer, removeLayer} from '../actions/layers'; +// styles import './style/Redlining.css'; import './style/ScratchDrawing.css'; diff --git a/plugins/Settings.jsx b/plugins/Settings.jsx index 4d1395912..e01f44835 100644 --- a/plugins/Settings.jsx +++ b/plugins/Settings.jsx @@ -6,18 +6,23 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; -import {connect} from 'react-redux'; +// absolute default imports import PropTypes from 'prop-types'; +import React from 'react'; import axios from 'axios'; import isEmpty from 'lodash.isempty'; import url from 'url'; -import {setColorScheme, setUserInfoFields} from '../actions/localConfig'; -import SideBar from '../components/SideBar'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports import ConfigUtils from '../utils/ConfigUtils'; -import {getUserBookmarks} from '../utils/PermaLinkUtils'; import LocaleUtils from '../utils/LocaleUtils'; +import SideBar from '../components/SideBar'; import ThemeUtils from '../utils/ThemeUtils'; +// relative named imports +import {getUserBookmarks} from '../utils/PermaLinkUtils'; +import {setColorScheme, setUserInfoFields} from '../actions/localConfig'; +// styles import './style/Settings.css'; diff --git a/plugins/Share.jsx b/plugins/Share.jsx index 27f89aa0c..1da9f6cd4 100644 --- a/plugins/Share.jsx +++ b/plugins/Share.jsx @@ -6,19 +6,24 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; -import {connect} from 'react-redux'; +// absolute default imports import PropTypes from 'prop-types'; +import React from 'react'; import url from 'url'; -import {addMarker, removeMarker} from '../actions/layers'; -import ShareSocials from '../components/share/ShareSocials'; -import ShareQRCode from '../components/share/ShareQRCode'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports +import CoordinatesUtils from '../utils/CoordinatesUtils'; +import LocaleUtils from '../utils/LocaleUtils'; import ShareLink from '../components/share/ShareLink'; +import ShareQRCode from '../components/share/ShareQRCode'; +import ShareSocials from '../components/share/ShareSocials'; import SideBar from '../components/SideBar'; import ToggleSwitch from '../components/widgets/ToggleSwitch'; -import LocaleUtils from '../utils/LocaleUtils'; -import CoordinatesUtils from '../utils/CoordinatesUtils'; +// relative named imports import {generatePermaLink} from '../utils/PermaLinkUtils'; +import {addMarker, removeMarker} from '../actions/layers'; +// styles import './style/Share.css'; diff --git a/plugins/StartupMarker.jsx b/plugins/StartupMarker.jsx index e145dc1d7..18f40fbb4 100644 --- a/plugins/StartupMarker.jsx +++ b/plugins/StartupMarker.jsx @@ -6,11 +6,16 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; +import React from 'react'; +// absolute named imports import {connect} from 'react-redux'; -import {addMarker, removeMarker} from '../actions/layers'; +// relative default imports +// relative named imports import {UrlParams} from '../utils/PermaLinkUtils'; +import {addMarker, removeMarker} from '../actions/layers'; +// styles /** diff --git a/plugins/TaskButton.jsx b/plugins/TaskButton.jsx index 8c38d6cec..c2dea0bec 100644 --- a/plugins/TaskButton.jsx +++ b/plugins/TaskButton.jsx @@ -6,15 +6,20 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; import classnames from 'classnames'; -import {setCurrentTask} from '../actions/task'; -import Icon from '../components/Icon'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports import ConfigUtils from '../utils/ConfigUtils'; +import Icon from '../components/Icon'; import LocaleUtils from "../utils/LocaleUtils"; import ThemeUtils from '../utils/ThemeUtils'; +// relative named imports +import {setCurrentTask} from '../actions/task'; +// styles import './style/BackgroundSwitcher.css'; /** diff --git a/plugins/ThemeSwitcher.jsx b/plugins/ThemeSwitcher.jsx index 74fe6da0b..1f18f8b09 100644 --- a/plugins/ThemeSwitcher.jsx +++ b/plugins/ThemeSwitcher.jsx @@ -6,16 +6,21 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; +import React from 'react'; +// absolute named imports import {connect} from 'react-redux'; +// relative default imports +import ConfigUtils from '../utils/ConfigUtils'; import Icon from '../components/Icon'; import InputContainer from '../components/InputContainer'; -import SideBar from '../components/SideBar'; -import ThemeList from '../components/ThemeList'; -import ConfigUtils from '../utils/ConfigUtils'; import LocaleUtils from '../utils/LocaleUtils'; +import SideBar from '../components/SideBar'; import ThemeLayersListWindow from '../components/ThemeLayersListWindow'; +import ThemeList from '../components/ThemeList'; +// relative named imports +// styles import './style/ThemeSwitcher.css'; diff --git a/plugins/TimeManager.jsx b/plugins/TimeManager.jsx index 5dbc10b36..27acdf365 100644 --- a/plugins/TimeManager.jsx +++ b/plugins/TimeManager.jsx @@ -6,35 +6,38 @@ * LICENSE file in the root directory of this source tree. */ - -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; -import {createSelector} from 'reselect'; +import React from 'react'; import dayjs from 'dayjs'; +import isEmpty from 'lodash.isempty'; +import isEqual from 'lodash.isequal'; +import ol from 'openlayers'; import utc from 'dayjs/plugin/utc'; +// absolute named imports +import {connect} from 'react-redux'; +import {createSelector} from 'reselect'; import {v1 as uuidv1} from 'uuid'; -import ol from 'openlayers'; -import isEqual from 'lodash.isequal'; -import isEmpty from 'lodash.isempty'; import dateParser, { Format } from 'any-date-parser'; -import {setLayerDimensions, addLayerFeatures, refreshLayer, removeLayer, LayerRole} from '../actions/layers'; -import {setCurrentTask, setCurrentTaskBlocked} from '../actions/task'; -import Icon from '../components/Icon'; -import TimelineFeaturesSlider from '../components/timeline/TimelineFeaturesSlider'; -import FixedTimeline from '../components/timeline/FixedTimeline'; -import InfiniteTimeline from '../components/timeline/InfiniteTimeline'; +// relative default imports import ButtonBar from '../components/widgets/ButtonBar'; -import NumberInput from '../components/widgets/NumberInput'; -import ToggleSwitch from '../components/widgets/ToggleSwitch'; -import ResizeableWindow from '../components/ResizeableWindow'; +import FixedTimeline from '../components/timeline/FixedTimeline'; +import Icon from '../components/Icon'; import IdentifyUtils from '../utils/IdentifyUtils'; +import InfiniteTimeline from '../components/timeline/InfiniteTimeline'; import LayerUtils from '../utils/LayerUtils'; import LocaleUtils from '../utils/LocaleUtils'; +import NumberInput from '../components/widgets/NumberInput'; +import ResizeableWindow from '../components/ResizeableWindow'; +import TimelineFeaturesSlider from '../components/timeline/TimelineFeaturesSlider'; +import ToggleSwitch from '../components/widgets/ToggleSwitch'; import VectorLayerUtils from '../utils/VectorLayerUtils'; -import './style/TimeManager.css'; - import markerIcon from '../utils/img/marker-icon.png'; +// relative named imports +import {LayerRole, addLayerFeatures, refreshLayer, removeLayer, setLayerDimensions} from '../actions/layers'; +import {setCurrentTask, setCurrentTaskBlocked} from '../actions/task'; +// styles +import './style/TimeManager.css'; dayjs.extend(utc); diff --git a/plugins/TopBar.jsx b/plugins/TopBar.jsx index 9f169357e..4ada58c13 100644 --- a/plugins/TopBar.jsx +++ b/plugins/TopBar.jsx @@ -6,18 +6,23 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; +import React from 'react'; import classnames from 'classnames'; +// absolute named imports import {connect} from 'react-redux'; -import {toggleFullscreen} from '../actions/display'; -import {setTopbarHeight} from '../actions/map'; -import {openExternalUrl} from '../actions/task'; -import {restoreDefaultTheme} from '../actions/theme'; -import Icon from '../components/Icon'; -import {Swipeable} from '../components/Swipeable'; +// relative default imports import ConfigUtils from '../utils/ConfigUtils'; +import Icon from '../components/Icon'; import LocaleUtils from '../utils/LocaleUtils'; +// relative named imports +import {Swipeable} from '../components/Swipeable'; +import {openExternalUrl} from '../actions/task'; +import {restoreDefaultTheme} from '../actions/theme'; +import {setTopbarHeight} from '../actions/map'; +import {toggleFullscreen} from '../actions/display'; +// styles import './style/TopBar.css'; diff --git a/plugins/ZoomButtons.jsx b/plugins/ZoomButtons.jsx index 4b7351e7f..e61dbe17d 100644 --- a/plugins/ZoomButtons.jsx +++ b/plugins/ZoomButtons.jsx @@ -6,13 +6,18 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; +import React from 'react'; +// absolute named imports import {connect} from 'react-redux'; -import LocaleUtils from '../utils/LocaleUtils'; -import {changeZoomLevel} from '../actions/map'; +// relative default imports import Icon from '../components/Icon'; +import LocaleUtils from '../utils/LocaleUtils'; import ThemeUtils from '../utils/ThemeUtils'; +// relative named imports +import {changeZoomLevel} from '../actions/map'; +// styles import './style/Buttons.css'; /** diff --git a/plugins/map/EditingSupport.jsx b/plugins/map/EditingSupport.jsx index 2acefe9ee..bee57d9da 100644 --- a/plugins/map/EditingSupport.jsx +++ b/plugins/map/EditingSupport.jsx @@ -6,12 +6,17 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; import ol from 'openlayers'; -import {setEditContext} from '../../actions/editing'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports import FeatureStyles from "../../utils/FeatureStyles"; +// relative named imports +import {setEditContext} from '../../actions/editing'; +// styles class EditingSupport extends React.Component { static propTypes = { diff --git a/plugins/map/LocateSupport.jsx b/plugins/map/LocateSupport.jsx index 96d6f98bd..39558d280 100644 --- a/plugins/map/LocateSupport.jsx +++ b/plugins/map/LocateSupport.jsx @@ -8,11 +8,17 @@ * */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; +import React from 'react'; +// absolute named imports import {connect} from 'react-redux'; +// relative default imports import OlLocate from '../../components/map/OlLocate'; -import {changeLocateState, changeLocatePosition, onLocateError} from '../../actions/locate'; +// relative named imports +import {changeLocatePosition, changeLocateState, onLocateError} from '../../actions/locate'; +// styles + class LocateSupport extends React.Component { static propTypes = { diff --git a/plugins/map/MeasurementSupport.jsx b/plugins/map/MeasurementSupport.jsx index 79709db4a..a392b9deb 100644 --- a/plugins/map/MeasurementSupport.jsx +++ b/plugins/map/MeasurementSupport.jsx @@ -7,15 +7,20 @@ * LICENSE file in the root directory of this source tree. */ +// absolute default imports +import PropTypes from 'prop-types'; import React from 'react'; +import ol from 'openlayers'; +// absolute named imports import {connect} from 'react-redux'; -import PropTypes from 'prop-types'; import {createSelector} from 'reselect'; -import ol from 'openlayers'; -import {changeMeasurementState} from '../../actions/measurement'; -import displayCrsSelector from '../../selectors/displaycrs'; -import MeasureUtils from '../../utils/MeasureUtils'; +// relative default imports import FeatureStyles from '../../utils/FeatureStyles'; +import MeasureUtils from '../../utils/MeasureUtils'; +import displayCrsSelector from '../../selectors/displaycrs'; +// relative named imports +import {changeMeasurementState} from '../../actions/measurement'; +// styles class MeasurementSupport extends React.Component { diff --git a/plugins/map/OverviewSupport.jsx b/plugins/map/OverviewSupport.jsx index dbe05e346..7a4430d13 100644 --- a/plugins/map/OverviewSupport.jsx +++ b/plugins/map/OverviewSupport.jsx @@ -7,13 +7,17 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; import ol from 'openlayers'; -import {LayerRole} from '../../actions/layers'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports import OlLayer from '../../components/map/OlLayer'; - +// relative named imports +import {LayerRole} from '../../actions/layers'; +// styles import './style/OverviewSupport.css'; class OverviewMap extends React.Component { diff --git a/plugins/map/RedliningPickSupport.jsx b/plugins/map/RedliningPickSupport.jsx index 995d93d1f..cffa2bdd9 100644 --- a/plugins/map/RedliningPickSupport.jsx +++ b/plugins/map/RedliningPickSupport.jsx @@ -6,13 +6,18 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; import isEmpty from 'lodash.isempty'; import ol from 'openlayers'; -import {changeRedliningPickState} from '../../actions/redliningPick'; +// absolute named imports +import {connect} from 'react-redux'; +// relative default imports import FeatureStyles from "../../utils/FeatureStyles"; +// relative named imports +import {changeRedliningPickState} from '../../actions/redliningPick'; +// styles class RedliningPickSupport extends React.Component { static propTypes = { diff --git a/plugins/map/RedliningSupport.jsx b/plugins/map/RedliningSupport.jsx index 4b8977349..61e739631 100644 --- a/plugins/map/RedliningSupport.jsx +++ b/plugins/map/RedliningSupport.jsx @@ -6,22 +6,27 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; +import React from 'react'; +import isEmpty from 'lodash.isempty'; +import ol from 'openlayers'; +import polySelfIntersections from 'geojson-polygon-self-intersections'; +// absolute named imports import {connect} from 'react-redux'; import {createSelector} from 'reselect'; import {v4 as uuidv4} from 'uuid'; -import ol from 'openlayers'; -import polySelfIntersections from 'geojson-polygon-self-intersections'; -import isEmpty from 'lodash.isempty'; -import {changeRedliningState} from '../../actions/redlining'; -import {LayerRole, addLayerFeatures, removeLayerFeatures} from '../../actions/layers'; -import {OlLayerAdded, OlLayerUpdated} from '../../components/map/OlLayer'; -import NumericInputWindow from '../../components/NumericInputWindow'; -import displayCrsSelector from '../../selectors/displaycrs'; +// relative default imports import FeatureStyles from '../../utils/FeatureStyles'; import MapUtils from '../../utils/MapUtils'; import MeasureUtils from '../../utils/MeasureUtils'; +import NumericInputWindow from '../../components/NumericInputWindow'; +import displayCrsSelector from '../../selectors/displaycrs'; +// relative named imports +import {changeRedliningState} from '../../actions/redlining'; +import {LayerRole, addLayerFeatures, removeLayerFeatures} from '../../actions/layers'; +import {OlLayerAdded, OlLayerUpdated} from '../../components/map/OlLayer'; +// styles const GeomTypeConfig = { Text: {drawInteraction: (opts) => new ol.interaction.Draw({...opts, type: "Point"}), editTool: 'Pick', drawNodes: true}, diff --git a/plugins/map/ScaleBarSupport.jsx b/plugins/map/ScaleBarSupport.jsx index 606cd6d48..bc7954176 100644 --- a/plugins/map/ScaleBarSupport.jsx +++ b/plugins/map/ScaleBarSupport.jsx @@ -7,9 +7,14 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; +import React from 'react'; import ol from 'openlayers'; +// absolute named imports +// relative default imports +// relative named imports +// styles export default class ScaleBarSupport extends React.Component { static propTypes = { diff --git a/plugins/map/SnapSupport.jsx b/plugins/map/SnapSupport.jsx index a867ddfb8..1ed617626 100644 --- a/plugins/map/SnapSupport.jsx +++ b/plugins/map/SnapSupport.jsx @@ -6,15 +6,20 @@ * LICENSE file in the root directory of this source tree. */ -import axios from 'axios'; -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; +import axios from 'axios'; import ol from 'openlayers'; +// absolute named imports +import {connect} from 'react-redux'; import {v4 as uuidv4} from 'uuid'; -import {LayerRole} from '../../actions/layers'; -import IdentifyUtils from '../../utils/IdentifyUtils'; +// relative default imports import FeatureStyles from "../../utils/FeatureStyles"; +import IdentifyUtils from '../../utils/IdentifyUtils'; +// relative named imports +import {LayerRole} from '../../actions/layers'; +// styles class SnapSupport extends React.Component { static propTypes = { diff --git a/plugins/map/SnappingSupport.jsx b/plugins/map/SnappingSupport.jsx index 7e6075dd4..3be913a2b 100644 --- a/plugins/map/SnappingSupport.jsx +++ b/plugins/map/SnappingSupport.jsx @@ -6,22 +6,26 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; import isEmpty from 'lodash.isempty'; import ol from 'openlayers'; +// absolute named imports +import {connect} from 'react-redux'; import {v1 as uuidv1} from 'uuid'; -import {LayerRole} from '../../actions/layers'; -import {setSnappingConfig} from '../../actions/map'; +// relative default imports import Icon from '../../components/Icon'; -import Spinner from '../../components/Spinner'; +import IdentifyUtils from '../../utils/IdentifyUtils'; import LocaleUtils from '../../utils/LocaleUtils'; import MapUtils from '../../utils/MapUtils'; -import IdentifyUtils from '../../utils/IdentifyUtils'; -import VectorLayerUtils from '../../utils/VectorLayerUtils'; import SnapInteraction from './SnapInteraction'; - +import Spinner from '../../components/Spinner'; +import VectorLayerUtils from '../../utils/VectorLayerUtils'; +// relative named imports +import {LayerRole} from '../../actions/layers'; +import {setSnappingConfig} from '../../actions/map'; +// styles import './style/SnappingSupport.css'; diff --git a/plugins/redlining/RedliningBufferSupport.jsx b/plugins/redlining/RedliningBufferSupport.jsx index 4add57b64..242f63ff3 100644 --- a/plugins/redlining/RedliningBufferSupport.jsx +++ b/plugins/redlining/RedliningBufferSupport.jsx @@ -6,16 +6,21 @@ * LICENSE file in the root directory of this source tree. */ -import React from 'react'; +// absolute default imports +import NumericInput from 'react-numeric-input2'; import PropTypes from 'prop-types'; -import {connect} from 'react-redux'; +import React from 'react'; import buffer from '@turf/buffer'; +// absolute named imports +import {connect} from 'react-redux'; import {v4 as uuidv4} from 'uuid'; -import NumericInput from 'react-numeric-input2'; -import {LayerRole, addLayer, addLayerFeatures} from '../../actions/layers'; -import VectorLayerPicker from '../../components/widgets/VectorLayerPicker'; +// relative default imports import LocaleUtils from '../../utils/LocaleUtils'; +import VectorLayerPicker from '../../components/widgets/VectorLayerPicker'; import VectorLayerUtils from '../../utils/VectorLayerUtils'; +// relative named imports +import {LayerRole, addLayer, addLayerFeatures} from '../../actions/layers'; +// styles class RedliningBufferSupport extends React.Component {