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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
<template>
<div class="columns is-multiline is-mobile">
<div class="column">
<talent-box class="is-dark notification"
title="Overpowered"
type="Win Rate"
label="%"
:value="Math.round(100 * stats.topWin.Winner)"
:entry="stats.topWin" />
</div>
<div class="column">
<talent-box class="is-dark notification"
title="Trending"
type="Total Pick Rate"
label="%"
:value="(100 * playersPerMatch * stats.topPick.Count / stats.totalPicks).toFixed(2)"
:entry="stats.topPick" />
</div>
<div class="column">
<talent-box class="is-dark notification"
title="Hidden Gem"
type="Win Rate"
label="%"
:value="Math.round(100 * stats.topUnpopularWin.Winner)"
:entry="stats.topUnpopularWin" />
</div>
<div class="column">
<talent-box class="is-dark notification"
title="Highest Level"
type="Average Level"
:value="stats.highestLevelAvg.Level.toFixed(2)"
:entry="stats.highestLevelAvg" />
</div>
<div class="column">
<talent-box class="is-dark notification"
title="Lowest Level"
type="Average Level"
:value="stats.lowestLevelAvg.Level.toFixed(2)"
:entry="stats.lowestLevelAvg" />
</div>
<div class="column">
<talent-box class="is-dark notification"
title="Best Rare"
type="Win Rate"
label="%"
:value="Math.round(100 * stats.topRareWin.Winner)"
:entry="stats.topRareWin" />
</div>
<div class="column">
<talent-box class="is-dark notification"
title="Best Epic"
type="Win Rate"
label="%"
:value="Math.round(100 * stats.topEpicWin.Winner)"
:entry="stats.topEpicWin" />
</div>
<div class="column">
<talent-box class="is-dark notification"
title="Best Legendary"
type="Win Rate"
label="%"
:value="Math.round(100 * stats.topLegendaryWin.Winner)"
:entry="stats.topLegendaryWin" />
</div>
</div>
</template>
<script>
import Vue from 'vue';
import TalentBox from './TalentBox.vue';
import RouterParamMixin from './RouterParamMixin';
import ReportService from './ReportService';
import * as maps from './maps/maps.js';
export default Vue.component('highlights', {
mixins: [ RouterParamMixin ],
computed: {
stats: function() {
return {
topWin: ReportService.getTopWin(this.selectedMode),
topUnpopularWin: ReportService.getTopUnpopularWin(this.selectedMode),
topPick: ReportService.getTopPick(this.selectedMode),
totalPicks: ReportService.getTotalPicks(this.selectedMode),
highestLevelAvg: ReportService.getHighestLevelAvg(this.selectedMode),
topRareWin: ReportService.getTopRareWins(this.selectedMode),
topEpicWin: ReportService.getTopEpicWins(this.selectedMode),
topLegendaryWin: ReportService.getTopLegendaryWins(this.selectedMode),
lowestLevelAvg: ReportService.getLowestLevelAvg(this.selectedMode),
};
},
playersPerMatch: function() {
return maps.playersPerMatch(this.selectedMode);
},
},
components: {
TalentBox,
},
});
</script>
|