From 49af034c2552f38eb44741cd7db90c1af60448c1 Mon Sep 17 00:00:00 2001 From: Filippo Tortomasi Date: Tue, 27 Apr 2021 12:18:57 +0200 Subject: [PATCH] Improve QR Code pairing instructions --- ionic/src/pages/home/pop-over-qrcode.html | 17 ++++++++--------- ionic/src/pages/welcome/welcome.html | 5 +++-- ionic/src/providers/utils/utils.ts | 4 +--- ionic/src/theme/variables.scss | 5 +++++ 4 files changed, 17 insertions(+), 14 deletions(-) diff --git a/ionic/src/pages/home/pop-over-qrcode.html b/ionic/src/pages/home/pop-over-qrcode.html index ed0dd819..e11c8569 100644 --- a/ionic/src/pages/home/pop-over-qrcode.html +++ b/ionic/src/pages/home/pop-over-qrcode.html @@ -11,20 +11,19 @@ -

+

+ +
- In order to pair the app: + Instructions:
    -
  1. Launch the app
  2. -
  3. Open the - Select server page
  4. -
  5. Tap on the scan icon - -
  6. +
  7. Open the app on your smartphone
  8. +
  9. Open the Select server page by tapping the Wi-Fi shaped icon
  10. +
  11. Tap on the QR Code Pairing button
  12. Scan the QR code above
-
\ No newline at end of file + diff --git a/ionic/src/pages/welcome/welcome.html b/ionic/src/pages/welcome/welcome.html index d73de1e0..27693899 100644 --- a/ionic/src/pages/welcome/welcome.html +++ b/ionic/src/pages/welcome/welcome.html @@ -21,7 +21,8 @@

1) Install the app on your smartphone

2) Launch the app and scan this QR code to connect

- + +

@@ -36,4 +37,4 @@

2) Launch the app and scan this QR code to connect

- \ No newline at end of file + diff --git a/ionic/src/providers/utils/utils.ts b/ionic/src/providers/utils/utils.ts index 0a22e77b..12aa1841 100644 --- a/ionic/src/providers/utils/utils.ts +++ b/ionic/src/providers/utils/utils.ts @@ -44,9 +44,7 @@ export class UtilsProvider { if (defaultLocalAddress) { // Adds the defaultLocalAddress at very beginning of the list localAddresses.unshift(defaultLocalAddress); } - // this.ngZone.run(() => { resolve(Config.URL_PAIR + '/?h=' + encodeURIComponent(hostname) + '&a=' + encodeURIComponent(localAddresses.join('-'))); - // }) }); }) } @@ -131,7 +129,7 @@ export class UtilsProvider { } public upgradeDisplayValue(requireRestart = false) { - return new Promise((resolve, reject) => { + return new Promise((resolve, reject) => { // mark the update as "started" this.store.set('upgraded_displayValue', false); diff --git a/ionic/src/theme/variables.scss b/ionic/src/theme/variables.scss index 7c69785c..68676754 100644 --- a/ionic/src/theme/variables.scss +++ b/ionic/src/theme/variables.scss @@ -170,3 +170,8 @@ blockquote { left: 0; } +.qr-spinner { + width: 100px; + height: 100px; + margin: 50px auto; +}