feat: add global kda

This commit is contained in:
Valentin Kaelin 2019-11-08 16:04:02 +01:00
parent 8207d7d6e9
commit 06f7a97fc9
2 changed files with 8 additions and 0 deletions

View file

@ -78,6 +78,10 @@
<div class="w-1/4 text-left whitespace-no-wrap">kill participation</div>
<div class="w-1/4">{{ globalStats.kp|percent }}</div>
</li>
<li class="flex justify-between items-center px-4 py-1 leading-tight">
<div class="w-1/4 text-left whitespace-no-wrap">kda</div>
<div class="w-1/4">{{ globalStats.kills / globalStats.deaths|round }}</div>
</li>
</ul>
<template v-if="leagueStatsByType('Ranked').length">
<div class="mt-3 px-4 flex items-baseline font-bold text-sm text-blue-300 uppercase">

View file

@ -20,6 +20,10 @@ Vue.filter('percent', (value) => {
return `${+value.toFixed(2)}%`
})
Vue.filter('round', (value) => {
return `${+value.toFixed(2)}`
})
new Vue({
router,
store,