From f8005f5542b8c590223c0f88031fa7b08c5ceaa4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 25 Dec 2021 13:45:26 +0100 Subject: [PATCH] Fix charts in mobile version --- package.json | 4 +- src/components/charts/DailyChart.vue | 75 +++++++++++++++------------- src/main.ts | 3 +- src/plugins/composition_api.ts | 4 ++ yarn.lock | 10 ++++ 5 files changed, 59 insertions(+), 37 deletions(-) create mode 100644 src/plugins/composition_api.ts diff --git a/package.json b/package.json index e61e3cc0..379da5af 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "humanize-duration": "^3.27.1", "vue": "^2.6.14", "vue-class-component": "^7.2.5", + "vue-demi": "0.12.1", "vue-echarts": "^6.0.0", "vue-grid-layout": "^2.3.12", "vue-material-design-icons": "^5.0.0", @@ -35,7 +36,8 @@ "vue-router": "^3.5.3", "vue-select": "^3.16.0", "vuex": "^3.6.2", - "vuex-class": "^0.3.2" + "vuex-class": "^0.3.2", + "vuex-composition-helpers": "^1.1.0" }, "devDependencies": { "@cypress/webpack-dev-server": "^1.8.0", diff --git a/src/components/charts/DailyChart.vue b/src/components/charts/DailyChart.vue index 0b39194f..92378eba 100644 --- a/src/components/charts/DailyChart.vue +++ b/src/components/charts/DailyChart.vue @@ -3,10 +3,10 @@