From 7679a832f4815ff76e3562c24082d2f2546c5d95 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Thu, 25 Nov 2021 02:50:43 +0100 Subject: [PATCH] Add landing page (WIP) --- Professional.md | 4 ++++ UI/ProfessionalGui.ts | 16 ++++++++++++++++ index.ts | 3 +++ package.json | 2 +- 4 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 UI/ProfessionalGui.ts diff --git a/Professional.md b/Professional.md index aee03347a..5d78e3317 100644 --- a/Professional.md +++ b/Professional.md @@ -1,6 +1,10 @@ Professional support with MapComplete ========== +The developer of MapComplete offers professional support. This document outlines some of the possibilities, pitfalls and common questions. + + + What can MapComplete do for your organisation? ---- diff --git a/UI/ProfessionalGui.ts b/UI/ProfessionalGui.ts new file mode 100644 index 000000000..ce14762c9 --- /dev/null +++ b/UI/ProfessionalGui.ts @@ -0,0 +1,16 @@ +import {FixedUiElement} from "./Base/FixedUiElement"; + +export default class ProfessionalGui { + + constructor() { + + new FixedUiElement("Hello world").AttachTo("main") + + } + + +} + +console.log("Hello world") +new FixedUiElement("").AttachTo("decoration-desktop") +new ProfessionalGui() \ No newline at end of file diff --git a/index.ts b/index.ts index 6496e1cdc..0d0802b5b 100644 --- a/index.ts +++ b/index.ts @@ -14,6 +14,9 @@ import State from "./State"; import AvailableBaseLayersImplementation from "./Logic/Actors/AvailableBaseLayersImplementation"; import ShowOverlayLayerImplementation from "./UI/ShowDataLayer/ShowOverlayLayerImplementation"; import {DefaultGuiState} from "./UI/DefaultGuiState"; +import {Browser} from "leaflet"; +import win = Browser.win; +import ProfessionalGui from "./UI/ProfessionalGui"; // Workaround for a stupid crash: inject some functions which would give stupid circular dependencies or crash the other nodejs scripts running from console MinimapImplementation.initialize() diff --git a/package.json b/package.json index dc42d45f5..1c38328fc 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "deploy:production": "cd ~/git/mapcomplete.github.io/ && git pull && cd - && rm -rf ./assets/generated && npm run prepare-deploy && npm run optimize-images && rm -rf ~/git/mapcomplete.github.io/* && cp -r dist/* ~/git/mapcomplete.github.io/ && cd ~/git/mapcomplete.github.io/ && echo \"mapcomplete.osm.be\" > CNAME && git add * && git commit -m 'New MapComplete Version' && git push && cd - && npm run clean && npm run gittag", "gittag": "ts-node scripts/printVersion.ts | bash", "lint": "tslint --project . -c tslint.json '**.ts' ", - "clean": "rm -rf .cache/ && (find *.html | grep -v \"\\(index\\|land\\|test\\|preferences\\|customGenerator\\).html\" | xargs rm) && rm *.webmanifest", + "clean": "rm -rf .cache/ && (find *.html | grep -v \"\\(index\\|land\\|test\\|preferences\\|customGenerator\\|professional\\).html\" | xargs rm) && rm *.webmanifest", "generate:dependency-graph": "node_modules/.bin/depcruise --exclude \"^node_modules\" --output-type dot test/TestAll.ts > dependencies.dot && dot dependencies.dot -T svg -o dependencies.svg && rm dependencies.dot" }, "keywords": [