From 2fcf2151fade7ed6d2510461e9c0eae7b614a569 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Thu, 18 Feb 2021 22:05:46 +0100 Subject: [PATCH] Add elevation gain / loss to distance travelled stats Closes #51. --- docs/config.md | 2 ++ src/components/AppHeader.vue | 28 ++++++++++++++++++++++++---- src/locales/de-DE.json | 1 + src/locales/en-GB.json | 1 + src/locales/en-US.json | 1 + src/locales/es-ES.json | 1 + src/locales/fr-FR.json | 1 + src/store/actions.js | 35 ++++++++++++++++++++--------------- src/store/index.js | 4 +++- src/store/mutation-types.js | 2 ++ src/store/mutations.js | 6 ++++++ src/styles/_base.scss | 10 ++++++++++ 12 files changed, 72 insertions(+), 20 deletions(-) diff --git a/docs/config.md b/docs/config.md index 2df4489..6e20a8c 100644 --- a/docs/config.md +++ b/docs/config.md @@ -499,6 +499,8 @@ header bar. `maxPointDistance` is being takein into account, if a distance betwe subsequent points is greater than `maxPointDistance`, it will not contibute to the calculated travelled distance. +This also includes a calculation of elevation gain / loss. + - Type: [`Boolean`] - Default: `true` diff --git a/src/components/AppHeader.vue b/src/components/AppHeader.vue index 580abde..5f82b16 100644 --- a/src/components/AppHeader.vue +++ b/src/components/AppHeader.vue @@ -118,10 +118,19 @@