From 2f225a54054ae44df2d8fa691efcf247a82f94a1 Mon Sep 17 00:00:00 2001
From: schneefux <schneefux+commit@schneefux.xyz>
Date: Fri, 11 May 2018 20:21:18 +0200
Subject: refactor: create ReportService, move tabs to component

---
 src/BattleRoyaleTab.vue | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 src/BattleRoyaleTab.vue

(limited to 'src/BattleRoyaleTab.vue')

diff --git a/src/BattleRoyaleTab.vue b/src/BattleRoyaleTab.vue
new file mode 100644
index 0000000..48d8b25
--- /dev/null
+++ b/src/BattleRoyaleTab.vue
@@ -0,0 +1,26 @@
+<template>
+  <div>
+    <h2 class="title is-2">Battle Royale Hero Statistics</h2>
+    <report-table :report="report" :totalPicks="totalPicks"></report-table>
+  </div>
+</template>
+
+<script>
+import Vue from 'vue';
+import ReportTable from './ReportTable.vue';
+
+export default Vue.component('battle-royale-tab', {
+  props: [ 'reportService' ],
+  data: function() {
+    return {
+      report: this.reportService.getReport('casual_aral'),
+      totalPicks: this.reportService.getTotalPicks('casual_aral'),
+    };
+  },
+  computed: {
+  },
+  components: {
+    ReportTable,
+  },
+});
+</script>
-- 
cgit v1.3.1

