From 0cd0e6970a12f93f9cb6846560526b27b1f821da Mon Sep 17 00:00:00 2001 From: Thomas Ballmann Date: Wed, 20 May 2020 21:28:19 +0200 Subject: [PATCH] handle different screen sizes --- app/src/views/Setup/Appearance.vue | 39 +++++----- app/src/views/Setup/Country.vue | 110 +++++++++++++++------------ app/src/views/Setup/Name.vue | 76 ++++++++++--------- app/src/views/Setup/Start.vue | 108 +++++++++++++------------- app/src/views/Setup/Weather.vue | 94 +++++++++++++---------- app/src/views/Setup/Wifi.vue | 118 +++++++++++++++-------------- 6 files changed, 291 insertions(+), 254 deletions(-) diff --git a/app/src/views/Setup/Appearance.vue b/app/src/views/Setup/Appearance.vue index 9003bee..bb0f7fb 100644 --- a/app/src/views/Setup/Appearance.vue +++ b/app/src/views/Setup/Appearance.vue @@ -1,24 +1,27 @@ \ No newline at end of file diff --git a/app/src/views/Setup/Country.vue b/app/src/views/Setup/Country.vue index 901c44b..a54349c 100644 --- a/app/src/views/Setup/Country.vue +++ b/app/src/views/Setup/Country.vue @@ -1,54 +1,58 @@ @@ -111,4 +115,12 @@ export default { } } }; - \ No newline at end of file + + + \ No newline at end of file diff --git a/app/src/views/Setup/Name.vue b/app/src/views/Setup/Name.vue index 08d8b1a..4dc49c3 100644 --- a/app/src/views/Setup/Name.vue +++ b/app/src/views/Setup/Name.vue @@ -1,42 +1,46 @@ @@ -71,13 +75,13 @@ export default { }, methods: { commitStep() { - this.isSaving = true; + this.isSaving = true; - apiDevice.putSettings({device: this.settings.device}, () => { + apiDevice.putSettings({ device: this.settings.device }, () => { this.isSaving = false; this.nextStep(); - }); + }); }, nextStep() { this.$router.push("/setup/appearance"); diff --git a/app/src/views/Setup/Start.vue b/app/src/views/Setup/Start.vue index 78c2f0d..dd21600 100644 --- a/app/src/views/Setup/Start.vue +++ b/app/src/views/Setup/Start.vue @@ -1,61 +1,65 @@ diff --git a/app/src/views/Setup/Weather.vue b/app/src/views/Setup/Weather.vue index 5de8336..ffc8a4b 100644 --- a/app/src/views/Setup/Weather.vue +++ b/app/src/views/Setup/Weather.vue @@ -1,45 +1,55 @@ @@ -68,21 +78,21 @@ export default { }, unit() { return this.settings.language === "EN" ? "" : "metric"; - }, - isLocationValid() { - return this.settings.weather.location > 0; - } + }, + isLocationValid() { + return this.settings.weather.location > 0; + } }, methods: { commitStep() { // TODO sav - this.nextStep(); + this.nextStep(); }, nextStep() { this.$router.push("/setup/name"); - }, + }, registerApiKey() { window.open("http://openweathermap.org/"); } diff --git a/app/src/views/Setup/Wifi.vue b/app/src/views/Setup/Wifi.vue index fd71be1..b8fa94f 100644 --- a/app/src/views/Setup/Wifi.vue +++ b/app/src/views/Setup/Wifi.vue @@ -1,62 +1,66 @@