From b3743c554ac231a2ccfc612bd35e0e0925e4a9f2 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Thu, 23 Jul 2020 20:00:25 +0200 Subject: [PATCH] Finishing the notification system and some fixups for the native client --- loader/app/index.ts | 5 ++++- shared/css/static/modals.scss | 1 + shared/html/templates.html | 4 +++- shared/img/icon_tooltip_notifications.svg | 11 ++++++++++ shared/js/proto.ts | 12 +++++----- shared/js/settings.ts | 16 +++++++++++++- shared/js/ui/frames/log/DispatcherFocus.ts | 8 ++++++- .../js/ui/frames/side/ConversationManager.ts | 22 ++++++++++++++----- shared/js/ui/react-elements/Switch.tsx | 15 ++++++++----- shared/js/ui/react-elements/Tooltip.tsx | 9 ++++++-- webpack-client.config.ts | 3 +++ 11 files changed, 83 insertions(+), 23 deletions(-) create mode 100644 shared/img/icon_tooltip_notifications.svg diff --git a/loader/app/index.ts b/loader/app/index.ts index 710adf41..cb4096c4 100644 --- a/loader/app/index.ts +++ b/loader/app/index.ts @@ -23,4 +23,7 @@ setTimeout(() => appLoader.execute(), 0); export {}; -//window.__REACT_DEVTOOLS_GLOBAL_HOOK__.inject = function () {}; \ No newline at end of file +if(__build.target === "client") { + /* do this so we don't get a react dev tools warning within the client */ + (window as any).__REACT_DEVTOOLS_GLOBAL_HOOK__.inject = function () {}; +} \ No newline at end of file diff --git a/shared/css/static/modals.scss b/shared/css/static/modals.scss index bffef800..7b580e43 100644 --- a/shared/css/static/modals.scss +++ b/shared/css/static/modals.scss @@ -8,6 +8,7 @@ border-width: 0 .2em .2em 0; padding: .21em; height: .5em; + width: .5em; &.right { transform: rotate(-45deg); diff --git a/shared/html/templates.html b/shared/html/templates.html index 7a35d6e4..fcfe0458 100644 --- a/shared/html/templates.html +++ b/shared/html/templates.html @@ -1828,6 +1828,7 @@
{{tr "Chat" /}}
{{tr "Keymap" /}}
+
{{tr "Notifications" /}}
{{tr "Audio" /}}
{{tr "Microphone" /}}
@@ -1889,7 +1890,8 @@
{{tr "GU" /}}
-
+
+