Some linting issues
This commit is contained in:
parent
9238f0f381
commit
55dd4c58ee
5 changed files with 6 additions and 10 deletions
|
@ -14,7 +14,7 @@ import {VariableUiElement} from "./Base/VariableUIElement";
|
|||
import Svg from "../Svg";
|
||||
|
||||
export default class AllThemesGui {
|
||||
constructor() {
|
||||
setup() {
|
||||
try {
|
||||
|
||||
new FixedUiElement("").AttachTo("centermessage")
|
||||
|
|
|
@ -19,4 +19,4 @@ if (layout !== "") {
|
|||
|
||||
Utils.DisableLongPresses()
|
||||
document.getElementById("decoration-desktop").remove();
|
||||
new AllThemesGui();
|
||||
new AllThemesGui().setup();
|
4
index.ts
4
index.ts
|
@ -26,7 +26,7 @@ class Init {
|
|||
|
||||
if (layoutToUse === undefined) {
|
||||
// No layout found
|
||||
new AllThemesGui()
|
||||
new AllThemesGui().setup()
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -37,8 +37,6 @@ class Init {
|
|||
// @ts-ignore
|
||||
window.mapcomplete_state = State.state;
|
||||
new DefaultGUI(State.state, guiState)
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
"gittag": "ts-node scripts/printVersion.ts | bash",
|
||||
"lint": "tslint --project . -c tslint.json '**.ts' ",
|
||||
"clean:tests": "(find . -type f -name \"*.doctest.ts\" | xargs rm)",
|
||||
"clean": "rm -rf .cache/ && (find *.html | grep -v \"\\(404\\|index\\|land\\|test\\|preferences\\|customGenerator\\|professional\\|automaton\\|import_helper\\|import_viewer\\|theme\\).html\" | xargs rm) && (ls | grep \"^index_[a-zA-Z_]\\+\\.ts$\" | xargs rm) && (ls | grep \".*.webmanifest$\" | xargs rm)",
|
||||
"clean": "rm -rf .cache/ && (find *.html | grep -v \"\\(404\\|index\\|land\\|test\\|preferences\\|customGenerator\\|professional\\|automaton\\|import_helper\\|import_viewer\\|theme\\).html\" | xargs rm) && (ls | grep \"^index_[a-zA-Z_-]\\+\\.ts$\" | xargs rm) && (ls | grep \".*.webmanifest$\" | xargs rm)",
|
||||
"generate:dependency-graph": "node_modules/.bin/depcruise --exclude \"^node_modules\" --output-type dot Logic/State/MapState.ts > dependencies.dot && dot dependencies.dot -T svg -o dependencies.svg && rm dependencies.dot",
|
||||
"script": "ts-node"
|
||||
},
|
||||
|
|
6
test.ts
6
test.ts
|
@ -13,8 +13,7 @@ new Combine(
|
|||
try {
|
||||
inp = ValidatedTextField.ForType(key).ConstructInputElement({
|
||||
feedback,
|
||||
country: () => "be",
|
||||
|
||||
country: () => "be"
|
||||
});
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
|
@ -29,5 +28,4 @@ new Combine(
|
|||
]);
|
||||
}
|
||||
)
|
||||
).AttachTo("maindiv")
|
||||
|
||||
).AttachTo("maindiv")
|
Loading…
Reference in a new issue