From 0ebf4347e05f0ab95d204347c6f7e686dc38c4f0 Mon Sep 17 00:00:00 2001 From: csmig <33138761+csmig@users.noreply.github.com> Date: Mon, 18 Mar 2024 21:47:16 +0000 Subject: [PATCH] chore: update chart.js and add to modules (#1244) --- client/build.sh | 1 - client/src/index.html | 1 + client/src/js/chart.min.js | 13 ------------- client/src/js/init.js | 6 +++++- client/src/js/modules/package-lock.json | 17 +++++++++++++++++ client/src/js/modules/package.json | 1 + client/src/js/resources.js | 1 - 7 files changed, 24 insertions(+), 16 deletions(-) delete mode 100644 client/src/js/chart.min.js diff --git a/client/build.sh b/client/build.sh index 9702a4c54..3faefe0a3 100755 --- a/client/build.sh +++ b/client/build.sh @@ -103,7 +103,6 @@ cp $SrcDir/js/Env.js.example $DistDir/js cp -r $SrcDir/js/modules $DistDir/js/modules cd $SrcDir/js uglifyjs \ -'chart.min.js' \ 'diff.js' \ 'diff2html.min.js' \ 'stigmanUtils.js' \ diff --git a/client/src/index.html b/client/src/index.html index 72fbbb407..d12973afb 100644 --- a/client/src/index.html +++ b/client/src/index.html @@ -6,6 +6,7 @@ +
diff --git a/client/src/js/chart.min.js b/client/src/js/chart.min.js deleted file mode 100644 index 8f69759e0..000000000 --- a/client/src/js/chart.min.js +++ /dev/null @@ -1,13 +0,0 @@ -/*! - * Chart.js v3.9.1 - * https://www.chartjs.org - * (c) 2022 Chart.js Contributors - * Released under the MIT License - */ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Chart=e()}(this,(function(){"use strict";function t(){}const e=function(){let t=0;return function(){return t++}}();function i(t){return null==t}function s(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function n(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const o=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function a(t,e){return o(t)?t:e}function r(t,e){return void 0===t?e:t}const l=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,h=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function c(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function d(t,e,i,o){let a,r,l;if(s(t))if(r=t.length,o)for(a=r-1;a>=0;a--)e.call(i,t[a],a);else for(a=0;a