From 51422e6579a38083e4ae246dfdaa0a2e0b17acbf Mon Sep 17 00:00:00 2001 From: Timo Giese Date: Wed, 6 May 2026 12:40:52 +0200 Subject: [PATCH 1/3] chore: prettier formatting cleanup --- .github/dependabot.yml | 4 +-- .github/workflows/ci.yml | 1 - .github/workflows/deploy_plugin.yaml | 2 +- src/map-engine/Spotmap.ts | 8 ++++-- src/map-engine/globals.d.ts | 1 - src/map-engine/popup-templates.ts | 4 +-- .../components/FeedsToolbarGroup.jsx | 4 +-- .../components/ProviderSelector.jsx | 7 ++++- src/spotmap-admin/tabs/EditPointsTab.jsx | 9 +++---- src/spotmap-admin/tabs/FeedsTab.jsx | 4 ++- src/spotmap-admin/tabs/ShortcodeTab.jsx | 9 +++++-- src/spotmap/components/GpxManagerModal.jsx | 27 +++++++------------ src/spotmap/components/MapsToolbarGroup.jsx | 10 ++++++- 13 files changed, 49 insertions(+), 41 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1473d3a..db401bf 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -12,8 +12,8 @@ updates: - version-update:semver-minor - version-update:semver-major # @wordpress/scripts@31.x requires @wordpress/env@^10.0.0; unblock when scripts supports v11 - - dependency-name: "@wordpress/env" - versions: [">=11"] + - dependency-name: '@wordpress/env' + versions: ['>=11'] - package-ecosystem: composer directory: / diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b3e2e4..d0a988c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -145,4 +145,3 @@ jobs: SPOTMAP_TOKEN_LINZ: ${{ secrets.SPOTMAP_TOKEN_LINZ }} SPOTMAP_TOKEN_GEOPORTAIL: ${{ secrets.SPOTMAP_TOKEN_GEOPORTAIL }} SPOTMAP_TOKEN_OSDATAHUB: ${{ secrets.SPOTMAP_TOKEN_OSDATAHUB }} - diff --git a/.github/workflows/deploy_plugin.yaml b/.github/workflows/deploy_plugin.yaml index 2387587..6c933cc 100644 --- a/.github/workflows/deploy_plugin.yaml +++ b/.github/workflows/deploy_plugin.yaml @@ -2,7 +2,7 @@ name: Release & Deploy on: workflow_run: - workflows: ["CI"] + workflows: ['CI'] types: [completed] branches: [main] workflow_dispatch: diff --git a/src/map-engine/Spotmap.ts b/src/map-engine/Spotmap.ts index 75acd39..f8f18d9 100644 --- a/src/map-engine/Spotmap.ts +++ b/src/map-engine/Spotmap.ts @@ -225,7 +225,9 @@ export class Spotmap { // circle-dot markers render above polylines. Avoids theme CSS targeting // .leaflet-marker-pane which can set the SVG to 0×0. this.map.createPane( 'spotmapCirclePane' ); - ( this.map.getPane( 'spotmapCirclePane' ) as HTMLElement ).style.zIndex = '450'; + ( + this.map.getPane( 'spotmapCirclePane' ) as HTMLElement + ).style.zIndex = '450'; const canvasRenderer = L.svg( { pane: 'spotmapCirclePane' } ); this.markerManager = new MarkerManager( this.map, @@ -510,7 +512,9 @@ export class Spotmap { icon, zIndexOffset: Z_INDEX_LAST_POINT, } ) - .bindPopup( MarkerManager.getPopupHtml( lp, this.options.feeds.length ) ) + .bindPopup( + MarkerManager.getPopupHtml( lp, this.options.feeds.length ) + ) .addTo( feed.featureGroup ); } diff --git a/src/map-engine/globals.d.ts b/src/map-engine/globals.d.ts index f7bb76e..1d3c83d 100644 --- a/src/map-engine/globals.d.ts +++ b/src/map-engine/globals.d.ts @@ -44,7 +44,6 @@ declare global { }; polyline_options?: L.PolylineOptions; } - } } diff --git a/src/map-engine/popup-templates.ts b/src/map-engine/popup-templates.ts index 3c7253c..816ee3a 100644 --- a/src/map-engine/popup-templates.ts +++ b/src/map-engine/popup-templates.ts @@ -64,9 +64,9 @@ export function buildView( entry: SpotPoint, feedCount = 1 ): PopupView { if ( entry.type === 'POST' ) { return { imageUrl: entry.image_url, - linkedTitle: entry.url ? ( entry.message ?? 'Post' ) : undefined, + linkedTitle: entry.url ? entry.message ?? 'Post' : undefined, url: entry.url, - plainTitle: entry.url ? undefined : ( entry.message ?? 'Post' ), + plainTitle: entry.url ? undefined : entry.message ?? 'Post', excerpt: entry.excerpt, date: entry.date, }; diff --git a/src/spotmap-admin/components/FeedsToolbarGroup.jsx b/src/spotmap-admin/components/FeedsToolbarGroup.jsx index 3f04c56..ff3a9cd 100644 --- a/src/spotmap-admin/components/FeedsToolbarGroup.jsx +++ b/src/spotmap-admin/components/FeedsToolbarGroup.jsx @@ -72,9 +72,7 @@ export default function FeedsToolbarGroup( { { onStyle && ( - { pageTracks.map( ( track, localIdx ) => { - const globalIdx = - pageStart + localIdx; + const globalIdx = pageStart + localIdx; return ( + ) } + + + { ! advancedRelative && relativeOption } - { /* Specific */ }