Skip to content

Commit

Permalink
formatting and linting after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ltkum committed Jun 27, 2023
1 parent 016ee39 commit 0f85891
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions src/api/layers/LayerTimeConfig.class.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import LayerTimeConfigEntry, {
ALL_YEARS_WMS_TIMESTAMP,
YEAR_TO_DESCRIBE_ALL_OR_CURRENT_DATA
} from "@/api/layers/LayerTimeConfigEntry.class";
YEAR_TO_DESCRIBE_ALL_OR_CURRENT_DATA,
} from '@/api/layers/LayerTimeConfigEntry.class'

/**
* @class
Expand Down
4 changes: 1 addition & 3 deletions src/api/layers/layers.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ const generateClassForLayerConfig = (layerConfig, id, allOtherLayers, lang) => {
const timestamps = []
if (Array.isArray(layerConfig.timestamps) && layerConfig.timestamps.length > 1) {
timestamps.push(
...layerConfig.timestamps.map(
(timestamp) => new LayerTimeConfigEntry(timestamp)
)
...layerConfig.timestamps.map((timestamp) => new LayerTimeConfigEntry(timestamp))
)
}
const timeConfig = new LayerTimeConfig(layerConfig.timeBehaviour, timestamps)
Expand Down
2 changes: 1 addition & 1 deletion src/modules/infobox/components/FeatureElevationProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import getProfile from '@/api/profile/profile.api'
import { generateFilename } from '@/modules/drawing/lib/export-utils'
import FeatureElevationProfileInformation from '@/modules/infobox/components/FeatureElevationProfileInformation.vue'
import FeatureElevationProfilePlot from '@/modules/infobox/components/FeatureElevationProfilePlot.vue'
import { LV95, WGS84 } from "@/utils/coordinateSystems";
import { LV95, WGS84 } from '@/utils/coordinateSystems'
import LoadingBar from '@/utils/LoadingBar.vue'
import log from '@/utils/logging'
import { round } from '@/utils/numberUtils'
Expand Down
5 changes: 4 additions & 1 deletion src/modules/map/components/openlayers/OpenLayersWMSLayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ export default {
}
// if a time entry is defined, and is different from 'all'
// (no need to pass 'all' to our WMS, that's the default timestamp used under the hood)
if (this.wmsLayerConfig.timeConfig.currentYear !== YEAR_TO_DESCRIBE_ALL_OR_CURRENT_DATA) {
if (
this.wmsLayerConfig.timeConfig.currentYear !==
YEAR_TO_DESCRIBE_ALL_OR_CURRENT_DATA
) {
return this.wmsLayerConfig.timeConfig.currentTimestamp
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/modules/menu/MenuModule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default {
if (!this.previewYear) {
this.showTimeSlider = false
}
}
},
},
methods: {
...mapActions(['toggleGeolocation', 'increaseZoom', 'decreaseZoom', 'toggleMenu']),
Expand Down
5 changes: 1 addition & 4 deletions src/modules/menu/components/menu/MenuTray.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
>
<MenuSettings />
</MenuSection>
<MenuShareSection
ref="shareSection"
@open-menu-section="onOpenMenuSection"
/>
<MenuShareSection ref="shareSection" @open-menu-section="onOpenMenuSection" />
<!-- Drawing section is a glorified button, we always keep it closed and listen to click events -->
<div id="drawSectionTooltip" tabindex="0">
<MenuSection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
/>
<button
class="btn btn-outline-secondary"
@click="copyShortLinkInClipboard"
data-cy="menu-share-shortlink-copy-button"
@click="copyShortLinkInClipboard"
>
{{ $t(copiedInClipboard ? copiedText : copyText) }}
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/router/storeSync/storeSync.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const storeSyncConfig = [
(store) => store.state.ui.showIn3d,
false,
Boolean,
false,
false
),
new QueryToStoreOnlyParamConfig(
'catalogNodes',
Expand Down
12 changes: 10 additions & 2 deletions src/utils/__tests__/geodesicManager.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@ describe('Unit tests for Geodesic geometries', () => {
it('2 coordinates crossing the dateline', () => {
/* We are at the equator to easily check the algorithms, as at the
equator one coordinate unit = one meter */
const geodesic = constructGeodLineString([HALFSIZE_WEBMERCATOR - 1500, 0], [-HALFSIZE_WEBMERCATOR + 2000, 0])
const geodesic = constructGeodLineString(
[HALFSIZE_WEBMERCATOR - 1500, 0],
[-HALFSIZE_WEBMERCATOR + 2000, 0]
)
validateResults(geodesic, {
geodesicGeom: [
[
Expand All @@ -181,7 +184,12 @@ describe('Unit tests for Geodesic geometries', () => {
})

// Validate getSubsegments
const subsegments = geodesic.getSubsegments(0, [HALFSIZE_WEBMERCATOR, -0.0001, HALFSIZE_WEBMERCATOR, +0.0001])
const subsegments = geodesic.getSubsegments(0, [
HALFSIZE_WEBMERCATOR,
-0.0001,
HALFSIZE_WEBMERCATOR,
+0.0001,
])
expect(subsegments).to.have.length(1) // [0-1000], [1000-2000], [2000-3000]
checkCoordsEqual(subsegments[0], [
[HALFSIZE_WEBMERCATOR - 500, 0],
Expand Down
9 changes: 1 addition & 8 deletions src/utils/coordinateSystems.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,5 @@ export const MGRS = new CoordinateSystem(
* The format function helps print the coordinate in a human-readable format. It will receive the
* coordinate reprojected in the declared EPSG for the coordinate system.
*/
const allCoordinateSystems = [
LV95,
LV03,
WGS84,
WEBMERCATOR,
UTM,
MGRS,
]
const allCoordinateSystems = [LV95, LV03, WGS84, WEBMERCATOR, UTM, MGRS]
export default allCoordinateSystems
3 changes: 2 additions & 1 deletion src/utils/legacyLayerParamUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ export function getLayersFromLegacyUrlParams(layersConfig, legacyLayersParam) {
}
// checking if a timestamp is defined for this layer
if (layerTimestamps.length > index && layerTimestamps[index]) {
layer.timeConfig.currentTimeEntry = layer.timeConfig.getTimeEntryForTimestamp(layerTimestamps[index])
layer.timeConfig.currentTimeEntry =
layer.timeConfig.getTimeEntryForTimestamp(layerTimestamps[index])
}
layersToBeActivated.push(layer)
}
Expand Down

0 comments on commit 0f85891

Please sign in to comment.