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": { "freeform": {
"key": "brand", "key": "brand",
"type": "nsi",
"helperArgs": [
"amenity=atm"
],
"placeholder": { "placeholder": {
"en": "Brand name", "en": "Brand name",
"de": "Markenname", "de": "Markenname",

View file

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

View file

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

View file

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

View file

@ -94,7 +94,7 @@ export default class OpeningHoursVisualization extends Toggle {
rangeStart: Date rangeStart: Date
): BaseUIElement { ): BaseUIElement {
const isWeekstable: boolean = oh.isWeekStable() const isWeekstable: boolean = oh.isWeekStable()
let [changeHours, changeHourText] = OH.allChangeMoments(ranges) const [changeHours, changeHourText] = OH.allChangeMoments(ranges)
const today = new Date() const today = new Date()
today.setHours(0, 0, 0, 0) 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() 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({ return Translations.t.general.opening_hours.closed_until.Subs({
date: opensAtDate.toLocaleString(), date: opensAtDate.toLocaleString(),
}) })

View file

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

View file

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