From c6db856a18b37ae2e4271690643766e365cb8629 Mon Sep 17 00:00:00 2001 From: Drew Ansbacher Date: Wed, 13 Oct 2021 15:19:25 -0600 Subject: [PATCH] wiz success page --- setup-wizard/src/app/app.component.ts | 2 + .../src/app/pages/success/success.page.html | 62 +++++++++++++++---- .../src/app/pages/success/success.page.ts | 9 +++ 3 files changed, 62 insertions(+), 11 deletions(-) diff --git a/setup-wizard/src/app/app.component.ts b/setup-wizard/src/app/app.component.ts index fcbbccc5c..4cc0c17fa 100644 --- a/setup-wizard/src/app/app.component.ts +++ b/setup-wizard/src/app/app.component.ts @@ -18,6 +18,8 @@ export class AppComponent { ) { } async ngOnInit () { + await this.navCtrl.navigateForward(`/success`) + return try { const status = await this.apiService.getStatus() if (status.migrating || status['product-key']) { diff --git a/setup-wizard/src/app/pages/success/success.page.html b/setup-wizard/src/app/pages/success/success.page.html index b7fd55199..8af06e5f3 100644 --- a/setup-wizard/src/app/pages/success/success.page.html +++ b/setup-wizard/src/app/pages/success/success.page.html @@ -9,30 +9,70 @@ - Setup Complete! + Setup Complete! -
- + + +

Congratulations! In a few minutes, you will be able to access your Embassy via TOR or LAN.

Tor Address:

- +

{{ stateService.torAddress }}

- +
- - -

We suggest you copy and save your tor adress in a safe place. If you happen to loose it, no worries! You can always retrieve it by coming back to {{ window.location.hostname }}.

-
-
- +

We suggest you copy and save your tor adress in a safe place.

+ +
+ +

LAN Instructions (Optional):

+
+
+ + + +

+ Connecting to your Embassy over LAN provides a lightning fast experience and is a reliable fallback in case Tor is having problems. To connect to your Embassy's .local address, you must: +
    +
  1. Be connected to the same Local Area Network (LAN) as your Embassy.
  2. +
  3. Download and trust your Embassy's SSL Certificate Authority (below).
  4. +
+ View the full instructions. +

+
+ + + + +

Download Root CA

+

Download and trust your Embassy's Root Cert

+
+
+
+
+ + + diff --git a/setup-wizard/src/app/pages/success/success.page.ts b/setup-wizard/src/app/pages/success/success.page.ts index 3c7f9cec6..647a6951d 100644 --- a/setup-wizard/src/app/pages/success/success.page.ts +++ b/setup-wizard/src/app/pages/success/success.page.ts @@ -14,6 +14,7 @@ export class SuccessPage { ) { } window = window + lanInstructionsOpen = false async copy (): Promise { let message = '' @@ -54,5 +55,13 @@ export class SuccessPage { return copy } } + + toggleLan () { + this.lanInstructionsOpen = !this.lanInstructionsOpen + } + + installCert () { + document.getElementById('install-cert').click() + } }