From 5641a7a26ee29d752f1f59baed1b7f113436a27a Mon Sep 17 00:00:00 2001 From: Craig Loewen Date: Wed, 29 Nov 2023 20:03:53 +0000 Subject: [PATCH] Updated to chart.js v4 and fixed charts --- .devcontainer/devcontainer.json | 4 +- webinterface/.eslintrc.js | 3 +- webinterface/package-lock.json | 2 +- webinterface/package.json | 2 +- webinterface/public/index.html | 2 +- .../RepoGraphs/BarLineGraphBase.vue | 52 ++++++++++---- .../src/components/RepoGraphs/GraphBase.vue | 69 +++++++++---------- .../components/RepoGraphs/PieGraphBase.vue | 41 +++++------ 8 files changed, 94 insertions(+), 81 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 21af6ac..d1a9471 100755 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -10,8 +10,8 @@ "extensions": [ "dbaeumer.vscode-eslint", "mongodb.mongodb-vscode", - "octref.vetur", - "ms-python.python" + "ms-python.python", + "Vue.volar", ], "postCreateCommand": "pip install -r ./pythonWorker/requirements.txt && npm install && cd webinterface && npm install && cd ..", "remoteUser": "dev" diff --git a/webinterface/.eslintrc.js b/webinterface/.eslintrc.js index 045f199..67182fa 100755 --- a/webinterface/.eslintrc.js +++ b/webinterface/.eslintrc.js @@ -8,7 +8,8 @@ module.exports = { 'eslint:recommended' ], parserOptions: { - parser: '@babel/eslint-parser' + parser: '@babel/eslint-parser', + requireConfigFile: false }, rules: { 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', diff --git a/webinterface/package-lock.json b/webinterface/package-lock.json index eb027ac..e48bf03 100755 --- a/webinterface/package-lock.json +++ b/webinterface/package-lock.json @@ -11,7 +11,7 @@ "axios": "^1.6.0", "bootstrap": "^5.3.2", "bootstrap-vue": "^2.23.1", - "chart.js": "*", + "chart.js": "^4.1.1", "core-js": "^3.33.2", "force-graph": "^1.43.4", "node-sass": "^9.0.0", diff --git a/webinterface/package.json b/webinterface/package.json index 1f29aa0..977dd88 100755 --- a/webinterface/package.json +++ b/webinterface/package.json @@ -11,7 +11,7 @@ "axios": "^1.6.0", "bootstrap": "^5.3.2", "bootstrap-vue": "^2.23.1", - "chart.js": "*", + "chart.js": "^4.1.1", "core-js": "^3.33.2", "force-graph": "^1.43.4", "node-sass": "^9.0.0", diff --git a/webinterface/public/index.html b/webinterface/public/index.html index 5f5e410..9a7b604 100755 --- a/webinterface/public/index.html +++ b/webinterface/public/index.html @@ -20,7 +20,7 @@