From b5ee82cf1afe2be006753a4aab6788df56bc4737 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Fri, 2 Aug 2024 12:08:24 +0700 Subject: [PATCH] UBERF-7776: Get rid of blobs in UI (#6226) --- .../src/components/FilePreview.svelte | 17 +- .../src/components/FilePreviewPopup.svelte | 21 +-- .../src/components/PDFViewer.svelte | 6 +- packages/presentation/src/preview.ts | 158 ++---------------- packages/presentation/src/utils.ts | 13 -- packages/storage/src/index.ts | 39 +---- .../src/components/AttachmentActions.svelte | 49 +++--- .../src/components/AttachmentDocList.svelte | 5 - .../AttachmentGalleryPresenter.svelte | 86 +++++----- .../components/AttachmentImagePreview.svelte | 2 +- .../src/components/AttachmentPopup.svelte | 5 - .../src/components/AttachmentPresenter.svelte | 5 +- .../src/components/AttachmentPreview.svelte | 2 +- .../src/components/AttachmentRefInput.svelte | 5 - .../AttachmentStyleBoxCollabEditor.svelte | 9 +- .../src/components/AttachmentStyledBox.svelte | 5 - .../components/AttachmentVideoPreview.svelte | 6 +- .../components/AttachmentsGalleryView.svelte | 11 +- .../src/components/AttachmentsListView.svelte | 11 +- .../src/components/AudioPlayer.svelte | 12 +- .../src/components/FileBrowser.svelte | 5 +- .../src/components/MediaViewer.svelte | 4 +- .../src/components/Photos.svelte | 13 +- .../EditChannelDescriptionAttachments.svelte | 17 +- .../chat-message/ChatMessagePreview.svelte | 5 - .../src/components/AvatarRef.svelte | 2 +- plugins/contact-resources/src/index.ts | 10 +- plugins/contact-resources/src/utils.ts | 22 +-- .../src/components/EditFile.svelte | 29 ++-- .../src/components/EditFileVersions.svelte | 1 - .../src/components/FileAside.svelte | 4 - .../src/components/FilePanel.svelte | 22 ++- .../components/FileVersionPresenter.svelte | 10 +- .../src/components/Thumbnail.svelte | 2 +- plugins/drive-resources/src/index.ts | 6 +- .../src/components/FullMessage.svelte | 5 - .../src/components/FullMessagePopup.svelte | 5 - .../src/components/CreateCandidate.svelte | 3 +- .../src/components/TypesView.svelte | 1 + .../src/components/extension/fileExt.ts | 2 + .../src/components/extension/imageExt.ts | 20 ++- .../src/kits/editor-kit.ts | 22 +-- .../src/provider/storage.ts | 16 +- .../src/components/TableBrowser.svelte | 1 + .../src/components/viewer/AudioPlayer.svelte | 8 +- .../src/components/viewer/AudioViewer.svelte | 4 +- .../src/components/viewer/ImageViewer.svelte | 4 +- .../src/components/viewer/PDFViewer.svelte | 9 +- .../src/components/viewer/VideoViewer.svelte | 21 +-- server/core/src/__tests__/aggregator.spec.ts | 14 -- server/core/src/__tests__/memAdapters.ts | 23 +-- server/core/src/server/aggregator.ts | 41 +---- server/core/src/types.ts | 2 - server/front/readme.md | 2 +- server/middleware/src/blobs.ts | 120 ------------- server/middleware/src/index.ts | 1 - server/minio/src/index.ts | 27 +-- server/s3/src/index.ts | 51 +----- server/server-pipeline/src/pipeline.ts | 2 - server/server-storage/src/starter.ts | 5 +- .../src/tests/testConfig.spec.ts | 15 -- 61 files changed, 240 insertions(+), 803 deletions(-) delete mode 100644 server/middleware/src/blobs.ts diff --git a/packages/presentation/src/components/FilePreview.svelte b/packages/presentation/src/components/FilePreview.svelte index 4397b1173c..00988014c5 100644 --- a/packages/presentation/src/components/FilePreview.svelte +++ b/packages/presentation/src/components/FilePreview.svelte @@ -13,18 +13,18 @@ // limitations under the License. -->
{:else if previewType !== undefined} - + {:else}