From 0dcef0d4d35cadd40ef908c2de3396cc56721949 Mon Sep 17 00:00:00 2001
From: schneefux
Date: Sun, 17 Jun 2018 14:34:02 +0200
Subject: Adjust TalentTable to fit ReportTable's UX
---
src/HeroTalentTable.vue | 22 +++++++++++++---------
src/ReportTable.vue | 10 ----------
src/RouterParamMixin.js | 8 ++++++++
3 files changed, 21 insertions(+), 19 deletions(-)
(limited to 'src')
diff --git a/src/HeroTalentTable.vue b/src/HeroTalentTable.vue
index 5c3545b..6bd228a 100644
--- a/src/HeroTalentTable.vue
+++ b/src/HeroTalentTable.vue
@@ -6,29 +6,33 @@
+
+
+ {{ props.column.label }}
+
+
+
-
+
- {{ (100 * props.row.Winner).toFixed(2) }}%
+ {{ (100 * props.row.Winner).toFixed(2) }}%
{{ (100 * props.row.TalentWinrateBase).toFixed(2) }}%
+ uncertain
-
-
-
-
-
- {{ (props.row.TalentWinrateScaling > 0? '+' : '') + (100 * props.row.TalentWinrateScaling / getLevelBuckets()).toFixed(2) }}% for {{ getLevelsPerBucket(props.row) + (getLevelsPerBucket(props.row) > 1? ' Levels' : ' Level') }}
+
+
+ {{ (100 * props.row.TalentWinrateMax).toFixed(2) }}%
+ uncertain
-
diff --git a/src/ReportTable.vue b/src/ReportTable.vue
index 8a0d617..5c78277 100644
--- a/src/ReportTable.vue
+++ b/src/ReportTable.vue
@@ -12,9 +12,6 @@
{{ rarity }} Talents
-
-
-
@@ -119,7 +116,6 @@ export default Vue.component('report-table', {
const giveTrue = (x) => true;
const filters = [
this.filterRarity != ''? (entry) => maps.getTalentRarity(entry.Talent) == this.filterRarity : giveTrue,
- this.filterName != ''? (entry) => maps.getHero(entry.Actor).includes(this.filterName) || maps.getTalentName(entry.Talent).includes(this.filterName) : giveTrue,
!this.filterLowPickrate? (entry) => !entry.SampleTooSmall : giveTrue,
];
const and = (a, b) => a && b;
@@ -129,12 +125,6 @@ export default Vue.component('report-table', {
totalPicks: function() {
return ReportService.getTotalPicks(this.selectedMode);
},
- playersPerMatch: function() {
- return maps.playersPerMatch(this.selectedMode);
- },
- hasTalents: function() {
- return maps.hasTalents(this.selectedMode);
- },
},
components: {
HeroImage,
diff --git a/src/RouterParamMixin.js b/src/RouterParamMixin.js
index 0c5dbc3..cf42920 100644
--- a/src/RouterParamMixin.js
+++ b/src/RouterParamMixin.js
@@ -1,5 +1,13 @@
+import * as maps from './maps/maps';
+
export default {
computed: {
+ playersPerMatch: function() {
+ return maps.playersPerMatch(this.selectedMode);
+ },
+ hasTalents: function() {
+ return maps.hasTalents(this.selectedMode);
+ },
selectedActor: {
get: function() {
return this.$route.query.actor || '*Kinetic*';
--
cgit v1.3.1