diff --git a/src/components/GeneratePage.vue b/src/components/GeneratePage.vue index 92286fd..d9bfe29 100644 --- a/src/components/GeneratePage.vue +++ b/src/components/GeneratePage.vue @@ -85,7 +85,6 @@ export default { getRotation: function() { let num = Math.floor(Math.random() * 15); let neg = Math.floor(Math.random() * 2); - console.log(neg); return neg == 0 ? -num : num; }, getColorClass: function(number) { @@ -111,7 +110,6 @@ body { margin: 0; color: #333333; font-family: sans-serif; - max-width: 1400px; padding-bottom: 30px; } .header-link { @@ -174,6 +172,8 @@ input { flex-direction: row; flex-wrap: wrap; justify-content: center; + max-width: 1400px; + margin: auto; } .color-box { width: 150px; diff --git a/src/components/RegisterPage.vue b/src/components/RegisterPage.vue index 2d5e0dc..8cd28ec 100644 --- a/src/components/RegisterPage.vue +++ b/src/components/RegisterPage.vue @@ -66,8 +66,6 @@ export default { }, methods: { addWinner: function(event) { - console.log("clicked"); - this.winners.push({ name: "", color: "", @@ -133,7 +131,6 @@ export default { body: JSON.stringify(sendObject) }); let response = await _response.json(); - console.log(response); if (response == true) { alert("Sendt!"); window.location.reload(); diff --git a/src/components/VinlottisPage.vue b/src/components/VinlottisPage.vue index d46c71d..2e8df9c 100644 --- a/src/components/VinlottisPage.vue +++ b/src/components/VinlottisPage.vue @@ -43,7 +43,6 @@ body { margin: 0; color: #333333; font-family: sans-serif; - max-width: 1400px; padding-bottom: 30px; } @@ -101,6 +100,8 @@ h1 { justify-content: center; align-items: center; width: 100vw; + max-width: 1400px; + margin: auto; padding: 50px 0; } diff --git a/src/ui/PurchaseGraph.vue b/src/ui/PurchaseGraph.vue index 7b5d4e0..8a6e077 100644 --- a/src/ui/PurchaseGraph.vue +++ b/src/ui/PurchaseGraph.vue @@ -11,7 +11,6 @@ export default { async mounted() { let canvas = this.$refs["purchase-chart"].getContext("2d"); - console.log(canvas); let _response = await fetch("/api/purchase/statistics"); let response = await _response.json(); let labels = []; diff --git a/src/ui/TotalBought.vue b/src/ui/TotalBought.vue index 9690221..94d0fd9 100644 --- a/src/ui/TotalBought.vue +++ b/src/ui/TotalBought.vue @@ -98,6 +98,8 @@ export default { display: flex; flex-direction: row; width: 100vw; + max-width: 1400px; + margin: auto; justify-content: space-around; font-family: sans-serif; } diff --git a/src/ui/WinGraph.vue b/src/ui/WinGraph.vue index f68ded0..db8185f 100644 --- a/src/ui/WinGraph.vue +++ b/src/ui/WinGraph.vue @@ -9,7 +9,6 @@ export default { async mounted() { let canvas = this.$refs["win-chart"].getContext("2d"); - console.log(canvas); let _response = await fetch("/api/purchase/statistics/color"); let response = await _response.json(); let labels = ["Vunnet"]; @@ -61,7 +60,6 @@ export default { labels: labels, datasets: datasets }; - console.log(datasets); let chart = new Chart(canvas, { type: "bar", data: chartdata,