blob: f8d1b54ef051449195a5da7508154d38ae266399 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
<template>
<div>
<div class="tile is-ancestor">
<div class="tile is-parent">
<talent-box class="tile is-child is-dark notification"
title="Overpowered"
type="Win Rate"
label="%"
:value="Math.round(100 * topWin.Winner)"
:entry="topWin" />
</div>
<div class="tile is-parent">
<talent-box class="tile is-child is-dark notification"
title="Trending"
type="Pick Rate"
label="%"
:value="(100 * 6 * topPick.Count / totalPicks).toFixed(2)"
:entry="topPick" />
</div>
<div class="tile is-parent">
<talent-box class="tile is-child is-dark notification"
title="Highest Leveled Up"
type="Avg Level"
:value="(highestLevelAvg.Level).toFixed(2)"
:entry="highestLevelAvg" />
</div>
<div class="tile is-parent">
<talent-box class="tile is-child is-dark notification"
title="Lowest Leveled Up"
type="Avg Level"
:value="(lowestLevelAvg.Level).toFixed(2)"
:entry="lowestLevelAvg" />
</div>
</div>
<h2 class="title is-2">Blitz Hero Statistics</h2>
<report-table :report="report" :totalPicks="totalPicks"></report-table>
</div>
</template>
<script>
import Vue from 'vue';
import ReportTable from './ReportTable.vue';
import TalentBox from './TalentBox.vue';
export default Vue.component('blitz-tab', {
props: [ 'reportService' ],
data: function() {
return {
report: this.reportService.getReport('blitz_pvp_ranked'),
topWin: this.reportService.getTopWin('blitz_pvp_ranked'),
topPick: this.reportService.getTopPick('blitz_pvp_ranked'),
totalPicks: this.reportService.getTotalPicks('blitz_pvp_ranked'),
highestLevelAvg: this.reportService.getHighestLevelAvg('blitz_pvp_ranked'),
lowestLevelAvg: this.reportService.getLowestLevelAvg('blitz_pvp_ranked')
};
},
computed: {
},
components: {
ReportTable,
TalentBox,
},
});
</script>
|