diff --git a/Makefile b/Makefile index 700a619..6e0f4d9 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ pull-deps: cd public/vendor; npm install clean: - -rm public/js/app.min.js public/js/app.js + -rm public/js/app.min.js public/js/app.js credger clean-all: -rm -fr lib/ public/vendor/node_modules diff --git a/public/ts/components/dashboard.ts b/public/ts/components/dashboard.ts index 217e154..522ce78 100644 --- a/public/ts/components/dashboard.ts +++ b/public/ts/components/dashboard.ts @@ -94,19 +94,21 @@ app.component('dashboard', return series.filter((s) => { return s.value != 0; }); }; - return ` + let total = e.series.reduce((memo, serie) => { return memo + serie.value; }, 0); + +return `
- | Total | -${e.series.reduce((memo, serie) => { return memo + serie.value; }, 0)} | -
+ | Total | +${total} | +