From a87e3376e0bc54ca25127826f5c4cb92d8a71499 Mon Sep 17 00:00:00 2001
From: Pieter Vander Vennet
Date: Sun, 16 Jun 2024 16:41:57 +0200
Subject: [PATCH] Chore: formatting, linting
---
Docs/URL_Parameters.md | 14 +-
src/UI/AllThemesGui.svelte | 81 +-
src/UI/Base/FloatOver.svelte | 5 +-
src/UI/ThemeViewGUI.svelte | 973 +++++++--------
src/assets/contributors.json | 2 +-
src/assets/language_native.json | 4 +-
src/assets/language_translations.json | 1632 ++++++++++++++-----------
7 files changed, 1476 insertions(+), 1235 deletions(-)
diff --git a/Docs/URL_Parameters.md b/Docs/URL_Parameters.md
index b1d1e68dc..bad63dbe4 100644
--- a/Docs/URL_Parameters.md
+++ b/Docs/URL_Parameters.md
@@ -299,7 +299,7 @@ This documentation is defined in the source code at [FeatureSwitchState.ts](/src
If true, the location distance indication will not be written to the changeset and other privacy enhancing measures might be taken.
-This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L169)
+This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L168)
The default value is _false_
@@ -310,7 +310,7 @@ This documentation is defined in the source code at [FeatureSwitchState.ts](/src
Point mapcomplete to a different overpass-instance. Example: https://overpass-api.de/api/interpreter
-This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L176)
+This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L174)
The default value is _https://overpass-api.de/api/interpreter,https://overpass.kumi.systems/api/interpreter,https://overpass.openstreetmap.ru/cgi/interpreter_
@@ -321,7 +321,7 @@ This documentation is defined in the source code at [FeatureSwitchState.ts](/src
Set a different timeout (in seconds) for queries in overpass
-This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L187)
+This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L185)
The default value is _30_
@@ -332,7 +332,7 @@ This documentation is defined in the source code at [FeatureSwitchState.ts](/src
point to switch between OSM-api and overpass
-This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L195)
+This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L193)
The default value is _16_
@@ -343,7 +343,7 @@ This documentation is defined in the source code at [FeatureSwitchState.ts](/src
Tilesize when the OSM-API is used to fetch data within a BBOX
-This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L203)
+This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L201)
The default value is _17_
@@ -354,7 +354,7 @@ This documentation is defined in the source code at [FeatureSwitchState.ts](/src
The id of the background layer to start with
-This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L210)
+This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L208)
No default value set
@@ -475,7 +475,7 @@ This documentation is defined in the source code at [FilteredLayer.ts](/src/Mode
The mode the application starts in, e.g. 'map', 'dashboard' or 'statistics'
-This documentation is defined in the source code at [generateDocs.ts](ervdvn/git/MapComplete/scripts/generateDocs.ts#L441)
+This documentation is defined in the source code at [generateDocs.ts](ervdvn/git2/MapComplete/scripts/generateDocs.ts#L439)
The default value is _map_
diff --git a/src/UI/AllThemesGui.svelte b/src/UI/AllThemesGui.svelte
index 2d48c56a0..acf1b9ae6 100644
--- a/src/UI/AllThemesGui.svelte
+++ b/src/UI/AllThemesGui.svelte
@@ -33,7 +33,7 @@
"oauth_token",
undefined,
"Used to complete the login"
- )
+ ),
})
const state = new UserRelatedState(osmConnection)
const t = Translations.t.index
@@ -42,7 +42,7 @@
let userLanguages = osmConnection.userDetails.map((ud) => ud.languages)
let themeSearchText: UIEventSource = new UIEventSource(undefined)
- document.addEventListener("keydown", function(event) {
+ document.addEventListener("keydown", function (event) {
if (event.ctrlKey && event.code === "KeyF") {
document.getElementById("theme-search")?.focus()
event.preventDefault()
@@ -89,16 +89,16 @@