forked from MapComplete/MapComplete
Reformat all files with prettier
This commit is contained in:
parent
e22d189376
commit
b541d3eab4
382 changed files with 50893 additions and 35566 deletions
|
@ -1,29 +1,27 @@
|
|||
import BaseUIElement from "../BaseUIElement";
|
||||
import BaseUIElement from "../BaseUIElement"
|
||||
|
||||
export class FixedUiElement extends BaseUIElement {
|
||||
public readonly content: string;
|
||||
public readonly content: string
|
||||
|
||||
constructor(html: string) {
|
||||
super();
|
||||
this.content = html ?? "";
|
||||
super()
|
||||
this.content = html ?? ""
|
||||
}
|
||||
|
||||
InnerRender(): string {
|
||||
return this.content;
|
||||
return this.content
|
||||
}
|
||||
|
||||
AsMarkdown(): string {
|
||||
if(this.HasClass("code")){
|
||||
return "`"+this.content+"`"
|
||||
if (this.HasClass("code")) {
|
||||
return "`" + this.content + "`"
|
||||
}
|
||||
return this.content;
|
||||
return this.content
|
||||
}
|
||||
|
||||
protected InnerConstructElement(): HTMLElement {
|
||||
const e = document.createElement("span")
|
||||
e.innerHTML = this.content
|
||||
return e;
|
||||
return e
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue