Commit Graph

868 Commits

Author SHA1 Message Date
Warren Buckley
9671a08be2 Ensure Nuget dependencies are upto date excpet NPoco as breaking changes in major 2021-08-18 11:38:23 +01:00
Elitsa Marinovska
81ea232ecb Merge remote-tracking branch 'origin/v9/dev' into v9/bugfix/Refractor_UmbracoContextAccessor 2021-08-17 13:11:45 +02:00
Elitsa Marinovska
e9b697b0c2 Cleanup 2021-08-17 13:10:13 +02:00
Elitsa Marinovska
d8b3a1bbe5 Get rid of some more duplicate code 2021-08-17 13:09:25 +02:00
Zeegaan
285c9c92b5 Fixed duplications 2021-08-17 11:41:28 +02:00
Nikolaj Geisle
9fe0a40b63 Update src/Umbraco.Web.Common/AspNetCore/AspNetCoreBackOfficeInfo.cs
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-08-17 11:09:53 +02:00
Zeegaan
d9a7727175 implemented checking if "_httpContextAccessor" is null 2021-08-17 10:21:00 +02:00
Zeegaan
45bbaafde9 fixed todo in AspNetCore Backoffice 2021-08-17 09:55:57 +02:00
Zeegaan
d51fed4f6d Fixed UmbracoHelperAccessor to do a null check 2021-08-17 08:34:01 +02:00
Bjarke Berg
f6bd3a1eec Merge pull request #10861 from nzdev/v9/bugfix/trimstart-arrays
Reduce allocations by using existing CharArrays for TrimStart()
2021-08-17 08:07:14 +02:00
Bjarke Berg
bab7545a6d Merge pull request #10862 from nzdev/v9/bugfix/razor-event-cleanup
Cleanup _inMemoryModelFactory.ModelsChanged event on dispose in  RefreshingRazorViewEngine
2021-08-17 08:06:17 +02:00
Bjarke Berg
831efead10 Merge pull request #10623 from umbraco/v9/bugfix/image-cropping
V9: Fix ImageSharp integration and add support for custom crops
2021-08-17 07:49:32 +02:00
Zeegaan
4e2d9159f4 Merged v9/dev into this branch 2021-08-16 12:43:28 +02:00
Ronald Barendse
0b53249d57 Make ImageSharpConfigurationOptions public 2021-08-16 12:11:30 +02:00
Ronald Barendse
43704da869 Remove dimensions if either one is above the configured maximum 2021-08-16 11:12:54 +02:00
Ronald Barendse
992eb58023 Move ImageSharpImageUrlGenerator back to Infrastructure and remove NoopImageUrlGenerator 2021-08-16 11:08:09 +02:00
Zeegaan
33ab3a32ec Merged v9/dev into this branch 2021-08-16 10:41:36 +02:00
Ronald Barendse
42c6aa8d56 Register default ImageSharp configuration for application-wide use 2021-08-16 10:35:37 +02:00
Zeegaan
3c4cefb17d Removed VariationContextAccessor from IUmbracoContext 2021-08-16 08:43:13 +02:00
Chad Currie
c8777c25ff Remove _inMemoryModelFactory.ModelsChanged event handler on dispose 2021-08-15 19:04:36 +12:00
Chad Currie
c72e4f224a use existing CharArrays for TrimStart() to reduce array allocations 2021-08-15 19:02:05 +12:00
Bjarke Berg
cf78027b84 Merge pull request #10850 from umbraco/v9/bugfix/user-roles-fail-if-0
v9: If you didnt have a member group, restricting acces to the public would always lead to error page
2021-08-13 19:15:43 +02:00
Ronald Barendse
a0184d5556 Remove repeated ImageSharp default configuration 2021-08-13 16:04:44 +02:00
Ronald Barendse
36568a0fdc Move ImageSharpImageUrlGenerator to Web.Common and add NoopImageUrlGenerator 2021-08-13 16:01:56 +02:00
Ronald Barendse
74ea311e3c Remove width/height when both are above the configured maximums, add comments/documentation 2021-08-13 14:23:27 +02:00
Zeegaan
683170b04e Removed Unneccesary if check 2021-08-13 10:51:50 +02:00
Nikolaj Geisle
21c762d7de Merge pull request #10838 from umbraco/v9/bugfix/AB13223-fix-absolute-url-provider-mode
V9: Fix RedirectToCurrentUmbracoPage when UrlProviderMode is set to "Absolute"
2021-08-13 09:12:42 +02:00
Shannon
c92e1beaa0 Better debugging when working with external login providers 2021-08-12 15:50:47 -06:00
Laura Neto
7710409be8 Set isMainPage to true on TemplateRenderer.ExecuteTemplateRendering (#10684)
* Set isMainPage to true on TemplateRenderer.ExecuteTemplateRendering (#10683)

* Added comment

* Tweak comment for clarity

Co-authored-by: Paul Johnson <pmj@umbraco.com>
2021-08-12 11:09:21 +01:00
Elitsa Marinovska
185cebb490 Adding a check for when the UrlProviderMode is set to Absolute 2021-08-12 12:08:39 +03:00
Ronald Barendse
8b1bd14df1 Remove ImageCropRatioMode and clean up GetCropUrl overloads 2021-08-12 09:03:02 +02:00
Bjarke Berg
2baa1abfc4 Merge remote-tracking branch 'origin/v8/8.16' into v9/feature/merge_v8_11082021
# Conflicts:
#	.github/CONTRIBUTING.md
#	build/NuSpecs/UmbracoCms.Core.nuspec
#	build/NuSpecs/UmbracoCms.Web.nuspec
#	build/NuSpecs/UmbracoCms.nuspec
#	src/SolutionInfo.cs
#	src/Umbraco.Core/Cache/AppCaches.cs
#	src/Umbraco.Core/Cache/AppPolicedCacheDictionary.cs
#	src/Umbraco.Core/Cache/DeepCloneAppCache.cs
#	src/Umbraco.Core/Cache/WebCachingAppCache.cs
#	src/Umbraco.Core/CompositionExtensions.cs
#	src/Umbraco.Core/Models/Identity/BackOfficeIdentityUser.cs
#	src/Umbraco.Core/Models/PropertyGroupCollection.cs
#	src/Umbraco.Core/Models/PropertyTypeCollection.cs
#	src/Umbraco.Core/Persistence/Repositories/Implement/ExternalLoginRepository.cs
#	src/Umbraco.Core/ReadLock.cs
#	src/Umbraco.Core/Routing/SiteDomainMapper.cs
#	src/Umbraco.Core/UpgradeableReadLock.cs
#	src/Umbraco.Core/WriteLock.cs
#	src/Umbraco.Examine/ExamineExtensions.cs
#	src/Umbraco.Infrastructure/Examine/UmbracoFieldDefinitionCollection.cs
#	src/Umbraco.Infrastructure/Persistence/Dtos/ContentTypeDto.cs
#	src/Umbraco.Infrastructure/Persistence/Dtos/DictionaryDto.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberGroupRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TemplateRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserRepository.cs
#	src/Umbraco.Infrastructure/Services/IdKeyMap.cs
#	src/Umbraco.Infrastructure/Services/Implement/ContentService.cs
#	src/Umbraco.ModelsBuilder.Embedded/PureLiveModelFactory.cs
#	src/Umbraco.Tests/App.config
#	src/Umbraco.Web.BackOffice/Controllers/EntityController.cs
#	src/Umbraco.Web.UI.Client/package.json
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/da.xml
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en_us.xml
#	src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
#	src/Umbraco.Web.UI/Umbraco/config/lang/cy.xml
#	src/Umbraco.Web.UI/web.Template.config
#	src/Umbraco.Web/CacheHelperExtensions.cs
#	src/Umbraco.Web/Editors/RelationTypeController.cs
#	src/Umbraco.Web/Logging/WebProfilerProvider.cs
#	src/Umbraco.Web/Models/Mapping/MemberMapDefinition.cs
#	src/Umbraco.Web/PublishedCache/NuCache/MemberCache.cs
#	src/Umbraco.Web/Routing/ContentFinderByConfigured404.cs
#	src/Umbraco.Web/Routing/NotFoundHandlerHelper.cs
#	src/Umbraco.Web/Security/BackOfficeUserManager.cs
#	src/Umbraco.Web/Umbraco.Web.csproj
2021-08-11 19:11:35 +02:00
Andy Butland
902984f977 Added unit tests for CropWebProcessor and ImageCropperTemplateCoreExtensions. 2021-08-11 17:18:23 +02:00
Zeegaan
c07fe97edd Merge remote-tracking branch 'origin/v9/dev' into v9/bugfix/Refractor_UmbracoContextAccessor 2021-08-11 14:01:00 +02:00
Bjarke Berg
442310d0ea Fixed issue with CachedPartial that cached an unmaterialized value, that could not be used on cache hits. 2021-08-11 13:59:28 +02:00
Zeegaan
f299c6a93b Updated 15 classes to use the new TryGetUmbracoContext and implemented a Set() method in HybridUmbracoContextAccessor 2021-08-11 13:25:17 +02:00
Zeegaan
c3bac00f6e Fixed 11 more classes with new TryGetUmbracoContext 2021-08-11 12:17:35 +02:00
Ronald Barendse
c5361ec54e Improve crop coordinate calculations 2021-08-11 09:53:58 +02:00
Ronald Barendse
01559ede97 Only support crop coordinates in CropWebProcessor 2021-08-10 23:55:37 +02:00
Shannon
01dd9e6f2e Merge branch 'v9/dev' into v9/task/more-flexible-startup
# Conflicts:
#	src/Umbraco.Web.Common/Extensions/ApplicationBuilderExtensions.cs
2021-08-10 13:55:55 -06:00
Ronald Barendse
0753353cf7 Remove obsolete/unused properties and parameters 2021-08-10 13:36:50 +02:00
Ronald Barendse
0b9f1f4f86 Remove usage of obsolete image URL generation properties (width/height ratio, default crop, upscale and animation process mode) 2021-08-10 11:23:37 +02:00
Zeegaan
f3db706808 merged v9/dev into this branch 2021-08-10 11:15:23 +02:00
Zeegaan
5d264fefdb Added a null check to IUmbracoHelperAccessor & IPublishedSnapshotAccessor 2021-08-10 10:55:29 +02:00
Ronald Barendse
50d8e74b5b Obsolete unsupported image URL generation options and update ImageSharp implementation 2021-08-10 10:26:02 +02:00
Ronald Barendse
c21656aff2 Change processor order and fix crop percentage calculation 2021-08-09 14:52:07 +02:00
Ronald Barendse
5cdcd021fa Remove support for whole percentage crop values 2021-08-09 12:00:37 +02:00
Ronald Barendse
fd93248d11 Move CropMode enum into seperate file 2021-08-09 11:59:23 +02:00
Shannon
53bc53a377 Merge remote-tracking branch 'origin/v9/dev' into v9/bugfix/external-login-changes
# Conflicts:
#	src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs
2021-08-06 13:47:41 -06:00
Ronald Barendse
4b85edd1d9 Update ImageSharpImageUrlGenerator 2021-08-06 14:25:09 +02:00