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
|
<template>
<div class="container">
<section class="hero is-medium is-bold header">
<div class="hero-body">
<div class="container">
<h1 class="title has-text-white">
Broken Talents
</h1>
<h2 class="subtitle has-text-white">
Vainglory {{ patchVersion }} meta statistics
</h2>
</div>
</div>
</section>
<div class="tabs is-fullwidth">
<ul>
<li v-for="mode in modes" :key="mode" :class="(mode == selectedMode ? 'is-active' : '')">
<a @click="selectedMode = mode">
<span>{{ getMode(mode) }}</span>
</a>
</li>
</ul>
</div>
<mode-tab class="tab"></mode-tab>
<footer class="footer">
<div class="container">
<div class="content has-text-centered">
<p>
Last update: {{ lastUpdate }}, with {{ totalMatches }} matches total.
</p>
<p>
<strong>BrokenTalentsFun</strong>, the Vainglory Talents and Hero win rate statistics site, by <a href="https://schneefux.xyz">@schneefux</a>.
<br />
<a href="https://github.com/BrokenTalents/brokentalents.github.io">Source Code</a>.
Built with the <a href="http://developer.vainglorygame.com">Vainglory API</a>.
Using <a href="https://github.com/oberocks/vainglory-base-stats">Smash's base statistics</a>.
Images by <a href="https://vainglorygame.com">Super Evil Mega Corp</a>, Gwen Icon by Bleeko.
<br />
If you have questions, send a mail to <img src="/dist/assets/contact.png" style="margin-bottom: -4px">.
</p>
<p>
</p>
</div>
</div>
</footer>
</div>
</template>
<style scoped>
.header {
text-align: center;
background:
linear-gradient(
rgba(0, 0, 0, 0.4),
rgba(0, 0, 0, 0.4)
), url('/dist/assets/TalentGrab.jpg') center center;
background-size: cover;
}
.tab {
padding-left: 1em;
padding-right: 1em;
}
</style>
<script>
import ModeTab from './ModeTab.vue';
import RouterParamMixin from './RouterParamMixin';
import ReportService from './ReportService';
import * as maps from './maps/maps';
export default {
name: 'App',
mixins: [ RouterParamMixin ],
data: function() {
return {
totalMatches: Math.floor(ReportService.getTotalMatches()/100)*100,
lastUpdate: ReportService.getLastUpdate(),
modes: ReportService.getModes(),
patchVersion: ReportService.getPatchVersion(),
getMode: maps.getMode,
};
},
components: {
ModeTab,
},
};
</script>
|