From ef92e311958e90610393f15838d73e1efdd2501e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sat, 10 Apr 2021 17:44:02 +0200 Subject: [PATCH] Make stats limit configurable --- web/frontend/.eslintrc.js | 1 + web/frontend/package.json | 3 +- web/frontend/src/components/StatsPie.vue | 102 +++++++++++++++++++++-- web/frontend/yarn.lock | 5 ++ 4 files changed, 102 insertions(+), 9 deletions(-) diff --git a/web/frontend/.eslintrc.js b/web/frontend/.eslintrc.js index 3c85228..1501cdb 100644 --- a/web/frontend/.eslintrc.js +++ b/web/frontend/.eslintrc.js @@ -7,6 +7,7 @@ module.exports = { 'plugin:vue/essential', '@vue/airbnb', '@vue/typescript/recommended', + 'prettier' ], parserOptions: { ecmaVersion: 2020, diff --git a/web/frontend/package.json b/web/frontend/package.json index 793d1dc..cdf8679 100644 --- a/web/frontend/package.json +++ b/web/frontend/package.json @@ -38,6 +38,7 @@ "@vue/eslint-config-airbnb": "^5.0.2", "@vue/eslint-config-typescript": "^7.0.0", "eslint": "^6.7.2", + "eslint-config-prettier": "^8.1.0", "eslint-plugin-import": "^2.20.2", "eslint-plugin-vue": "^6.2.2", "sass": "^1.26.5", @@ -45,4 +46,4 @@ "typescript": "~4.1.5", "vue-template-compiler": "^2.6.11" } -} \ No newline at end of file +} diff --git a/web/frontend/src/components/StatsPie.vue b/web/frontend/src/components/StatsPie.vue index 7df60b0..1eb796c 100644 --- a/web/frontend/src/components/StatsPie.vue +++ b/web/frontend/src/components/StatsPie.vue @@ -1,14 +1,55 @@