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";
|
import Svg from "../Svg";
|
||||||
|
|
||||||
export default class AllThemesGui {
|
export default class AllThemesGui {
|
||||||
constructor() {
|
setup() {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
new FixedUiElement("").AttachTo("centermessage")
|
new FixedUiElement("").AttachTo("centermessage")
|
||||||
|
|
|
@ -19,4 +19,4 @@ if (layout !== "") {
|
||||||
|
|
||||||
Utils.DisableLongPresses()
|
Utils.DisableLongPresses()
|
||||||
document.getElementById("decoration-desktop").remove();
|
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) {
|
if (layoutToUse === undefined) {
|
||||||
// No layout found
|
// No layout found
|
||||||
new AllThemesGui()
|
new AllThemesGui().setup()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,8 +37,6 @@ class Init {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
window.mapcomplete_state = State.state;
|
window.mapcomplete_state = State.state;
|
||||||
new DefaultGUI(State.state, guiState)
|
new DefaultGUI(State.state, guiState)
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
"gittag": "ts-node scripts/printVersion.ts | bash",
|
"gittag": "ts-node scripts/printVersion.ts | bash",
|
||||||
"lint": "tslint --project . -c tslint.json '**.ts' ",
|
"lint": "tslint --project . -c tslint.json '**.ts' ",
|
||||||
"clean:tests": "(find . -type f -name \"*.doctest.ts\" | xargs rm)",
|
"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",
|
"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"
|
"script": "ts-node"
|
||||||
},
|
},
|
||||||
|
|
4
test.ts
4
test.ts
|
@ -13,8 +13,7 @@ new Combine(
|
||||||
try {
|
try {
|
||||||
inp = ValidatedTextField.ForType(key).ConstructInputElement({
|
inp = ValidatedTextField.ForType(key).ConstructInputElement({
|
||||||
feedback,
|
feedback,
|
||||||
country: () => "be",
|
country: () => "be"
|
||||||
|
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
|
@ -30,4 +29,3 @@ new Combine(
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
).AttachTo("maindiv")
|
).AttachTo("maindiv")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue