blob: 09bc343f94eb00d9cd676c3b7289fbd8629b879a (
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
|
<template>
<div>
<div class="columns is-multiline">
<div class="column" v-if="hasTalents">
<h2 class="title is-2">Highlights</h2>
<highlights :reportService="reportService"></highlights>
</div>
<div class="column is-narrow">
<h2 class="title is-2">Top 10</h2>
<top-talents-box :reportService="reportService"></top-talents-box>
</div>
</div>
<div class="columns is-multiline" v-if="hasTalents">
<h2 class="title is-2">Individual Hero Statistics</h2>
<div class="column is-two-thirds">
<hero-draft-grid :reportService="reportService"></hero-draft-grid>
</div>
<div class="column is-one-third">
<hero-talent-table :reportService="reportService"></hero-talent-table>
</div>
</div>
<div>
<h2 class="title is-2">All Hero Statistics</h2>
<report-table :reportService="reportService"></report-table>
</div>
</div>
</template>
<script>
import Vue from 'vue';
import Highlights from './Highlights.vue';
import TopTalentsBox from './TopTalentsBox.vue';
import HeroDraftGrid from './HeroDraftGrid.vue';
import HeroTalentTable from './HeroTalentTable.vue';
import ReportTable from './ReportTable.vue';
import RouterParamMixin from './RouterParamMixin';
import * as maps from './maps/maps.js';
export default Vue.component('mode-tab', {
props: [ 'reportService' ],
mixins: [ RouterParamMixin ],
computed: {
hasTalents: function() {
return maps.hasTalents(this.selectedMode);
},
},
components: {
Highlights,
TopTalentsBox,
HeroDraftGrid,
HeroTalentTable,
ReportTable,
},
});
</script>
|