From b86d2be4d62d4479c344299e4cbe027fe5d71bf1 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 4 Oct 2021 13:53:48 +0200 Subject: [PATCH] Client - Stats refactoring + display fix when week starts on Monday #95 --- .../src/components/Statistics/SportsMenu.vue | 97 ++++ .../src/components/Statistics/StatsMenu.vue | 116 +++++ .../src/components/Statistics/index.vue | 263 ++--------- fittrackee_client/src/utils/statistics.ts | 69 ++- .../src/views/StatisticsView.vue | 19 +- .../tests/unit/utils/statistics.spec.ts | 429 +++++++++++++++++- 6 files changed, 758 insertions(+), 235 deletions(-) create mode 100644 fittrackee_client/src/components/Statistics/SportsMenu.vue create mode 100644 fittrackee_client/src/components/Statistics/StatsMenu.vue diff --git a/fittrackee_client/src/components/Statistics/SportsMenu.vue b/fittrackee_client/src/components/Statistics/SportsMenu.vue new file mode 100644 index 00000000..8a581a07 --- /dev/null +++ b/fittrackee_client/src/components/Statistics/SportsMenu.vue @@ -0,0 +1,97 @@ + + + + + diff --git a/fittrackee_client/src/components/Statistics/StatsMenu.vue b/fittrackee_client/src/components/Statistics/StatsMenu.vue new file mode 100644 index 00000000..7091143b --- /dev/null +++ b/fittrackee_client/src/components/Statistics/StatsMenu.vue @@ -0,0 +1,116 @@ + + + + + diff --git a/fittrackee_client/src/components/Statistics/index.vue b/fittrackee_client/src/components/Statistics/index.vue index 33b9c68b..c57a1161 100644 --- a/fittrackee_client/src/components/Statistics/index.vue +++ b/fittrackee_client/src/components/Statistics/index.vue @@ -1,85 +1,25 @@