Reformat all files with prettier

This commit is contained in:
Pieter Vander Vennet 2022-09-08 21:40:48 +02:00
parent e22d189376
commit b541d3eab4
382 changed files with 50893 additions and 35566 deletions

View file

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