From 3009e72920b6dec1859291a4ee88ae0daade0e39 Mon Sep 17 00:00:00 2001 From: Will Kennedy Date: Wed, 20 Nov 2024 11:19:02 -0500 Subject: [PATCH] Add chart.js and vue-chartjs integration Updated StatsGrid.vue to include chart.js for error logs visualization. Enhanced theming and accessibility across several components, fixed the error page styling, and updated `vite.config.js` for better build configuration. --- sologger-ui/error.html | 63 ++++---- sologger-ui/package-lock.json | 30 ++++ sologger-ui/package.json | 2 + sologger-ui/src/App.vue | 12 +- sologger-ui/src/components/LogsTable.vue | 3 +- sologger-ui/src/components/StatsGrid.vue | 107 +++++++++++-- sologger-ui/src/style.css | 108 +++++-------- sologger-ui/src/views/AboutView.vue | 25 ++- sologger-ui/src/views/ConvertView.vue | 188 ++++++++++++++++++++++- sologger-ui/src/views/HomeView.vue | 49 +++--- sologger-ui/vite.config.js | 26 ++-- 11 files changed, 439 insertions(+), 174 deletions(-) diff --git a/sologger-ui/error.html b/sologger-ui/error.html index 60704bb..be599fc 100644 --- a/sologger-ui/error.html +++ b/sologger-ui/error.html @@ -6,21 +6,17 @@ Error - Sologger +
@@ -116,7 +127,7 @@

Page Not Found

Return to Homepage

If you believe this is a mistake, please - diff --git a/sologger-ui/package-lock.json b/sologger-ui/package-lock.json index 0df599f..b2e321c 100644 --- a/sologger-ui/package-lock.json +++ b/sologger-ui/package-lock.json @@ -9,10 +9,12 @@ "version": "0.0.0", "dependencies": { "@handsontable/vue3": "^14.6.1", + "chart.js": "^4.4.6", "handsontable": "^14.6.1", "primevue": "^4.2.1", "tailwindcss-primeui": "^0.3.4", "vue": "^3.5.12", + "vue-chartjs": "^5.3.2", "vue-router": "^4.4.5" }, "devDependencies": { @@ -553,6 +555,12 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@kurkle/color": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/@kurkle/color/-/color-0.3.4.tgz", + "integrity": "sha512-M5UknZPHRu3DEDWoipU6sE8PdkZ6Z/S+v4dD+Ke8IaNlpdSQah50lz1KtcFBa2vsdOnwbbnxJwVM4wty6udA5w==", + "license": "MIT" + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -1259,6 +1267,18 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/chart.js": { + "version": "4.4.6", + "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-4.4.6.tgz", + "integrity": "sha512-8Y406zevUPbbIBA/HRk33khEmQPk5+cxeflWE/2rx1NJsjVWMPw/9mSP9rxHP5eqi6LNoPBVMfZHxbwLSgldYA==", + "license": "MIT", + "dependencies": { + "@kurkle/color": "^0.3.0" + }, + "engines": { + "pnpm": ">=8" + } + }, "node_modules/chevrotain": { "version": "6.5.0", "resolved": "https://registry.npmjs.org/chevrotain/-/chevrotain-6.5.0.tgz", @@ -2770,6 +2790,16 @@ } } }, + "node_modules/vue-chartjs": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/vue-chartjs/-/vue-chartjs-5.3.2.tgz", + "integrity": "sha512-NrkbRRoYshbXbWqJkTN6InoDVwVb90C0R7eAVgMWcB9dPikbruaOoTFjFYHE/+tNPdIe6qdLCDjfjPHQ0fw4jw==", + "license": "MIT", + "peerDependencies": { + "chart.js": "^4.1.1", + "vue": "^3.0.0-0 || ^2.7.0" + } + }, "node_modules/vue-router": { "version": "4.4.5", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.4.5.tgz", diff --git a/sologger-ui/package.json b/sologger-ui/package.json index 44405b5..2c35e0b 100644 --- a/sologger-ui/package.json +++ b/sologger-ui/package.json @@ -10,10 +10,12 @@ }, "dependencies": { "@handsontable/vue3": "^14.6.1", + "chart.js": "^4.4.6", "handsontable": "^14.6.1", "primevue": "^4.2.1", "tailwindcss-primeui": "^0.3.4", "vue": "^3.5.12", + "vue-chartjs": "^5.3.2", "vue-router": "^4.4.5" }, "devDependencies": { diff --git a/sologger-ui/src/App.vue b/sologger-ui/src/App.vue index 1ceab13..ac6dd31 100644 --- a/sologger-ui/src/App.vue +++ b/sologger-ui/src/App.vue @@ -5,34 +5,34 @@

- Sologger + Sologger