From ab3154e37569cf436e45cabb32f140d6e672e826 Mon Sep 17 00:00:00 2001 From: Maksym Sadovnychyy Date: Wed, 7 Sep 2022 21:51:54 +0200 Subject: [PATCH] (feat): media attachments --- db/DML/blogcatalog.json | 644 +++++++++++------- db/DML/shopcatalog.json | 88 ++- .../Abstractions/DomainObjects/PersonBase.cs | 2 +- .../DomainObjects/PostItemBase.cs | 2 +- .../Core/DomainObjects/Documents/BlogItem.cs | 4 +- .../Core/DomainObjects/Documents/ShopItem.cs | 4 +- webapi/Core/DomainObjects/Image.cs | 5 +- .../{ImageL10n.cs => MediaAttachmentL10n.cs} | 15 +- .../Core/DomainObjects/L10n/PostItemL10n.cs | 4 +- .../PageSections/TitleSection.cs | 2 +- webapi/Core/Enumerations/ContentTypes.cs | 11 - webapi/Core/Enumerations/MediaTypes.cs | 15 + webapi/Core/Enumerations/TextFormat.cs | 11 + .../Abstractions/BucketDataProviderBase.cs | 3 +- .../Buckets/IBucketDataProvider.cs | 58 ++ .../Buckets/ImagesBucketDataProvider.cs | 52 +- .../Extensions/ServiceCollectionExtensions.cs | 2 +- webapi/DataProviders/Mappings.cs | 12 +- webapi/ReverseProxy/Program.cs | 6 + .../Properties/launchSettings.json | 28 + webapi/ReverseProxy/ReverseProxy.csproj | 12 + .../ReverseProxy/appsettings.Development.json | 8 + webapi/ReverseProxy/appsettings.json | 29 + .../FileSecurityService/FileCategory.cs | 28 - .../FileSecurityService.cs | 43 +- .../FileSecurityService.csproj | 1 + .../FileSecurityService/FileSignature.cs | 11 +- webapi/WeatherForecast.sln | 8 +- .../Models/Abstractions/PersonModelBase.cs | 2 +- .../Abstractions/PostItemRequestModelBase.cs | 3 + .../Abstractions/PostItemResponseModelBase.cs | 6 +- .../Models/PageSections/TitleSectionModel.cs | 2 +- .../Models/Requests/ImageRequestModel.cs | 4 +- .../Models/Requests/L10n/ImageL10nModel.cs | 6 +- .../Models/Requests/L10n/PostItemL10nModel.cs | 4 +- ...0nModel.cs => MediaAttachmentL10nModel.cs} | 19 +- .../Responses/L10n/PostItemL10nModel.cs | 4 +- ...del.cs => MediaAttachmentResponseModel.cs} | 16 +- .../Responses/ShopCartItemResponseModel.cs | 6 +- .../Services/BlogItemService.cs | 8 +- .../WeatherForecast/Services/FileService.cs | 20 +- .../WeatherForecast/Services/FilesService.cs | 4 +- .../Services/ShopItemService.cs | 8 +- 43 files changed, 755 insertions(+), 465 deletions(-) rename webapi/Core/DomainObjects/L10n/{ImageL10n.cs => MediaAttachmentL10n.cs} (52%) delete mode 100644 webapi/Core/Enumerations/ContentTypes.cs create mode 100644 webapi/Core/Enumerations/MediaTypes.cs create mode 100644 webapi/Core/Enumerations/TextFormat.cs create mode 100644 webapi/DataProviders/Buckets/IBucketDataProvider.cs create mode 100644 webapi/ReverseProxy/Program.cs create mode 100644 webapi/ReverseProxy/Properties/launchSettings.json create mode 100644 webapi/ReverseProxy/ReverseProxy.csproj create mode 100644 webapi/ReverseProxy/appsettings.Development.json create mode 100644 webapi/ReverseProxy/appsettings.json delete mode 100644 webapi/Services/FileSecurityService/FileCategory.cs rename webapi/WeatherForecast/Models/Responses/L10n/{ImageL10nModel.cs => MediaAttachmentL10nModel.cs} (54%) rename webapi/WeatherForecast/Models/Responses/{ImageResponseModel.cs => MediaAttachmentResponseModel.cs} (56%) diff --git a/db/DML/blogcatalog.json b/db/DML/blogcatalog.json index 63864d2..d888da5 100644 --- a/db/DML/blogcatalog.json +++ b/db/DML/blogcatalog.json @@ -10,7 +10,7 @@ "title": "Privacy Terms and Conditions", "shortText": "", "text": "

MAKS-IT<\/strong> considers user's privacy in a serious way and we take responsibility to respect it.<\/p>\r\n\r\n

This Privacy Policy describes the activities of the processing of personal data carried out by MAKS-IT<\/strong> on the website https:\/\/wwww.maks-it.com<\/strong> and related responsibility carried out by the Company.<\/p>\r\n\r\n

MAKS-IT<\/strong> may process personal data when user visits the website and uses its services and features. In website sections where the user's personal data are collected, a specific information is normally published according to the art. 13\/15 of Reg. UE 2016\/679. Where required by Reg. UE 2016\/679 user's agreement will be requested before proceeding the processing of personal data.\r\n\r\nIn case of providing personal data of third parties, the user must ensure that data communication to MAKS-IT<\/strong> and subsequent processing for the purposes specified in the applicable Privacy Policy complies with Reg. UE 2016\/679 and all applicable legislation.<\/p>\r\n\r\n\r\n\r\n

\r\n\r\n\t