Cleanup of empty classes, partial use of default export

This commit is contained in:
Pieter Vander Vennet 2020-10-02 19:00:24 +02:00
parent cc75f5c4fd
commit 9970c4b8bb
55 changed files with 939 additions and 206 deletions

View file

@ -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 {

View file

@ -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).

View file

@ -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
}
]
})
}
}

View file

@ -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}
]
});
}
}

View file

@ -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",

View file

@ -1,3 +0,0 @@
export default class SharedLayers {
}