From 7a351893abcdaf09b7592527aa4043162f170727 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Wed, 5 May 2021 16:28:10 +0200 Subject: [PATCH] Reworked the icon upload and select modal and fixed some minor css issues --- ChangeLog.md | 5 + shared/css/static/general.scss | 2 +- shared/html/templates.html | 82 --- shared/js/file/FileManager.tsx | 49 +- shared/js/file/ImageCache.ts | 2 +- shared/js/file/LocalAvatars.ts | 2 +- shared/js/file/LocalIcons.ts | 2 +- shared/js/file/Transfer.ts | 2 + shared/js/file/Utils.ts | 19 +- shared/js/tree/Server.ts | 4 +- shared/js/ui/modal/ModalIconSelect.ts | 661 ----------------- shared/js/ui/modal/ModalServerEdit.ts | 12 +- shared/js/ui/modal/avatar-upload/Renderer.tsx | 4 +- shared/js/ui/modal/channel-edit/Controller.ts | 8 +- shared/js/ui/modal/icon-viewer/Controller.ts | 437 +++++++++++ shared/js/ui/modal/icon-viewer/Definitions.ts | 84 +++ shared/js/ui/modal/icon-viewer/Renderer.scss | 236 ++++++ shared/js/ui/modal/icon-viewer/Renderer.tsx | 679 ++++++++++++++++++ .../js/ui/modal/permission/ModalController.ts | 12 +- .../js/ui/react-elements/ContextDivider.tsx | 28 +- shared/js/ui/react-elements/Icon.scss | 19 + shared/js/ui/react-elements/Icon.tsx | 55 +- shared/js/ui/react-elements/Tab.scss | 12 +- shared/js/ui/react-elements/Tab.tsx | 49 +- .../js/ui/react-elements/modal/Definitions.ts | 19 +- shared/js/ui/react-elements/modal/Registry.ts | 6 + .../modal/external/Controller.ts | 3 +- shared/js/ui/utils/IpcVariable.ts | 70 +- shared/js/ui/utils/Variable.ts | 3 +- shared/js/ui/windows/WindowManager.ts | 3 + web/app/WebWindowManager.ts | 4 +- 31 files changed, 1744 insertions(+), 829 deletions(-) delete mode 100644 shared/js/ui/modal/ModalIconSelect.ts create mode 100644 shared/js/ui/modal/icon-viewer/Controller.ts create mode 100644 shared/js/ui/modal/icon-viewer/Definitions.ts create mode 100644 shared/js/ui/modal/icon-viewer/Renderer.scss create mode 100644 shared/js/ui/modal/icon-viewer/Renderer.tsx diff --git a/ChangeLog.md b/ChangeLog.md index ede28bd1..49ba40a8 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,4 +1,9 @@ # Changelog: +* **05.05.21** + - Reworked the icon modal + - Fixed some minor icon and avatar related issues + - Improved icon modal performance + * **29.04.21** - Fixed a bug which caused chat messages to appear twice - Adding support for poping out channel conversations diff --git a/shared/css/static/general.scss b/shared/css/static/general.scss index 4fbf8662..cce79a0b 100644 --- a/shared/css/static/general.scss +++ b/shared/css/static/general.scss @@ -1,7 +1,7 @@ @import "mixin"; :global { /* Avatar/Icon loading animations */ - .icon_loading { + .iconLoading, .icon_loading { border: 2px solid #f3f3f3; /* Light grey */ border-top: 2px solid #3498db; /* Blue */ border-radius: 50%; diff --git a/shared/html/templates.html b/shared/html/templates.html index be86d147..a155d27c 100644 --- a/shared/html/templates.html +++ b/shared/html/templates.html @@ -1823,88 +1823,6 @@ - - - -