forked from MapComplete/MapComplete
Cleanup of empty classes, partial use of default export
This commit is contained in:
parent
cc75f5c4fd
commit
9970c4b8bb
55 changed files with 939 additions and 206 deletions
|
@ -24,7 +24,7 @@ import * as information_boards from "../../assets/layers/information_board/infor
|
|||
import {Utils} from "../../Utils";
|
||||
import ImageCarouselWithUploadConstructor from "../../UI/Image/ImageCarouselWithUpload";
|
||||
import {ImageCarouselConstructor} from "../../UI/Image/ImageCarousel";
|
||||
import {State} from "../../State";
|
||||
import State from "../../State";
|
||||
|
||||
export class FromJSON {
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import {LayerDefinition} from "./LayerDefinition";
|
|||
import {UIElement} from "../UI/UIElement";
|
||||
import Translations from "../UI/i18n/Translations";
|
||||
import Combine from "../UI/Base/Combine";
|
||||
import {State} from "../State";
|
||||
import State from "../State";
|
||||
|
||||
/**
|
||||
* A layout is a collection of settings of the global view (thus: welcome text, title, selection of layers).
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
import {TagRenderingOptions} from "../TagRenderingOptions";
|
||||
import Translation from "../../UI/i18n/Translation";
|
||||
|
||||
export default class FixedText extends TagRenderingOptions {
|
||||
constructor(category: string | Translation) {
|
||||
super({
|
||||
mappings: [
|
||||
{
|
||||
k: null, txt: category
|
||||
}
|
||||
]
|
||||
})
|
||||
}
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
import {RegexTag, Tag} from "../../Logic/Tags";
|
||||
import Translations from "../../UI/i18n/Translations";
|
||||
import {TagRenderingOptions} from "../TagRenderingOptions";
|
||||
import Translation from "../../UI/i18n/Translation";
|
||||
|
||||
|
||||
export class NameInline extends TagRenderingOptions{
|
||||
|
||||
constructor(category: string | Translation ) {
|
||||
super({
|
||||
mappings: [
|
||||
{k: new Tag("noname", "yes"), txt: Translations.t.general.noNameCategory.Subs({category: category})},
|
||||
{k: new RegexTag("name", /.+/), txt: "{name}"},
|
||||
{k:new Tag("name",""), txt: category}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
}
|
|
@ -1,13 +1,10 @@
|
|||
import {Img} from "../../UI/Img";
|
||||
import {RegexTag, Tag} from "../../Logic/Tags";
|
||||
import {RegexTag} from "../../Logic/Tags";
|
||||
import {TagRenderingOptions} from "../TagRenderingOptions";
|
||||
import {FixedUiElement} from "../../UI/Base/FixedUiElement";
|
||||
|
||||
|
||||
export class OsmLink extends TagRenderingOptions {
|
||||
|
||||
|
||||
|
||||
static options = {
|
||||
freeform: {
|
||||
key: "id",
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
export default class SharedLayers {
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue