From 33a386d58d8d4e78d9e370b159c286da2a47d6cd Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 11 May 2018 19:38:03 +0200 Subject: improve formatting --- src/App.vue | 66 ++++++++++++++++++++++++----------------------------- src/ReportTable.vue | 46 ++++++++++++++++++------------------- src/TalentBox.vue | 22 +++++++++--------- 3 files changed, 64 insertions(+), 70 deletions(-) (limited to 'src') diff --git a/src/App.vue b/src/App.vue index 8affd42..a994a01 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,47 +3,41 @@
-

- Vainglory Broken Talents Fun Statistics -

-

- Tilting Brawlers since May 2017 -

+

Vainglory Broken Talents Fun Statistics

+

Tilting Brawlers since May 2017

-
- - -
-
- - {{ Math.round(100 * topWins.blitz_pvp_ranked.Winner) }}% Win Rate - -
+ + +
+
+ + {{ Math.round(100 * topWins.blitz_pvp_ranked.Winner) }}% Win Rate + +
-
- - {{ (100 * 6 * topPicks.blitz_pvp_ranked.Count / totalPicks.blitz_pvp_ranked).toFixed(2) }}% Pick Rate - -
-
+
+ + {{ (100 * 6 * topPicks.blitz_pvp_ranked.Count / totalPicks.blitz_pvp_ranked).toFixed(2) }}% Pick Rate + +
+
-

Blitz Hero Statistics

- -
+

Blitz Hero Statistics

+ + - -

Battle Royale Hero Statistics

- -
-
-
+ +

Battle Royale Hero Statistics

+ +
+ @@ -66,8 +60,8 @@ for(let mode of MODES) { totalPicks[mode] = report.map((entry) => entry.Count).reduce((agg, cur) => agg + cur, 0); topPicks[mode] = reports[mode].sort((entry1, entry2) => entry2.Count - entry1.Count)[0]; topWins[mode] = reports[mode] - .filter((entry) => 100 * 6 * entry.Count / totalPicks[mode] > 0.05) - .sort((entry1, entry2) => entry2.Winner - entry1.Winner)[0]; + .filter((entry) => 100 * 6 * entry.Count / totalPicks[mode] > 0.05) + .sort((entry1, entry2) => entry2.Winner - entry1.Winner)[0]; } export default { diff --git a/src/ReportTable.vue b/src/ReportTable.vue index 8550939..00ef643 100644 --- a/src/ReportTable.vue +++ b/src/ReportTable.vue @@ -3,33 +3,33 @@ - diff --git a/src/TalentBox.vue b/src/TalentBox.vue index eb6b4a8..c779e12 100644 --- a/src/TalentBox.vue +++ b/src/TalentBox.vue @@ -24,18 +24,18 @@ import Vue from 'vue'; import * as maps from './maps/maps'; export default Vue.component('talent-box', { - props: [ 'title', 'content', 'entry' ], - data: function() { - return { - }; + props: [ 'title', 'content', 'entry' ], + data: function() { + return { + }; + }, + computed: { + hero: function() { + return maps.getHero(this.entry.Actor); }, - computed: { - hero: function() { - return maps.getHero(this.entry.Actor); - }, - rarity: function() { - return maps.getTalentRarity(this.entry.Talent); - }, + rarity: function() { + return maps.getTalentRarity(this.entry.Talent); }, + }, }); -- cgit v1.3.1