From 84aef89bbb77fecb043a2fef02d38b302114e4b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Thu, 23 Jan 2020 09:29:50 +0100 Subject: [PATCH] Variables and colors --- src/Vinlottis.vue | 1 + src/components/CreatePage.vue | 14 ++-- src/components/GeneratePage.vue | 111 +++++++++++++++++-------------- src/components/LoginPage.vue | 5 +- src/components/RegisterPage.vue | 22 +++++- src/components/VinlottisPage.vue | 34 +++------- src/styles/global.scss | 15 ++++- src/styles/variables.scss | 15 +++++ src/ui/PurchaseGraph.vue | 25 ++++--- src/ui/TotalBought.vue | 13 ++-- src/ui/Vipps.vue | 10 ++- src/ui/WinGraph.vue | 11 +-- src/ui/Wines.vue | 2 +- 13 files changed, 167 insertions(+), 111 deletions(-) create mode 100644 src/styles/variables.scss diff --git a/src/Vinlottis.vue b/src/Vinlottis.vue index f57be97..6f05391 100644 --- a/src/Vinlottis.vue +++ b/src/Vinlottis.vue @@ -24,6 +24,7 @@ export default { + diff --git a/src/ui/WinGraph.vue b/src/ui/WinGraph.vue index 4470c23..f64a88e 100644 --- a/src/ui/WinGraph.vue +++ b/src/ui/WinGraph.vue @@ -9,11 +9,12 @@ export default { async mounted() { let canvas = this.$refs["win-chart"].getContext("2d"); - let _response = undefined - if (process.env.NODE_ENV == 'development') { - _response = await fetch("http://localhost:30030/api/purchase/statistics/color"); - } - else { + let _response = undefined; + if (process.env.NODE_ENV == "development") { + _response = await fetch( + "http://localhost:30030/api/purchase/statistics/color" + ); + } else { _response = await fetch("/api/purchase/statistics/color"); } let response = await _response.json(); diff --git a/src/ui/Wines.vue b/src/ui/Wines.vue index 2f06997..974dae7 100644 --- a/src/ui/Wines.vue +++ b/src/ui/Wines.vue @@ -42,7 +42,7 @@ h3 { } div { margin: 15px 0 0 0; - font-family: "knowit"; + font-family: arial; display: inline-flex; flex-direction: column; }