From 2a5528cc8dfb73f4ec99d563c8b83556064eac4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20de=20Metz?= Date: Wed, 22 May 2024 10:23:21 +0200 Subject: [PATCH] Move controls to a subfolder and use the composition API. --- js/controls/heatmap_control.vue | 42 +++++++++++ js/{ => controls}/language_control.vue | 2 +- js/controls/level_control.vue | 88 +++++++++++++++++++++++ js/heatmap_control.vue | 54 -------------- js/level_control.vue | 97 -------------------------- js/map.vue | 6 +- 6 files changed, 134 insertions(+), 155 deletions(-) create mode 100644 js/controls/heatmap_control.vue rename js/{ => controls}/language_control.vue (94%) create mode 100644 js/controls/level_control.vue delete mode 100644 js/heatmap_control.vue delete mode 100644 js/level_control.vue diff --git a/js/controls/heatmap_control.vue b/js/controls/heatmap_control.vue new file mode 100644 index 0000000..e4f1749 --- /dev/null +++ b/js/controls/heatmap_control.vue @@ -0,0 +1,42 @@ + + + diff --git a/js/language_control.vue b/js/controls/language_control.vue similarity index 94% rename from js/language_control.vue rename to js/controls/language_control.vue index e585673..4479cc3 100644 --- a/js/language_control.vue +++ b/js/controls/language_control.vue @@ -1,7 +1,7 @@ + + + + diff --git a/js/heatmap_control.vue b/js/heatmap_control.vue deleted file mode 100644 index e84f0d1..0000000 --- a/js/heatmap_control.vue +++ /dev/null @@ -1,54 +0,0 @@ - - - diff --git a/js/level_control.vue b/js/level_control.vue deleted file mode 100644 index 82b0463..0000000 --- a/js/level_control.vue +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - - diff --git a/js/map.vue b/js/map.vue index 285bdff..9f86fa5 100644 --- a/js/map.vue +++ b/js/map.vue @@ -33,9 +33,9 @@ import IndoorEqual from 'maplibre-gl-indoorequal'; import bbox from '@turf/bbox'; import { mapStyle } from './maptiler'; import { indoorEqualApiKey, tilesUrl } from '../config.json'; -import LanguageControl from './language_control'; -import LevelControl from './level_control'; -import HeatmapControl from './heatmap_control'; +import LanguageControl from './controls/language_control'; +import LevelControl from './controls/level_control'; +import HeatmapControl from './controls/heatmap_control'; export default { components: {