From 39944a01fb02635e88e2e498c4d3752bd95aa256 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 22 Sep 2023 11:20:22 +0200 Subject: [PATCH] Refactoring: automatically generate code files from layer/theme files to avoid using 'Eval' --- 404.html | 1 + index.html | 7 +- public/css/index-tailwind-output.css | 22 ++-- scripts/build.sh | 4 +- scripts/generateLayerOverview.ts | 124 ++++++++++++++++++ scripts/generateLayouts.ts | 28 +++- src/Logic/ExtraFunctions.ts | 6 +- src/Logic/MetaTagging.ts | 51 ++++++- src/Logic/State/UserRelatedState.ts | 8 +- src/Logic/State/UserSettingsMetaTagging.ts | 13 ++ .../ThemeConfig/Conversion/Validation.ts | 9 ++ src/Models/ThemeConfig/LayerConfig.ts | 6 - src/UI/SpecialVisualizations.ts | 2 +- src/Utils.ts | 7 +- src/assets/editor-layer-index.json | 6 +- src/index_theme.ts.template | 3 + theme.html | 3 +- 17 files changed, 269 insertions(+), 31 deletions(-) create mode 100644 src/Logic/State/UserSettingsMetaTagging.ts diff --git a/404.html b/404.html index 8d425e109..9b667602b 100644 --- a/404.html +++ b/404.html @@ -3,6 +3,7 @@ + diff --git a/index.html b/index.html index 4a29a7026..5d850ae9e 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,7 @@ + @@ -16,8 +17,6 @@ MapComplete - - Mastodon @@ -48,10 +47,12 @@ + +
-