From 7c1ce3366d7d894115197cb2941a21550c06b37f Mon Sep 17 00:00:00 2001
From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
Date: Tue, 30 Nov 2021 18:51:53 +0100
Subject: [PATCH] Move StandaloneRegistration to React
---
app/main.ts | 4 +
background.html | 38 -
bower.json | 1 -
package.json | 3 +-
preload.js | 1 -
stylesheets/_global.scss | 21 +
stylesheets/_options.scss | 11 +-
test/index.html | 38 -
ts/background.ts | 8 +
ts/challenge.ts | 25 +-
ts/components/App.tsx | 22 +-
ts/components/StandaloneRegistration.tsx | 268 ++++-
ts/state/smart/App.tsx | 16 +
ts/textsecure/AccountManager.ts | 8 +-
ts/textsecure/WebAPI.ts | 12 +-
ts/util/lint/exceptions.json | 1163 ++--------------------
ts/views/phone_input_view.ts | 38 -
ts/views/standalone_registration_view.ts | 117 ---
ts/window.d.ts | 1 -
yarn.lock | 15 +-
20 files changed, 452 insertions(+), 1358 deletions(-)
delete mode 100644 ts/views/phone_input_view.ts
delete mode 100644 ts/views/standalone_registration_view.ts
diff --git a/app/main.ts b/app/main.ts
index 7e0ecb6bcc..20a518d28c 100644
--- a/app/main.ts
+++ b/app/main.ts
@@ -1759,6 +1759,10 @@ app.on('will-finish-launching', () => {
if (isCaptchaHref(incomingHref, getLogger())) {
const { captcha } = parseCaptchaHref(incomingHref, getLogger());
challengeHandler.handleCaptcha(captcha);
+
+ // Show window after handling captcha
+ showWindow();
+
return;
}
diff --git a/background.html b/background.html
index 4a63164848..885c94ea1f 100644
--- a/background.html
+++ b/background.html
@@ -85,14 +85,6 @@
-
-
-
-
-
-
-
-