From 4591b56f7f7c1b9a8f857e37714f15ff78c0e4a8 Mon Sep 17 00:00:00 2001 From: Josh Perez <60019601+josh-signal@users.noreply.github.com> Date: Tue, 14 Mar 2023 11:55:31 -0400 Subject: [PATCH] Enables sandbox on about window --- .eslintignore | 2 + .gitignore | 2 + .prettierignore | 2 + about.html | 4 + app/main.ts | 7 +- package.json | 2 + scripts/esbuild.js | 15 ++++ ts/background.ts | 2 +- ts/components/About.tsx | 14 +-- ts/components/Tooltip.tsx | 3 +- .../InlineNotificationWrapper.tsx | 3 +- ts/context/activeWindowService.ts | 12 +++ ts/context/config.ts | 12 +++ ts/context/environment.ts | 15 ++++ ts/context/i18n.ts | 22 +++++ .../waitForSettingsChange.ts | 0 ts/services/ActiveWindowService.ts | 36 +++++++- .../InteractionMode.ts} | 10 ++- ts/state/getInitialState.ts | 3 +- .../services/ActiveWindowService_test.ts | 32 +++---- ts/util/lint/linter.ts | 2 + ts/window.d.ts | 10 +++ ts/windows/about/app.tsx | 24 +++++ ts/windows/about/preload.ts | 87 ++++++++++++------- ts/windows/context.ts | 30 ++----- ts/windows/init.ts | 2 +- ts/windows/settings/preload.ts | 2 +- 27 files changed, 262 insertions(+), 93 deletions(-) create mode 100644 ts/context/activeWindowService.ts create mode 100644 ts/context/config.ts create mode 100644 ts/context/environment.ts create mode 100644 ts/context/i18n.ts rename ts/{windows => context}/waitForSettingsChange.ts (100%) rename ts/{windows/startInteractionMode.ts => services/InteractionMode.ts} (89%) create mode 100644 ts/windows/about/app.tsx diff --git a/.eslintignore b/.eslintignore index c6631e5f6873..1ec3c5e12a98 100644 --- a/.eslintignore +++ b/.eslintignore @@ -28,3 +28,5 @@ sticker-creator/**/*.js .eslintrc.js webpack.config.ts preload.bundle.* +about.browser.bundle.* +about.preload.bundle.* diff --git a/.gitignore b/.gitignore index 881b436355cd..1a0e01389ffe 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,8 @@ libtextsecure/components.js stylesheets/*.css /storybook-static/ preload.bundle.* +about.browser.bundle.* +about.preload.bundle.* ts/sql/mainWorker.bundle.js.LICENSE.txt # React / TypeScript diff --git a/.prettierignore b/.prettierignore index c4bdad39484e..d404a3229150 100644 --- a/.prettierignore +++ b/.prettierignore @@ -43,3 +43,5 @@ js/WebAudioRecorderMp3.js stylesheets/_intlTelInput.scss preload.bundle.* +about.browser.bundle.* +about.preload.bundle.* diff --git a/about.html b/about.html index 81185ccefdf5..e5e5e921d3dd 100644 --- a/about.html +++ b/about.html @@ -30,5 +30,9 @@
+