chore: refactoring, linting, removing obsolete files

This commit is contained in:
Pieter Vander Vennet 2025-06-18 22:31:50 +02:00
parent b7a4930583
commit 2bc2a6cddf
54 changed files with 125 additions and 457 deletions

View file

@ -4,7 +4,6 @@
import Translations from "../i18n/Translations"
import { Store } from "../../Logic/UIEventSource"
import LayerConfig from "../../Models/ThemeConfig/LayerConfig"
import { GeoOperations } from "../../Logic/GeoOperations"
import type { Feature, LineString } from "geojson"
import { Utils } from "../../Utils"
import { Translation } from "../i18n/Translation"

View file

@ -80,7 +80,7 @@
<button
class="primary"
class:disabled={$selectedLanguages.length === 0}
on:click={(_) => applySelectedLanguages()}
on:click={() => applySelectedLanguages()}
>
<Tr t={Translations.t.general.save} />
</button>

View file

@ -35,14 +35,13 @@ class MultiApplyExecutor {
}
if (p.autoapply) {
const self = this
const relevantValues = p.tagsSource.map((tags) => {
const currentValues = p.keysToApply.map((key) => tags[key])
// By stringifying, we have a very clear ping when they changec
return JSON.stringify(currentValues)
})
relevantValues.addCallbackD((_) => {
self.applyTaggingOnOtherFeatures()
relevantValues.addCallbackD(() => {
this.applyTaggingOnOtherFeatures()
})
}
}

View file

@ -12,12 +12,7 @@
import type { SpecialVisualizationState } from "../../SpecialVisualization"
import LayerConfig from "../../../Models/ThemeConfig/LayerConfig"
import TagRenderingQuestion from "./TagRenderingQuestion.svelte"
import type { UploadableTag } from "../../../Logic/Tags/TagUtils"
import { writable } from "svelte/store"
import Translations from "../../i18n/Translations"
import { twJoin } from "tailwind-merge"
import Tr from "../../Base/Tr.svelte"
import { TrashIcon } from "@rgossiaux/svelte-heroicons/solid"
import type { UploadableTag } from "../../../Logic/Tags/TagTypes"
import Loading from "../../Base/Loading.svelte"
export let config: TagRenderingConfig