chore: automated housekeeping...

This commit is contained in:
Pieter Vander Vennet 2025-03-06 16:21:55 +01:00
parent 8109c13b38
commit 297bb1c498
185 changed files with 2826 additions and 5874 deletions

View file

@ -5,7 +5,10 @@ import { TagUtils } from "../../Logic/Tags/TagUtils"
import { And } from "../../Logic/Tags/And"
import { Utils } from "../../Utils"
import { Tag } from "../../Logic/Tags/Tag"
import { MappingConfigJson, QuestionableTagRenderingConfigJson } from "./Json/QuestionableTagRenderingConfigJson"
import {
MappingConfigJson,
QuestionableTagRenderingConfigJson,
} from "./Json/QuestionableTagRenderingConfigJson"
import Validators, { ValidatorType } from "../../UI/InputElement/Validators"
import { TagRenderingConfigJson } from "./Json/TagRenderingConfigJson"
import { RegexTag } from "../../Logic/Tags/RegexTag"
@ -812,8 +815,14 @@ export default class TagRenderingConfig {
if (and.and.length === 0) {
return undefined
}
console.log(">>> New properties", TagUtils.asProperties(and, currentProperties), this.invalidValues)
if (this.invalidValues?.matchesProperties(TagUtils.asProperties(and, currentProperties))) {
console.log(
">>> New properties",
TagUtils.asProperties(and, currentProperties),
this.invalidValues
)
if (
this.invalidValues?.matchesProperties(TagUtils.asProperties(and, currentProperties))
) {
return undefined
}
return and

View file

@ -225,13 +225,17 @@ export class UserMapFeatureswitchState extends WithUserRelatedState {
this.geolocationControl.handleClick()
})
Hotkeys.RegisterHotkey({ nomod: "H" }, Translations.t.hotkeyDocumentation.homeLocation, () => {
const home = this.userRelatedState.osmConnection.userDetails.data?.home
if (!home) {
console.log("No home location set")
Hotkeys.RegisterHotkey(
{ nomod: "H" },
Translations.t.hotkeyDocumentation.homeLocation,
() => {
const home = this.userRelatedState.osmConnection.userDetails.data?.home
if (!home) {
console.log("No home location set")
}
this.mapProperties.location.set(home)
}
this.mapProperties.location.set(home)
})
)
Hotkeys.RegisterHotkey(
{