forked from MapComplete/MapComplete
More refactoring!
This commit is contained in:
parent
b2c234b51d
commit
6ac8ec84e4
22 changed files with 170 additions and 158 deletions
|
@ -1,4 +1,4 @@
|
|||
export class Img {
|
||||
export default class Img {
|
||||
|
||||
public static runningFromConsole = false;
|
||||
|
|
@ -1,10 +1,7 @@
|
|||
import {UIElement} from "../UIElement";
|
||||
import {UIEventSource} from "../../Logic/UIEventSource";
|
||||
import {LicenseInfo} from "../../Logic/Web/Wikimedia";
|
||||
import {Imgur} from "../../Logic/Web/Imgur";
|
||||
import {Mapillary} from "../../Logic/Web/Mapillary";
|
||||
import {Img} from "../Img";
|
||||
import {FixedUiElement} from "../Base/FixedUiElement";
|
||||
import Svg from "../../Svg";
|
||||
|
||||
|
||||
|
|
|
@ -56,15 +56,13 @@ export class MoreScreen extends UIElement {
|
|||
if (description !== undefined) {
|
||||
description = new Combine(["<br/>", description]);
|
||||
}
|
||||
const link =
|
||||
new SubtleButton(layout.icon,
|
||||
new Combine([
|
||||
"<b>",
|
||||
Translations.W(layout.title),
|
||||
"</b>",
|
||||
description ?? "",
|
||||
]), {url: linkText, newTab: false})
|
||||
return link;
|
||||
return new SubtleButton(layout.icon,
|
||||
new Combine([
|
||||
"<b>",
|
||||
Translations.W(layout.title),
|
||||
"</b>",
|
||||
description ?? "",
|
||||
]), {url: linkText, newTab: false});
|
||||
}
|
||||
|
||||
InnerRender(): string {
|
||||
|
|
|
@ -57,7 +57,7 @@ export class SearchAndGo extends UIElement {
|
|||
}
|
||||
|
||||
const bb = result[0].boundingbox;
|
||||
const bounds = [
|
||||
const bounds : [[number, number], [number, number]] = [
|
||||
[bb[0], bb[2]],
|
||||
[bb[1], bb[3]]
|
||||
]
|
||||
|
|
|
@ -6,7 +6,6 @@ import {VariableUiElement} from "./Base/VariableUIElement";
|
|||
import CheckBox from "./Input/CheckBox";
|
||||
import {VerticalCombine} from "./Base/VerticalCombine";
|
||||
import State from "../State";
|
||||
import {Basemap} from "../Logic/Leaflet/Basemap";
|
||||
import {FilteredLayer} from "../Logic/FilteredLayer";
|
||||
import {Utils} from "../Utils";
|
||||
import {UIEventSource} from "../Logic/UIEventSource";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue