From 64b618d0bfa8f01c8decf8a9369c722e8a132fff Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Wed, 17 Mar 2021 21:20:03 +0100 Subject: [PATCH] Using react to render the image preview and removed the main app template --- scripts/travis/build.sh | 1 - shared/html/templates.html | 23 ----- .../img/client-icons/image_preview_browse.svg | 3 + shared/img/icon_image_preview_browse.svg | 1 - shared/js/main.tsx | 17 ---- shared/js/text/bbcode/image.tsx | 4 +- shared/js/ui/AppRenderer.scss | 98 +++++++++---------- shared/js/ui/AppRenderer.tsx | 9 +- shared/js/ui/frames/ImagePreview.scss | 89 +++++++++++++++++ shared/js/ui/frames/ImagePreview.tsx | 79 +++++++++++++++ shared/js/ui/frames/image_preview.ts | 81 --------------- shared/js/ui/frames/side/MusicBotRenderer.tsx | 4 +- .../ui/frames/side/MusicPlaylistRenderer.tsx | 4 +- shared/js/ui/react-elements/Avatar.tsx | 6 +- shared/svg-sprites/client-icons.d.ts | 5 +- web/app/ui/menu-bar/Renderer.scss | 1 + 16 files changed, 239 insertions(+), 186 deletions(-) create mode 100644 shared/img/client-icons/image_preview_browse.svg delete mode 100644 shared/img/icon_image_preview_browse.svg create mode 100644 shared/js/ui/frames/ImagePreview.scss create mode 100644 shared/js/ui/frames/ImagePreview.tsx delete mode 100644 shared/js/ui/frames/image_preview.ts diff --git a/scripts/travis/build.sh b/scripts/travis/build.sh index 4506b75d..d78c0c83 100644 --- a/scripts/travis/build.sh +++ b/scripts/travis/build.sh @@ -188,7 +188,6 @@ function execute_build_debug() { } chmod +x ./scripts/build.sh -chmod +x ./scripts/web_package.sh if [[ ${build_release} ]]; then execute_build_release fi diff --git a/shared/html/templates.html b/shared/html/templates.html index 68ab5418..80d243c0 100644 --- a/shared/html/templates.html +++ b/shared/html/templates.html @@ -5,29 +5,6 @@ TeaSpeak-Web client templates - -