1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

chore: minor code smell

This commit is contained in:
Ferdinand Mütsch 2020-11-28 20:50:35 +01:00
parent a0e64ca955
commit 095fef4868
2 changed files with 6 additions and 6 deletions

View File

@ -203,7 +203,7 @@ function togglePlaceholders(mask) {
} }
function getPresentDataMask() { function getPresentDataMask() {
return data.map(list => list ? list.reduce((acc, e) => acc + e.total, 0) : 0 > 0) return data.map(list => (list ? list.reduce((acc, e) => acc + e.total, 0) : 0) > 0)
} }
function getContainer(chart) { function getContainer(chart) {

View File

@ -29,13 +29,13 @@
</a> </a>
<a href="https://github.com/muety/wakapi" target="_blank"> <a href="https://github.com/muety/wakapi" target="_blank">
<button type="button" class="py-1 px-3 h-8 rounded border border-green-700 text-white"> <button type="button" class="py-1 px-3 h-8 rounded border border-green-700 text-white">
<img src="assets/images/ghicon.svg" width="22px"> <img alt="GitHub Icon" src="assets/images/ghicon.svg" width="22px">
</button> </button>
</a> </a>
</div> </div>
<div class="flex justify-center my-8"> <div class="flex justify-center my-8">
<img src="assets/images/screenshot.png"> <img alt="App screenshot" src="assets/images/screenshot.png">
</div> </div>
<div class="flex flex-col items-center mt-10"> <div class="flex flex-col items-center mt-10">
@ -55,9 +55,9 @@
</div> </div>
<div class="flex justify-center space-x-2 mt-12"> <div class="flex justify-center space-x-2 mt-12">
<img src="https://badges.fw-web.space/github/license/muety/wakapi?color=%232F855A&style=flat-square"> <img alt="License badge" src="https://badges.fw-web.space/github/license/muety/wakapi?color=%232F855A&style=flat-square">
<img src="https://badges.fw-web.space/github/go-mod/go-version/muety/wakapi?color=%232F855A&style=flat-square"> <img alt="Go version badge" src="https://badges.fw-web.space/github/go-mod/go-version/muety/wakapi?color=%232F855A&style=flat-square">
<img src="https://badges.fw-web.space/endpoint?color=%232F855A&style=flat-square&label=wakapi&url=https://wakapi.dev/api/compat/shields/v1/n1try/interval:any/project:wakapi"> <img alt="Wakapi coding time badge" src="https://badges.fw-web.space/endpoint?color=%232F855A&style=flat-square&label=wakapi&url=https://wakapi.dev/api/compat/shields/v1/n1try/interval:any/project:wakapi">
</div> </div>
</div> </div>
</main> </main>