Chore: cleanup no longer used imports and parameters

This commit is contained in:
Pieter Vander Vennet 2025-04-08 04:40:33 +02:00
parent 1170e6e2ad
commit 848c2ba2c8
7 changed files with 7 additions and 30 deletions

View file

@ -154,10 +154,6 @@
},
"freeform": {
"key": "brand",
"type": "nsi",
"helperArgs": [
"amenity=atm"
],
"placeholder": {
"en": "Brand name",
"de": "Markenname",
@ -674,4 +670,4 @@
"enableImproveAccuracy": true,
"enableRelocation": false
}
}
}

View file

@ -110,10 +110,6 @@
},
"freeform": {
"key": "brand",
"type": "nsi",
"helperArgs": [
"amenity=parcel_locker"
],
"placeholder": {
"en": "Brand",
"de": "Marke",
@ -308,4 +304,4 @@
"allowMove": {
"enableImproveAccuracy": true
}
}
}

View file

@ -218,17 +218,13 @@
"ca": "Aquesta és una oficina postal de {brand}"
},
"freeform": {
"type": "nsi",
"key": "brand",
"placeholder": {
"en": "Brand of the post office",
"de": "Marke der Poststelle",
"es": "Marca de la oficina de correos",
"ca": "Marca de l'oficina postal"
},
"helperArgs": [
"amenity=post_office"
]
}
}
},
{

View file

@ -21,7 +21,6 @@
export let tags: UIEventSource<OsmTags>
export let targetKey: string = undefined
export let layer: LayerConfig
export let noBlur: boolean = false
export let feature: Feature
/**

View file

@ -94,7 +94,7 @@ export default class OpeningHoursVisualization extends Toggle {
rangeStart: Date
): BaseUIElement {
const isWeekstable: boolean = oh.isWeekStable()
let [changeHours, changeHourText] = OH.allChangeMoments(ranges)
const [changeHours, changeHourText] = OH.allChangeMoments(ranges)
const today = new Date()
today.setHours(0, 0, 0, 0)
@ -298,10 +298,6 @@ export default class OpeningHoursVisualization extends Toggle {
}
return Translations.t.general.opening_hours.closed_permanently.Clone()
}
const willOpenAt = `${opensAtDate.getDate()}/${opensAtDate.getMonth() + 1} ${OH.hhmm(
opensAtDate.getHours(),
opensAtDate.getMinutes()
)}`
return Translations.t.general.opening_hours.closed_until.Subs({
date: opensAtDate.toLocaleString(),
})

View file

@ -7,8 +7,6 @@
import ShowDataLayer from "../Map/ShowDataLayer"
import StaticFeatureSource from "../../Logic/FeatureSource/Sources/StaticFeatureSource"
import MaplibreMap from "../Map/MaplibreMap.svelte"
import Loading from "../Base/Loading.svelte"
import { Utils } from "../../Utils"
import DelayedComponent from "../Base/DelayedComponent.svelte"
export let state: SpecialVisualizationState

View file

@ -1,8 +1,4 @@
import {
SpecialVisualization,
SpecialVisualizationState,
SpecialVisualizationSvelte,
} from "../SpecialVisualization"
import { SpecialVisualization, SpecialVisualizationState, SpecialVisualizationSvelte } from "../SpecialVisualization"
import Constants from "../../Models/Constants"
import { UIEventSource } from "../../Logic/UIEventSource"
import { Feature } from "geojson"
@ -136,10 +132,10 @@ export class NoteVisualisations {
group: "notes",
needsUrls: [Imgur.apiUrl, ...Imgur.supportingUrls],
constr: (state, tags, args, feature, layer) => {
constr: (state, tags, args, feature) => {
const id = tags.data[args[0] ?? "id"]
tags = state.featureProperties.getStore(id)
return new SvelteUIElement(UploadImage, { state, tags, layer, feature })
return new SvelteUIElement(UploadImage, { state, tags, feature })
},
},
{