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
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue