From 1916c5ee4d5686e308f98fbbb08be0f4d394d74f Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sun, 10 Aug 2025 13:08:36 +0200 Subject: [PATCH] feat: add kaizen indicator --- package.json | 2 + pnpm-lock.yaml | 30 ++++++++++ src/modules/5s/BoardGamePerformance.vue | 78 ++++++++++++++++--------- src/modules/5s/BoardGameWorkshop.vue | 11 +--- 4 files changed, 86 insertions(+), 35 deletions(-) diff --git a/package.json b/package.json index 07abd92..3758c85 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "dependencies": { "@tailwindcss/vite": "^4.1.11", "@vueuse/core": "^12.2.0", + "chart.js": "^4.5.0", "chart.xkcd": "^1.1.15", "comlink": "^4.4.2", "daisyui": "^5.0.50", @@ -26,6 +27,7 @@ "random-js": "^2.1.0", "tailwindcss": "^4.1.11", "vue": "^3.5.13", + "vue-chartjs": "^5.3.2", "vue-starport": "^0.4.0" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 708198a..17fd67a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,6 +14,9 @@ importers: '@vueuse/core': specifier: ^12.2.0 version: 12.2.0(typescript@5.7.2) + chart.js: + specifier: ^4.5.0 + version: 4.5.0 chart.xkcd: specifier: ^1.1.15 version: 1.1.15 @@ -41,6 +44,9 @@ importers: vue: specifier: ^3.5.13 version: 3.5.13(typescript@5.7.2) + vue-chartjs: + specifier: ^5.3.2 + version: 5.3.2(chart.js@4.5.0)(vue@3.5.13(typescript@5.7.2)) vue-starport: specifier: ^0.4.0 version: 0.4.0(typescript@5.7.2) @@ -408,6 +414,9 @@ packages: '@jridgewell/trace-mapping@0.3.29': resolution: {integrity: sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ==} + '@kurkle/color@0.3.4': + resolution: {integrity: sha512-M5UknZPHRu3DEDWoipU6sE8PdkZ6Z/S+v4dD+Ke8IaNlpdSQah50lz1KtcFBa2vsdOnwbbnxJwVM4wty6udA5w==} + '@parcel/watcher-android-arm64@2.5.1': resolution: {integrity: sha512-KF8+j9nNbUN8vzOFDpRMsaKBHZ/mcjEjMToVMJOhTozkDonQFFrRcfdLWn6yWKCmJKmdVxSgHiYvTCef4/qcBA==} engines: {node: '>= 10.0.0'} @@ -889,6 +898,10 @@ packages: resolution: {integrity: sha512-aGtmf24DW6MLHHG5gCx4zaI3uBq3KRtxeVs0DjFH6Z0rDNbsvTxFASFvdj79pxjxZ8/5u3PIiN3IwEIQkiiuPw==} engines: {node: '>=12'} + chart.js@4.5.0: + resolution: {integrity: sha512-aYeC/jDgSEx8SHWZvANYMioYMZ2KX02W6f6uVfyteuCGcadDLcYVHdfdygsTQkQ4TKn5lghoojAsPj5pu0SnvQ==} + engines: {pnpm: '>=8'} + chart.xkcd@1.1.15: resolution: {integrity: sha512-FPpNCkaVSPyB6GIb9eXKEAjKSnr6hA7blzQFUeTkZKvSr9wcg1eSK73V6APgfrzkDDK7X+iVtLXJXIGPrCFj8g==} @@ -1387,6 +1400,12 @@ packages: jsdom: optional: true + vue-chartjs@5.3.2: + resolution: {integrity: sha512-NrkbRRoYshbXbWqJkTN6InoDVwVb90C0R7eAVgMWcB9dPikbruaOoTFjFYHE/+tNPdIe6qdLCDjfjPHQ0fw4jw==} + peerDependencies: + chart.js: ^4.1.1 + vue: ^3.0.0-0 || ^2.7.0 + vue-demi@0.14.10: resolution: {integrity: sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==} engines: {node: '>=12'} @@ -1602,6 +1621,8 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.0 + '@kurkle/color@0.3.4': {} + '@parcel/watcher-android-arm64@2.5.1': optional: true @@ -2020,6 +2041,10 @@ snapshots: loupe: 3.1.3 pathval: 2.0.0 + chart.js@4.5.0: + dependencies: + '@kurkle/color': 0.3.4 + chart.xkcd@1.1.15: dependencies: d3-axis: 1.0.12 @@ -2507,6 +2532,11 @@ snapshots: - supports-color - terser + vue-chartjs@5.3.2(chart.js@4.5.0)(vue@3.5.13(typescript@5.7.2)): + dependencies: + chart.js: 4.5.0 + vue: 3.5.13(typescript@5.7.2) + vue-demi@0.14.10(vue@3.5.13(typescript@5.7.2)): dependencies: vue: 3.5.13(typescript@5.7.2) diff --git a/src/modules/5s/BoardGamePerformance.vue b/src/modules/5s/BoardGamePerformance.vue index 9b2a754..0c72ef3 100644 --- a/src/modules/5s/BoardGamePerformance.vue +++ b/src/modules/5s/BoardGamePerformance.vue @@ -1,8 +1,13 @@