From 5fe134a6503ebdf06e64b6cb67662be74b4af868 Mon Sep 17 00:00:00 2001 From: Arno Kaimbacher Date: Wed, 26 Jan 2022 16:32:19 +0100 Subject: [PATCH] - replace moment with dayjs - add leaflet.css inside main-styles.css - add map.componetn for leaflet map - bind properties to map via map-view.component --- package-lock.json | 25 +++--- package.json | 2 +- src/App.vue | 2 +- src/app.ts | 2 +- src/assets/scss/main-styles.scss | 1 + src/components/map/map-options.ts | 14 +++ src/components/map/map.component.html | 1 + src/components/map/map.component.ts | 89 +++++++++++++++++++ src/components/map/map.component.vue | 19 ++++ src/models/dataset.ts | 7 +- src/notes.txt | 9 +- .../dataset-detail.component.ts | 17 ++-- src/views/map-view/map-view.component.ts | 60 ++++--------- src/views/map-view/map-view.component.vue | 50 +++++++++-- 14 files changed, 218 insertions(+), 80 deletions(-) create mode 100644 src/components/map/map-options.ts create mode 100644 src/components/map/map.component.html create mode 100644 src/components/map/map.component.ts create mode 100644 src/components/map/map.component.vue diff --git a/package-lock.json b/package-lock.json index d213b0e..dc3ae64 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,8 +13,8 @@ "axios": "^0.24.0", "class-transformer": "^0.5.1", "core-js": "^3.6.5", + "dayjs": "^1.10.7", "leaflet": "^1.7.1", - "moment": "^2.29.1", "qs": "^6.10.1", "rxjs": "^6.6.0", "vue": "^3.0.0", @@ -6073,6 +6073,11 @@ "node": ">=0.10" } }, + "node_modules/dayjs": { + "version": "1.10.7", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.10.7.tgz", + "integrity": "sha512-P6twpd70BcPK34K26uJ1KT3wlhpuOAPoMwJzpsIWUxHZ7wpmbdZL/hQqBDfz7hGurYSa5PhzdhDHtt319hL3ig==" + }, "node_modules/debug": { "version": "4.3.3", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", @@ -10731,14 +10736,6 @@ "mkdirp": "bin/cmd.js" } }, - "node_modules/moment": { - "version": "2.29.1", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.1.tgz", - "integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==", - "engines": { - "node": "*" - } - }, "node_modules/move-concurrently": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", @@ -21961,6 +21958,11 @@ "assert-plus": "^1.0.0" } }, + "dayjs": { + "version": "1.10.7", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.10.7.tgz", + "integrity": "sha512-P6twpd70BcPK34K26uJ1KT3wlhpuOAPoMwJzpsIWUxHZ7wpmbdZL/hQqBDfz7hGurYSa5PhzdhDHtt319hL3ig==" + }, "debug": { "version": "4.3.3", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", @@ -25582,11 +25584,6 @@ "minimist": "^1.2.5" } }, - "moment": { - "version": "2.29.1", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.1.tgz", - "integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==" - }, "move-concurrently": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", diff --git a/package.json b/package.json index c4e2c9d..8e145d1 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,8 @@ "axios": "^0.24.0", "class-transformer": "^0.5.1", "core-js": "^3.6.5", + "dayjs": "^1.10.7", "leaflet": "^1.7.1", - "moment": "^2.29.1", "qs": "^6.10.1", "rxjs": "^6.6.0", "vue": "^3.0.0", diff --git a/src/App.vue b/src/App.vue index 4b962b9..eda6025 100644 --- a/src/App.vue +++ b/src/App.vue @@ -37,7 +37,7 @@ HELP -