Autoreformat all the things

This commit is contained in:
Pieter Vander Vennet 2022-01-18 18:52:42 +01:00
parent bfcbbdaf70
commit 25f956c808
309 changed files with 548 additions and 556 deletions

View file

@ -13,7 +13,7 @@ export default class Link extends BaseUIElement {
this._embeddedShow = Translations.W(embeddedShow);
this._href = href;
this._newTab = newTab;
if(this._embeddedShow === undefined){
if (this._embeddedShow === undefined) {
throw "Error: got a link where embeddedShow is undefined"
}
@ -43,16 +43,16 @@ export default class Link extends BaseUIElement {
el.appendChild(embeddedShow)
return el;
}
public static OsmWiki(key: string, value?: string, hideKey = false){
if(value !== undefined){
public static OsmWiki(key: string, value?: string, hideKey = false) {
if (value !== undefined) {
let k = "";
if(!hideKey){
k = key+"="
if (!hideKey) {
k = key + "="
}
return new Link(k+value,`https://wiki.openstreetmap.org/wiki/Tag:${key}%3D${value}`)
return new Link(k + value, `https://wiki.openstreetmap.org/wiki/Tag:${key}%3D${value}`)
}
return new Link(key, "https://wiki.openstreetmap.org/wiki/Key:" + key)
return new Link(key, "https://wiki.openstreetmap.org/wiki/Key:" + key)
}
}