mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
feat: add global kda
This commit is contained in:
parent
8207d7d6e9
commit
06f7a97fc9
2 changed files with 8 additions and 0 deletions
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -20,6 +20,10 @@ Vue.filter('percent', (value) => {
|
|||
return `${+value.toFixed(2)}%`
|
||||
})
|
||||
|
||||
Vue.filter('round', (value) => {
|
||||
return `${+value.toFixed(2)}`
|
||||
})
|
||||
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
|
|
|
|||
Loading…
Reference in a new issue