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 `

${e.value}

- -${prepare_series(e.series).map((s) => { return format_line(s); }).join("")} - - - - - - - - + + ${prepare_series(e.series).map((s) => { return format_line(s); }).join("")} + + + + + + + +
Total${e.series.reduce((memo, serie) => { return memo + serie.value; }, 0)}
Total${total}
`; } diff --git a/shard.lock b/shard.lock index aed954b..b4e3806 100644 --- a/shard.lock +++ b/shard.lock @@ -2,7 +2,7 @@ version: 1.0 shards: kemal: github: kemalcr/kemal - commit: 8cb9770ec3c6cf5897e644229dad8d0b5c360941 + commit: 50f82f51874babe92cbb808013647a7989d54354 kilt: github: jeromegn/kilt