diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2018-05-21 13:09:05 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2018-12-13 16:59:33 +0100 |
| commit | aea0fa999fd09951835b2d74c53137624f46929e (patch) | |
| tree | 3d806b7b5c5dd8b95fd07d6f3402d2231cf981d4 /src/BlitzTab.vue | |
| parent | 73e2c234f2f52357b21fd9fe9b956eeabb8ddc62 (diff) | |
| download | brokentalents-aea0fa999fd09951835b2d74c53137624f46929e.tar.gz brokentalents-aea0fa999fd09951835b2d74c53137624f46929e.zip | |
major redesign
Diffstat (limited to 'src/BlitzTab.vue')
| -rw-r--r-- | src/BlitzTab.vue | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/src/BlitzTab.vue b/src/BlitzTab.vue deleted file mode 100644 index 174ac98..0000000 --- a/src/BlitzTab.vue +++ /dev/null @@ -1,67 +0,0 @@ -<template> - <div> - <div class="tile is-ancestor"> - <div class="tile is-parent"> - <talent-box class="tile is-child is-dark notification" - title="Overpowered" - type="Win Rate" - label="%" - :value="Math.round(100 * topWin.Winner)" - :entry="topWin" /> - </div> - - <div class="tile is-parent"> - <talent-box class="tile is-child is-dark notification" - title="Trending" - type="Pick Rate" - label="%" - :value="(100 * 6 * topPick.Count / totalPicks).toFixed(2)" - :entry="topPick" /> - </div> - - <div class="tile is-parent"> - <talent-box class="tile is-child is-dark notification" - title="Highest Level" - type="Average Level" - :value="(highestLevelAvg.Level).toFixed(2)" - :entry="highestLevelAvg" /> - </div> - <div class="tile is-parent"> - <talent-box class="tile is-child is-dark notification" - title="Lowest Level" - type="Average Level" - :value="(lowestLevelAvg.Level).toFixed(2)" - :entry="lowestLevelAvg" /> - </div> - </div> - - <h2 class="title is-2">Blitz Hero Statistics</h2> - <report-table :report="report" :totalPicks="totalPicks"></report-table> - </div> -</template> - -<script> -import Vue from 'vue'; -import ReportTable from './ReportTable.vue'; -import TalentBox from './TalentBox.vue'; - -export default Vue.component('blitz-tab', { - props: [ 'reportService' ], - data: function() { - return { - report: this.reportService.getReport('blitz_pvp_ranked'), - topWin: this.reportService.getTopWin('blitz_pvp_ranked'), - topPick: this.reportService.getTopPick('blitz_pvp_ranked'), - totalPicks: this.reportService.getTotalPicks('blitz_pvp_ranked'), - highestLevelAvg: this.reportService.getHighestLevelAvg('blitz_pvp_ranked'), - lowestLevelAvg: this.reportService.getLowestLevelAvg('blitz_pvp_ranked') - }; - }, - computed: { - }, - components: { - ReportTable, - TalentBox, - }, -}); -</script> |
