Compare commits

...
Author SHA1 Message Date
Bjarke Berg 3b35c424a5 Backport of https://github.com/umbraco/Umbraco-CMS/pull/15437 2023-12-12 15:54:37 +01:00
Bjarke Berg 42aaa7dd4d bump version 2023-12-12 15:14:11 +01:00
365621023a Merge pull request from GHSA-cfr5-7p54-4qg8
* Add controller attributes

* Fix up RedirectUrlManagementController to not delete redirects when not enabled

---------

Co-authored-by: Zeegaan <nge@umbraco.dk>
2023-12-11 13:59:59 +01:00
865a3880b9 Merge pull request from GHSA-8qp8-9rpw-j46c
* Added Exception handling and replicated error and info message

* Fixed code so that it works for v8. Added Random Delay to prevent User Enumeration

---------

Co-authored-by: jey <jey@umbraco.dk>
2023-12-11 13:59:35 +01:00
Elitsa MarinovskaandGitHub 1751ff8a8c Merge pull request from GHSA-335x-5wcm-8jv2
* Always taking into account permissions

* Updating with the correct action letter and setting the response when access is denied
2023-12-11 13:39:56 +01:00
Bjarke Berg 7d4a786a7c https://github.com/umbraco/Umbraco-CMS/security/advisories/GHSA-6324-52pr-h4p5 2023-12-11 13:01:21 +01:00
Bjarke Berg 72e996f54d https://github.com/umbraco/Umbraco-CMS/security/advisories/GHSA-xxc6-35r7-796w 2023-12-11 13:01:05 +01:00
Bjarke Berg e8346caa8c Merge remote-tracking branch 'Umbraco-CMS/release/8.18' into v8/8.18
# Conflicts:
#	src/Umbraco.Web/PublishedCache/NuCache/DataSource/DatabaseDataSource.cs
2023-12-11 07:39:26 +01:00
Bjarke BergandGitHub fe076b65f4 V8 implementation of https://github.com/umbraco/Umbraco-CMS/pull/15206 (#15324)
* V8 implementation of https://github.com/umbraco/Umbraco-CMS/pull/15206

* Adapt to v8 legacy code style and possibilities
2023-11-30 09:23:35 +01:00
bb3bfdb54d V8: Backport UsePagedSqlQuery to v8 (#14827)
* backport NuCacheSetting to v8

* Refactor to use v8 standards

---------

Co-authored-by: Zeegaan <nge@umbraco.dk>
2023-11-30 08:11:25 +01:00
Bjarke Berg 04a872fe42 Bump version (without port 2023-11-30 08:08:33 +01:00
9f80baa50b V8: Backport UsePagedSqlQuery to v8 (#14827)
* backport NuCacheSetting to v8

* Refactor to use v8 standards

---------

Co-authored-by: Zeegaan <nge@umbraco.dk>
2023-09-22 10:34:25 +02:00
Nikolaj dac9986ed2 Bump version 2023-08-28 12:32:59 +02:00
Nikolaj 1e1affd328 Merge fixup 2023-08-28 12:27:05 +02:00
Nikolaj ca6d92277a Merge remote-tracking branch 'origin/v8/dev' into v8/8.18
# Conflicts:
#	src/Umbraco.Web/Editors/ImagesController.cs
#	src/Umbraco.Web/PropertyEditors/RichTextEditorPastedImages.cs
2023-08-28 12:24:22 +02:00
MoleandGitHub c8427274b4 Backport #14657 to V8 (#14703)
* Backport the validator

* Update fileupload to use filestream validator

* Use validator for image cropper

* Validate avatar uploads

* Add validation to media controller

* Add translations

* Add tests

* Fix unit tests

* Don't locate the validator in PostSetAvatarInternal

* Move stream validation to immediately before media creation.
2023-08-28 10:47:07 +02:00
40ef4e804d Add PR #14721 to v8 (#14732)
* Add commit 1198c76d67
manually, as files have moved on newer version

* Update src/Umbraco.Core/Persistence/Factories/UserGroupFactory.cs

* SafeCast instead of regular casting

---------

Co-authored-by: Zeegaan <nge@umbraco.dk>
2023-08-28 10:41:57 +02:00
nateandSebastiaan Janssen 53395db518 Update ConvertRelatedLinksToMultiUrlPicker.cs 2023-07-20 14:45:31 +02:00
Jacob OvergaardandGitHub 7217aa9cd8 Persist base64 images from RTE (#14537)
Add method to find and persist base64 images from the RTE property editor to the media library
2023-07-18 14:10:06 +02:00
3cbff23404 V8: TinyMCE - Images upload, drag & drop, and resize (#14500)
* add GetProcessedImageUrl controller to get a new crop url when resizing images in the rich text editor

* tinymce: add extra allowed elements

* cherry-pick fix for imageUploadHandler from v10

* tinymce: handle insert & resize of media

* tinymce: cherry-pick bugfix from v10 where not all editors were able to activate because a random id might start with a number which is not supported out-of-the-box in html

* tinymce: remove unused parameter

* tinymce: cherry-pick bugfix from v10 where sometimes a target anchor would be processed even though it didn't have a url

* tinymce: check that the toolbar is active before getting toolbarItems

* Cherry-pick blob image fix from v10 to v8, and re-factor to work with .NET framework

---------

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2023-07-05 10:40:32 +02:00
Justin NevilleandGitHub 13bff13110 Umbraco 8 - SQL Server 2022 NuCache Error Using JSON Serializer (#14173) 2023-05-19 11:38:05 +02:00
Nikolaj 9799d722f6 Bump version 2023-05-03 09:20:16 +02:00
Nikolaj GeisleandGitHub 7c9364a532 V8: Encode imagepath to handle special characters (#14192)
* Use webutility to encode imagepath

* Align encoding with same as other versions
2023-05-03 07:55:04 +02:00
Nikolaj ca1453ab4e Bump version 2023-03-23 08:45:55 +01:00
Nikolaj 8962c1e636 Convert upload path to absolute 2023-03-23 08:39:44 +01:00
MAIN\KirillandSebastiaan Janssen 196b29c5eb Complete fix for https://github.com/umbraco/Umbraco-CMS/issues/8090 issue.
(cherry picked from commit 309e7fe371)
2023-03-15 08:19:03 +01:00
MAIN\KirillandSebastiaan Janssen 309e7fe371 Complete fix for https://github.com/umbraco/Umbraco-CMS/issues/8090 issue. 2023-03-15 08:16:27 +01:00
Nikolaj 7e4060e90c Bump version 2023-03-14 12:48:04 +01:00
Nikolaj 2d1e40ed5e Merge remote-tracking branch 'origin/v8/dev' into v8/8.18 2023-03-14 12:45:38 +01:00
Bjarke BergandGitHub f4fdd07eff Add allow list for absolute urls (#13962)
* Add allowlist of media hosts.
Not added to the interface to avoid breaking change

* Cleanup
2023-03-14 12:44:28 +01:00
Nikolaj 3ab1957a74 Check the tmpimg path is in the expected folder 2023-03-14 10:38:38 +01:00
MoleandGitHub 352ef47225 Don't replace hyphens and underscores with empty (#13897) 2023-03-07 11:32:34 +01:00
JesseandSebastiaan Janssen c0c106a107 added fix for ncNodeName filter in list view (#13086)
(cherry picked from commit e87701c482)
(cherry picked from commit a3c259482c)
2023-01-17 09:54:21 +01:00
Bjarke Berg 65e3f001c0 https://github.com/umbraco/Umbraco-CMS/issues/12276 (#12295)
Skip surrogate pairs (e.g. emojis) when making clean stings.

(cherry picked from commit 285c7e75a2)
2022-10-04 07:12:19 +02:00
Jacob OvergaardandGitHub db5a0bad7c V8: upgrade backoffice dependencies (#12919) 2022-09-05 15:30:48 +02:00
Nikolaj f29b6d93e6 Bump version to 8.18.5 2022-08-10 10:52:28 +02:00
Nikolaj b934fb7d90 Merge branch 'v8/dev' into v8/8.18 2022-08-10 08:58:03 +02:00
Bjarke BergandGitHub d0f9c9e931 Merge pull request #12812 from umbraco/v8/bugfix/do_not_expose_full_path_when_uploading_content_types
V8: Only expose the filename when uploading content types
2022-08-09 15:58:01 +02:00
Nikolaj 263b9c74f5 Port e2dee8b8c5 to V8 2022-08-09 15:20:34 +02:00
Nikolaj cbc8724df7 Use key as user alias 2022-08-05 13:43:08 +02:00
Bjarke BergandGitHub a4dcdbc5cd Merge pull request #12779 from umbraco/v8/feature/use-RandomNumberGenerator_instead_of_Random_when_generating_passwords
V8: Replace usage of Random().Next with RNGCryptoServiceProvider
2022-08-05 10:02:16 +02:00
nikolajlauridsen 21d5f1b754 Replace usage of Random().Next with RNGCryptoServiceProvider 2022-08-04 10:53:00 +02:00
Sebastiaan Janssen 907a5a69d3 Force the allowed avatar image types 2022-08-02 11:22:34 +02:00
Ronald BarendseandGitHub 087e682f79 v8: Fix Block List settings exception and optimize PVCs (#12594)
* Don't use MapModelType to get model type

* Optimize block list item activation (cache constructors)

* Fix exceptions in NestedContentSingleValueConverter (zero content types or multiple stored items)
2022-06-21 13:47:36 +02:00
Ronald Barendse 6c7053c449 Change web projects TargetFrameworkMoniker to 4.5.2 to stop VS 2022 err 2022-06-20 16:47:28 +02:00
Jacob OvergaardandGitHub 211c86ccbc update jquery to 3.6.0 and jquery-ui to 1.13.1 because of CVE-2021-41184 (#12534) 2022-06-10 08:43:32 +02:00
Bjarke Berg 22df4190bb Fix bug in ReportSiteTask, that means it only send telemetry once per reboot. 2022-06-05 10:52:49 +02:00
MoleandGitHub 7d99708065 Look for the password prop in memberShipProperties (#12395) 2022-05-18 15:02:29 +02:00
Sebastiaan Janssen 59a6abaa84 Bump version to 8.18.4 2022-05-11 11:32:35 +02:00
Sebastiaan Janssen ee1fe5f2d8 Merge branch 'v8/dev' into v8/8.18 2022-05-11 11:31:28 +02:00
74f17eb3f6 Added the Logic to fire OnSaved And OnChanged events when copying (#12330)
* Added the Logic to fire OnSaved And OnChanged events when copying

* Call OnSaving during copy

Co-authored-by: Aleksander <alf@umrabco.dk>
2022-05-11 11:30:20 +02:00
Sebastiaan Janssen 796eb9b25a Merge branch 'v8/dev' into v8/8.18 2022-05-11 11:29:04 +02:00
Paul JohnsonandSebastiaan Janssen 76bcf58953 Avoid creating indexes/keys for tables which don't exist yet. 2022-05-11 11:26:32 +02:00
Søren KottalandSebastiaan Janssen e8c18cda56 Porting fix from #12109
Possible NullReferenceException in MultiUrlPickerValueConverter
2022-05-11 11:24:20 +02:00
9daa15f1fc Ported over the fixes in #11858 "Check media Parent for permissions when setting correct MediaType" to target v8 (#12233)
* Ported over the fixes in the v9 PR #11858 "Check media Parent for permissions when setting correct MediaType" to v8

* reverted weird formatting in lang file

* Fixes

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2022-04-21 13:44:54 +02:00
MoleandGitHub 400f323db4 Do full save on first member login (#12216) 2022-04-20 14:21:36 +02:00
Sebastiaan Janssen 2c0a380d8b Relaxes newtonsoft.json version range, as per #12231 2022-04-07 09:21:42 +02:00
Sebastiaan Janssen 8a73bbb900 Bump version to 8.18.3 2022-04-04 13:12:57 +02:00
Paul JohnsonandSebastiaan Janssen 99629e4712 Fix issue - changing a document type broke the nucache data structure 2022-04-04 13:10:56 +02:00
Sebastiaan Janssen 27ae938099 Bump to 8.18.2 2022-03-23 10:17:26 +01:00
Sebastiaan Janssen edb69eea36 Cherry pick change away from Umbraco TV from v9 2022-03-21 16:16:40 +01:00
30bb416ff8 Add missing null checks for redirect URLs (#12154)
* Fixes missing null checks as reported in #10066

* Fixed check for null or empty in NPoco where clause.

Co-authored-by: Andy Butland <abutland73@gmail.com>
2022-03-21 14:48:55 +01:00
Sebastiaan Janssen a9b8090d6b Bump version to 8.18.1 2022-03-16 16:49:16 +01:00
Anders BjernerandSebastiaan Janssen 76ecb295cc Fixed issue with TryConvertValueToCrlType method incorrectly enclosing string values in double quotes 2022-03-16 16:42:22 +01:00
Sebastiaan Janssen ce817551a5 Merge branch 'v8/contrib' into v8/dev 2022-03-07 11:13:13 +01:00
inetzoandGitHub 32cd9fed49 Make GridPropertyEditor dirty if a control is removed (#12097)
The currentForm.$setDirty(); was missing when removing an control from a grid.
2022-03-05 17:09:35 +00:00
Nikolaj GeisleandGitHub cabb91dbe1 Merge pull request #12058 from umbraco/v8/bugfix/history-cleanup-make-contenttype-dirty
V8: Fix history cleanup not making content type dirty
2022-03-02 12:22:38 +01:00
Nikolaj GeisleandGitHub 633bc8fd8a Merge pull request #12069 from umbraco/v8/bugfix/missing-information-on-saving-variants
V8: Fix missing EditedCultures and Name in content saving notifications
2022-03-02 11:06:40 +01:00
9de4cf4444 Update src/Umbraco.ModelsBuilder.Embedded/PureLiveModelFactory.cs
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2022-03-02 10:45:28 +01:00
nikolajlauridsen ffe9a14664 Remove unused helper method 2022-03-02 09:58:30 +01:00
nikolajlauridsen 1fb4b905c2 Remove pointless assert 2022-03-02 09:58:03 +01:00
nikolajlauridsen 4b8a16af7c Add null check when mapping history cleanup 2022-03-02 09:25:31 +01:00
nikolajlauridsen f6c4af745f Remove no longer relevant unit tests 2022-03-02 08:32:14 +01:00
Bjarke Berg 6dd8cb496b Aligned IsDirty behavior of HsitoryCleanup with how PropertyGroups and types behave.. 2022-03-01 12:51:20 +01:00
Bjarke Berg 8d6394e8e3 Fixed other issues with isDirty, that was true even when no changes was done 2022-03-01 10:34:13 +01:00
159f92d6f8 V8: Fix missing site identifier (#12035)
* Add SiteIdentifierService

* Use SiteIdentifier service to create site identifier if it doesn't exist

* Use default timeout for telemetry request

* Use SiteIdentifierService in TelemetryIdentifierStep

* Send SiteId when requesting dashboard

* Make empty GUID an invalid site identifier

Co-authored-by: nikolajlauridsen <nel@umbraco.dk>
2022-02-28 14:11:59 +01:00
nikolajlauridsen 75f8c09e85 Map dirty cultures to EditedCultures on content before saving 2022-02-28 13:04:08 +01:00
nikolajlauridsen 62de668380 Set the name on the content when setting default culture variant name 2022-02-28 13:03:40 +01:00
Andy ButlandandGitHub 96349e4754 Extended check for locally installed LocalDb to include the most recent version 15. (#12031) 2022-02-27 18:10:31 +01:00
Bjarne FyrstenborgandSebastiaan Janssen 1ec98139c6 Media entry editor listview children (#12061)
(cherry picked from commit 6fd45f653c)

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/services/mediapreview.service.js
2022-02-27 17:59:10 +01:00
Mole 7bb85c9ed6 Handle setting HistoryCleanup to null 2022-02-25 13:09:31 +01:00
Mole 25ac6b275e Remove ResetWereDirtyProperties override 2022-02-25 11:44:00 +01:00
Mole db8fe55d08 Remove dirty HistoryCleanup properties when HistoryCleanup is replaced 2022-02-25 11:30:34 +01:00
Mole 86fcb8e715 Ensure replacing the entire HistoryCleanup registers as dirty 2022-02-25 09:41:20 +01:00
Mole c85486b866 Fix tests 2022-02-25 09:39:35 +01:00
Mole 4e2302ab6e Remove overrides 2022-02-25 09:39:04 +01:00
Mole a87e7a12d0 Flow changed properties back to ContentType using PropertyChanged 2022-02-25 08:37:53 +01:00
nikolajlauridsen 2fc8f62195 Implement more overrides for BeingDirtyBase 2022-02-24 14:31:40 +01:00
nikolajlauridsen 586c4e8db3 Add tests for content type being dirty 2022-02-24 13:13:38 +01:00
nikolajlauridsen 5c663fd0f0 Override IsDirty and ResetDirtyProperties in ContentType
In order to call it in both HistoryCleanup and base.
2022-02-24 13:13:08 +01:00
nikolajlauridsen 4f89cb1a34 Make HistoryCleanup inherit from BeingDirtyBase and implement dirty properties 2022-02-24 13:12:02 +01:00
Bjarke BergandSebastiaan Janssen 424db16ab1 Fix issue with namespace in api docs 2022-02-24 12:54:44 +01:00
Sebastiaan Janssen e9be3dd4a5 Bump version to 8.18.0 2022-02-24 11:24:19 +01:00
Bjarke Berg 8ff1d49346 Added noop migration just to change state, so this database do not just directly to 9.3 when migrating 2022-02-17 14:09:26 +01:00
MoleandGitHub 1473e41a20 V8: Fix deleting file on external filesystem (#11998)
* Use IFileSystem to check if folder exists when deleting file

* Rename CanDeleteDirectory back to IsDirectory
2022-02-17 09:35:10 +01:00
Sebastiaan Janssen 2038898f4c Bump version to 8.18.0-rc2 2022-02-17 09:25:11 +01:00
Ronald BarendseandGitHub 40c08f81c4 Add support for readonly properties (#11730) 2022-02-16 11:42:34 +01:00
62fa1695df Add config to hide backoffice logo (#11999)
* Added config to hide backoffice logo

* rename to hideBackofficeLogo

* hide on mobile

* add hideBackofficeLogo

* implement hideBackofficeLogo + toggle on click

* Updated c# syntax

Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
2022-02-15 10:48:52 +01:00
Niels LyngsøandGitHub 0b0182f550 Apply the Umbraco logo to BackOffice (#11949)
* adding logo as text in replacement of umbraco_logo_white, this will enable existing configuration to continue to work and minimise the breaking change of this PR.

* adjust logo position to fit with logged-in logomark. Allowing for the logo and customised logo to be very wide.

* adding logomark in topbar of backoffice

* login box style

* correction of shadow

* Logo modal, to display more information about the product including linking to the website

* rename to modal

* stop hidden when mouse is out

* Version line without Umbraco

* focus link and use blur as the indication for closing.

* correcting to rgba

* focus and click outside needs a little help to work well

* use @zindexUmbOverlay to ensure right depth going forward.

* adding large logo svg

* append ;

* tidy logo svg file
2022-02-08 10:35:06 +01:00
Sebastiaan Janssen a6ce7bcdf6 Merge branch 'v8/dev' into v8/8.18 2022-02-01 11:36:26 +01:00
Sebastiaan Janssen 0200434227 Merge branch 'v8/contrib' into v8/dev 2022-02-01 11:09:02 +01:00
Kenn JacobsenandGitHub 9a5bcf290d Retain mculture when clicking results from global search (#7192) 2022-02-01 01:50:22 +01:00
Sebastiaan Janssen ec183e481c Bump version to 8.18.0-rc 2022-01-31 15:47:51 +01:00
Sebastiaan Janssen 924a819baa Upgrade ClientDependency to 1.9.10 2022-01-31 15:39:34 +01:00
Sebastiaan Janssen 4382868f82 Upgrade Examine to v1.2.2 2022-01-31 14:18:55 +01:00
Sebastiaan Janssen 5c019a1557 Merge branch 'v8/contrib' into v8/dev 2022-01-31 14:15:03 +01:00
Bjarne FyrstenborgandGitHub 472cc716c4 Accept zip as extension in local package installer (#11109)
* Update ngf-pattern and accept

* Restructure less

* Remove ng-invalid again
2022-01-31 02:40:15 +01:00
andreymkarandashovandMichael Latouche 3167c8b213 encode group name to avoid the issue 2022-01-31 01:35:03 +01:00
Lennard FonteijnandMichael Latouche 477697a70c Removed if-check to allow empty values from blocks 2022-01-28 03:43:53 +01:00
Bjarke Berg 8c822c59ac Merge remote-tracking branch 'origin/v8/8.17' into v8/dev
# Conflicts:
#	src/Umbraco.Core/Sync/ApplicationUrlHelper.cs
#	src/Umbraco.Web/Editors/AuthenticationController.cs
#	src/Umbraco.Web/Editors/UsersController.cs
2022-01-27 16:04:50 +01:00
Bjarke Berg c79380191b Use Umbraco Path instead of constant 2022-01-27 15:57:22 +01:00
Bjarke Berg a779803763 Bump version to 8.17.2 2022-01-27 13:18:21 +01:00
MoleandBjarke Berg 1b98f8985e Use current request for emails (#11775)
* Use current request for emails

* Fix tests
2022-01-27 12:59:45 +01:00
MoleandGitHub 56d54d441f Merge pull request #11907 from umbraco/v8/feature/allowlist-for-help-page
V8: Add allowlist for HelpPage
2022-01-26 13:07:40 +01:00
Mole 9dbe2d211c Add allowlist for HelpPage 2022-01-26 10:57:49 +01:00
MoleandGitHub d70a207d60 V8: Add ability to implement your own HtmlSanitizer (#11897)
* Add IHtmlSanitizer

* Use IHtmlSanitizer in RTE value editor

* Add docstrings to IHtmlSanitizer

* Rename NoOp to Noop

To match the rest of the classes

* Fix tests
2022-01-26 07:51:25 +01:00
Paul JohnsonandGitHub c60d8c8ab8 Added EntityController.GetUrlsByIds support for int & guid + update MNTP (#11680)
Fixes issue with MNTP (for 8.18) in a partial view macro - GH #11631

Renamed GetUrlsByUdis to match, don't do this in v9 as it would be
breaking there, instead mark it obsolete.

TODO: v9 ensure integration test coverage, more painful here as no 
WebApplicationFactory.
2022-01-19 08:32:33 +01:00
Nikolaj GeisleandGitHub 16fb4f419a Merge pull request #11823 from umbraco/v8/bugfix/dont_show_stacktrace_in_production_mode
Don't show stack trace in production mode
2022-01-18 17:47:14 +01:00
Elitsa MarinovskaandGitHub 24519f6dad Allowlisting remote URLs for displaying content on the content dashboard (#11822)
* Implement allowlisting of urls when fetching data for the content dashboard

* Adding a new setting in the config & removing inexistent one

* Adding description

* Adding description

* Tidy up code
2022-01-18 15:38:03 +01:00
Elitsa Marinovska 72f30eb937 Adding else case 2022-01-18 15:19:05 +01:00
Elitsa Marinovska cce40a0734 Merge branch 'v8/dev' into v8/bugfix/dont_show_stacktrace_in_production_mode 2022-01-18 14:37:14 +01:00
Nikolaj Geisle 0e9525d216 Added null check 2022-01-17 08:32:13 +01:00
0eed641235 Delete temp document type file if validation fails (#11836)
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2022-01-13 13:12:44 +01:00
Ronald BarendseandGitHub 2155062678 Prune/remove indentation from JSON property values (#11806)
* Use Formatting.None for JSON property data in default value editor

* Use Formatting.None for JSON property data in custom value editors

* Use Formatting.None for JSON property data in Nested Content and Block List

* Use Formatting.None for JSON property tags

* Use Formatting.None for JSON configuration data

* Use Formatting.None in custom JSON converter

* Ensure empty tags and complex editor values are not stored

* Fix NestedContentPropertyComponentTests

* Do not store empty property data

* Use Formatting.None and don't store configured crops (without coordinates)

* Fix JSON deserialization of tags value
2022-01-10 09:32:29 +01:00
Nikolaj Geisle dfc3e56eb7 Check if we're in debug and set IncludeErrorPolicy accordingly 2022-01-05 13:16:07 +01:00
75bb8051bf Prune Image Cropper and Media Picker (v3) values (#11805)
* Clean up redundant/default Umbraco.ImageCropper data

* Fix ToString() and add HasCrops() method

* Re-use crop/focal point pruning for Umbraco.MediaPicker3

* Fix ImageCropperTest

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2022-01-05 11:11:27 +01:00
MoleandGitHub a54c5bb21d V8: Merge package telemetry from V9 (#11785)
* Merge Telemetry classes from V9

* Use TelemetryService in ReportSiteTask

* Migrate tests
2022-01-04 10:11:34 +01:00
Nikolaj GeisleandGitHub bd1c392dff Merge pull request #11776 from umbraco/v8/bugfix/AB15639-umbracoApplicationUrl-healthcheck
Add a health check for umbraco application url
2021-12-21 11:35:41 +01:00
MoleandGitHub 7a5f72b5eb Use current request for emails (#11775)
* Use current request for emails

* Fix tests
2021-12-21 07:23:08 +01:00
Elitsa Marinovska 68fdf6521e Being more descriptive 2021-12-20 15:21:12 +01:00
Elitsa Marinovska bcabf05995 Adds new translation 2021-12-20 14:37:42 +01:00
Elitsa Marinovska 4e6d09b626 Adds a new Health Check 2021-12-20 14:37:18 +01:00
Andy ButlandandGitHub fd1de8e103 Merge pull request #11757 from umbraco/v8/bugfix/handle-batched-server-messages-on-background-thread
Handled flushing of cache instruction messages when created from handling events in a background thread
2021-12-20 11:43:31 +01:00
Sebastiaan Janssen 7006461ba2 Revert "Added notifications toggle to user groups (#10450)"
This reverts commit 4c6d4b9326.
2021-12-16 16:30:18 +01:00
Søren KottalandSebastiaan Janssen 50da4a77de Adds support for simple markdown in property descriptions, and extended property descriptions (#11628)
* Adds support for simple markdown in property descriptions, and extended descriptions

* removes max-width for property descriptions (doesn't make sense to limit these IMO)

(cherry picked from commit 8393fdecfb)
2021-12-14 14:28:02 +01:00
Sebastiaan Janssen a3b721bb4c Merge branch 'v8/contrib' into v8/dev
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/documenttypes/views/permissions/permissions.html
#	src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
2021-12-14 14:19:59 +01:00
Andy Butland d9a4c50a73 Refactored message related methods to allow provision of an HttpContext, and used this in DistributedCacheBinder to ensure messages created are flushed from the same context. 2021-12-14 09:23:55 +01:00
Paul JohnsonandGitHub 1c36af8c7e Map both settings and content data via property editors. (#11722)
For persistence and rendering property editor frontend components.
2021-12-06 10:35:44 +01:00
Jan SkovgaardandGitHub b4059ecfec Listview Datatype: Change from using delete icon to "Remove" text in layouts (#11624)
* Add overlay and texts for overlay

* Change remove icon to remove text
2021-12-06 09:05:08 +10:00
Michael LatoucheandGitHub 6824519cdb Fixes fallback value ignored in Localize directive (#11674)
* addig some French labels

* add intial inner html as fallback value
2021-12-06 08:51:36 +10:00
4c6d4b9326 Added notifications toggle to user groups (#10450)
* Added notifications toggle

* Review: Update DatabaseDataCreator.cs

Co-authored-by: Ronald Barendse <ronald@barend.se>

* Added migration

* Fix new file was excluded

* adapt DB  migration

Co-authored-by: Ronald Barendse <ronald@barend.se>
Co-authored-by: Michael <michael@crossingpaths.be>
2021-12-05 13:27:15 +01:00
Jeavon LeopoldandMichael Latouche b86505d8f2 Change httpsCheckInvalidUrl to healthCheckInvalidUrl 2021-11-28 12:58:02 +01:00
Nikolaj GeisleandGitHub a0695850cb Merge pull request #11587 from umbraco/v8/bugfix/membership-contentapp
Move member properties to Member Content App
2021-11-24 10:45:53 +01:00
inetzoandGitHub 7538f0c4ad Apply pickDate-config setting to hide calendar in datepicker (#11632)
* Apply pickDate-config setting to hide calendar in datepicker 

A time-only picker is only possible if the format is configured like "hh:mm:ss". By using the pickDate config it is possible to determine whether the calendar should be shown or not, instead of depending on a certain time format.

* Changed timeformat to accept both hh:mm:ss and hh:mm

Edited the regex to math times with and without seconds. The calendar should not be shown anymore if the timeformat is (H)H:mm:ss or (H)H:mm.

* Removed unused config property pickDate

config.pickDate is never used and can be removed.

* remove pickDate config from datepickers config
2021-11-24 02:07:35 +01:00
13a51d3267 Support import/export for doc type history cleanup policy (#11660)
* Support import/export for doc type history cleanup policy

* Support unset/null history cleanup value

* Resolve issue when api endpoints called without cleanup policy.
noop isn't good enough as map fails for response.

* null conditional vs null coalesce assignment

* Don't overwrite existing policy if omitted in import XML

* Update history cleanup warning and translations

* Change history cleanup alert to infomational styling

* Remove margin around history cleanup config

Co-authored-by: Ronald Barendse <ronald@barend.se>
2021-11-23 18:53:29 +00:00
Rasmus SöderströmandGitHub f7be5a5dec Add functionality for resetting to the initial state. (#11593)
* Add functionality for resetting to the initial state.

* Refactoing initData
2021-11-23 03:02:32 +01:00
Jan SkovgaardandGitHub 16c1359a90 Focus lock improvements (#11435)
* Call onInit directly and add a timeout of 500ms

* Don't include hidden input types in the selector

* Ensure that the "next" focusable element is selected in case the first element is either the sub-nav or the ellipsis type

* Make sure tab is not selected first
2021-11-23 01:41:51 +01:00
c2e9ccea9f Member group picker actions (#10096)
* Add remove all property action

* Disable action if no current ids or new ids

* Use vm

* resolve conflict

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-11-22 12:38:42 +10:00
e56c1cc208 Fix the introduction tour getting lost if dashboard is not shown (#10597)
* Add conditional step that navigates users to the content section

* tweaked the text in the sections step as it refers to being in the content section, which may not always be the case (hence this PR)

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-11-22 10:46:29 +10:00
BatJanandMichael Latouche 1440213ef6 Add missing fallback values and fix en and en_us.xml keys 2021-11-22 01:39:50 +01:00
Jan SkovgaardandGitHub 97071133c7 Documenttypes Permissions view: Add missing fallback texts and fix styling (#11619)
* Add missing fallback texts

* Change styling of "history" info
2021-11-22 01:20:38 +01:00
12004a7854 Fix typo (#11027)
* Fix typo retrive to be retrieve throughout project.

* * Retain uppercase in descriptions.
* Add new directive fixing typo.
* Revert existing directive and template to previous to prevent breaking change.

* * Swap directives.

* * Revert.

* obsoletes public methods with typos. probably should find all refs and update those too

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-11-22 10:15:46 +10:00
ccffd264c9 fixes #9894 . Truncate block editor model title to 100 chars. (#10303)
* fixes #9894 . Truncate block editor model title to 100 chars.

* update to move max into controller logic

* null check name, just in case...

Co-authored-by: Mario Lopez <mario@monkii.com>
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-11-22 09:43:43 +10:00
3b0da9be55 #7902 displaying messages on cancelled item creation (#7943)
* #7902 displaying messages on cancelled item creation

* remove debugger

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-11-22 09:12:01 +10:00
BatJanandNathan Woulfe 17f6899f5d Add missing fallback texts 2021-11-22 08:58:20 +10:00
BatJanandNathan Woulfe 77d3e17467 Add missing fallback text 2021-11-22 08:56:25 +10:00
Bjarne FyrstenborgandGitHub a82ee72056 Ensure crop size in shown for slim thumbnails (#11481)
* Ensure there is space enough to render thumbnail size label

* Simplify crop size label

* Add original gray color for min/max icons and adjust margin to compensate for slider handle
2021-11-22 08:55:37 +10:00
BatJanandMichael Latouche a9d2b0307f Add missing fallback text 2021-11-21 03:57:21 +01:00
BatJanandMichael Latouche 2605d7a03b Add missing fallback texts 2021-11-21 03:19:48 +01:00
BatJanandMichael Latouche 2f13bbfc52 Add missing fallback texts 2021-11-21 03:07:06 +01:00
Michael LatoucheandGitHub 819bc21daa addig some French labels (#11545) 2021-11-18 08:18:22 +10:00
BatJanandNathan Woulfe 43db605c31 Add missing fallback texts 2021-11-18 07:59:14 +10:00
Kevin MeilanderandNathan Woulfe 1125644eb3 in media selection, made folder name clickable to select into a folder. Added not allowed cursor on not allowed items. 2021-11-18 07:57:44 +10:00
SibrenandGitHub ba1518bc5c V8 Changed 'bevestig nieuw password' to 'bevestig nieuw wachtwoord' (#11649)
* V8 Changed 'bevestig nieuw password' to 'bevestig nieuw wachtwoord'

* Added extra missing translation: minimum x character(s) to go
2021-11-17 16:03:24 +01:00
BatJanandMichael Latouche 47da02c5f1 Add missing fallback text 2021-11-17 03:11:48 +01:00
Paul Johnson a86baa4798 Bugfix - Policy returns items to delete not items to keep.
Switch to inverse behavior.
2021-11-16 11:53:16 +00:00
Paul Johnson bdbc38e280 Bugfix - Missing write lock 2021-11-16 10:13:20 +00:00
Paul Johnson cf9a6671a9 Bugfix - DocumentVersionRepository.Get should not join culture variation 2021-11-16 08:53:44 +00:00
d89725bd48 ContentVersion cleanup backoffice UI (#11637)
* init rollback ui prototype

* add busy state to button, deselect version, add pagination status

* add localisation

* style current version

* disable rollback button when nothing is selected

* stop click event

* Endpoints for paginated content versions.
Light on tests, tight on time.

* Endpoints to "pin" content versions

* camel case json output.
Not sure why json formatter not set for controller, bit risky to add it now

* wire up paging

* wire up pin/unpin

* rename getPagedRollbackVersions to getPagedContentVersions

* prevent selection of current version and current draft

* add current draft and current version to UI

* remove pointer if the row is not selectable

* Improve warning for globally disabled cleanup feature.

* Fix current loses prevent cleanup state on publish.

* Added umbracoLog audit entries for "pin" / "unpin"

* Match v9 defaults for keepVersions settings

* Fix - losing preventCleanup on save current with content changes

* update pin/unpin button labels

* fix pagination bug

* add missing "

* always send culture when a doc type can vary

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2021-11-16 08:24:12 +01:00
BatJanandNathan Woulfe b8f20d4548 Add missing fallback value 2021-11-16 13:10:21 +10:00
BatJanandNathan Woulfe e900197907 Wrap texts in umb-box 2021-11-16 13:08:12 +10:00
BatJanandMichael Latouche a9cf12a600 Add "enable js" message changes + removal of the http-equiv meta tag 2021-11-16 02:26:45 +01:00
Daniel ShuyandNathan Woulfe 284b4b9253 contentpicker: Don't validate minNumber/maxNumber if 0 2021-11-16 07:22:12 +10:00
BatJanandMichael Latouche e07a2b1abd Add missing text fallback 2021-11-15 03:07:51 +01:00
55de670246 makes the log viewer prettier (#6890)
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-11-12 15:43:09 +10:00
Nikolaj Brask-NielsenandMichael Latouche d9c7640a8d Fixes userpicker filter
#11520
2021-11-11 13:13:21 +01:00
Sebastiaan Janssen 1fbf02d61e Merge branch 'v8/dev' into v8/contrib 2021-11-09 11:04:38 +01:00
Sebastiaan Janssen e59f855aa9 Merge branch 'v8/contrib' of https://github.com/umbraco/Umbraco-CMS into v8/contrib 2021-11-09 11:04:01 +01:00
Sebastiaan Janssen 2aad2087a5 Merge branch 'v8/8.17' into v8/dev
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/services/contenttypehelper.service.js
2021-11-09 11:02:21 +01:00
Ronald BarendseandMichael Latouche 2993c301f3 Hide localization key while loading 2021-11-08 23:42:06 +01:00
Ronald Barendse 1aeed3173b Do not allow deleting tabs with locked properties 2021-11-08 11:47:12 +01:00
Ronald Barendse 4f6a073f79 Re-bind readonly property state after save 2021-11-08 11:22:35 +01:00
Ronald Barendse 4bf598d9a4 Change IsLockedOut property to readonly when it's true (only allow unlocking members) 2021-11-08 11:22:07 +01:00
Ronald Barendse 5bda825fd1 Add Member Content App to display membership properties 2021-11-05 11:05:13 +01:00
Ronald Barendse 86fb382f81 Do not explicitly create standard member property group 2021-11-04 15:45:42 +01:00
Bjarke BergandGitHub 7b98cc3c4d Merge pull request #11495 from umbraco/v8/feature/version-history-cleanup
Version history cleanup
2021-11-04 12:33:07 +01:00
Bjarke Berg 02dfb5af25 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/version-history-cleanup
# Conflicts:
#	src/Umbraco.Tests.AcceptanceTest/package.json
#	src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
2021-11-04 11:40:11 +01:00
Bjarke BergandGitHub b09619f638 Merge pull request #11561 from umbraco/v8/feature/version-history-cleanup-ui
V8: Added UI to configure history cleanup per doc type
2021-11-04 11:36:58 +01:00
Sebastiaan Janssen 2ec77a2fde Merge branch 'v8/contrib' into v8/dev 2021-11-03 17:53:51 +01:00
Jan SkovgaardandGitHub 91a67cd3f0 Add missing fallback texts in various views (#11466) 2021-11-03 17:49:28 +01:00
Chriztian SteinmeierandSebastiaan Janssen b876771a75 Minor edits to the XPath query help sheet (#11385)
* Clarify the use of placeholders

Since the placeholder is only replaced if it's at the beginning of the query, I've added a note about it.

Also made the spelling of XPath consistent and fixed a nesting error in the HTML.

* Rephrase a couple of sentences

(cherry picked from commit e04efe6067)
2021-11-03 17:03:14 +01:00
Paul SealandSebastiaan Janssen 9a6a7ffa88 Added more detailed message when deleting items in the list view (#11375)
* Added more detailed message when deleting items in the list view

* Update FR language file

(cherry picked from commit 14fe7d99a8)

# Conflicts:
#	src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
2021-11-03 17:03:14 +01:00
Matthew CareandSebastiaan Janssen c7b285796d Update background size
Update background size property to `contain` so that the whole image shows

(cherry picked from commit 215ef3d7b6)
2021-11-03 17:03:14 +01:00
Chriztian SteinmeierandSebastiaan Janssen f1668c6bd7 Add positioning context
A fallback for browsers that don't support `contain: content`, to make sure the positioning context is correct

(cherry picked from commit 8989c4ad13)
2021-11-03 17:03:14 +01:00
Matthew CareandSebastiaan Janssen 4a4b45fe27 Link insertion with no selected text
TinyMCE requires text to be selected in order to insert links.
Added checks for if there is a text selection, and insert HTML content if there is not.
Link contents consists of the target name, or the target url if not populated

(cherry picked from commit e7f8e692c2)
2021-11-03 17:03:14 +01:00
Patrick de MooijandSebastiaan Janssen f39909dd90 8258: Added create dictionary item button
(cherry picked from commit 49132e2b7f)

# Conflicts:
#	src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
2021-11-03 17:03:14 +01:00
Sebastiaan Janssen 64dc1d4862 Gets all of the remaining changes to Cypress tests from v9 dev - all tests pass on v8 2021-11-03 17:03:14 +01:00
Nikolaj GeisleandSebastiaan Janssen a3797aaeef v9: Fixing flaky cypress test "Macro in Grid" (#11485)
* fixed flaky macro test and updated cypress version

* fixed flaky macro test and updated cypress version

* Update package.json

* Fixed failing tabs test

* Amend magic numbers with actual wait

* Update tests/Umbraco.Tests.AcceptanceTest/cypress/integration/Content/content.ts

* Updated UI to click on button instead of icon

* Make macro test click bottom to ensure we're not clicking on icon

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
(cherry picked from commit 34be464cf8)

# Conflicts:
#	tests/Umbraco.Tests.AcceptanceTest/cypress/integration/Tabs/tabs.ts
2021-11-03 17:03:14 +01:00
Nikolaj GeisleandSebastiaan Janssen 0bd82d33aa v9: Update cypress to newest version and fix errors (#11486)
* fixed flaky macro test and updated cypress version

* fixed flaky macro test and updated cypress version

* Update package.json

* Updated cypress to 8.6 and fixed failing script test

* Updated cypress to 8.6 and fixed failing script test

* Update package-lock.json

* Fixed Scripts and stylesheet tests with proper waits instead of magic numbers

* Updated to newest version of cypress and fixed template test

* Remove duplicate click

* Revert version to 8.4.1

* changed template

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
(cherry picked from commit e9ae567617)

# Conflicts:
#	src/Umbraco.Tests.AcceptanceTest/package.json
#	tests/Umbraco.Tests.AcceptanceTest/package-lock.json
2021-11-03 17:03:14 +01:00
Jesper MayntzhusenandSebastiaan Janssen ac83a32d34 add delete language test (#11380)
(cherry picked from commit ba73a39558)
2021-11-03 17:03:14 +01:00
Jesper MayntzhusenandSebastiaan Janssen 771dfdb48f Cypress test for textbox max length (#11245)
* add test for textbox max length

* remove leftover comment

Co-authored-by: Jesper <jmh@umbraco.dk>
(cherry picked from commit f29bda6455)
2021-11-03 17:03:14 +01:00
Jesper MayntzhusenandSebastiaan Janssen f555f0adfe add cypress test for deleting a user (#11282)
(cherry picked from commit a2f05850c0)

# Conflicts:
#	src/Umbraco.Tests.AcceptanceTest/cypress/integration/Users/users.ts
2021-11-03 17:03:14 +01:00
Sebastiaan Janssen eee8bd5565 Fixed missing null check in BlockEditorPropertyEditor (#11184)
Thanks @lauraneto - reviewed this and your fix solves the issue. #h5yr

(cherry picked from commit 23d2106277)

# Conflicts:
#	src/Umbraco.Web/PropertyEditors/BlockEditorPropertyEditor.cs
2021-11-03 17:03:14 +01:00
Ronald Barendse cd6d027e51 Mark standard Member group as inherited 2021-11-03 16:47:52 +01:00
Ronald Barendse 0f5f7d24e5 Use standard Member property group name/alias 2021-11-03 16:46:56 +01:00
Sebastiaan Janssen 5123799e32 Bump version to 8.17.1 2021-11-03 14:59:00 +01:00
Niels LyngsøandSebastiaan Janssen 23ce69db2f Additional optional sanitization of scripting in TinyMCE (#10653)
(cherry picked from commit f68dba7bcb)
2021-11-03 08:55:59 +01:00
Nikolaj GeisleandSebastiaan Janssen da48f8435a Merge pull request #11360 from umbraco/v8/bugfix/11057-mandatory-image-not-validating-after-first-time-failure
Fixes 11057: Mandatory Image not validating after first time failure

(cherry picked from commit 5cc70d2160)
2021-11-03 08:52:24 +01:00
Bjarke Berg 8e49b91692 Updated cyoress + testhelpers 2021-11-02 14:07:56 +01:00
Sebastiaan Janssen bb323b0286 Merge branch 'v8/dev' into v8/contrib 2021-11-02 13:29:33 +01:00
Niels LyngsøandGitHub f68dba7bcb Additional optional sanitization of scripting in TinyMCE (#10653) 2021-11-02 13:21:44 +01:00
Bjarke Berg 456b8a8a7c Fixed test now that save of content types creates a cleanup policy 2021-11-02 10:58:16 +01:00
Bjarke Berg ab06d21639 Fix namespace syntax 2021-11-02 10:42:51 +01:00
Bjarke Berg b15f86c1c2 Fixed issue with history cleanup not persisted on first save 2021-11-02 09:45:20 +01:00
Bjarke Berg c7e9e94996 cleanup 2021-11-02 09:25:21 +01:00
Bjarke Berg c3279f71c1 Negated bool check.. 2021-11-02 09:18:03 +01:00
Callum WhyteandMichael Latouche bd23a5fd2d Making UmbracoTreeSearcherFields virtual for easier overriding 2021-11-01 17:33:33 +01:00
1553f02b18 adding unit test for validating language xml files. (#7174)
* adding unit test for validating language xml files.

* locating the language files by traversing instead of hardcoded path.

* debugging null refs.

* debugging

* Updated method of detecting language folder for XML tests, that should work correctly on the build server.

* Path amends to support running test on build server.

* Path amends to support running test on build server (2).

Co-authored-by: Andy Butland <abutland73@gmail.com>
2021-11-01 14:50:54 +00:00
Anders BjernerandMichael Latouche 152956bb1a Added ngdocs documentation for overlay.service.js 2021-10-31 12:16:27 +01:00
Anders BjernerandMichael Latouche 7e55c469e3 Added extra selector for styling <code> elements in the content 2021-10-31 03:24:17 +01:00
Jan SkovgaardandGitHub d70583f238 Media Grid View improvements (#11518)
* Add last Updated text under general

* Map missing fallback text values and refactor <i> to <umb-icon> directive

* fix icon styling
2021-10-29 19:44:05 +02:00
a20915664d GitHub issue#11299 fix v8 (#11493)
* adding validation

* adding localization keys

* applying cleaning up notes

* fix spaces

* revert ex.xml

* spaces again

* keep it DRY

* chenge hasTabsAndFirstRender to hasTabsOrFirstRender

Co-authored-by: inada <inada@2p.com.sa>
2021-10-29 18:06:00 +02:00
Martin BentancourandMichael Latouche 56e05988f4 Validate fileName to prevent path traversal 2021-10-29 17:46:12 +02:00
Jeavon LeopoldandMichael Latouche c3625aed87 Fix the basehttpheader so that it's checking the root of the domain instead of /umbraco 2021-10-29 16:06:22 +02:00
Bjarke Berg 82a64ca589 Add message if prevent cleanup is globally disabled. 2021-10-29 14:51:38 +02:00
Bjarke Berg b0ff096a8a Fixed Tests 2021-10-29 13:58:50 +02:00
Bjarke Berg 698e6b1533 Renamed interface to prepare for adding GetPagedRollbackVersions 2021-10-29 10:55:47 +02:00
Bjarke Berg b96ec5a320 UI+Persistence for history cleanup per doc type 2021-10-28 14:14:07 +02:00
Bjarke Berg ae20c49590 Do paging in database, when viewing rollbacks 2021-10-28 10:02:04 +02:00
b04609880b Accept udt as extension in import document type (#11108)
* Pass in invalid files

* Fix pattern and accept udt file extension

* Remove wildcard

* fix help text - referred to 'browse' button, which does not exist

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-10-27 12:05:08 +10:00
Rick ButterfieldandNathan Woulfe ed167288c8 Change event name to rte.shortcut.saveAndPublish 2021-10-27 10:40:56 +10:00
Rick ButterfieldandNathan Woulfe 976711ef1c Publish hotkey doesn't work in RTE 2021-10-27 10:40:56 +10:00
BatJanandNathan Woulfe f12c4493b3 Map fallback texts 2021-10-27 10:18:57 +10:00
BatJanandNathan Woulfe 3ee289fd2f Update fallback texts and add an ind so label and input are paired properly 2021-10-27 10:17:43 +10:00
BatJanandNathan Woulfe 612f52985f Add new dictionary key 2021-10-27 10:17:43 +10:00
BatJanandNathan Woulfe 5f7c00dc31 Add missing fallback texts 2021-10-27 10:14:11 +10:00
BatJanandNathan Woulfe f6854cddc9 Remove unused code 2021-10-27 10:14:11 +10:00
BatJanandNathan Woulfe 5d4e1c6f98 Add missing fallback texts 2021-10-27 10:11:45 +10:00
BatJanandNathan Woulfe e8970c0d44 Add missing fallback texts 2021-10-27 10:09:26 +10:00
BatJanandMichael Latouche 35b0dda1f5 Add missing fallback texts 2021-10-27 02:03:03 +02:00
BatJanandNathan Woulfe 57637da767 Add missing fallback texts 2021-10-27 10:02:28 +10:00
BatJanandNathan Woulfe 80c9c09210 Add missing fallback values 2021-10-27 09:57:39 +10:00
Nathan Woulfe cf40b904c9 update styling in rollback text - removes stray comma, slight change to wording 2021-10-27 09:56:54 +10:00
BatJanandNathan Woulfe d131df181b Add missing fallback texts 2021-10-27 09:56:54 +10:00
BatJanandNathan Woulfe d1005c5976 Add missing fallback texts 2021-10-27 09:38:23 +10:00
BatJanandNathan Woulfe 713f204ea5 Add missing fallback texts 2021-10-27 09:37:31 +10:00
BatJanandNathan Woulfe 090fe7e9ae Add missing fallback texts 2021-10-27 09:34:45 +10:00
BatJanandNathan Woulfe 97775196ae Add missing fallback texts 2021-10-27 09:33:53 +10:00
BatJanandNathan Woulfe 1fdfb2c434 Add missing fallback texts 2021-10-27 09:32:08 +10:00
BatJanandNathan Woulfe 7794d55381 Add missing fallback texts 2021-10-27 09:29:44 +10:00
BatJanandNathan Woulfe 0eb0b18560 Add missing fallback texts 2021-10-27 09:27:04 +10:00
BatJanandNathan Woulfe 0d73d903d1 Add missing fallback texts 2021-10-27 09:26:05 +10:00
BatJanandNathan Woulfe 87a8ea755e Add missing fallback texts 2021-10-27 09:18:57 +10:00
BatJanandNathan Woulfe 072374913d Add missing fallback texts 2021-10-27 09:18:05 +10:00
BatJanandNathan Woulfe f1998ca5ab Add missing fallback texts 2021-10-27 09:17:00 +10:00
BatJanandNathan Woulfe 965ce917bf Map missing fallback texts 2021-10-27 09:15:43 +10:00
BatJanandNathan Woulfe 57634d5b4e Add missing fallback values 2021-10-27 09:14:47 +10:00
BatJanandNathan Woulfe 20941016ff Map missing translations 2021-10-27 09:12:30 +10:00
BatJanandNathan Woulfe 85c9d55b7a Add missing translations 2021-10-27 09:11:45 +10:00
Bjarne FyrstenborgandNathan Woulfe 1bffd97be9 Update noUiSlider to v15.5.0 2021-10-27 08:28:32 +10:00
BatJanandNathan Woulfe 034e43d3b8 Add missing text fallback values 2021-10-27 08:27:22 +10:00
BatJanandNathan Woulfe ad17207072 Fix localizations 2021-10-27 08:23:16 +10:00
BatJanandNathan Woulfe 1ce05d44e5 Map missing text values 2021-10-27 08:21:29 +10:00
BatJanandNathan Woulfe 8b4398c006 Remove space 2021-10-27 08:19:56 +10:00
BatJanandNathan Woulfe bed34b9916 Map missing values 2021-10-27 08:19:56 +10:00
BatJanandNathan Woulfe 52f56628e9 Add missing fallback texts 2021-10-27 08:16:54 +10:00
BatJanandNathan Woulfe f9ed371cb7 Add missing fallback texts 2021-10-27 08:13:43 +10:00
Paul Johnson d0a0a0a9cb Downgrade NUnit and NUnit3TestAdapter 2021-10-26 18:04:23 +01:00
Paul Johnson 86f344c484 Post review feedback
Less logging @ info level
More re-usable migration
2021-10-26 16:30:57 +01:00
Paul Johnson bba089c24c Implemented ContentVersionCleanup scheduled task.
Note: adding ref to Microsoft.NET.Test.Sdk fixes AutoFixture AutoDataAttribute (and sub classes)
2021-10-26 16:17:42 +01:00
Paul Johnson a1ac730633 Added XML configuration support for cleanup policy 2021-10-26 16:17:41 +01:00
Paul Johnson d865448177 Added database migration to support version cleanup feature 2021-10-26 16:17:41 +01:00
Erik-Jan WestendorpandSebastiaan Janssen 123bceef08 Localization add tab text dutch (#11346)
* Update nl.xml add addTab key

* tab to tablad

* Add translation to shortcuts sections

(cherry picked from commit d22297270b)
2021-10-26 15:58:03 +02:00
Sebastiaan Janssen cdd4bd1f69 Merge branch 'v8/dev' into v8/contrib 2021-10-26 15:54:34 +02:00
BatJanandMichael Latouche 45dec5c181 Add missing fallack values 2021-10-26 01:21:54 +02:00
Paul JohnsonandGitHub 9773726c95 Merge pull request #11489 from umbraco/v8/bugfix/prevent-github-actions-spam
Prevent github actions spam
2021-10-25 17:02:16 +01:00
Paul Johnson 76879caaaa Prevent github actions spam 2021-10-25 16:31:16 +01:00
Paul JohnsonandGitHub c61eaa2257 Merge pull request #11369 from umbraco/v8/bugfix/maxparametercount
Add Constants.Sql.MaxParameterCount and update query logic
2021-10-22 21:08:55 +01:00
8acf7e147e Changes to GetReducedEventList (#11444)
* Instead of only using first event, we combine events of same type into a single event with multiple arguments

* Added generic method to DRY up grouping logic.

* Renamed method to better reflect new functionality.

Co-authored-by: Andy Butland <abutland73@gmail.com>
2021-10-22 09:58:47 +02:00
BatJanandNathan Woulfe 79e8205556 Remove comma 2021-10-22 17:45:15 +10:00
Paul SealandGitHub 00d7422d2f V8/feature/app header localized titles (#11429)
* Added a link to 404 documentation

I think it will be useful to include a link to the documentation on how to create a custom 404

* added localized titles to the search and help buttons in the app header (top right of Umbraco)
2021-10-22 03:47:35 +02:00
BatJanandMichael Latouche aa6c5d48a2 Add fallback text 2021-10-22 03:40:02 +02:00
809671b9ca Align template picking more towards the other pickers (#11363)
* Align template picking more towards the other pickers

* style/cleanup - remove unused args, updated openItemPicker function name to openTemplatePicker since that's what we're opening

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-10-21 10:09:08 +10:00
Patrick de MooijandNathan Woulfe b13f260341 11343: Remove blocklist block on cancel 2021-10-21 08:51:14 +10:00
Patrick de MooijandSebastiaan Janssen 3fb150dda3 11315: Don't unbind unbinding keys 2021-10-20 18:28:06 +02:00
BatJanandSebastiaan Janssen 122caf8f1c Adjust styling to make grid config look better 2021-10-20 18:07:27 +02:00
BatJanandSebastiaan Janssen 4dd663d665 Add remove warning 2021-10-20 18:06:11 +02:00
BatJanandSebastiaan Janssen 2b6e4ce599 Turn nodelist into an array and filter out elements whose parent, grandparents etc. has a .ng-hide class 2021-10-20 18:04:17 +02:00
Jan SkovgaardandGitHub e668755a30 Listview: Fix translations and use "Remove" text for button instead of icon (#11411) 2021-10-20 18:01:45 +02:00
BatJanandSebastiaan Janssen 9a16907d63 Add warning overlay when deleting grid layout 2021-10-20 18:00:07 +02:00
BatJanandSebastiaan Janssen fef162b465 Remove z-index 2021-10-20 17:54:32 +02:00
BatJanandMichael Latouche 37511f5a6e Change remove icon to remove text 2021-10-20 03:17:50 +02:00
6e04cc72c2 contentpicker: Don't validate minNumber if empty and not mandatory (#11330)
* contentpicker: Don't validate minNumber if empty and not mandatory

* adds variable for accessing $scope.model.config.minNumber and $scope.model.config.maxNumber

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-10-20 09:51:26 +10:00
BatJanandNathan Woulfe 5f97fca130 Update styling and code style of imagepicker prevalue editor 2021-10-20 08:17:40 +10:00
Sebastiaan Janssen 4dc1ee64e0 Merge branch 'v8/dev' into v8/contrib 2021-10-19 15:49:24 +02:00
Nikolaj GeisleandGitHub 5cc70d2160 Merge pull request #11360 from umbraco/v8/bugfix/11057-mandatory-image-not-validating-after-first-time-failure
Fixes 11057: Mandatory Image not validating after first time failure
2021-10-19 13:30:03 +02:00
Patrick de MooijandMichael Latouche 57445e81a6 11331: Check property on instance if id is not set yet 2021-10-19 09:28:38 +02:00
Anders BjernerandNathan Woulfe eb2f152591 UI API docs: Fixed incorrect method name 2021-10-19 17:19:27 +10:00
Anders BjernerandNathan Woulfe 8e86f3e091 UI API docs: Added reset rules for .close class 2021-10-19 17:15:54 +10:00
Søren KottalandMichael Latouche 7ec1147243 Enables friendly pasting in multipletextbox 2021-10-17 02:46:52 +02:00
Bjarne FyrstenborgandGitHub 6a5e34b24d Allow switching property editor from numeric to slider (#11287)
* Make it possible to change from numeric/decimal property editor to slider without breaking editor

* Formatting
2021-10-15 03:00:16 +02:00
Ronald BarendseandGitHub a284d5251f Merge pull request #11373 from umbraco/v8/bugfix/AB14159-add-more-warnings-when-invalid-composition
Add validation errors when invalid composition due to duplicate property group aliases
2021-10-14 16:51:01 +02:00
Ronald Barendse b73ab255e4 Update InvalidCompositionException message 2021-10-14 15:50:29 +02:00
Ronald Barendse db5028192f Merge branch 'v8/bugfix/AB14159-add-more-warnings-when-invalid-composition' of https://github.com/umbraco/Umbraco-CMS into v8/bugfix/AB14159-add-more-warnings-when-invalid-composition 2021-10-14 15:08:33 +02:00
Ronald Barendse 705a3ed4e8 Update composition validation error messages 2021-10-14 15:06:28 +02:00
Elitsa Marinovska 844cd95f1b Merge branch 'v8/bugfix/AB14159-add-more-warnings-when-invalid-composition' of https://github.com/umbraco/Umbraco-CMS into v8/bugfix/AB14159-add-more-warnings-when-invalid-composition 2021-10-14 14:58:14 +02:00
Elitsa Marinovska 6666f6aab7 Rename based on review comments 2021-10-14 14:57:52 +02:00
Ronald Barendse 1b06db8d5c Validate all content type dependencies and throw a single InvalidCompositionException 2021-10-14 14:47:57 +02:00
Elitsa Marinovska b8ecc17140 Pointing the actual reason for invalidating composition 2021-10-14 13:41:56 +02:00
Elitsa Marinovska ccd9013d30 Adding invalid prop group aliases as ModelState errors, so we don't introduce breaking changes 2021-10-14 09:57:13 +02:00
Elitsa Marinovska 3f3262eb01 Adding property group aliases to ex.message 2021-10-14 09:54:14 +02:00
Ronald BarendseandGitHub 60be71d1a0 Remove duplicated comment 2021-10-13 23:34:50 +02:00
Ronald Barendse 1bc3290497 Fix bugs in fetching more than 2000 items (permissions and culture variations) 2021-10-13 14:10:24 +02:00
Ronald Barendse 88a20cb13c Minor query cleanup 2021-10-13 13:46:51 +02:00
Ronald Barendse a6b04a941c Replace arbitrary group size with constant 2021-10-13 13:44:33 +02:00
Ronald Barendse c5ba23a15c Add Constants.Sql.MaxParameterCount 2021-10-13 13:32:30 +02:00
Jamie TownsendandGitHub 08075e511f V8: Duplicate MemberGroup names cause MemberGroup mixup (#11291)
* Prevented duplicate member group names

* Added English lang

* Updated 'Exist' typo

* add labels in FR and NL
2021-10-13 02:08:30 +02:00
patrickdemooij9andGitHub 03b2aed91e Align create buttons styling (#11352)
* Added button for cancelling dictionary create action

* Use hideMenu

* Align dictionary create with the other creates

* Align import documenttype

* Align for data type folder create

* Align document type create buttons

* Forgot small ng-show

* Align create media folder buttons

* Align create macro buttons

* Align create relation buttons

* Align create partial view macro folder buttons

* Align partial view folder create buttons

* Align create scripts folder buttons

* Align create scripts folder buttons

* Use primary instead of success
2021-10-13 09:03:19 +10:00
Bjarne FyrstenborgandGitHub 93720c9897 Icon fallback to icon-document for existing document types (#11283) 2021-10-12 16:49:33 +02:00
patrickdemooij9andSebastiaan Janssen d02440d411 11048: Bugfix for groups and properties that get replaced (#11257)
(cherry picked from commit 1605dc10bd)
2021-10-12 14:49:19 +02:00
Mads Rasmussen 3d53c72205 add modelValue validation for server to correctly update validation errors 2021-10-12 11:52:01 +02:00
Nikolaj GeisleandGitHub 4c6e01438a Merge pull request #11356 from umbraco/v8/bugfix/fix-incorrect-edited-state-for-failed-publish-11290
[v8] Resolve incorrect ContentSavedState for failed publish
2021-10-12 10:51:15 +02:00
Paul Johnson f6f5723b7b Resolve incorrect ContentSavedState for failed publish
Closes #11290 (for v8)
2021-10-12 09:19:15 +01:00
Martino GabrielliandGitHub 359181cf11 Added missing Italian translations (#11197) 2021-10-11 14:18:47 +02:00
Doug MooreGitHubMoore, Douglas S <Douglas.Moore@opm.gov>
f7ea400e5a If caching a published document, make sure you use the published Name… (#11313)
* If caching a published document, make sure you use the published Name. Closes #11074.

* Fix case of new node

Co-authored-by: Moore, Douglas S <Douglas.Moore@opm.gov>
2021-10-11 10:03:43 +10:00
Bjarne FyrstenborgandSebastiaan Janssen 494bef878b Fix preview of SVG when height and width not are set 2021-10-10 18:30:12 +02:00
Patrick de MooijandNathan Woulfe 8619cfe3ef 11251: Don't add default dashboard to url 2021-10-07 09:01:32 +10:00
MoleandGitHub e36dd86d2d Merge pull request #11207 from umbraco/v8/bugfix/mntp-performance
Combine GetUrl requests when loading a MNTP with many entries
2021-10-06 08:56:12 +02:00
Søren KottalandNathan Woulfe 828558ac29 fixes wrong reference to enterSubmitFolder method in ng-keydown 2021-10-06 09:36:32 +10:00
Bjarne FyrstenborgandNathan Woulfe c7f342a6dd Use umb-icon component for icons in content type groups and tabs 2021-10-06 09:09:56 +10:00
BatJanandNathan Woulfe 7043d1cc0f Use medium sized overlay 2021-10-06 08:36:28 +10:00
Owain JonesandGitHub 3fcfb1b546 v8: Backoffice Welsh language translation updates (#11240)
* Updated the Welsh language file to include newly added keys (based on the en us language file)

* Updated the searchInputDescription key

* Updated the endTitle key
2021-10-06 08:34:36 +10:00
Søren KottalandNathan Woulfe ef725bac37 Removes annoying wait text, which causes layout jank 2021-10-06 08:26:44 +10:00
Paul Johnson 106f6dce25 Rename parameter for clarity 2021-10-05 13:45:43 +01:00
Ronald BarendseandSebastiaan Janssen 213d8c00aa Remove inherited property group id/key when local properties are added (#11231)
* Remove inherited property group id/key when local properties are added

* Rebind saved content type values

* Remove inherited from save group

(cherry picked from commit 20b9db87d0)
2021-10-04 10:05:19 +02:00
Ronald BarendseandGitHub 20b9db87d0 Remove inherited property group id/key when local properties are added (#11231)
* Remove inherited property group id/key when local properties are added

* Rebind saved content type values

* Remove inherited from save group
2021-10-04 09:45:33 +02:00
Sebastiaan Janssen c3ab0ae7b5 Merge branch 'v8/dev' into v8/contrib 2021-09-30 10:18:03 +02:00
Sebastiaan Janssen 7c77ba2335 Merge branch 'v8/8.17' into v8/dev 2021-09-30 10:17:39 +02:00
Sebastiaan Janssen 11ad3fc082 Bump version to 8.17.0 2021-09-30 10:16:33 +02:00
Sebastiaan JanssenandGitHub 97ecb07be7 Fixes #11206 (#11225) 2021-09-30 10:07:05 +02:00
ShannonandSebastiaan Janssen 5c0e42e1cb Allows replacing MainDom with alternate DB
There are some cases where there is a complex hosting strategy and folks want a readonly database and are hosting on Azure. In that case, it is not entirely possible to have a readonly Umbraco database because SqlMainDom is required and part of that requirement is to have read/write access to the umbraco key value table.
This PR allows for the default MainDom to be replaced and to allow for an SqlMainDomLock to use an alternate connection string so that a separate read/write database can be used.

(cherry picked from commit 9f48a9f940)
2021-09-30 09:20:08 +02:00
ShannonandSebastiaan Janssen 9f48a9f940 Allows replacing MainDom with alternate DB
There are some cases where there is a complex hosting strategy and folks want a readonly database and are hosting on Azure. In that case, it is not entirely possible to have a readonly Umbraco database because SqlMainDom is required and part of that requirement is to have read/write access to the umbraco key value table.
This PR allows for the default MainDom to be replaced and to allow for an SqlMainDomLock to use an alternate connection string so that a separate read/write database can be used.
2021-09-30 09:19:22 +02:00
Paul Johnson 4eb75799e7 Update content picker to use GetUrlsByUdis 2021-09-27 14:39:04 +01:00
Paul Johnson 26382ab8d5 Add EntityController GetUrlsByUdis
Enables loading multiple URLs in a single request for Media & Documents
2021-09-27 14:36:29 +01:00
Jan SkovgaardandSebastiaan Janssen b6268e3650 Bump version to 8.17.0-rc2 2021-09-22 23:12:45 +02:00
Jan SkovgaardandSebastiaan Janssen e269d1bcd0 Grid: Add button styling fix (#10978)
* Add missing focus styling

* Ensure add button is perfectly rounded and remove unused / uneeded CSS.

* Remove redundant border-color property

* Revert removal of unused css

Co-authored-by: BatJan <jaskov@gmail.com>
Co-authored-by: Jan Skovgaard Olsen <jso@co3.dk>
(cherry picked from commit 31ecc146d1)
2021-09-22 14:26:55 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 52f3350e76 Adjust icon in umb-checkbox and ensure icon is centered
(cherry picked from commit c49c5369e3)
2021-09-22 14:24:25 +02:00
Corné StrijkertandSebastiaan Janssen f776dbb616 Missing nl translation for blockEditor_addBlock
(cherry picked from commit 674edd3a97)
2021-09-22 14:22:02 +02:00
Bjarne FyrstenborgandSebastiaan Janssen a09103dc82 Align sortable handle vertically in multivalues prevalue editor
(cherry picked from commit 46e6f050cb)
2021-09-22 14:19:36 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 7548074fa3 Fix incorrect attribute
(cherry picked from commit 6c512107a4)
2021-09-22 14:10:31 +02:00
Nikolaj GeisleandGitHub ef7fe700f4 Merge pull request #11157 from umbraco/v8/bugfix/11100-fix-multi-url-picker-in-block-list
Fix Multi URL Picker in Block List Editor
2021-09-22 10:39:29 +02:00
Mads Rasmussen b6338cacb3 prevent tab properties to be rendered twice 2021-09-22 09:26:02 +02:00
ffa704c5d0 Cleanup examine search results, and adds ability to toggle fields (#9141)
* Cleanup examine search results, and adds ability to toggle fields

* update table to use joinarray filter with one-time binding to avoid recalculating filter values, updated filter to not explode when array arg is null

* fix failing tests - improve filter to not fail on non-array params, update tests accordingly

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-09-22 13:25:10 +10:00
48a3a0524d Create content template localization (#10945)
* Don't use self-closing element for custom HTML elements

* Use button element for close/cancel in copy dialog

* Update localization of "createBlueprintFrom"

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-09-22 10:27:16 +10:00
31ecc146d1 Grid: Add button styling fix (#10978)
* Add missing focus styling

* Ensure add button is perfectly rounded and remove unused / uneeded CSS.

* Remove redundant border-color property

* Revert removal of unused css

Co-authored-by: BatJan <jaskov@gmail.com>
Co-authored-by: Jan Skovgaard Olsen <jso@co3.dk>
2021-09-22 09:49:49 +10:00
Bjarne FyrstenborgandNathan Woulfe 6c512107a4 Fix incorrect attribute 2021-09-22 09:30:48 +10:00
Nikolaj GeisleandGitHub 3ad2e74f45 Merge pull request #11145 from umbraco/v8/bugfix/11114-nested-content-not-rendering
Fixes Nested Content not rendering
2021-09-21 13:07:42 +02:00
Ronald BarendseandGitHub 5796b841e3 Updated predicate to use GetParentAlias() 2021-09-21 12:01:02 +02:00
Mads Rasmussen 426050374d alias is changed. We need to compare with label instead 2021-09-21 11:19:04 +02:00
Mads Rasmussen f7b485a199 filter out tabs and groups in tabs for nested content 2021-09-21 11:18:34 +02:00
Callum WhyteandGitHub 405ed44bb1 Falling back to contentTypeName when Block List label is empty (#10963)
* Falling back to contentTypeName when Block List label is empty

* Adding $contentTypeName variable for Block List labels
2021-09-21 16:41:21 +10:00
1e1276f270 10341: Use different picker for content types (#10896)
* 10341: Use different picker for content types

* use es6 where possible (inc removing underscore for teeny tiny performance improvement)

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-09-21 16:18:15 +10:00
Bjarne FyrstenborgandNathan Woulfe 46e6f050cb Align sortable handle vertically in multivalues prevalue editor 2021-09-21 14:58:04 +10:00
9a246a1970 Implement icon parameter for doctype editor (#11008)
* fix: implement icon parameter for doctype editor

issue #10108

* fix: move color from icon to class attribute

* fix: removed defined colors, defaulting to the standard dark grey (ie "no color picked" in icon picker)

* cleaned up unused dependencies, double quotes to single, removed unused 'color' param from the create methods, and use shorthand object creation in createDocType (if the key has the same name as the variable passed as a prop, we only need to pass the key name)

* fix comment

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-09-21 14:56:27 +10:00
Corné StrijkertandMichael Latouche 674edd3a97 Missing nl translation for blockEditor_addBlock 2021-09-21 03:18:38 +02:00
Bjarke BergandGitHub 27e74e78bc Merge pull request #11104 from umbraco/v8/feature/implement-tabs-cypress-test
Feature - Implemented new cypress tests
2021-09-20 10:50:44 +02:00
Bjarne FyrstenborgandNathan Woulfe c49c5369e3 Adjust icon in umb-checkbox and ensure icon is centered 2021-09-20 08:28:57 +10:00
Bjarke BergandGitHub e1333fee49 Merge pull request #11121 from umbraco/v8/bugfix/keep-existing-propertygroup-key
Add property group key to save model
2021-09-16 14:20:00 +02:00
Ronald Barendse 1baa4cf653 Add property group key to save model 2021-09-16 14:07:31 +02:00
BatJanandMichael Latouche e056918e4f Ensure the expression is interpolated so the aria-selected attribute has a proper true/false value 2021-09-16 01:54:08 +02:00
Zeegaan 2e14abc744 Implemented tabs test 2021-09-15 13:48:32 +02:00
Sebastiaan JanssenandGitHub ee42a7ebac Add the correct year of open sourcing Umbraco on the license 2021-09-15 09:57:03 +02:00
Mads RasmussenandGitHub 09db4ed4a5 Show UI errors for invalid files in media upload (#11061) 2021-09-15 09:18:36 +02:00
Sebastiaan Janssen 237ac53928 Merge branch 'v8/dev' into v8/8.17 2021-09-14 12:57:13 +02:00
Bjarne FyrstenborgandGitHub 71733b72d9 Remove restricted image size when opening media (#10940)
* Remove restricted image size as SVG are vector and we already handle max size in css

* Use css class instead of inline style

* Add required src and alt attributes to img tag - ng-src will populate value of src attribute

* Align folder icon in medie entry editor
2021-09-14 17:57:16 +10:00
Mads RasmussenandSebastiaan Janssen c6a1765c95 set form to dirty when add tab, delete tab, add group, and delete group 2021-09-14 08:41:32 +02:00
Bjarne FyrstenborgandNathan Woulfe a4e472b4d3 Stream line <umb-progress-bar> and <umb-progress-circle> 2021-09-14 16:02:56 +10:00
Bjarne FyrstenborgandGitHub aa48cdbbfd Media picker 3 preview with checkered background (#10939)
* Set property editor limit width on parent like other property editors

* Use checkered background in media picker 3 preview like the legacy media picker
2021-09-14 15:58:59 +10:00
5b62516114 Grid: labels offset fix (#10979)
* Add missing focus styling

* Ensure labels have the proper pixels offset

Co-authored-by: BatJan <jaskov@gmail.com>
Co-authored-by: Jan Skovgaard Olsen <jso@co3.dk>
2021-09-14 15:54:46 +10:00
Jeavon LeopoldandNathan Woulfe 8810b98003 Exclude "Server" header from excessive check if the value is "cloudflare" 2021-09-14 15:46:41 +10:00
Bjarne FyrstenborgandGitHub e42af34b5f Introduce overlaysize prevalue editor (#11010)
* Introduce overlaysize prevalue editor instead of redundant prevalue editor for each property editor

* Move ordering of properties

* Change overlaySizeWidth to overlaySize

* Make it clear overlay is only for link picker

* Fix overlay size not working for link picker in rich text editor
2021-09-14 15:43:21 +10:00
Sebastiaan Janssen a1e965cce6 Merge branch 'v8/dev' into v8/8.17 2021-09-13 16:22:44 +02:00
Ronald BarendseandGitHub a7732d76f8 Merge pull request #11086 from umbraco/v8/fix/frontend-dependencies
Updating Angular and jQuery to the latest available version
2021-09-13 15:38:30 +02:00
Bjarne FyrstenborgandSebastiaan Janssen eb7b570002 Include MediaService extensions 2021-09-13 15:19:28 +02:00
Sebastiaan Janssen 25d482f42f Add package-lock.json updates 2021-09-13 14:41:21 +02:00
Jeavon LeopoldandSebastiaan Janssen fb466f4309 Fix string interpolation for health check messages 2021-09-13 13:11:54 +02:00
Shannon DeminickandGitHub 5fadb238ee Don't eagerly acquire distributed (SQL) locks (#10171) 2021-09-13 13:09:47 +02:00
Sebastiaan Janssen cacd471601 Updating Angular and jQuery to the latest available version 2021-09-13 13:03:29 +02:00
Chad CurrieandSebastiaan Janssen b17cc47632 Fix message template to not mix string interpolating and formatting. 2021-09-13 11:10:26 +02:00
Ronald Barendse 0aa545df75 Update parameter order of new AddPropertyGroup overload 2021-09-08 16:24:10 +02:00
Ronald BarendseandGitHub d4f3a55033 Merge pull request #11055 from umbraco/v8/bugfix/reorder-group-to-generic-tab-only-work-once
Fix move group to Generic tab only work once
2021-09-08 16:10:12 +02:00
Ronald BarendseandGitHub 530e498132 Merge pull request #11042 from umbraco/v8/bugfix/set-correct-sort-order-on-converted-tab
Set correct sort order on converted tab
2021-09-08 16:09:31 +02:00
Mads RasmussenandGitHub 05dc65ecf0 Fixes folder creation for doc, data, and media types (#11040)
* fixes folder creation for doctype and datatype

* add fix for media types

* remove umb-auto-focus we use focus-when instead
2021-09-08 15:58:54 +02:00
Mads Rasmussen 1fa816bd32 Show notification when a group can't be moved + reset requested tab 2021-09-08 15:14:12 +02:00
Mads Rasmussen f51e594929 sets sortOrder on the converted tab based on the exiting tabs 2021-09-07 14:45:44 +02:00
Nikolaj GeisleandGitHub 1b2c667afa Merge pull request #11009 from erikjanwestendorp/close-content-delete-dialog-on-error
Close delete dialog if response has notifications
2021-09-07 09:38:32 +02:00
Sebastiaan Janssen 05d0a29e03 Merge branch 'v8/dev' into v8/8.17 2021-09-03 14:09:12 +02:00
Sebastiaan Janssen 5c3363de1e Merge branch 'v8/contrib' into v8/dev 2021-09-03 14:08:26 +02:00
Philippe GuilmetteandMichael Latouche 2de22b6394 Don't cache AuthenticationController calls including GetRemainingTimeoutSeconds (fix for 11011) 2021-09-03 04:33:50 +02:00
c090afe5b1 V8: Validate uploaded files based on the configuration of the FileUpload property configuration (#10987)
* Add validation to uploaded file based on the DataTypeConfiguration

* Update src/Umbraco.Web/PropertyEditors/UploadFileTypeValidator.cs

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>

Co-authored-by: Nikolaj <nel@umbraco.dk>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
2021-09-02 15:39:31 +02:00
MoleandGitHub 540740e802 Merge pull request #8854 from ronaldbarendse/v8/bugfix/generic-blocklistitem
8.7RC Get generic BlockListItem settings model type from configuration
2021-09-02 14:45:22 +02:00
Simone ChiarettaandGitHub 27f4e38263 Cannot migrate from Umbraco 7 to Umbraco 8 with v8.14+ because userId 0 is skipped over (#10622) 2021-09-02 14:11:13 +02:00
Jan SkovgaardandGitHub 1c4f6bb799 Suggestion: Add config setting in Rich Text Editor to control the linkpicker overlay size (#11007) 2021-09-01 16:45:17 +02:00
Jan SkovgaardandGitHub 4a12ef5e19 Suggestion: Extend markdown editor settings for overlay width (#11006) 2021-09-01 16:40:49 +02:00
Jan SkovgaardandGitHub 95386cd116 Color swatch "selected" state - Icon looks weird (#11003) 2021-09-01 16:35:13 +02:00
ChadandGitHub b201c85c2c Dispose RNGCryptoServiceProvider (#11001) 2021-09-01 16:08:20 +02:00
jesperweberandGitHub f736d21c2c Automatically create emtpy SQL CE database with unattended install (#10995) 2021-09-01 15:42:33 +02:00
Erik-Jan Westendorp 598b5cf0fc Close dialog if show ysod dialog 2021-09-01 15:36:52 +02:00
Erik-Jan Westendorp 36ba30fcbd Close dialog if response has notifications 2021-09-01 15:34:15 +02:00
Nikolaj 2a65582d6d Merge branch 'v8/contrib' into v8/bugfix/generic-blocklistitem 2021-09-01 15:21:11 +02:00
Warren BuckleyandGitHub 5708203950 Merge pull request #11005 from umbraco/v8/bugfix/split-view-close-and-dropzone-text
Tabs fixes: Remove the extra split view close button + Add helper text to properties dropzone
2021-09-01 11:41:07 +01:00
Mads Rasmussen 1cbae4e533 add helper text for direct properties 2021-09-01 11:40:44 +02:00
Mads Rasmussen 1d78baac10 remove double close button in split view 2021-09-01 11:39:07 +02:00
Jan SkovgaardandGitHub e707490b47 Suggestion: Make the overlay size width in multiurlpicker configurable (#10992) 2021-09-01 10:54:24 +02:00
Sebastiaan Janssen 0b4dc6a498 Bump version to 8.17.0-rc 2021-09-01 09:13:57 +02:00
ChadandGitHub 51fcde5fcd use existing array to split (#10999) 2021-09-01 13:06:33 +10:00
Sebastiaan Janssen 3fcf8676b4 Merge branch 'v8/dev' into v8/contrib 2021-08-31 17:29:24 +02:00
Warren BuckleyandGitHub 4c9d773f59 Merge pull request #10606 from umbraco/v8/feature/reintroduce-tabs
Reintroduce tabs
2021-08-31 16:22:53 +01:00
TheBekkerandGitHub b9ca313917 Add button to reset focal point on umb-image-gravity directive (#10923) 2021-08-31 16:51:33 +02:00
Ronald Barendse c29383dae0 Merge branch 'v8/contrib' into v8/feature/reintroduce-tabs 2021-08-31 16:41:55 +02:00
Mads RasmussenandSebastiaan Janssen f36785f2e8 fixes: #10373 2021-08-31 16:32:08 +02:00
Ronald Barendse b6d4cc467e Fix ContentTypeServiceTests 2021-08-31 15:56:00 +02:00
Ronald Barendse 0895aeaf30 Add test for populating alias in migration 2021-08-31 15:50:49 +02:00
Ronald Barendse ddcf3d5bfc Clean up migration tests 2021-08-31 15:47:28 +02:00
inetzoandSebastiaan Janssen d9135dd4ff Check if umbFileDropzone has queued items before showing ChooseMediaTypeDialog
The ChooseMediaTypeDialog is shown even if there are no queue items, for example due file errors. 
Checking the queue lenght in _requestChooseMediaTypeDialog prevents showing the dialog unnecessary.
2021-08-31 14:45:16 +02:00
Nikolaj GeisleandGitHub 9a677bef9b Merge pull request #10959 from umbraco/v8/bugfix/IsPublished
V8: Fix IsPublished only working with lowercase.
2021-08-31 11:18:03 +02:00
Nikolaj 7f279bcd77 Add messagepack formatter for dictionary with key ignore case
This is required for culture since there will be called ToLower on the culture when used as a dictionary key.
2021-08-31 08:30:46 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 2ae28c1e7a Fix self-closing tags which should have a end-closing tag 2021-08-30 19:58:19 +02:00
Jan SkovgaardandGitHub a28cbff178 Bugfix for #10927 - Body steal focus when opening folder overlay (#10983) 2021-08-30 19:38:20 +02:00
TheBekkerandGitHub 631663ed63 emit formSubmitting when submitting change in multi url picker dialog (#10957) 2021-08-30 19:24:22 +02:00
ChadandGitHub 125ebe40fb Replace use of dynamic type with POCOs (#10917) 2021-08-30 19:10:50 +02:00
7757c4d763 Allow to pass in boolean to noDirtyCheck directive (#8638)
* Adjust noDirtyCheck directive to accept a parameter to enable/disable dirty check

* Update dirty property

* Use Utilities.noop and add description

* Set default value from controller

* Check for truthly value

* Use Object.toBoolean

* Revert setting $pristine and $dirty for now

* Handle default values in dirty check attributes

* Add check on presence of disableDirtyCheck atribute

* Check for truthy value otherwise it should be default return false and work as no-dirty-check without value

* update test conditions for vamue of no-dirty-check and disable-dirty-check

* Remove whitespace

* update check

Co-authored-by: Kenn Jacobsen <kja@vertica.dk>
Co-authored-by: Michael <michael@crossingpaths.be>
2021-08-30 15:57:58 +02:00
Chad CurrieandSebastiaan Janssen 20eda449e7 Avoid generating the maindom hash twice to get the Id. 2021-08-30 14:24:30 +02:00
ChadandGitHub b1d1a2fcf2 Avoid creating a new string for the log level every log message (#10934) 2021-08-30 14:22:07 +02:00
ChadandGitHub 50dfb1fd92 Avoid allocating an array every call to IsClientSideRequest() (#10936) 2021-08-30 14:17:05 +02:00
nzdevandSebastiaan Janssen b04fe360d8 Dispose certficate handle 2021-08-30 14:07:57 +02:00
Mads Rasmussen 067a53a680 fixes: 13623 Convert to tab always adds + 1 to alias 2021-08-30 12:52:24 +02:00
Sebastiaan Janssen 695d4688d3 Merge branch 'v8/dev' into v8/contrib 2021-08-30 11:18:10 +02:00
Sebastiaan Janssen b4b8fecc2a Merge branch 'v8/8.16' into v8/dev 2021-08-30 11:17:37 +02:00
Sebastiaan Janssen f79ae63992 Merge branch 'v8/8.15' into v8/8.16
# Conflicts:
#	src/SolutionInfo.cs
2021-08-30 11:17:12 +02:00
Sebastiaan Janssen ee1faa4da2 Bump version to 8.15.3 2021-08-30 11:15:11 +02:00
Sebastiaan Janssen 8b54c8655c Merge branch 'v8/8.14' into v8/8.15
# Conflicts:
#	src/SolutionInfo.cs
2021-08-30 11:14:00 +02:00
Sebastiaan Janssen cac4124dea Bump version to 8.14.4 2021-08-30 11:12:45 +02:00
Nikolaj ac8a83177f Make AutoInterningStringKeyCaseInsensitiveDictionaryConverter case insensitive
Instead of calling the parents CreateDictionary we just newed up a regular dictionary leading to AutoInterningStringKeyCaseInsensitiveDictionaryConverter not actually being case insensitive
2021-08-26 14:21:40 +02:00
Ronald BarendseandGitHub 8020c1f00d Fix duplicate property alias validation 2021-08-25 11:16:00 +02:00
Mads Rasmussen ea7985aec1 we cant track by property alias because it may not be unique when you add a property 2021-08-25 10:53:02 +02:00
Sebastiaan Janssen d13a555204 Merge branch 'v8/8.15' into v8/8.16 2021-08-24 16:38:48 +02:00
Paul JohnsonandSebastiaan Janssen e558d11fa9 Revert "Optimization by returning the same instance"
This reverts commit 990fc118cb.

When using the _reusableEditor field to create a BlockEditorPropertyEditor
it doesn't matter that content type cache has been invalidated (memory cache)
as the content types are also cached in a private field in the BlockEditorValues class.

Closes #10910

(cherry picked from commit 94b0b252ec)
2021-08-24 16:38:18 +02:00
Paul JohnsonandSebastiaan Janssen 94b0b252ec Revert "Optimization by returning the same instance"
This reverts commit 990fc118cb.

When using the _reusableEditor field to create a BlockEditorPropertyEditor 
it doesn't matter that content type cache has been invalidated (memory cache)
as the content types are also cached in a private field in the BlockEditorValues class.

Closes #10910
2021-08-24 16:36:13 +02:00
Sebastiaan Janssen 90d37e0b5c Merge branch 'v8/dev' into v8/contrib 2021-08-24 10:35:02 +02:00
Sebastiaan Janssen 51237a098f Merge branch 'v8/8.16' into v8/dev 2021-08-24 10:34:33 +02:00
Sebastiaan Janssen d37a4c4be0 Merge branch 'v8/8.15' into v8/8.16 2021-08-24 10:32:41 +02:00
Shannon DeminickandSebastiaan Janssen 14a94f0ba5 Merge pull request #10847 from umbraco/v8/bugfix/backport-fix-for-10774-into-v8
Backport fix for #10774 to v8

(cherry picked from commit 88f17b7cbf)
2021-08-24 08:41:10 +02:00
Shannon DeminickandGitHub 88f17b7cbf Merge pull request #10847 from umbraco/v8/bugfix/backport-fix-for-10774-into-v8
Backport fix for #10774 to v8
2021-08-24 06:41:57 +10:00
Shannon e869ba7e9b removes comment 2021-08-23 14:41:26 -06:00
Mads Rasmussen 72749fd3e2 keep local group if it still has properties 2021-08-23 19:29:44 +02:00
Sebastiaan Janssen 604b45bbc0 Merge branch 'v8/dev' into v8/contrib 2021-08-23 15:19:15 +02:00
Sebastiaan Janssen c023f35638 Merge branch 'v8/8.16' into v8/dev 2021-08-23 15:18:53 +02:00
Chad CurrieandSebastiaan Janssen 8b685a0a2c Update Serilog.Enrichers.Process to 2.0.2 as it fixes a leak
(cherry picked from commit dcc533fd8d)
2021-08-23 15:18:03 +02:00
ChadandSebastiaan Janssen d085b11752 DIspose Process (#10918)
(cherry picked from commit a2dab5b6ca)
2021-08-23 15:17:57 +02:00
Sebastiaan Janssen c87dc1c3a6 Merge branch 'v8/8.15' into v8/8.16 2021-08-23 15:17:36 +02:00
Mads Rasmussen 6d62d91bf2 fix missing checkmark when checkbox is checked 2021-08-23 15:15:26 +02:00
Sebastiaan Janssen 0ecc887175 Merge branch 'v8/8.14' into v8/8.15 2021-08-23 14:52:05 +02:00
Sebastiaan Janssen 82fc05ac51 Cannot copy page with Block List block with property that 'looks like' JSON #10879 (#10925)
(cherry picked from commit cd6cb3737e)
2021-08-23 14:51:11 +02:00
Sebastiaan JanssenandGitHub cd6cb3737e Cannot copy page with Block List block with property that 'looks like' JSON #10879 (#10925) 2021-08-23 14:48:49 +02:00
Chad CurrieandSebastiaan Janssen dcc533fd8d Update Serilog.Enrichers.Process to 2.0.2 as it fixes a leak 2021-08-23 14:47:50 +02:00
ChadandGitHub a2dab5b6ca DIspose Process (#10918) 2021-08-23 14:44:48 +02:00
Ronald Barendse fde1759d49 Merge branch 'v8/contrib' into v8/feature/reintroduce-tabs 2021-08-23 14:36:24 +02:00
Ronald Barendse 6883cf40a8 Initial validation of compositions containing invalid property groups (same alias, different type) 2021-08-23 14:34:24 +02:00
Ronald Barendse eebd88f271 Ensure details of local groups are used by default 2021-08-23 13:18:39 +02:00
Sebastiaan Janssen 42c59a91ca Bump version to 8.16.0 2021-08-23 11:14:27 +02:00
Sebastiaan Janssen f26fbafa71 Merge branch 'v8/dev' into v8/contrib 2021-08-23 11:04:47 +02:00
Sebastiaan Janssen 59e36981cd Merge branch 'v8/8.16' into v8/dev 2021-08-23 11:04:26 +02:00
Sebastiaan Janssen 0f3e2cfd02 Merge branch 'v8/8.15' into v8/8.16
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/less/property-editors.less
2021-08-23 11:03:45 +02:00
Sebastiaan Janssen c72cb1683b Removes unneeded flex that caused an issue with the image cropper datatype
Fixes #10876
2021-08-23 11:01:53 +02:00
Ronald Barendse d1457702b2 Ensure Id element is still exported for Tabs (older CMS versions break without it present) 2021-08-21 11:43:11 +02:00
Sebastiaan Janssen db16f9c6dc Merge branch 'v8/dev' into v8/contrib 2021-08-20 16:54:50 +02:00
Sebastiaan Janssen a82723b4f1 Merge branch 'v8/8.16' into v8/dev 2021-08-20 16:54:30 +02:00
Sebastiaan Janssen 4c0cdbd615 Merge branch 'v8/8.15' into v8/8.16 2021-08-20 16:54:05 +02:00
Sebastiaan Janssen 78d8f5b9e8 Merge branch 'v8/8.14' into v8/8.15 2021-08-20 16:45:19 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 22c49398e3 Hide backdrop when closing/select navigation (#10907)
(cherry picked from commit 72d33b8f68)

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/directives/components/tree/umbtree.directive.js
#	src/Umbraco.Web.UI.Client/src/common/services/navigation.service.js
2021-08-20 16:38:55 +02:00
Bjarne FyrstenborgandGitHub 72d33b8f68 Hide backdrop when closing/select navigation (#10907) 2021-08-20 15:59:31 +02:00
Sebastiaan Janssen 3030269bde Create a cloud-specific zip that includes necessary config transforms for cloud 2021-08-20 14:21:36 +02:00
Sebastiaan Janssen d566d42c4b Remove unintentional change from 15 months ago that causes you to end up in your windows users folder after each build 2021-08-20 14:20:46 +02:00
Ronald Barendse 5f372a3329 Fix importing document types with properties within nested groups 2021-08-20 12:15:29 +02:00
Mads Rasmussen e605fc02cd update sort order logic when dragging and dropping groups 2021-08-20 10:44:50 +02:00
Ronald Barendse 60ced5db8c Retarget migration to 8.17 2021-08-19 23:29:40 +02:00
Mads Rasmussen 97e5c8fef0 moving of properties works 2021-08-19 14:58:28 +02:00
Mads Rasmussen ab2276bdd7 update sort order on drag and drop 2021-08-19 14:57:13 +02:00
Mads Rasmussen e8a9165d39 refresh groups sortable when dragging to new tab 2021-08-19 14:43:00 +02:00
Ronald Barendse e5a1e0f4e9 Merge branch 'v8/contrib' into v8/feature/reintroduce-tabs 2021-08-19 13:44:17 +02:00
patrickdemooij9andGitHub 2c1185598e 9908: No parentheses & language picker with only 1 language (#10892)
* 9908: No parantheses & language picker with only 1 language

* 9908: Fixed missing )
2021-08-19 10:12:48 +10:00
Bjarne FyrstenborgandGitHub 61f929e660 Adjust styling of umb-file-icon (#10895)
* Adjust styling of umb-file-icon with new umb-icon

* Styling on legacy icons

* Use umb-icon and add missing class

* Simplify icons

* Use umb-search-filter in umb-tree-search-box and add back button
2021-08-19 09:34:17 +10:00
e2af016a7b Inherit text color from parent element (#10894)
* Inherit text color from parent element

* Update block card icon and avoid use of !important

* Wrap card in div

* interpolate background image path value, to remove string escaping which can be confusing

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-08-19 09:11:31 +10:00
Bjarne FyrstenborgandNathan Woulfe dc359cc819 User super user id 2021-08-19 08:49:32 +10:00
ac53b89fe1 V8: Improve nested content optimization in the backoffice (#10885)
* Get all nested content scaffolds in a single post request

* Only load alias array and initialize once

* Remove old nested content load code

* Get the content types within a scope

This will drastically reduce the amount of SQL queries, since the same read lock will be used for all operations.

* Add comments

* Fix typo

* Fix typos

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
2021-08-18 15:51:16 +02:00
Ronald Barendse 469091b180 Align delete button (trash can) 2021-08-17 17:07:25 +02:00
Warren BuckleyandGitHub f62fbe3327 Minor tour update (#10875) 2021-08-17 16:06:09 +02:00
5a47acceda Raise SendingContentModel event for each element type in blocklist (#10869)
Co-authored-by: Nikolaj <nel@umbraco.dk>
2021-08-17 14:36:19 +02:00
Ronald Barendse 471a560465 Remove automatic child alias updating on server-side (due to issues with adding already changed aliases) 2021-08-17 14:25:05 +02:00
Ronald Barendse 1ad73c099d Ensure correct order of groups 2021-08-17 14:08:52 +02:00
Sebastiaan Janssen 98f5d471fc Correct the path of the config file 2021-08-17 12:03:49 +02:00
Mads Rasmussen f765a19535 add some tests for content type helper and alias generation 2021-08-17 10:17:30 +02:00
4dd3b81b1f UI improvement: Add option to select/deselect all filters in Log Viewer drop-down (#10815)
* Update search.controller.js

Minor linting update to existing code

* Basic functionality for select and deselect all log level filters

* Fix button texts and added localisations for languages en, en_us, da

* Grammar correction of Danish localisation

* Finalise button styling using the umb-button directive, including localisation of labels

* Minor linting update

* Add various localisations of "select all" and "deselect all" for Log Viewer

* Minor refactor of select/deselect buttons to be wrapped in <umb-dropdown-item> directive

* use foreach/map

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-08-17 14:22:58 +10:00
Bjarne FyrstenborgandGitHub f4504d7824 Password tip not updated correct on init (#10814)
* Angular binding in curly brackets not necessary when using ng-bind or ng-bind-html

* Update password tip on init

* Update comment
2021-08-17 14:03:54 +10:00
Bjarne FyrstenborgandGitHub 22c80f0ff1 Update to noUiSlider v15.4.0 (#10870) 2021-08-17 10:47:33 +10:00
Sebastiaan JanssenandGitHub 1057df997d Trying to prevent unnecessary CodeQL errors for contributors (#10867) 2021-08-16 15:40:06 +02:00
e0fb606eb8 #10572 watch model value (#10634)
* setup watch, to ensure model value is reflected across variants in splitview.

* unsubscribe watch

Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-08-16 10:26:17 +10:00
Lars-ErikandNathan Woulfe f7428ac67b Decouple NuCache.Property from NuCache.PublishedSnapshot 2021-08-16 09:34:33 +10:00
Bjarne FyrstenborgandGitHub deedb24b65 Upgrade to noUiSlider v15.3.0 (#10852) 2021-08-16 09:12:48 +10:00
Bjarne FyrstenborgandGitHub 82cf0e30a5 Implement drag start and drag stop events (#10856) 2021-08-16 09:11:50 +10:00
Mads Rasmussen 9f9d6e8148 move alias related methods from contentEditingHelper to contentTypeHelper 2021-08-13 14:06:54 +02:00
Nikolaj GeisleandGitHub c15e4bc025 Merge pull request #10810 from DanDiplo/temp-debuggerdisplay
Adding [DebuggerDisplay] attribute to core published content classes …
2021-08-13 13:50:52 +02:00
Mads Rasmussen 64e254657c fix drag and drop direct properties 2021-08-13 13:48:25 +02:00
Paul Johnson 5c7bf075e6 Backport fix for #10774 to v8
Call EnsureCaches on all notify handlers in PublishedSnapshotService.
No need to delete NuCache database files.
2021-08-12 19:28:48 +01:00
Sebastiaan Janssen 33feb808dd Fix version dependencies 2021-08-12 14:56:55 +02:00
Sebastiaan Janssen 4ae1d9ee06 Merge branch 'v8/8.15' into v8/8.16 2021-08-12 14:54:06 +02:00
Sebastiaan Janssen a5ff183015 Bump version to 8.15.2 2021-08-12 14:48:15 +02:00
Sebastiaan Janssen 3d088a0376 Merge branch 'v8/8.14' into v8/8.15
# Conflicts:
#	src/SolutionInfo.cs
2021-08-12 14:31:47 +02:00
Sebastiaan Janssen 2c885f7a86 Bump version to 8.14.3 2021-08-12 14:30:10 +02:00
Mads Rasmussen e3f75252a2 update delete dialogs to handle empty names 2021-08-12 11:36:07 +02:00
Mads Rasmussen c93a572425 lower tab hover timeout 2021-08-12 10:23:27 +02:00
Mads Rasmussen e73ed39039 align group inherited label to the right 2021-08-12 10:21:59 +02:00
Mads Rasmussen deb21e96fe show composition icon on inherited tabs 2021-08-12 09:53:10 +02:00
Niels Lyngsø 6d7067cbb0 fixing dragging forth and back between tabs + fixes the problem with dragging to generic tab. 2021-08-11 14:27:47 +02:00
Niels Lyngsø 4c8956c654 dropzone take no place unless visible 2021-08-11 11:34:55 +02:00
Mads Rasmussen 2651f0fe63 move convert tab to group function outside the setSortingOptions function 2021-08-11 10:31:30 +02:00
Mads Rasmussen 05e8cfa9f4 Add dropzone to convert a group to a tab 2021-08-11 09:54:19 +02:00
690a6314df Remove requirement to specify icon class in umb-icon directive (#10805)
* Wrap legacy font icon so we can inherit font from parent element

* Remove icon name from class attributes

* Add back class as color is part of icon

* Replace icon classes

* Replace icon class

* Use umb-icon

* Remove icon classes

* Remove icon classes

* Update color for SVG icons

* Inherit animation

* Add icon add class to SVG as well

* Update umb-icon inner wrapper

* Fix issue with search icon styling in property editors dialog

* Formatting

* Adjust umb-icon with transclude

* Change back to original back icon from font awesome

* Adjust styling for font icon

* Replace with umb-icon

* Use umb-icon in packager

* Use umb-icon in help drawer

* Use umb-icon in treesource prevalue editor

* Update font size

* Replace with umb-icon

* Replace icons with umb-icon

* div isn't valid inside label element

* Replace more icons

* Use umb-search-filter component

* Update to use umb-icon

* Use end-closing tag for custom HTML element

* Use umb-icon component

* Use umb-icon component to replace icons

* Replace with umb-icon

* Replace icons with umb-icon

* Replace more icons

* Custom HTML element should have end-closing tag

* Replace icons with umb-icon

* Replace icons

* Remove unused variable

* Replace icon

* Replace icons

* Revert to `<i>` element as it was causing issues with isolated scopes

* Adjust umb-checkmark to work with umb-icon

* Adjust lightbox styling

* Remove unused helper class and it is already available as "self-center" in _flexbox.less

* remove unused class from icon, shift margin to parent element

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-08-11 16:20:54 +10:00
Bjarne FyrstenborgandGitHub 2dadfc2990 Check invariant name of custom listview (#10813)
* Check invariant name of custom listview

* Update prefix value
2021-08-10 09:29:30 +10:00
Mads Rasmussen 99ffbed7a6 wrap variant switcher in correct flex values 2021-08-09 10:53:22 +02:00
Sebastiaan Janssen 9b93a8f1ab Bump version to 8.16.0-rc 2021-08-09 08:26:22 +02:00
Dan Booth 56f0f6b3fe Adding [DebuggerDisplay] attribute to core published content classes to make debugging easier 2021-08-06 20:21:30 +01:00
Kevin MeilanderandSebastiaan Janssen 1dd75b9051 #10354 - added domain content id as node context for the content finder for the 404 error page so $site works 2021-08-06 16:33:57 +02:00
Adam NelsonandSebastiaan Janssen 0bc9f3e322 Fix textboxes inside flatpickr popup to not cause the scheduled publishing overlay to submit when enter is pressed. 2021-08-06 16:31:21 +02:00
Sebastiaan Janssen 33e980841f Update to latest flatpickr 2021-08-06 16:27:07 +02:00
Philippe GuilmetteandSebastiaan Janssen 19a6184502 Delete entries from umbracoUserLogin before deleting the user (fix for 10269) 2021-08-06 16:14:32 +02:00
Sebastiaan Janssen f7dee7ec74 Fix self-closing element 2021-08-06 15:55:50 +02:00
Jan SkovgaardandGitHub dafa5d2ef6 Numberrange view: Various minor improvements (#10452) 2021-08-06 15:33:52 +02:00
inetzoandSebastiaan Janssen 4e4412ed34 RelationType parent/child are stored in the wrong order
When creating a new relationtype, the parent and child type are stored in reverse order (parent- and childtype are switched).
2021-08-06 15:28:53 +02:00
Rachel BreezeandGitHub 9b57ec5fa6 Accessibility Amends for the Content Info Tab (#10541) 2021-08-06 15:27:18 +02:00
Michel CollardandSebastiaan Janssen 25888a5da1 Changed umb-notifications z-index 2021-08-06 15:23:20 +02:00
Callum WhyteandSebastiaan Janssen 47df53db95 Adding extension for MapDefinitions collection builder 2021-08-06 15:20:49 +02:00
Sebastiaan Janssen 7d0558d59f Update ImageProcessor dependencies 2021-08-06 15:05:49 +02:00
Jan SkovgaardandGitHub 319e3ed7b9 Add label in mini search component (#10583) 2021-08-06 14:37:17 +02:00
Sebastiaan Janssen 210d155afd Merge branch 'v8/dev' into v8/contrib 2021-08-06 14:10:23 +02:00
Sebastiaan Janssen e6cff8c7f5 Merge branch 'v8/8.15' into v8/dev 2021-08-06 14:08:20 +02:00
Sebastiaan Janssen 61a273c3f5 Merge branch 'v8/8.14' into v8/8.15 2021-08-06 14:07:53 +02:00
Niels LyngsøandSebastiaan Janssen 9ccabd51b9 append a input with ng-model which matches the field coming from model state
(cherry picked from commit 9a16adcb18)
2021-08-06 13:51:26 +02:00
Mads RasmussenandSebastiaan Janssen cf64430116 #10520 Correct mandatory markers in nested content (#10563)
(cherry picked from commit c1a4e07e87)
2021-08-06 13:50:50 +02:00
Niels LyngsøandSebastiaan Janssen c1956882fe append a input with ng-model which matches the field coming from model state
(cherry picked from commit 9a16adcb18)
2021-08-06 13:49:05 +02:00
Niels LyngsøandSebastiaan Janssen 9a16adcb18 append a input with ng-model which matches the field coming from model state 2021-08-06 13:23:17 +02:00
Mads Rasmussen 6f73c6041a Use relocateDisorientedGroups feature in content, media, member + block list editor 2021-08-06 13:02:52 +02:00
Chad CurrieandSebastiaan Janssen 67e812d93c Don't create new empty arrays 2021-08-06 13:01:18 +02:00
nzdevandSebastiaan Janssen 6f8749bc52 Automatically intern contentType Alias and propertyType Alias when querying the database to save on memory and speed up comparisons. 2021-08-06 13:00:28 +02:00
nzdevandSebastiaan Janssen 54b4d6f8d1 Compress true/false from int to bool 2021-08-06 12:59:20 +02:00
Patrick de MooijandSebastiaan Janssen 51e6ff5cbf Fix examine overview not working as expected 2021-08-06 12:55:40 +02:00
inetzoandGitHub 0ebf8742c3 UserService.SavedUserGroup event returns wrong list of AddedUsers (#10681) 2021-08-06 12:53:35 +02:00
Sebastiaan Janssen 7030d5b170 Removes the changeDocType translations as this is no longer a feature in v8 (triggered by #10499) 2021-08-06 12:44:58 +02:00
Ronald BarendseandGitHub 40d8e11ba7 Match neutral cultures as Examine culture fields (#9305) 2021-08-06 12:22:03 +02:00
Bjarne FyrstenborgandGitHub f4f6350879 Use colorpicker plugin when plugins includes table plugin (#10523) 2021-08-06 12:01:25 +02:00
Bjarne FyrstenborgandGitHub 8b40753f2c Fix issue with show selected member types on init using treepicker (#10204) 2021-08-06 11:59:41 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 9e12190b6f Fix localization of title attribute 2021-08-06 11:34:34 +02:00
Bjarne FyrstenborgandGitHub 9f3eddf95f Refactor NPoco queries to use constants and dtos (#10654) 2021-08-06 11:32:16 +02:00
Sebastiaan Janssen 4c4120d674 Merge branch 'v8/contrib' into v8/dev 2021-08-06 11:02:03 +02:00
Mads Rasmussen ffcce26a89 Fix: Tabs active state are distrubed by the Anchor Links/scroll feature. 2021-08-06 10:44:50 +02:00
Mads Rasmussen 815013f21d allow validation messages to overflow toolbar 2021-08-06 09:39:44 +02:00
Mads Rasmussen c0902dbf1a include inherited groups with local props in server validation index 2021-08-06 09:25:23 +02:00
Mads Rasmussen 39eba15f5e tab aliases can change - make sure we always have the right one for validation 2021-08-06 09:23:48 +02:00
Bjarne FyrstenborgandGitHub 137be33a6c Fixes various issues with javascript services (#10800) 2021-08-06 09:09:50 +02:00
Mads Rasmussen 51743d97bc find index in group when deleting a tab after removing it for validation 2021-08-05 21:33:13 +02:00
Mads Rasmussen c03eec8a11 fixes: The height of the tabs bar also collapses entirely when in reorder mode without any tabs 2021-08-05 21:17:21 +02:00
Mads Rasmussen 6650ebd6d2 order tabs on init to make sure compositions are ordered correctly 2021-08-05 21:07:33 +02:00
Mads Rasmussen 6cfb052285 don't include inherited groups in server validation index 2021-08-05 21:03:23 +02:00
Sebastiaan Janssen d55b740b16 Fix possible null result in #10762 2021-08-05 17:05:48 +02:00
Niels Lyngsø 83907089b7 Merge branch 'v8/feature/reintroduce-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/feature/reintroduce-tabs 2021-08-05 16:22:43 +02:00
jattwoodandSebastiaan Janssen ea42063424 Fix for #10678. 2021-08-05 16:14:23 +02:00
Sebastiaan Janssen ef3495b16a Amending fix for #10739 2021-08-05 16:09:14 +02:00
Bjarne FyrstenborgandGitHub 120bc2af11 Examine dashboard search adjustments (#10735) 2021-08-05 15:57:14 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 4513a85d14 Only set umb-button-ellipsis opacity to 1 when above backdrop 2021-08-05 15:32:15 +02:00
Bjarne FyrstenborgandGitHub 854634b243 Tour backdrop missing (#10762) 2021-08-05 15:22:23 +02:00
Bjarne FyrstenborgandGitHub a7c0edec28 Support custom SVG icons in user groups list (#10739) 2021-08-05 15:05:03 +02:00
Mads Rasmussen d5dee05514 remove reference to file 2021-08-05 13:55:31 +02:00
Mads Rasmussen 199e3e449c fix height change when the Generic tab is active without containing items + add white space in the top of the other subviews 2021-08-05 13:19:51 +02:00
Mads Rasmussen 05f6b4dc7c When exiting the reorder mode while the generic tab is empty, set the active tab to the first available one 2021-08-05 13:01:47 +02:00
Niels Lyngsø 2f69eff8f5 Merge branch 'v8/feature/reintroduce-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/feature/reintroduce-tabs 2021-08-05 12:39:51 +02:00
Niels Lyngsø 2862a64f72 remove log 2021-08-05 12:39:40 +02:00
Mads Rasmussen a1893206d4 set height to 100% on add tab button 2021-08-05 12:37:00 +02:00
Mads Rasmussen 94ed309b55 remove white space on right side of generic tab 2021-08-05 12:36:38 +02:00
Sebastiaan JanssenandGitHub 7800fe83a8 Install MessagePack's dependencies explicitly (#10772) 2021-08-05 11:57:03 +02:00
Rowan BottemaandSebastiaan Janssen 6a12f4af90 Update Serilog dependencies
This should at least fix #10793 because of a memory leak fix in Serilog.Sinks.Map 1.0.2. Also updated the rest for good measure.

Note that Serilog.Sinks.File is not upgraded to the latest version because it is a new major (4.1.0 -> 5.0.0). Also note that Serilog.Filters.Expressions is deprecated and should be replaced by Serilog.Expressions. I considered both out of scope for this fix.
2021-08-05 11:56:37 +02:00
Ronald Barendse 5edc5fd6c2 Merge branch 'v8/feature/reintroduce-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/feature/reintroduce-tabs 2021-08-05 10:52:30 +02:00
Ronald Barendse 362b797006 Fix validation server field name index of group 2021-08-05 10:52:26 +02:00
Ronald Barendse 8b3f43f00a Add alias tooltip on tabs and groups 2021-08-05 10:49:13 +02:00
Ronald Barendse 581437cf8b Keep alias casing intact and ignore casing when comparing 2021-08-05 10:38:51 +02:00
Ronald Barendse 2b2022acd1 Return validation results for all duplicate group aliases/names and fix member name indexes 2021-08-05 10:37:19 +02:00
Niels Lyngsø cdaad8e8e3 relocate disoriented groups 2021-08-05 10:01:26 +02:00
Sebastiaan Janssen 14fc72ff2b Reverting ConcurrentHashSet for now so that Umbraco can install again, see #10751 2021-08-05 09:50:58 +02:00
Niels Lyngsø 6254909270 cancel drop timer when mouse-out 2021-08-05 09:19:24 +02:00
Niels Lyngsø e5c6716fb8 remove unused hover class 2021-08-04 19:05:02 +02:00
Niels Lyngsø 8d1034db60 Switch tab after a delay, plus tab droppable indication. 2021-08-04 19:01:20 +02:00
Niels Lyngsø ce9d38aad7 remove double ; 2021-08-04 18:10:02 +02:00
Niels Lyngsø d0db43da35 remove log 2021-08-04 17:04:14 +02:00
Niels Lyngsø 621dbebf95 generate unique alias 2021-08-04 17:04:01 +02:00
Niels Lyngsø 90046fadd3 Merge branch 'v8/feature/reintroduce-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/feature/reintroduce-tabs 2021-08-04 17:01:33 +02:00
Niels Lyngsø 3060dc2ba3 add missing l in class 2021-08-04 17:01:20 +02:00
Ronald Barendse a86c57d497 Update group validation to only get the last duplicate alias/name 2021-08-04 16:46:36 +02:00
Ronald Barendse 3ee1013bdb Validate unique group names per parent 2021-08-04 16:39:36 +02:00
Sebastiaan Janssen 96d5935933 Revert "Accessibility improvements for Extensions in Razor Markup (#9576)"
This reverts commit a1e0af6fff.
2021-08-04 14:19:34 +02:00
Mads Rasmussen d156f6a1d0 add anchor links for doc types without tabs 2021-08-04 13:45:18 +02:00
Ronald Barendse 7d46129b76 Fix mutable property group keys/aliases 2021-08-04 13:11:31 +02:00
Mads Rasmussen c121a701a8 fix validation marker on generic tab for content type editors 2021-08-04 12:58:14 +02:00
Mads Rasmussen 5a67ceb39f fix validation marker on generic tab for content, media, members and block list 2021-08-04 12:46:07 +02:00
Mads Rasmussen f43d84787d use resize observer to calculate tabs width 2021-08-04 10:51:07 +02:00
Niels Lyngsø fac303b274 enabling opening a parent composition type 2021-08-04 10:14:07 +02:00
Niels Lyngsø c97073b414 align style for tabs and inherited tabs 2021-08-04 10:13:34 +02:00
Mads Rasmussen cff39b14c6 fix validation marker on generic tab 2021-08-03 15:14:44 +02:00
Mads Rasmussen ead92ddf36 render tabs on member 2021-08-03 15:14:27 +02:00
Niels Lyngsø 8791c8dcc5 Merge branch 'v8/feature/reintroduce-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/feature/reintroduce-tabs 2021-08-03 14:47:17 +02:00
Niels Lyngsø d4b9ce6648 if alias is null, when we return null. needed for generic-tab 2021-08-03 14:47:07 +02:00
Mads Rasmussen a5eeee038a render tabs in media section 2021-08-03 13:49:09 +02:00
Mads Rasmussen 1991174115 fix tab validation in content editor and block list editor after change to aliases 2021-08-03 12:55:24 +02:00
Niels Lyngsø 7cdae9f5c1 Merge branch 'v8/feature/reintroduce-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/feature/reintroduce-tabs 2021-08-03 12:50:36 +02:00
Niels Lyngsø d717556528 Add parentAlias for umbElementContentEditor 2021-08-03 12:50:26 +02:00
Ronald Barendse 6e5295eb0a Use localizeMany and update to arrow function expressions 2021-08-03 09:53:13 +02:00
Julia GruandGitHub b070a36039 reset confirmDiscardChanges on save (#10777) 2021-08-02 15:11:42 +02:00
Ronald Barendse daf2d7c946 Merge branch 'v8/contrib' into v8/feature/reintroduce-tabs and add fixes from #10150 and #10759 2021-08-02 11:35:39 +02:00
d40e503c82 V8: Fix JS error when using the hide search function in treepicker (#6931)
* Fix JS error when using the hide search function in treepicker

* updates with same defensive change from original pr - only explores child.children after confirming the child indeed has children

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-08-02 09:26:30 +10:00
Bjarne FyrstenborgandNathan Woulfe d537545fa9 Use umb-icon component in user history 2021-08-02 09:14:15 +10:00
Bjarne FyrstenborgandGitHub 050cdd2bb0 Update icon in member group picker (#10094)
* Use member group icon as default icon

* Make pickers consistent using member group entity icon

* Remove unused functions

* Use vm

* Use original getSelected() function

* Include clear function again

* Fix merge conflict

* Remove comment - remove function is requested from <umb-node-preview> in view

* Remove comment - wasn't used, but intend to use in PR 10096 to use property actions to clear member group picker
2021-08-02 08:32:54 +10:00
Bjarne FyrstenborgandGitHub d9555ea57c Update noUiSlider to v15.2.0 (#10319)
* Upgrade to noUiSlider v15.1.1

* Configurate on drag event

* Update nouislider dependencies

* Update description

* Upgrade to latest noUISlider v15.2.0
2021-08-02 08:31:41 +10:00
Bjarne FyrstenborgandGitHub 56790f72b0 Replace angular.forEach with Utilities.forEach (#10759)
* Replace angular.forEach with Utilities.forEach

* Use localizeMany to localize translations in a single request

* Replace angular.forEach

* Replace angular.forEach in mocks
2021-08-02 08:18:30 +10:00
Robert Ghafoorandemma-hq 168abbf2f7 10758 Caption will now be correctly set when passing in a target to the media picker. 2021-07-30 12:45:39 +01:00
Sebastiaan Janssen 3b227b9c67 Merge branch 'v8/dev' into v8/contrib 2021-07-29 14:10:26 +02:00
Sebastiaan Janssen 05973ecae8 Merge branch 'v8/8.15' into v8/dev 2021-07-29 14:10:09 +02:00
Sebastiaan Janssen 7c336554db Fix: Issue when upgraded from 8.14 to 8.15 when inviting user into the backoffice. #10746 (#10767)
* Remove unusable method

* Fixes #10746 by removing the recursive call ending in an infinite loop

Also: the culture is already known, don't take the `CurrentUICulture`
(cherry picked from commit cb06442de4)
2021-07-29 14:06:29 +02:00
Sebastiaan JanssenandGitHub cb06442de4 Fix: Issue when upgraded from 8.14 to 8.15 when inviting user into the backoffice. #10746 (#10767)
* Remove unusable method

* Fixes #10746 by removing the recursive call ending in an infinite loop

Also: the culture is already known, don't take the `CurrentUICulture`
2021-07-29 12:54:05 +01:00
Sebastiaan Janssen 905b43f8af Merge branch 'v8/dev' into v8/contrib 2021-07-29 10:22:36 +02:00
Sebastiaan Janssen 52e8237a0e Merge branch 'v8/8.15' into v8/dev 2021-07-29 10:22:10 +02:00
Bjarne FyrstenborgandNathan Woulfe 7f2b85da19 Don't squeeze avatar when help panel is open 2021-07-29 08:07:25 +10:00
Bjarne FyrstenborgandGitHub 8209525611 Modernize mini listview component to use svg icons and umb-search-filter component (#10740) 2021-07-27 15:49:16 +02:00
Sebastiaan Janssen e8926ab17d Merge branch 'v8/8.14' into v8/8.15 2021-07-27 14:54:40 +02:00
Bjarne FyrstenborgandSebastiaan Janssen f7529e0cf5 Inject windowResizeListener in Image Crop directive (#10745)
(cherry picked from commit 2eb554f1b4)
2021-07-27 14:53:09 +02:00
Bjarne FyrstenborgandGitHub 2eb554f1b4 Inject windowResizeListener in Image Crop directive (#10745) 2021-07-27 14:52:01 +02:00
Niels Lyngsø ffb240c2c9 wrap add-tab in <li> 2021-07-23 14:30:02 +02:00
9807365800 Escape HTML in localization tokens. (#10729)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-07-23 14:26:12 +02:00
Niels Lyngsø 66cb8167db Merge remote-tracking branch 'origin/v8/dev' into v8/feature/reintroduce-tabs 2021-07-23 14:15:48 +02:00
Sebastiaan Janssen 175bb3e6df Bump version to 8.15.1 and merge branch 'v8/8.14' into v8/8.15
# Conflicts:
#	src/SolutionInfo.cs
2021-07-23 13:35:15 +02:00
Sebastiaan Janssen 071a89a59b Bump version to 8.14.2 2021-07-23 13:32:30 +02:00
Patrick de MooijandNathan Woulfe c86d3b1dae 9157: Use the sorting event instead of the saving 2021-07-23 09:44:19 +10:00
Anders BjernerandNathan Woulfe 6116ec814d Update umbeditorview.directive.js 2021-07-23 09:32:51 +10:00
Bjarne FyrstenborgandGitHub c812dab967 File upload checkered background (#10621)
* Use umb-icon component

* Cleanup unused css and use checkered background on both image cropper and file upload
2021-07-23 09:26:37 +10:00
fe9d0db763 10718 Enables more configured Blocks in Block List Editor (#10726)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2021-07-22 15:03:09 +02:00
Sebastiaan Janssen d615c1e88b Merge branch 'v8/dev' into v8/contrib 2021-07-22 14:01:55 +02:00
Sebastiaan Janssen 1e13f3feea Merge branch 'v8/8.15' into v8/dev 2021-07-22 14:01:31 +02:00
Sebastiaan Janssen ab0fcdfb9f Merge branch 'v8/8.14' into v8/8.15 2021-07-22 14:01:02 +02:00
Matt BrailsfordandSebastiaan Janssen 98266d462c Removes inert attribute when editorService.closeAll() is called
Fixes #10708 by removing the `inert` attribute on `#mainWrapper` when `editorService.closeAll()` is called.

This code is necessary because when close all is called, there is no editor passed, and so `removeEditor` is never called, and so the `focusLockService.removeInertAttribute();` method isn't called. I add to the if block that handles the close all code instead.

(cherry picked from commit 1f4cc81af8)
2021-07-22 13:59:33 +02:00
Matt BrailsfordandSebastiaan Janssen 1f4cc81af8 Removes inert attribute when editorService.closeAll() is called
Fixes #10708 by removing the `inert` attribute on `#mainWrapper` when `editorService.closeAll()` is called.

This code is necessary because when close all is called, there is no editor passed, and so `removeEditor` is never called, and so the `focusLockService.removeInertAttribute();` method isn't called. I add to the if block that handles the close all code instead.
2021-07-22 13:55:48 +02:00
Warren BuckleyandGitHub 4df4b3eeaf Merge pull request #10603 from umbraco/v8/bugfix/creating-document-types-sqlce
Fix duplicate ID when creating document types with SQL CE
2021-07-21 12:11:22 +01:00
MoleandGitHub 8efdc5a047 Merge pull request #10150 from umbraco/v8/bugfix/removing-unnecessary-readerwriterlock
Ensure that any ReaderWriterLockSlim is disposed, or replaced with a more suitable lock
2021-07-21 08:39:48 +02:00
Shannon 3ce2cf0992 Merge remote-tracking branch 'origin/v8/contrib' into v8/bugfix/removing-unnecessary-readerwriterlock 2021-07-20 10:05:32 -06:00
Niels Lyngsø abe78a2be5 revert umb-tabs-nav-item and use val-tab for umb-tray-buttons 2021-07-20 13:28:02 +02:00
Niels Lyngsø 973b177624 prefix variables from attritbute-directive valTab with valTab_ 2021-07-20 12:30:22 +02:00
Niels Lyngsø 1f527b3152 umb-tabs-nav-item 2021-07-20 12:25:27 +02:00
Niels Lyngsø fda8c6bc82 use white bar for doc type editor tabs 2021-07-20 12:22:21 +02:00
Sebastiaan Janssen 3a2a79108d Merge branch 'v8/dev' into v8/contrib 2021-07-20 10:23:29 +02:00
Sebastiaan Janssen 3feda1bc58 Merge branch 'v8/8.15' into v8/dev 2021-07-20 10:22:32 +02:00
Sebastiaan Janssen fce0bd0cfd Merge branch 'v8/8.14' into v8/8.15
# Conflicts:
#	src/SolutionInfo.cs
2021-07-20 10:17:40 +02:00
Niels LyngsøandSebastiaan Janssen 3def2ee2ad add vm.model.onValueChanged callback
(cherry picked from commit 8ebb37a596)

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/mediapicker3/umbMediaPicker3PropertyEditor.component.js
2021-07-20 09:41:02 +02:00
Niels LyngsøandSebastiaan Janssen 8ebb37a596 add vm.model.onValueChanged callback 2021-07-20 09:37:29 +02:00
Niels Lyngsø 3739f34ec1 making overflow work 2021-07-19 16:04:44 +02:00
Niels Lyngsø bc0f304556 dont move group if alias already exists in the context. 2021-07-19 15:33:44 +02:00
Niels Lyngsø f10e0872d5 prevent changing alias of groups from other parents when typing names 2021-07-19 15:14:01 +02:00
Niels Lyngsø 481b4daced minor updates 2021-07-19 14:56:39 +02:00
Niels Lyngsø 7a1410f88f visual adjustments 2021-07-19 14:17:32 +02:00
Ronald Barendse ce97ecbd46 Merge branch 'v8/feature/reintroduce-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/feature/reintroduce-tabs 2021-07-16 11:18:50 +02:00
Ronald Barendse c71ad239da Fix saving nested groups with the same name 2021-07-16 11:18:40 +02:00
Niels Lyngsø c849e12b1f Merge branch 'v8/feature/reintroduce-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/feature/reintroduce-tabs 2021-07-16 11:15:45 +02:00
Niels Lyngsø 917df60a39 styling adjustments 2021-07-16 11:15:40 +02:00
Ronald Barendse ad9b9d83e5 Remove unneeded OrderByHierarchy (now the self-referencing foreign key is gone) 2021-07-16 10:19:52 +02:00
Ronald Barendse cdb56b4fa0 Merge branch 'v8/feature/reintroduce-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/feature/reintroduce-tabs 2021-07-15 16:57:21 +02:00
Ronald Barendse 3987429975 Rename current alias to local alias 2021-07-15 16:57:14 +02:00
Ronald Barendse cae6e02ceb Fix migration to handle identical aliases for different group names and write error to log 2021-07-15 16:53:42 +02:00
Niels Lyngsø b2afb89f6f rename current to local 2021-07-15 15:37:12 +02:00
Niels Lyngsø a8bdeb1f32 Merge branch 'v8/feature/reintroduce-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/feature/reintroduce-tabs
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/directives/components/umbgroupsbuilder.directive.js
2021-07-15 15:29:50 +02:00
Niels Lyngsø c4ae74b7d9 also set new parentAlias when renaming alias 2021-07-15 15:25:33 +02:00
Ronald Barendse 40bce56efd Fix handling of alias in tabs/groups 2021-07-15 14:15:39 +02:00
Ronald Barendse 68c26e90a7 Update ContentTypeSave validation to use alias 2021-07-15 14:14:08 +02:00
Niels Lyngsø 66fb1cb451 dont send the key to the server, we didn't do that before this feature, and we do not have a good way to ensure the right keys in compositions. 2021-07-15 11:53:11 +02:00
Niels Lyngsø 23c64c7cd3 use key for 'track by' + ensure key on all groups 2021-07-15 10:52:37 +02:00
Ronald Barendse 09163a3836 Initial changes to use group alias in directives 2021-07-14 22:59:57 +02:00
Ronald Barendse 17df9a9f65 Update tests to account for group name "Content_" getting the same alias as "Content"
This shows the behavioral change to switching from unique names to aliases and should be mentioned in the release notes!
2021-07-14 16:35:49 +02:00
Ronald Barendse ade88757a7 Minor cleanup for improved backwards compatibility 2021-07-14 16:23:06 +02:00
Ronald Barendse 476685c9de Add backwards compatibility for removing property groups by name and update tests 2021-07-14 16:05:42 +02:00
Ronald Barendse 83e704a749 Remove SQL queries referencing the now removed parentKey column 2021-07-14 15:04:19 +02:00
Ronald Barendse 891bd437db Fix failing tests by adding property group aliases 2021-07-14 13:54:26 +02:00
Ronald Barendse 94c864f6fc Fix infinite loop in OrderByHierarchy extension methods 2021-07-14 13:43:56 +02:00
Ronald Barendse d282a82481 Update IContentTypeBase interface to account for group aliases and simplify code for backwards compatibility with group names 2021-07-14 12:02:49 +02:00
Ronald Barendse 8aebf5093b Add GetCurrentAlias/UpdateCurrentAlias extension methods and make PropertyGroupExtensions public 2021-07-14 10:33:29 +02:00
Ronald Barendse 44caa0cf05 Obsolete AddPropertyGroup without specifying alias 2021-07-14 10:31:58 +02:00
Ronald Barendse 74a56aadb7 Use camel case for alias and fix infinite loop in IndexOfKey 2021-07-14 10:30:55 +02:00
Ronald Barendse f74a6c81d0 Merge branch 'v8/feature/reintroduce-tabs-use-alias' into v8/feature/reintroduce-tabs 2021-07-14 09:41:13 +02:00
Ronald Barendse da856fae1b Revert "New AddColumn overloads for migrations (obsoleted the oddly named AddColumnIfNotExists)"
This reverts commit 81bdcf58a8.
2021-07-14 00:27:36 +02:00
Niels Lyngsø abec5d61f2 Use Alias for groups 2021-07-13 17:17:23 +02:00
Niels Lyngsø bff132993f parentAlias 2021-07-13 15:43:13 +02:00
Niels Lyngsø d3314afec4 use alias 2021-07-13 15:25:31 +02:00
Niels Lyngsø 54d9c2d9a4 use alias 2021-07-13 15:22:43 +02:00
Ronald Barendse da95bc0d14 Merge branch 'v8/feature/reintroduce-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/feature/reintroduce-tabs 2021-07-13 15:05:10 +02:00
Ronald Barendse ec761adee2 Rewrite parent key with alias for easier editing/merging of groups 2021-07-13 14:49:57 +02:00
Niels Lyngsø 3d951ac7fe break into several lines 2021-07-13 13:55:43 +02:00
Ronald Barendse 81bdcf58a8 New AddColumn overloads for migrations (obsoleted the oddly named AddColumnIfNotExists) 2021-07-13 13:43:07 +02:00
Ronald Barendse 2befd73640 Replace ToLower calls with case insensitive comparison 2021-07-13 13:41:02 +02:00
87a7e84cba Bugfix: #10414 - Validation message doesn't disappear once the issue is fixed (#10581)
* Add missing focus styling

* Fix issue where validation message does not disappear when all chars are removed

Co-authored-by: BatJan <jaskov@gmail.com>
Co-authored-by: Jan Skovgaard Olsen <jso@co3.dk>
2021-07-13 08:57:20 +01:00
Sebastiaan Janssen 2a6bdf7330 Fixes umbraco/Umbraco-CMS#10402
We added an overload that would conflict for people with existing templates, that was a bit too premature. Disabled for now with a note to look into it for v9 again.
2021-07-12 10:48:21 +02:00
Sebastiaan Janssen a37f6c604f Inconsistent formatting 2021-07-10 14:25:26 +02:00
Shannon 93f5dd7631 Changes bulk copy timeout to be infinite. Changes bulk copy to not allocate an arbitrary array. 2021-07-09 13:35:43 -06:00
Shannon 5240921dab Merge branch 'v8/bugfix/8.15rc-bugs' of https://github.com/nzdev/Umbraco-CMS into v8/8.15 2021-07-09 12:25:19 -06:00
Shannon 7dc03256ed Fixes SQLCE migration for nucache table. 2021-07-09 12:05:19 -06:00
Shannon 5e8b4572a0 Ensures that the content nu data column is updated to support null during migration. 2021-07-09 09:40:31 -06:00
Mads Rasmussen 69ebd6aebd use val-tab directive in doc type editor 2021-07-09 14:53:52 +02:00
nzdev 6a8ed8012c simplify 2021-07-09 21:22:30 +12:00
nzdev b119201480 fix serializer swap message 2021-07-09 20:55:03 +12:00
nzdev 044c900c2b Make IPropertyCacheCompressionOptions useful out of the box. key = "Umbraco.Web.PublishedCache.NuCache.CompressUnPublishedContent" value = "true" will compress all ntext properties on unpublished content 2021-07-09 20:14:35 +12:00
nzdev 6b6525cc98 Add whether the current content is published. Allowing for compression of just non published, non media content. 2021-07-09 19:33:42 +12:00
Mads Rasmussen 03128d1085 update tabs warning error style 2021-07-08 22:04:19 +02:00
Mads Rasmussen 840f3c6372 add generic tab to content and block list editor 2021-07-08 21:29:22 +02:00
Mads Rasmussen 42e689f253 remove content apps when split view is open 2021-07-08 20:55:30 +02:00
Mads Rasmussen 9b5322a7af add border to tab bar 2021-07-08 17:50:49 +02:00
Mads Rasmussen 0032eb0936 update validation to work with block list editor inline mode 2021-07-08 15:25:14 +02:00
Mads Rasmussen d6c247e047 fix generic tab when sorting 2021-07-08 14:19:02 +02:00
Mads Rasmussen 0ce9b496f9 render generic groups in doc type editor 2021-07-08 14:02:30 +02:00
Sebastiaan Janssen 4ac29927de Bump version to 8.15.0 2021-07-07 11:22:50 +02:00
Ronald Barendse 9405daad9f Update delete confirmation titles 2021-07-07 10:51:47 +02:00
Ronald Barendse 1fea66990d Update delete confirmations 2021-07-07 10:48:09 +02:00
Mads Rasmussen 48ba4f3875 performance tweaks for validationAlias 2021-07-07 10:39:01 +02:00
Mads Rasmussen e552bde16e only recalculate tab width when an app changes 2021-07-07 09:52:18 +02:00
Mads Rasmussen adb8c5372e Add support for block list editor and show validation errors on tabs 2021-07-07 09:45:25 +02:00
a1e0af6fff Accessibility improvements for Extensions in Razor Markup (#9576)
* Support for language of parts

* Changed casing of "FallBack" to "Fallback" to be consistent with the existing code.

* Now tests the type to determine if span should be added.

* Remove magic strings and return <div> for IHtmlString values

This fixes the "string" vs "String" issue in the previous commit and prevents the function returning invalid markup

* Fix for test providing string as "object"

Co-authored-by: Joe Glombek <joe@rockdove.uk>
2021-07-06 18:39:56 +01:00
Henk Jan PluimandGitHub 1e54d05514 #10577 bugfix - Umbraco backoffice allows you to assign the same 'login' on two different Members (#10591) 2021-07-06 16:46:07 +02:00
Ronald Barendse e9c69052c1 Merge branch 'v8/contrib' into v8/feature/reintroduce-tabs 2021-07-06 13:32:33 +02:00
Mole dfa161adb4 Add migration 2021-07-06 13:08:44 +02:00
Mole 9b32c83182 Update PropertyTypeGroupDto IdentitySeed to no longer collide with new media types 2021-07-06 13:03:44 +02:00
Mads Rasmussen 0d330efb5d lower z-index for editor tab bar 2021-07-06 10:12:07 +02:00
Mads Rasmussen fbe61f65c6 remove anchors from content app 2021-07-05 14:26:33 +02:00
Mads Rasmussen 9bfa9f2e4b render tab bar in content section 2021-07-05 14:24:52 +02:00
Mads Rasmussen f10bb51754 remove more test code 2021-07-05 09:27:48 +02:00
Mads Rasmussen c0b349625b remove test code 2021-07-05 09:17:25 +02:00
Sebastiaan Janssen 6816ae7ca4 Fix dependencies to make 8.15 installable via NuGet
(cherry picked from commit 3e20890435)
2021-07-02 11:48:55 +02:00
Sebastiaan Janssen 3e20890435 Fix dependencies to make 8.15 installable via NuGet 2021-07-02 11:48:01 +02:00
Ronald Barendse c83fff3179 Merge branch 'v8/prototype/doctype-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/prototype/doctype-tabs 2021-07-02 09:47:14 +02:00
Bjarne FyrstenborgandNathan Woulfe e67d59a789 Adjust showLabels to be parsed as boolean 2021-07-02 08:20:10 +10:00
d6a27d6646 Color picker: Fix label view (#10445)
* Add missing focus styling

* Change width to ensure label does not get too wide

Co-authored-by: BatJan <jaskov@gmail.com>
Co-authored-by: Jan Skovgaard Olsen <jso@co3.dk>
2021-07-02 07:58:59 +10:00
leekelleherandNathan Woulfe 7afcd59037 Fixed "user-dialog" dashboard markup
The logic in the markup was previously incorrect.
I changed the check from `tab.length` to `dashboard.length`.

The custom dashboard's label isn't `.caption` and it's per dashboard,
not per "property".

Lastly, `.path` should be `.view`.

Resolves #6417
2021-07-02 07:53:36 +10:00
Mads Rasmussen 63f3f8906f show overlay prompt when removing tabs, groups and properties 2021-07-01 22:32:51 +02:00
Mads Rasmussen cd84b46637 fix remove tabs and remove groups 2021-07-01 21:11:29 +02:00
Mads Rasmussen 8ade4a24fd wire up server validation for properties on tabs 2021-07-01 11:50:25 +02:00
Ronald Barendse 2142c5cde0 Update XML format to support import/export of new property group data 2021-07-01 11:44:33 +02:00
Ronald Barendse 4356aa6f6b Allow adding and renaming property groups by key 2021-07-01 11:35:05 +02:00
David ChallenerandNathan Woulfe 33e44181c1 Disable cached partials if in preview mode
We don't want unpublished items in cached views - possible leak to live site. Show previews using normal partial view instead.
2021-07-01 08:47:11 +10:00
Sebastiaan Janssen e7f0ab2031 Merge branch 'v8/dev' into v8/contrib 2021-06-30 16:57:39 +02:00
Sebastiaan Janssen 9cc9ecf858 Merge branch 'v8/8.15' into v8/dev 2021-06-30 16:57:05 +02:00
Mads RasmussenandSebastiaan Janssen fc108511d2 #10520 Correct mandatory markers in nested content (#10563)
(cherry picked from commit c1a4e07e87)
2021-06-30 16:34:29 +02:00
Niels LyngsøandSebastiaan Janssen 3e226384c3 #10520 ensure property culture in Nested Content (#10562)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
(cherry picked from commit 0b3c4a726c)
2021-06-30 16:28:48 +02:00
0b3c4a726c #10520 ensure property culture in Nested Content (#10562)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-06-30 16:27:53 +02:00
Mads RasmussenandGitHub c1a4e07e87 #10520 Correct mandatory markers in nested content (#10563) 2021-06-30 15:41:07 +02:00
Ronald Barendse 64d98666ef Remove AngularJS testing code 2021-06-30 15:29:34 +02:00
Ronald Barendse 48d96ee918 Remove icon and fix group type enum values in AngularJS 2021-06-30 15:29:19 +02:00
Ronald Barendse 3ce0949626 Remove icon from property group 2021-06-30 14:49:10 +02:00
Ronald Barendse 68db8b9ea0 Update property group type enum 2021-06-30 14:39:31 +02:00
Ronald Barendse 2b6e87d1e2 Merge branch 'v8/dev' into v8/prototype/doctype-tabs 2021-06-30 14:33:59 +02:00
David ChallenerandSebastiaan Janssen a19b79553d Update contributing.md Visual Studio min version
Having had an older version of visual studio running I've been unable to build the source without making changes to the solution. However, upgrading to at least VS 16.8 has meant those changes haven't been required. This is to do with how the language target "latest" was working.  
Propose upping the min version listed here to avoid build issues being raised.
2021-06-30 10:06:16 +02:00
Ronald Barendse 9bf7629034 Merge branch 'v8/contrib' into v8/bugfix/generic-blocklistitem 2021-06-29 15:54:00 +02:00
Sebastiaan Janssen dc27a31a6f Fix creating / editing datatype in infinite editing mode, related to #10163 2021-06-29 13:35:22 +02:00
Elitsa MarinovskaandSebastiaan Janssen 861fc40572 Ability to configure a remote URL for displaying different content on the content dashboard (#10257)
* Enabling configuration of remote URL for fetching content on the content dashboard and adding additional params indicating whether solution is running on Umbraco Cloud

* Determining if Umbraco is running on Umbraco Cloud by checking whether Umbraco.Deploy.Cloud.dll is present and making its value more accessible for other contexts. Passing a hosting parameter as string instead of boolean

* Changing from Unknown to OnPremises

* Updated content dashboard to use hard-coded URL but path derived from configuration.

Co-authored-by: Andy Butland <abutland73@gmail.com>
(cherry picked from commit 917c89cde7)
2021-06-29 11:47:46 +02:00
Sebastiaan Janssen 4f46edbaa9 Bump version to 8.15.0-rc 2021-06-29 11:47:16 +02:00
917c89cde7 Ability to configure a remote URL for displaying different content on the content dashboard (#10257)
* Enabling configuration of remote URL for fetching content on the content dashboard and adding additional params indicating whether solution is running on Umbraco Cloud

* Determining if Umbraco is running on Umbraco Cloud by checking whether Umbraco.Deploy.Cloud.dll is present and making its value more accessible for other contexts. Passing a hosting parameter as string instead of boolean

* Changing from Unknown to OnPremises

* Updated content dashboard to use hard-coded URL but path derived from configuration.

Co-authored-by: Andy Butland <abutland73@gmail.com>
2021-06-29 11:46:07 +02:00
Elitsa MarinovskaandSebastiaan Janssen 3e89e46840 Nested content optimizations (#10236)
* Reducing the large amount of objects allocated and make use of the attemped dictionary cache

* Reverting optimization by passing data from a higher level - not really possible to achieve what we wanted and adding faster way to lookup value editors

(cherry picked from commit 897cb11f00)
2021-06-29 09:56:45 +02:00
Elitsa MarinovskaandGitHub 897cb11f00 Nested content optimizations (#10236)
* Reducing the large amount of objects allocated and make use of the attemped dictionary cache

* Reverting optimization by passing data from a higher level - not really possible to achieve what we wanted and adding faster way to lookup value editors
2021-06-29 09:55:02 +02:00
5d8fb9670b Textstring prevalue editor view: Set id attribute (#10453)
* Add missing focus styling

* Set id attribute

Co-authored-by: BatJan <jaskov@gmail.com>
Co-authored-by: Jan Skovgaard Olsen <jso@co3.dk>
2021-06-29 08:37:19 +10:00
Sebastiaan Janssen 31e9c875f5 Bump version to 8.15.0-rc 2021-06-28 09:36:09 +02:00
Sebastiaan Janssen c6832491b6 Merge branch 'v8/contrib' into v8/dev
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/prevalueeditors/obsoletemediapickernotice.html
2021-06-28 09:34:26 +02:00
83ee9b4699 Reduce sql queries when rendering blocklists in the content panel (#10521)
Co-authored-by: Nikolaj <nel@umbraco.dk>
2021-06-28 09:32:42 +02:00
Ronald BarendseandGitHub 5b9cd1bd87 Improvements to media pickers/crop handling and URL generation (#10529) 2021-06-28 09:28:32 +02:00
44c814a550 Fix Rollback feature not creating diffs when properties are moved between tabs in EditorModel events (#10376)
* Find the old property by alias instead of by indexes as if you move around properties in the EditorModel events Rollback breaks.

* optimise property lookup - avoids iterating entire property set

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-06-28 10:20:38 +10:00
Mads Rasmussen d0cb5b9419 remove white space when there are no properties 2021-06-25 10:47:12 +02:00
Mads Rasmussen 2fd180393d add ungrouped properties for a tab 2021-06-25 10:43:06 +02:00
Mads Rasmussen 8fb5ed9cc1 remove margin from add tab button when there are no tabs 2021-06-24 20:00:20 +02:00
Mads Rasmussen ce7836bd32 set overflow when name changes 2021-06-24 19:59:54 +02:00
Mads Rasmussen 6a97e22bb5 remove icon from tabs 2021-06-24 15:55:36 +02:00
Mads Rasmussen 2fd6864892 set auto resize width to auto when ngModel has a value but element is hidden 2021-06-24 15:54:27 +02:00
Mads Rasmussen 9b3f7f2653 add tabs to toolbar 2021-06-24 13:28:12 +02:00
MoleandGitHub ea1091db7c Merge pull request #10235 from umbraco/v8/bugfix/AB10622-be-property-editor-caching
Optimizations related to BlockEditorPropertyEditor.ToEditor()
2021-06-24 08:39:12 +02:00
Shannon d9f92ec91d Merge branch 'nzdev-v8/bugfix/localizedtextservice-memory' into v8/contrib 2021-06-23 13:15:32 -06:00
Shannon 30d57125ce Adds notes, obsoletes old localize methods 2021-06-23 13:14:22 -06:00
Shannon 3b4e645c63 Merge branch 'v8/bugfix/localizedtextservice-memory' of https://github.com/nzdev/Umbraco-CMS into nzdev-v8/bugfix/localizedtextservice-memory 2021-06-23 12:50:47 -06:00
Shannon ae379cb1e0 Merge branch 'nzdev-v8/feature/examine-select' into v8/contrib 2021-06-23 12:47:50 -06:00
Shannon 76d206a4ba Fixes back office searching 2021-06-23 12:46:50 -06:00
Shannon 37685e3b77 Merge branch 'v8/feature/examine-select' of https://github.com/nzdev/Umbraco-CMS into nzdev-v8/feature/examine-select 2021-06-23 11:23:58 -06:00
Shannon 56b7b0df69 fix build, re-adds braces after merge 2021-06-23 11:13:19 -06:00
Shannon 8edff13448 Merge branch 'v8/bugfix/btree-serializer-array-size' of https://github.com/nzdev/Umbraco-CMS into v8/contrib 2021-06-23 11:04:29 -06:00
Shannon 3ad85d9eb4 Merge branch 'nzdev-v8/bugfix/btree-serializer-array-size' into v8/contrib 2021-06-23 11:02:49 -06:00
Shannon 2c59da91b6 fix merge 2021-06-23 11:02:36 -06:00
9382f6c32d Add the ability to convert Media Picker v2 to v3 progressively (#10517)
Co-authored-by: Ronald Barendse <ronald@barend.se>
2021-06-23 10:10:28 +02:00
Bjarke BergandGitHub 10781b8250 Merge pull request #10516 from umbraco/v8/bugfix/fix_acceptance_tests
Fixes the acceptance tests "Content with contentpicker"
2021-06-23 10:01:17 +02:00
Bjarke BergandGitHub 40dbfa7b88 Merge pull request #8376 from umbraco/v8/feature/nucache-perf
Performance improvements mainly around front-end caching
2021-06-23 09:32:29 +02:00
Bjarke Berg 6bd2f7f696 Fixes the acceptance tests "Content with contentpicker" 2021-06-23 09:10:40 +02:00
RussellandSebastiaan Janssen ec65a6c99b Add lang to extended valid elements for span
Resolution to https://github.com/umbraco/Umbraco-CMS/issues/10505
2021-06-23 08:53:25 +02:00
Shannon 94d525d88f small changes based on review. 2021-06-22 15:12:07 -06:00
Ronald Barendse 18e6f8cccc Fix merging groups by name 2021-06-22 16:29:43 +02:00
Sebastiaan Janssen f04e27ca19 Bump version to 8.14.1 2021-06-22 14:16:05 +02:00
Ronald Barendse 740de049fd Merge branch 'v8/dev' into v8/prototype/doctype-tabs 2021-06-22 13:33:37 +02:00
Ronald Barendse a5c3847937 Ensure groups are grouped on name, parent key and type when mapped 2021-06-22 13:21:16 +02:00
Sebastiaan Janssen d8b7e24b7f Merge branch 'v8/8.14' into v8/dev 2021-06-22 12:24:18 +02:00
Ronald Barendse 2560804493 Update migration plan 2021-06-22 12:02:03 +02:00
Ronald Barendse 17d2c4cab9 Convert level into group type and ensure names are unique again 2021-06-22 11:45:23 +02:00
Patrick de MooijandSebastiaan Janssen 797a06e721 10429: Make sure to set filtered variable on media item
(cherry picked from commit 8a810e698c)
2021-06-22 10:46:39 +02:00
Patrick de MooijandSebastiaan Janssen 8a810e698c 10429: Make sure to set filtered variable on media item 2021-06-22 10:45:23 +02:00
Mole 1d0a1cb7a9 Merge branch 'v8/dev' into v8/bugfix/AB10622-be-property-editor-caching 2021-06-22 10:43:58 +02:00
Sebastiaan JanssenandGitHub bb79544e2a Update 01_bug_report.yml 2021-06-22 09:35:41 +02:00
Bjarne FyrstenborgandSebastiaan Janssen a69d4349d1 Support custom SVG icon in Nested Content (#10368)
* Use custom SVG icon in Nested Content

* Get icon once

* Assign value instead of compare

(cherry picked from commit 340273a604)
2021-06-21 19:34:09 +02:00
Bjarne FyrstenborgandSebastiaan Janssen d0220c01f9 Use custom SVG icon in user group filter
(cherry picked from commit 57cc3d5da2)
2021-06-21 19:33:41 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 5f94cb83ed Support custom SVG icon in grid editor row configuration (#10361)
* Use custom svg icon in grid editor row configuration

* Use umb-icon in grid editor placeholder

* Use control icon in grid editor placeholder

* use umb-icon in itempicker to ensure svg icons are displayed

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
(cherry picked from commit f0e13e87d5)
2021-06-21 19:32:23 +02:00
Warren BuckleyandSebastiaan Janssen ee348be8a5 Merge pull request #10496 from umbraco/v8/fix/10483
Fixes clashing aliases when new mediatypes had been installed

(cherry picked from commit f69cee87f9)
2021-06-21 19:27:31 +02:00
Warren BuckleyandSebastiaan Janssen 79fc804a9b Merge pull request #10500 from umbraco/v8/fix/10423
Don't obsolete the v2 pickers, renamed them and they're able to be created again, without config changes

(cherry picked from commit 69383d3dea)
2021-06-21 19:27:13 +02:00
Warren BuckleyandGitHub f69cee87f9 Merge pull request #10496 from umbraco/v8/fix/10483
Fixes clashing aliases when new mediatypes had been installed
2021-06-21 17:59:01 +01:00
Warren BuckleyandGitHub 69383d3dea Merge pull request #10500 from umbraco/v8/fix/10423
Don't obsolete the v2 pickers, renamed them and they're able to be created again, without config changes
2021-06-21 17:47:02 +01:00
Warren BuckleyandGitHub 7d53659fac Update src/Umbraco.Web/PropertyEditors/MediaPickerPropertyEditor.cs 2021-06-21 17:27:34 +01:00
Shannon 060e78f8e1 Merge remote-tracking branch 'origin/v8/contrib' into v8/feature/nucache-perf 2021-06-21 10:15:09 -06:00
MoleandGitHub 60df2ae34b Merge pull request #10415 from umbraco/v8/feature/packages-update
Added "certified to work on Umbraco Cloud" indicator to packages section in the back-office
2021-06-21 14:13:22 +02:00
Sebastiaan Janssen 809bb3b5d3 Fixes #10423
Don't obsolete the v2 pickers, renamed them and they're able to be created again, without config changes
2021-06-21 14:01:50 +02:00
Mole ed79bd65f2 Fix certified to verified refactoring 2021-06-21 13:38:49 +02:00
Christian TricaricoandGitHub 32a1870d80 Backoffice Italian localization improvements (#10371)
* Italian translations in localization xml.

* Italian translations in localization xml.

* restore previous package-lock version
2021-06-20 02:32:10 +02:00
Sebastiaan JanssenandGitHub 3265fbb473 Fix the build 2021-06-18 16:15:32 +02:00
Sebastiaan Janssen 0bc2ff17d7 Yeah okay, #h5is I broke the build 🤦‍♂️ - fixed here for this PR, will also fix in the contrib branch 2021-06-18 16:14:01 +02:00
Warren BuckleyandSebastiaan Janssen 3645539fe2 Run npm update caniuse-lite
(cherry picked from commit e70c362851)
2021-06-18 13:21:31 +02:00
Sebastiaan Janssen 499d0ff5c1 Fix hardcoded aliases 2021-06-18 12:32:01 +02:00
Sebastiaan Janssen e95b57ca1f Fixed friendly name of Vector graphics 2021-06-18 11:44:26 +02:00
Sebastiaan Janssen 70590ce993 Invert the previous change so querying with these constants will give the same results as in 8.14.0 2021-06-18 11:42:09 +02:00
Sebastiaan Janssen 64ebbae5b8 Keep the old constants as they were and add new "Name" constants, in case people were already using the old constants to query by alias 2021-06-18 11:37:32 +02:00
Sebastiaan Janssen 2c7413693b Prefix the new media types to stop them from clashing when people make document types with that alias (#10483) 2021-06-18 11:03:21 +02:00
Sebastiaan JanssenandGitHub f303fa0cc3 Make sure we can build in VS2022 2021-06-18 09:51:23 +02:00
Ronald Barendse 0e63edb375 Update IContentTypeBase to use group names as property groups (no parent/level 1) for backwards compatibility 2021-06-17 10:05:21 +02:00
Ronald Barendse 70403cf8b0 Fix setting property type group default level to 1 2021-06-17 10:02:55 +02:00
585f7bb571 Make dashboards support deep linking (#10283)
Co-authored-by: Ronald Barendse <ronald@barend.se>
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-06-17 09:40:07 +02:00
Ronald Barendse b87ead60d7 Fix order of property group inserts 2021-06-17 09:12:56 +02:00
Ronald Barendse 5fd09b43f3 Set property type group default level to 1 2021-06-17 09:12:00 +02:00
Mads Rasmussen ac69bf1448 Merge branch 'v8/prototype/doctype-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/prototype/doctype-tabs 2021-06-16 16:24:37 +02:00
Mads Rasmussen 9444db2a0e if a doc type has tabs set the first to active 2021-06-16 16:24:24 +02:00
Ronald Barendse d11babe79a Merge groups based on level and name 2021-06-16 16:19:35 +02:00
Ronald Barendse 91574882a3 Add generic properties as group 2021-06-16 16:18:03 +02:00
Ronald Barendse 14d84db8e5 Add missing property group icon mapping 2021-06-16 16:17:23 +02:00
Ronald Barendse e5dd3df78d Add tabs hierarchy to content model 2021-06-16 15:26:05 +02:00
Ronald Barendse 2733bd89f4 Only enforce unique group names per level 2021-06-16 14:41:17 +02:00
Ronald Barendse f58a134f23 Correctly save/delete tabs and groups hierarchy 2021-06-16 14:40:24 +02:00
Mads Rasmussen 8cf540f405 update doc type editor with levels 2021-06-16 11:30:21 +02:00
dc334c1015 Automated install user with Environment Variables & unattended.user.json (#9930)
* Try to update admin user unattended

This will fail because we're not in install runtime state

* Create a new user instead of trying to update the default admin

* Create a new user instead of trying to update the default admin

* Use same logic from NewInstallStep to modify the SuperUser aka -1

* Add back stuff after merge conflict from v8/dev

* Add event to be raised

* Trying to wire up events

* Remove commented out code - just need to figure out why event is not hit/triggered

* Read Appsettings as opposed to ENV variables

* Use a JSON file that deletes itself as storing secrets in web.config will be accidently committed

* Remove component based event - Component were only initialized after DB creation

* Move UnattendedInstall down after _factory

* Remove commented out code

* Fixed issue where upgrader UI would show up - needed to recheck the Runtimelevel after UnattenedInstall

* Apply suggestions from code review - Thanks Marc :)

Co-authored-by: Marc Goodson <marc@moriyama.co.uk>

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
Co-authored-by: Marc Goodson <marc@moriyama.co.uk>
2021-06-16 10:00:29 +01:00
Andy ButlandandSebastiaan Janssen 348d1676cd Handle only single content type event to avoid reloading the content and media cache multiple times after a deployment containing more than one changed document type. 2021-06-15 16:06:11 +02:00
Ronald Barendse 412028865f Merge branch 'v8/prototype/doctype-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/prototype/doctype-tabs 2021-06-15 13:26:11 +02:00
Ronald Barendse c53c7d1fb4 Map new properties from database to back-office models 2021-06-15 13:22:19 +02:00
Ronald Barendse f7f22dda42 Use parentKey and level to store tabs/property groups 2021-06-15 13:14:36 +02:00
patrickdemooij9andGitHub efeda47e30 10430: Fix typo (#10440)
* 10430: Fix typo

* 10430: ng-disabled instead of disabled
2021-06-15 09:22:18 +10:00
Lucas MichaelsenandGitHub b97f6dcb2f HTML Symantic error UL > LI >LI changes to UL > LI > UL > LI (#10455)
* HTML Symantic error UL > LI >LI changes to UL > LI > UL > LI - ScreenReader reads propperly

* ensurce render if condition is meet. If any child render a subset of unorder list withs is list-items
2021-06-15 09:09:26 +10:00
Warren BuckleyandSebastiaan Janssen e70c362851 Run npm update caniuse-lite 2021-06-14 14:06:34 +02:00
Mads Rasmussen 22ac52e85a update save model with key, parentKey and icon 2021-06-11 16:53:40 +02:00
Mads Rasmussen 2c36b60bb6 Merge branch 'v8/prototype/doctype-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/prototype/doctype-tabs 2021-06-11 15:35:33 +02:00
Mads Rasmussen aa9d09094b Update doc type validation to match new data structure 2021-06-11 15:35:27 +02:00
Ronald Barendse 89c9d34553 Add icon column to migration 2021-06-11 09:56:30 +02:00
Elitsa Marinovska 990fc118cb Optimization by returning the same instance 2021-06-10 15:36:39 +02:00
Elitsa Marinovska 6910399c32 Reverting optimization by passing data from a higher level - not really possible to achieve what we wanted 2021-06-10 15:33:29 +02:00
Mads Rasmussen 06b7d2fb5a disable tab icon button when sorting 2021-06-10 15:14:14 +02:00
Ronald Barendse e15ed2c509 Update database structure to hierarchical property groups 2021-06-10 15:11:32 +02:00
Elitsa Marinovska b4e6222f32 Fix up linq issues and lookup 2021-06-10 14:56:03 +02:00
Mads Rasmussen 55219530b4 update group builder to support parentKey data structure 2021-06-10 11:27:06 +02:00
40c4c875c4 Link picker: Make link input full width if anchor option is disabled (#10313)
* Add missing focus styling

* Add width modifier to link input

* same result without adding new classes

Co-authored-by: BatJan <jaskov@gmail.com>
Co-authored-by: Jan Skovgaard Olsen <jso@co3.dk>
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-06-09 09:02:37 +10:00
NikcioandNathan Woulfe 4e60e7dec1 Translation added
Added some danish translations and fixed a translation problem in the copy document.
2021-06-09 08:01:02 +10:00
Sebastiaan JanssenandGitHub b63ee6e7bf Update config.yml 2021-06-08 13:00:40 +02:00
Sebastiaan JanssenandGitHub ef20264df6 Delete 02_feature_request.yml 2021-06-08 12:47:44 +02:00
Sebastiaan JanssenandGitHub b06f902865 Update config.yml 2021-06-08 12:45:21 +02:00
Andy Butland b5dad01fdc Update localisation alias to match default phrase. 2021-06-08 12:09:55 +02:00
Andy Butland 87eb224e5c Updated package listing to use umb-icon directive. 2021-06-08 11:55:58 +02:00
Andy Butland dfae0adf3d Amended phrase for Cloud confirmed packages from "certified" to "verified". 2021-06-08 11:50:16 +02:00
Bjarne FyrstenborgandGitHub e9c3c9fea6 Fix styling issues with listview sorting in overlay. (#10351)
Remove margin bottom at input fields
2021-06-08 10:19:26 +02:00
Andy Butland 97bc301bf8 Adds the "works on Cloud" indicator to the package list and details screen in the back-office. 2021-06-08 10:08:27 +02:00
Andy Butland c01b2c5807 Removed the "Umbraco Pro" category. 2021-06-08 07:51:08 +02:00
inetzoandSebastiaan Janssen 1e37410578 Convert date to datetime
Datetime values where always converted to date(102) so sorting by time does not work.
By converting to 120 (yyyy-mm-dd hh:mi:ss (24h)) the time is respected.
2021-06-07 15:38:45 +02:00
Ronald Barendse 36b4a994e1 Merge branch 'v8/dev' into v8/prototype/doctype-tabs 2021-06-07 10:58:37 +02:00
0e70416e27 Update connect color in noUiSlider (#10349)
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-06-07 11:32:01 +10:00
patrickdemooij9andNathan Woulfe 31c0faa54e Updated umbtable.directive.js for a working example
I noticed that the example on https://our.umbraco.com/apidocs/v8/ui/#/api/umbraco.directives.directive:umbTable is actually not working. items should be replaced with vm.items.
2021-06-07 10:41:27 +10:00
Bjarne FyrstenborgandGitHub 340273a604 Support custom SVG icon in Nested Content (#10368)
* Use custom SVG icon in Nested Content

* Get icon once

* Assign value instead of compare
2021-06-07 10:40:14 +10:00
Bjarne FyrstenborgandNathan Woulfe 57cc3d5da2 Use custom SVG icon in user group filter 2021-06-07 10:31:14 +10:00
f0e13e87d5 Support custom SVG icon in grid editor row configuration (#10361)
* Use custom svg icon in grid editor row configuration

* Use umb-icon in grid editor placeholder

* Use control icon in grid editor placeholder

* use umb-icon in itempicker to ensure svg icons are displayed

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-06-07 10:28:47 +10:00
5517a86972 Support custom SVG icon in listview (#10345)
* Fix custom SVG icons in listview layouts

* Fix icon in content grid

* Fix icon in umb-folder-grid

* Fix SVG icons in create dialogs

* Get icon once

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-06-07 09:33:52 +10:00
Bjarne FyrstenborgandGitHub c2c6413eb7 Support custom SVG icon in umb-child-selector component (#10344)
* Use umb-icon component

* Specify button type attribute

* Use umb-search-filter component

* Adjust styling of item picker

* Replace trash icons with umb-icon

* Replace a few icons in umb-grid-selector as well

* Use umb-icon in datatype picker

* Ensure icons are styles correct in legacy format

* Use umb-icon component in macro parameter editors and fix wrong end closing tag from button element

* Use umb-icon in macro parameter editor overlay
2021-06-07 08:27:02 +10:00
Shannon DeminickandGitHub eb6b7cffad Merge pull request #10182 from umbraco/v8/bugfix/8893-examine-startup
Fix startup issues and timing with Examine and Nucache
2021-06-05 02:37:33 +10:00
cd53d7a294 Removed hard-coded email validation for healthcheck fix value. (#5557)
Made validation for healthchcls more flexible, supporting none, email and regex.

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-06-02 12:54:11 +10:00
57f7776848 Add input id so click on property label set focus in input (#9477)
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-06-02 11:20:56 +10:00
Bjarne FyrstenborgandGitHub 3c2e7759fb Support custom SVG icon in block list editor (#10365)
* Use custom SVG icon in block card

* Adjust icons in block list editor views
2021-06-02 11:00:01 +10:00
Bjarne FyrstenborgandNathan Woulfe 0990599c63 Support custom SVG icon in content app 2021-06-02 10:50:16 +10:00
Sebastiaan Janssen 3fe52d9aed Merge branch 'v8/dev' into v8/contrib 2021-05-31 09:43:50 +02:00
Sebastiaan Janssen 704f15aa9d Merge branch 'v8/8.14' into v8/dev 2021-05-31 09:42:34 +02:00
Sebastiaan Janssen d1130a43ab Merge branch 'v8/8.13' into v8/8.14 2021-05-31 09:42:15 +02:00
Sebastiaan Janssen 4f3ab4fd99 Merge branch 'v8/8.12' into v8/8.13
# Conflicts:
#	src/SolutionInfo.cs
2021-05-31 09:41:48 +02:00
Sebastiaan Janssen 0653dcb849 Merge branch 'v8/8.11' into v8/8.12
# Conflicts:
#	src/SolutionInfo.cs
2021-05-31 09:40:59 +02:00
Sebastiaan Janssen 042e296d8f Bump version to 8.12.3 2021-05-31 09:21:44 +02:00
Sebastiaan Janssen fc417e8ed8 Bump version to 8.11.3 2021-05-31 09:18:12 +02:00
Vlael LayugandSebastiaan Janssen 1c630e3c5f inject clearAddUserForm() to inviteUser condition 2021-05-28 09:35:49 +02:00
Bjarne FyrstenborgandNathan Woulfe 2697431de6 Fix issue with extend of object in keyboard service 2021-05-28 17:10:21 +10:00
7cccbb3fbf Replaced angular.extend with Utilities.extend (#10023)
* Replace angular.extend with Utilities.extend

* Replace more references of angular.extend with Utilities.extend

* Replace angular.extend

* Replace last reference of angular.extend except in Utilities itself

* Use spread operator

* Add spread operator

* Use existing format with empty destination object

* Configurate Babel to work with JS spread operator

* Use default for loose property which is "false"

* use alias for angular.extend - removes need for any other changes and makes multiple arguments easy

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-05-28 09:25:56 +10:00
3440cbbac9 Fixed 10144: Prevalue alias not set (#10163)
* Fixed 10144: Prevalue alias not set

* Remove console.log

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-05-28 09:14:07 +10:00
Sebastiaan Janssen 7d25439b09 Merge branch 'v8/dev' into v8/contrib 2021-05-27 12:28:01 +02:00
Sebastiaan Janssen a27c6a7404 Merge branch 'v8/8.14' into v8/dev 2021-05-27 12:27:40 +02:00
Sebastiaan Janssen d81fac9753 Bump version to 8.14.0 2021-05-27 10:42:23 +02:00
Sebastiaan Janssen a845d2bffd Shows a warning for people tempted to switch to the new media picker 2021-05-27 10:41:56 +02:00
Vlael LayugandNathan Woulfe 38f5d8329d added cdata on sectionMandatoryDesc for other languages 2021-05-27 08:27:08 +10:00
Warren BuckleyandGitHub 9ef806d4e9 Rename Media Picker 3 and make current Media Picker Obsolete (#10332) 2021-05-26 16:13:25 +02:00
Mads RasmussenandSebastiaan Janssen 008e76c08f fixes #10297 8.14-RC - A few areas where focus lock doesn't work properly 2021-05-26 14:32:59 +02:00
Sebastiaan Janssen 046cbfc230 Merge branch 'v8/8.13' into v8/8.14 2021-05-26 14:21:40 +02:00
Sebastiaan Janssen 15f9814322 Merge branch 'v8/8.12' into v8/8.13 2021-05-26 13:47:01 +02:00
Sebastiaan Janssen e0958e3b6b Merge branch 'v8/8.11' into v8/8.12 2021-05-26 13:44:45 +02:00
Niels LyngsøandSebastiaan Janssen 1ac44542f6 Complex validation for RTE property editor (#10328)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
(cherry picked from commit 0a9c1c7c8e)

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js
2021-05-26 13:10:18 +02:00
0a9c1c7c8e Complex validation for RTE property editor (#10328)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-05-26 13:08:25 +02:00
Niels LyngsøandSebastiaan Janssen 630fa6a989 dont remove outline 2021-05-25 15:07:42 +02:00
Niels LyngsøandSebastiaan Janssen a68a6b2ac2 added windowResizeListener 2021-05-25 15:06:58 +02:00
Niels LyngsøandSebastiaan Janssen ecdc687e39 use label 2021-05-25 15:05:45 +02:00
Shannon a9508886bf Merge branch 'v8/bugfix/8893-examine-startup' into v8/feature/nucache-perf
# Conflicts:
#	src/Umbraco.Core/Sync/DatabaseServerMessenger.cs
#	src/Umbraco.Core/Sync/ISyncBootStateAccessor.cs
#	src/Umbraco.Core/Sync/NonRuntimeLevelBootStateAccessor.cs
#	src/Umbraco.Core/Sync/SyncBootState.cs
#	src/Umbraco.Tests/PublishedContent/NuCacheChildrenTests.cs
#	src/Umbraco.Tests/PublishedContent/NuCacheTests.cs
#	src/Umbraco.Tests/Scoping/ScopedNuCacheTests.cs
#	src/Umbraco.Tests/Services/ContentTypeServiceVariantsTests.cs
#	src/Umbraco.Tests/TestHelpers/TestSyncBootStateAccessor.cs
#	src/Umbraco.Web/Compose/DatabaseServerRegistrarAndMessengerComponent.cs
#	src/Umbraco.Web/PublishedCache/NuCache/NuCacheComposer.cs
#	src/Umbraco.Web/PublishedCache/NuCache/PublishedSnapshotService.cs
2021-05-24 13:55:07 -07:00
Shannon eba3c82a86 Changes startup logic, no more "Boot" method, the component just handles events 2021-05-24 12:51:40 -07:00
Shannon be3bfe1b63 Removes Booting event, backports lazy changes for PublishedSnapshotService from v9. 2021-05-24 12:32:57 -07:00
Shannon 43ee6f288e fixes initialize flag 2021-05-24 11:25:03 -07:00
Sebastiaan Janssen 2de635abb0 Merge branch 'v8/dev' into v8/contrib 2021-05-21 15:07:28 +02:00
Sebastiaan Janssen 9f51de5373 Merge branch 'v8/8.14' into v8/dev 2021-05-21 15:06:49 +02:00
Sebastiaan Janssen 0a9325c3d6 Merge branch 'v8/8.13' into v8/8.14
# Conflicts:
#	src/SolutionInfo.cs
2021-05-21 15:06:28 +02:00
Sebastiaan Janssen 008480a17b Can't use optimized version of this method call until 8.14 2021-05-21 15:01:51 +02:00
Andy ButlandandSebastiaan Janssen 12328ba2f7 Fixed issue with data types not being cleared in cache refresh operations.
(cherry picked from commit 71a1817a06)
2021-05-21 14:27:13 +02:00
Andy ButlandandSebastiaan Janssen 71a1817a06 Fixed issue with data types not being cleared in cache refresh operations. 2021-05-21 14:26:33 +02:00
Sebastiaan Janssen 9bf01741b6 Fix invalid XML 2021-05-20 09:29:45 +02:00
Bjarne FyrstenborgandGitHub 710ecf2537 Add option to remove/cancel added crops (#10267)
* Add option to remove/cancel added crops

* Move vm functions to top

* Only show cancel button for empty/new crop
2021-05-20 09:00:23 +10:00
Sebastiaan Janssen 3f596e27cc Bump version to 8.13.1 2021-05-19 16:31:52 +02:00
Sebastiaan JanssenandGitHub a2c461bcdb Update CONTRIBUTING.md 2021-05-19 13:30:53 +02:00
Sebastiaan JanssenandGitHub 779c94c66f Update CONTRIBUTING.md 2021-05-19 13:29:02 +02:00
Niels LyngsøandSebastiaan Janssen 9730a18c9b #10274 Variant sorting should take into account that there might not be any language (#10278) (#10284)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
(cherry picked from commit 017b56eee1)
2021-05-19 12:12:58 +02:00
Sebastiaan Janssen 7b77d21d1b Merge branch 'v8/8.13' into v8/8.14
# Conflicts:
#	src/SolutionInfo.cs
2021-05-19 12:12:35 +02:00
Mike ChambersandSebastiaan Janssen 7c2f956130 Update ModelsBuilderComposer.cs
issue #10186

typo in IsExternalModelsBuilderInstalled -> Umbraco.ModelsBuider

(cherry picked from commit b783399c5c)
2021-05-19 12:11:51 +02:00
Niels LyngsøandSebastiaan Janssen 36c49b0a25 #10274 Variant sorting should take into account that there might not be any language (#10278)
* Variant sorting should take into account that there might not be any language available

* fix languages

Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
(cherry picked from commit e19a5989e9)
2021-05-19 12:11:06 +02:00
017b56eee1 #10274 Variant sorting should take into account that there might not be any language (#10278) (#10284)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
2021-05-19 12:06:17 +02:00
Sebastiaan JanssenandGitHub 14558aea06 Update CONTRIBUTING.md 2021-05-19 10:21:44 +02:00
Sebastiaan JanssenandGitHub 92cdf4e6e8 Update CONTRIBUTING.md 2021-05-19 10:20:01 +02:00
Sebastiaan Janssen 04326364b2 New issue forms 2021-05-18 15:47:27 +02:00
e19a5989e9 #10274 Variant sorting should take into account that there might not be any language (#10278)
* Variant sorting should take into account that there might not be any language available

* fix languages

Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
2021-05-18 11:08:00 +02:00
Shannon eb2f1e55fd adds msgpack format to the default web.config 2021-05-17 16:10:35 -07:00
Shannon 2739e049a6 Merge remote-tracking branch 'origin/v8/contrib' into v8/feature/nucache-perf
# Conflicts:
#	src/Umbraco.TestData/LoadTestComposer.cs
2021-05-17 11:56:11 -07:00
Sebastiaan Janssen df8b2d5580 Bump version to 8.14.0-rc 2021-05-17 10:50:25 +02:00
dependabot[bot]andSebastiaan Janssen cce3c49e78 Bump underscore from 1.9.1 to 1.12.1 in /src/Umbraco.Web.UI.Client
Bumps [underscore](https://github.com/jashkenas/underscore) from 1.9.1 to 1.12.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](https://github.com/jashkenas/underscore/compare/1.9.1...1.12.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-17 10:47:40 +02:00
Paul SealandNathan Woulfe aaf5cd5fae Added a link to 404 documentation
I think it will be useful to include a link to the documentation on how to create a custom 404
2021-05-16 07:48:05 +10:00
Chad CurrieandNathan Woulfe 474a76fd2b Use ContainsKey for Dictionaries. O(1) 2021-05-15 19:18:37 +10:00
980d9ad5cf #10193 The listview search within a dialog (eg. minilistview) shows the loading indicator forever for zero results (#10202)
* The listview search within a dialog (eg. minilistview) shows the loading indicator forever for zero results #10193

* Updated comment.

* Another updated comment.

Co-authored-by: Adam Nelson <anelson@bauerxcelmedia.com.au>
2021-05-12 12:36:13 +10:00
Sebastiaan Janssen 809fd81982 Merge branch 'v8/dev' into v8/contrib
# Conflicts:
#	src/Umbraco.Web.UI.Client/package-lock.json
2021-05-11 10:57:57 +02:00
Patrick de MooijandNathan Woulfe 499d22aa20 Move the SetWeight logic to WeightedCollectionBuilderBase so other collections can use it too 2021-05-11 14:56:25 +10:00
Bjarne FyrstenborgandNathan Woulfe 17e43a6b09 Update to noUiSlider v14.6.4 2021-05-11 14:45:00 +10:00
ShannonandNathan Woulfe f5406b9b2f Updates to Examine 1.2.0
and removes ExecutionContext workaround since it's part of Examine now.
2021-05-11 14:42:29 +10:00
ChadandGitHub 96d37a5e64 Fix copy button inactive, nodeSelectHandler had too many args passed. (#10158) 2021-05-11 14:32:27 +10:00
dependabot[bot]andNathan Woulfe 8ff88f47de Bump lodash from 4.17.19 to 4.17.21 in /src/Umbraco.Web.UI.Client
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-10 08:58:15 +10:00
patrickdemooij9andGitHub ed62f7d672 Add "Insert Macro" as language key (#10164)
* Add "Insert Macro" as language key

* Remove "a" as it wasn't in the original

* Formatting

* add label in FR lanuage  file
2021-05-09 11:42:29 +02:00
Anders BjernerandMichael Latouche 68fdc80b6a Added target="_blank" to "Update available" link 2021-05-09 01:29:42 +02:00
Niels Lyngsø f1e2ef89d1 Merge branch 'v8/bugfix/always-ignorer-validation-when-saving' into v8/dev 2021-05-07 10:59:35 +02:00
aaa13303b2 Adjust grid editor layout configuration (#9887)
* Fix wrong end closing tag

* Add button type attribute

* Assign null instead of undefined

* Left align text in row button

* Assign temporary rows to currentLayout

* Cleanup output

* Register functions in vm

* Move nameChanged property to init function

* Don't set toggled as checked when switching columns in row

* Use existing behaviour to set allowAll

* Remove vm.layout again

* copy rows when adding new section + clean up rows on submit and close

Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
2021-05-07 10:23:19 +02:00
Mole 222d1e708a Complete scope after invoking GetEmpty. 2021-05-06 14:44:22 +02:00
Bjarne FyrstenborgandGitHub a464fadf2c Update spectrum color picker to latest v2.0.8 (#10225)
* Update spectrum color picker to latest v2.0.8

* Update package-lock.json
2021-05-06 12:54:07 +02:00
Elitsa Marinovska 06d6133fcd Fix tests 2021-05-06 10:58:27 +02:00
Elitsa Marinovska 7bcfd8dad9 Introduce getScaffoldByKeys that makes use of GetEmptyByKeys 2021-05-06 10:58:13 +02:00
Elitsa Marinovska 051be40eb0 Introduce GetEmptyByKeys and add explicit scope so everything is handled in 1 scope 2021-05-06 10:57:30 +02:00
Elitsa Marinovska 658616252d Merge remote-tracking branch 'origin/v8/dev' into v8/bugfix/AB10622-be-property-editor-caching 2021-05-06 10:54:55 +02:00
Elitsa Marinovska aef9aff4a6 BlockEditorPropertyEditor.ToEditor improvements - reduce the large amount of objects allocated and make use of the dictionary cache 2021-05-06 10:54:17 +02:00
6e16550b84 Dont let validation issues prevent saving (#9691)
* skipValidation for content save

* Correcting merge

* Use warning style when saving

* final corrections

* skip client side validation

* remove log

* show invariant property validation issues in the save dialog

* use warning color for .show-validation-type-warning

Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
2021-05-05 11:18:46 +02:00
Niels Lyngsø c1dd004604 use warning color for .show-validation-type-warning 2021-05-05 11:15:23 +02:00
Niels Lyngsø f8c38942f4 Merge remote-tracking branch 'origin/v8/dev' into v8/bugfix/always-ignorer-validation-when-saving
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/directives/validation/valformmanager.directive.js
2021-05-05 10:37:27 +02:00
Harikrishna ParmarandGitHub 857997b5d4 Bugfix/umbraco backoffice icon #10192 (#10212)
* Umbraco backoffice icon #10192

Added umbraco icon

* Update icon-umbraco.svg

updated viewbox
2021-05-05 02:10:26 +02:00
7ab09cb404 Ensure BlockObjects have references to a working current property editor. (#10195)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-05-04 16:58:31 +02:00
a721f92aed Accessibility: Add focus lock for the infinite editor (#8522)
* Toggle the inert attribute when adding or removing the first/last editor

* Add focus lock directive for the editor

* Increase timeout period so infinite editors transclusions will also have time to finish

* Make sure elements containing .ng-hide are not part of the possible focusable elements

* Update comments

* Conditionally add umb-focus-lock and inert attributes

* Hook into the evenservice to reinitialize the onInit method if the last editor has not been closed when the lock is used in infinite mode

* Don't try to add focus to something that does not exist

* Minor code refactor placing some variables outside the init method

* Refactoring code to make things a bit more clean

* Remove the event listener when the directive is destroyed

* Add mutationObserver to watch for attribute changes and then trigger the getFocusableElements method

* Fetch focusable elements on domChange

* Ensure that args exists before trying to read the properties

* Refactor to use mutationobserver when overlays are closed passing the correct target and re-initialising the directive to activate the focus lock

* Change ng-hide to ng-if so the focusable elements inside the hidden div are not being selected

* Narrow attributes to look for down to the bare minimum of the umb-focus-lock

* Refactor to using good ol' for loop (Fastest)

* Disconnect the observer once the init function has been called - Massive performance improvement

* Event handler cleanup

* Refactor the code to re-initialize the init method on destroy in case infinite editors still exists in the DOM

* Align codestyle

* Add logic to deal with "lastKnowFocused" elements in infinite editing mode

* Re-add attributes after merge with contrib branch

* Correct spelling mistake

* Move onInit into the $includeContentLoaded event and set the timeout to 0

* Make sure to add focus to elements with role="button" as well

* Add comments and remove timeout / delay settings

* Debouce domObserver

* Wrap init function in safeApply

* Add comments to help remember / understand what things are intended to be doing and add missing event param as well as getting rid of some unused code

* Adding more comments

* Move setting of first and last focusable elements into the setElement function

* Remove todo

* Move the setup of first and last focusable elements back to where they were...

Co-authored-by: Joe Glombek <gh@joe.gl>
2021-05-04 10:08:02 +01:00
c8a98a670c Review AB11194 — Improve media selector UX (#10157)
* set input file accept

* Use PreValue file extensions for limiting the files to be chosen in file input

* Current state for Warren to review

* This should fix up what you need Niels

* update csproj

* use empty string if fileExtensions is undefined

* public interface

* initial work

* local crops

* translations

* translation correction

* fix misspeling

* some progress

* filter media picker

* align media card grid items correctly

* responsive media cropper

* always be able to scale 3 times smallest scale

* making image cropper property editor responsive

* scroll to scale

* adjust slider look

* rearrange parts of mediaentryeditor

* test helper

* styling

* move controls inside umb-image-crop

* seperate umg-cropper-gravity styling

* corrected layout

* more ui refinement

* keep the idea of mandatory out for now.

* remove double ;

* removed testing code

* JSON Property Value Convertor now has an array of property editors to exclude

* Property Value Convertor for Media Picker 3 aka Media Picker with Local Crops

* Experimenting on best approach to retrieve local crop in razor view when iterating over picked media items

* Update ValueConvertor to use ImageCropperValue as part of the model for views as alot of existing CropUrls can then use it

* Update extension methods to take an ImageCropperValue model (localCropData)

* Forgot to update CSProj for new ValueConvertor

* New GetCropUrl @Url.GetCropUrl(crop.Alias, media.LocalCrops) as oppposed to @Url.GetCropUrl(media.LocalCrops, cropAlias:crop.Alias, useCropDimensions: true)

* Remove dupe item in CSProj

* Use a contains as an opposed to Array.IndexOf

* various corrections, SingleMode based on max 1, remove double checkerBackground, enforce validation for Crops, changed error indication

* mediapicker v3

* correct version

* fixing file ext label text color

* clipboard features for MediaPicker v3

* highlight not allowed types

* highlight trashed as an error

* Media Types Video, Sound, Document and Vector Image

* Rename to Audio and VectorGraphics

* Add (SVG) in the name for Vector Graphics

* adding CSV to Documents

* remove this commented code.

* remove this commented code

* number range should not go below 0, at-least as default until we make that configurable.

* use min not ng-min

* description for local crops

* Error/Limits highlighting reactive

* visual adjustments

* Enabling opening filtered folders + corrected select hover states

* Varous fixes to resolve issues with unit tests.

* Refactor MediaType Documents to only contain Article file type

* mark as build-in

* predefined MediaPicker3 DataTypes, renaming v2 to "old"

* set scale bar current value after min and max has been set

* added missing }

* update when focal point is dragged

* adjusted styling for Image Cropper property editor

* correcting comment

* remove todo - message for trashed media items works

* Changed parameter ordering

* Introduced new extension method on MediaWithCrops to get croppings urls in with full path

* Reintroducing Single Item Mode

* use Multiple instead of SingleMode

* renaming and adding multiple to preconfigured datatypes

* Change existing media picker to use the Clipboard type MEDIA, enabling shared functionality.

* clean up unused clipboard parts

* adjusted to new amount

* correcting test

* Fix unit test

* Move MediaWithCrops to separate file and move to Core.Models

* parseContentForPaste

* clean up

* ensure crops is an array.

* actively enable focal points, so we dont set focal points that aren't used.

* only accept files that matches file extensions from Umbraco Settings

* Cleanup

* Add references from MediaPicker3 to media

* corrections from various feedback

* remove comment

* correct wording

* use windowResizeListener

* Show Media Type Selector if there is multiple types that matches the current upload batch

* clean-up and refactoring

* auto pick option

Co-authored-by: Warren Buckley <warren@umbraco.com>
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
Co-authored-by: Andy Butland <abutland73@gmail.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-05-04 11:06:52 +02:00
Niels Lyngsø c2fd28810b show invariant property validation issues in the save dialog 2021-05-04 10:38:26 +02:00
ce34165e9d use formCtrl.$invalid instead of running angularHelper.countAllFormErrors, as this method is way too heavy to run in a $watch. (#10134)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-05-03 16:18:15 +02:00
Niels Lyngsø 0b4be695cf Merge remote-tracking branch 'origin/v8/dev' into v8/bugfix/always-ignorer-validation-when-saving 2021-05-03 15:47:36 +02:00
Niels Lyngsø dcfdcb11de remove log 2021-05-03 11:29:52 +02:00
d8d4be9e8e Backport cache key fix and optimizations (#10199)
* Add GetKey<T, TId>

* Update Usages of GetKey and remove GetKey<T>(object)

We shouldn't have to retain this since RepositoryCacheKeys is internal.

* Apply changes to DefaultRepositoryCachePolicy

* Add check for default/less than -1 on UserRepository PerformGet

Co-authored-by: Nikolaj <nel@umbraco.dk>
2021-05-03 10:22:42 +02:00
Chad Currie 03af45612c move to ILocalizedTextService2 2021-05-01 01:12:54 +12:00
Chad Currie f266afb909 Bugfix. Merge en-US. Handle noarea seperately 2021-05-01 00:30:47 +12:00
Chad Currie 85154e2c3f merge 2021-04-30 23:31:32 +12:00
Chad Currie 5d05b12f11 merge 2021-04-30 23:20:37 +12:00
Chad Currie 14513e34e3 Merge branch 'v8/contrib' of https://github.com/umbraco/Umbraco-CMS into v8/bugfix/btree-serializer-array-size 2021-04-30 23:18:24 +12:00
Bjarne FyrstenborgandNathan Woulfe 727be420ff Use umb-icon component in listview dropdown 2021-04-29 08:40:00 +10:00
Bjarne FyrstenborgandNathan Woulfe 349c5ac3ab Fix issue with active style affected nested block list elements 2021-04-29 08:21:36 +10:00
Mike ChambersandSebastiaan Janssen b783399c5c Update ModelsBuilderComposer.cs
issue #10186

typo in IsExternalModelsBuilderInstalled -> Umbraco.ModelsBuider
2021-04-28 18:05:40 +02:00
Sebastiaan Janssen e7a3fd37ce Revert "Fixed copy preserving sort order (#10091)"
This reverts commit 26d11a8314.
2021-04-27 14:57:17 +02:00
Anders BjernerandNathan Woulfe 4ade2264d2 Minor Danish translations 2021-04-27 08:06:57 +10:00
Shannon 1a3165507e adds note 2021-04-26 18:26:49 +10:00
Shannon 053a56a45b Removes the callbacks from DatabaseServerMessenger, moves logic for cold boot into the components responsible for what needs to happen in cold boot. This is still not ideal but we are stuck with backwards compat. In netcore the initialization will be fixed up (if not already). Ensure examine rebuilds don't occur until the first http request is done instead of on a timer which could be problematic with cold boots. 2021-04-26 18:07:23 +10:00
Shannon DeminickandGitHub dccec91073 Merge pull request #9859 from nzdev/v8/bugfix/fix-cold-boot
Reduce cold boot times by loading content and media only once on cold boot
2021-04-26 15:52:41 +10:00
Shannon 22afe5e341 Adds cold boot restart to load test proj 2021-04-26 15:40:46 +10:00
Shannon ad10d86aaa Adds cold boot restart to load test proj 2021-04-26 12:39:00 +10:00
Shannon e434f77f2f uses const as config key 2021-04-23 15:40:36 +10:00
nzdev 306c82f871 Change log to Info 2021-04-23 17:03:32 +12:00
Shannon e418bc56c6 fix merge issue and add correct assembly binding attribute 2021-04-23 13:40:29 +10:00
Shannon 1020fa4231 Merge remote-tracking branch 'origin/v8/contrib' into v8/feature/nucache-perf
# Conflicts:
#	build/NuSpecs/UmbracoCms.Web.nuspec
2021-04-23 13:17:19 +10:00
Mads Rasmussen 4369747c72 skip client side validation 2021-04-22 16:55:18 +02:00
Sebastiaan Janssen c885831e02 Revert "use v8 branch as default for API Docs"
This reverts commit 0dfefb72cb.
2021-04-22 16:34:11 +02:00
Arkadiusz BielandSebastiaan Janssen 0dfefb72cb use v8 branch as default for API Docs 2021-04-22 16:12:20 +02:00
Mads Rasmussen bfe45c44b1 collapse content apps navigation when split view is open 2021-04-22 13:51:28 +02:00
Mads Rasmussen fc8d24cc4c add validation badge to content apps more button 2021-04-22 12:20:33 +02:00
Mads Rasmussen d909c7b8c0 add null check 2021-04-22 11:33:03 +02:00
Mads Rasmussen 1621cb83e0 add icon picker to content type tab 2021-04-22 11:24:08 +02:00
1a5b88525b Media Picker v3 (#9461)
* set input file accept

* Use PreValue file extensions for limiting the files to be chosen in file input

* Current state for Warren to review

* This should fix up what you need Niels

* update csproj

* use empty string if fileExtensions is undefined

* public interface

* initial work

* local crops

* translations

* translation correction

* fix misspeling

* some progress

* filter media picker

* align media card grid items correctly

* responsive media cropper

* always be able to scale 3 times smallest scale

* making image cropper property editor responsive

* scroll to scale

* adjust slider look

* rearrange parts of mediaentryeditor

* test helper

* styling

* move controls inside umb-image-crop

* seperate umg-cropper-gravity styling

* corrected layout

* more ui refinement

* keep the idea of mandatory out for now.

* remove double ;

* removed testing code

* JSON Property Value Convertor now has an array of property editors to exclude

* Property Value Convertor for Media Picker 3 aka Media Picker with Local Crops

* Experimenting on best approach to retrieve local crop in razor view when iterating over picked media items

* Update ValueConvertor to use ImageCropperValue as part of the model for views as alot of existing CropUrls can then use it

* Update extension methods to take an ImageCropperValue model (localCropData)

* Forgot to update CSProj for new ValueConvertor

* New GetCropUrl @Url.GetCropUrl(crop.Alias, media.LocalCrops) as oppposed to @Url.GetCropUrl(media.LocalCrops, cropAlias:crop.Alias, useCropDimensions: true)

* Remove dupe item in CSProj

* Use a contains as an opposed to Array.IndexOf

* various corrections, SingleMode based on max 1, remove double checkerBackground, enforce validation for Crops, changed error indication

* mediapicker v3

* correct version

* fixing file ext label text color

* clipboard features for MediaPicker v3

* highlight not allowed types

* highlight trashed as an error

* Media Types Video, Sound, Document and Vector Image

* Rename to Audio and VectorGraphics

* Add (SVG) in the name for Vector Graphics

* adding CSV to Documents

* remove this commented code.

* remove this commented code

* number range should not go below 0, at-least as default until we make that configurable.

* use min not ng-min

* description for local crops

* Error/Limits highlighting reactive

* visual adjustments

* Enabling opening filtered folders + corrected select hover states

* Varous fixes to resolve issues with unit tests.

* Refactor MediaType Documents to only contain Article file type

* mark as build-in

* predefined MediaPicker3 DataTypes, renaming v2 to "old"

* set scale bar current value after min and max has been set

* added missing }

* update when focal point is dragged

* adjusted styling for Image Cropper property editor

* correcting comment

* remove todo - message for trashed media items works

* Changed parameter ordering

* Introduced new extension method on MediaWithCrops to get croppings urls in with full path

* Reintroducing Single Item Mode

* use Multiple instead of SingleMode

* renaming and adding multiple to preconfigured datatypes

* Change existing media picker to use the Clipboard type MEDIA, enabling shared functionality.

* clean up unused clipboard parts

* adjusted to new amount

* correcting test

* Fix unit test

* Move MediaWithCrops to separate file and move to Core.Models

* parseContentForPaste

* clean up

* ensure crops is an array.

* actively enable focal points, so we dont set focal points that aren't used.

* only accept files that matches file extensions from Umbraco Settings

* Cleanup

* Add references from MediaPicker3 to media

* corrections from various feedback

* remove comment

* correct wording

* use windowResizeListener

Co-authored-by: Warren Buckley <warren@umbraco.com>
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
Co-authored-by: Andy Butland <abutland73@gmail.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-04-22 10:28:53 +02:00
Mads Rasmussen 80897908fc add space to the right of node name input when in split view 2021-04-21 12:26:17 +02:00
Mads Rasmussen ba67e5905a wire up app model 2021-04-21 10:59:49 +02:00
Mads Rasmussen 632b0baaf4 testing tabs as content apps 2021-04-21 10:12:22 +02:00
+18 7704d02883 Merge in #9859 to v8/feature/nucache-perf (#10152)
* load only once

* Bump version to 8.6.8

* Initial rework of Lock dictionaries

* [Issue 5277-146] accessibility - Close 'X' icon next to language drop… (#9264)

* [Issue 5277-146] accessibility - Close 'X' icon next to language drop down is identified as "link" - screen reader

* add new loacalization key

* Fix issue with SqlMainDomLock that cannot use implicit lock timeouts … (#9973)

* Fix issue with SqlMainDomLock that cannot use implicit lock timeouts … (#9973)

(cherry picked from commit da5351dfcf)

* Adjust unit tests and apply fixes to scope

* Add more unit tests, showing current issue

* Counting Umbraco.ModelsBuilder and ModelsBuilder.Umbraco namespaces as external providers

* Fix dead lock with TypeLoader

* Fix errors shown in unit tests

* Throw error if all scopes hasn't been disposed

* Clean

* Fixes and Updates for DB Scope and Ambient Context leaks (#9953)

* Adds some scope tests (ported back from netcore) and provides a much better error message, ensure execution context is not flowed to child tasks that shouldn't leak any current ambient context

* updates comment

* Ensure SqlMainDomLock suppresses execution context too

* Since we're awaiting a task in a library method, ConfigureAwait(false)

* missing null check

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>

* Adds additional error checking and reporting to MainDom/SqlMainDomLock (#9954)

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>

* Add copy logic to Media Picker (#9957)

* Add copy logic to Media Picker

* Add action for copy all

* Fix for selectable media item

* Wrap calls to map in scopes

* Autocomplete scopes

* Remove unnecessary aria-hidden attribute from <umb-icon>

* Remove scope from method that calls another method that has a scope

* Fixes #9993 - Cannot save empty image in Grid

* Clean

* Revert "The Value() method for IPublishedContent was not working with the defaultValue parameter" (#9989)

* Use a hashset to keep track of acquired locks

This simplifies disposing/checking for locks greatly.

* Add images in grid - fixes 9982 (#9987)

Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>

* Only create the dicts and hashset when a lock is requested

* Clean

* Adds a config for configuring the access rules on the content dashboard - by default it granted for all user groups

* Adds additional params indicating whether user is admin

* Add images in grid - fixes 9982 (#9987)

Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
(cherry picked from commit e2019777fb)

* Bump version to 8.12.2

* #9964 Removed unneeded check for HttpContext

* Fix for #9950 - HttpsCheck will now retry using the login background image if inital request returns 301/302. Excessvie Headers check will now check the root url instead of the backoffice

* Merge pull request #9994 from umbraco/v8/bugfix/9993

Fixes #9993 - Cannot save empty image in Grid

(cherry picked from commit 0ecc933921)

* Apply suggestions from review

* Fixes #9983 - Getting kicked, if document type has a Umbraco.UserPicker property (#10002)

* Fixes #9983

Temporary fix for this issue. using the entityservice like before.

* Needed to remove the call to usersResource here as well for displaying the picked items

* Don't need usersResource for now

* Fixes #9983 - Getting kicked, if document type has a Umbraco.UserPicker property (#10002)

* Fixes #9983

Temporary fix for this issue. using the entityservice like before.

* Needed to remove the call to usersResource here as well for displaying the picked items

* Don't need usersResource for now

(cherry picked from commit 45de0a101e)

* 8539: Allow alias in image cropper (#9266)

Co-authored-by: Owain Williams <owaingdwilliams@gmail.com>

* Wrap dumping dictionaries in a method.

* Create method for generating log message

And remove forgotten comments.

* Fix swedish translation for somethingElse.

* Copy member type (#10020)

* Add copy dialog for member type

* Implement copy action for member type

* Create specific localization for content type, media type and member type

* Handle "foldersonly" querystring

* Add button type attribute

* Add a few missing changes of anchor to button element

* Null check on scope and options to ensure backward compatibility

* Improve performance, readability and handling of FollowInternalRedirects (#9889)

* Improve performance, readability and handling of FollowInternalRedirects

* Logger didn't like string param

Passing string param to _logger.Debug<PublishedRouter, int> wasn't happy. Changed to pass existing internalRedirectAsInt variable.

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>

* Update casing of listview layout name

* 9097 add contextual password helper (#9256)

* update back-office forms

* Display tip on reset password page as well

* add directive for password tip

* integrate directove in login screen

* forgot the ng-keyup :-)

* adapt tooltip directive to potential different Members and Users password settings

* remove watcher

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>

* Unbind listener

Listening for splitViewRequest was only unbound if the split view editor was opened. Not cleaning up the listener caused a memory leak when changing between nodes as the spit view editor was detached but not garbage-collected

* Replace icon in date picker with umb-icon component (#10040)

* Replace icon in date picker with <umb-icon> component

* Adjust height of clear button

* Update cypress and fix tests

* Listview config icons (#10036)

* Update icons to use <umb-icon> component

* Simplify markup and use disabled button

* Use move cursor style on sortable handle

* Add class for action column

* Update setting auto focus

* Increase font size of umb-panel-header-icon

* Anchor noopener (#10009)

* Set rel="noopener" for anchors with target="_blank"

* Reverted unwanted changes to Default.cshtml

* Align 'Add language' test to netcore

* Add new cypress tests

* Add indentation

* Getting rid of the config file and implementing an appSetting instead

* Implementation for IContentDashboardSettings

* Cleanup

* bool.Try

* Taking AllowContentDashboardAccessToAllUsers prop from GlobalSettings to ContentDashboardSettings and saving AccessRulesFromConfig into a backing field

* fix support for non run states

* Handling multiple values per field in Examine Management

* Add Root<T> and Breadcrumbs extension methods for IPublishedContent (#9033)

* Fix usage of obsolete CreatorName and WriterName properties

* Add generic Root extension method

* Add Breadcrumbs extension methods

* Orders member type grouping of members alphabetically, matching the listing of member types.

* Revert updating deprecated WriterName/CreatorName refs

Changing the properties to use the extensions is a good thing (given the props are deprecated), but causes issues deep in tests. I'm reverting that change to fix the tests, and all refs to the deprecated properties should be updated in one sweep, to deal with any other test issues that might crop up.

* Handle Invalid format for Upgrade check

* Fixes tabbing-mode remains active after closing modal #9790 (#10074)

* Allow to pass in boolean to preventEnterSubmit directive (#8639)

* Pass in value to preventEnterSubmit directive

* Set enabled similar to preventDefault and preventEnterSubmit directives

* Update prevent enter submit value

* Init value from controller

* Use a different default input id prefix for umb-search-filter

* Fix typo

* Check for truthly value

* Revert "Set enabled similar to preventDefault and preventEnterSubmit directives"

This reverts commit 536ce855c4.

* None pointer events when clicking icon

* Use color variable

* Fixes tabbing-mode remains active after closing modal #9790 (#10074)

(cherry picked from commit c881fa9e7d)

* Null check on scope and options to ensure backward compatibility

(cherry picked from commit fe8cd239d2)

* Fix validation of step size in integer/numeric field

* 9962: Use $allowedEditors instead of allowed (#10086)

* 9962: Use $allowedEditors instead of allowed

* 9962: Remove redundant statement

* fixes #10021 adds ng-form and val-form-manager to the documentation

* Improved accessibility of link picker (#10099)

* Added support for screeen reader alerts on the embed so that assitive technology knows when a url retrieve has been succesfull.
Added labels for the controls
Preview reload only triggered if the values for height and width change

* Added control ids for the link picker

* Add French translation

* Accessibility: Alerts the user how many results have been returned on a tree search (#10100)

* Added support for screeen reader alerts on the embed so that assitive technology knows when a url retrieve has been succesfull.
Added labels for the controls
Preview reload only triggered if the values for height and width change

* Tree search details the number of search items returned

* Add French translations

* Updated LightInject to v6.4.0

* Remove HtmlSanitizer once more - see #9803

* Also make sure NuGet installs the correct version of the CodePages dependency

* Bump version to 8.13 RC

* Fixed copy preserving sort order (#10091)

* Revert "Updated LightInject to v6.4.0"

This reverts commit fc77252ec7.

* Revert "Add copy logic to Media Picker (#9957)"

This reverts commit f7c032af65.

* Reintroduce old constructor to make non-breaking

* Update cypress test to make macros in the grid work again

* Attributes could be multiple items, test specifically if `Directory` is an attribute

* Accessibility: Adding label fors and control ids for the macro picker (#10101)

* Added support for screeen reader alerts on the embed so that assitive technology knows when a url retrieve has been succesfull.
Added labels for the controls
Preview reload only triggered if the values for height and width change

* Added support for label fors for the macro picker and also gave the ,acro search box a title

* Now displays a count of the matching macros returned. Please note the language file amends shared with #10100

* Removed src-only class for the display of the count of messages

* Updating typo

* Removed top-margin from switcher icon

* Allow KeepAlive controller Ping method to be requested by non local requests (#10126)

* Allow KeepAlive controller Ping method to be requested by non local requests and accept head requests

* removed unused references

* fix csproj

* fix merge

* btree serializer optimizations

* array pool and nametable optimizations

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
Co-authored-by: Justin Shearer <justin.shearer@gmail.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
Co-authored-by: Callum Whyte <hey@callumwhyte.com>
Co-authored-by: Shannon <sdeminick@gmail.com>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
Co-authored-by: patrickdemooij9 <patrickdemooij98@hotmail.com>
Co-authored-by: Bjarne Fyrstenborg <bjarne_fyrstenborg@hotmail.com>
Co-authored-by: Michael Latouche <michael@crossingpaths.be>
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
Co-authored-by: Markus Johansson <markus@obviuse.se>
Co-authored-by: Jeavon Leopold <jeavon@crumpled-dog.com>
Co-authored-by: Benjamin Carleski <benjamin@proworks.com>
Co-authored-by: Owain Williams <owaingdwilliams@gmail.com>
Co-authored-by: Jesper Löfgren <jesper.lofgren@sappa.se>
Co-authored-by: Martin Bentancour <mbe@umbraco.dk>
Co-authored-by: Ronald Barendse <ronald@panoramastudios.nl>
Co-authored-by: Andy Butland <abutland73@gmail.com>
Co-authored-by: BeardinaSuit <BeardInASuit@outlook.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
Co-authored-by: Rachel Breeze <RachBreeze@users.noreply.github.com>
Co-authored-by: Dave de Moel <d.demoel@wearetriple.com>
Co-authored-by: ric <60885685+ricbrady@users.noreply.github.com>
Co-authored-by: Carole Rennie Logan <crgrieve@users.noreply.github.com>
Co-authored-by: Dennis Öhman <dennis.ohman@bjornmamman.se>
2021-04-21 09:05:37 +10:00
+18 98d8971ce9 Merge in v8/contrib to V8/feature/nucache perf sync (#10151)
* Bump version to 8.6.8

* Initial rework of Lock dictionaries

* [Issue 5277-146] accessibility - Close 'X' icon next to language drop… (#9264)

* [Issue 5277-146] accessibility - Close 'X' icon next to language drop down is identified as "link" - screen reader

* add new loacalization key

* Fix issue with SqlMainDomLock that cannot use implicit lock timeouts … (#9973)

* Fix issue with SqlMainDomLock that cannot use implicit lock timeouts … (#9973)

(cherry picked from commit da5351dfcf)

* Adjust unit tests and apply fixes to scope

* Add more unit tests, showing current issue

* Counting Umbraco.ModelsBuilder and ModelsBuilder.Umbraco namespaces as external providers

* Fix dead lock with TypeLoader

* Fix errors shown in unit tests

* Throw error if all scopes hasn't been disposed

* Clean

* Fixes and Updates for DB Scope and Ambient Context leaks (#9953)

* Adds some scope tests (ported back from netcore) and provides a much better error message, ensure execution context is not flowed to child tasks that shouldn't leak any current ambient context

* updates comment

* Ensure SqlMainDomLock suppresses execution context too

* Since we're awaiting a task in a library method, ConfigureAwait(false)

* missing null check

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>

* Adds additional error checking and reporting to MainDom/SqlMainDomLock (#9954)

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>

* Add copy logic to Media Picker (#9957)

* Add copy logic to Media Picker

* Add action for copy all

* Fix for selectable media item

* Wrap calls to map in scopes

* Autocomplete scopes

* Remove unnecessary aria-hidden attribute from <umb-icon>

* Remove scope from method that calls another method that has a scope

* Fixes #9993 - Cannot save empty image in Grid

* Clean

* Revert "The Value() method for IPublishedContent was not working with the defaultValue parameter" (#9989)

* Use a hashset to keep track of acquired locks

This simplifies disposing/checking for locks greatly.

* Add images in grid - fixes 9982 (#9987)

Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>

* Only create the dicts and hashset when a lock is requested

* Clean

* Adds a config for configuring the access rules on the content dashboard - by default it granted for all user groups

* Adds additional params indicating whether user is admin

* Add images in grid - fixes 9982 (#9987)

Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
(cherry picked from commit e2019777fb)

* Bump version to 8.12.2

* #9964 Removed unneeded check for HttpContext

* Fix for #9950 - HttpsCheck will now retry using the login background image if inital request returns 301/302. Excessvie Headers check will now check the root url instead of the backoffice

* Merge pull request #9994 from umbraco/v8/bugfix/9993

Fixes #9993 - Cannot save empty image in Grid

(cherry picked from commit 0ecc933921)

* Apply suggestions from review

* Fixes #9983 - Getting kicked, if document type has a Umbraco.UserPicker property (#10002)

* Fixes #9983

Temporary fix for this issue. using the entityservice like before.

* Needed to remove the call to usersResource here as well for displaying the picked items

* Don't need usersResource for now

* Fixes #9983 - Getting kicked, if document type has a Umbraco.UserPicker property (#10002)

* Fixes #9983

Temporary fix for this issue. using the entityservice like before.

* Needed to remove the call to usersResource here as well for displaying the picked items

* Don't need usersResource for now

(cherry picked from commit 45de0a101e)

* 8539: Allow alias in image cropper (#9266)

Co-authored-by: Owain Williams <owaingdwilliams@gmail.com>

* Wrap dumping dictionaries in a method.

* Create method for generating log message

And remove forgotten comments.

* Fix swedish translation for somethingElse.

* Copy member type (#10020)

* Add copy dialog for member type

* Implement copy action for member type

* Create specific localization for content type, media type and member type

* Handle "foldersonly" querystring

* Add button type attribute

* Add a few missing changes of anchor to button element

* Null check on scope and options to ensure backward compatibility

* Improve performance, readability and handling of FollowInternalRedirects (#9889)

* Improve performance, readability and handling of FollowInternalRedirects

* Logger didn't like string param

Passing string param to _logger.Debug<PublishedRouter, int> wasn't happy. Changed to pass existing internalRedirectAsInt variable.

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>

* Update casing of listview layout name

* 9097 add contextual password helper (#9256)

* update back-office forms

* Display tip on reset password page as well

* add directive for password tip

* integrate directove in login screen

* forgot the ng-keyup :-)

* adapt tooltip directive to potential different Members and Users password settings

* remove watcher

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>

* Unbind listener

Listening for splitViewRequest was only unbound if the split view editor was opened. Not cleaning up the listener caused a memory leak when changing between nodes as the spit view editor was detached but not garbage-collected

* Replace icon in date picker with umb-icon component (#10040)

* Replace icon in date picker with <umb-icon> component

* Adjust height of clear button

* Update cypress and fix tests

* Listview config icons (#10036)

* Update icons to use <umb-icon> component

* Simplify markup and use disabled button

* Use move cursor style on sortable handle

* Add class for action column

* Update setting auto focus

* Increase font size of umb-panel-header-icon

* Anchor noopener (#10009)

* Set rel="noopener" for anchors with target="_blank"

* Reverted unwanted changes to Default.cshtml

* Align 'Add language' test to netcore

* Add new cypress tests

* Add indentation

* Getting rid of the config file and implementing an appSetting instead

* Implementation for IContentDashboardSettings

* Cleanup

* bool.Try

* Taking AllowContentDashboardAccessToAllUsers prop from GlobalSettings to ContentDashboardSettings and saving AccessRulesFromConfig into a backing field

* Handling multiple values per field in Examine Management

* Add Root<T> and Breadcrumbs extension methods for IPublishedContent (#9033)

* Fix usage of obsolete CreatorName and WriterName properties

* Add generic Root extension method

* Add Breadcrumbs extension methods

* Orders member type grouping of members alphabetically, matching the listing of member types.

* Revert updating deprecated WriterName/CreatorName refs

Changing the properties to use the extensions is a good thing (given the props are deprecated), but causes issues deep in tests. I'm reverting that change to fix the tests, and all refs to the deprecated properties should be updated in one sweep, to deal with any other test issues that might crop up.

* Handle Invalid format for Upgrade check

* Fixes tabbing-mode remains active after closing modal #9790 (#10074)

* Allow to pass in boolean to preventEnterSubmit directive (#8639)

* Pass in value to preventEnterSubmit directive

* Set enabled similar to preventDefault and preventEnterSubmit directives

* Update prevent enter submit value

* Init value from controller

* Use a different default input id prefix for umb-search-filter

* Fix typo

* Check for truthly value

* Revert "Set enabled similar to preventDefault and preventEnterSubmit directives"

This reverts commit 536ce855c4.

* None pointer events when clicking icon

* Use color variable

* Fixes tabbing-mode remains active after closing modal #9790 (#10074)

(cherry picked from commit c881fa9e7d)

* Null check on scope and options to ensure backward compatibility

(cherry picked from commit fe8cd239d2)

* Fix validation of step size in integer/numeric field

* 9962: Use $allowedEditors instead of allowed (#10086)

* 9962: Use $allowedEditors instead of allowed

* 9962: Remove redundant statement

* fixes #10021 adds ng-form and val-form-manager to the documentation

* Improved accessibility of link picker (#10099)

* Added support for screeen reader alerts on the embed so that assitive technology knows when a url retrieve has been succesfull.
Added labels for the controls
Preview reload only triggered if the values for height and width change

* Added control ids for the link picker

* Add French translation

* Accessibility: Alerts the user how many results have been returned on a tree search (#10100)

* Added support for screeen reader alerts on the embed so that assitive technology knows when a url retrieve has been succesfull.
Added labels for the controls
Preview reload only triggered if the values for height and width change

* Tree search details the number of search items returned

* Add French translations

* Updated LightInject to v6.4.0

* Remove HtmlSanitizer once more - see #9803

* Also make sure NuGet installs the correct version of the CodePages dependency

* Bump version to 8.13 RC

* Fixed copy preserving sort order (#10091)

* Revert "Updated LightInject to v6.4.0"

This reverts commit fc77252ec7.

* Revert "Add copy logic to Media Picker (#9957)"

This reverts commit f7c032af65.

* Reintroduce old constructor to make non-breaking

* Update cypress test to make macros in the grid work again

* Attributes could be multiple items, test specifically if `Directory` is an attribute

* Accessibility: Adding label fors and control ids for the macro picker (#10101)

* Added support for screeen reader alerts on the embed so that assitive technology knows when a url retrieve has been succesfull.
Added labels for the controls
Preview reload only triggered if the values for height and width change

* Added support for label fors for the macro picker and also gave the ,acro search box a title

* Now displays a count of the matching macros returned. Please note the language file amends shared with #10100

* Removed src-only class for the display of the count of messages

* Updating typo

* Removed top-margin from switcher icon

* Allow KeepAlive controller Ping method to be requested by non local requests (#10126)

* Allow KeepAlive controller Ping method to be requested by non local requests and accept head requests

* removed unused references

* fix csproj

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
Co-authored-by: Justin Shearer <justin.shearer@gmail.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
Co-authored-by: Callum Whyte <hey@callumwhyte.com>
Co-authored-by: Shannon <sdeminick@gmail.com>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
Co-authored-by: patrickdemooij9 <patrickdemooij98@hotmail.com>
Co-authored-by: Bjarne Fyrstenborg <bjarne_fyrstenborg@hotmail.com>
Co-authored-by: Michael Latouche <michael@crossingpaths.be>
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
Co-authored-by: Markus Johansson <markus@obviuse.se>
Co-authored-by: Jeavon Leopold <jeavon@crumpled-dog.com>
Co-authored-by: Benjamin Carleski <benjamin@proworks.com>
Co-authored-by: Owain Williams <owaingdwilliams@gmail.com>
Co-authored-by: Jesper Löfgren <jesper.lofgren@sappa.se>
Co-authored-by: Martin Bentancour <mbe@umbraco.dk>
Co-authored-by: Ronald Barendse <ronald@panoramastudios.nl>
Co-authored-by: Andy Butland <abutland73@gmail.com>
Co-authored-by: BeardinaSuit <BeardInASuit@outlook.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
Co-authored-by: Rachel Breeze <RachBreeze@users.noreply.github.com>
Co-authored-by: Dave de Moel <d.demoel@wearetriple.com>
Co-authored-by: ric <60885685+ricbrady@users.noreply.github.com>
Co-authored-by: Carole Rennie Logan <crgrieve@users.noreply.github.com>
Co-authored-by: Dennis Öhman <dennis.ohman@bjornmamman.se>
2021-04-21 09:05:01 +10:00
Mads Rasmussen 0d600ee310 Merge branch 'v8/dev' into v8/prototype/doctype-tabs 2021-04-20 13:28:37 +02:00
Chad Currie 5f45e6fd83 Provide capacity values for DictionaryOfPropertyDataSerializer 2021-04-20 22:42:24 +12:00
Niels Lyngsø 021c0b82c1 final corrections 2021-04-20 11:35:40 +02:00
Niels Lyngsø eeb30db36d Merge remote-tracking branch 'origin/v8/bugfix/use-warning-message-style-when-saving' into v8/bugfix/always-ignorer-validation-when-saving
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/directives/components/content/edit.controller.js
2021-04-20 11:16:20 +02:00
Niels Lyngsø 12cde0c571 Use warning style when saving 2021-04-20 11:10:07 +02:00
Shannon dc08997040 Removes usages of UpgradeableReadLock 2021-04-20 18:02:23 +10:00
Shannon bf7a3251d8 Ensure more ReaderWriterLockSlim are disposed or converted 2021-04-20 17:56:55 +10:00
Shannon 7e332b23c9 Fixes ConcurrentHashSet to just use a ConcurrentDictionary as it's underlying source and remove the ReaderWriterLockSlim since we are never disposing this. Makes IdkMap disposable. 2021-04-20 17:14:34 +10:00
Shannon b75a786551 Ensures the ReaderWriterLockSlim within our caches are disposed at the end of the app 2021-04-20 16:41:11 +10:00
Shannon e775497c5e Removes ReaderWriterLockSlim from PropertyGroupCollection and PropertyTypeCollection. No lock should exist here at all not even sure why it's there (Based on 9yr old code). I'm pretty sure it's there because these entities used to be cached (and not cloned) which meant it was the same instance used between threads. 2021-04-20 16:09:52 +10:00
Sebastiaan Janssen a3e3e83a3d Bump version to 8.13.0 2021-04-19 17:34:01 +02:00
Sebastiaan Janssen f1e4fec4c4 Revert "The Value() method for IPublishedContent was not working with the defaultValue parameter (#9888)"
This reverts commit 52b670973d.
2021-04-19 17:31:53 +02:00
Sebastiaan Janssen 57ed4698f0 Revert "Revert "The Value() method for IPublishedContent was not working with the defaultValue parameter" (#9989)"
This reverts commit 156c1c9416.
2021-04-19 17:31:09 +02:00
MoleandGitHub 0c3788eba1 Merge pull request #10061 from umbraco/v8/feature/AB10632-recycle-bin-smells-caching
RecycleBinSmells caching
2021-04-16 13:14:33 +02:00
Elitsa Marinovska 7d09de6d0f Removing unused param 2021-04-15 10:33:21 +02:00
Elitsa Marinovska 8e14543616 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/AB10632-recycle-bin-smells-caching 2021-04-15 09:02:53 +02:00
Elitsa Marinovska 038afa5664 Fixing tests after adding the new event related to EmptiedRecycleBin 2021-04-15 09:00:58 +02:00
Elitsa Marinovska 2534f99cdb Adding new RecycleBin event handlers 2021-04-14 16:55:37 +02:00
Warren Buckley f6e4089581 Merge branch 'v8/dev' into v8/prototype/doctype-tabs 2021-04-13 08:46:26 +01:00
Warren Buckley 01b4094753 Merge branch 'v8/prototype/doctype-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/prototype/doctype-tabs 2021-04-13 08:46:12 +01:00
JeavonandGitHub c8b6841ef1 Allow KeepAlive controller Ping method to be requested by non local requests (#10126)
* Allow KeepAlive controller Ping method to be requested by non local requests and accept head requests

* removed unused references
2021-04-13 03:10:44 +02:00
de4a7eff85 Fixes some property editors ensuring ngModelController(#10013)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-04-12 15:19:32 +02:00
18fa631f1c use paste-resolvers (#10121)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-04-12 14:38:52 +02:00
8d8fb2d15c Dont show block catalogue if only one block is available. Enable ente… (#9575)
* Dont show block catalogue if only one block is available. Enable entering clipboard directly.

* corrected button states

* jump clipboard icon when adding items to the clipboard.

* fix merge issue

* add missing eventsService

* correcting missing parts from Merge

Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
2021-04-12 12:27:12 +02:00
Dennis ÖhmanandMichael Latouche 4f49e57573 Removed top-margin from switcher icon 2021-04-12 02:29:05 +02:00
Carole Rennie LoganandMichael Latouche 3b6de9cb9e Updating typo 2021-04-10 02:47:49 +02:00
Rachel BreezeandGitHub e21cc6f97e Accessibility: Adding label fors and control ids for the macro picker (#10101)
* Added support for screeen reader alerts on the embed so that assitive technology knows when a url retrieve has been succesfull.
Added labels for the controls
Preview reload only triggered if the values for height and width change

* Added support for label fors for the macro picker and also gave the ,acro search box a title

* Now displays a count of the matching macros returned. Please note the language file amends shared with #10100

* Removed src-only class for the display of the count of messages
2021-04-10 02:34:18 +02:00
Sebastiaan Janssen b0592f1126 Merge branch 'v8/dev' into v8/contrib 2021-04-07 16:27:34 +02:00
Sebastiaan Janssen 8c20e252dc Merge branch 'v8/8.13' into v8/dev 2021-04-07 16:26:48 +02:00
Sebastiaan Janssen ecf67669ce Attributes could be multiple items, test specifically if Directory is an attribute 2021-04-07 16:25:46 +02:00
Sebastiaan Janssen 9fdbbb54fb Update cypress test to make macros in the grid work again 2021-04-07 15:44:28 +02:00
MoleandGitHub f6eb8c9dbb Merge pull request #9995 from umbraco/v8/feature/10615-mappers-with-explicit-scope
Create explicit scope for mappers in UmbracoMapper
2021-04-07 14:58:39 +02:00
Mole 8b6fc762b5 Reintroduce old constructor to make non-breaking 2021-04-07 13:54:42 +02:00
Sebastiaan Janssen 9d5a5d886e Merge branch 'v8/dev' into v8/contrib 2021-04-07 13:45:38 +02:00
Sebastiaan Janssen 2d2a89f216 Revert "Add copy logic to Media Picker (#9957)"
This reverts commit f7c032af65.
2021-04-07 13:42:46 +02:00
Sebastiaan Janssen d85d0d75f3 Revert "Updated LightInject to v6.4.0"
This reverts commit fc77252ec7.
2021-04-06 16:13:40 +02:00
ricandGitHub 26d11a8314 Fixed copy preserving sort order (#10091) 2021-04-06 13:44:49 +01:00
Sebastiaan Janssen 89b881e98e Bump version to 8.13 RC 2021-04-06 10:11:46 +02:00
Sebastiaan Janssen 3358ab2604 Also make sure NuGet installs the correct version of the CodePages dependency 2021-04-06 10:08:10 +02:00
Sebastiaan Janssen c84f616a17 Remove HtmlSanitizer once more - see #9803 2021-04-06 10:08:10 +02:00
Dave de MoelandSebastiaan Janssen fc77252ec7 Updated LightInject to v6.4.0 2021-04-06 09:35:12 +02:00
Rachel BreezeandGitHub db6d572235 Accessibility: Alerts the user how many results have been returned on a tree search (#10100)
* Added support for screeen reader alerts on the embed so that assitive technology knows when a url retrieve has been succesfull.
Added labels for the controls
Preview reload only triggered if the values for height and width change

* Tree search details the number of search items returned

* Add French translations
2021-04-06 03:50:14 +02:00
Rachel BreezeandGitHub 739d9a8188 Improved accessibility of link picker (#10099)
* Added support for screeen reader alerts on the embed so that assitive technology knows when a url retrieve has been succesfull.
Added labels for the controls
Preview reload only triggered if the values for height and width change

* Added control ids for the link picker

* Add French translation
2021-04-06 03:44:14 +02:00
Mads RasmussenandNathan Woulfe f549a36593 fixes #10021 adds ng-form and val-form-manager to the documentation 2021-04-06 07:42:05 +10:00
patrickdemooij9andGitHub f8e280e0b4 9962: Use $allowedEditors instead of allowed (#10086)
* 9962: Use $allowedEditors instead of allowed

* 9962: Remove redundant statement
2021-04-04 02:16:02 +02:00
Bjarne FyrstenborgandMichael Latouche f83f465211 Fix validation of step size in integer/numeric field 2021-04-03 02:59:24 +02:00
Sebastiaan Janssen d428a4543f Merge branch 'v8/dev' into v8/contrib 2021-03-31 17:27:13 +02:00
Sebastiaan Janssen d7519e29d0 Merge branch 'v8/8.12' into v8/dev 2021-03-31 17:26:25 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 72e468428a Null check on scope and options to ensure backward compatibility
(cherry picked from commit fe8cd239d2)
2021-03-31 14:42:05 +02:00
Sebastiaan Janssen e8a9c4da2e Merge branch 'v8/dev' into v8/contrib 2021-03-31 13:01:25 +02:00
Sebastiaan Janssen 2f60a471b3 Merge branch 'v8/8.12' into v8/dev 2021-03-31 13:00:32 +02:00
Sebastiaan Janssen acaf1941fe Merge branch 'v8/8.11' into v8/8.12 2021-03-31 12:59:56 +02:00
Mads RasmussenandSebastiaan Janssen 15923aafc7 Fixes tabbing-mode remains active after closing modal #9790 (#10074)
(cherry picked from commit c881fa9e7d)
2021-03-31 12:55:48 +02:00
Bjarne FyrstenborgandGitHub d08b84d28f Allow to pass in boolean to preventEnterSubmit directive (#8639)
* Pass in value to preventEnterSubmit directive

* Set enabled similar to preventDefault and preventEnterSubmit directives

* Update prevent enter submit value

* Init value from controller

* Use a different default input id prefix for umb-search-filter

* Fix typo

* Check for truthly value

* Revert "Set enabled similar to preventDefault and preventEnterSubmit directives"

This reverts commit 536ce855c4.

* None pointer events when clicking icon

* Use color variable
2021-03-31 10:01:33 +01:00
Mads RasmussenandGitHub c881fa9e7d Fixes tabbing-mode remains active after closing modal #9790 (#10074) 2021-03-30 17:03:56 +02:00
BeardinaSuitandSebastiaan Janssen e7ce6a307e Handle Invalid format for Upgrade check 2021-03-30 15:08:00 +02:00
Nathan WoulfeandSebastiaan Janssen 958e25d4ba Revert updating deprecated WriterName/CreatorName refs
Changing the properties to use the extensions is a good thing (given the props are deprecated), but causes issues deep in tests. I'm reverting that change to fix the tests, and all refs to the deprecated properties should be updated in one sweep, to deal with any other test issues that might crop up.
2021-03-30 13:22:04 +02:00
Andy ButlandandNathan Woulfe 6299ea0862 Orders member type grouping of members alphabetically, matching the listing of member types. 2021-03-30 17:31:46 +10:00
Ronald BarendseandGitHub dcc07fd612 Add Root<T> and Breadcrumbs extension methods for IPublishedContent (#9033)
* Fix usage of obsolete CreatorName and WriterName properties

* Add generic Root extension method

* Add Breadcrumbs extension methods
2021-03-29 09:13:53 +10:00
Callum WhyteandNathan Woulfe 121ae2e8a9 Handling multiple values per field in Examine Management 2021-03-29 08:34:55 +10:00
Mads Rasmussen ecda94fa86 check for tabs overflow 2021-03-26 10:07:44 +01:00
nzdev 5f9d126ab7 fix support for non run states 2021-03-26 16:13:47 +13:00
Elitsa Marinovska 05e9710ca6 Using an atomic operation when calling GetCacheItem - a callback is specified when the item isn't found 2021-03-25 13:29:27 +01:00
Elitsa Marinovska 19c17836aa Adding recycle bin smells caches at repository level 2021-03-25 12:54:46 +01:00
MoleandGitHub 499e4f0c42 Merge pull request #9999 from umbraco/v8/feature/AB10891-content-dashboard-config
Granting access to the content dashboard for all user groups
2021-03-25 12:03:33 +01:00
Elitsa Marinovska d2a26bf4da Caching RecycleBinSmells 2021-03-25 11:49:38 +01:00
Elitsa Marinovska f68d4d6968 Taking AllowContentDashboardAccessToAllUsers prop from GlobalSettings to ContentDashboardSettings and saving AccessRulesFromConfig into a backing field 2021-03-25 11:11:41 +01:00
Elitsa Marinovska 56d5704167 bool.Try 2021-03-24 16:15:21 +01:00
Bjarke BergandGitHub bfc3068d6a Merge pull request #10056 from umbraco/v8/feature/new-cypress-content-tests
Add new cypress tests
2021-03-24 16:03:29 +01:00
Elitsa Marinovska 91ce071271 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/AB10891-content-dashboard-config 2021-03-24 15:43:33 +01:00
Elitsa Marinovska 61f486ebea Cleanup 2021-03-24 15:36:29 +01:00
Elitsa Marinovska 6e54c6fefd Implementation for IContentDashboardSettings 2021-03-24 15:34:05 +01:00
Elitsa Marinovska eabfa7f414 Getting rid of the config file and implementing an appSetting instead 2021-03-24 15:28:06 +01:00
Mole 64724ac85b Add indentation 2021-03-24 15:11:26 +01:00
Mole 70a582d1f0 Add new cypress tests 2021-03-24 15:04:34 +01:00
Bjarke BergandGitHub b723b4d377 Merge pull request #10045 from umbraco/v8/feature/update-cypress-and-fix-tests
Update cypress and fix tests
2021-03-24 14:26:06 +01:00
Mole f0b39ce890 Align 'Add language' test to netcore 2021-03-24 10:57:02 +01:00
Martin BentancourandGitHub 9ac4eacdbd Anchor noopener (#10009)
* Set rel="noopener" for anchors with target="_blank"

* Reverted unwanted changes to Default.cshtml
2021-03-24 02:43:20 +01:00
Bjarne FyrstenborgandGitHub 11f123e7c4 Listview config icons (#10036)
* Update icons to use <umb-icon> component

* Simplify markup and use disabled button

* Use move cursor style on sortable handle

* Add class for action column

* Update setting auto focus

* Increase font size of umb-panel-header-icon
2021-03-24 08:04:33 +10:00
Mole 14c2bb4aa2 Update cypress and fix tests 2021-03-23 13:03:01 +01:00
Bjarne FyrstenborgandGitHub ebd504e8c1 Replace icon in date picker with umb-icon component (#10040)
* Replace icon in date picker with <umb-icon> component

* Adjust height of clear button
2021-03-23 03:06:44 +01:00
Nathan WoulfeandMichael Latouche 95bf10e11b Unbind listener
Listening for splitViewRequest was only unbound if the split view editor was opened. Not cleaning up the listener caused a memory leak when changing between nodes as the spit view editor was detached but not garbage-collected
2021-03-23 02:46:39 +01:00
88611f30b5 9097 add contextual password helper (#9256)
* update back-office forms

* Display tip on reset password page as well

* add directive for password tip

* integrate directove in login screen

* forgot the ng-keyup :-)

* adapt tooltip directive to potential different Members and Users password settings

* remove watcher

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-03-23 08:07:50 +10:00
Bjarne FyrstenborgandNathan Woulfe 3d05bd6917 Update casing of listview layout name 2021-03-23 07:56:51 +10:00
f8f2029637 Improve performance, readability and handling of FollowInternalRedirects (#9889)
* Improve performance, readability and handling of FollowInternalRedirects

* Logger didn't like string param

Passing string param to _logger.Debug<PublishedRouter, int> wasn't happy. Changed to pass existing internalRedirectAsInt variable.

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-03-23 07:53:21 +10:00
Bjarne FyrstenborgandNathan Woulfe fe8cd239d2 Null check on scope and options to ensure backward compatibility 2021-03-22 10:20:40 +10:00
Bjarne FyrstenborgandGitHub 046d6351d2 Copy member type (#10020)
* Add copy dialog for member type

* Implement copy action for member type

* Create specific localization for content type, media type and member type

* Handle "foldersonly" querystring

* Add button type attribute

* Add a few missing changes of anchor to button element
2021-03-21 03:09:20 +01:00
Jesper LöfgrenandMichael Latouche 691c5d38a2 Fix swedish translation for somethingElse. 2021-03-19 19:03:53 +01:00
Bjarke BergandGitHub 3c9fb71894 Merge pull request #9979 from umbraco/v8/feature/10613-distributed-locks
Scope locking rework
2021-03-19 13:51:05 +01:00
Mole 507c821f66 Create method for generating log message
And remove forgotten comments.
2021-03-19 13:19:39 +01:00
Warren Buckley 44c955cccc Rename variable to groupId as opposed to tabId as this is what it actually is 2021-03-19 11:52:38 +00:00
Warren Buckley 0e356b8b93 More DB schema stuff 2021-03-19 11:52:00 +00:00
Warren Buckley 886de83a7c DTOs and Migration Plan to add new table 2021-03-19 11:17:13 +00:00
Mads Rasmussen 88c39ad630 add tabs to save model 2021-03-19 11:50:21 +01:00
Mole 95f42487d4 Wrap dumping dictionaries in a method. 2021-03-19 08:37:23 +01:00
7f1d5fe7cc 8539: Allow alias in image cropper (#9266)
Co-authored-by: Owain Williams <owaingdwilliams@gmail.com>
2021-03-18 22:04:03 +00:00
Mads Rasmussen 386d5e2c4f remove list style when sorting + add placeholder styling for tabs 2021-03-18 13:48:48 +01:00
Sebastiaan Janssen 73439d4cba Fixes #9983 - Getting kicked, if document type has a Umbraco.UserPicker property (#10002)
* Fixes #9983

Temporary fix for this issue. using the entityservice like before.

* Needed to remove the call to usersResource here as well for displaying the picked items

* Don't need usersResource for now

(cherry picked from commit 45de0a101e)
2021-03-18 13:08:33 +01:00
Sebastiaan JanssenandGitHub 45de0a101e Fixes #9983 - Getting kicked, if document type has a Umbraco.UserPicker property (#10002)
* Fixes #9983

Temporary fix for this issue. using the entityservice like before.

* Needed to remove the call to usersResource here as well for displaying the picked items

* Don't need usersResource for now
2021-03-18 13:01:46 +01:00
Mole 8f50bdbef4 Apply suggestions from review 2021-03-18 11:24:14 +01:00
Mads Rasmussen 35c672530c Merge branch 'v8/dev' into v8/prototype/doctype-tabs 2021-03-18 11:21:26 +01:00
Bjarke BergandSebastiaan Janssen e17bf386a4 Merge pull request #9994 from umbraco/v8/bugfix/9993
Fixes #9993 - Cannot save empty image in Grid

(cherry picked from commit 0ecc933921)
2021-03-18 10:59:36 +01:00
Bjarke BergandGitHub 0ecc933921 Merge pull request #9994 from umbraco/v8/bugfix/9993
Fixes #9993 - Cannot save empty image in Grid
2021-03-18 09:28:58 +01:00
Jeavon LeopoldandMichael Latouche 2b9eaeee8a Fix for #9950 - HttpsCheck will now retry using the login background image if inital request returns 301/302. Excessvie Headers check will now check the root url instead of the backoffice 2021-03-18 02:54:07 +01:00
Markus JohanssonandMichael Latouche 3004e00b4f #9964 Removed unneeded check for HttpContext 2021-03-18 02:16:08 +01:00
Sebastiaan Janssen 548435dcc3 Bump version to 8.12.2 2021-03-17 17:40:47 +01:00
Nathan WoulfeandSebastiaan Janssen e7a1db5604 Add images in grid - fixes 9982 (#9987)
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
(cherry picked from commit e2019777fb)
2021-03-17 17:38:55 +01:00
Mads Rasmussen 3a4f72ed91 add auto-resize back to locked field 2021-03-17 16:09:07 +01:00
Mads Rasmussen dc08183796 add missing data-elements 2021-03-17 16:03:37 +01:00
Mads Rasmussen c803f64fe3 update create document type in "getting started"-tour 2021-03-17 15:51:28 +01:00
Mads Rasmussen d4f2edfaf5 add correct data-elements 2021-03-17 15:36:18 +01:00
Mads Rasmussen f7f9f1cd99 add support for updating the sort order input value 2021-03-17 14:17:24 +01:00
Elitsa Marinovska 3393ac8d03 Adds additional params indicating whether user is admin 2021-03-17 14:05:47 +01:00
Elitsa Marinovska ab16a408a8 Adds a config for configuring the access rules on the content dashboard - by default it granted for all user groups 2021-03-17 14:04:48 +01:00
Mole c504e3ab7e Clean 2021-03-17 13:40:14 +01:00
Mole 9bd1b06eaf Only create the dicts and hashset when a lock is requested 2021-03-17 13:09:45 +01:00
e2019777fb Add images in grid - fixes 9982 (#9987)
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
2021-03-17 12:54:38 +01:00
Mole 54a4a76efb Use a hashset to keep track of acquired locks
This simplifies disposing/checking for locks greatly.
2021-03-17 11:10:34 +01:00
Michael LatoucheandGitHub 156c1c9416 Revert "The Value() method for IPublishedContent was not working with the defaultValue parameter" (#9989) 2021-03-17 10:29:31 +01:00
Mole 3b83b7409e Clean 2021-03-17 10:08:08 +01:00
Sebastiaan Janssen cf4c163131 Fixes #9993 - Cannot save empty image in Grid 2021-03-17 09:58:17 +01:00
Mole aa6d046efe Remove scope from method that calls another method that has a scope 2021-03-17 09:43:36 +01:00
Mads Rasmussen f67d52a0ef align icons and sort order inputs 2021-03-17 09:33:39 +01:00
Bjarne FyrstenborgandNathan Woulfe 1570d49d05 Remove unnecessary aria-hidden attribute from <umb-icon> 2021-03-17 07:21:39 +10:00
Mads Rasmussen b7b7b7916d dont show add property when sorting 2021-03-16 21:22:04 +01:00
Mads Rasmussen 3747bb47dc only show tab bar, when sorting, if there are tabs 2021-03-16 21:20:44 +01:00
Mads Rasmussen 0cf02a2b20 remove non componetized code 2021-03-16 21:13:56 +01:00
Mads Rasmussen 59e04bbf39 align val server fields 2021-03-16 21:06:28 +01:00
Mads Rasmussen ef27a2c273 refactor content type tab to component 2021-03-16 21:01:46 +01:00
Mads Rasmussen 9570da8d06 we dont need these components 2021-03-16 21:01:04 +01:00
Mads Rasmussen 3d23d9574f add shortcuts for adding tabs, groups and properties 2021-03-16 15:16:40 +01:00
Mole 637e85ebbb Autocomplete scopes 2021-03-16 14:23:09 +01:00
Mole 68c4ce2008 Wrap calls to map in scopes 2021-03-16 14:18:17 +01:00
patrickdemooij9andGitHub f7c032af65 Add copy logic to Media Picker (#9957)
* Add copy logic to Media Picker

* Add action for copy all

* Fix for selectable media item
2021-03-16 09:28:51 +10:00
653bf52a1c Adds additional error checking and reporting to MainDom/SqlMainDomLock (#9954)
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-03-15 13:49:37 +01:00
Mole d1afb6eabc Merge remote-tracking branch 'origin/v8/dev' into v8/feature/10613-distributed-locks 2021-03-15 13:19:36 +01:00
d0f047e729 Fixes and Updates for DB Scope and Ambient Context leaks (#9953)
* Adds some scope tests (ported back from netcore) and provides a much better error message, ensure execution context is not flowed to child tasks that shouldn't leak any current ambient context

* updates comment

* Ensure SqlMainDomLock suppresses execution context too

* Since we're awaiting a task in a library method, ConfigureAwait(false)

* missing null check

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-03-15 12:56:38 +01:00
Mole 92fd9ff685 Clean 2021-03-15 11:31:23 +01:00
Mole ef59829489 Throw error if all scopes hasn't been disposed 2021-03-15 08:54:52 +01:00
Mole cee33e863e Fix errors shown in unit tests 2021-03-15 08:38:23 +01:00
ShannonandMichael Latouche b7c1ad2298 Fix dead lock with TypeLoader 2021-03-15 02:23:55 +01:00
Callum WhyteandNathan Woulfe 5ee0f310c9 Counting Umbraco.ModelsBuilder and ModelsBuilder.Umbraco namespaces as external providers 2021-03-15 07:46:58 +10:00
Mole ea816e8110 Add more unit tests, showing current issue 2021-03-12 13:30:25 +01:00
Mole 5c7e4f8dde Adjust unit tests and apply fixes to scope 2021-03-12 13:10:17 +01:00
Sebastiaan Janssen 9b39bfbf51 Merge branch 'v8/dev' into v8/contrib 2021-03-12 09:30:30 +01:00
Sebastiaan Janssen ef60a98fe1 Merge branch 'v8/8.12' into v8/dev 2021-03-12 09:29:44 +01:00
Bjarke BergandSebastiaan Janssen 83719f3505 Fix issue with SqlMainDomLock that cannot use implicit lock timeouts … (#9973)
(cherry picked from commit da5351dfcf)
2021-03-12 09:28:45 +01:00
Bjarke BergandGitHub da5351dfcf Fix issue with SqlMainDomLock that cannot use implicit lock timeouts … (#9973) 2021-03-12 09:23:32 +01:00
Justin ShearerandGitHub 85e6a1149e [Issue 5277-146] accessibility - Close 'X' icon next to language drop… (#9264)
* [Issue 5277-146] accessibility - Close 'X' icon next to language drop down is identified as "link" - screen reader

* add new loacalization key
2021-03-12 09:18:32 +01:00
Shannon 8c7abc60aa inject lazy service just to be safe 2021-03-12 16:50:29 +11:00
Shannon 1ab73b35a4 Merge remote-tracking branch 'origin/v8/contrib' into v8/feature/nucache-perf 2021-03-12 16:50:00 +11:00
Shannon e6b56d9a3c missing null check 2021-03-12 16:33:37 +11:00
Shannon a62112ab82 Don't call the same method over and over 2021-03-12 16:33:09 +11:00
Shannon 37abae83b3 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/nucache-perf
# Conflicts:
#	build/NuSpecs/UmbracoCms.Web.nuspec
#	src/Umbraco.Web/PublishedCache/NuCache/DataSource/DatabaseDataSource.cs
2021-03-12 16:32:21 +11:00
Shannon 890972c3b9 Merge branch 'nzdev-v8/feature/nucache-perf-auto-rebuild' into v8/feature/nucache-perf 2021-03-12 14:11:10 +11:00
Shannon 394372d614 Merge branch 'v8/feature/nucache-perf-auto-rebuild' of https://github.com/nzdev/Umbraco-CMS into nzdev-v8/feature/nucache-perf-auto-rebuild 2021-03-12 14:10:18 +11:00
Shannon DeminickandGitHub efbfa0ba30 Reverting accidental change 2021-03-12 14:02:48 +11:00
Shannon DeminickandGitHub b606b925dd Reverting accidental change 2021-03-12 14:01:51 +11:00
Shannon DeminickandGitHub 097a46189f Reverting accidental change 2021-03-12 14:01:04 +11:00
Shannon DeminickandGitHub 92d11845f5 Reverting accidental change 2021-03-12 14:00:25 +11:00
Mole 498a5e0c66 Initial rework of Lock dictionaries 2021-03-11 15:52:14 +01:00
Sebastiaan Janssen e0604e0a53 Merge branch 'v8/8.11' into v8/8.12 and bump version to 8.12.1
# Conflicts:
#	src/SolutionInfo.cs
2021-03-11 14:55:13 +01:00
Sebastiaan Janssen e5aaa20863 Merge branch 'v8/8.10' into v8/8.11 and bump version to 8.11.2
# Conflicts:
#	src/SolutionInfo.cs
2021-03-11 14:52:58 +01:00
Sebastiaan Janssen 3a5327a84d Merge branch 'v8/8.9' into v8/8.10 and bump version to 8.10.3
# Conflicts:
#	src/SolutionInfo.cs
2021-03-11 14:50:35 +01:00
Sebastiaan Janssen e75895ce48 Merge branch 'v8/8.8' into v8/8.9 and bump version to 8.9.3
# Conflicts:
#	src/SolutionInfo.cs
2021-03-11 14:47:33 +01:00
Sebastiaan Janssen 0479ee41dd Merge branch 'v8/8.7' into v8/8.8 and bump version to 8.8.4
# Conflicts:
#	src/SolutionInfo.cs
2021-03-11 14:45:46 +01:00
Sebastiaan Janssen 1c5d95def4 Merge branch 'v8/8.6' into v8/8.7 and bump version to 8.7.3
# Conflicts:
#	src/SolutionInfo.cs
2021-03-11 14:42:10 +01:00
Sebastiaan Janssen 21bee00518 Bump version to 8.6.8 2021-03-11 14:38:19 +01:00
Mole c69a89baf1 Merge branch 'v8/dev' into v8/feature/10613-distributed-locks 2021-03-11 13:43:07 +01:00
Bjarke BergandGitHub 8cd41ab36a Merge pull request #9924 from umbraco/v8/feature/10613-distributed-locks
Change scope to only acquire distributed locks once in a scope chain.
2021-03-10 15:51:04 +01:00
Mads Rasmussen 4fc27e4e56 move content type tab validation to directive to support client side validation 2021-03-09 21:05:33 +01:00
Mads Rasmussen 4fbc7c5285 add validation marker to a tab when there is server side errors within it 2021-03-09 16:21:08 +01:00
Sebastiaan Janssen a997f0c1e5 Merge branch 'v8/dev' into v8/contrib
# Conflicts:
#	src/Umbraco.Web/Editors/BackOfficeServerVariables.cs
2021-03-09 15:02:46 +01:00
Sebastiaan Janssen 44e68543d4 Merge branch 'v8/8.12' into v8/dev 2021-03-09 14:56:26 +01:00
Sebastiaan Janssen e43ff6cff1 Merge branch 'v8/8.11' into v8/8.12 2021-03-09 14:55:50 +01:00
Sebastiaan Janssen 5582b09614 Merge branch 'v8/8.10' into v8/8.11 2021-03-09 14:55:25 +01:00
Sebastiaan Janssen 8f59bbc3b3 Merge branch 'v8/8.9' into v8/8.10 2021-03-09 14:55:05 +01:00
Sebastiaan Janssen c474f41b86 Merge branch 'v8/8.8' into v8/8.9 2021-03-09 14:54:31 +01:00
Sebastiaan Janssen 41283aead9 Fix wrong version reference 2021-03-09 14:54:13 +01:00
Sebastiaan Janssen 7dc95b55d3 Merge branch 'v8/8.11' into v8/8.12
# Conflicts:
#	src/Umbraco.Web/Services/IconService.cs
2021-03-09 14:51:54 +01:00
Sebastiaan Janssen edab3507ec Merge branch 'v8/8.10' into v8/8.11 2021-03-09 14:49:08 +01:00
Sebastiaan Janssen 1d3d83466c Merge branch 'v8/8.9' into v8/8.10 2021-03-09 14:48:22 +01:00
Sebastiaan Janssen 4481e90f10 Merge branch 'v8/8.8' into v8/8.9
# Conflicts:
#	src/Umbraco.Web.UI/Umbraco/Views/Default.cshtml
2021-03-09 14:33:01 +01:00
Kenn JacobsenandSebastiaan Janssen b7553e311a Cache the SVG icons serverside to boost performance (#9200)
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
(cherry picked from commit 8e01ac30d6)

# Conflicts:
#	src/Umbraco.Web.UI/Umbraco/Views/Default.cshtml
#	src/Umbraco.Web/Services/IconService.cs
2021-03-09 14:22:22 +01:00
ChadandSebastiaan Janssen 16573446db Fixes #9615 - Upgrade to Htmlsanitizer v5 (#9856) 2021-03-09 13:54:45 +01:00
Mads Rasmussen b1c4ba1449 Merge branch 'v8/dev' into v8/prototype/doctype-tabs 2021-03-09 13:36:37 +01:00
8e01ac30d6 Cache the SVG icons serverside to boost performance (#9200)
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-03-09 12:58:10 +01:00
Mole adf504c20c Fix IncrementRequestedWriteLock 2021-03-09 09:33:34 +01:00
b554aa9484 Apply suggestions from code review
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-03-09 08:22:16 +01:00
Mole 6898fd2784 Only lock once when decrementing 2021-03-09 08:19:40 +01:00
Mads Rasmussen d7608f514e update sort order on drag and drop 2021-03-08 21:25:01 +01:00
745014a4c3 User manager related updates (#9935)
* Only allow not-admins to assign groups they have themselves

* Only admins is allowed to change password of other admins

* Fixed issue with deep clone of UserGroup. The Allowed sections was not cloned. This resulted in the allowed sections of the object stored in cache was updated, everytime we changed the allowed sections on an object cloned from the cache. Even if we did not save it.

* Only Admins are allowed to add sections to a user group, that they don't have access to themselves

* Align backend code with UI. User managers that is are not admin, can only assign the same groups new users, that they have themselves.

* Make existingGroupAliases and empty array when creating a new user

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2021-03-08 13:26:52 +01:00
Sebastiaan Janssen 4916c64848 Merge branch 'v8/dev' into v8/contrib 2021-03-08 12:29:14 +01:00
Sebastiaan Janssen 4a8a73f03d Merge branch 'v8/8.12' into v8/dev 2021-03-08 12:28:55 +01:00
Sebastiaan Janssen 49435708a5 Merge branch 'v8/8.11' into v8/8.12 2021-03-08 12:28:21 +01:00
Sebastiaan Janssen 8b04c32dff Merge branch 'v8/8.10' into v8/8.11 2021-03-08 12:27:42 +01:00
Lars-Erik AabechandSebastiaan Janssen fc447bb101 Should allow grid editors to use hash based settings (#9837)
* Should allow grid editors to use hash based settings

* Swap to using vm in grid config controller, as well as showing button when there's map settings

* Included keys for styles in empty state check for grid settings

* converted the code into more AngularJS performant code

* Remove rogue change to grid.editors.config

* use watchCollection instead

Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
(cherry picked from commit 008827f785)
2021-03-08 12:27:06 +01:00
008827f785 Should allow grid editors to use hash based settings (#9837)
* Should allow grid editors to use hash based settings

* Swap to using vm in grid config controller, as well as showing button when there's map settings

* Included keys for styles in empty state check for grid settings

* converted the code into more AngularJS performant code

* Remove rogue change to grid.editors.config

* use watchCollection instead

Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-03-08 12:23:03 +01:00
Sebastiaan Janssen 64105be274 Merge branch 'v8/dev' into v8/contrib 2021-03-08 10:09:08 +01:00
Sebastiaan Janssen b59026ae5c Merge branch 'v8/8.12' into v8/dev 2021-03-08 10:08:36 +01:00
Sebastiaan Janssen c36a2bced6 Merge branch 'v8/8.11' into v8/8.12 2021-03-08 10:08:01 +01:00
Sebastiaan Janssen 0386a311d7 Merge branch 'v8/8.10' into v8/8.11 2021-03-08 10:07:40 +01:00
Sebastiaan Janssen 5825aa5dee Merge branch 'v8/8.9' into v8/8.10 2021-03-08 10:07:08 +01:00
Sebastiaan Janssen ac41c5451e Merge branch 'v8/8.8' into v8/8.9 2021-03-08 10:06:37 +01:00
Niels LyngsøandSebastiaan Janssen cef1a73a2e no need to prevent or stop propagation on this. (#9933)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
(cherry picked from commit af65810048)
2021-03-08 10:05:46 +01:00
af65810048 no need to prevent or stop propagation on this. (#9933)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-03-08 09:44:33 +01:00
b770bdb93e Make properties full width in small infinite editors (#9812)
* Make properties in small infinite editors full width

* bump specificity

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-03-07 09:39:48 +10:00
Ronald BarendseandNathan Woulfe 678434a561 Remove orderBy filter for languages/variants 2021-03-07 09:09:41 +10:00
4f823093f3 9940: Make sure that ordering is correct (#9944)
* 9940: Make sure that ordering is correct

* 9940: Removed unnecessary ordering

* replace i with umb-icon directive

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-03-07 08:35:41 +10:00
Mads Rasmussen 35653bd8d5 remove unused code 2021-03-05 16:06:15 +01:00
Mads Rasmussen 2863930a17 add todo 2021-03-05 16:04:26 +01:00
Mads Rasmussen b403a2bee4 remove fieldsets and add tabs to model instead 2021-03-05 16:03:39 +01:00
Mads Rasmussen 751b5ab859 make tabs droppable 2021-03-05 09:54:24 +01:00
Mads Rasmussen 992b23939c add tab sort input 2021-03-04 15:48:08 +01:00
Mads Rasmussen 1915009c33 clean up sorting options a bit with default options 2021-03-04 15:31:55 +01:00
Mads Rasmussen c77ab4735b use other view model for easier sorting 2021-03-04 15:24:44 +01:00
Sebastiaan Janssen 475f7e6c3b Bump version to 8.12.0 2021-03-04 09:40:23 +01:00
Sebastiaan Janssen 7d0b5ecd14 Merge branch 'v8/dev' into v8/contrib 2021-03-03 17:57:00 +01:00
Sebastiaan Janssen e75178e8a6 Merge branch 'v8/8.12' into v8/dev 2021-03-03 17:56:32 +01:00
Sebastiaan Janssen c82f379dd9 Merge branch 'v8/8.11' into v8/8.12 2021-03-03 16:35:53 +01:00
Sebastiaan Janssen 8e759d2dfe Merge branch 'v8/8.10' into v8/8.11 2021-03-03 16:35:28 +01:00
Sebastiaan Janssen c10ed3693d Merge branch 'v8/8.9' into v8/8.10 2021-03-03 16:34:58 +01:00
Sebastiaan Janssen 62ac5434ff Merge branch 'v8/8.8' into v8/8.9 2021-03-03 16:34:02 +01:00
Sebastiaan Janssen 5d8eed3eac Merge branch 'v8/8.7' into v8/8.8 2021-03-03 16:33:43 +01:00
Sebastiaan Janssen cf3bef8017 Merge branch 'v8/8.6' into v8/8.7 2021-03-03 16:33:13 +01:00
Bjarke BergandSebastiaan Janssen 0b5bace2f7 Bugfix: Members not locked out after failed login attempts (#9921)
* https://github.com/umbraco/Umbraco-CMS/issues/9861
Added test that shows the error

* https://github.com/umbraco/Umbraco-CMS/issues/9861
Fixed test that shows the error. Caches needs to be active, otherwise it do not show the error

* https://github.com/umbraco/Umbraco-CMS/issues/9861
More fix of test that shows the error. Caches needs to be active, otherwise it do not show the error

* https://github.com/umbraco/Umbraco-CMS/issues/9861
Fix issue by raise event and thereby update caches.

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
(cherry picked from commit 1bac97e0b0)
2021-03-03 16:32:28 +01:00
1bac97e0b0 Bugfix: Members not locked out after failed login attempts (#9921)
* https://github.com/umbraco/Umbraco-CMS/issues/9861
Added test that shows the error

* https://github.com/umbraco/Umbraco-CMS/issues/9861
Fixed test that shows the error. Caches needs to be active, otherwise it do not show the error

* https://github.com/umbraco/Umbraco-CMS/issues/9861
More fix of test that shows the error. Caches needs to be active, otherwise it do not show the error

* https://github.com/umbraco/Umbraco-CMS/issues/9861
Fix issue by raise event and thereby update caches.

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-03-03 15:00:45 +01:00
Mads Rasmussen b91477ac88 pass in name for server validation 2021-03-03 13:53:16 +01:00
Mole f072387096 Wrap access to dictionaries in locks and make dictionaries internal readonly 2021-03-03 08:55:14 +01:00
Mole c01fab97b8 Count requested locks in child scopes with the existing dictionaries.
This way we don't have to have a two dictionaries AND two lists.
2021-03-02 13:55:30 +01:00
Mole 8c99a8e8a7 Combine the two lock inner methods into one
And add a couple of more unit tests
2021-03-02 13:07:04 +01:00
Mole e75edbcaf0 Add more tests. 2021-03-02 10:53:55 +01:00
Mole 65f2c5ee70 Bit of cleaning in Scope 2021-03-02 08:48:09 +01:00
Mole 37f6e007ba Merge remote-tracking branch 'origin/v8/dev' into v8/feature/10613-distributed-locks 2021-03-02 08:13:42 +01:00
Shannon DeminickandGitHub 52b670973d The Value() method for IPublishedContent was not working with the defaultValue parameter (#9888)
* The Value() method for IPublishedContent was not working with the defaultValue parameter

* Update src/Umbraco.Web/PublishedContentExtensions.cs

* Update src/Umbraco.Web/PublishedPropertyExtension.cs

* Update src/Umbraco.Web/PublishedPropertyExtension.cs

* Update src/Umbraco.Web/PublishedPropertyExtension.cs
2021-03-02 01:23:26 +01:00
Mole 400b436d98 Fir stab/POC
This still need ALOT of work, but is just an attempt to get my head around things.
2021-03-01 16:06:16 +01:00
Sebastiaan Janssen ece7008ce7 Merge branch 'v8/dev' into v8/contrib 2021-03-01 16:06:12 +01:00
Sebastiaan Janssen dafca1486a Merge branch 'v8/8.12' into v8/dev 2021-03-01 16:05:25 +01:00
Sebastiaan Janssen 03b6f1ba7f Merge branch 'v8/8.11' into v8/8.12 2021-03-01 16:04:49 +01:00
Sebastiaan Janssen 22dee4e8d7 Merge branch 'v8/8.10' into v8/8.11 2021-03-01 16:04:13 +01:00
Sebastiaan Janssen aaa8b0b4b2 Merge branch 'v8/8.9' into v8/8.10 2021-03-01 16:03:42 +01:00
Sebastiaan Janssen 7bc220b4b5 Merge branch 'v8/8.8' into v8/8.9 2021-03-01 16:03:18 +01:00
Sebastiaan Janssen d5ee6c828d Merge branch 'v8/8.7' into v8/8.8 2021-03-01 16:02:37 +01:00
Sebastiaan Janssen d4da9bdcb5 Merge branch 'v8/8.6' into v8/8.7 2021-03-01 16:02:11 +01:00
Bjarke BergandSebastiaan Janssen 8004c8dfd3 Merge pull request #9441 from umbraco/v8/bugfix/explicit-scope-examine
Ensure there's explicit scopes used for all service access in the Examine indexing logic

(cherry picked from commit 3e7f912fcd)
2021-03-01 15:55:36 +01:00
Sebastiaan Janssen e848e396af Don't auto focus on the third menu item 2021-03-01 13:20:58 +01:00
ShannonandBjarke Berg 7bb18f1cc3 Fixes the Sql server SET LOCK_TIMEOUT call which was missing a space. 2021-03-01 13:16:32 +01:00
Bjarke BergandGitHub 7625857a14 Merge pull request #9870 from umbraco/v8/bugfix/ensure-custom-claims
Keep custom claims that are flowed during security stamp validation
2021-03-01 11:57:53 +01:00
Patrick de MooijandMichael Latouche 187db95368 9826: Make sure to set mculture after switching sections 2021-02-27 20:26:04 +01:00
Mads Rasmussen 7031dbdce3 add keyboard shortcut to add tab 2021-02-26 10:49:30 +01:00
Mads Rasmussen 2de64e3ca3 add demo label 2021-02-26 10:36:41 +01:00
Mads Rasmussen 6174914d58 add a temp id to groups 2021-02-26 09:05:21 +01:00
Patrick de MooijandMichael Latouche 3139eb310e 9842: Fix for defaultConfig not working without prevalues 2021-02-26 00:22:50 +01:00
Mads Rasmussen 13a548aedb add new init property after a property has been added 2021-02-25 16:25:27 +01:00
Mads Rasmussen 258d8b98fc add server val field as prop 2021-02-25 16:20:25 +01:00
Mads Rasmussen 5c334243e8 add validation messages to tabs 2021-02-25 15:50:04 +01:00
Mads Rasmussen 1f16f0f3f6 only allow change tab title when it is active 2021-02-25 14:33:40 +01:00
Mads Rasmussen 43540a0ab1 allow adding properties to a group before title is added 2021-02-25 14:10:09 +01:00
Mads Rasmussen 8f7d9a3067 translude label to group placeholder 2021-02-25 13:48:13 +01:00
Mads Rasmussen cc962b4b90 wire up edit and delete on content-type-property component 2021-02-25 13:35:13 +01:00
Mads Rasmussen 9182d64e5f logic for remove fieldset 2021-02-25 10:40:33 +01:00
Mads Rasmussen d8bdb5cfb4 adjust padding on tabs 2021-02-25 10:05:43 +01:00
Mads Rasmussen 8864a3d8f4 fix property and fieldset filters 2021-02-25 10:05:30 +01:00
Mads Rasmussen 810dc0ee0a wire up content type group component 2021-02-25 10:04:58 +01:00
Mads Rasmussen 02e4c784cb wire up property placeholder component 2021-02-25 10:04:23 +01:00
Anders BjernerandNathan Woulfe 3e081f1039 Minor adjustments to ngdocs in editor.service.js 2021-02-25 08:33:10 +10:00
Patrick de MooijandNathan Woulfe c0842c7216 Don't show configuration header if there is none 2021-02-25 08:25:41 +10:00
patrickdemooij9andGitHub 6b3202e37b 9841: Don't focus on nested content node at page load (#9863)
Tested and can confirm that this fixes the focus issue.
2021-02-24 22:16:40 +00:00
Aaron SadlerandNathan Woulfe b019bc0ccf Fix for Grid placeholder breaking out of container 2021-02-25 08:11:28 +10:00
Mads Rasmussen 2470ee96ec init doc type with tabs prototype 2021-02-24 14:25:03 +01:00
Bjarke BergandGitHub 3e7f912fcd Merge pull request #9441 from umbraco/v8/bugfix/explicit-scope-examine
Ensure there's explicit scopes used for all service access in the Examine indexing logic
2021-02-24 08:17:49 +01:00
Bjarke BergandGitHub 4e1c25363d Merge pull request #9891 from umbraco/v8/bugfix/lock-timeout-fix
Fixes the Sql server SET LOCK_TIMEOUT call which was missing a space.
2021-02-24 07:32:27 +01:00
Shannon 82545e3185 Fixes the Sql server SET LOCK_TIMEOUT call which was missing a space. 2021-02-24 16:55:00 +11:00
Shannon 2bb8b02233 adds notes 2021-02-23 11:28:42 +11:00
Shannon 27d94f1ca6 removes testing timeout so it stays as it was 2021-02-23 11:25:27 +11:00
Shannon e3dc017d7e Keep custom claims that are flowed from autolinking
When auto linking with callbacks such as OnExternalLogin, custom claims can be added to the user which are flowed to the auth ticket/identity.
However, when the security stamp validator executes, the identity is re-created manually without any knowledge of those custom claims so
they are lost. This ensures that those custom claims flow through to the re-generated identity during the security stamp validation phase.
2021-02-23 10:41:00 +11:00
Sebastiaan Janssen 5ee98919bc Fix test where selector wasn't specific enough 2021-02-22 17:22:04 +01:00
Sebastiaan Janssen 2cedf435a9 Fix error where the SQL for setting the timeout was missing a crucial space. 2021-02-22 16:41:44 +01:00
ChadandSebastiaan Janssen 388e0283bc Fixes #9615 - Upgrade to Htmlsanitizer v5 (#9856)
(cherry picked from commit a6e1c2e901)
2021-02-22 09:56:13 +01:00
ChadandGitHub a6e1c2e901 Fixes #9615 - Upgrade to Htmlsanitizer v5 (#9856) 2021-02-22 09:53:53 +01:00
b8540ca128 Improve speed and reduce allocations by implementing logger overloads to avoid params [] allocation (#8917)
* Implement logger overloads to avoid params [] allocation

* Implement console logger ILogger

* Call correct signature

* Fix exceptions

* Introduce ILogger2

* fix logger reference

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-02-22 08:22:49 +10:00
mcl-szandGitHub 6eb260001d Ensure that upload file(s) in the MediaPicker is returned (#9367)
The onUploadComplete function returns the last files that are added to a mediafolder. While this works correct by default and in most situations, it doesn't work as expected when a diffrent sorting is used for Media-items. For example, we've added events to sort Media-items automatically by name alphabetically when they are created/uploaded to keep them better organised. 
By sorting the $scope.files array by the Id-property, it ensures that the function returns the uploaded files, instead of the last files in the folder.
2021-02-21 17:22:28 +01:00
Matthew-WiseandGitHub d85b6694fe Make models builder properties virtual to allow mocking (#9335) 2021-02-21 17:19:48 +01:00
6aaefe160b Decimal step size validation (#9334)
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
2021-02-21 17:17:10 +01:00
Callum WhyteandGitHub 40f0fbe939 Make abstract FileSystemWrapper class methods virtual (#9528) 2021-02-21 17:03:37 +01:00
Callum WhyteandGitHub 1235520325 Fix consistency in translation files for the term backoffice, Umbraco and several entity types (#9526) 2021-02-21 17:01:49 +01:00
Callum WhyteandGitHub 6cc005315d Unhelpful unsupported property message in Block Editor (#9525) 2021-02-21 16:57:23 +01:00
vidyesh-phasesandGitHub 033a245a21 Added UmbracoAuthorize attribute for BackOfficeController.ExternalLinkLoginCallback (#9500) 2021-02-21 16:52:43 +01:00
Malthe PetersenandGitHub 01e572b742 Change access level for TreeChanged event in Media and ContentService (#9487) 2021-02-21 16:51:03 +01:00
Rachel BreezeandGitHub c11d07dede Performance and accessibility improvements on the embed screen (#9810) 2021-02-21 13:00:48 +01:00
Bjarne FyrstenborgandGitHub 821cba5cd3 Make sorting in media consistent with sorting in content (#9756) 2021-02-21 12:52:42 +01:00
Bjarne FyrstenborgandGitHub 01991db257 Fixes #9625 - Searching icons for "box" returns all icons (#9848) 2021-02-21 12:42:20 +01:00
Bjarne FyrstenborgandGitHub 82701fbacd Fixes #9824 - Filtering in block picker doesn't work (#9831) 2021-02-21 12:37:51 +01:00
jesperweberandGitHub 1906ef0278 Updating danish translations (#9832) 2021-02-21 12:35:50 +01:00
Shannon DeminickandSebastiaan Janssen 64117921ea Fixes: After deleting a member, a reindex is attempted, which fails (#9807)
(cherry picked from commit fa49d6ed10)
2021-02-21 12:04:42 +01:00
Shannon DeminickandGitHub fa49d6ed10 Fixes: After deleting a member, a reindex is attempted, which fails (#9807) 2021-02-21 12:03:28 +01:00
Nathan WoulfeandGitHub f167f022c1 9769 - shift index increment before tryget to allow loop to continue if current iteration exits early (#9799) 2021-02-21 12:00:22 +01:00
patrickdemooij9andGitHub 43a77dc1e4 9569: Fix image cropper buttons (#9777) 2021-02-21 11:52:49 +01:00
Jakob BagterpandGitHub f4e1b46968 Fix: Verify that grid model is JSON object and not IPublishedContent (#9774) 2021-02-21 11:47:35 +01:00
Bjarne FyrstenborgandGitHub 63b417477b Replace tree icon in section picker with umb-icon component (#9760) 2021-02-21 11:42:06 +01:00
Çağatay UNCUandGitHub 616992332a Clean Code and use async methed (#9747) 2021-02-21 11:40:51 +01:00
Bjarne FyrstenborgandGitHub d966e89fd9 Block editor cleanup (#9664) 2021-02-21 11:36:18 +01:00
Andrey KarandashovandGitHub 46ace7dc22 added swedish translations for media picker (#9730) 2021-02-21 11:15:32 +01:00
rbottemaandGitHub e554ef0445 Fix some exceptions being logged the wrong way (#9693)
In these statements, the exception was passed as a log message parameter instead of as the exception. This meant the exception and including stack trace was not logged and thus lost.
2021-02-21 11:03:28 +01:00
ChadandSebastiaan Janssen ad0b70fc04 Speed up boot times and Improve Json (De)Serialization performance and reduce memory usage by reusing JsonSerializerSettings (#9670)
(cherry picked from commit 75ee3b9622)
2021-02-21 11:01:35 +01:00
ChadandGitHub 75ee3b9622 Speed up boot times and Improve Json (De)Serialization performance and reduce memory usage by reusing JsonSerializerSettings (#9670) 2021-02-21 11:00:00 +01:00
ChadandGitHub 596511b7a8 Merge branch 'v8/contrib' into v8/feature/examine-select 2021-02-21 22:43:52 +13:00
Sebastiaan Janssen f27a3be4e6 Fix unit tests after merging PR #9646 2021-02-21 10:30:17 +01:00
Bjarne FyrstenborgandGitHub 56938a7bdc Move relation type id and macro id to sidebar box (#9657) 2021-02-21 09:57:32 +01:00
Bjarne FyrstenborgandGitHub a466b49b2b Eye Dropper Color Picker (#9646) 2021-02-21 09:43:42 +01:00
Bjarne FyrstenborgandGitHub 4b387242f2 Ensure sub-view components are not self-closed elements (#9633) 2021-02-21 09:04:46 +01:00
Bjarne FyrstenborgandGitHub 451f3da8f4 Align datatype sidebar box properties (#9632) 2021-02-21 08:58:56 +01:00
nzdev 7d135899be load only once 2021-02-21 20:45:03 +13:00
Bjarne FyrstenborgandGitHub 5e4d326ec2 Use trim method as trim isn't a property (#9605) 2021-02-21 08:40:59 +01:00
Sebastiaan Janssen ea5da426e9 Bump version to 8.12.0-rc 2021-02-20 17:20:35 +01:00
Sebastiaan Janssen 980acafbeb Merge branch 'v8/contrib' into v8/dev 2021-02-20 17:17:27 +01:00
f064c074d1 Fix for Issue #135 - Variation < null >, < null> is not supported by the property type (#9524)
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
2021-02-20 14:37:11 +01:00
2c54adacf2 Add the ability to change the SQL Write Lock TimeOut (#9750)
Co-authored-by: Shannon <sdeminick@gmail.com>
2021-02-20 13:44:15 +01:00
Nathan WoulfeandGitHub b9b75b3794 Fix 'Do something else' button position in create dialog (#9846)
* fixes do something else button position in create dialog for doc types and media types

* adds type attribute to buttons
2021-02-20 02:30:20 +01:00
Sebastiaan Janssen 81f1c2e7d6 Update to latest Examine 2021-02-18 22:08:12 +01:00
Sebastiaan JanssenandGitHub 02963e7b29 Remove HtmlSanitizer (#9803) 2021-02-18 17:50:00 +01:00
Bjarke BergandGitHub 9c9734546c Merge pull request #9830 from umbraco/v8/bugfix/logging-for-9514
Fixes logging issue with Published Router and adds logging for Collision Detection
2021-02-17 08:26:33 +01:00
Shannon 16836951b4 Fixes logging for PublishedRouter 2021-02-17 12:45:59 +11:00
RobertandGitHub 9ffa1c9e0c Merge pull request #9818 from umbraco/v8/bugfix/added-more-extensions-to-disallowed-upload-files
Added more extensions to disallowed upload files
2021-02-16 14:46:35 +01:00
Warren BuckleyandGitHub 68ff157cf0 Ignores build.tmp folder at root as we don't want to analyze the tmp build output 2021-02-16 12:42:29 +00:00
Bjarke BergandGitHub 4aff5d38f8 Merge pull request #9778 from umbraco/v8/bugfix/broken-user-permissions-caches
Fixes issue with broken caches used for user permissions
2021-02-16 13:41:29 +01:00
Bjarke Berg e1b5212810 Fixed potential NullReferenceException when using obsolete ctor. 2021-02-16 12:56:07 +01:00
Bjarke Berg 176b10cf5d Added overloads to inject AppCaches + Fixed tests 2021-02-16 10:56:16 +01:00
nzdev bfa6bc43d8 Implement selectfields for examine 2021-02-16 20:56:44 +13:00
Shannon 2477951493 Adds better logging for URL collision detection. 2021-02-16 17:07:12 +11:00
Bjarne FyrstenborgandNathan Woulfe 97ad14c895 Update to noUiSlider v14.6.3 2021-02-16 08:50:35 +10:00
Jim LöfgrenandNathan Woulfe fc8dc76d80 Changed grid view labels and values to display: inline instead of display: inline-block to fix weird line break. 2021-02-16 08:07:11 +10:00
Bjarke Berg 7ebfd0e63c Added Xamlx extension to the DisallowedUploadFiles 2021-02-15 13:19:16 +01:00
e6462eded6 V8/feature/10273 variant sorting (#9797)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-02-15 11:15:45 +01:00
Shannon DeminickandGitHub a5e7f4b434 Merge pull request #9804 from nzdev/v8/feature/nucache-perf-sql-fixes
Guid was not being mapped to Key
2021-02-12 16:15:48 +11:00
ChadandGitHub 7c8432c679 Merge branch 'v8/feature/nucache-perf' into v8/feature/nucache-perf-sql-fixes 2021-02-12 18:08:53 +13:00
Shannon DeminickandGitHub bf9214a835 Merge pull request #9805 from nzdev/v8/feature/nucache-perf-sql-bulk-fixes
Support bulk insert of binary data into SQL CE
2021-02-12 14:39:49 +11:00
nzdev d425fbe05e rebuild nucache if serializer changes 2021-02-12 15:41:46 +13:00
nzdev 2a8d043445 support bulk insert for binary in sql ce. Fix column ordering in contentnudto. 2021-02-12 15:01:46 +13:00
nzdev fb93e15c10 fix key 2021-02-12 14:50:21 +13:00
Shannon 55a39613c1 Merge remote-tracking branch 'origin/v8/contrib' into v8/feature/nucache-perf 2021-02-11 12:38:06 +11:00
Shannon 08339d444e Merge branch 'v8/dev' into v8/feature/nucache-perf 2021-02-11 12:23:25 +11:00
230bf1052c V8/feature/super doctype create menu (#9174)
* WIP - added options from superdoctypecreate package

resolve merge conflict in create html file

* fiddling with the wording but it will never be perfect

* looks like ng-if should be ng-show

* Update data-elements for uniqueness (I'm not sure what these are used for!)

* pass 'iscomposition' on the querystring when choosing the 'composition' option from the menu

Why? - in the future we could hide the 'Compositions...' button when choosing to create a composition

* Remove PostCreateCollection implementation now the Create Collection is removed in this PR from the DocType Create menu

resolve merge conflict in Remove PostCreateCollection implementation now the Create Collection is removed in this PR from the DocType Create menu

* Add translations

* Put back PostSave method. It's useful.

Co-authored-by: Kenn Jacobsen <post@kennjacobsen.dk>
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-02-11 09:25:38 +10:00
Jakob BagterpandMichael Latouche e9429cfe44 Separate remove button and label for settings and styles in Grid Layout
It's inconvenient that the click area for the remove button laps over the label of settings and styles in the Grid Layout property editor. Simply as the editor may remove the style/setting by accident – and especially since there isn't an undo option.

Known issue: Linebreak of long text labels doesn't appear pretty, but this is cosmetic and can be fixed.
2021-02-10 03:34:30 +01:00
nzdev 603b38bd6c implement lazy 2021-02-10 12:47:35 +13:00
Sebastiaan Janssen deb38d3f79 Clarification of the CoC 2021-02-09 14:42:55 +01:00
Sebastiaan Janssen 6694690a11 Duh forgot to save latest version 2021-02-09 13:20:32 +01:00
Sebastiaan Janssen 4a10c99717 Adds CoC enforcement document 2021-02-09 13:17:28 +01:00
Bjarke BergandGitHub 51986063dd Merge pull request #9780 from umbraco/v8/bugfix/fix-mini-profiler-content-apis
Fix mini profiler so that it actually profiles the Content APIs in the back office
2021-02-09 07:15:37 +01:00
Shannon 6b4f99394d Fix mini profiler so that it actually profiles the Content APIs in the back office 2021-02-09 15:30:39 +11:00
Shannon 3b3d55ca26 Fixes issue with broken caches used for user permissions
Calculating start nodes is expensive and this is supposed to be cached but the cache was not working.
2021-02-09 13:43:28 +11:00
Nathan WoulfeandGitHub f8de0fca8f 5596 allow editing alt text in grid (#9681)
* languages

* add service method for media crop details, might be useful elsewhere

* update UI to add buttons for changing image / editing existing

* update mediapicker controller to use named editor service method

* Update media.controller.js

undefined should be null, consistent use of arrow func

* move buttons to the top right - close to the grid toolbar, so more obvious
2021-02-09 02:43:59 +01:00
Daniël KnippersandGitHub fcd802ba47 V8/bugfix/9074 current urls segments (#9075) 2021-02-08 15:16:25 +01:00
Bjarne FyrstenborgandNathan Woulfe 3a9cc910a0 Add more constants for tree icons 2021-02-08 17:00:00 +10:00
Bjarne FyrstenborgandNathan Woulfe 044573d9f1 Use umb-icon component in tree item 2021-02-08 16:47:21 +10:00
5fc37dfeb4 Prevent overflow of searchresults with long urls (#9739)
* Prevent overflow of searchresults with long urls

Small css change to prevent overflow of searchresults with long url's

* fixes wrapping in node-picker search, stop icon shrinking

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-02-08 16:32:54 +10:00
Bjarne FyrstenborgandNathan Woulfe eb9c4e4d82 Document onChange in umbPagination 2021-02-08 10:13:03 +10:00
a76924f196 Stop using .length !== 0 when its not jQuery (#9715)
* stop using .length !== 0 as its causing errors.

* revert to only change native find()

Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-02-08 10:10:46 +10:00
Niels LyngsøandNathan Woulfe 2d4984d434 check for ´err´ 2021-02-08 10:01:11 +10:00
06e5d07650 Fix eventService memory leaks (#9752)
* fix leak by unbinding event from $rootscope

* destroy more events

* $scope unavailable

* no need to destroy in services as they are singletons

Co-authored-by: nzdev <nzdev@github.com>
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-02-08 09:56:56 +10:00
Bjarne FyrstenborgandGitHub 55124fff81 Update icons in umb-tree-search-results component (#9757)
* Avoid use of ng-if

* Green class is not necessary

* Ensure button element use full width

* Left align text inside button element
2021-02-07 02:50:20 +01:00
nzdev 094029134d Bugfix app key 2021-02-07 00:06:32 +13:00
nzdev 3202fe445b Benchmark 2021-02-06 23:26:13 +13:00
nzdev e7baa08788 Improve getAllStoredValues. 2021-02-06 23:17:15 +13:00
nzdev 5edc7b8362 Merge branch 'v8/contrib' of https://github.com/umbraco/Umbraco-CMS into v8/bugfix/localizedtextservice-memory 2021-02-06 21:59:34 +13:00
nzdev 3dd84fa6ff bugfix 2021-02-06 21:57:48 +13:00
nzdev 9de4db358a Merge remote-tracking branch 'umbraco/v8/8.11' into v8/bugfix/localizedtextservice-memory 2021-02-06 21:38:17 +13:00
Sebastiaan JanssenandGitHub 37402c5ba4 Add the ability to change the SQL Write Lock TimeOut (#9744)
* Add the ability to change the SQL Write Lock TimeOut

* Needed to add a default setting to to the settings for tests
2021-02-02 15:17:59 +00:00
Nathan WoulfeandMichael Latouche 63cf3a489d fix history box label, destructure localization response 2021-02-02 02:27:05 +01:00
mcl-szandGitHub 4f3191fabe Fix for applying searchResultFormatter on found searchresults (#9738)
* Fix for applying searchResultFormatter on found searchresults

We found out that when the searchbox in the linkpicker is used, the URL of a page is not being shown anymore since Umbraco 8.7 and later. This is because of the searchResultFormatter wasn't applied correct.

* Changed ES6 arrow syntax as with the other functions.

Changed ES6 arrow syntax as with the other functions.

* Changed single qoutes to double qoutes for type
2021-02-02 09:33:31 +10:00
Niels Lyngsø 3185a285d9 Correcting merge 2021-02-01 11:56:51 +01:00
Niels Lyngsø 352f49f15e Merge remote-tracking branch 'origin/v8/dev' into v8/bugfix/always-ignorer-validation-when-saving
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/directives/components/content/edit.controller.js
2021-02-01 11:40:32 +01:00
Bjarne FyrstenborgandNathan Woulfe 6e1c29232a Hide rollback button for content that hasn't been created yet 2021-02-01 09:48:07 +10:00
Mike ChambersandGitHub 3404f47cfe Update umb-tree-item.less (#9718)
* Update umb-tree-item.less

Icon sizing inconsistencies in tree

* Update umb-tree-item.less

* Revert "Update umb-tree-item.less"

This reverts commit 4729c39837.

* Revert "Update umb-tree-item.less"

This reverts commit a3d1136c9d.

* Flex-shrink on umb-tree-icon not umb-tree-item-icon
2021-02-01 09:26:09 +10:00
Sebastiaan Janssen 820b04faec Merge branch 'v8/dev' into v8/contrib 2021-01-28 16:10:52 +01:00
Sebastiaan Janssen febb15445a Merge branch 'v8/8.11' into v8/dev 2021-01-28 16:09:09 +01:00
Sebastiaan Janssen e62cef6151 Revert "Fixes wrong dependency in nuspec file"
This reverts commit 8642b61449.
2021-01-28 12:05:19 +01:00
Sebastiaan Janssen 2999a48a59 Bump version to 8.11.1 2021-01-28 11:48:32 +01:00
Sebastiaan Janssen abb469a404 Revert "Updated NPoco from 3.9.4 -> 4.0.2 (#9061)"
This reverts commit d9c6584d90.
2021-01-28 11:47:10 +01:00
Shannon 0688de7767 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/nucache-perf 2021-01-28 15:00:19 +11:00
Shannon 91830e5553 Adds error checking 2021-01-28 14:42:02 +11:00
Shannon 5a80b30289 Fixes SQL (oops), wasn't appending the joins 2021-01-28 14:28:09 +11:00
Shannon 32f88dba95 removes CompressedStorageAttribute, makes IPropertyCacheCompressionOptions which can be defined in DI to configure what properties can be compressed in memory and new IReadOnlyContentBase to provide some context to the IPropertyCacheCompressionOptions 2021-01-28 13:50:18 +11:00
Bjarne FyrstenborgandGitHub 7297bd5838 Adjust minimum width of main content (#9656)
* Adjust minimum width of main content

* Change min-width a bit further.
2021-01-28 09:33:25 +10:00
SteveVaneeckhoutandNathan Woulfe a40769de41 Add ellipsis to the Sort action in Content and Media 2021-01-28 07:44:47 +10:00
Poornima NayarandGitHub 1c65662c5f Replaced <i> with umb-icon directive in languages overview (#9557)
* replaced <i> with umb-icon directive in languages overview

* removed aria-hidden
2021-01-28 07:41:58 +10:00
Shannon 4bfba2eeba adds some notes 2021-01-27 15:31:40 +11:00
Shannon 57708960f0 reverts change for IsDecompressed 2021-01-27 15:16:22 +11:00
Shannon 1a92fdcca8 Merge branch 'nzdev-v8/feature/more-serialization' into v8/feature/nucache-perf 2021-01-27 15:13:53 +11:00
Shannon 0b057d0b3f Merge branch 'v8/feature/more-serialization' of https://github.com/nzdev/Umbraco-CMS into nzdev-v8/feature/more-serialization
# Conflicts:
#	src/Umbraco.Web/PublishedCache/NuCache/DataSource/LazyCompressedString.cs
2021-01-27 15:13:36 +11:00
Shannon 9200c46cd0 Ensure LazyCompressedString doesn't decompress when debugging 2021-01-27 15:11:16 +11:00
Lars G. SehestedandGitHub 935a8792e6 Fix typos in Danish translation (#9702)
Fixes couple of typos in the Danish translations
2021-01-26 21:16:45 +01:00
3cbae5e2fe Update da.xml (#9660)
* Update da.xml

Found som missing translations

* Update src/Umbraco.Web.UI/Umbraco/config/lang/da.xml

Co-authored-by: Anders Bjerner <abjerner@skybrud.dk>

* Update src/Umbraco.Web.UI/Umbraco/config/lang/da.xml

* Update da.xml

Co-authored-by: Anders Bjerner <abjerner@skybrud.dk>
2021-01-26 21:03:14 +01:00
Sebastiaan Janssen fe2c80fc2b Fix character encoding issues 2021-01-25 09:57:13 +01:00
Sebastiaan Janssen 061655182c Updated code of conduct 2021-01-25 09:27:16 +01:00
Shannon 0cb4952338 Don't keep re-creating serializer settings on deserialize 2021-01-25 15:56:01 +11:00
Shannon 808e58b60f fixes up inconsistencies 2021-01-22 16:14:25 +11:00
ChadandGitHub 0bd4dced0b Improve performance and reduce memory use and reduce array allocations by reusing char[] (#9166)
* Reduce array allocations by reusing char[]

* don't hide .Equals()

* Reduce memory use by reducing array allocations

* Revert "Reduce memory use by reducing array allocations"

This reverts commit faf6b60234.

* reuse char[] for string.split() to avoid params [] allocation
2021-01-22 12:02:25 +10:00
Shannon c5bd53770a fixes sql template 2021-01-22 01:13:03 +11:00
Shannon e01f8319f6 Updates the new nodedto index to include 2 cols as the key and update the includes, this is required for more optimal querying for nucache and others. 2021-01-22 01:12:26 +11:00
Shannon eec81a3890 updates sql usage in DatabaseDataSource 2021-01-22 00:15:07 +11:00
Shannon 4a400b125b Fixes merge issues and updates npoco to latest 4.x 2021-01-22 00:14:37 +11:00
Shannon DeminickandGitHub 382197c0a7 Merge pull request #9268 from nzdev/v8/feature/nucache-perf-count-query-optimization
Optimize content and media count queries when paging
2021-01-21 23:01:29 +11:00
Shannon 4c31fd176b Merge branch 'v8/dev' into v8/feature/nucache-perf
# Conflicts:
#	src/Umbraco.Core/Constants-SqlTemplates.cs
2021-01-21 22:49:33 +11:00
Shannon DeminickandGitHub 335c6b17b9 Merge pull request #9669 from nzdev/v8/bugfix/nullableint-umbracohelper
Minor optimisation by passing int instead of int? to Umbraco.Content()
2021-01-21 22:07:42 +11:00
e0f00a8754 Added missing alt attributes to the images on the login screen and in avatars (#9597)
* Added missing alt text for login and avatar

* Added localisation for the avatar copy

* update alt avatar tag issue + translation

Co-authored-by: Michael <michael@crossingpaths.be>
2021-01-21 02:21:31 +01:00
Niels Lyngsø 97d20baecb skipValidation for content save 2021-01-20 15:30:41 +01:00
Sebastiaan Janssen f10616013f Merge branch 'v8/dev' into v8/contrib 2021-01-20 15:08:23 +01:00
Sebastiaan Janssen 3028159ac0 Merge branch 'v8/8.11' into v8/dev 2021-01-20 15:08:07 +01:00
Sebastiaan Janssen f48b88e84f Merge branch 'v8/8.10' into v8/8.11 2021-01-20 15:07:14 +01:00
Sebastiaan Janssen ef96b47899 Merge branch 'v8/8.9' into v8/8.10 2021-01-20 15:05:42 +01:00
Sebastiaan Janssen 092683ef7b Merge branch 'v8/8.8' into v8/8.9 2021-01-20 15:04:08 +01:00
Mads RasmussenandSebastiaan Janssen 0c9b4565f1 updates the css to support items with long titles
(cherry picked from commit 8e64fe54b1)
2021-01-20 15:03:06 +01:00
Mads RasmussenandSebastiaan Janssen 8e64fe54b1 updates the css to support items with long titles 2021-01-20 15:01:06 +01:00
Sebastiaan Janssen ed3e0b0f6f Merge branch 'v8/dev' into v8/contrib 2021-01-20 14:49:59 +01:00
Sebastiaan Janssen c0e91679c3 Merge branch 'v8/8.11' into v8/dev 2021-01-20 14:49:01 +01:00
Sebastiaan Janssen ee02e34f64 Merge branch 'v8/8.10' into v8/8.11 2021-01-20 14:48:08 +01:00
Sebastiaan Janssen bfde020d4f Merge branch 'v8/8.9' into v8/8.10 2021-01-20 14:47:26 +01:00
Sebastiaan Janssen 2c037f604d Merge branch 'v8/8.8' into v8/8.9 2021-01-20 14:46:20 +01:00
Sebastiaan Janssen 908dbb1454 Merge branch 'v8/8.7' into v8/8.8
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/directives/components/content/edit.controller.js
#	src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js
2021-01-20 14:42:22 +01:00
Niels LyngsøandSebastiaan Janssen 52e8da2ff2 Call rebindCallback on errors as well (#9690)
(cherry picked from commit da0c82aabd)
2021-01-20 14:28:37 +01:00
Niels LyngsøandGitHub da0c82aabd Call rebindCallback on errors as well (#9690) 2021-01-20 14:26:40 +01:00
Niels LyngsøandSebastiaan Janssen bc8f8366c2 Call rebindCallback on errors as well (#9688)
(cherry picked from commit 6d712b0d16)

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/directives/components/content/edit.controller.js
#	src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js
2021-01-20 14:17:02 +01:00
Niels LyngsøandGitHub 6d712b0d16 Call rebindCallback on errors as well (#9688) 2021-01-20 14:11:12 +01:00
Sebastiaan Janssen 1c22ce9de0 Merge branch 'v8/dev' into v8/contrib 2021-01-20 11:31:28 +01:00
Sebastiaan Janssen 2a46bd9d59 Merge branch 'v8/8.11' into v8/dev 2021-01-20 11:30:35 +01:00
Sebastiaan Janssen 120dbd358e Bump version to 8.11.0 2021-01-20 11:30:07 +01:00
Sebastiaan Janssen 724d4d1e20 Merge branch 'v8/8.10' into v8/8.11
# Conflicts:
#	src/SolutionInfo.cs
2021-01-20 11:29:47 +01:00
Sebastiaan Janssen ae30a8db91 Bump version to 8.10.2 2021-01-20 11:29:04 +01:00
Sebastiaan Janssen 251c5d08ef Merge branch 'v8/8.9' into v8/8.10
# Conflicts:
#	src/SolutionInfo.cs
2021-01-20 11:28:31 +01:00
Sebastiaan Janssen e913c2720c Bump version to 8.9.2 2021-01-20 11:27:40 +01:00
Sebastiaan Janssen 7d229bc5a9 Merge branch 'v8/8.8' into v8/8.9
# Conflicts:
#	src/SolutionInfo.cs
2021-01-20 11:27:10 +01:00
Sebastiaan Janssen cda81ae9be Bump version to 8.8.3 2021-01-20 11:26:14 +01:00
Sebastiaan Janssen 435695e2c3 Merge branch 'v8/8.7' into v8/8.8
# Conflicts:
#	src/SolutionInfo.cs
2021-01-20 11:25:29 +01:00
Sebastiaan Janssen 0b3256c4fe Bump version to 8.7.2 2021-01-20 11:24:28 +01:00
Sebastiaan Janssen 59e27c4850 Merge branch 'v8/8.6' into v8/8.7
# Conflicts:
#	src/SolutionInfo.cs
2021-01-20 11:24:02 +01:00
Bjarne FyrstenborgandSebastiaan Janssen b44a3e4280 Inject missing localization service
(cherry picked from commit c501ef0b68)
2021-01-20 11:19:37 +01:00
Sebastiaan Janssen e18bda50a1 Bump version to 8.6.7 2021-01-20 11:18:18 +01:00
Sebastiaan Janssen 0744b38fe4 Fixes umbraco/Umbraco-CMS#9244
Log a warning instead of throwing an error so existing code doesn't fail
2021-01-20 11:16:28 +01:00
Mads RasmussenandSebastiaan Janssen 704fad92e5 Fixes: 9360: Nested validation freezes browser (#9677)
Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
(cherry picked from commit b75a237162)
2021-01-20 11:09:14 +01:00
Niels LyngsøandSebastiaan Janssen b6558cf734 empty value should also enable in order to stay backwards compatible.
(cherry picked from commit 2321fbfcab)
2021-01-20 11:06:03 +01:00
Niels LyngsøandSebastiaan Janssen 2321fbfcab empty value should also enable in order to stay backwards compatible. 2021-01-20 11:00:55 +01:00
b75a237162 Fixes: 9360: Nested validation freezes browser (#9677)
Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
2021-01-20 10:04:54 +01:00
andreymkarandashovandNathan Woulfe 877640e600 up swedish lang config 2021-01-20 09:17:39 +10:00
14961e670d Improvements to validation and accessibility of relationship create view (#9154)
* Improved validation on save for relationships and also added support for accesibilty

* Moved the localisation into the radiobutton and added support for localisation using lavel-key in the UmbRadioButtonController

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-01-20 09:12:46 +10:00
Bjarne FyrstenborgandNathan Woulfe c501ef0b68 Inject missing localization service 2021-01-20 09:06:29 +10:00
9601dead7b V8: Angular Divorce: isFunction (#7861)
* Bye bye angular.isFunction & use Utilities.isFunction

* Utilities.js is not available on first load - replace isFunction detection with underscore equivalent

* found a stray isFunction

Co-authored-by: Kenn Jacobsen <post@kennjacobsen.dk>
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-01-20 08:40:21 +10:00
0822f0cbe5 V8: Angular Divorce: equals (#7860)
* Bye bye angular.equals & use Utilities.equals which is still using angular.equals under the hood for now

* Update umbvariantcontenteditors.directive.js

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-01-20 08:27:28 +10:00
Sebastiaan Janssen dcc832476f Merge branch 'v8/dev' into v8/contrib 2021-01-19 17:41:06 +01:00
Sebastiaan Janssen 159e1dfc6f Merge branch 'v8/8.11' into v8/dev 2021-01-19 17:40:21 +01:00
Sebastiaan Janssen a04af69181 Merge branch 'v8/8.10' into v8/8.11 2021-01-19 17:31:07 +01:00
NikandSebastiaan Janssen 6a8c2a0a55 [AMEND] Updated the redirect URL Repository to search for entries wit… (#9653)
Co-authored-by: Nik Rimington <nrimington@spindogs.com>
(cherry picked from commit aa5470a801)
2021-01-19 17:30:00 +01:00
aa5470a801 [AMEND] Updated the redirect URL Repository to search for entries wit… (#9653)
Co-authored-by: Nik Rimington <nrimington@spindogs.com>
2021-01-19 17:29:13 +01:00
Bjarne FyrstenborgandSebastiaan Janssen b1eebdd598 Add back icon name in class attribute to work again with font icons
(cherry picked from commit c1ebfc58cf)
2021-01-19 17:18:49 +01:00
Bjarne FyrstenborgandSebastiaan Janssen c1ebfc58cf Add back icon name in class attribute to work again with font icons 2021-01-19 17:18:14 +01:00
Shannon DeminickandGitHub 9f78427caf Merge pull request #9531 from umbraco/v8/feature/unattended-upgrade
Add support for unattended upgrades (and custom boot failed error page)
2021-01-18 15:36:15 +11:00
Shannon c5642fa513 change logging to profile loggin 2021-01-18 15:33:14 +11:00
nzdev 264259164e corrected comparer. 2021-01-17 22:07:35 +13:00
nzdev 2c2ffc671c Add back in check for empty alias. 2021-01-17 22:02:01 +13:00
nzdev befa789d23 Additional benchmarks 2021-01-17 21:56:40 +13:00
nzdev 69e8ee087e Remove debug code, set comparer StringComparer.InvariantCultureIgnoreCase 2021-01-17 21:38:52 +13:00
nzdev dd11122609 Huge improvement in speed and memory allocations for localized text service. 2021-01-17 21:33:35 +13:00
nzdev 5c5d0dad91 Pass int to Umbraco.Content instead of int? given we know _contentId has value. 2021-01-17 14:12:47 +13:00
Rasmus John Pedersen 9851c308f5 Add custom error page for BootFailedException 2021-01-15 09:25:16 +01:00
Rasmus John Pedersen 5efc1817d6 Add unattended upgrade support 2021-01-15 09:17:37 +01:00
Sebastiaan Janssen 72c6ffea52 Merge branch 'v8/8.11' into v8/dev 2021-01-13 17:03:23 +01:00
Sebastiaan Janssen 23a50df3a5 Merge branch 'v8/8.10' into v8/8.11 2021-01-13 17:02:54 +01:00
Sebastiaan Janssen 46faf32c9e Merge branch 'v8/8.9' into v8/8.10 2021-01-13 17:02:29 +01:00
Warren BuckleyandSebastiaan Janssen 86504d69d3 Merge pull request #9644 from umbraco/v8/bug/9432-checkboxes-on-doctype-compositions
V8/bug/9432: Backoffice UI - checkboxes on doctype compositions uncheck after selecting an item

(cherry picked from commit 0d7a683c60)
2021-01-13 16:54:26 +01:00
Sebastiaan Janssen e8b8723f51 Merge branch 'v8/dev' into v8/contrib 2021-01-13 16:51:29 +01:00
Sebastiaan Janssen e696aea1fc Merge branch 'v8/8.11' into v8/dev 2021-01-13 16:50:54 +01:00
Sebastiaan Janssen 062829dc76 Merge branch 'v8/dev' of https://github.com/umbraco/Umbraco-CMS into v8/dev 2021-01-13 16:50:45 +01:00
Sebastiaan Janssen 1842f766ae Merge branch 'v8/8.10' into v8/8.11 2021-01-13 16:50:02 +01:00
Sebastiaan Janssen 7cbc09ba89 Merge branch 'v8/8.9' into v8/8.10
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/less/components/umb-nested-content.less
2021-01-13 16:49:33 +01:00
Sebastiaan Janssen 29979a55a0 Merge branch 'v8/8.8' into v8/8.9 2021-01-13 16:40:10 +01:00
Sebastiaan Janssen 2fd85c58b5 Merge branch 'v8/8.7' into v8/8.8 2021-01-13 16:38:47 +01:00
Callum WhyteandSebastiaan Janssen 4dd554172b Nested content UI fixes (#9384)
* Fixing spacing of nested content header + icon

* Removing border from single Nested Content properties

* fix overlapping icon on nested content with multiple items

Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
(cherry picked from commit 0fdd599596)

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/less/components/umb-nested-content.less
2021-01-13 16:37:09 +01:00
0fdd599596 Nested content UI fixes (#9384)
* Fixing spacing of nested content header + icon

* Removing border from single Nested Content properties

* fix overlapping icon on nested content with multiple items

Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
2021-01-13 15:11:50 +01:00
Bjarne FyrstenborgandOwain Williams 16cd19ed9a Fix styling of search icon in search filter 2021-01-13 13:58:54 +00:00
Bjarne FyrstenborgandNathan Woulfe 1ccd3e6ec1 Fix issue with button didn't do anything 2021-01-13 22:10:11 +10:00
1d6d4aec56 ngDocs for contentresource (#9570)
* ngDocs for contentresource

* Update content.resource.js

typo: paramater => parameter

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-01-13 21:58:19 +10:00
Warren BuckleyandGitHub 0d7a683c60 Merge pull request #9644 from umbraco/v8/bug/9432-checkboxes-on-doctype-compositions
V8/bug/9432: Backoffice UI - checkboxes on doctype compositions uncheck after selecting an item
2021-01-13 09:08:52 +00:00
Bjarne FyrstenborgandNathan Woulfe 2398c40720 Replace jQuery trim() using vanilla JS 2021-01-13 09:22:01 +10:00
David BrendelandNathan Woulfe 143d2e7e30 Check if urls is null
Check if node.urls is null and set scope.currentUrls to null and return
2021-01-13 09:17:04 +10:00
Mads Rasmussen f203a69278 move loading spinner to the selected item 2021-01-12 16:17:54 +01:00
Mads Rasmussen 7a73e24ecd fixes Backoffice UI - checkboxes on doctype compositions uncheck after selecting an item #9432 2021-01-12 14:13:09 +01:00
Sebastiaan Janssen f93e9e2fe0 Merge branch 'v8/dev' into v8/contrib 2021-01-12 13:54:53 +01:00
Sebastiaan Janssen b838940dbc Merge branch 'v8/8.11' into v8/dev 2021-01-12 13:54:13 +01:00
Sebastiaan Janssen cec4a8db8c Merge branch 'v8/8.10' into v8/8.11 2021-01-12 13:52:13 +01:00
Sebastiaan Janssen 542483fb18 Merge branch 'v8/8.9' into v8/8.10 2021-01-12 13:51:36 +01:00
Mads RasmussenandSebastiaan Janssen 3d9f765e01 changes search term model from primitive
(cherry picked from commit 8a65a0f92b)
2021-01-12 13:49:39 +01:00
Mads RasmussenandSebastiaan Janssen 8a65a0f92b changes search term model from primitive 2021-01-12 13:45:39 +01:00
Sebastiaan Janssen 2b4be86fa6 Merge branch 'v8/dev' into v8/contrib 2021-01-12 13:07:44 +01:00
Sebastiaan Janssen f0d6238e01 Merge branch 'v8/8.11' into v8/dev 2021-01-12 13:06:45 +01:00
Sebastiaan Janssen fb5aeb2d8e Merge branch 'v8/8.10' into v8/8.11 2021-01-12 13:02:51 +01:00
Sebastiaan Janssen a01bb67a4d Merge branch 'v8/8.9' into v8/8.10 2021-01-12 13:00:18 +01:00
Sebastiaan Janssen 870609f633 Merge branch 'v8/8.8' into v8/8.9 2021-01-12 12:57:29 +01:00
Sebastiaan Janssen 907fd9fa23 Merge branch 'v8/8.7' into v8/8.8 2021-01-12 12:54:12 +01:00
Sebastiaan Janssen cfe5028dd0 Merge branch 'v8/8.6' into v8/8.7 2021-01-12 12:51:56 +01:00
Bjarke BergandSebastiaan Janssen 0f2db02289 Merge pull request #9640 from umbraco/v8/bugfix/memory-leak-9348
Fixes a memory leak caused by deep cloning

(cherry picked from commit 824349ae0d)
2021-01-12 12:41:01 +01:00
Bjarke BergandGitHub 824349ae0d Merge pull request #9640 from umbraco/v8/bugfix/memory-leak-9348
Fixes a memory leak caused by deep cloning
2021-01-12 11:46:29 +01:00
Bjarke BergandGitHub cbf30e5397 Update src/Umbraco.Core/Models/PropertyTypeCollection.cs 2021-01-12 10:03:23 +01:00
Shannon f388c7406d fixing virtual event issue 2021-01-12 15:38:18 +11:00
Shannon 4a3525ece3 Fixes a memory leak caused by deep cloning
There was a memory leak with PublicAccessEntry during even unassignment which was not clearing the correct handler.
This goes a step further and adds a new ClearCollectionChangedEvents method for all observable collections used in umbraco
which allows fully clearing ALL event handlers instead of having to track specific ones. This will ensure there are no
unintended memory leaks in case end-users have assigned event handlers to the collection changed event which would
not be unassigned during deep cloning.
2021-01-12 13:41:50 +11:00
a62a96dd92 Allow use of infinite editors in list views (#9026)
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-01-12 09:12:24 +10:00
Sebastiaan Janssen 8642b61449 Fixes wrong dependency in nuspec file
Updates NPoco to the latest v4 version
2021-01-11 13:19:18 +01:00
Sebastiaan Janssen 5a6374086c Merge branch 'v8/dev' into v8/contrib 2021-01-11 12:23:09 +01:00
Sebastiaan Janssen 94b1c63cb3 Merge branch 'v8/8.11' into v8/dev 2021-01-11 12:22:31 +01:00
Sebastiaan Janssen dbfa5e591e Merge branch 'v8/8.10' into v8/8.11 2021-01-11 12:21:37 +01:00
Sebastiaan Janssen 85d84967e5 Add LabelOnTop to the test 2021-01-11 12:21:06 +01:00
Sebastiaan Janssen 0602bc39f4 Merge branch 'v8/8.9' into v8/8.10 2021-01-11 12:20:18 +01:00
Sebastiaan Janssen 7324ad2875 Merge branch 'v8/8.8' into v8/8.9 2021-01-11 12:17:25 +01:00
Sebastiaan Janssen 6d13cbec8b Merge branch 'v8/8.7' into v8/8.8 2021-01-11 12:12:21 +01:00
Sebastiaan Janssen 406a665252 Merge branch 'v8/8.6' into v8/8.7 2021-01-11 12:08:33 +01:00
Sebastiaan Janssen 667dec454a Fix unit tests 2021-01-11 12:08:08 +01:00
Sebastiaan Janssen 8dbcb8df16 Revert "Removed icon font classes from umb-icon implementations (#9255)"
This reverts commit 7a71bc5410.
2021-01-11 11:40:02 +01:00
Sebastiaan Janssen c10c61b1b6 Revert "Fix legacy icons no longer displaying after changes in #9255"
This reverts commit 1b95282c17.
2021-01-11 11:39:48 +01:00
Sebastiaan Janssen 08bba71ef0 Merge branch 'v8/8.10' into v8/8.11 2021-01-11 11:37:03 +01:00
Sebastiaan Janssen 51a6995b7f Merge branch 'v8/8.9' into v8/8.10 2021-01-11 11:36:21 +01:00
Sebastiaan Janssen ffcc958f58 Merge branch 'v8/8.8' into v8/8.9 2021-01-11 11:35:38 +01:00
Sebastiaan Janssen 12e8dfd4c7 Merge branch 'v8/8.7' into v8/8.8 2021-01-11 11:35:13 +01:00
Sebastiaan Janssen e249c4f68d Merge branch 'v8/8.6' into v8/8.7 2021-01-11 11:34:44 +01:00
Warren BuckleyandSebastiaan Janssen 3914be43b8 Merge pull request #9629 from umbraco/v8/bugfix/4637-variation-deleting-content
V8: Fix bug where allowing culture variation would delete content from element types #7471
(cherry picked from commit 463bc46675)
2021-01-11 11:32:11 +01:00
Warren BuckleyandGitHub 463bc46675 Merge pull request #9629 from umbraco/v8/bugfix/4637-variation-deleting-content
V8: Fix bug where allowing culture variation would delete content from element types #7471
2021-01-11 09:58:45 +00:00
Sebastiaan Janssen 1b95282c17 Fix legacy icons no longer displaying after changes in #9255
(cherry picked from commit f8692590d0)
2021-01-11 10:28:40 +01:00
Sebastiaan Janssen f8692590d0 Fix legacy icons no longer displaying after changes in #9255 2021-01-11 10:25:43 +01:00
Sebastiaan Janssen 0ee80bf88c Bump version to 8.11.0-rc 2021-01-08 15:47:54 +01:00
Mole e243162ade Add unit test for the bug 2021-01-08 15:44:55 +01:00
Sebastiaan Janssen ca5c56dccd Merge branch 'v8/8.10' into v8/dev
# Conflicts:
#	src/Umbraco.Web.UI/config/umbracoSettings.config
2021-01-08 15:43:45 +01:00
Sebastiaan Janssen e246dea29e Merge branch 'v8/8.9' into v8/8.10 2021-01-08 15:42:04 +01:00
Sebastiaan Janssen 93d281289a Merge branch 'v8/8.8' into v8/8.9 2021-01-08 15:41:26 +01:00
Sebastiaan Janssen e3dc1b42dd As per https://github.com/umbraco/Umbraco-CMS/pull/9613 - allowing the style tag in v4 of HtmlSanitizer is insecure, we can't upgrade to v5 yet so this is the temporary fix for the problem
(cherry picked from commit a9fdaaceb0)
2021-01-08 15:40:32 +01:00
Sebastiaan Janssen a9fdaaceb0 As per https://github.com/umbraco/Umbraco-CMS/pull/9613 - allowing the style tag in v4 of HtmlSanitizer is insecure, we can't upgrade to v5 yet so this is the temporary fix for the problem 2021-01-08 15:35:46 +01:00
Martin Humlund ClausenandGitHub d9c6584d90 Updated NPoco from 3.9.4 -> 4.0.2 (#9061) 2021-01-08 15:32:09 +01:00
Sebastiaan Janssen 967485f4e1 Merge branch 'v8/contrib' into v8/dev
# Conflicts:
#	src/Umbraco.Core/Runtime/SqlMainDomLock.cs
2021-01-08 15:18:03 +01:00
Mole 20868f3cfe Check composition property with oldContentTypeVariation 2021-01-08 14:58:01 +01:00
Shannon DeminickandGitHub 74e7ddb45f Merge pull request #9482 from umbraco/v8/feature/unattended-install
Add support for unattended installs
2021-01-07 19:19:52 +11:00
Shannon fce13e23e9 Fixes test, adds null checks 2021-01-07 17:51:03 +11:00
Shannon 9e3d1836f0 fix build 2021-01-06 14:29:41 +11:00
Shannon 083b5d2611 Fixes issue with SqlMainDomLock during install, obsolete InstallEmptyDatabase, ensures installation can occur with/without the umbraco version 2021-01-05 16:27:42 +11:00
Sebastiaan Janssen b0afd3b862 Bump version to 8.10.1 2021-01-04 13:31:41 +01:00
Nathan WoulfeandSebastiaan Janssen ecf061229f Update edit.html 2021-01-04 10:56:52 +01:00
Poornima NayarandJoe Glombek e220baf00c Added ngDocs for contenttyperesource 2020-12-28 11:34:48 +00:00
Ronald BarendseandGitHub 0abd229928 Fix, update and extend Range model (#9032)
* Update Range documentation comments and use expression-bodied methods

* Implement IEquatable<Range<T>> and override Equals and GetHashCode

* Add Range formatting methods

* Use invariant culture in ToString

* Add RangeTests

* update ToString()
2020-12-24 02:06:29 +01:00
Shannon d6d197b159 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/nucache-perf 2020-12-23 14:11:14 +11:00
Bjarke BergandGitHub 97cdfc302c Merge pull request #9485 from umbraco/v8/feature/update-cypress
Update cypress
2020-12-18 15:42:06 +01:00
Bjarke Berg 3f0f5c1449 Fixed tests and update testhelper 2020-12-18 12:23:44 +01:00
BatJanandMichael Latouche c6b444e055 Replace old search markup with shiny umb-search-filter directive 2020-12-17 02:03:30 +01:00
Bjarne FyrstenborgandNathan Woulfe b4ef93e1b4 Use ace xml mode for package actions 2020-12-17 09:27:41 +10:00
Poornima NayarandNathan Woulfe 37aa00dc4a Created ngDocs for modelsBuilderManagementResource 2020-12-17 09:03:57 +10:00
Poornima NayarandNathan Woulfe 7e15c6fd78 Updated ngDocs for elementTypeResource 2020-12-17 09:02:23 +10:00
Rasmus John Pedersen d7801a86ff Allow installing when connection string is configured
Disable unattended installs by default and enable install empty
database.

Fix create user step by adding back the HasSomeNonDefaultUser check, if
the check is missing the installer will skip creating the configured user
since the second time NewInstallStep.RequiresExecution is called, Umbraco
has been installed and it would return false and the user would never be
created.
2020-12-16 11:03:23 +01:00
Sebastiaan Janssen cb049144ee Register the TelemetryIdentifierStep 2020-12-16 09:57:43 +01:00
Warren BuckleyandGitHub 36cb34285c Telemetry revisited - Move from App_Data file to UmbracoSettings.config (#9554) 2020-12-16 08:50:59 +01:00
Shannon 025bcf2f4c notes 2020-12-16 17:50:34 +11:00
nzdev 697206188f use property 2020-12-16 19:23:14 +13:00
nzdev f8bb53ac03 changed isdecompressed to a property. Changed serializerbase to internal 2020-12-16 19:20:24 +13:00
Shannon c3656d3e58 Adds notes fixes tests 2020-12-16 16:52:43 +11:00
Shannon 78b563c79b Adds notes 2020-12-16 16:12:02 +11:00
Shannon 6b19dfe191 Fixing build 2020-12-16 15:45:10 +11:00
Shannon c62b3f4497 re-updates versions for db changes/migrations 2020-12-16 15:44:00 +11:00
Shannon 28b9b62781 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/nucache-perf
# Conflicts:
#	src/Umbraco.Core/Migrations/Upgrade/UmbracoPlan.cs
2020-12-16 15:26:57 +11:00
Shannon ea257adb5d fix sql arg type 2020-12-16 13:13:09 +11:00
Shannon 9269271649 Changes new relation repository Sql statements to use sql templates 2020-12-16 13:04:11 +11:00
Shannon DeminickandGitHub 6f1120b610 Merge pull request #9508 from nzdev/v8/feature/faster-relationship-delete-sql
Speed up deleting relationship by parent. (Speeds up publishing/ saving)
2020-12-16 12:28:27 +11:00
Shannon bbe2941d25 New ext methods to check if Umbraco db is installed, fixes issue with SqlMainDomLock when doing unattended installs, changes how we determine if Umbraco db is installed 2020-12-16 12:06:48 +11:00
Maikel VeenandMichael Latouche b2d2938760 Add overloaded method for RecurringTaskBase 2020-12-16 00:46:41 +01:00
Poornima NayarandNathan Woulfe 102ae0c402 Updated the UI docs for the authresouce 2020-12-16 09:46:03 +10:00
Bjarne FyrstenborgandNathan Woulfe 9bcfbf282b Temporary fix to ensure content wrapper is positioned 0px from left in section without tree 2020-12-16 09:38:54 +10:00
Rasmus John PedersenandOwain Williams 6a4045c87d Fix typo 2020-12-15 15:20:20 +00:00
Sebastiaan Janssen 03c6227bfe Merge branch 'v8/8.9' into v8/8.10 2020-12-15 14:26:44 +01:00
Matt DarbyandSebastiaan Janssen 015882daa2 Remove type as it defaults to button
(cherry picked from commit bc2faefb18)
2020-12-15 14:25:50 +01:00
Matt DarbyandSebastiaan Janssen 7b32aeb127 Change defaultButton type to "button"
(cherry picked from commit 7ddb52a34f)
2020-12-15 14:25:41 +01:00
Sebastiaan Janssen 92fd623de0 Merge branch 'v8/8.8' into v8/8.9 2020-12-15 14:25:17 +01:00
Sebastiaan Janssen 02d6011888 Merge branch 'v8/8.7' into v8/8.8 2020-12-15 14:23:33 +01:00
Sebastiaan Janssen 6d4990ad48 Merge branch 'v8/8.6' into v8/8.7 2020-12-15 14:22:57 +01:00
Bjarke BergandSebastiaan Janssen cd1120e062 Merge pull request #9408 from umbraco/v8/bugfix/task-scheduler-maindom-logging
Ensure that TaskScheduler.Default is used anywhere that ContinueWith is used, adds more debug logging to MainDom operations

(cherry picked from commit 9a1b456949)

# Conflicts:
#	src/Umbraco.Core/Runtime/SqlMainDomLock.cs
2020-12-15 14:14:30 +01:00
Matt DarbyandOwain Williams bc2faefb18 Remove type as it defaults to button 2020-12-15 10:39:01 +00:00
Matt DarbyandOwain Williams 7ddb52a34f Change defaultButton type to "button" 2020-12-15 10:39:01 +00:00
Warren BuckleyandGitHub 58a62d45d7 Merge pull request #9548 from umbraco/v8/bugfix/9545-spelling-mistake
Added missing Y
2020-12-15 09:00:48 +00:00
Niels Lyngsø cba3f3c6a9 added missing Y 2020-12-15 09:27:30 +01:00
Sebastiaan Janssen 5ff101d31c Merge branch 'v8/8.9' into v8/8.10
# Conflicts:
#	src/Umbraco.Core/Runtime/SqlMainDomLock.cs
2020-12-14 15:12:28 +01:00
Sebastiaan Janssen 58c6e655b3 Merge branch 'v8/8.8' into v8/8.9 2020-12-14 15:07:38 +01:00
Sebastiaan Janssen d5d7d31c08 Merge branch 'v8/8.7' into v8/8.8 2020-12-14 15:06:51 +01:00
Sebastiaan Janssen a141467bae Merge branch 'v8/8.6' into v8/8.7 2020-12-14 15:04:38 +01:00
Bjarke BergandGitHub 9c4dce564e Merge pull request #9543 from umbraco/v8/bugfix/sqlmaindom-server-terminated
SqlMainDomLock will stop listening if Sql Server connection terminates
2020-12-14 14:45:55 +01:00
Warren Buckley b2dac7947f Bump version to 8.10.0
.\build SetUmbracoVersion 8.10.0
2020-12-14 13:29:53 +00:00
Warren BuckleyandGitHub 3c610e7992 Merge pull request #9545 from umbraco/v7/bugfix/9484
Change dialog
2020-12-14 11:43:54 +00:00
Niels Lyngsø 734d33fe1c change dialog 2020-12-14 11:14:12 +01:00
Warren BuckleyandGitHub 289017a307 Merge pull request #9544 from umbraco/v7/bugfix/9493
fixes 9493
2020-12-14 09:23:12 +00:00
Niels Lyngsø 60dbfb66f7 changed wording 2020-12-14 10:21:23 +01:00
Shannon 348ae22d91 Fixing tests 2020-12-14 12:37:30 +11:00
Shannon 3927a8db67 Ensure we capture exceptions that occur when trying to create a transaction 2020-12-14 12:04:19 +11:00
fhatriforkandGitHub 00a5df7ac5 Update TextString.cshtml (#9535)
ReplaceLineBreaksForHtml is deprecated and the alternative ReplaceLineBreaks includes HtmlEncode.

This update will remove an error in Visual Studio
2020-12-13 01:05:54 +01:00
Ronald BarendseandGitHub 602980a9d6 Fix SQL parameters in GetNewChildSortOrder (#8961)
* Fix SQL parameters in GetNewChildSortOrder

* Update SQL template code formatting

* Update sortOrder calculation
2020-12-13 00:28:52 +01:00
Dave WoestenborghsandGitHub 4d74f57a81 V8 - remove console.log statements (#9533)
* #9516 removed console logging statements in macroparemeter picker

* #9516 Removed another console log statement

* Removed console log statement from view
2020-12-11 18:08:41 +00:00
Nathan WoulfeandGitHub 54fa2f42e9 remove unnecessary classnames/markup (#9098) 2020-12-11 02:24:51 +01:00
Warren BuckleyandGitHub e38e5d6577 V8: Angular Divorce: isUndefined (#7856)
* Bye bye angular.isUndefinied & hello Utilities.isUndefined

* Add utilities.js to lazyload initialise scripts

* Remove utilities.js as copied over client folder
2020-12-10 10:21:34 +10:00
7a71bc5410 Removed icon font classes from umb-icon implementations (#9255)
* Changed the name of the example class in the mark up as it looks like the icon and the class name may need to be the same in order for umb-icon to work

* Removed the font icon classes in the umb-icon directive calls

* updates to remove class="icon", tidy up alignment in schedule overlay

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2020-12-10 09:28:37 +10:00
cdd6513c16 Added char counter for dictionary items (#9194)
* Added char counter

* use single localize directive

Co-authored-by: David Brendel <info@davidbrendel.de>
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2020-12-10 09:13:35 +10:00
MrJackWilsonandNathan Woulfe 9514021ab7 Return true for each path that isn't protected. 2020-12-10 08:39:51 +10:00
patrickdemooij9andGitHub a664f082ee 9153: Only show the cultures of the node in preview (#9183)
* 9153: Only show the cultures of the node in preview

* 9153: Domain service is not needed
2020-12-10 08:08:47 +10:00
Büşra ParnellandNathan Woulfe 370b3b31ba Little tweak
Translated the word 'cheers' friendlier to Turkish :)
2020-12-10 07:43:58 +10:00
patrickdemooij9andGitHub 0a3a0f4f76 9078: Allow changing the login logo through umbracoSettings (#9083)
* 9078: Allow changing the login logo through umbracoSettings

* 9078: Add default login logo in code
2020-12-09 09:23:48 +01:00
Rasmus John Pedersen db634f7c28 Add unattended install support 2020-12-08 10:38:32 +01:00
Rowan BottemaandMichael Latouche f725991490 Don't log query result to avoid confusion
The query result will always be -1, as the result is the amount of rows affected, but that is not applicable in these create queries. This may cause confusion as devs may wonder why for example 'CreatedIndex' is -1. This also seemed to be the only place where we actually use the result of `database.Execute`.
2020-12-08 01:30:03 +01:00
nzdev ec364097f1 Revert use of sqltemplates. Use previous query for sqlce 2020-12-08 10:26:52 +13:00
nzdev 39b1de4a98 avoid capture class 2020-12-07 23:29:13 +13:00
nzdev 38f748c563 correct ordering of statements, use sqltemplates 2020-12-07 23:27:57 +13:00
nzdev 7bd331d97b Add from 2020-12-07 23:14:42 +13:00
nzdev 7d6e9a3d54 Speed up deleting relationship by parent. 2020-12-07 23:09:16 +13:00
Nathan WoulfeandMichael Latouche a31485932a toggle ng-hide class instead of using .hide() 2020-12-06 02:38:03 +01:00
Benjamin CarleskiandMichael Latouche e4e5e2d103 Get default culture comparable to the variant culture 2020-12-06 02:20:35 +01:00
Rachel BreezeandGitHub 0085554e84 When a user switches their own language the menu doesn't update to reflect the language change (#9203)
* Now prompts the user to reload their browser if they change their own language and also displays the response prompt in their language
2020-12-05 03:24:18 +01:00
vidyesh-local-VSandMichael Latouche 90d1e8546a Corrected branch name with latest 2020-12-05 02:18:25 +01:00
Bjarne FyrstenborgandGitHub 0b6752e115 Add rel="noopener" to anchor elements with target="_blank" (#9369)
* Add rel="noopener" to anchor elements with target="_blank"

* Add rel="noopener" to language files as well

* Fix link, link tp https and link to umbraco.com

* Add noreferrer value
2020-12-05 02:13:41 +01:00
be0ac5e3f3 Update Language keys for 'Public Access' to become 'Restrict Public Access' … (#9197)
* Update Language keys for 'Public Access' to become 'Restrict Access' on the action menu

* Updated to be Restrict Public Access - to edge our bets

* merge latest, update casing

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2020-12-05 09:46:37 +10:00
Rowan BottemaandNathan Woulfe a10477a72d Make sure external links are not attempted to be opened inside preview iframe 2020-12-05 09:32:27 +10:00
2d785af821 Use color picker component in block list editor configuration (#9056)
* Use color picker component in block list editor configuration

* Remove set color property

* Allow empty color

* Assign color value to properties

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2020-12-05 09:28:58 +10:00
f8cff2722d Package section: Edit view (#9054)
* Convert div to buttons, fix styling and fix missing brackets

* removes umb-icon ng-class attrs

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2020-12-05 09:12:38 +10:00
81e3798595 NestedContent DoctyperPicker view: Various a11y fixes (#9049)
* Add buttons and convert icons to use the umb-icon directive

* removes class attribute from umb-icon, fixes self-closing th elements (th is non-void)

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2020-12-05 09:00:35 +10:00
Kenn JacobsenandNathan Woulfe a655fba948 Add "remove all entries" property action to MNTP 2020-12-04 07:59:16 +10:00
Martin AmsinckandNathan Woulfe 43c00690b9 #9476 danish translations for addUpTo + danish translation for entriesShort + entriesExceed 2020-12-04 07:51:34 +10:00
Bjarne FyrstenborgandNathan Woulfe ef0aff0fea Update version umbColorPicker was introduced 2020-12-04 07:49:49 +10:00
Jack LawryandNathan Woulfe e772728c9d Fix typo in Upgrade message
Change recommmend to recommend
2020-12-04 07:48:49 +10:00
9e6b2f7449 Grid editors: Accessibility improvements (#9051)
* Change div and img with ng-click events to be buttons and add a label for the caption input field

* Change back to old way of inserting icon

* Fix semantics and adjust styling

* Fix a11y and semantics

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2020-12-03 09:42:39 +10:00
8d681f14c0 Search overlay: Improve accessibility (#9035)
* Ensure the "clear" button is tabable and add accessibility attributes and texts for the overlay

* Add sr-only texts and useful aria attributes

* Convert i to umb-icon and fix wrong values in aria attributes

* Add translation mappings

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2020-12-03 08:01:14 +10:00
b5ae399cf8 Contextmenu: Add focus lock (#9027)
* Move the wrapping div of the context-menu directive inside the directive instead

* Add focus lock, attributes and temporary hardcoded text description of the overlay

* Remove umb-auto-focus directive

* Add dictionary key for the visuallyhidden description

* Add tranlsation key for en-us

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2020-12-03 07:42:07 +10:00
Mole c2d38640ea Remove duplicate square bracket 2020-12-02 14:31:23 +01:00
Mole b6b17e4c9a Update cypress to 6.0.1 2020-12-02 13:11:17 +01:00
Mole cdd3905046 Add timeout to Create data type test 2020-12-02 10:10:48 +01:00
Warren Buckley 7ff0f9ee20 Bump version to 8.10.0-rc
.\build SetUmbracoVersion 8.10.0-rc
2020-11-30 13:27:33 +00:00
Warren BuckleyandGitHub 6b744b39cc Merge pull request #9370 from umbraco/v8/feature/anon-telemetry
Anonymous telemetry
2020-11-30 13:23:12 +00:00
Bjarke Berg 6d120322e5 Do not dispose the static httpClient, but the HttpRequestMessage 2020-11-30 13:35:55 +01:00
Warren Buckley ee89610559 Remove unused RuntimeState 2020-11-30 12:23:28 +00:00
Warren Buckley 04430976c1 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/anon-telemetry
# Conflicts:
#	src/Umbraco.Core/Migrations/Upgrade/UmbracoPlan.cs
2020-11-30 12:20:52 +00:00
Warren BuckleyandGitHub 39d66bae47 Merge pull request #8849 from umbraco/v8/feature/property-label-on-top
Feature: Property label on top
2020-11-30 11:55:55 +00:00
Warren BuckleyandGitHub 23a31f56e7 Merge pull request #9469 from umbraco/v8/bugfix/9466-dont-use-form-horizontal-on-membergroups
Review Remove this form-horizontal class from member groups info
2020-11-30 11:26:50 +00:00
Warren Buckley fa931416a4 Forgot to move the baseaddress set inside the usings 2020-11-30 10:34:10 +00:00
Warren Buckley 4de3c05e83 Wrap use of httpClient in a usings due to it being IDisposable 2020-11-30 10:33:07 +00:00
Warren Buckley 3e6830e173 Exit out of function but set to repeat if we are unable to read the file (perhaps a file lock) 2020-11-30 10:18:11 +00:00
Warren Buckley fc2ff2525d No need for the if null check as it will always be null in the ctor 2020-11-30 10:15:06 +00:00
Warren Buckley 5328268645 Uncomment #ifdef 2020-11-30 10:08:48 +00:00
Warren Buckley b29ed4c9c3 Set a low 1 second timeout, no need to be a BIG timeout on this request 2020-11-30 10:04:21 +00:00
Warren Buckley 1394387d43 Move the backgroundtask runner into Initialize method to follow same practise as SchedulerComponent 2020-11-30 09:18:13 +00:00
Warren Buckley f747e2a2dc Missing namespace from Bjarkes suggestion to move to DataMember 2020-11-30 09:17:39 +00:00
5dcb488d2c Update src/Umbraco.Web/Telemetry/ReportSiteTask.cs
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2020-11-30 09:12:27 +00:00
Warren Buckley c5afcf1c9c Move marker file into App_Data a folder that can never be served 2020-11-30 09:08:24 +00:00
Warren Buckley 36cd06b952 Add Debug logging and dont set type for ex as we are not using it 2020-11-30 09:05:38 +00:00
Warren Buckley 8a6db7f71f Uncomment out the DEBUG lines 2020-11-30 09:05:03 +00:00
Niels Lyngsø 855bef8c59 remove this class, should not have been added here. 2020-11-30 09:56:01 +01:00
SteveandGitHub 60a8d7725e V8/bugfix/fix dictionaries (#9328)
* Remove double keys and unexpected text

* Add Dutch translations

* Update Dutch translations for 8.9

* Second pass

* Add CDATA to sectionMandatoryDesc

* Third pass

* Add rel="noopener" to links

Authored-by: SteveVaneeckhout <SteveVaneeckhout@users.noreply.github.com>
2020-11-29 22:54:00 +01:00
Rasmus OlofssonandMichael Latouche bdf20dbcca Add Swedish translation for the member section. 2020-11-28 02:02:33 +01:00
Warren Buckley eeae4afe0b Merge remote-tracking branch 'origin/v8/dev' into v8/feature/property-label-on-top
# Conflicts:
#	src/Umbraco.Core/Migrations/Upgrade/UmbracoPlan.cs
2020-11-27 15:34:53 +00:00
Sebastiaan Janssen 862a7fdce6 Merge branch 'v8/contrib' into v8/dev 2020-11-27 14:04:55 +01:00
Matt BrailsfordandGitHub a6f5e48f43 Introduce content app helper (#9425) 2020-11-27 14:02:19 +01:00
b4c65fe12a Update src/Umbraco.Core/Migrations/Upgrade/V_8_10_0/AddPropertyTypeLabelOnTopColumn.cs
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2020-11-27 11:19:37 +00:00
Warren BuckleyandGitHub 7d3878842a Merge pull request #7560 from umbraco/v8/feature/ensure-umb-editor-is-within-viewport
keep umb-editor inside viewport width
2020-11-27 11:11:42 +00:00
Warren BuckleyandGitHub e41855b175 Merge pull request #7227 from umbraco/v8/feature/0000-remove-out-icon
V8/feature/0000 remove out icon
2020-11-27 10:28:52 +00:00
Niels Lyngsø 48d5682cab Merge remote-tracking branch 'origin/v8/dev' into v8/feature/0000-remove-out-icon
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/components/content/umb-content-node-info.html
#	src/Umbraco.Web.UI.Client/src/views/components/media/umb-media-node-info.html
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/urllist/urllist.html
2020-11-27 11:15:37 +01:00
Warren BuckleyandGitHub 46743506ad Merge pull request #7155 from umbraco/v8/feature/0000-NodeJS-minimum-version
set a minimum version requirement for node
2020-11-27 10:08:04 +00:00
Warren BuckleyandGitHub 2d1081c51e Merge pull request #7444 from umbraco/v8/feature/round-corners-in-media-picker
added round corners in umb-media-grid for media-picker
2020-11-27 10:06:56 +00:00
Niels Lyngsø 5bbf0d04d2 require node v.10 2020-11-27 11:04:07 +01:00
Niels Lyngsø d5b0080c51 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/0000-NodeJS-minimum-version
# Conflicts:
#	src/Umbraco.Web.UI.Client/package-lock.json
#	src/Umbraco.Web.UI.Client/package.json
2020-11-27 11:02:50 +01:00
Warren Buckley 643407d994 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/anon-telemetry 2020-11-27 09:48:36 +00:00
nzdev f09fcfbdd4 Fix serialization of decompressed lazy strings 2020-11-27 14:45:44 +13:00
nzdevandMichael Latouche 8d96c6e842 Add check for converted so .startsWith does not throw 2020-11-25 19:33:55 +01:00
Nathan WoulfeandMichael Latouche 3f776c32f4 Update icon.prevalues.controller.js 2020-11-24 09:05:42 +01:00
8262f25e20 Listview: Fix icon-picker a11y (#9050)
* Add proper button and fix icon

* split value to avoid binding icon color in icon attribute

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2020-11-24 17:19:23 +10:00
a9a4b0894a Use umb-icon in umb-node-preview (#9072)
* Use umb-icon in umb-node-preview

* Inherit icon size from umb-icon

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2020-11-24 16:53:08 +10:00
BatJanandNathan Woulfe fd09d4f319 Convert divs with ng-click to button and wrap texts in paragraphs 2020-11-24 16:02:08 +10:00
Kenn JacobsenandNathan Woulfe 1076e58cc7 Hide properyt actions for culture invariant properties 2020-11-24 15:55:46 +10:00
Rachel BreezeandGitHub 388123ff66 Follows the same pattern as create a relationship page title and clears the page title when creating a dictionary item (#9279) 2020-11-24 02:15:58 +01:00
Shannon 7eee09758e Ensure there's explicit scopes used for all service access in the Examine indexing logic 2020-11-24 09:49:58 +11:00
nzdev e8195bfff0 fix deserialization order 2020-11-24 10:10:38 +13:00
nzdev 95fe8bea23 Serialize more primitives 2020-11-24 10:09:27 +13:00
Warren BuckleyandGitHub 604e6f9abb Merge pull request #9322 from umbraco/v8/feature/AB9079-use-tree-for-ElementType-pickers
V8/feature/ab9079 use tree for element type pickers
2020-11-23 15:32:13 +00:00
Warren BuckleyandGitHub 9367c24738 Merge pull request #9275 from umbraco/v8/feature/8689-make-settings-and-layout-props-available-for-labels
Make index, settings and layout props available for labels
2020-11-23 12:42:55 +00:00
Niels Lyngsø e13b12a788 make index start at 1... 2020-11-23 13:13:04 +01:00
Sebastiaan Janssen 930b1c1a75 Run analysis for bug fixes & features 2020-11-23 11:47:25 +01:00
Sebastiaan Janssen 2b6b9b8c06 Keep getting complaints that there's no on in codeql-config.yml 2020-11-23 11:35:52 +01:00
Niels LyngsøandGitHub 14747df4e7 run JS unit test in development script (#9014) 2020-11-23 11:31:31 +01:00
Kenn JacobsenandSebastiaan Janssen b7d37f2279 Replace obsolete usages with injected services in UmbracoHelper 2020-11-23 10:47:15 +01:00
SteveandSebastiaan Janssen 7c20adef0e Track ng-repeat with id instead of label (#9340)
(cherry picked from commit 39c4dcdaaa)
2020-11-23 10:42:33 +01:00
SteveandGitHub 39c4dcdaaa Track ng-repeat with id instead of label (#9340) 2020-11-23 10:40:18 +01:00
nzdevandSebastiaan Janssen 32788a0a42 reduce array allocations 2020-11-23 10:36:46 +01:00
Niels Lyngsø c578be52ae appended $index to label vars 2020-11-23 10:30:02 +01:00
Sebastiaan Janssen b5546d074a Merge branch 'v8/contrib' into v8/dev 2020-11-23 10:19:14 +01:00
Bjarke BergandGitHub 9a1b456949 Merge pull request #9408 from umbraco/v8/bugfix/task-scheduler-maindom-logging
Ensure that TaskScheduler.Default is used anywhere that ContinueWith is used, adds more debug logging to MainDom operations
2020-11-23 07:43:24 +01:00
BatJanandNathan Woulfe c8d837bb97 Change div with ng-click to button and add fallback for dictionary item 2020-11-23 16:42:17 +10:00
Laura WeatherheadandNathan Woulfe ceaf1699d8 Update umb-button directive parameter usage to reflect accurate implementation 2020-11-23 16:37:37 +10:00
Bjarne FyrstenborgandGitHub 7fc3ec82bd Help drawer adjustments (#9090)
* Format document

* Ensure help drawer can be closed using esc key

* Add rel="noopener" for security reasons

* Remove additional whitespace
2020-11-23 16:36:12 +10:00
John KilmisterandGitHub 8b9585398e Issue 8353 - Fix of issue that caused small screens labels alignment (#9047)
* Issue 8353 - Fix of issue that caused on small screens labels to be right aligned dispite being on own line

* Issue 8353 Support smaller screens
2020-11-23 16:07:47 +10:00
Jan SkovgaardandGitHub 8549d1ac7a ContextDialog: Accessibility improvements (#9045)
* Add role and aria attributes as well as a screen reader only description

* Add translations to language files
2020-11-23 09:59:43 +10:00
patrickdemooij9andGitHub 98610b50d3 8838: Node Actions menu should be disabled on listview (#9021)
* 8838: Node Actions menu should be disabled on listview

* 8838: Set disable actions menu on event
2020-11-23 09:35:38 +10:00
BatJanandNathan Woulfe f3ec66be4c Various fixes in the view 2020-11-20 11:15:14 +10:00
Kenn JacobsenandNathan Woulfe c9bf1a0bc2 Add confirmation dialog to media picker "remove all entries" action 2020-11-20 10:52:47 +10:00
Sebastiaan Janssen 4e5b2e4b82 Fixes #6089
JsDiff.diffWords in Rollback freezes browser
2020-11-19 09:47:06 +01:00
Joe GlombekandGitHub d60f14708b Update new list of Core Collaborators in contributing docs (#9413)
* Update new list of Core Collaborators in contributing docs

* Fix spacing
2020-11-18 16:12:01 +00:00
02d8b3c339 Accessibility (keyboard navigation): The 'Content' drop down menu opens automatically when tabbing (#9325)
* Use umb-dropdown directive for Content dropdown

To allow keyboard toggling and automatic collapsing on click elsewhere

* Hide menu on blur

Co-authored-by: Joe Glombek <joe@rockdove.uk>
2020-11-18 15:14:48 +00:00
Kenn JacobsenandSebastiaan Janssen 353aaa46c7 Make Nested Content icons centered and same size as Block Editor 2020-11-18 11:57:26 +01:00
Tomas Foss RenaaandNathan Woulfe c88e2be2ac remove bottom offset 2020-11-18 13:09:38 +10:00
nzdev da3d509333 bug fix. 2020-11-18 14:41:03 +13:00
Shannon c2d9f5aa4e Ensure that TaskScheduler.Default is used anywhere that ContinueWith is used, adds more debug logging to MainDom operations 2020-11-18 12:33:13 +11:00
Matt DarbyandGitHub 8a1e281158 Remove double editorService.close() (#9301) 2020-11-18 01:20:04 +01:00
Kenn JacobsenandNathan Woulfe 8de2f4920a Do not show cryptic confirm dialog when editing group 2020-11-17 09:29:31 +10:00
Bjarne FyrstenborgandNathan Woulfe bb7e53434d Allow to close overlay via esc shortcut 2020-11-17 09:00:50 +10:00
Rachel BreezeandGitHub ee08542add Added missing documentation for content menu (#9201) 2020-11-17 08:50:07 +10:00
Laura WeatherheadandNathan Woulfe cc74be5a27 Fix mis-spelt "occurred" 2020-11-17 08:49:01 +10:00
BatJanandNathan Woulfe e783af3d19 Change comments to use allowed and disallowed 2020-11-17 08:47:36 +10:00
Callum WhyteandNathan Woulfe b8859f6cac Styling all code elements in backoffice UI docs 2020-11-17 08:03:43 +10:00
Adam WernerandNathan Woulfe ede9a18894 Documentation link updated - umbdrawer 2020-11-17 07:51:57 +10:00
Mücahit GENÇandGitHub 68997cd219 Turkish language has been arranged according to v8 (#9400)
* Update tr.xml

* Update tr.xml

* Updated "tr.xml"

* Update tr.xml
2020-11-17 07:49:52 +10:00
Rachel BreezeandGitHub a9f09308cf This PR sets the page title when editing and maintaining languages (#9312)
* Added support for setting the page title when maintaining languages

* Edit language is now part of the vm.labels grouping
2020-11-16 02:32:38 +01:00
Jan SkovgaardandGitHub 1bf49b6ba3 umb-control-group directive: Fix styling issue (#9069)
* Fix issue where label is offset 10px

* Undo change made by code editor
2020-11-16 09:54:58 +10:00
Matt DarbyandNathan Woulfe fc7f7295bf Change icon to check if selected 2020-11-16 09:24:46 +10:00
Anders BjernerandNathan Woulfe 8c7fa8159c Updated editor.service.js for consistency 2020-11-16 09:21:20 +10:00
Warren BuckleyandGitHub c413079159 Merge pull request #9383 from umbraco/v8/fix/codeql-scanning
Get CodeQL to only scan the relevant directories
2020-11-12 11:26:42 +00:00
Sebastiaan Janssen 333aaec1e3 Might fix running out of memory? 2020-11-12 11:52:45 +01:00
Sebastiaan Janssen 9c6b7a6578 Run analysis on pushes AND PRs to the contrib and dev branches 2020-11-12 11:42:37 +01:00
Sebastiaan Janssen f295b539a1 Adding a config file maybe? 2020-11-12 11:14:34 +01:00
Sebastiaan Janssen 285e51dd37 Should it be here then? 2020-11-12 10:55:50 +01:00
Sebastiaan Janssen 49c9330e28 Get CodeQL to only scan the relevant directories 2020-11-12 10:49:21 +01:00
Warren Buckley 59a03115ea Posting to service needed lowercase properties 2020-11-10 09:58:15 +00:00
Warren Buckley 191d86e27c Do not log that marker file exists already during the serval install boot cycles 2020-11-10 08:25:32 +00:00
Callum WhyteandJoe Glombek 1654bea562 Casting tree controllers to TreeControllerBase to support manually registered trees without attributes 2020-11-09 19:45:16 +00:00
Sebastiaan Janssen 05ef43d732 Disable CodeQL for now while we figure out why it doesn't work 2020-11-09 11:30:33 +01:00
ClausandGitHub 7701a0f745 Merge pull request #9361 from umbraco/v8/bug/logviewer-access
Limit access to logviewer endpoints to people with access to the settings section
2020-11-09 11:26:20 +01:00
Sebastiaan Janssen bd4c2cde61 D'oh.. don't push commented out code as used for testing.. 2020-11-09 10:30:45 +01:00
Sebastiaan Janssen efd9f71897 Limit access to logviewer endpoints to people with access to the settings section 2020-11-09 10:16:01 +01:00
Callum WhyteandLaura Weatherhead 620c11c38c Returning request response from downloadFile promise 2020-11-08 16:45:18 +00:00
Warren Buckley 69b3feb0ea Correct dev URL note the trailing slash 2020-11-05 12:17:46 +00:00
Warren Buckley 9185297484 Post to dev env 2020-11-05 11:55:30 +00:00
Warren Buckley a28f3475eb Only add something to the log when upgrading that the file is missing - during install it would loop over this component serveral times 2020-11-05 11:55:18 +00:00
Warren Buckley b1051a882d git ignore telemetry file when doing local dev 2020-11-05 11:52:50 +00:00
Warren Buckley 17249d226f Add new composer/component to add marker file only when clean install or an upgrade runtime state 2020-11-04 14:24:48 +00:00
Warren Buckley c93a5a5cd1 Remove as an upgrade migration step as new installs will never get the marker file 2020-11-04 14:07:56 +00:00
Sebastiaan Janssen f88144ae48 Merge branch 'v8/dev' into v8/contrib
# Conflicts:
#	src/Umbraco.Examine/ContentIndexPopulator.cs
2020-11-04 11:34:27 +01:00
Sebastiaan Janssen e42b8b20f4 Merge branch 'v8/8.9' into v8/dev
# Conflicts:
#	src/SolutionInfo.cs
2020-11-04 11:30:27 +01:00
Sebastiaan Janssen ca098e8a01 Merge branch 'v8/8.8' into v8/8.9 2020-11-04 11:27:28 +01:00
Sebastiaan Janssen 0608862da9 Revert "Adds icons from App_Plugins/**/Icons/*.svg (#8884)"
This reverts commit d7bf980f12.
2020-11-04 11:25:45 +01:00
Sebastiaan Janssen 466f59c8d4 Bump version to 8.9.1 2020-11-04 11:22:47 +01:00
Sebastiaan Janssen d7f10ff154 Merge branch 'v8/8.8' into v8/8.9 2020-11-04 11:21:03 +01:00
Sebastiaan Janssen 54ad4c2481 Bump version to 8.8.2 2020-11-04 11:19:32 +01:00
Sebastiaan Janssen cea8ac35b3 Merge branch 'v8/8.8.1' into v8/8.8 2020-11-04 11:12:15 +01:00
Sebastiaan Janssen aac35698a1 Merge branch 'v8/8.8' into v8/8.9 2020-11-04 10:07:04 +01:00
Sebastiaan Janssen bff6ded89d Merge branch 'v8/8.7' into v8/8.8 2020-11-04 09:27:02 +01:00
Sebastiaan Janssen d4fa37d6fb Merge branch 'v8/8.6' into v8/8.7 2020-11-04 09:25:33 +01:00
Warren BuckleyandGitHub dbee98bf02 Merge pull request #9258 from umbraco/v8/feature/AB8699-Support-blocks-in-clipboard-service
Support blocks in backoffice clipboard
2020-11-03 13:48:07 +00:00
Niels Lyngsø 67367fe111 display an error message if settings does not align. 2020-11-03 13:38:54 +01:00
Bjarke BergandSebastiaan Janssen 9cda7d1b5a Fix for https://github.com/umbraco/Umbraco-CMS/pull/9146 - We need to take language and segment into account
(cherry picked from commit 223b19cbd8)
2020-11-03 10:22:15 +01:00
Bjarke BergandSebastiaan Janssen 223b19cbd8 Fix for https://github.com/umbraco/Umbraco-CMS/pull/9146 - We need to take language and segment into account 2020-11-03 10:20:46 +01:00
Niels LyngsøandGitHub aa06051418 Update da.xml 2020-11-02 15:16:25 +01:00
Warren BuckleyandGitHub 9c820c7939 Update src/Umbraco.Web.UI.Client/src/common/services/blockeditormodelobject.service.js 2020-11-02 13:37:27 +00:00
Warren BuckleyandGitHub 3a41861aa0 Update src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/umbBlockListPropertyEditor.component.js 2020-11-02 13:34:34 +00:00
Warren BuckleyandGitHub 99441789d8 Update src/Umbraco.Web.UI.Client/src/common/services/clipboard.service.js 2020-11-02 13:30:02 +00:00
Warren BuckleyandGitHub 016f883ee3 Update src/Umbraco.Web.UI.Client/src/common/services/clipboard.service.js 2020-11-02 13:29:27 +00:00
Warren BuckleyandGitHub d39ca35e8b Merge pull request #9243 from umbraco/v8/feature/umbBlockCard-use-umb-outline
use umb-outline for umb-block-card
2020-11-02 12:17:33 +00:00
Warren BuckleyandGitHub 5c6702bd17 Merge pull request #9241 from umbraco/v8/bugfix/umbBlockCard-should-work-without-blockConfiguration
Make blockConfigModel optional
2020-11-02 12:06:18 +00:00
Niels Lyngsø e145a4cf1f implement widely on BlockList Prevalue Editor 2020-11-02 09:05:37 +01:00
Matt BrailsfordandGitHub f9b708b4cf Make RTE toolbar sticky (#9316) 2020-10-30 12:08:52 +00:00
BatJanandNathan Woulfe 79d94be148 Replace search with the umb-search-filter directive 2020-10-30 11:21:41 +10:00
Rachel BreezeandGitHub f41a132323 Now sets the culture of the page umbraco page based on the localisation selected on the profile (#9108) 2020-10-30 10:54:26 +10:00
Ronald BarendseandNathan Woulfe 1330da533c Remove legacy Instagram oEmbed provider 2020-10-30 10:51:36 +10:00
Søren KottalandNathan Woulfe 28bc93f100 scales the preview iframe to fit the viewport 2020-10-30 10:39:03 +10:00
Tim GeyssensandGitHub 0be2bb93ab Update NestedContentPropertyEditor.cs to fix 2 bugs (#9236)
* Update NestedContentPropertyEditor.cs

Make sure when trying to JsonConvert.DeserializeObject it is json...

* Update NestedContentPropertyEditor.cs

added null check
2020-10-29 11:34:51 +10:00
Niels Lyngsø 1f5c61fe67 New text as UI has changed 2020-10-28 14:20:18 +01:00
Niels Lyngsø 0a2393d48a use Tree for picking initial content Element Type 2020-10-28 14:20:05 +01:00
Niels Lyngsø b6df9b9b14 use not-allowed for filters 2020-10-28 14:19:42 +01:00
Niels Lyngsø 5375dbbe3a ability to add more actions 2020-10-28 14:19:16 +01:00
Niels Lyngsø 8d76028f7b Dim not-allowed tree items 2020-10-28 14:18:58 +01:00
e9e8a0354d [Issue 5277-145] accessibility - Language drop downs do not advise as drop… (#9265)
* [Issue 5277-145] resolved - Language drop downs do not advise as drop downs - screen readers

* reseolve code change request by @nathanwoulfe and set aria-jaspopup to true instead of binding to the property.

Co-authored-by: Justin Shearer <justin@proworks.com>
2020-10-28 12:19:55 +10:00
Daniel ShuyandNathan Woulfe 375817d63a Enable auto-focus for confirm button in umb-confirm 2020-10-28 12:16:46 +10:00
NikandGitHub 9a0746da84 Issue #8568 Add an override for GetMostRecentRedirectUrl to allow for culture being passed in (#9191) 2020-10-27 10:48:16 +00:00
Niels Lyngsø 78c415cf83 collect vars for label interpolator 2020-10-26 13:22:08 +01:00
patrickdemooij9andGitHub 5387651d9d 9176: Fix editing labels and added functionality to edit colors (#9177) 2020-10-26 10:22:32 +00:00
Laura WeatherheadandNathan Woulfe 2212ec723f Updated optional params on umb-button-ellipsis 2020-10-26 11:14:29 +10:00
Laura WeatherheadandNathan Woulfe 51895c73d0 Update usage guidance
- Reflect optional nature of callback
- Show actual property name to reference
2020-10-26 10:18:57 +10:00
Sebastiaan Janssen b63944b9ef Revert "Adds icons from App_Plugins/**/Icons/*.svg (#8884)"
This reverts commit d7bf980f12.
2020-10-25 09:59:44 +01:00
nzdev e3fd9b72c5 Optimize content and media count queries when paging 2020-10-24 17:06:28 +13:00
BatJanandSebastiaan Janssen 83fa1c2297 Convert a to button 2020-10-23 17:02:51 +02:00
Warren Buckley 8ac0122e20 Add migration to marker file & background reporter component to POST to telemetry service 2020-10-23 15:52:40 +01:00
Kenn JacobsenandSebastiaan Janssen d4e624e9fa Do not remove files from media editors when hitting enter 2020-10-23 16:24:15 +02:00
Poornima NayarandSebastiaan Janssen 11dcef9b48 Fix - user delete shows notifications twice 2020-10-23 16:17:27 +02:00
Niels Lyngsø cb902c4e08 Fail if settings elementType isnt supported + concept for inner-blocks + debounce for storage update 2020-10-23 15:08:27 +02:00
Sebastiaan Janssen 2d931877be Bump version to 8.8.1 2020-10-23 14:41:09 +02:00
Sebastiaan Janssen 5b9e2dbad8 Revert "umb-confirmation directive: move trashcan into directive and address accessibility issues (#8198)"
This reverts commit 1cd79d81af.

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/components/umb-confirm-action.html
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts.prevalues.html
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/multipletextbox/multipletextbox.html

(cherry picked from commit f9b49fc5f3)
(cherry picked from commit 22a1423324)
2020-10-22 15:08:06 +02:00
Niels Lyngsø 99e2990d07 Emit event if localStorage changes from another tab 2020-10-22 15:07:45 +02:00
Niels Lyngsø 310c8ec924 finish feature + clean up 2020-10-22 15:02:25 +02:00
Sebastiaan Janssen b989457716 Merge branch 'v8/8.8' into v8/dev 2020-10-22 14:36:37 +02:00
Sebastiaan Janssen a6fe82015e Merge branch 'v8/8.7' into v8/dev 2020-10-22 14:36:22 +02:00
Sebastiaan Janssen b1b540e687 Merge branch 'v8/8.6' into v8/dev 2020-10-22 14:36:10 +02:00
Sebastiaan Janssen ba6921ce6f Merge branch 'v8/8.7' into v8/8.8 2020-10-22 14:34:00 +02:00
Sebastiaan Janssen f3e37428ad Merge branch 'v8/8.6' into v8/8.7 2020-10-22 14:29:53 +02:00
Sebastiaan Janssen 9202550537 Remove unused usings 2020-10-22 14:25:57 +02:00
Sebastiaan Janssen 297671b631 Merge branch 'v8/8.8' into v8/dev
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Core/Packaging/PackageDataInstallation.cs
2020-10-22 14:21:25 +02:00
Sebastiaan Janssen afa754067b Merge branch 'v8/8.7' into v8/dev 2020-10-22 14:18:53 +02:00
Sebastiaan Janssen befa23190b Merge branch 'v8/8.6' into v8/dev
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Core/Persistence/Repositories/Implement/DocumentRepository.cs
#	src/Umbraco.Core/Persistence/Repositories/Implement/MediaRepository.cs
2020-10-22 14:18:21 +02:00
Sebastiaan Janssen e368607a4d Bump version to 8.8.1 2020-10-22 14:15:57 +02:00
Sebastiaan Janssen b69e65ab3b Merge branch 'v8/8.7' into v8/8.8
# Conflicts:
#	src/SolutionInfo.cs
2020-10-22 14:15:10 +02:00
Sebastiaan Janssen 3bb01e9418 Bump version to 8.7.1 2020-10-22 14:10:19 +02:00
Sebastiaan Janssen 2aefe899e4 Merge branch 'v8/8.6' into v8/8.7
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Core/Persistence/Repositories/Implement/DocumentRepository.cs
#	src/Umbraco.Core/Persistence/Repositories/Implement/MediaRepository.cs
2020-10-22 14:08:05 +02:00
Sebastiaan Janssen 843ea1d854 Bump version to 8.6.6 2020-10-22 13:56:15 +02:00
ShannonandSebastiaan Janssen 22a7f94921 Merge branch 'temp_8879' of https://github.com/dawoe/Umbraco-CMS into v8/contrib
(cherry picked from commit 069529e9e2)
2020-10-22 13:52:45 +02:00
ShannonandSebastiaan Janssen a6101ce499 Merge branch 'dawoe-temp_8879' into v8/contrib
(cherry picked from commit 35bf59dee4)
2020-10-22 13:52:10 +02:00
Sebastiaan Janssen 81cbe365f6 Revert "Revert "Revert "umb-confirmation directive: move trashcan into directive and address accessibility issues (#8198)"""
This reverts commit c903a01f15.
2020-10-22 12:33:45 +02:00
Sebastiaan Janssen f3af025c79 Revert "Takes the last commit from #9216 to make umb-confirm-action backwards compatible"
This reverts commit 174909d735.
2020-10-22 12:33:19 +02:00
Niels Lyngsø 3025fbd8b6 further progress, need to switch branch. 2020-10-22 11:16:37 +02:00
Sebastiaan Janssen 094897704c Need null checks for Keys in case packages had been created without keys before 2020-10-22 10:56:49 +02:00
Sebastiaan Janssen 174909d735 Takes the last commit from #9216 to make umb-confirm-action backwards compatible 2020-10-22 10:43:37 +02:00
Sebastiaan Janssen c903a01f15 Revert "Revert "umb-confirmation directive: move trashcan into directive and address accessibility issues (#8198)""
This reverts commit 22a1423324.
2020-10-22 09:53:02 +02:00
Niels LyngsøandSebastiaan Janssen f3aad86413 updates CSS selector to match latest
(cherry picked from commit dc6c72c136)
2020-10-22 09:47:33 +02:00
Niels LyngsøandSebastiaan Janssen dc6c72c136 updates CSS selector to match latest 2020-10-22 09:45:49 +02:00
Niels Lyngsø 24f07af0e1 ability to create from Block Data 2020-10-22 08:35:12 +02:00
Shannon 069529e9e2 Merge branch 'temp_8879' of https://github.com/dawoe/Umbraco-CMS into v8/contrib 2020-10-22 17:28:45 +11:00
Shannon DeminickandGitHub 88f9be8aa4 Merge pull request #9137 from umbraco/v8/bugfix/non-published-content-is-indexed
Non-published content indexed in ExternalIndex
2020-10-22 17:18:23 +11:00
Shannon 35bf59dee4 Merge branch 'dawoe-temp_8879' into v8/contrib 2020-10-22 17:16:05 +11:00
Dave Woestenborghs 323cdd1441 Optimized so valuesets are build once instead of per index 2020-10-22 08:12:03 +02:00
Shannon 0bf9ad0967 Merge branch 'temp_8879' of https://github.com/dawoe/Umbraco-CMS into dawoe-temp_8879 2020-10-22 14:17:18 +11:00
Patrick de MooijandNathan Woulfe 39367b83bb 9238: Fixed invalid multi url picker label 2020-10-22 09:35:56 +10:00
Warren BuckleyandSebastiaan Janssen f1724a68b2 When exporting package.xml it will now use the UDI/Key so we can reimport with the same key
(cherry picked from commit 28954afcad)
2020-10-21 21:04:16 +02:00
Warren BuckleyandSebastiaan Janssen 28954afcad When exporting package.xml it will now use the UDI/Key so we can reimport with the same key 2020-10-21 21:03:31 +02:00
Shannon DeminickandGitHub 657f1fcdc7 Fixes regression issue with property values being updated in content repositories (#9146) 2020-10-21 20:30:35 +02:00
Niels Lyngsø 6f3333fb4c Merge remote-tracking branch 'origin/v8/bugfix/umbBlockCard-should-work-without-blockConfiguration' into v8/feature/AB8699-Support-blocks-in-clipboard-service 2020-10-21 17:35:10 +02:00
Niels Lyngsø 9c13dc4320 prototype 2020-10-21 17:35:02 +02:00
Niels Lyngsø 79ad43b648 use umb-outline 2020-10-21 16:51:52 +02:00
Niels Lyngsø 7053e8f966 corrected ng-if 2020-10-21 16:33:00 +02:00
Niels Lyngsø 0f81e48634 Make blockConfigModel optional 2020-10-21 16:18:36 +02:00
Warren BuckleyandGitHub d6b1cda176 Merge pull request #9046 from umbraco/v8/feature/confirm-website-preview-mode
UX: Auto exit PreviewMode, If Preview Mode is active user should Confirm to stay.
2020-10-21 14:09:05 +01:00
Warren BuckleyandGitHub d3407ac155 Apply suggestions from code review 2020-10-21 13:03:53 +01:00
Warren BuckleyandGitHub b49cb02935 Update src/Umbraco.Core/Constants-Web.cs 2020-10-21 13:02:31 +01:00
Niels Lyngsø 383ae5c1eb fallback localizations + removed console.logs 2020-10-21 13:13:12 +02:00
Bjarke BergandGitHub dc48fdb1e7 Merge pull request #8860 from umbraco/v8/feature/acceptance-test-scripts
Add javascript acceptance  tests
2020-10-21 10:25:40 +02:00
Bjarke BergandGitHub 7514e582f6 Merge pull request #8859 from umbraco/v8/feature/acceptance-test-content-with-contentpicker
V8: stabilize cypress tests and add content with contentpicker test
2020-10-21 10:22:37 +02:00
Warren Buckley abc42b5438 Merge pull request #9215 from umbraco/v8/bugfix/9129-keep-model-value-reference-after-empty
9129 keep model value reference after empty
2020-10-20 12:35:16 +01:00
Warren BuckleyandGitHub 6475684d9e Merge pull request #9215 from umbraco/v8/bugfix/9129-keep-model-value-reference-after-empty
9129 keep model value reference after empty
2020-10-20 12:26:40 +01:00
Shannon dce7076aab Fixes #9217 invite user form doesn't allow saving the password
The problem was that the directive was changed to a component and as such all things are named with vm which was not transitioned across for this form. There was also an issue with the avatar which is fixed too.
2020-10-20 11:47:41 +11:00
Kenn JacobsenandNathan Woulfe 642cf40e8d Make toggle group labels clickable and aligned correctly 2020-10-20 07:30:44 +10:00
Claus a3c40e0356 adding missing deliveryMethod to smtp comment in web.config. 2020-10-19 13:27:58 +02:00
Shannon 3f883c7409 adds null checks in JS 2020-10-19 21:57:21 +11:00
Niels Lyngsø 18309bccb6 When redefining model.value it must be bound to the model to keep a runtime reference. 2020-10-19 08:19:09 +02:00
Claus 1f8fd87733 bumping version to 8.9.0 2020-10-16 08:51:08 +02:00
BatJanandNathan Woulfe cb60eeb27a Remove refernece to .woff and remove the files as well 2020-10-16 10:11:00 +10:00
Kenn JacobsenandNathan Woulfe e33bb4cf65 Do not save media items when hitting enter 2020-10-16 09:34:19 +10:00
Poornima NayarandNathan Woulfe 65082aec29 Added umb-icon directive examine management dashboard 2020-10-16 09:32:02 +10:00
Poornima NayarandNathan Woulfe d8cd802b6b changed delete button style to danger 2020-10-16 09:31:17 +10:00
BatJanandNathan Woulfe 5162fb0b5c Convert old <i> to use umb-icon directive 2020-10-16 09:17:06 +10:00
Poornima NayarandNathan Woulfe 1ae79cdadc removed aria-hidden 2020-10-16 09:06:52 +10:00
Poornima NayarandNathan Woulfe 89844a4844 Replaced <i> with umb-icon in umb-node-preview 2020-10-16 09:06:52 +10:00
Callum WhyteandGitHub c06abd939a Added documentation for umbControlGroup directive (#9160)
* Added documentation for umbControlGroup directive

* Adding period to each umbControlGroup param description
2020-10-14 15:05:54 +02:00
Søren KottalandGitHub 2a38f67869 Prevents templates being created when adding DocTypes through the block list config (#9017) 2020-10-14 12:20:05 +01:00
Owain JonesandGitHub 0c619b02d3 Added a Welsh backoffice language file (#9114) 2020-10-14 11:21:51 +01:00
Dave Woestenborghs 29e2b21789 Refactored to a single loop to avoid multiple enumerations on the results list 2020-10-14 08:37:49 +02:00
Dave Woestenborghs 165f99c920 Order by path instead of level 2020-10-14 08:25:42 +02:00
ChadCandNathan Woulfe f12f539d84 Prevent InvalidCastException being thrown when ContentPicker has picked a UDI. Trying to convert to an int will fail for Udis with an InvalidCastException. 2020-10-14 09:13:00 +10:00
BatJanandSebastiaan Janssen 7d3df87b7f Change if check to be more specific ensuring it works in all picker instances
(cherry picked from commit 1c77ec1562)
2020-10-13 17:25:26 +02:00
Sebastiaan Janssen 8980dfca36 Merge branch 'v8/8.9' into v8/dev
# Conflicts:
#	src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
2020-10-13 16:55:59 +02:00
Sebastiaan Janssen e1e7a1777e Merge branch 'v8/8.8' into v8/8.9 2020-10-13 16:49:17 +02:00
Sebastiaan Janssen 7a8c9b1167 Merge branch 'v8/8.8' into v8/dev
# Conflicts:
#	src/SolutionInfo.cs
2020-10-13 16:48:39 +02:00
Sebastiaan Janssen 2d55d54a44 Merge branch 'v8/8.7' into v8/8.8 2020-10-13 16:47:38 +02:00
Sebastiaan Janssen ac6e0a544e Merge branch 'v8/8.7' into v8/dev 2020-10-13 16:46:59 +02:00
Sebastiaan Janssen 8778e9c84d Merge branch 'v8/8.6' into v8/8.7 2020-10-13 16:46:14 +02:00
Sebastiaan Janssen 841c4b5012 Merge branch 'v8/8.6' into v8/dev 2020-10-13 16:45:27 +02:00
Arkadiusz BielandSebastiaan Janssen b96776949f make composers and components public
(cherry picked from commit f288a63342)
2020-10-13 16:41:26 +02:00
Arkadiusz BielandSebastiaan Janssen f288a63342 make composers and components public 2020-10-13 16:40:52 +02:00
Ronald BarendseandSebastiaan Janssen 469e35190d Retarget migration to Umbraco 8.9.0
(cherry picked from commit eb2f338406)
2020-10-13 16:35:51 +02:00
Ronald BarendseandSebastiaan Janssen eb2f338406 Retarget migration to Umbraco 8.9.0 2020-10-13 16:34:50 +02:00
Sebastiaan Janssen 22a1423324 Revert "umb-confirmation directive: move trashcan into directive and address accessibility issues (#8198)"
This reverts commit 1cd79d81af.

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/components/umb-confirm-action.html
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts.prevalues.html
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/multipletextbox/multipletextbox.html

(cherry picked from commit f9b49fc5f3)
2020-10-13 15:39:06 +02:00
Sebastiaan Janssen f9b49fc5f3 Revert "umb-confirmation directive: move trashcan into directive and address accessibility issues (#8198)"
This reverts commit 1cd79d81af.

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/components/umb-confirm-action.html
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts.prevalues.html
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/multipletextbox/multipletextbox.html
2020-10-13 15:37:14 +02:00
Bjarne FyrstenborgandGitHub 9a5e0940f8 Show badge in user state filter and icon in user group filter (#9113)
* Show badge in user state filter similar to loglevel filter

* Add icons for user group filter
2020-10-13 13:43:05 +01:00
Mike Chambersandemma burstow 8b653a4cfb Update Rte.cshtml
Remove references to the deprecated TemplateUtilities.
2020-10-13 11:28:25 +01:00
Bjarne FyrstenborgandGitHub ede64b5594 Change button style for listview settings (#9112) 2020-10-13 09:18:23 +01:00
BatJanandemma burstow 1c77ec1562 Change if check to be more specific ensuring it works in all picker instances 2020-10-13 09:01:57 +01:00
Shannon a27e9a6b36 Merge branch 'v8/dev' into v8/feature/nucache-perf
# Conflicts:
#	src/Umbraco.Core/Migrations/Upgrade/UmbracoPlan.cs
2020-10-13 16:36:42 +11:00
Kenn JacobsenandGitHub 6c5b6567de Formlulate the block list delete confirmation as a question (#9139) 2020-10-12 16:34:49 +01:00
Kenn JacobsenandGitHub e0eadf2cf5 Creating a "System" content type breaks Umbraco (#9005) 2020-10-12 16:10:22 +01:00
Dave Woestenborghs fc9f80c30d Fix broken unit tests 2020-10-12 16:55:16 +02:00
Jan SkovgaardandGitHub e5fcfea764 Userpicker: Change search to use the <umb-seach-filter> directive (#9042)
* Switch to the umb-search-filter directive

* Add css class

* Fix styling after directive changes have been merged
2020-10-12 15:43:18 +01:00
Dave Woestenborghs 4db30c24c8 Added some more comments 2020-10-12 16:17:38 +02:00
Dave Woestenborghs a9f83711a7 Merge branch 'pr9137' into temp_8879 2020-10-12 16:14:11 +02:00
Dave Woestenborghs 3da74b74e5 Optimized query for getting published pages only 2020-10-12 16:13:51 +02:00
Dave Woestenborghs af5d2851b0 Enable ordering by level when getting page descendants of content 2020-10-12 15:59:35 +02:00
Dave Woestenborghs 549e7ce6de Merge branch 'v8/contrib' into temp_8879 2020-10-12 15:41:45 +02:00
Mike MaseyandGitHub 7b0dc65672 Add umb-icon to umb-tree-item and umb-tree-search-box (#9064)
* feat: add svg icons to umb-tree-item and umb-tree-search-box

* refactor: remove unnessesary aria-hidden from umb-tree-icon

* refactor: remove aria hidden from umb-tree-search-box icon
2020-10-12 14:10:27 +01:00
Jan SkovgaardandGitHub 4dfc75cfff Macropicker: Change search to use umb-search-filter directive (#9041)
* Change search to use umb-search-filter

* Fix minor issues in main directive and styling issues with width
2020-10-12 12:23:26 +01:00
Jan SkovgaardandGitHub f4213463aa Switch search to use <umb-search-filter> (#9040) 2020-10-12 10:50:46 +01:00
Jan SkovgaardandGitHub 88f29a6776 Refactor search box to use umb-search-filter (#9038) 2020-10-12 10:21:09 +01:00
Jan SkovgaardandGitHub 50f7952514 umb-search-filter: Convert i to use umb-icon (#9037)
* Conver i to new umb-icon directive

* Extend directive to accept css class modifiers

* Add "scoped" styling for the directive to avoid issues with CSS modifiers when used in other contexts
2020-10-12 09:22:17 +01:00
Shannon 257392dd28 Non-published content indexed in ExternalIndex
Fixes issue that the non-published content index populator is executing for the ExternalIndex
2020-10-12 16:49:45 +11:00
Niels Lyngsø 20f2917a0c Exit PreviewMode when all Preview Session are closed + translation 2020-10-09 16:05:53 +02:00
Mole 79db8c2e99 Shorten password in members test 2020-10-09 10:53:23 +02:00
Niels Lyngsø 6009acdfbf updated wording 2020-10-09 10:46:36 +02:00
Mole 4485e76a28 Add forgotten indent 2020-10-09 10:44:52 +02:00
Mole 9039f3030b Fix content with contentpicker after renaming doctype 2020-10-09 10:39:20 +02:00
Mole 2fcab52e7e Indent nested builders
Makes it easier to see what calls belongs where
2020-10-09 10:07:04 +02:00
Mole 3e77457b81 Increase typing timeout in member tests and some minor cleaning 2020-10-09 09:49:09 +02:00
Niels Lyngsø dc072293f9 New dialogs for asking about Preview mode 2020-10-08 16:36:25 +02:00
Mole c8018ed00a Add a timeout when getting the progress percentage 2020-10-08 15:19:54 +02:00
Mole 3c29982c09 Don't expect a certain order from badges in rollback
The badge order is not deterministic which means we can't expect them to be in a certain order.
2020-10-08 10:35:05 +02:00
Mole a511575784 Assert that error notification does not come up on create template
Had the test pass sometimes before the fix because the success notification appear, but the error notification appear at well, so the test shouldn't actually have passed
2020-10-08 10:06:56 +02:00
Niels Lyngsø f380c221a5 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/confirm-website-preview-mode 2020-10-08 09:46:40 +02:00
Mole 030928f3a6 Unfocus and wait for save to be visible in templates 2020-10-08 09:35:16 +02:00
Warren Buckley f569200272 Fix & update tests 2020-10-07 21:20:53 +01:00
Warren Buckley fe929b95fd When generating XML for UDA & or package.xml ensure LabelOnTop prop is added 2020-10-07 20:21:12 +01:00
Warren Buckley cf7b7a7ed1 More mappings - this seems to have fixed it. Got to update tests & verify export/import doctype to UDA & package.xml export/import 2020-10-07 20:20:13 +01:00
Mole 035b5beba7 Click the content area in create template test instead of making edit
Tests no longer fail with a weird The process cannot access the file, or well at least not in the 10 recurrent tries i just did.
2020-10-07 15:19:56 +02:00
Mole 3137c01ea1 Assert success notification after publishign content in rollback test 2020-10-07 13:04:23 +02:00
Mole df607dbef8 Make rollback test pass again 2020-10-07 11:20:40 +02:00
Mole 7a42a84f7d Merge remote-tracking branch 'origin/v8/dev' into v8/feature/acceptance-test-content-with-contentpicker
# Conflicts:
#	src/Umbraco.Tests.AcceptanceTest/package.json
2020-10-07 11:08:04 +02:00
Søren KottalandSebastiaan Janssen d7bf980f12 Adds icons from App_Plugins/**/Icons/*.svg (#8884)
(cherry picked from commit 3b551bdc5d)
2020-10-06 15:09:56 +02:00
Mike MaseyandSebastiaan Janssen 879d54b525 V8/feature/update icon picker to use umb icon (#9063)
(cherry picked from commit 27751a4ae7)
2020-10-06 15:09:01 +02:00
Søren KottalandGitHub 3b551bdc5d Adds icons from App_Plugins/**/Icons/*.svg (#8884) 2020-10-06 15:06:03 +02:00
Mike MaseyandGitHub 27751a4ae7 V8/feature/update icon picker to use umb icon (#9063) 2020-10-06 14:09:35 +02:00
Sebastiaan Janssen 29a6b7a5c0 Merge branch 'v8/8.8' into v8/8.9 2020-10-06 09:13:54 +02:00
Sebastiaan Janssen cfd20833c7 Merge branch 'v8/8.7' into v8/8.8
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Web.UI.Client/src/less/components/umb-form-check.less
2020-10-06 09:12:35 +02:00
Brynjólfur GunnarssonandNathan Woulfe a5639a70c9 fixed publish variants dialog translation 2020-10-06 07:45:08 +10:00
Bjarne FyrstenborgandNathan Woulfe aff046b1a1 Fix void element of umb-checkbox component 2020-10-06 07:43:01 +10:00
Sebastiaan Janssen e9627f2ee9 Merge branch 'v8/dev' into v8/contrib 2020-10-05 21:12:51 +02:00
Sebastiaan Janssen ed24a695e4 Merge branch 'v8/8.9' into v8/dev
# Conflicts:
#	src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
2020-10-05 20:58:47 +02:00
Sebastiaan Janssen 32878576f9 Merge branch 'v8/8.8' into v8/dev 2020-10-05 20:58:05 +02:00
Sebastiaan Janssen e41fdc3cce Merge branch 'v8/8.7' into v8/dev
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/less/components/umb-form-check.less
2020-10-05 20:57:57 +02:00
Bjarke BergandSebastiaan Janssen ad4834cc68 Updated tour skip-step condition to the new format after introduction of umb-icon
(cherry picked from commit 1107e5d0fd)
2020-10-05 20:50:52 +02:00
Ronald BarendseandGitHub 2bfef74191 Fix casing of 'URL' (#9080) 2020-10-05 20:48:38 +02:00
Kenn JacobsenandGitHub eaa0a3ba64 Fix broken auto-focus (#9004) 2020-10-05 13:56:57 +01:00
Claus 28f1e9a732 Merge remote-tracking branch 'origin/v8/bugfix/8.9rc-reactive-fallback-value-for-umb-button-type' into v8/8.9 2020-10-05 11:24:13 +02:00
Niels Lyngsø 3a06195e3d ensure fallback value is defined on value updates 2020-10-05 11:02:07 +02:00
Bjarke BergandSebastiaan Janssen 1107e5d0fd Updated tour skip-step condition to the new format after introduction of umb-icon 2020-10-05 10:45:02 +02:00
Marc GoodsonandSebastiaan Janssen 034e9e2628 Update 'working with the code' to remove reference to VS2017
I'm not sure you need to restate the version here, having got it specified in the list above, but if you do, then a vanilla 2017 won't build the source because of the c#8 stuff introduced recently.
2020-10-05 10:43:32 +02:00
Niels Lyngsø f20e322ff5 apply functionality to modal. 2020-10-02 20:46:54 +02:00
Niels Lyngsø a7db158894 ask user wether they like to stay in preview mode 2020-10-02 16:12:24 +02:00
Warren Buckley 7e34dda131 Trying more things & prep for dealing with package XML for Label On Top 2020-10-02 15:08:24 +01:00
Søren KottalandGitHub c608d95087 Adds polling function to the Logviewer (#9023)
* Add polling function to logviewer

* float the sub buttons right
2020-10-02 14:48:47 +02:00
Warren Buckley 1b7f095048 Trying to get the model mapping done correctly - but still stuggling.
This can be persisited to DB correctly but does not hydrate model correctly back to a model
2020-10-02 13:32:23 +01:00
Sebastiaan Janssen 67f42c02b9 Fix problem with ngdoc, the param requires a description 2020-10-02 13:08:09 +02:00
Warren Buckley e5ba2ca78c Migration to add new DB column to PropertyTypeDto for LabelOnTop 2020-10-02 11:36:50 +01:00
Niels Lyngsø 433d9ac186 init labelOnTop 2020-10-02 09:49:25 +02:00
BatJanandNathan Woulfe 2de04b3196 Convert link to button 2020-10-02 09:49:49 +10:00
Niels Lyngsø c264cc9691 configure label position on Property level 2020-10-01 17:30:03 +02:00
Niels Lyngsø d14e9ee3b4 revert POC approach 2020-10-01 17:29:52 +02:00
Niels Lyngsø 5a96b1cd8d Merge branch 'v8/dev' into v8/feature/property-label-on-top
# Conflicts:
#	src/Umbraco.Web/PropertyEditors/BlockListConfiguration.cs
2020-10-01 16:15:31 +02:00
Lotte PitcherandSebastiaan Janssen 9e48e8aa3a use 'contact links' config feature to replace issue templates that link elsewhere 2020-10-01 15:01:44 +02:00
Kenn JacobsenandGitHub 03ff867e3a Sort the languages in the global language selector (#9007) 2020-10-01 13:39:02 +01:00
Kenn JacobsenandGitHub 8231e8e72e Sort the entries in the variant picker by display name (#9006) 2020-10-01 13:35:04 +01:00
Warren BuckleyandGitHub 182184d1db Merge pull request #8843 from umbraco/v8/bugfix/8839-use-icon-for-plus-sign
Review 8839 use icon for plus sign
2020-10-01 12:11:44 +01:00
Claus 978d245f00 Merge remote-tracking branch 'origin/v8/8.8' into v8/8.9 2020-10-01 12:37:56 +02:00
Warren BuckleyandGitHub c1b0f6977e Merge pull request #8974 from umbraco/v8/feature/use-block-edit-for-labelblock
use block.edit()
2020-10-01 11:11:54 +01:00
Warren BuckleyandGitHub ad3ff4d4d4 Merge pull request #8994 from umbraco/v8/bugfix/8924-clear-both-without-description
fixes 8924, Always clear both
2020-10-01 10:59:15 +01:00
Jan SkovgaardandGitHub 128e7b59e6 Convert old app header icons to umb-icon directive (#8998) 2020-10-01 10:31:13 +01:00
Jan SkovgaardandGitHub 52927c299c Convert a's with href="#" to button (#9001) 2020-10-01 10:27:17 +01:00
Dave Woestenborghs df2c90e488 For published content index items by getting children recursively 2020-10-01 10:16:08 +02:00
Dave Woestenborghs 6f30029a49 #8879 split indexing in 2 seperate methods so we are able to have different logic for all and published only content 2020-10-01 09:57:18 +02:00
Claus 19e2c8fa6e Fix JS errors when creating folders in the settings section
(cherry picked from commit 4ecbb7abe6)
2020-10-01 09:31:39 +02:00
Claus b48145c87f Fix JS error preventing newly created dictionary items from opening automatically
(cherry picked from commit 59f90bd08b)
2020-10-01 09:31:23 +02:00
Claus 94d4fef088 Merge remote-tracking branch 'origin/v8/8.6' into v8/8.8
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Web/Logging/WebProfilerComponent.cs
2020-10-01 08:55:28 +02:00
Claus a167becff5 bump version to 8.9.0-rc. 2020-10-01 08:46:51 +02:00
Claus d5cc4ed914 Merge commit 'refs/tags/release-8.8.0^{}' into v8/8.9
# Conflicts:
#	src/SolutionInfo.cs
2020-10-01 08:34:59 +02:00
BatJanandNathan Woulfe 34e80d86e8 Use $document and don't try to add or remove if the element is not found 2020-10-01 08:51:30 +10:00
BatJanandNathan Woulfe 506add21d8 Move click event from li to button element 2020-10-01 08:50:19 +10:00
Christopher GidneyandSebastiaan Janssen 47af858b17 Add documentation for descriptionLocked parameter 2020-09-30 21:19:40 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 811f27cb01 Adjust condition to hide edit button if media is trashed, but otherwise show the button
(cherry picked from commit 1d5afae0f6)
2020-09-30 21:15:19 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 1d5afae0f6 Adjust condition to hide edit button if media is trashed, but otherwise show the button 2020-09-30 21:14:04 +02:00
Bjarne FyrstenborgandGitHub df3feee60d Use button elements in grid editor (#8887) 2020-09-30 20:37:12 +02:00
Bjarne FyrstenborgandGitHub 9feb6e6085 Adjustments of colorpicker prevalue and property editor (#8885) 2020-09-30 20:35:09 +02:00
BatJanandSebastiaan Janssen 76c5a69e60 Remove unused mediatypepicker overlay 2020-09-30 20:33:51 +02:00
BatJanandSebastiaan Janssen f2ce837ca2 Convert a to button and fix other oddities as well
(cherry picked from commit d323c7927a)
2020-09-30 20:31:10 +02:00
BatJanandSebastiaan Janssen d323c7927a Convert a to button and fix other oddities as well 2020-09-30 20:30:44 +02:00
Bjarne FyrstenborgandGitHub 6e9540fb35 Checkboxlist prevalue editor (#8832) 2020-09-30 20:18:45 +02:00
Bjarne FyrstenborgandSebastiaan Janssen d55916e1b8 Use umb-code-snippet in unsupported block
(cherry picked from commit dcc1fed75c)
2020-09-30 20:14:20 +02:00
Bjarne FyrstenborgandSebastiaan Janssen dcc1fed75c Use umb-code-snippet in unsupported block 2020-09-30 20:13:48 +02:00
Bjarne FyrstenborgandGitHub 0b5c039a93 Show only settings and styles boxes when each of them has configuration (#8827) 2020-09-30 20:11:26 +02:00
Doug MooreandGitHub c81266f5dd Associate existing label to the button for a umb-toggle-group item (#8716) (#8826) 2020-09-30 20:06:46 +02:00
Bjarne FyrstenborgandSebastiaan Janssen ef12c36ce5 Adjust tags editor typeahead to fit within container in splitview 2020-09-30 19:59:32 +02:00
Bjarne FyrstenborgandGitHub 5911243908 Add color picker component (#8812) 2020-09-30 19:57:39 +02:00
Kenn JacobsenandFailure Flawless 0e11449fde Fix JS errors when creating folders in the settings section
(cherry picked from commit 4ecbb7abe6)
2020-09-30 19:40:45 +02:00
Kenn JacobsenandSebastiaan Janssen 4ecbb7abe6 Fix JS errors when creating folders in the settings section 2020-09-30 19:37:58 +02:00
Kenn JacobsenandFailure Flawless 365d3287f1 Fix JS error preventing newly created dictionary items from opening automatically
(cherry picked from commit 59f90bd08b)
2020-09-30 19:28:22 +02:00
Kenn JacobsenandSebastiaan Janssen 59f90bd08b Fix JS error preventing newly created dictionary items from opening automatically 2020-09-30 19:27:51 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 5b82264c8e Set enabled similar to preventDefault and preventEnterSubmit directives 2020-09-30 19:23:10 +02:00
Warren BuckleyandGitHub 57f5c117f6 Merge pull request #8980 from umbraco/v8/bugfix/8911-ensure-scaffold-exists
Review: Check that scaffold exists
2020-09-30 15:45:18 +01:00
Niels Lyngsø 20a5d1028b we should continue no matter if the ElementType cant be found, this will result in the entry appearing as unsupported if it has data, but data properly has been removed already and therefor we will not see the entry at all. 2020-09-30 15:43:12 +02:00
Niels Lyngsø 5c47edbcdf lets clear both without description needed. + word-wrap for long words. 2020-09-30 15:02:15 +02:00
Warren BuckleyandGitHub 5927a16ae6 Merge pull request #8984 from umbraco/v8/feature/ui-always-show-actions-in-delete-dialogs
Review: Always show action buttons in delete dialogs & enable once checked
2020-09-30 14:00:41 +01:00
Niels Lyngsø 80ab69edd7 Highlight blocks that are not available anymore 2020-09-30 14:31:15 +02:00
Warren BuckleyandGitHub 0eaa730f72 Merge pull request #8985 from umbraco/v8/bugfix/8868-fix-one-pixel-problem
Review: Fix one pixel in dialog
2020-09-30 13:11:49 +01:00
2ec84e3c01 Merge pull request #8986 from umbraco/v8/bugfix/8878
Review: Fixing blocklist labelblock css
Co-authored-by: skttl
2020-09-30 13:05:54 +01:00
Warren BuckleyandGitHub cdff4b4b2b Merge pull request #8983 from umbraco/v8/bugfix/8894-always-show-validation-limit-message
Review: Always show if limit are exceeded
2020-09-30 12:35:52 +01:00
Warren BuckleyandGitHub 088e7e8577 Merge pull request #8982 from umbraco/v8/bugfix/8702-break-long-text-in-item-picker
Review: Break text in item-picker cards
2020-09-30 10:33:36 +01:00
Warren BuckleyandGitHub 6187fdb9f2 Merge pull request #8979 from umbraco/v8/bugfix/8929-check-for-null
Review: Check for null since null is an object as well.
2020-09-30 10:23:28 +01:00
Niels Lyngsø 539c05f8ec got changes from skttl + corrections 2020-09-29 16:01:04 +02:00
Warren BuckleyandGitHub 2968a495a7 Merge pull request #8981 from umbraco/v8/bugfix/8773-clean-up-nc-specific-data-when-copying
Cleanup NC specific data before sending it to the clipboard
2020-09-29 14:41:06 +01:00
Niels Lyngsø e1de2d06ec revert this one. 2020-09-29 15:36:42 +02:00
Niels Lyngsø de511359e4 Always show actions 2020-09-29 15:19:30 +02:00
Niels Lyngsø 6d0dbd251a Always show validation limit message 2020-09-29 14:51:03 +02:00
Niels Lyngsø a6340bb850 refactor to one method 2020-09-29 14:24:19 +02:00
Niels Lyngsø 3d8ab523a1 break long texts in item-picker cards 2020-09-29 13:31:26 +02:00
Niels Lyngsø ab74d1c5db bringing this back to original. 2020-09-29 13:06:38 +02:00
Niels Lyngsø 3efec3325d revert specific hack for NC when copying data. 2020-09-29 13:00:24 +02:00
Niels Lyngsø 7150d06fb2 ensure this can be deleted from PreValue no matter the existence of the ElementType. 2020-09-29 11:36:03 +02:00
Niels Lyngsø 7bd2a1a8ef check scaffold exists 2020-09-29 11:25:17 +02:00
Niels Lyngsø c6dc4689b0 Check for null as null is an object as well. 2020-09-29 11:01:22 +02:00
Sebastiaan Janssen c50a168a20 Don't remove focal point - reverts a potential breaking change
(cherry picked from commit df0222b09e)
2020-09-29 10:50:45 +02:00
Sebastiaan Janssen df0222b09e Don't remove focal point - reverts a potential breaking change 2020-09-29 10:49:48 +02:00
Sebastiaan Janssen d9506d30b3 Fix cropper / preview not showing
(cherry picked from commit e1ef5f4e6b)
2020-09-28 21:26:42 +02:00
Sebastiaan Janssen e1ef5f4e6b Fix cropper / preview not showing 2020-09-28 21:26:05 +02:00
Sebastiaan Janssen 9ac600aeff Merge branch 'v8/dev' into v8/contrib 2020-09-28 20:35:26 +02:00
Sebastiaan Janssen c28f7e71bd Merge branch 'v8/8.8' into v8/dev 2020-09-28 20:34:44 +02:00
Sebastiaan Janssen 0f2283e078 Bump version to 8.8.0 2020-09-28 20:05:08 +02:00
Niels LyngsøandSebastiaan Janssen b1179ff6f1 adjust default size of umb-button-ellipsis and its apperance in umb-tree
(cherry picked from commit 5d9389b37c)
2020-09-28 20:03:27 +02:00
Niels LyngsøandSebastiaan Janssen 1ec9e24ae5 8.8 Revert icon styling, to ensure backwards compatibility (#8941)
(cherry picked from commit 956c81ff32)
2020-09-28 20:03:18 +02:00
Sebastiaan Janssen 8767fef15a Merge branch 'v8/8.7' into v8/dev 2020-09-28 20:00:43 +02:00
Sebastiaan Janssen 0a08c668a9 Merge branch 'v8/8.6' into v8/8.7
# Conflicts:
#	src/SolutionInfo.cs
2020-09-28 19:59:47 +02:00
Sebastiaan Janssen da7c5e063b Merge branch 'v8/8.6' into v8/dev
# Conflicts:
#	src/SolutionInfo.cs
2020-09-28 19:58:11 +02:00
Niels LyngsøandSebastiaan Janssen 5d9389b37c adjust default size of umb-button-ellipsis and its apperance in umb-tree 2020-09-28 19:53:23 +02:00
Niels LyngsøandGitHub 956c81ff32 8.8 Revert icon styling, to ensure backwards compatibility (#8941) 2020-09-28 19:44:58 +02:00
Niels Lyngsø ebe3c26cb7 use block.edit() 2020-09-28 14:13:43 +02:00
Warren BuckleyandGitHub 1868c215d9 Merge pull request #8850 from umbraco/v8/feature/umb-property-info-button
Review Feature: umb-property-info-button
2020-09-28 11:49:24 +01:00
Bjarke BergandGitHub 5e7b34e3a3 Merge pull request #8960 from umbraco/v8/feature/configure-cypress-through-nodejs-install
create enviroment configuration through install script
2020-09-28 11:01:56 +02:00
Niels Lyngsø b053ad1423 set to be required 2020-09-25 14:02:22 +02:00
Niels Lyngsø b5374152a1 make baseUrl an optional part of configuration 2020-09-25 12:45:45 +02:00
Niels Lyngsø 4085468125 update dependency name 2020-09-25 12:01:40 +02:00
Niels Lyngsø b46dad39ff only write config if file does not already exist 2020-09-25 11:50:57 +02:00
Niels Lyngsø 78724c11eb updated readme 2020-09-25 11:36:43 +02:00
Niels Lyngsø 9286282eca updated text 2020-09-25 11:36:28 +02:00
Niels Lyngsø 26905078ca create enviroment configuration through install script 2020-09-25 11:22:49 +02:00
Shannon 67a9b5bb97 Refactors the serialization of the content data that is stored in the nucache table. This had to change because we need to resolve content type data in order to check if the property should be compressed and we cannot do that data lookup while the data is being processed since we get an open data reader exception. This is fixed now by using a serializer factory instead so the Create method can do any initialization needed prior to running any serialization operation. Renames a few things so we dont have ContentNested (whatever that meant ) 2020-09-25 00:32:11 +10:00
Shannon 780b2e573b Fixes a startup issue that doesn't bubble the underlying boot failed exception if the container fails. 2020-09-25 00:27:46 +10:00
Sebastiaan Janssen 19b4035359 Merge branch 'v8/dev' into v8/contrib 2020-09-24 14:44:26 +02:00
ShannonandSebastiaan Janssen e4c5010759 Fixes issue with exceptions in logs because we are trying to unbind from httpapplication events but you cannot do that.
(cherry picked from commit 5ed94065a7)
2020-09-24 11:43:34 +02:00
Claus f24c54acad bump version to 8.6.5 2020-09-24 11:38:08 +02:00
Shannon 5ed94065a7 Fixes issue with exceptions in logs because we are trying to unbind from httpapplication events but you cannot do that. 2020-09-24 18:45:26 +10:00
Shannon 6bd6d97bda WIP (fixes migrations) 2020-09-24 18:37:24 +10:00
Shannon 8c4650951d Merge remote-tracking branch 'origin/v8/dev' into v8/feature/nucache-perf
# Conflicts:
#	build/NuSpecs/UmbracoCms.Web.nuspec
#	src/Umbraco.Core/Persistence/SqlSyntax/SqlCeSyntaxProvider.cs
2020-09-24 16:00:49 +10:00
Shannon 0e44acc45e Merge remote-tracking branch 'origin/v8/8.8' into v8/8.9
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Web.UI/Umbraco/Views/Default.cshtml
2020-09-24 14:19:58 +10:00
Sebastiaan Janssen fe3f604122 Move the IIconService and IconModel to the Umbraco.Core project
See issue #8919

(cherry picked from commit 0531fce9e2)
2020-09-23 16:21:34 +02:00
Sebastiaan Janssen 0531fce9e2 Move the IIconService and IconModel to the Umbraco.Core project
See issue #8919
2020-09-23 16:20:55 +02:00
Sebastiaan Janssen f5affd0521 Merge branch 'v8/8.6' into v8/8.7 2020-09-23 11:32:22 +02:00
Sebastiaan Janssen 75830e1d3e Merge branch 'v8/8.7' into v8/8.8
# Conflicts:
#	src/Umbraco.Web/Security/MembershipHelper.cs
2020-09-23 11:24:32 +02:00
Sebastiaan Janssen f29c5f0e3b Merge branch 'v8/dev' into v8/contrib 2020-09-23 11:18:43 +02:00
Sebastiaan Janssen 95a46580d6 Merge branch 'v8/8.7' into v8/dev 2020-09-23 11:10:56 +02:00
Sebastiaan Janssen d6275f34f7 Merge branch 'v8/8.6' into v8/dev
# Conflicts:
#	src/Umbraco.Web/Security/MembershipHelper.cs
2020-09-23 11:09:40 +02:00
Shannon 7fc4364b52 Fixes issue with deleting external logins, fixes issue with saving new user logins when creating a new user, fixes issue of not checking if the linked login is already linked. 2020-09-23 15:45:58 +10:00
Bjarne FyrstenborgandNathan Woulfe 59784a1551 Update noUiSlider to v14.6.2 2020-09-23 14:18:16 +10:00
ClausandSebastiaan Janssen a2cb264f27 Merge remote-tracking branch 'origin/v8/bugfix/8433-member-login-sql-locks' into v8/8.6
(cherry picked from commit 6122bffa24)
2020-09-22 14:49:28 +02:00
ClausandSebastiaan Janssen 041d0469b6 Merge remote-tracking branch 'origin/v8/bugfix/examine-reindex' into v8/8.6
(cherry picked from commit 8fddb52f9a)
2020-09-22 14:44:29 +02:00
Sebastiaan Janssen c00017220a NuGet.org had TLS 1.0 and 1.1 disabled - https://devblogs.microsoft.com/nuget/deprecating-tls-1-0-and-1-1-on-nuget-org/.
Therefore we need this line specifying Tls12

(cherry picked from commit c91281c4b8)
2020-09-22 14:38:24 +02:00
Claus 6122bffa24 Merge remote-tracking branch 'origin/v8/bugfix/8433-member-login-sql-locks' into v8/8.6 2020-09-22 13:14:03 +02:00
Claus 8fddb52f9a Merge remote-tracking branch 'origin/v8/bugfix/examine-reindex' into v8/8.6 2020-09-22 11:42:44 +02:00
Claus b12fad75da Merge remote-tracking branch 'origin/v8/8.8' into v8/dev 2020-09-22 10:38:25 +02:00
ClausandGitHub ab4d830626 Merge pull request #8930 from umbraco/v8/bug/8919-cache-icons-used-in-login-screen
Inject icons used in login screen to the runtime icon cache
2020-09-22 10:33:56 +02:00
Bjarke Berg 1badb69481 #8919 - Clean up obsolete ctor 2020-09-22 10:14:34 +02:00
Bjarke Berg 164fa24ef3 #8919 - Fix issue with wrong casing of variable name 2020-09-22 10:04:55 +02:00
Bjarke Berg 5df3e051d3 Merge remote-tracking branch 'origin/v8/bug/8919-cache-icons-used-in-login-screen' into v8/bug/8919-cache-icons-used-in-login-screen
# Conflicts:
#	src/Umbraco.Web/Editors/BackOfficeController.cs
#	src/Umbraco.Web/Editors/BackOfficeModel.cs
#	src/Umbraco.Web/Editors/IconController.cs
#	src/Umbraco.Web/Services/IIconService.cs
#	src/Umbraco.Web/Services/IconService.cs
2020-09-22 09:21:45 +02:00
Bjarke Berg ccc0e82579 #8919 - Avoid having fat controller and do not new up a controller in a model 2020-09-22 08:58:16 +02:00
Claus 6e56b16342 adding IconService 2020-09-22 08:57:48 +02:00
Claus b327399cd2 adding icon svg data from IconController. 2020-09-22 08:11:58 +02:00
Shannon e6e7917b0c fixes create button 2020-09-22 11:34:59 +10:00
Shannon ac9dedf327 Ensure we don't swallow exceptions in angular when logging in, fixes a null ref in angular preventing login in authorize screen, fixes login screen to use an explicit ng-form instance. 2020-09-22 11:05:37 +10:00
Warren BuckleyandSebastiaan Janssen 3950f3286e Merge pull request #8815 from umbraco/v8/bugfix/events-unsubscribe
Ensure event handlers are unsubscribed  in Core Components

(cherry picked from commit e7f98a5690)
2020-09-21 15:23:02 +02:00
Warren BuckleyandGitHub e7f98a5690 Merge pull request #8815 from umbraco/v8/bugfix/events-unsubscribe
Ensure event handlers are unsubscribed  in Core Components
2020-09-21 11:27:47 +01:00
Shannon bc6952d77c Ensures the user service returns the real error when the current user fails, ensures we add the standard header to all ajax requests so they can be detected 2020-09-18 14:55:33 +10:00
Niels Lyngsø d3db24e705 Merge remote-tracking branch 'origin/v8/8.8' into v8/bug/8919-cache-icons-used-in-login-screen 2020-09-17 15:00:02 +02:00
Niels Lyngsø e2957bb715 inject icons to iconHelper to avoid making requests to the icon controller 2020-09-17 14:59:49 +02:00
Niels Lyngsø 0506c8c555 defineIcon method 2020-09-17 14:59:12 +02:00
Sebastiaan Janssen 6b0539fefc Set version to RC 2020-09-17 12:19:07 +02:00
Lars-Erik AabechandSebastiaan Janssen 6d15a2fce3 Eliminates error/no-preview when grid media picker have no crop set (#8620)
(cherry picked from commit deb03e4d82)
2020-09-17 11:35:17 +02:00
Lars-Erik AabechandGitHub deb03e4d82 Eliminates error/no-preview when grid media picker have no crop set (#8620) 2020-09-17 11:32:52 +02:00
Niels SwimbergheandSebastiaan Janssen 6d2135edd5 Change wrong URL in KeepAlive XML Comments
The XML comments for KeepAlive mention the URL for the KeepAlive.Ping action but incorrectly omits 'umbraco' from the path.
The change adds the 'umbraco' section to the path.

(cherry picked from commit 312dc1d9a7)
2020-09-17 09:19:09 +02:00
Warren BuckleyandSebastiaan Janssen 5a37854dd5 Merge pull request #7599 from umbraco/v8/feature/ui-media-create-button-style
UI: corrected button style to match new style
(cherry picked from commit 2e055ca146)
2020-09-17 09:18:55 +02:00
Shannon 9c5ad79a1f bumps version 2020-09-17 16:16:08 +10:00
Shannon 75dc416ed9 Merge remote-tracking branch 'origin/v8/8.8' into v8/feature/no-local-login
# Conflicts:
#	src/Umbraco.Core/Migrations/Upgrade/UmbracoPlan.cs
#	src/Umbraco.Web.UI.Client/src/common/directives/components/application/umblogin.directive.js
#	src/Umbraco.Web.UI.Client/src/common/directives/components/buttons/umbbutton.directive.js
#	src/Umbraco.Web.UI.Client/src/views/common/overlays/user/user.html
#	src/Umbraco.Web.UI.Client/src/views/components/buttons/umb-button-group.html
#	src/Umbraco.Web.UI.Client/src/views/components/buttons/umb-button.html
#	src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
2020-09-17 15:38:04 +10:00
Niels SwimbergheandNathan Woulfe 312dc1d9a7 Change wrong URL in KeepAlive XML Comments
The XML comments for KeepAlive mention the URL for the KeepAlive.Ping action but incorrectly omits 'umbraco' from the path.
The change adds the 'umbraco' section to the path.
2020-09-17 12:25:09 +10:00
Niels Lyngsø 1fc8e826f6 Merge remote-tracking branch 'origin/v8/contrib' into v8/feature/umb-property-info-button 2020-09-16 15:08:27 +02:00
Niels Lyngsø 9882edeca0 added translation to demo implementation 2020-09-16 14:54:25 +02:00
Shannon 559a4b00ad Allows custom view for external login provider to manage it's own form, updates umbLogin component to allow 3rd party interaction 2020-09-16 18:45:14 +10:00
Shannon bc3f27d550 Ensures the OnAutoLinking event fires when the user exists, adds try/catches around the event so the event can bubble up errors to the UI 2020-09-16 12:36:39 +10:00
Shannon 8b89c73873 Ensure the user's name is locked when deny local login 2020-09-15 00:23:55 +10:00
Shannon be00934425 reverts the umb-button change 2020-09-14 22:53:26 +10:00
Warren BuckleyandGitHub 2e055ca146 Merge pull request #7599 from umbraco/v8/feature/ui-media-create-button-style
UI: corrected button style to match new style
2020-09-14 12:02:26 +01:00
Niels Lyngsø 4a8703d5a3 no message 2020-09-14 11:56:50 +02:00
Shannon 003d52bd87 Makes ChallengeResult public, adds more functionality to umb-button 2020-09-14 18:03:23 +10:00
Bjarne FyrstenborgandGitHub 600ae926d4 Remove local function to create guid and use String.CreateGuid() extension function instead (#8886) 2020-09-13 22:21:30 +02:00
Shannon 26d8126497 More tests fixes up a few things with external login service, adds notes changes column to ntext 2020-09-11 14:37:31 +10:00
Shannon dd6e51aab5 Changes how the custom view works, it now entirely replaces umbraco's default behavior including what is rendered in the back office, this is for max flexibility 2020-09-11 01:20:54 +10:00
Shannon 3b23b85dd5 Adds more functionality to the external login table and services to store additional user data with the provider info and adds tests. 2020-09-11 00:02:57 +10:00
Nikolaj 6fb33043e5 Add javascript tests 2020-09-10 11:15:43 +02:00
Nikolaj f82a4c19cb Wait for content to be refreshed and switch order of rollback 2020-09-10 09:30:07 +02:00
Nikolaj a4abfd4962 Add Content with contentpicker test and bump helpers version 2020-09-10 08:52:18 +02:00
Bjarke BergandGitHub 96f8dd2103 Merge pull request #8622 from umbraco/v8/feature/AB7482-acceptance-tests-for-content
Acceptance tests for Content
2020-09-09 13:28:48 +02:00
Bjarke Berg f58e1e8edb Merge remote-tracking branch 'origin/v8/dev' into v8/feature/AB7482-acceptance-tests-for-content
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.controller.js
2020-09-09 13:14:20 +02:00
Sebastiaan Janssen 1f44b94ef6 Merge branch 'v8/dev' into v8/contrib
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.controller.js
#	src/Umbraco.Web.UI.Client/test/config/karma.conf.js
2020-09-09 12:52:42 +02:00
Sebastiaan Janssen 0662284f29 Merge branch 'v8/8.7' into v8/dev
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.controller.js
2020-09-09 12:48:28 +02:00
Bjarke Berg 6e25885804 Simplified the drag and drop 2020-09-09 10:29:41 +02:00
Shannon 2d50245a7d remove notes 2020-09-09 18:11:38 +10:00
Shannon d00fb23e9a automatically flow any added claims in OnExternalLogin to the ticket (with notes) 2020-09-09 18:11:10 +10:00
Shannon c7c7d9efcd Updates the invite flow, we will always create a local user because we must do that due to the user groups being pre-determined. 2020-09-09 18:09:16 +10:00
Bjarke Berg b4b7bb438d updated version of testhelpers 2020-09-09 07:51:05 +02:00
Bjarke Berg 7641b8da54 Merge remote-tracking branch 'origin/v8/8.7' into v8/feature/AB7482-acceptance-tests-for-content
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.controller.js
2020-09-09 07:46:35 +02:00
Ronald Barendse 0613de2a09 Get settings model type from configuration (instead of data) 2020-09-08 23:47:08 +02:00
Bjarke Berg 34c09ce12d Merge remote-tracking branch 'origin/v8/dev' into v8/feature/AB7482-acceptance-tests-for-content 2020-09-08 21:05:58 +02:00
Ronald BarendseandGitHub 5faa9ae22f 8.7RC Add generic BlockListItem classes (#8841) 2020-09-08 12:08:27 +02:00
ClausandGitHub f20920167a Merge pull request #8844 from umbraco/v8/bugfix/remove-blocklistextensions
V8.7RC: Removing extensions for GetBlockListHtml on IPublishedContent
2020-09-08 10:46:06 +02:00
Niels Lyngsø ba399d8686 use icon-add instead of font plus + minor UI corrections 2020-09-08 10:40:18 +02:00
Niels Lyngsø 6091b9649a focus first item, to remove focus from inline-create-button 2020-09-08 10:39:45 +02:00
Claus 11e42c0a56 removing duplicated extension methods that could encourage bad practice when used in the wrong way. 2020-09-08 10:36:35 +02:00
Shannon af53f27bc3 Fixes testing custom invite user flow and the AllowManualLinking setting for external providers 2020-09-07 18:46:38 +10:00
Bjarne FyrstenborgandGitHub 4782560f2f Checkboxlist and radiobuttonlist validation (#8833) 2020-09-07 10:46:03 +02:00
Elitsa MarinovskaandGitHub d8732e55a6 Updates package to future latest with necessary changes 2020-09-06 17:08:36 +02:00
Elitsa Marinovska cab6bbb44d Refactoring for using API for saving content 2020-09-06 17:00:50 +02:00
Elitsa Marinovska ce0d73725b Merge remote-tracking branch 'origin/v8/dev' into v8/feature/AB7482-acceptance-tests-for-content 2020-09-06 16:38:50 +02:00
ClausandGitHub 46b4b22dcd Merge pull request #8767 from umbraco/v8/bugfix/return-IHtmlString-from-GetBlockListHtml
V8/bugfix/return IHtmlString from GetBlockListHtml
2020-09-04 13:55:45 +02:00
Niels LyngsøandSebastiaan Janssen 028b9ec59b change to use evalAsync() 2020-09-04 13:21:04 +02:00
Kenn JacobsenandSebastiaan Janssen 455344105d Hide the Nested Content "add content" header when there are items in the clipboard 2020-09-04 11:31:06 +02:00
Kenn JacobsenandSebastiaan Janssen 0720e3bb30 Fix broken Nested Content "add content" dialog 2020-09-04 11:24:17 +02:00
Sebastiaan Janssen a0fbffa2c2 Ignoring package-lock.json from now on, seems not needed.
Motivation: the only "benefit" I keep seeing is: you will know when dependencies has changed version.
But since we lock our dependencies down quite well in package.json already and we have never even had a problem with a package updating "on it's own" so I don't think it's really needed.
The only thing that updates on it's own is whatever dependencies our dependencies drag along with them, but the main js packages that we ship with are always pinned down to a version we know we want to ship with so that won't be a problem.
2020-09-04 10:38:16 +02:00
Kenn JacobsenandSebastiaan Janssen a5e4633377 Fix JS error when creating macros and relation types 2020-09-04 10:08:03 +02:00
M. Ali IftikharandSebastiaan Janssen db9d15e1b5 added escape character to server textbox placeholder on installer DB config page 2020-09-04 09:50:08 +02:00
Ronald BarendseandGitHub 02fba85f73 Update config comments and fix transforms (#8808) 2020-09-04 09:36:28 +02:00
Ronald BarendseandSebastiaan Janssen d5933a154c Use correct woff and woff2 MIME types 2020-09-04 09:32:33 +02:00
Shannon f2b8f355e1 Fixing up user invite event 2020-09-04 15:02:28 +10:00
Shannon 56a73d0395 More options for external providers with a toggle to not allow manual linking 2020-09-04 14:32:34 +10:00
Shannon 1ab77adc8a Ensure event handlers are unsubscribed in Core Components 2020-09-04 13:25:56 +10:00
Sebastiaan Janssen 2681c76d90 Fix the test result output to go to a file, not a weird directory (because the default user agent contained slashes causing windows to make directories for them) 2020-09-03 11:34:12 +02:00
Sebastiaan JanssenandGitHub 4313463a94 Switch from the Chrome runner to JSDom (#8800) 2020-09-03 10:36:58 +02:00
Sebastiaan Janssen 94c2d5c7ef Merge branch 'v8/dev' into v8/contrib 2020-09-03 09:42:16 +02:00
Sebastiaan Janssen eebe061cb6 Merge branch 'v8/8.6' into v8/dev 2020-09-03 09:41:31 +02:00
Nathan WoulfeandGitHub 7b1f7ced3a Merge pull request #8713 from umbraco/nul800sebastiaan-patch-1
Adding `display: none;` prevents `ng-show` from working
2020-09-03 10:27:26 +10:00
Nathan WoulfeandGitHub 8ee878a4b2 Merge pull request #8803 from BatJan/feature/itempicker-fix-semantics
Merge pull request #8803 from BatJan/feature/itempicker-fix-semantics
2020-09-03 10:15:58 +10:00
BatJan 1e2c1e821a Convert a to button 2020-09-03 00:01:29 +02:00
BatJanandSebastiaan Janssen 2a10c5294a Fix semantics + fix focus on umb-checkmark directive 2020-09-02 19:32:33 +02:00
BatJanandSebastiaan Janssen 4e32ddc5b3 Convert a to button and fix some margin from the search box to the pickable items 2020-09-02 19:26:11 +02:00
BatJanandSebastiaan Janssen 337ed84e47 Convert a to button and remove wrapping span element 2020-09-02 19:13:56 +02:00
Bjarne FyrstenborgandGitHub e1d6357806 Spectrum colorpicker v2 (#8784) 2020-09-02 19:10:22 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 124415e413 Create more unique id for radiobutton list when using splitview and where two properties on each culture has same alias 2020-09-02 19:05:06 +02:00
Kenn JacobsenandSebastiaan Janssen a542bd4bd2 Guard compareArrays filter against invalid arguments 2020-09-02 15:41:50 +02:00
Kenn JacobsenandSebastiaan Janssen 94894ca41b Bump required Visual Studio version number in contrib guidelines 2020-09-02 15:22:48 +02:00
Sebastiaan Janssen 10281cb0e6 Merge branch 'v8/dev' into v8/contrib
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/components/blockcard/umb-block-card.html
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts.prevalues.html
2020-09-02 14:23:40 +02:00
Sebastiaan Janssen 79ac19bff8 Merge branch 'v8/8.7' into v8/dev
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Web.UI.Client/package.json
#	src/Umbraco.Web.UI.Client/src/common/services/formhelper.service.js
#	src/Umbraco.Web.UI.Client/src/views/common/overlays/itempicker/itempicker.controller.js
#	src/Umbraco.Web.UI.Client/src/views/components/users/change-password.html
#	src/Umbraco.Web.UI.Client/src/views/content/overlays/publish.controller.js
#	src/Umbraco.Web.UI.Client/src/views/content/overlays/publish.html
#	src/Umbraco.Web.UI.Client/src/views/content/overlays/publishdescendants.controller.js
#	src/Umbraco.Web.UI.Client/src/views/content/overlays/publishdescendants.html
#	src/Umbraco.Web.UI.Client/src/views/datatypes/delete.html
#	src/Umbraco.Web.UI.Client/src/views/documenttypes/create.html
#	src/Umbraco.Web.UI.Client/src/views/logviewer/search.html
#	src/Umbraco.Web.UI.Client/src/views/member/member.edit.controller.js
#	src/Umbraco.Web.UI.Client/src/views/packages/edit.html
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/dropdownFlexible/dropdownFlexible.controller.js
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts.prevalues.html
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.controller.js
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/rte/rte.prevalues.html
2020-09-02 10:14:10 +02:00
Sebastiaan Janssen 703037195a Revert "Preserve sort order when copying content"
This reverts commit 47dc631ca0.
2020-08-31 23:20:18 +02:00
Bjarne FyrstenborgandSebastiaan Janssen ed59b22b6c Update to nouislider v14.6.1 2020-08-31 22:33:09 +02:00
BatJanandSebastiaan Janssen e02c417cf8 Convert a to button 2020-08-31 22:30:26 +02:00
Olivier BossaerandGitHub 9c33f4b2fe Fix #7672 - Image can be added to root of Media when AllowAtRoot is false (#7853) 2020-08-31 22:25:09 +02:00
MartaandSebastiaan Janssen 5bb61d138e #7672 checking allowed image types on each folder switch 2020-08-31 22:19:44 +02:00
Jose MarcenaroandSebastiaan Janssen 8a6d2cc3b0 Add varchar(max) support in DTO attributes
[SpecialDbType(SpecialDbTypes.NVARCHARMAX)]
2020-08-31 22:09:54 +02:00
Poornima NayarandGitHub c1e2f8f974 RedirectToUmbracoPageResult - Extended to allow a Guid (#8139) 2020-08-31 22:06:04 +02:00
Kenn JacobsenandSebastiaan Janssen 47dc631ca0 Preserve sort order when copying content 2020-08-31 21:59:59 +02:00
Rachel BreezeandGitHub 108ea2df5e Made the logviewer more accessible (#8213) 2020-08-31 21:56:00 +02:00
Jan SkovgaardandGitHub ae7290ff8b Userpicker view: Change anchor element to button (#8738)
* Change a to button

* Fix styling issues after button conversion
2020-08-31 20:56:27 +02:00
Bjarne FyrstenborgandGitHub 6bb105fb88 Use umb-radiobutton component in grid configuration (#8775) 2020-08-31 20:48:56 +02:00
Bjarne FyrstenborgandSebastiaan Janssen af63c6f93a Ensure directives use end-closing tag 2020-08-31 20:45:23 +02:00
Kenn JacobsenandSebastiaan Janssen 69321d3021 Sort the languages by their display name 2020-08-31 20:44:17 +02:00
Kenn JacobsenandSebastiaan Janssen 48e38b089d Sort dictionary translations by display name 2020-08-31 20:43:12 +02:00
Jan SkovgaardandGitHub f33c43609f General markup cleanup on buttons and icons (#8746) 2020-08-31 20:30:47 +02:00
Jan SkovgaardandGitHub 6de24fc7f1 User property editor: Add "Remove" warning dialog (#8745) 2020-08-31 20:27:07 +02:00
Jan SkovgaardandGitHub 3c1ad02126 Userpicker: Add warning overlay when the "Remove" button is hit (#8739) 2020-08-31 20:17:17 +02:00
erol akgülandSebastiaan Janssen ee80c24df1 Update ContentTypeRepositoryBase.cs
propertytypeid => propertyTypeId
2020-08-31 19:55:22 +02:00
Jan SkovgaardandGitHub fd88a88b08 Various fixes for macroparameterpicker view (#8606) 2020-08-31 19:34:09 +02:00
Bjarne FyrstenborgandGitHub 6ff100a7c7 Update umb-mini-search component (#8566) 2020-08-31 19:31:50 +02:00
Bjarne FyrstenborgandGitHub 6f5806c1cc Update umb-property-actions toggle button (#8565) 2020-08-31 19:22:59 +02:00
Shannon 664504833b Move scope management outside of iterator method 2020-08-31 23:57:26 +10:00
BatJanandSebastiaan Janssen a6309523d3 Fix space issue after the previous used div was converted to H1 2020-08-31 15:41:42 +02:00
Shannon 6e08a0396e Umbraco to re-index data on background thread
Fixes issue with scopes being disposed or referenced incorrectly due to yield returns as this can capture a scope in the enumerator which will get passed to a background thread in Examine and cause some issues. We saw this issue in netcore but the issue must still exist in v8 but we don't visibly see it for some reason. The other issue is that the ValueSet lookup for content was done 3x when an IContent is saved and it should only be done 2x, one for published, one for unpublished. The other issue is that the data lookups to build a ValueSet are intended to be done on a background thread. This is the case in v7 because the IEnumerable is lazy and passed all the way down to Examine's background thread but this doesn't occur in v8 because we need to iterate/split that value set before it's sent to Examine so the ValueSet is eagerly built within the request. We can easily resolve this by using the background task manager and just pushing a task when IContent/IMedia/IMember is saved. This will return the execution to the UI quicker.
2020-08-31 23:41:19 +10:00
Bjarne FyrstenborgandGitHub 1a4eb442e1 Packages adjustments (#8765) 2020-08-31 15:39:48 +02:00
Shannon 3cac678bf3 WIP creating invite event 2020-08-31 22:53:17 +10:00
Nikolaj 10aae75ec6 Return IHtmlString instead of MvcHtmlString from GetBlockListHtml 2020-08-31 11:08:44 +02:00
Shannon 44cec326e9 need another build 2020-08-28 16:05:47 +10:00
Shannon 4f1d9997d5 removes custom invite link, adds ability in logout event to specify an external logout get redirect for external logins. 2020-08-28 02:10:08 +10:00
Sebastiaan Janssen dae94bd957 Update issue template 2020-08-27 09:46:06 +02:00
Sebastiaan Janssen 3b93b6d108 Adds .NET Core issue template 2020-08-27 09:45:13 +02:00
Jan SkovgaardandGitHub 8cf999e4a1 Accessibility: Grid config datatype improvements (#8712) 2020-08-26 20:25:30 +02:00
Jan SkovgaardandGitHub 52e40d41d2 Accessibility: Fixes for "insert code snippet" view in macro pickers (#8711) 2020-08-26 20:23:08 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 824d2fd46d Align listview layout icons and make icon boxes same sizes 2020-08-26 19:58:14 +02:00
Kenn JacobsenandSebastiaan Janssen b476f91789 Fix parametrized query for specific content types 2020-08-26 19:51:47 +02:00
Bjarne FyrstenborgandGitHub a0d91e76e7 Update user filter buttons (#8587) 2020-08-26 19:48:40 +02:00
Kenn JacobsenandSebastiaan Janssen 9130695055 Fix the arrow direction in the content language picker 2020-08-26 19:25:44 +02:00
Kenn JacobsenandSebastiaan Janssen cdd560a7d1 Don't retain "move media" in busy state on error 2020-08-26 19:22:44 +02:00
Bjarne FyrstenborgandGitHub 2f69eac833 Make embed grid editor editable again (#8576) 2020-08-26 19:18:38 +02:00
Bjarne FyrstenborgandGitHub 74bce68c61 Update styling of grid editor add button (#8570) 2020-08-26 19:14:46 +02:00
Bjarne FyrstenborgandGitHub 7347343a31 Only show mediapicker edit button if media is found (#8569) 2020-08-26 19:12:38 +02:00
Bjarne FyrstenborgandGitHub 636dcecb62 Adjust image cropper crops (#8557) 2020-08-26 19:10:14 +02:00
Kenn JacobsenandSebastiaan Janssen 0320f40249 Fix JS error in empty listviews 2020-08-26 19:08:06 +02:00
Kenn JacobsenandSebastiaan Janssen 7f55f46ee6 Make the entire tree menu ellipsis button clickable 2020-08-26 19:02:35 +02:00
Kenn JacobsenandSebastiaan Janssen 58bd3d64f2 Add missing backdrop when using the "Actions" button 2020-08-26 19:01:09 +02:00
Bjarne FyrstenborgandSebastiaan Janssen e171ef2430 Extend styling from umb-node-preview-add 2020-08-26 18:57:31 +02:00
Bjarne FyrstenborgandGitHub 08981943ce Update prevalues multivalues sortable styling (#8554) 2020-08-26 18:54:40 +02:00
Bjarne FyrstenborgandSebastiaan Janssen bdff79f261 Align icon in media grid item overlay 2020-08-26 18:52:57 +02:00
Kenn JacobsenandSebastiaan Janssen a5f69bbd7c Remove usages of angular.forEach in help services and filters 2020-08-26 18:51:51 +02:00
Bjarne FyrstenborgandSebastiaan Janssen ea6937696e Fix media picker clickhandler 2020-08-26 18:49:52 +02:00
Ronald BarendseandSebastiaan Janssen b958d64b71 Fix NC active heading styling 2020-08-26 18:27:01 +02:00
Ronald BarendseandSebastiaan Janssen a5f4252f09 Change grid view @Html.If to conditional statement 2020-08-26 18:23:04 +02:00
ae0ff1d0a1 8274: Make it possible to open user groups in infinite editor (#8308)
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
2020-08-26 18:18:15 +02:00
Shannon 880e5179bf Fixing tests 2020-08-26 16:11:58 +10:00
Shannon 9a06b6291a Simplifies compression implementation, adds compression options to target all complex editors, ensures the options are per document type/property type 2020-08-26 15:57:13 +10:00
Shannon ba8da3850e This gets things working with all compression levels - going to cleanup/simplify 2020-08-26 11:43:43 +10:00
Bjarke BergandGitHub 44b84c4cdd Merge pull request #8427 from emmagarland/v8/feature/acceptancetests-cypress-backofficetour
Rerunning first tour resets tour data
2020-08-25 08:42:14 +02:00
Shannon 8ab5899db2 Adds another required DB index 2020-08-25 15:18:23 +10:00
Shannon 68c4e4f36b ObjectType and UniqueId indexes now cover all fields since anytime these are queried we return all data. 2020-08-25 14:49:13 +10:00
Shannon a078a30990 Re-adds the indexes removed 2020-08-25 14:19:44 +10:00
Shannon aec828098d adds MessagePack to nuspec 2020-08-25 12:33:47 +10:00
Shannon 77e5a41077 Updates indexes on umbracoNode and umbracoContentVersion which uses INCLUDE columns 2020-08-25 12:26:24 +10:00
Shannon DeminickandGitHub 5f2137c273 Merge pull request #8630 from nzdev/v8/feature/sql-server-include-index
Support include in sql server indexes
2020-08-25 10:41:59 +10:00
Shannon d84d305ae9 Changes our Expression visitor to not output NOT for boolean values 2020-08-25 10:38:49 +10:00
Shannon 6f2dccc2e2 Uses a more optimized COUNT query when rebuilding the in memory cache 2020-08-25 10:14:36 +10:00
Chriztian SteinmeierandGitHub 1c09ee7dce Add `!important' to the color in the style attribute (#8710)
Turns out `!important` doesn't work with the `ng-style` attribute, so have stwitched to use `ng-attr-style` instead, which works.
2020-08-24 21:58:21 +02:00
Emma Garland 6ee13fb0ea Timeout is a variable 2020-08-24 16:27:51 +01:00
Emma Garland 27a98dbdaa Tours green - clicked correct element 2020-08-24 16:23:18 +01:00
Emma Garland cdab15af91 Refactoring 2020-08-24 16:20:51 +01:00
leekelleherandSebastiaan Janssen 9ceecb21a8 Grid cell error - to use "umb-code-snippet" directive 2020-08-24 16:38:51 +02:00
Emma Garland 8e8a61d352 Updated % complete 2020-08-24 13:00:17 +01:00
Emma Garland 711b9b9c12 Slightly tweaked readme
Specified click as per PR review
2020-08-24 12:39:30 +01:00
Emma Garland 0df55d7894 Moved reset into correct scope 2020-08-24 12:31:04 +01:00
Sebastiaan JanssenandGitHub eaa6ceacfb Adding display: none; prevents ng-show from working
Fixes #8705
2020-08-24 10:35:10 +02:00
Emma Garland 3fcaf213ea Merge branch 'v8/contrib' into v8/feature/acceptancetests-cypress-backofficetour 2020-08-24 09:17:53 +01:00
Lee KelleherandGitHub 5e1d78db3e Grid Textstring editor - Fixes bug with unique ID. (#8546) 2020-08-24 09:47:30 +02:00
Niels Lyngsø 6a5bfcaa9c first take on umb-property-info-button 2020-08-21 10:09:15 +02:00
Bjarne FyrstenborgandGitHub 55c37e0a4e Update content type icon on save (#8585)
* Emit event when content type icon/color change

* Allow node css class to change when icon change

* Cleanup unused injected services

* Add missing aria-hidden attribute in tree

* Fix typo
2020-08-20 20:43:08 +01:00
Sebastiaan Janssen 8db0967d47 Fix merge error 2020-08-20 10:19:14 +02:00
Bjarke Berg 4a107ae722 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/AB7482-acceptance-tests-for-content
# Conflicts:
#	src/Umbraco.Tests.AcceptanceTest/package.json
2020-08-20 09:47:31 +02:00
Bjarke BergandGitHub 2ac0ff9f40 Merge pull request #8595 from umbraco/v8/feature/partial-view-macro-acceptance
V8/feature/Add acceptance tests
2020-08-20 09:43:19 +02:00
Bjarke Berg 67c25ad39b Fixes for ace editor in cypress tests 2020-08-20 09:42:42 +02:00
Kenn JacobsenandGitHub f9c41f99e3 Allow for changing the weight of built-in and 3rd party dashboards (#8628) 2020-08-19 14:41:48 +01:00
Sebastiaan Janssen 0140d906a5 Merge remote-tracking branch 'origin/v8/contrib' into v8/contrib 2020-08-19 15:18:19 +02:00
Steve TempleandGitHub addc6ae51a Deprecate IsRequired on Email datatype (#8655)
* Deprecate IsRequired on Email datatype

* Add Obsolete to IsRequired in EmailAddressConfig
2020-08-19 14:03:38 +01:00
Bjarne FyrstenborgandGitHub ea40cea420 Use button elements in schedule overlay (#8640)
* Replace anchor elements with button elements

* Apply styling to button element

* Reset default button style

* Add missing type attributes

* Add aria-hidden attribute

* Move type attribute for readability
2020-08-19 12:21:53 +01:00
Sebastiaan Janssen c8da5156fa Merge branch 'v8/dev' into v8/contrib
# Conflicts:
#	src/Umbraco.Web.UI.Client/package.json
#	src/Umbraco.Web.UI.Client/src/common/directives/components/content/umbvariantcontenteditors.directive.js
#	src/Umbraco.Web.UI.Client/src/common/directives/validation/valformmanager.directive.js
#	src/Umbraco.Web.UI.Client/src/common/services/formhelper.service.js
#	src/Umbraco.Web.UI.Client/src/views/components/overlays/umb-overlay.html
#	src/Umbraco.Web.UI.Client/src/views/content/overlays/publishdescendants.controller.js
#	src/Umbraco.Web.UI.Client/src/views/content/overlays/publishdescendants.html
#	src/Umbraco.Web.UI.Client/src/views/dictionary/edit.html
#	src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
2020-08-19 13:12:13 +02:00
Shannon 9a1de6468b notes and unit test, just wanted to see if this query could be improved but it can't 2020-08-19 13:33:49 +10:00
Shannon d43e36596e null check for back office view 2020-08-19 12:41:06 +10:00
Shannon DeminickandGitHub 5d93d8e874 Merge pull request #8634 from nzdev/v8/feature/support-sql-server-developer-edition-2019
Support SQL Server 2012 syntax on SQL Server 2019
2020-08-17 16:30:36 +10:00
Niels Lyngsø 41359a6544 adjust spacing 2020-08-14 14:55:31 +02:00
Niels Lyngsø 47412346c4 Merge remote-tracking branch 'origin/v8/8.7' into v8/feature/property-label-on-top 2020-08-14 12:15:20 +02:00
Niels Lyngsø c478945373 Ability to put property label on top of editor 2020-08-14 12:14:35 +02:00
nzdev 7379846597 SQL CE no support for includes. Add null check. 2020-08-14 18:03:51 +12:00
nzdev 58a8b093cc Support SQL Server 2012 syntax on SQL Server 2019 2020-08-14 16:32:46 +12:00
nzdev 23880b596f Fix formatting 2020-08-14 10:02:22 +12:00
Shannon 666d67e562 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/nucache-perf
# Conflicts:
#	src/Umbraco.Core/Migrations/Upgrade/UmbracoPlan.cs
#	src/Umbraco.Web/PublishedCache/NuCache/DataSource/DatabaseDataSource.cs
2020-08-14 00:49:03 +10:00
Shannon c619e5a96a Fixes the property map, adds notes, updates tests data to include larger paragraphs 2020-08-14 00:45:58 +10:00
Shannon 7d689a6e11 adds notes, ensures that we optimize property data when using msgpack binary serialization too! 2020-08-13 23:32:05 +10:00
Shannon 9ac2c27110 Revert "removes the SQLDatabase enum value" and renames some stuff 2020-08-13 23:09:40 +10:00
Sebastiaan Janssen acb2c203bd Bump to v8.8.0 2020-08-13 14:41:54 +02:00
Sebastiaan Janssen 50bdcc4949 Sync some dependencies that have been updated in v8/8.7 2020-08-13 14:32:43 +02:00
Shannon 044585a4f3 removes the SQLDatabase enum value 2020-08-13 22:22:06 +10:00
Shannon 07de0876e7 Cleans up some code, adds code comments 2020-08-13 22:15:09 +10:00
nzdev cb69192678 Support include in sql server indexes 2020-08-13 23:11:03 +12:00
Shannon 0d159751b9 Cleans up code - removes tuples everywhere 2020-08-13 19:15:13 +10:00
Shannon DeminickandGitHub 8a2adf209d Merge pull request #8400 from nzdev/v8/feature/nucache-property-compression
WIP Option C - Compress custom properties for nucache to reduce memory consumption
2020-08-13 18:31:58 +10:00
Nikolaj 1512496f4f Add template tests 2020-08-13 09:31:28 +02:00
Nikolaj 9a2fb1e0d8 Fix javascript test 2020-08-13 09:11:58 +02:00
Nikolaj e76ffc865c Ensure that the template is deleted when creating a new documentType 2020-08-13 09:09:15 +02:00
Nikolaj cc696ade1c Update npm packages 2020-08-13 09:02:54 +02:00
Nikolaj b42bd51392 Add partial views tests 2020-08-13 09:02:18 +02:00
Sebastiaan Janssen 93c021ef1c Resolves #8621 correctly 2020-08-12 09:07:35 +02:00
Elitsa Marinovska 52500cce38 Creates tests for content 2020-08-11 22:43:16 +02:00
Elitsa Marinovska ad166921a8 Updates Cypress to future latest 2020-08-11 22:42:26 +02:00
Sebastiaan Janssen 425d0ba544 Remove dependency on the testdata project in Web.UI #8616 2020-08-11 16:17:58 +02:00
Shannon f4baab1bb4 Gets custom OAuth errors working 2020-08-11 16:06:37 +10:00
Shannon 9fc3699a48 Reduces the Member update calls when logging a member in 2020-08-11 11:52:36 +10:00
Shannon 2d3d919c31 adds notes 2020-08-10 22:57:34 +10:00
Shannon 295db967de Updates member repository to select/update instead of delete/insert for property data 2020-08-10 22:55:45 +10:00
Shannon 5cf94a7639 Updates member repository to take a lock on the property value rows being updated 2020-08-10 22:29:04 +10:00
ClausandGitHub 39fcdb01e0 Merge pull request #8601 from umbraco/v8/bugfix/publishdescendants
Fixing publish descendants dialog
2020-08-07 09:56:37 +02:00
Claus c73f9bc2a5 fixing the other umb-toggle. 2020-08-07 09:52:19 +02:00
ClausandGitHub 36af2f6ed2 Merge pull request #8547 from bjarnef/v8/bug/fix-self-closing-angular-elements
Fix self closing angular elements
2020-08-07 09:45:32 +02:00
ClausandGitHub f7588da514 Merge pull request #8605 from bjarnef/v8/bug/fix-self-closing-umb-toggle
Fix self closing umb-toggle
2020-08-07 09:42:31 +02:00
Bjarne Fyrstenborg deef02bd32 Toggle when clicking label text 2020-08-06 20:14:38 +02:00
Bjarne Fyrstenborg 73860285eb Fix issue with void element for angular directive/component which is custom HTML element 2020-08-06 19:59:54 +02:00
Bjarne Fyrstenborg 112215ac5b Remove additional whitespace 2020-08-06 19:57:20 +02:00
Claus 4799f73775 using label on umb-toggle instead of a separate element.
updating localized texts to reflect what is happening.
ensure the selected value is pushed back to scope and used for the action.
2020-08-06 15:04:18 +02:00
Warren BuckleyandGitHub 1e29b5f810 Delete RichCode Navigation GitHub Action
Will do testing in personal fork with MS team until this is ready to demo
2020-08-06 08:10:51 +01:00
Nikolaj 355804d4a6 Update testhelpers to fix wonky import 2020-08-06 08:53:17 +02:00
ClausandGitHub 9ac3885488 Merge pull request #7596 from umbraco/v8/feature/7292-memberhasaccess
Adds new methods to MembershipHelper for dealing with checking bulk paths for access
2020-08-06 08:22:45 +02:00
Nikolaj 6a67fd5fab Add additional partialViewMacro tests 2020-08-05 15:21:54 +02:00
Nikolaj 894bbfb9d4 Put cleanup into a function 2020-08-04 11:54:19 +02:00
Nikolaj 60791fb96f Wrap intital navigation in method 2020-08-04 11:35:12 +02:00
Nikolaj 7d045fd0b3 Fix spaces 2020-08-04 11:23:22 +02:00
Nikolaj 82b3416d42 Test partial view macro from snippet 2020-08-04 11:20:06 +02:00
Nikolaj 8c593d0ea6 Add test for macro without macro 2020-08-04 11:04:09 +02:00
nzdev e65f3a7e80 undo solution changes 2020-08-04 18:21:16 +12:00
nzdev 451eacf7cb Fix NuCache spelling 2020-08-04 18:03:08 +12:00
nzdev d4276dff58 Fix composition. Store compression options in map 2020-08-04 18:01:06 +12:00
Bjarke BergandGitHub 405919be7c Merge pull request #8559 from umbraco/v8/bugfix/acceptance_test
Fix selectors causing acceptance test to give false errors.
2020-08-03 13:11:09 +02:00
Bjarke BergandSebastiaan Janssen 8b1bf3c16f Fix issue with tour's next button not clickable when infinite editing bar is open 2020-08-03 12:54:27 +02:00
Nikolaj E. Lauridsen 87383db814 Fix button selectors 2020-08-03 12:04:22 +02:00
Kenn JacobsenandGitHub bbcd08ac98 Fix broken grid LESS causing the client build to fail (#8551) 2020-08-01 10:18:15 +02:00
Bjarne Fyrstenborg 811cbb8f74 Cleanup console.log 2020-07-31 18:07:28 +02:00
Bjarne Fyrstenborg 3bcaad0e7f Ensure umb-radiobutton use end-closing tag 2020-07-31 18:06:50 +02:00
Bjarne Fyrstenborg 12a4dbc705 Ensure umb-checkbox has end closing tag 2020-07-31 18:00:39 +02:00
Kenn JacobsenandGitHub 34ea86a8cb Remove usages of angular.forEach in help drawer, content and infinite editors (#8544) 2020-07-31 17:48:45 +02:00
Bjarne FyrstenborgandGitHub 08f177bfd8 Fix styling of buttons in grid cells (#8543) 2020-07-31 17:45:45 +02:00
Bjarne FyrstenborgandGitHub ff7ce4e66e Fix styling of actions in textbox multiple (#8542) 2020-07-31 17:43:46 +02:00
Kenn JacobsenandSebastiaan Janssen a737b0eacf Remove usages of angular.forEach in property editors 2020-07-31 17:38:12 +02:00
Kenn JacobsenandSebastiaan Janssen e69f19381f Languages names do not show in publish/unpublish dialogs 2020-07-31 17:28:39 +02:00
Nathan WoulfeandGitHub 1a4e360c32 Fix object iteration in underscore _.each changes (#8534) 2020-07-31 12:49:01 +02:00
Mike MaseyandGitHub edf307dffa Errors do not receive focus on submit (Accessibility) (#8278) 2020-07-31 12:41:51 +02:00
Sebastiaan Janssen 9de04fdf5b Fix PhantomJS tests 2020-07-31 12:33:28 +02:00
Bjarne FyrstenborgandGitHub c33229840f Fix styling of confirm actions in tags editor (#8528) 2020-07-31 10:40:40 +02:00
Bjarne FyrstenborgandGitHub 538b867447 Buttons cleanup (#8529) 2020-07-31 10:24:20 +02:00
Bjarne FyrstenborgandGitHub dfe8930653 Update model name in logviewer saved search (#8527) 2020-07-31 10:18:24 +02:00
Bjarne FyrstenborgandGitHub 37d001c0e8 Align icons on document type (#8531) 2020-07-31 09:21:32 +02:00
Nathan WoulfeandSebastiaan Janssen ad1eda44bf rmove underscore from content overlays, some refactoring as appropriate 2020-07-31 09:16:51 +02:00
Bjarne FyrstenborgandGitHub 12087e78b7 Update master template button (#8532) 2020-07-31 08:42:29 +02:00
Shannon 7d762e0455 Merge remote-tracking branch 'origin/v8/8.7' into v8/dev
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.controller.js
2020-07-31 15:55:39 +10:00
Michael LatoucheandGitHub 6e2e2eca05 Update French translations file to V8 labels (#7379) 2020-07-30 18:12:08 +02:00
Ian HoughtonandSebastiaan Janssen a0034c51f9 fix #7842 - Render a larger textarea for editing dictionary items 2020-07-30 17:59:59 +02:00
Poornima NayarandSebastiaan Janssen d7c4f8f055 RelationService - Log to audit on RelationType Save 2020-07-30 17:56:29 +02:00
Callum WhyteandGitHub f2253bc090 Improving database field labels in installer (#8172) 2020-07-30 17:53:16 +02:00
Kenn JacobsenandSebastiaan Janssen a7e88efc22 Improve dictionary dashboard performance significantly 2020-07-30 17:48:45 +02:00
Ronald BarendseandGitHub 568135a249 Fix LogScrubber exception when cleaning up temp files (#8326) 2020-07-30 17:41:18 +02:00
Jan SkovgaardandGitHub 0e4979bd7f Convert menu actions to use umb-button-ellipsis component (#8503) 2020-07-30 17:32:50 +02:00
Nathan WoulfeandGitHub cb47e0f1f6 7731 bye bye underscore => _.each (#8475) 2020-07-30 17:20:56 +02:00
Bjarne FyrstenborgandGitHub 312e2fa949 Fetch membergroup by guid (#8496) 2020-07-30 17:12:18 +02:00
Kenn JacobsenandGitHub dd8ddbae27 Performance improvements to content type editor (#8506) 2020-07-30 17:04:14 +02:00
Bjarne FyrstenborgandGitHub 18ccbb70fd Adjust styling of variant switcher for not created variant (#8511) 2020-07-30 16:46:30 +02:00
Bjarne FyrstenborgandGitHub d1d50f2ff4 Logviewer adjustments (#8513) 2020-07-30 16:40:35 +02:00
Bjarne FyrstenborgandGitHub 56c3d5858b Query builder buttons (#8509) 2020-07-30 16:29:26 +02:00
Shannon 8b82f8e1c7 Ensures that the member resolved when setting last login date has the right data applied, finishes an outstanding TODO that will massively boost performance for sites that heavily use members (lots of logins) 2020-07-31 00:19:36 +10:00
Bjarne FyrstenborgandGitHub 27db255f77 Replace splitview close button with button element (#8510) 2020-07-30 15:45:52 +02:00
Bjarne FyrstenborgandGitHub 6edd0bbb6c Button doesn't show success or error icon after save (#8514) 2020-07-30 15:25:12 +02:00
Bjarne FyrstenborgandGitHub 68e5e5ead8 Use umb-icon in listview layout selector (#8515) 2020-07-30 15:22:23 +02:00
Bjarne FyrstenborgandGitHub 737291ce45 Adjustments to umb-icon with custom font icons (#8519) 2020-07-30 15:15:05 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 56d5286676 Don't log message if svg icon isn't found since it will fill log with errors for custom font icons where svg icons are not available 2020-07-30 15:03:56 +02:00
Shannon 8eab1f1b55 Fixes #8433 - member login sql locks 2020-07-30 22:59:58 +10:00
Kenn JacobsenandGitHub e25a81ef38 V8: Wildcards in tree searches causes YSODs (#7330) 2020-07-30 13:54:28 +02:00
Sebastiaan Janssen e390820f2e Remove redundant check 2020-07-30 13:40:48 +02:00
Shannon DeminickandGitHub 9e110124b5 Merge pull request #8270 from ronaldbarendse/v8/bugfix/propertyvalueconverterbase
PropertyValueConverterBase cleanup: fix IsValue, obsolete HasValue, add documentation
2020-07-30 21:18:30 +10:00
85cbcf74c0 Don't append empty file names to search results (#7331)
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
2020-07-30 13:03:58 +02:00
Kenn JacobsenandSebastiaan Janssen f46778de62 Remove usages of angular.forEach in users and groups editing 2020-07-30 12:49:23 +02:00
Kenn JacobsenandSebastiaan Janssen 56ca7fa603 Remove usages of angular.forEach in settings and translation 2020-07-30 12:38:58 +02:00
Kenn JacobsenandSebastiaan Janssen a93cc88756 Don't show empty search results on top of the search input field in the linkpicker 2020-07-30 12:19:27 +02:00
Kenn JacobsenandSebastiaan Janssen e387c3b27f Fix JS error when trying to insert a link in an empty RTE 2020-07-30 12:13:40 +02:00
Kenn JacobsenandSebastiaan Janssen 2e22ada442 Fix the alignment of the "delete property" button 2020-07-30 12:10:09 +02:00
Kenn JacobsenandSebastiaan Janssen 164140a709 Show keyboard input focus on file property editors 2020-07-30 12:08:38 +02:00
Kenn JacobsenandSebastiaan Janssen 794e14e558 Fix panel header spacing when a description is present 2020-07-30 12:06:45 +02:00
Kenn JacobsenandSebastiaan Janssen be6b051674 Make sure the RTE always loads minified resources + optimize the grid RTE resource loading 2020-07-30 12:03:17 +02:00
Kenn JacobsenandSebastiaan Janssen a9dfd9a568 "Selected"-checkbox in mini listview is always visible 2020-07-30 11:50:10 +02:00
Jan SkovgaardandGitHub 0e715483c7 umb-ellispsis-component: Fix visuals when used in the content app section (#8500) 2020-07-30 11:30:06 +02:00
Bjarne FyrstenborgandGitHub 81346f8fb3 Show open button for media and member in MNTP (#8476) 2020-07-29 13:44:39 +02:00
Mike MaseyandGitHub add1a99cc4 V8: Add umb-icon directive to backoffice to begin transition from icon fonts to svgs (#5606) 2020-07-29 11:29:49 +02:00
Bjarne FyrstenborgandSebastiaan Janssen eff630d3a0 Ensure replacement of angular.copy still works where second parameter is used for destination object. 2020-07-28 14:10:01 +02:00
Kenn JacobsenandSebastiaan Janssen 143f0c04a3 Don't anto-expand all content anchors on small screens 2020-07-28 14:07:04 +02:00
Kenn JacobsenandSebastiaan Janssen f017514a10 Don't allow the grid to steal focus on init 2020-07-28 14:04:58 +02:00
Bjarne FyrstenborgandSebastiaan Janssen d3c87ab043 Cleanup unused function shouldShowUrl 2020-07-28 14:02:27 +02:00
rickreadandGitHub 61892882de #8345 - Nested content not remembering value on variant switch (#8479) 2020-07-28 10:29:35 +02:00
Kenn JacobsenandSebastiaan Janssen 0aabc2f696 Do not rebind content types on save errors 2020-07-27 17:54:22 +02:00
Bjarne FyrstenborgandGitHub 27ffa68ddf Hide action button in tree (#8481) 2020-07-27 17:48:35 +02:00
Bjarne FyrstenborgandGitHub 1eb0c93e05 Get member group by id, guid and udi (#7528) 2020-07-27 17:29:01 +02:00
Bjarne FyrstenborgandGitHub 0f9de5d59b Richtext rules adjustments (#8480) 2020-07-27 17:28:00 +02:00
Bjarne FyrstenborgandGitHub 6b3daf8963 Change button style for redirect delete confirm (#8482) 2020-07-27 17:25:19 +02:00
Bjarne FyrstenborgandGitHub 8ac706e7fd Update screenshots in default dashboard (#8483) 2020-07-27 17:23:51 +02:00
Bjarne FyrstenborgandGitHub eef894c617 Update boolean/toggle/checkbox label prevalues (#8477) 2020-07-27 17:18:10 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 2dedaf888b Add missing esc shortcut to close overlay 2020-07-27 16:32:39 +02:00
Marc GoodsonandGitHub 991f2d0f42 V8: Add alternate 'List View' to Media Picker - Take 2 (#7912) 2020-07-27 16:13:07 +02:00
Nathan WoulfeandGitHub fc09eeefaf Fix null language in variant change event (#8474) 2020-07-27 10:35:27 +02:00
Bjarne FyrstenborgandSebastiaan Janssen f10a3ef3ca Custom angular elements can't be self-closing. This prevented the remove button from being rendered. 2020-07-27 09:47:22 +02:00
Evan MooreandSebastiaan Janssen 4460e8d369 Get missing crops from configuration 2020-07-27 09:38:40 +02:00
Nathan WoulfeandGitHub 6823cdaaa0 Merge pull request #7446 from kjac/v8/fix/disable-actions-button-until-actions-load
V8: Disable the actions menu button until there are actions available
2020-07-25 08:12:45 +10:00
Lars-Erik AabechandGitHub e8bb3b01aa Better crop mechanism for the grid image editor (#8023) 2020-07-24 16:47:09 +02:00
Bjarne FyrstenborgandGitHub 5d5c912d4d Make icon property for checkbox and radiobutton consistent with other components (#8467) 2020-07-24 10:07:06 +02:00
Jan SkovgaardandGitHub c95a7f2ef4 Add focus-lock directive (#8141) 2020-07-23 17:50:50 +02:00
Warren Buckley 48963f6548 Submit Rich Code Navigation GitHub action 2020-07-23 16:40:23 +01:00
Jan SkovgaardandGitHub 1cd79d81af umb-confirmation directive: move trashcan into directive and address accessibility issues (#8198) 2020-07-23 17:28:24 +02:00
Jan SkovgaardandGitHub ad29e628d8 Add umb-search-filter component (#8179) 2020-07-23 17:13:26 +02:00
Jan SkovgaardandGitHub b3e5c510a5 Add "umb-button-ellipsis" component (#8132) 2020-07-23 17:05:39 +02:00
Bjarne FyrstenborgandGitHub 5deb71cb4d Replace anchor elements with button element in image/media picker (#8321) 2020-07-23 16:51:01 +02:00
Bjarne FyrstenborgandGitHub 98a429e450 Replace anchor elements with button in member and member groups (#8320) 2020-07-23 16:50:00 +02:00
Bjarne FyrstenborgandGitHub 2023dbcf42 Replace anchor elements with button elements in treepicker (#8319) 2020-07-23 16:45:36 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 81c823803e Replace anchor elements with button elements in public access overlay 2020-07-23 16:44:13 +02:00
Bjarne FyrstenborgandGitHub 0bd9e3ca99 Member type infinite editing (#8027) 2020-07-23 16:42:04 +02:00
Bjarne FyrstenborgandSebastiaan Janssen e02b5a74d7 Replace traditional checkbox with umb-checkbox component. 2020-07-23 16:29:44 +02:00
Bjarne FyrstenborgandGitHub a1465dea75 Grid row configuration delete confirm (#8005) 2020-07-23 16:27:58 +02:00
Bjarne FyrstenborgandGitHub 41d1e33fc4 Add user picker property editor (#7613) 2020-07-23 16:08:24 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 2ca7cc9ccc Get dictionary item by id, guid and udi 2020-07-23 15:55:19 +02:00
Bjarne FyrstenborgandSebastiaan Janssen ca1d749f37 Get template by id, guid and udi 2020-07-23 15:54:08 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 2a4d4c82ff Get relation type by id, guid and udi 2020-07-23 15:52:57 +02:00
Bjarne FyrstenborgandGitHub 20eb8f9567 Access document, media and member types by guid and udi (#7514) 2020-07-23 15:51:53 +02:00
Bjarne FyrstenborgandGitHub 34749ec233 Replace compositions checkboxes (#6956) 2020-07-23 15:47:58 +02:00
Bjarne FyrstenborgandGitHub f50f4baa3a v8: Log viewer datepicker (#5890) 2020-07-23 15:37:01 +02:00
Tom PipeandGitHub dc39faeb5e Allow treepicker configuration to filter on metadata using JSON format (#7511) 2020-07-22 20:55:18 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 4fe5aaf8c4 Update button in package overview not to use flexbox and inner wrapper using flexbox instead 2020-07-22 20:48:40 +02:00
Poornima NayarandSebastiaan Janssen b21f5f59b0 Logging content blueprint save in back office to log table 2020-07-22 20:34:31 +02:00
Poornima NayarandGitHub 4e420c1936 Added GetLog method to LogController (#8188) 2020-07-22 20:33:46 +02:00
MikeandSebastiaan Janssen 259ef3d391 fix: remove auto focus from package search box 2020-07-22 20:32:35 +02:00
Jan SkovgaardandGitHub f7c9d045a3 Random fixes for nested content "add" button (#8205) 2020-07-22 20:27:19 +02:00
Jan SkovgaardandGitHub bced145be6 Improve the accessibility of the cog icon (#8206) 2020-07-22 20:25:57 +02:00
BatJanandSebastiaan Janssen 3441200a7f Convert a to button and fix some texts and make them more specific in a non visual context 2020-07-22 20:22:33 +02:00
Anders BjernerandGitHub 5642e56dd7 umb-notifications.html - added option for setting the target attribute (#8224) 2020-07-22 20:19:15 +02:00
Bjarne FyrstenborgandGitHub 7c982febad Add config to define true and false value (#8229) 2020-07-22 20:13:11 +02:00
Nathan WoulfeandSebastiaan Janssen b0f26dabc5 update date-format matching for formats with am/pm 2020-07-22 20:00:49 +02:00
Markus JohanssonandSebastiaan Janssen bafd058aa8 #8280 Using IOHelper for Log files 2020-07-22 19:57:14 +02:00
Mike ChambersandSebastiaan Janssen ee15c68f04 Update dependencies.js
DevTools failed to load SourceMap: Could not load content for https://localhost:44313/umbraco/lib/angular-aria/angular-aria.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
2020-07-22 19:53:33 +02:00
Bjarne FyrstenborgandGitHub 41a31af993 Media picker folder icon (#8305) 2020-07-22 19:48:55 +02:00
Bjarne FyrstenborgandGitHub 14e92e1583 Remove sorting in grid layout configuration (#8354) 2020-07-22 19:45:22 +02:00
Nathan WoulfeandSebastiaan Janssen 99a3dec4ba emit event when changing variant, quick syntax/style tidyup 2020-07-22 19:37:40 +02:00
Bjarne FyrstenborgandGitHub 0d7c65de3e Grid config allow editors toggle (#8357) 2020-07-22 19:33:38 +02:00
Bjarne FyrstenborgandGitHub 6ed0d03da3 Use ace editor json mode for grid configuration (#8361) 2020-07-22 19:26:24 +02:00
Rachel BreezeandGitHub 0a01601523 v8: Improvements to accessibility of translations section (#8383) 2020-07-22 19:08:18 +02:00
Joshua BrownandGitHub 511a7f1371 Fix for issue #7461 ("Inserting a macro in the rich test editor (RTE) in the Grid makes it disappear on Save & Publish") (#8437) 2020-07-22 19:05:07 +02:00
Bjarne FyrstenborgandGitHub 78c429c4af Streamline umb-checkbox and umb-radiobutton components (#8441) 2020-07-22 18:56:58 +02:00
Bjarne FyrstenborgandGitHub 7b8ef85541 Adjust toggle styling when checked and disabled (#8445) 2020-07-22 18:55:47 +02:00
Callum WhyteandSebastiaan Janssen 869f0e2d11 Improving umb-button link docs 2020-07-22 18:53:41 +02:00
Shannon 639c7a40ee Merge branch 'v8/8.6' into v8/dev
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Core/Runtime/SqlMainDomLock.cs
#	src/Umbraco.Examine/IndexRebuilder.cs
#	src/Umbraco.Web.UI.Client/src/common/directives/components/application/umbtour.directive.js
#	src/Umbraco.Web.UI.Client/src/common/services/clipboard.service.js
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.controller.js
2020-07-20 16:03:10 +10:00
dependabot[bot]andSebastiaan Janssen 888109f69b Bump lodash from 4.17.15 to 4.17.19 in /src/Umbraco.Web.UI.Client
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-16 14:03:15 +02:00
Bjarne FyrstenborgandGitHub 463128734c Sort on y-axis in sort dialog (#8419) 2020-07-14 18:06:30 +02:00
Kenn JacobsenandSebastiaan Janssen 4b9edc63dd Fix folder uploads when existing image names clash with the uploaded folder name 2020-07-14 17:37:34 +02:00
Kenn JacobsenandGitHub 321bb12a83 Show custom label properties on members (#8346) 2020-07-14 17:15:58 +02:00
Bjarne FyrstenborgandGitHub da1a274dbf Grid config row and editor checkboxes (#8363) 2020-07-14 16:49:24 +02:00
Bjarne FyrstenborgandSebastiaan Janssen e66fd7b8e0 Adjust border radius of button in button group if having sub buttons 2020-07-14 16:46:23 +02:00
Bjarne FyrstenborgandGitHub 68ed7c908b Show SVG preview on upload (#8387) 2020-07-14 16:23:34 +02:00
Bjarne FyrstenborgandSebastiaan Janssen f02a16f094 Register dragover state of file upload 2020-07-14 15:55:10 +02:00
hkooikerandGitHub 984214ea7b Member picker value converter (#8401) 2020-07-14 15:47:33 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 2f7cf8cb0f Align group builder property actions to top 2020-07-14 15:16:28 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 0d7741d211 Allow editor info to shrink for longer datatype names 2020-07-14 15:15:37 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 6da85dd47d Remove unnecessary translation to removed variable 2020-07-14 15:04:31 +02:00
Gareth EvansandSebastiaan Janssen 6fc8126076 #8412 Set ng-maxlength and maxlength attributes on the tag input in umb-tags-editor.html to avoid a string or binary data would be truncated error when the entered tag exceeds the database column length 2020-07-14 14:57:44 +02:00
Bjarne FyrstenborgandGitHub e6f264136c Adjust tooltip position inside overlay (#8416) 2020-07-14 14:56:25 +02:00
Bjarne FyrstenborgandGitHub 39da781dac Sort on y-axis in listview config layouts (#8422) 2020-07-14 14:48:29 +02:00
Bjarne FyrstenborgandGitHub c89fa6fe69 Listview columns grouping (#8423) 2020-07-14 14:02:06 +02:00
Bjarne FyrstenborgandGitHub 8c8c26bc9a Adjust target overlay position using hotkey (#8431) 2020-07-14 13:58:57 +02:00
Sebastiaan JanssenandGitHub d347d36861 Don't run CodeQL on PRs for now 2020-07-14 13:48:46 +02:00
Marc GoodsonandGitHub fbd2a30606 Update 'default value' title + description of CheckBox Configuration (#8421) 2020-07-14 13:24:21 +02:00
Marc GoodsonandSebastiaan Janssen 6b5e19fcf2 Add the current culture to the cache key used for the CachedPartial Html Helper
when using variants it's unlikely to need the same Html.Partial to be cached across all language variations, if we always add the current culture name to the cache key, we ensure this doesn't accidentally happen, and when not using variants, no harm to have the culture for the single site included here
2020-07-14 13:22:52 +02:00
Sebastiaan JanssenandGitHub 9f9cd0e11e Trying to get CodeQL to run (#8415) 2020-07-13 17:22:27 +02:00
Emma Garland d3b97ae23c Tour Data progress is not in a cookie - it is stored in the database (what the User has completed so far) in a column in the umbracoUser table.
Since we want to act like the tour has not been run before, at the start and end of each test we need to clean up by resetting the tour data so that the default user in the database hasn't already completed the tour.
I used the similar command style from the umbraco-cypress-testhelpers project - we may want to move this out of the test itself, but I wanted to make sure this approach was right first.
2020-07-10 16:33:45 +01:00
Sebastiaan JanssenandGitHub 19ec14b53f Create codeql-analysis.yml
First stab at getting CodeQL analysis running
2020-07-10 08:57:41 +02:00
Sebastiaan JanssenandGitHub 889c4b413d Dependabot got very confused, this updates the npm dependency 2020-07-10 08:44:08 +02:00
Bjarne FyrstenborgandSebastiaan Janssen b6f6b1a438 Use umb-code-snippet component for insert field code snippet 2020-07-09 17:32:16 +02:00
Bjarne FyrstenborgandSebastiaan Janssen b8e23ac56f Use property editor width limit for slider property editor 2020-07-09 17:30:49 +02:00
Bjarne FyrstenborgandSebastiaan Janssen b67d56804c Ensure primary button style for save-button in content template create view 2020-07-09 17:29:02 +02:00
Jan SkovgaardandGitHub fbbfb4f943 Fix checkbox and radio label alignment (#8253) 2020-07-09 17:28:08 +02:00
Dan RussellandSebastiaan Janssen df7f250091 Update umbracoSettings.config
Restored EOF newline
2020-07-09 17:17:42 +02:00
Dan RussellandSebastiaan Janssen d01027be50 Update modals.less
Replaced "0px" with unitless 0
2020-07-09 17:15:12 +02:00
Bjarne FyrstenborgandGitHub b5c099b15a Remove empty strings from repeatable textstrings whitespace (#8269) 2020-07-09 17:14:01 +02:00
Bjarne FyrstenborgandSebastiaan Janssen c019872eb4 Update nouislider dependency to latest version 2020-07-09 17:12:15 +02:00
Bjarne FyrstenborgandGitHub a2430929a5 Fix translations files including icon HTML (#8408) 2020-07-09 17:05:30 +02:00
Bjarne FyrstenborgandGitHub 4bc1800d48 Use overlayService for user overlay (#8047) 2020-07-09 16:58:59 +02:00
Bjarne FyrstenborgandGitHub 7b106ebefb Adjust example for overlay in umb-child-selector (#8045) 2020-07-09 16:48:27 +02:00
Bjarne FyrstenborgandGitHub 327d5ae7fb Adjust nested content overlay (#8044) 2020-07-09 16:04:43 +02:00
Ismail MayatandGitHub ffb53109bc 8192 with integration test (#8403) 2020-07-09 09:13:05 +02:00
Bjarke BergandGitHub f81a2635d1 Merge pull request #8386 from emmagarland/v8/feature/acceptancetests-cypress-backofficetour
Added initial Cypress test for BackOffice tour.
2020-07-09 07:53:18 +02:00
nzdev d1449a0f5c Fix key mapping 2020-07-09 11:50:15 +12:00
Ismail MayatandGitHub 77a4b2af8b fix for 8192 make call to add missing bits to userdto (#8399) 2020-07-08 14:23:55 +01:00
nzdev c1c189d47f Wip support for compressing/decompressing nucache documents on a per property basis. Option for compressing the properties in sql/nucache.db. Option for immediate/lazy decompression of properties. Mapping support for shorter property alias.
TODO: config file for property map
TODO:  HasValue and IsValue on propertyvalueconverterbase
2020-07-09 00:17:31 +12:00
nzdev 8d96725345 Merge branch 'v8/feature/nucache-perf' of https://github.com/umbraco/Umbraco-CMS into v8/feature/nucache-perf 2020-07-08 11:32:19 +12:00
Ronald BarendseandGitHub 872731f726 Update HasValue obsolete message 2020-07-07 23:30:34 +02:00
Nathan WoulfeandGitHub d1bc742f9a Update variables.less
Merge pull request #8298 from dangrussell/patch-4
2020-07-07 08:41:30 +10:00
Emma Garland f5e4bef531 Added initial Cypress test for BackOffice tour. 2020-07-06 11:45:47 +01:00
Shannon 1280235dcf Adds custom mapper for SqlCe for Image column, hopefully tests pass now. 2020-07-06 16:25:15 +10:00
Nathan WoulfeandGitHub 6db0dbe5c9 Merge pull request #8046 from bjarnef/v8/feature/ysod-overlay
Replace ysod umb-overlay using overlayService.ysod
2020-07-06 08:23:21 +10:00
Nathan WoulfeandGitHub db69431894 Merge pull request #7980 from IK1235/v8/contrib
Admin czech translation
2020-07-06 08:20:40 +10:00
Nathan WoulfeandGitHub b281f7f768 Merge pull request #7231 from soreng/patch-6
MEGA CHANGE GETS MEGA MERGE!
2020-07-06 08:16:42 +10:00
Shannon a634c0b835 Merge branch 'v8/feature/nucache-perf' of https://github.com/umbraco/Umbraco-CMS into v8/feature/nucache-perf 2020-07-03 16:30:43 +10:00
Shannon e8717e6bf8 fixing tests and sqlce blob column 2020-07-03 16:30:20 +10:00
Shannon DeminickandGitHub 0d4f5c9ea7 Merge pull request #8378 from nzdev/v8/feature/nucache-perf
support uInt32
2020-07-03 16:03:03 +10:00
nzdev 76a718c5bc Merge branch 'v8/feature/nucache-perf' of https://github.com/umbraco/Umbraco-CMS into v8/feature/nucache-perf 2020-07-03 17:53:00 +12:00
Shannon c79b17cc48 fixing tests 2020-07-03 15:46:36 +10:00
Shannon 39625d94dd Adds migration for binary column on cmsContentNu 2020-07-03 15:41:25 +10:00
nzdev 40184c0c3c support uInt32 2020-07-03 16:56:08 +12:00
Shannon de67bdc2a2 Fixing build/tests 2020-07-03 14:50:21 +10:00
Shannon 9b827df11a Allows serializer to be configured 2020-07-03 13:30:40 +10:00
Shannon c63bfb866b Adds MessagePack serialization for nucache 2020-07-03 12:11:05 +10:00
Shannon e2ab2d2798 Merge branch 'nzdev-v8/nucache-serializer' into v8/feature/nucache-perf 2020-07-03 00:53:06 +10:00
Shannon dd6cebca82 Merge branch 'v8/nucache-serializer' of https://github.com/nzdev/Umbraco-CMS into nzdev-v8/nucache-serializer 2020-07-03 00:52:40 +10:00
Shannon e75c9d2273 Interns strings for aliases, etc... for when content is deserialized from the contentNu table so we aren't duplicating strings when cold booting. 2020-07-03 00:26:55 +10:00
ShannonandSebastiaan Janssen b078f856b9 Remove the usage of Parallel to run the populators 2020-07-02 13:44:33 +02:00
Shannon d2042e28e1 Adds string interning for reading of property alias, culture and segment when reading from the content cache 2020-07-02 21:27:48 +10:00
Shannon bb2fe5d2d6 Adds notes about SQL call 2020-07-02 20:56:42 +10:00
Shannon 3735b6d391 Fixes paging size for querying the nucache table so it doesn't timeout 2020-07-02 16:21:54 +10:00
nzdev 7ad019c18a remove example nested content serializer as it is not production ready. 2020-07-01 17:49:34 +12:00
nzdev 578e1317a0 Introduce IContentNestedDataSerializer to allow injecting a custom serializer for nucache 2020-07-01 17:19:56 +12:00
Bjarke BergandSebastiaan Janssen 402958c591 Updated Cypress to latest + Created tests for creating member and member group 2020-06-30 15:19:54 +02:00
Shannon 1aa46ab1da Starts adding ability to have custom view for login in place 2020-06-22 15:08:54 +10:00
Shannon 9f6b72327e more support for back office external login provider errors 2020-06-19 12:04:16 +10:00
Shannon f0fdda2f0a Start adding support for better error handling during external login processing 2020-06-19 11:24:03 +10:00
Shannon 91dd282fcb one less warning 2020-06-17 17:09:31 +10:00
Dan RussellandGitHub 78cba26afe Update variables.less
Replace "0px" with unitless 0
2020-06-16 10:12:22 -04:00
Shannon 5ac02431cf Allows for customizing the invite link, had to update umb-button to support external href, streamlines external login provider configs 2020-06-16 14:48:43 +10:00
Shannon 4385929628 Ensures user cannot change email addresses if deny local login, consolidates some logic into ext methods and constants 2020-06-16 12:04:59 +10:00
Shannon 9bbcee477a allows some methods to be overriden 2020-06-16 11:16:17 +10:00
Shannon cfc7bf257d Allows for oauth auto login redirect 2020-06-16 10:39:37 +10:00
Shannon 3cc11d7b6f Auto-links existing users by email, implements the logic for DenyLocalLoginAuthorizationAttribute 2020-06-16 10:02:56 +10:00
Ronald Barendse 249b3b8609 Update XML documentation 2020-06-11 00:49:59 +02:00
Ronald Barendse eac6351c3f Simplified value check using type pattern matching 2020-06-11 00:49:44 +02:00
Ronald Barendse c3e58df3b5 Obsolete HasValue method 2020-06-11 00:45:12 +02:00
Ronald Barendse 1d6849c578 Return null in IsValue for PropertyValueLevel.Inter and Object 2020-06-11 00:38:51 +02:00
Shannon acd7588c52 adds missing js func 2020-05-14 12:05:07 +10:00
Shannon 2f7b65ef8f start adding DenyLocalLoginAuthorizationAttribute 2020-05-07 15:09:18 +10:00
Shannon 1ba940b03d Updates UI to not show user options when there is a provider with deny local login 2020-05-06 18:53:13 +10:00
Bjarne Fyrstenborg 02a8beca27 Replace umb-overlay using overlayService.ysod 2020-05-01 15:40:45 +02:00
Ivo Kolář b893dd2c65 - admin czech translation 2020-04-20 11:53:26 +02:00
emma burstow 2a277eec6b Merge branch 'v8/contrib' into pr/7231 2020-02-19 13:35:22 +00:00
Niels Lyngsø a9732cb233 corrected button style to match new style 2020-02-06 14:57:25 +01:00
Shannon 88df0fe691 Adds new methods to MembershipHelper for dealing with checking bulk paths for access 2020-02-07 00:17:21 +11:00
Niels Lyngsø 342bce5c58 keep umb-editor inside viewport width 2020-02-03 14:56:57 +01:00
Kenn Jacobsen c3937d6e62 Disable the actions menu button until there are actions available 2020-01-10 12:58:58 +01:00
Niels Lyngsø 27fdc16569 added round corners in umb-media-grid for media-picker 2020-01-09 14:19:42 +01:00
Søren GregersenandGitHub 5b713af96c Removed unused jQuery
MEGA CHANGE! But every bit of jQuery removed from the internet is a good change :)
2019-11-26 21:00:45 +01:00
Niels Lyngsø 8e0693feaf fixing history headline + minor style adjustments 2019-11-26 13:11:48 +01:00
Niels Lyngsø ee82475335 remove out icon 2019-11-26 11:03:49 +01:00
Niels Lyngsø 407f6b1ab8 set a minimum version requirement for node 2019-11-14 13:32:42 +01:00
2359 changed files with 82796 additions and 23149 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ To build Umbraco, fire up PowerShell and move to Umbraco's repository root (the
build/build.ps1
If you only see a build.bat-file, you're probably on the wrong branch. If you switch to the correct branch (dev-v8) the file will appear and you can build it.
If you only see a build.bat-file, you're probably on the wrong branch. If you switch to the correct branch (v8/contrib) the file will appear and you can build it.
You might run into [Powershell quirks](#powershell-quirks).
+78 -18
View File
@@ -1,32 +1,92 @@
# Code Of Conduct
Our informal code of conduct concentrates on the values we, as Umbraco HQ, have set for ourselves and for our community. We expect you to be a friend.
Instead of listing out all the exact "do's" and "don't's" we want to challenge you to think about our values and apply them:
# Umbraco Code of Conduct
If there's a need to talk to Umbraco HQ about anything, please make sure to send a mail to [Sebastiaan Janssen - sj@umbraco.dk](mailto:sj@umbraco.dk).
## Preamble
## Be a Friend
We are the friendly CMS. And our friendliness stems from our values. That's why we have set for ourselves, Umbraco HQ, and the community, five values to guide us in everything we do:
We welcome and thank you for registering at Our Umbraco. Find below the values that govern Umbraco and which you accept by using Our Umbraco.
* Trust - We believe in and empower people
* Respect - We treat others as we would like to be treated
* Open - We share our thoughts and knowledge
* Hungry - We want to do things better, best is next
* Friendly - We want to build long-lasting relationships
## Trust
With these values in mind, we want to offer the Umbraco community a code of conduct that specifies a baseline standard of behavior so that people with different social values and communication styles can work together.
Assume positive intent and try to understand before being understood.
This code of conduct is based on the widely used Contributor Covenant, as described in [https://www.contributor-covenant.org/](https://www.contributor-covenant.org/)
## Respect
## Our Pledge
Treat others as you would like to be treated.
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
This also goes for treating the HQ with respect. For example: dont promote products on [our.umbraco.com](https://our.umbraco.com) that directly compete with our commercial offerings which enables us to work for a sustainable Umbraco.
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
## Open
## Our Standards
Examples of behavior that contributes to a positive environment for our community include:
Be honest and straightforward. Tell it as it is. Share thoughts and knowledge and engage in collaboration.
* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
* Focusing on what is best not just for us as individuals, but for the overall community
## Hungry
Examples of unacceptable behavior include:
Don't rest on your laurels and never accept the status quo. Contribute and give back to fellow Umbracians.
* The use of sexualized language or imagery, and sexual attention or advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting
## Friendly
## Enforcement Responsibilities
Dont judge upon mistakes made but rather upon the speed and quality with which mistakes are corrected. Friendly posts and contributions generate smiles and build long lasting relationships.
Community leaders (e.g. Meetup & festival organizers, moderators, maintainers, ...) are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
Specific enforcement steps are listed in the [Code of Conduct Enforcement Guidelines](https://github.com/umbraco/Umbraco-CMS/blob/v8/contrib/.github/CODE_OF_CONDUCT_ENFORCEMENT.md) document which is an appendix of this document, updated and maintained by the Code of Conduct Team.
## Scope
This Code of Conduct applies within all community spaces and events supported by Umbraco HQ or using the Umbraco name. It also applies when an individual is officially representing the community in public spaces.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior, may be reported at [conduct@umbraco.com](mailto:conduct@umbraco.com). All complaints will be reviewed and investigated promptly and fairly.
Or alternatively, you can reach out directly to any of the team members behind the address above:
* Sebastiaan Janssen (He, Him - Languages spoken: English, Dutch, Danish(Read)) [sebastiaan@umbraco.com](mailto:sebastiaan@umbraco.com)
* Ilham Boulghallat (She, Her - Languages spoken: English, French, Arabic) [ilham@umbraco.com](mailto:ilham@umbraco.com)
* Arnold Visser (He, Him - Languages spoken: English, Dutch) [arnold@umbraco.com](mailto:arnold@umbraco.com)
The review process is done with full respect for the privacy and security of the reporter of any incident.
People with a conflict of interest should exclude themselves or if necessary be excluded by the other team members.
## Enforcement Guidelines
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
**1. Correction**
Community Impact: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
Consequence: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
**2. Warning**
Community Impact: A violation through a single incident or series of actions.
Consequence: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
**3. Temporary Ban**
Community Impact: A serious violation of community standards, including sustained inappropriate behavior.
Consequence: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
**4. Permanent Ban**
Community Impact: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
Consequence: A permanent ban from any sort of public interaction within the community.
## Attribution
This Code of Conduct is adapted from the Contributor Covenant, version 2.0, available at [https://www.contributor-covenant.org/version/2/0/code_of_conduct.html](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html).
This Code of Conduct will be maintained and reviewed by the team listed above.
+57
View File
@@ -0,0 +1,57 @@
# Umbraco Code of Conduct Enforcement guidelines - Consequence Ladder
These are the steps followed by the [Umbraco Code of Conduct Team](https://github.com/umbraco/Umbraco-CMS/blob/v8/contrib/.github/CODE_OF_CONDUCT.md) when we respond to an issue or incident brought to our attention by a community member.
This is an appendix to the Code of Conduct and is updated and maintained by the Code of Conduct Team.
To make sure that all reports will be reviewed and investigated promptly and fairly, as highlighted in the Umbraco Code of Conduct, we are following [Mozillas Consequence Ladder approach](https://github.com/mozilla/inclusion/blob/master/code-of-conduct-enforcement/consequence-ladder.md).
This approach helps the Team enforce the Code of Conduct in a structured manner and can be used as a way of communicating escalation. Each time the Team takes an action (warning, ban) the individual is made aware of future consequences. The Team can either follow the order of the levels in the ladder or decide to jump levels. When needed, the team can go directly to a permanent ban.
**Level 0: No Action**
Recommendations do not indicate a violation of the Code of Conduct.
**Level 1: Simple Warning Issued**
A private, written warning from the Code of Conduct Team, with clarity of violation, consequences of continued behavior.
**Level 2: Warning**
A private, written warning from the Code of Conduct Team, with clarity of violation, consequences of continued behavior. Additionally:
* Communication of next-level consequences if behaviors are repeated (according to this ladder).
**Level 3: Warning + Mandatory Cooling Off Period (Access Retained)**
A private warning from the Code of Conduct Team, with clarity of violation, consequences of continued behavior. Additionally:
* Request to avoid interaction on community messaging platforms (public forums, Our, commenting on issues).
* This includes avoiding any interactions in any Umbraco channels, spaces/offices, as well as external channels like social media (e.g. Twitter, Facebook, LinkedIn). For example, 'following/liking/retweeting' would be considered a violation of these terms, and consequence would escalate according to this ladder.
* Require they do not interact with others in the report, or those who they suspect are involved in the report.
* Suggestions for 'out of office' type of message on platforms, to reduce curiosity, or suspicion among those not involved.
**Level 4: Temporary Ban (Access Revoked)**
Private communication of ban from the Code of Conduct Team, with clarity of violation, consequences of continued behavior. Additionally:
* 3-6 months imposed break.
* All accounts deactivated, or blocked during this time (Our, HQ Slack if applicable).
* Require to avoid interaction on community messaging platforms (public forums, Our, commenting on issues).
* This includes avoiding any interactions in any Umbraco channels, spaces/offices, as well as external channels like social media (e.g. Twitter, Facebook, LinkedIn). For example, 'following/liking/retweeting' would be considered a violation of these terms, and consequence would escalate according to this ladder.
* All community leadership roles (e.g. Community Teams, Meetup/festival organizer, Commit right on Github..) suspended. (onboarding/reapplication required outside of this process)
* No attendance at Umbraco events during the ban period.
* Not allowed to enter Umbraco HQ offices during the ban period.
* Permission to use the MVP title, if applicable, is revoked during this ban period.
* The community leaders running events and other initiatives are informed of the ban.
**Level 5: Permanent Ban**
Private communication of ban from the Code of Conduct Team, with clarity of violation, consequences of continued behavior. Additionally:
* All accounts deactivated permanently.
* No attendance at Umbraco events going forward.
* Not allowed to enter Umbraco HQ offices permanently.
* All community leadership roles (e.g. Community Teams, Meetup/festival organizer, Commit right on Github..) permanently suspended.
* Permission to use the MVP title, if applicable, revoked.
* The community leaders running events and other initiatives are informed of the ban.
Sources:
* [Mozilla Code of Conduct - Enforcement Consequence Ladder](https://github.com/mozilla/inclusion/blob/master/code-of-conduct-enforcement/consequence-ladder.md)
* [Drupal Conflict Resolution Policy and Process](https://www.drupal.org/conflict-resolution)
* [Django Code of Conduct - Enforcement Manual](https://www.djangoproject.com/conduct/enforcement-manual/)
+19 -6
View File
@@ -16,6 +16,7 @@ This project and everyone participating in it, is governed by the [our Code of C
[Contributing code changes](#contributing-code-changes)
* [Guidelines for contributions we welcome](#guidelines-for-contributions-we-welcome)
* [Ownership and copyright](#ownership-and-copyright)
* [What can I start with?](#what-can-i-start-with)
* [How do I begin?](#how-do-i-begin)
* [Pull requests](#pull-requests)
@@ -44,6 +45,17 @@ We have [documented what we consider small and large changes](CONTRIBUTION_GUIDE
Remember, it is always worth working on an issue from the `Up for grabs` list or even asking for some feedback before you send us a PR. This way, your PR will not be closed as unwanted.
#### Ownership and copyright
It is your responsibility to make sure that you're allowed to share the code you're providing us.
For example, you should have permission from your employer or customer to share code.
Similarly, if your contribution is copied or adapted from somewhere else, make sure that the license allows you to reuse that for a contribution to Umbraco-CMS.
If you're not sure, leave a note on your contribution and we will be happy to guide you.
When your contribution has been accepted, it will be [MIT licensed](https://github.com/umbraco/Umbraco-CMS/blob/v8/contrib/LICENSE.md) from that time onwards.
### What can I start with?
Unsure where to begin contributing to Umbraco? You can start by looking through [these `Up for grabs` issues](https://github.com/umbraco/Umbraco-CMS/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+label%3Acommunity%2Fup-for-grabs+)
@@ -102,10 +114,11 @@ That said, the Umbraco development team likes to follow the hints that ReSharper
The Core Contributors team consists of one member of Umbraco HQ, [Sebastiaan](https://github.com/nul800sebastiaan), who gets assistance from the following community members who have comitted to volunteering their free time:
- [Anders Bjerner](https://github.com/abjerner)
- [Emma Burstow](https://github.com/emmaburstow)
- [Poornima Nayar](https://github.com/poornimanayar)
- [Kenn Jacobsen](https://twitter.com/KennJacobsen_DK)
- [Nathan Woulfe](https://github.com/nathanwoulfe)
- [Joe Glombek](https://github.com/glombek)
- [Laura Weatherhead](https://github.com/lssweatherhead)
- [Michael Latouche](https://github.com/mikecp)
- [Owain Williams](https://github.com/OwainWilliams)
These wonderful people aim to provide you with a first reply to your PR, review and test out your changes and on occasions, they might ask more questions. If they are happy with your work, they'll let Umbraco HQ know by approving the PR. Hq will have final sign-off and will check the work again before it is merged.
@@ -123,12 +136,12 @@ You can get in touch with [the core contributors team](#the-core-contributors-te
In order to build the Umbraco source code locally, first make sure you have the following installed.
* [Visual Studio 2017 v15.9.7+](https://visualstudio.microsoft.com/vs/)
* [Visual Studio 2019 v16.8+ (with .NET Core 3.0)](https://visualstudio.microsoft.com/vs/)
* [Node.js v10+](https://nodejs.org/en/download/)
* npm v6.4.1+ (installed with Node.js)
* [Git command line](https://git-scm.com/download/)
The easiest way to get started is to open `src\umbraco.sln` in Visual Studio 2017 (version 15.9.7 or higher, [the community edition is free](https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Community&rel=15) for you to use to contribute to Open Source projects). In Visual Studio, find the Task Runner Explorer (in the View menu under Other Windows) and run the build task under the gulpfile.
The easiest way to get started is to open `src\umbraco.sln` in Visual Studio 2019 (version 16.3 or higher, [the community edition is free](https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Community&rel=15) for you to use to contribute to Open Source projects). In Visual Studio, find the Task Runner Explorer (in the View menu under Other Windows) and run the build task under the gulpfile.
Alternatively, you can run `build.ps1` from the Powershell command line, which will build both the backoffice (also known as "Belle") and the Umbraco core. You can then easily start debugging from Visual Studio, or if you need to debug Belle you can run `gulp dev` in `src\Umbraco.Web.UI.Client`. See [this page](BUILD.md) for more details.
+52
View File
@@ -0,0 +1,52 @@
---
name: 🐛 Bug Report
description: "File a bug report, if you've discovered a problem in Umbraco."
labels: "type/bug"
body:
- type: input
id: "version"
attributes:
label: "Which *exact* Umbraco version are you using? For example: 8.13.1 - don't just write v8"
description: "Use the help icon in the Umbraco backoffice to find the version you're using"
validations:
required: true
- type: textarea
id: "summary"
attributes:
label: "Bug summary"
description: "Write a short summary of the bug."
placeholder: >
Try to pinpoint it as much as possible.
Try to state the actual problem, and not just what you think the solution might be.
validations:
required: true
- type: textarea
attributes:
label: "Specifics"
id: "specifics"
description: "Remember that you can format code and logs nicely with the `<>` button"
placeholder: >
Mention the URL where this bug occurs, if applicable
Please mention if you've checked it in other browsers as well
Please include full error messages and screenshots, gifs or mp4 videos if applicable
- type: textarea
attributes:
label: "Steps to reproduce"
id: "reproduction"
description: "How can we reproduce the problem on a clean Umbraco install?"
placeholder: >
Please include screenshots, gifs or mp4 videos if applicable
validations:
required: true
- type: textarea
attributes:
label: "Expected result / actual result"
id: "result"
description: "What did you expect that would happen on your Umbraco site and what is the actual result of the above steps?"
placeholder: >
Describe the intended/desired outcome after you did the steps mentioned.
Describe the behaviour of the bug
-66
View File
@@ -1,66 +0,0 @@
---
name: 🐛 Bug Report
about: File a bug report, if you've discovered a problem in Umbraco.
---
A brief description of the issue goes here.
<!--
Please fill out the rest of the details in the issue template below.
The more details you can give us, the easier it will be for us
to determine the cause of a problem.
-->
## Umbraco version
I am seeing this issue on Umbraco version: <!-- please note the version here -->
Reproduction
------------
If you're filing a bug, please describe how to reproduce it. Include as much
relevant information as possible, such as:
### Bug summary
<!--
* Write a short summary of the bug
* Try to pinpoint it as much as possible
* Try to state the _actual problem_, and not just what you _think_ the
solution might be.
-->
### Specifics
<!--
* Mention the URL where this bug occurs, if applicable
* What version of Umbraco are you using (down to the very last digit!)
* What browser and version you are using
* Please mention if you've checked it in other browsers as well
* Please include *full error messages* and *screenshots* if possible
-->
### Steps to reproduce
<!--
* Clearly mention the steps to reproduce the bug
-->
### Expected result
<!--
* What did you _expect_ that would happen on your Umbraco site?
* Describe the intended/desired outcome after you did the steps mentioned.
-->
### Actual result
<!--
* What is the actual result of the above steps?
* Describe the behaviour of the bug
* Please, please include **error messages** and screenshots. They might mean
nothing to you, but they are _very_ helpful to us.
-->
@@ -1,31 +0,0 @@
---
name: 📮 Feature Request
about: Open a feature request, if you want to propose a new feature.
---
A brief description of your feature request goes here.
<!--
If you want to discuss the feature you're imagining, please make sure to keep
those discussions on the forum at https://our.umbraco.com/ (choose the
category "Contributing to Umbraco", Umbraco HQ follows all new topics there).
Once you've come to a conclusion in the discussion, feel free to propose the
new feature here.
-->
How can you help?
-------------------------------
<!--
The resources (read: available time and effort) of Umbraco's core team are
limited.
If we can not work on your suggestion, please don't take it personally. Most
likely, it's either:
- We think your idea is valid, but we can't find the time to work on it.
- Your idea might be better suited as a package, if it's not suitable for
the majority of users.
-->
@@ -1,9 +0,0 @@
---
name: ⁉️ Support Question
about: Having trouble with Umbraco? -> https://our.umbraco.com
---
This issue tracker is NOT meant for support questions. If you have a question,
please join us on the forum at https://our.umbraco.com.
Thanks!
@@ -1,9 +0,0 @@
---
name: 📖 Documentation Issue
about: See https://github.com/umbraco/UmbracoDocs/issues for documentation issues
---
The Umbraco documentation has its own dedicated repository. Please open your
documentation-related issue at https://github.com/umbraco/UmbracoDocs/issues
Thanks!
@@ -1,31 +0,0 @@
---
name: 🔐 Security Issue
about: Discovered a Security Issue in Umbraco?
---
⚠️ PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY, SEE BELOW.
If you have found a security issue in Umbraco, please send the details to
security@umbraco.com and don't disclose it publicly until we can provide a fix for
it. If you wish, we'll credit you for finding verified issues, when we release
the patched version.
❗ Please read more about how to report security issues on https://umbraco.com/security
A note on "Self XSS"
--------------------
Umbraco is a CMS, that allows users to edit content on a website. As such,
all _authenticated users_ can:
- Edit content, and (depending on the field types) insert HTML and CSS in that
content, with a variety of allowed attributes.
- Depending on the user level: Edit template files, and insert C#, HTML, CSS and
javascript in so on.
- Upload files to the site, which will become publicly available.
We see these functionalities as _features_, and not as security issues. Please
report the mentioned items only if they can be performed by non-authorized
users, or other exploitable vulnerabilities.
Thanks!
+14
View File
@@ -0,0 +1,14 @@
blank_issues_enabled: false
contact_links:
- name: 💡 Features and ideas
url: https://github.com/umbraco/Umbraco-CMS/discussions/new?category=features-and-ideas
about: Start a new discussion when you have ideas or feature requests, eventually discussions can turn into plans
- name: ⁉️ Support Question
url: https://our.umbraco.com
about: This issue tracker is NOT meant for support questions. If you have a question, please join us on the forum.
- name: 📖 Documentation Issue
url: https://github.com/umbraco/UmbracoDocs/issues
about: Documentation issues should be reported on the Umbraco documentation repository.
- name: 🔐 Security Issue
url: https://umbraco.com/about-us/trust-center/security-and-umbraco/how-to-report-a-vulnerability-in-umbraco/
about: Discovered a Security Issue in Umbraco?
+14
View File
@@ -0,0 +1,14 @@
name: "CodeQL config"
on:
push:
branches: [v8/contrib,v8/dev]
paths-ignore:
- node_modules
- Umbraco.TestData
- Umbraco.Tests
- Umbraco.Tests.AcceptanceTest
- Umbraco.Tests.Benchmarks
- bin
- build.tmp
paths:
- src
+68
View File
@@ -0,0 +1,68 @@
name: "Code scanning - action"
on:
push:
branches: [v8/contrib,v8/dev,v8/bug,v8/feature]
pull_request:
# The branches below must be a subset of the branches above
schedule:
- cron: '0 7 * * 2'
jobs:
CodeQL-Build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
# ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
- name: configure Pagefile
uses: al-cheb/configure-pagefile-action@v1.2
with:
minimum-size: 8GB
maximum-size: 32GB
- run: |
echo "Run Umbraco-CMS build"
pwsh -command .\build\build.ps1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
with:
config-file: ./.github/config/codeql-config.yml
# This job is to prevent the workflow status from showing as failed when all other jobs are skipped - See https://github.community/t/workflow-is-failing-if-no-job-can-be-ran-due-to-condition/16873
always_job:
name: Always run job
runs-on: ubuntu-latest
steps:
- name: Always run
run: echo "This job is to prevent the workflow status from showing as failed when all other jobs are skipped"
+4
View File
@@ -167,6 +167,7 @@ build/temp/
# eof
/src/Umbraco.Web.UI.Client/TESTS-*.xml
/src/ApiDocs/api/*
/src/Umbraco.Web.UI.Client/package-lock.json
# Acceptance tests
cypress.env.json
@@ -174,3 +175,6 @@ cypress.env.json
/src/Umbraco.Tests.AcceptanceTest/package-lock.json
/src/Umbraco.Tests.AcceptanceTest/cypress/videos/
/src/Umbraco.Tests.AcceptanceTest/cypress/screenshots/
src/Umbraco.Web.UI/Umbraco/telemetrics-id.umb
/src/Umbraco.Web.UI/config/umbracoSettings.config
+1 -1
View File
@@ -1,6 +1,6 @@
# The MIT License (MIT) #
Copyright (c) 2013-present Umbraco
Copyright (c) 2005-present Umbraco
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+10 -10
View File
@@ -30,18 +30,18 @@
<dependency id="Microsoft.AspNet.WebApi.Client" version="[5.2.7,5.999999)" />
<dependency id="Microsoft.Owin" version="[4.0.1,4.999999)" />
<dependency id="MiniProfiler" version="[4.0.138,4.999999)" />
<dependency id="Newtonsoft.Json" version="[12.0.1,12.999999)" />
<dependency id="Newtonsoft.Json" version="[12.0.1,13.999999)" />
<dependency id="Semver" version="[2.0.4,2.999999)" />
<dependency id="Serilog" version="[2.8.0,2.999999)" />
<dependency id="Serilog.Enrichers.Process" version="[2.0.1,2.999999)" />
<dependency id="Serilog.Enrichers.Thread" version="[3.0.0,3.999999)" />
<dependency id="Serilog.Filters.Expressions" version="[2.0.0,2.999999)" />
<dependency id="Serilog.Formatting.Compact" version="[1.0.0,1.999999)" />
<dependency id="Serilog.Formatting.Compact.Reader" version="[1.0.3,1.999999)" />
<dependency id="Serilog" version="[2.10.0,2.999999)" />
<dependency id="Serilog.Enrichers.Process" version="[2.0.2,2.999999)" />
<dependency id="Serilog.Enrichers.Thread" version="[3.1.0,3.999999)" />
<dependency id="Serilog.Filters.Expressions" version="[2.1.0,2.999999)" />
<dependency id="Serilog.Formatting.Compact" version="[1.1.0,1.999999)" />
<dependency id="Serilog.Formatting.Compact.Reader" version="[1.0.5,1.999999)" />
<dependency id="Serilog.Settings.AppSettings" version="[2.2.2,2.999999)" />
<dependency id="Serilog.Sinks.File" version="[4.0.0,4.999999)" />
<dependency id="Serilog.Sinks.Map" version="[1.0.0,1.999999)" />
<dependency id="Serilog.Sinks.Async" version="[1.3.0,1.999999)" />
<dependency id="Serilog.Sinks.File" version="[4.1.0,4.999999)" />
<dependency id="Serilog.Sinks.Map" version="[1.0.2,1.999999)" />
<dependency id="Serilog.Sinks.Async" version="[1.5.0,1.999999)" />
<dependency id="Umbraco.SqlServerCE" version="[4.0.0.1,4.999999)" />
<dependency id="NPoco" version="[3.9.4,3.999999)" />
</group>
+10 -3
View File
@@ -25,12 +25,12 @@
not want this to happen as the alpha of the next major is, really, the next major already.
-->
<dependency id="UmbracoCms.Core" version="[$version$]" />
<dependency id="ClientDependency" version="[1.9.9,1.999999)" />
<dependency id="ClientDependency" version="[1.9.10,1.999999)" />
<dependency id="ClientDependency-Mvc5" version="[1.9.3,1.999999)" />
<dependency id="CSharpTest.Net.Collections" version="[14.906.1403.1082,14.999999)" />
<dependency id="Examine" version="[1.0.2,1.999999)" />
<dependency id="Examine" version="[1.2.2,1.999999)" />
<dependency id="HtmlAgilityPack" version="[1.8.14,1.999999)" />
<dependency id="ImageProcessor" version="[2.7.0.100,2.999999)" />
<dependency id="ImageProcessor" version="[2.9.1,2.999999)" />
<dependency id="LightInject.Mvc" version="[2.0.0,2.999999)" />
<dependency id="LightInject.WebApi" version="[2.0.0,2.999999)" />
<dependency id="Markdown" version="[2.2.1,2.999999)" />
@@ -41,7 +41,14 @@
<dependency id="Microsoft.Owin.Host.SystemWeb" version="[4.0.1,4.999999)" />
<dependency id="Microsoft.Owin.Security.Cookies" version="[4.0.1,4.999999)" />
<dependency id="Microsoft.Owin.Security.OAuth" version="[4.0.1,4.999999)" />
<dependency id="System.Buffers" version="[4.5.1,4.999999)" />
<dependency id="System.Numerics.Vectors" version="[4.5.0,4.999999)" />
<dependency id="System.Memory" version="[4.5.4,4.999999)" />
<dependency id="System.Threading.Tasks.Dataflow" version="[4.9.0,4.999999)" />
<dependency id="System.Collections.Immutable" version="[1.7.1,1.999999)" />
<dependency id="System.Text.Encoding.CodePages" version="[4.7.1,4.999999)" />
<dependency id="MessagePack" version="[2.2.85,2.999999)" />
<dependency id="K4os.Compression.LZ4" version="[1.1.11,1.999999)" />
</group>
+2 -2
View File
@@ -26,8 +26,8 @@
not want this to happen as the alpha of the next major is, really, the next major already.
-->
<dependency id="Microsoft.AspNet.SignalR.Core" version="[2.4.0, 2.999999)" />
<dependency id="ImageProcessor.Web" version="[4.10.0.100,4.999999)" />
<dependency id="ImageProcessor.Web.Config" version="[2.5.0.100,2.999999)" />
<dependency id="ImageProcessor.Web" version="[4.12.1,4.999999)" />
<dependency id="ImageProcessor.Web.Config" version="[2.6.0,2.999999)" />
<dependency id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="[2.0.1,2.999999)" />
</group>
+1 -1
View File
@@ -11,7 +11,7 @@ Y88 88Y 888 888 888 888 d88P 888 888 888 Y88b. Y88..88P
Don't forget to build!
We've done our best to transform your configuration files but in case something is not quite right: we recommmend you look in source control for the previous version so you can find the original files before they were transformed.
We've done our best to transform your configuration files but in case something is not quite right: we recommend you look in source control for the previous version so you can find the original files before they were transformed.
This NuGet package includes build targets that extend the creation of a deploy package, which is generated by
Publishing from Visual Studio. The targets will only work once Publishing is configured, so if you don't use
+29
View File
@@ -0,0 +1,29 @@
<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<runtime xdt:Transform="InsertIfMissing" />
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" xdt:Transform="InsertIfMissing" />
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Collections.Immutable')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Buffers')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Memory')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Numerics.Vectors')" xdt:Transform="Remove" />
<dependentAssembly xdt:Transform="Insert">
<assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.2.5.0" newVersion="1.2.5.0" />
</dependentAssembly>
<dependentAssembly xdt:Transform="Insert">
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" />
<bindingRedirect oldVersion="4.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly xdt:Transform="Insert">
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" />
<bindingRedirect oldVersion="4.0.0.0-4.0.1.1" newVersion="4.0.1.1" />
</dependentAssembly>
<dependentAssembly xdt:Transform="Insert">
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" />
<bindingRedirect oldVersion="4.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
+148 -135
View File
@@ -1,139 +1,139 @@
<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<configSections xdt:Transform="InsertIfMissing" />
<configSections>
<sectionGroup name="applicationSettings" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<sectionGroup name="system.web.webPages.razor" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<sectionGroup name="umbracoConfiguration" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing">
<section name="settings" type="Umbraco.Core.Configuration.UmbracoSettings.UmbracoSettingsSection, Umbraco.Core" requirePermission="false" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
<section name="dashBoard" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<section name="HealthChecks" type="Umbraco.Core.Configuration.HealthChecks.HealthChecksSection, Umbraco.Core" requirePermission="false" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
</sectionGroup>
</configSections>
<configSections xdt:Transform="InsertIfMissing" />
<configSections>
<sectionGroup name="applicationSettings" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<sectionGroup name="system.web.webPages.razor" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<sectionGroup name="umbracoConfiguration" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
<sectionGroup name="umbracoConfiguration" xdt:Locator="Match(name)">
<section name="settings" type="Umbraco.Core.Configuration.UmbracoSettings.UmbracoSettingsSection, Umbraco.Core" requirePermission="false" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
<section name="dashBoard" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<section name="HealthChecks" type="Umbraco.Core.Configuration.HealthChecks.HealthChecksSection, Umbraco.Core" requirePermission="false" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
</sectionGroup>
</configSections>
<appSettings xdt:Transform="InsertIfMissing" />
<appSettings>
<add key="owin:appStartup" value="UmbracoDefaultOwinStartup" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" />
<add key="Umbraco.ModelsBuilder.Enable" value="false" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" />
<add key="Umbraco.ModelsBuilder.ModelsMode" value="Nothing" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" />
</appSettings>
<appSettings xdt:Transform="InsertIfMissing" />
<appSettings>
<add key="owin:appStartup" value="UmbracoDefaultOwinStartup" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" />
<add key="Umbraco.ModelsBuilder.Enable" value="false" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" />
<add key="Umbraco.ModelsBuilder.ModelsMode" value="Nothing" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" />
</appSettings>
<umbracoConfiguration xdt:Transform="InsertIfMissing">
<settings configSource="config\umbracoSettings.config" xdt:Locator="Match(configSource)" xdt:Transform="InsertIfMissing" />
<dashBoard configSource="config\Dashboard.config" xdt:Locator="Match(configSource)" xdt:Transform="Remove" />
<HealthChecks configSource="config\HealthChecks.config" xdt:Locator="Match(configSource)" xdt:Transform="InsertIfMissing" />
</umbracoConfiguration>
<umbracoConfiguration xdt:Transform="InsertIfMissing" />
<umbracoConfiguration>
<settings configSource="config\umbracoSettings.config" xdt:Locator="Match(configSource)" xdt:Transform="InsertIfMissing" />
<dashBoard configSource="config\Dashboard.config" xdt:Locator="Match(configSource)" xdt:Transform="Remove" />
<HealthChecks configSource="config\HealthChecks.config" xdt:Locator="Match(configSource)" xdt:Transform="InsertIfMissing" />
</umbracoConfiguration>
<system.data xdt:Transform="InsertIfMissing">
<DbProviderFactories xdt:Transform="InsertIfMissing">
<remove invariant="System.Data.SqlServerCe.4.0" xdt:Locator="Match(invariant)" xdt:Transform="InsertIfMissing" />
<add name="Microsoft SQL Server Compact Data Provider 4.0" invariant="System.Data.SqlServerCe.4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe" xdt:Locator="Match(invariant)" xdt:Transform="SetAttributes(invariant,description,type)" />
</DbProviderFactories>
</system.data>
<clientDependency xdt:Transform="RemoveAttributes(version)" />
<system.data xdt:Transform="InsertIfMissing" />
<system.data>
<DbProviderFactories xdt:Transform="InsertIfMissing" />
<DbProviderFactories>
<remove invariant="System.Data.SqlServerCe.4.0" xdt:Locator="Match(invariant)" xdt:Transform="InsertIfMissing" />
<add name="Microsoft SQL Server Compact Data Provider 4.0" invariant="System.Data.SqlServerCe.4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe" xdt:Locator="Match(invariant)" xdt:Transform="SetAttributes(invariant,description,type)" />
</DbProviderFactories>
</system.data>
<system.web xdt:Transform="InsertIfMissing" />
<system.web>
<siteMap xdt:Transform="Remove" />
<httpRuntime xdt:Transform="InsertIfMissing" />
<httpRuntime maxRequestLength="51200" fcnMode="Single" xdt:Transform="SetAttributes(fcnMode,maxRequestLength)" />
<httpRuntime targetFramework="4.7.2" xdt:Locator="Condition(count(@targetFramework) != 1)" xdt:Transform="SetAttributes(targetFramework)" />
<clientDependency xdt:Transform="RemoveAttributes(version)" />
<membership defaultProvider="DefaultMembershipProvider" xdt:Locator="Match(defaultProvider)" xdt:Transform="Remove" />
<roleManager defaultProvider="DefaultRoleProvider" xdt:Locator="Match(defaultProvider)" xdt:Transform="Remove"/>
<profile defaultProvider="DefaultProfileProvider" xdt:Locator="Match(defaultProvider)" xdt:Transform="Remove"/>>
<sessionState customProvider="DefaultSessionProvider" xdt:Locator="Match(customProvider)" xdt:Transform="Remove"/>
<compilation xdt:Transform="InsertIfMissing" />
<system.web xdt:Transform="InsertIfMissing" />
<system.web>
<siteMap xdt:Transform="Remove" />
<httpRuntime xdt:Transform="InsertIfMissing" />
<httpRuntime maxRequestLength="51200" fcnMode="Single" xdt:Transform="SetAttributes(fcnMode,maxRequestLength)" />
<httpRuntime targetFramework="4.7.2" xdt:Locator="Condition(count(@targetFramework) != 1)" xdt:Transform="SetAttributes(targetFramework)" />
<membership defaultProvider="DefaultMembershipProvider" xdt:Locator="Match(defaultProvider)" xdt:Transform="Remove" />
<roleManager defaultProvider="DefaultRoleProvider" xdt:Locator="Match(defaultProvider)" xdt:Transform="Remove" />
<profile defaultProvider="DefaultProfileProvider" xdt:Locator="Match(defaultProvider)" xdt:Transform="Remove" />
<sessionState customProvider="DefaultSessionProvider" xdt:Locator="Match(customProvider)" xdt:Transform="Remove" />
<compilation xdt:Transform="InsertIfMissing" />
<xhtmlConformance xdt:Transform="Remove" />
<xhtmlConformance xdt:Transform="Remove" />
<httpModules xdt:Transform="InsertIfMissing" />
<httpModules>
<add name="umbracoRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="umbracoBaseRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="viewstateMoverModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<!-- Don't remove the leading space below, this is to fix a quirk for a lot of releases where we added it with the space by default -->
<add name=" UmbracoModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="UmbracoModule" type="Umbraco.Web.UmbracoModule, Umbraco.Web" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
</httpModules>
<httpModules xdt:Transform="InsertIfMissing" />
<httpModules>
<add name="umbracoRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="umbracoBaseRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="viewstateMoverModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name=" UmbracoModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="UmbracoModule" type="Umbraco.Web.UmbracoModule,Umbraco.Web" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
</httpModules>
<httpHandlers xdt:Transform="InsertIfMissing" />
<httpHandlers>
<add path="GoogleSpellChecker.ashx" xdt:Locator="Match(path)" xdt:Transform="Remove" />
</httpHandlers>
</system.web>
<httpHandlers xdt:Transform="InsertIfMissing" />
<httpHandlers>
<add path="GoogleSpellChecker.ashx" xdt:Locator="Match(path)" xdt:Transform="Remove" />
</httpHandlers>
</system.web>
<system.webServer xdt:Transform="InsertIfMissing" />
<system.webServer>
<modules xdt:Transform="InsertIfMissing" />
<modules runAllManagedModulesForAllRequests="true" xdt:Transform="SetAttributes(runAllManagedModulesForAllRequests)" />
<modules>
<remove name="umbracoRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<remove name="viewstateMoverModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<remove name="umbracoBaseRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="umbracoRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="viewstateMoverModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="umbracoBaseRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<!-- Don't remove the leading space below, this is to fix a quirk for a lot of releases where we added it with the space by default -->
<add name=" UmbracoModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="UmbracoModule" type="Umbraco.Web.UmbracoModule, Umbraco.Web" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
</modules>
<system.webServer xdt:Transform="InsertIfMissing" />
<system.webServer>
<modules xdt:Transform="InsertIfMissing" />
<modules runAllManagedModulesForAllRequests="true" xdt:Transform="SetAttributes(runAllManagedModulesForAllRequests)">
<remove name="umbracoRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<remove name="viewstateMoverModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<remove name="umbracoBaseRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<staticContent xdt:Transform="InsertIfMissing" />
<staticContent>
<remove fileExtension=".svg" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<remove fileExtension=".woff" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<mimeMap fileExtension=".woff" mimeType="font/woff" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<remove fileExtension=".woff2" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<mimeMap fileExtension=".woff2" mimeType="font/woff2" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<remove fileExtension=".less" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<mimeMap fileExtension=".less" mimeType="text/css" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
</staticContent>
<add name="umbracoRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="viewstateMoverModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="umbracoBaseRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<!-- Note, we're removing the one that starts with a space here, don't correct it -->
<!-- This to fix a quirk we for a lot of releases where we added it with the space by default -->
<add name=" UmbracoModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="UmbracoModule" type="Umbraco.Web.UmbracoModule,Umbraco.Web" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
</modules>
<handlers>
<remove name="SpellChecker" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="SpellChecker" xdt:Locator="Match(name)" xdt:Transform="Remove" />
</handlers>
<staticContent xdt:Transform="InsertIfMissing" />
<staticContent>
<remove fileExtension=".svg" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<remove fileExtension=".woff" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<remove fileExtension=".woff2" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<mimeMap fileExtension=".woff2" mimeType="application/x-font-woff2" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<remove fileExtension=".less" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<mimeMap fileExtension=".less" mimeType="text/css" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
</staticContent>
<security xdt:Transform="InsertIfMissing" />
<security>
<requestFiltering xdt:Transform="InsertIfMissing" />
<requestFiltering>
<requestLimits maxAllowedContentLength="52428800" xdt:Transform="InsertIfMissing" />
</requestFiltering>
</security>
<handlers>
<remove name="SpellChecker" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="SpellChecker" xdt:Locator="Match(name)" xdt:Transform="Remove" />
</handlers>
</system.webServer>
<security xdt:Transform="InsertIfMissing">
<requestFiltering xdt:Transform="InsertIfMissing">
<requestLimits maxAllowedContentLength="52428800" xdt:Transform="InsertIfMissing" />
</requestFiltering>
</security>
</system.webServer>
<runtime xdt:Transform="InsertIfMissing" />
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" xdt:Transform="InsertIfMissing" />
</runtime>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='HtmlAgilityPack')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='AutoMapper')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Net.Http')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Newtonsoft.Json')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.Mvc')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.WebPages.Razor')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.Http')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.Owin')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.Owin.Security.OAuth')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.Owin.Security')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.Owin.Security.Cookies')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Net.Http.Formatting')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.CodeAnalysis.CSharp')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='log4net')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Data.SqlServerCe')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.ValueTuple')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Net.Http.Formatting')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Collections.Immutable')" xdt:Transform="Remove" />
</assemblyBinding>
</runtime>
<runtime>
<runtime xdt:Transform="InsertIfMissing" />
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" xdt:Transform="InsertIfMissing" />
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='HtmlAgilityPack')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='AutoMapper')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Net.Http')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Newtonsoft.Json')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.Mvc')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.WebPages.Razor')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.Http')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.Owin')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.Owin.Security.OAuth')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.Owin.Security')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.Owin.Security.Cookies')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Net.Http.Formatting')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.CodeAnalysis.CSharp')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='log4net')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Data.SqlServerCe')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.ValueTuple')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Net.Http.Formatting')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Collections.Immutable')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Buffers')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Memory')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Numerics.Vectors')" xdt:Transform="Remove" />
<dependentAssembly xdt:Transform="Insert">
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
@@ -156,7 +156,7 @@
</dependentAssembly>
<dependentAssembly xdt:Transform="Insert">
<assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.2.3.0" newVersion="1.2.3.0" />
<bindingRedirect oldVersion="0.0.0.0-1.2.5.0" newVersion="1.2.5.0" />
</dependentAssembly>
<dependentAssembly xdt:Transform="Insert">
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
@@ -174,23 +174,36 @@
<assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
</dependentAssembly>
<dependentAssembly xdt:Transform="Insert">
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" />
<bindingRedirect oldVersion="4.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly xdt:Transform="Insert">
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" />
<bindingRedirect oldVersion="4.0.0.0-4.0.1.1" newVersion="4.0.1.1" />
</dependentAssembly>
<dependentAssembly xdt:Transform="Insert">
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" />
<bindingRedirect oldVersion="4.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.web.webPages.razor xdt:Transform="Remove" />
<system.web.webPages.razor xdt:Transform="Remove" />
<location path="umbraco" xdt:Locator="Match(path)" xdt:Transform="InsertIfMissing" />
<location path="umbraco" xdt:Locator="Match(path)">
<system.webServer xdt:Transform="InsertIfMissing">
<urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" xdt:Transform="SetAttributes(doStaticCompression,doDynamicCompression,dynamicCompressionBeforeCache)" />
</system.webServer>
</location>
<location path="App_Plugins" xdt:Locator="Match(path)" xdt:Transform="InsertIfMissing" />
<location path="App_Plugins" xdt:Locator="Match(path)">
<system.webServer xdt:Transform="InsertIfMissing">
<urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" xdt:Transform="SetAttributes(doStaticCompression,doDynamicCompression,dynamicCompressionBeforeCache)" />
</system.webServer>
</location>
<location path="umbraco" xdt:Locator="Match(path)" xdt:Transform="InsertIfMissing" />
<location path="umbraco" xdt:Locator="Match(path)">
<system.webServer xdt:Transform="InsertIfMissing" />
<system.webServer>
<urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" xdt:Transform="SetAttributes(doStaticCompression,doDynamicCompression,dynamicCompressionBeforeCache)" />
</system.webServer>
</location>
<location path="App_Plugins" xdt:Locator="Match(path)" xdt:Transform="InsertIfMissing" />
<location path="App_Plugins" xdt:Locator="Match(path)">
<system.webServer xdt:Transform="InsertIfMissing" />
<system.webServer>
<urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" xdt:Transform="SetAttributes(doStaticCompression,doDynamicCompression,dynamicCompressionBeforeCache)" />
</system.webServer>
</location>
</configuration>
+1
View File
@@ -34,6 +34,7 @@
if (-not (test-path $nuget))
{
Write-Host "Download NuGet..."
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest $source -OutFile $nuget
if (-not $?) { throw "Failed to download NuGet." }
}
+9 -1
View File
@@ -91,6 +91,7 @@
{
$src = "$($this.SolutionRoot)\src"
$log = "$($this.BuildTemp)\belle.log"
Write-Host "Compile Belle"
Write-Host "Logging to $log"
@@ -352,6 +353,14 @@
"-x!dotless.Core.*" "-x!Content_Types.xml" "-x!*.pdb" `
> $null
if (-not $?) { throw "Failed to zip UmbracoCms." }
Write-Host "Zip cms cloud"
$this.CopyFile("$($this.SolutionRoot)\build\NuSpecs\tools\Web.config.cloud.xdt", "$tmp\WebApp\Web.config.install.xdt")
&$this.BuildEnv.Zip a -r "$out\UmbracoCms.$($this.Version.Semver).Cloud.zip" `
"$tmp\WebApp\*" `
"-x!dotless.Core.*" "-x!Content_Types.xml" "-x!*.pdb" `
> $null
if (-not $?) { throw "Failed to zip UmbracoCms." }
})
$ubuild.DefineMethod("PrepareBuild",
@@ -553,7 +562,6 @@
# run
if (-not $get)
{
cd
if ($command.Length -eq 0)
{
$command = @( "Build" )
@@ -15,8 +15,8 @@
<div class="level{{item.level}}"><span class="xref">{{item.name.0.value}}</span></div>
</div>
{{/inheritance.0}}
<h6><strong>{{__global.namespace}}</strong>:{{namespace}}</h6>
<h6><strong>{{__global.assembly}}</strong>:{{assemblies.0}}.dll</h6>
<h6><strong>{{__global.namespace}}</strong>: {{{namespace.specName.0.value}}}</h6>
<h6><strong>{{__global.assembly}}</strong>: {{assemblies.0}}.dll</h6>
<h5 id="{{id}}_syntax">{{__global.syntax}}</h5>
<div class="codewrapper">
<pre><code class="lang-{{_lang}} hljs">{{syntax.content.0.value}}</code></pre>
+3 -3
View File
@@ -2,7 +2,7 @@
using System.Resources;
[assembly: AssemblyCompany("Umbraco")]
[assembly: AssemblyCopyright("Copyright © Umbraco 2020")]
[assembly: AssemblyCopyright("Copyright © Umbraco 2022")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@@ -18,5 +18,5 @@ using System.Resources;
[assembly: AssemblyVersion("8.0.0")]
// these are FYI and changed automatically
[assembly: AssemblyFileVersion("8.7.0")]
[assembly: AssemblyInformationalVersion("8.7.0")]
[assembly: AssemblyFileVersion("8.18.11")]
[assembly: AssemblyInformationalVersion("8.18.11")]
+24 -1
View File
@@ -6,8 +6,10 @@ namespace Umbraco.Core.Cache
/// <summary>
/// Represents the application caches.
/// </summary>
public class AppCaches
public class AppCaches : IDisposable
{
private bool _disposedValue;
/// <summary>
/// Initializes a new instance of the <see cref="AppCaches"/> for use in a web application.
/// </summary>
@@ -82,5 +84,26 @@ namespace Umbraco.Core.Cache
/// search through all keys on a global scale.</para>
/// </remarks>
public IsolatedCaches IsolatedCaches { get; }
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
{
if (disposing)
{
RuntimeCache.DisposeIfDisposable();
RequestCache.DisposeIfDisposable();
IsolatedCaches.Dispose();
}
_disposedValue = true;
}
}
public void Dispose()
{
// Do not change this code. Put cleanup code in 'Dispose(bool disposing)' method
Dispose(disposing: true);
}
}
}
@@ -7,7 +7,7 @@ namespace Umbraco.Core.Cache
/// Provides a base class for implementing a dictionary of <see cref="IAppPolicyCache"/>.
/// </summary>
/// <typeparam name="TKey">The type of the dictionary key.</typeparam>
public abstract class AppPolicedCacheDictionary<TKey>
public abstract class AppPolicedCacheDictionary<TKey> : IDisposable
{
private readonly ConcurrentDictionary<TKey, IAppPolicyCache> _caches = new ConcurrentDictionary<TKey, IAppPolicyCache>();
@@ -24,6 +24,7 @@ namespace Umbraco.Core.Cache
/// Gets the internal cache factory, for tests only!
/// </summary>
internal readonly Func<TKey, IAppPolicyCache> CacheFactory;
private bool _disposedValue;
/// <summary>
/// Gets or creates a cache.
@@ -70,5 +71,27 @@ namespace Umbraco.Core.Cache
foreach (var cache in _caches.Values)
cache.Clear();
}
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
{
if (disposing)
{
foreach(var value in _caches.Values)
{
value.DisposeIfDisposable();
}
}
_disposedValue = true;
}
}
public void Dispose()
{
// Do not change this code. Put cleanup code in 'Dispose(bool disposing)' method
Dispose(disposing: true);
}
}
}
}
+8
View File
@@ -12,5 +12,13 @@
public const string MacroContentCacheKey = "macroContent_"; // used in MacroRenderers
public const string MacroFromAliasCacheKey = "macroFromAlias_";
public const string UserAllContentStartNodesPrefix = "AllContentStartNodes";
public const string UserAllMediaStartNodesPrefix = "AllMediaStartNodes";
public const string UserMediaStartNodePathsPrefix = "MediaStartNodePaths";
public const string UserContentStartNodePathsPrefix = "ContentStartNodePaths";
public const string ContentRecycleBinCacheKey = "recycleBin_content";
public const string MediaRecycleBinCacheKey = "recycleBin_media";
}
}
+22 -1
View File
@@ -12,8 +12,10 @@ namespace Umbraco.Core.Cache
/// instance, and ensuring that all inserts and returns are deep cloned copies of the cache item,
/// when the item is deep-cloneable.
/// </summary>
internal class DeepCloneAppCache : IAppPolicyCache
internal class DeepCloneAppCache : IAppPolicyCache, IDisposable
{
private bool _disposedValue;
/// <summary>
/// Initializes a new instance of the <see cref="DeepCloneAppCache"/> class.
/// </summary>
@@ -153,5 +155,24 @@ namespace Umbraco.Core.Cache
return input;
}
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
{
if (disposing)
{
InnerCache.DisposeIfDisposable();
}
_disposedValue = true;
}
}
public void Dispose()
{
// Do not change this code. Put cleanup code in 'Dispose(bool disposing)' method
Dispose(disposing: true);
}
}
}
@@ -20,7 +20,7 @@ namespace Umbraco.Core.Cache
internal class DefaultRepositoryCachePolicy<TEntity, TId> : RepositoryCachePolicyBase<TEntity, TId>
where TEntity : class, IEntity
{
private static readonly TEntity[] EmptyEntities = new TEntity[0]; // const
private static readonly TEntity[] s_emptyEntities = new TEntity[0]; // const
private readonly RepositoryCachePolicyOptions _options;
public DefaultRepositoryCachePolicy(IAppPolicyCache cache, IScopeAccessor scopeAccessor, RepositoryCachePolicyOptions options)
@@ -29,16 +29,24 @@ namespace Umbraco.Core.Cache
_options = options ?? throw new ArgumentNullException(nameof(options));
}
protected string GetEntityCacheKey(object id)
protected string GetEntityCacheKey(int id) => EntityTypeCacheKey + id;
protected string GetEntityCacheKey(TId id)
{
if (id == null) throw new ArgumentNullException(nameof(id));
return GetEntityTypeCacheKey() + id;
if (EqualityComparer<TId>.Default.Equals(id, default))
{
return string.Empty;
}
if (typeof(TId).IsValueType)
{
return EntityTypeCacheKey + id;
}
return EntityTypeCacheKey + id.ToString().ToUpperInvariant();
}
protected string GetEntityTypeCacheKey()
{
return $"uRepo_{typeof (TEntity).Name}_";
}
protected string EntityTypeCacheKey { get; } = $"uRepo_{typeof(TEntity).Name}_";
protected virtual void InsertEntity(string cacheKey, TEntity entity)
{
@@ -52,7 +60,7 @@ namespace Umbraco.Core.Cache
// getting all of them, and finding nothing.
// if we can cache a zero count, cache an empty array,
// for as long as the cache is not cleared (no expiration)
Cache.Insert(GetEntityTypeCacheKey(), () => EmptyEntities);
Cache.Insert(EntityTypeCacheKey, () => s_emptyEntities);
}
else
{
@@ -81,7 +89,7 @@ namespace Umbraco.Core.Cache
}
// if there's a GetAllCacheAllowZeroCount cache, ensure it is cleared
Cache.Clear(GetEntityTypeCacheKey());
Cache.Clear(EntityTypeCacheKey);
}
catch
{
@@ -91,7 +99,7 @@ namespace Umbraco.Core.Cache
Cache.Clear(GetEntityCacheKey(entity.Id));
// if there's a GetAllCacheAllowZeroCount cache, ensure it is cleared
Cache.Clear(GetEntityTypeCacheKey());
Cache.Clear(EntityTypeCacheKey);
throw;
}
@@ -113,7 +121,7 @@ namespace Umbraco.Core.Cache
}
// if there's a GetAllCacheAllowZeroCount cache, ensure it is cleared
Cache.Clear(GetEntityTypeCacheKey());
Cache.Clear(EntityTypeCacheKey);
}
catch
{
@@ -123,7 +131,7 @@ namespace Umbraco.Core.Cache
Cache.Clear(GetEntityCacheKey(entity.Id));
// if there's a GetAllCacheAllowZeroCount cache, ensure it is cleared
Cache.Clear(GetEntityTypeCacheKey());
Cache.Clear(EntityTypeCacheKey);
throw;
}
@@ -144,7 +152,7 @@ namespace Umbraco.Core.Cache
var cacheKey = GetEntityCacheKey(entity.Id);
Cache.Clear(cacheKey);
// if there's a GetAllCacheAllowZeroCount cache, ensure it is cleared
Cache.Clear(GetEntityTypeCacheKey());
Cache.Clear(EntityTypeCacheKey);
}
}
@@ -195,7 +203,7 @@ namespace Umbraco.Core.Cache
else
{
// get everything we have
var entities = Cache.GetCacheItemsByKeySearch<TEntity>(GetEntityTypeCacheKey())
var entities = Cache.GetCacheItemsByKeySearch<TEntity>(EntityTypeCacheKey)
.ToArray(); // no need for null checks, we are not caching nulls
if (entities.Length > 0)
@@ -218,7 +226,7 @@ namespace Umbraco.Core.Cache
{
// if none of them were in the cache
// and we allow zero count - check for the special (empty) entry
var empty = Cache.GetCacheItem<TEntity[]>(GetEntityTypeCacheKey());
var empty = Cache.GetCacheItem<TEntity[]>(EntityTypeCacheKey);
if (empty != null) return empty;
}
}
@@ -238,7 +246,7 @@ namespace Umbraco.Core.Cache
/// <inheritdoc />
public override void ClearAll()
{
Cache.ClearByKey(GetEntityTypeCacheKey());
Cache.ClearByKey(EntityTypeCacheKey);
}
}
}
+39 -5
View File
@@ -13,9 +13,10 @@ namespace Umbraco.Core.Cache
/// <summary>
/// Implements <see cref="IAppPolicyCache"/> on top of a <see cref="ObjectCache"/>.
/// </summary>
public class ObjectCacheAppCache : IAppPolicyCache
public class ObjectCacheAppCache : IAppPolicyCache, IDisposable
{
private readonly ReaderWriterLockSlim _locker = new ReaderWriterLockSlim(LockRecursionPolicy.SupportsRecursion);
private bool _disposedValue;
/// <summary>
/// Initializes a new instance of the <see cref="ObjectCacheAppCache"/>.
@@ -109,19 +110,34 @@ namespace Umbraco.Core.Cache
Lazy<object> result;
using (var lck = new UpgradeableReadLock(_locker))
try
{
_locker.EnterUpgradeableReadLock();
result = MemoryCache.Get(key) as Lazy<object>;
if (result == null || FastDictionaryAppCacheBase.GetSafeLazyValue(result, true) == null) // get non-created as NonCreatedValue & exceptions as null
{
result = FastDictionaryAppCacheBase.GetSafeLazy(factory);
var policy = GetPolicy(timeout, isSliding, removedCallback, dependentFiles);
lck.UpgradeToWriteLock();
//NOTE: This does an add or update
MemoryCache.Set(key, result, policy);
try
{
_locker.EnterWriteLock();
//NOTE: This does an add or update
MemoryCache.Set(key, result, policy);
}
finally
{
if (_locker.IsWriteLockHeld)
_locker.ExitWriteLock();
}
}
}
finally
{
if (_locker.IsUpgradeableReadLockHeld)
_locker.ExitUpgradeableReadLock();
}
//return result.Value;
@@ -360,5 +376,23 @@ namespace Umbraco.Core.Cache
}
return policy;
}
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
{
if (disposing)
{
_locker.Dispose();
}
_disposedValue = true;
}
}
public void Dispose()
{
// Do not change this code. Put cleanup code in 'Dispose(bool disposing)' method
Dispose(disposing: true);
}
}
}
+42 -7
View File
@@ -11,7 +11,7 @@ namespace Umbraco.Core.Cache
/// Implements <see cref="IAppPolicyCache"/> on top of a <see cref="System.Web.Caching.Cache"/>.
/// </summary>
/// <remarks>The underlying cache is expected to be HttpRuntime.Cache.</remarks>
internal class WebCachingAppCache : FastDictionaryAppCacheBase, IAppPolicyCache
internal class WebCachingAppCache : FastDictionaryAppCacheBase, IAppPolicyCache, IDisposable
{
// locker object that supports upgradeable read locking
// does not need to support recursion if we implement the cache correctly and ensure
@@ -19,6 +19,7 @@ namespace Umbraco.Core.Cache
private readonly ReaderWriterLockSlim _locker = new ReaderWriterLockSlim(LockRecursionPolicy.NoRecursion);
private readonly System.Web.Caching.Cache _cache;
private bool _disposedValue;
/// <summary>
/// Initializes a new instance of the <see cref="WebCachingAppCache"/> class.
@@ -138,8 +139,10 @@ namespace Umbraco.Core.Cache
var value = result == null ? null : GetSafeLazyValue(result);
if (value != null) return value;
using (var lck = new UpgradeableReadLock(_locker))
try
{
_locker.EnterUpgradeableReadLock();
result = _cache.Get(key) as Lazy<object>; // null if key not found
// cannot create value within the lock, so if result.IsValueCreated is false, just
@@ -152,15 +155,28 @@ namespace Umbraco.Core.Cache
var absolute = isSliding ? System.Web.Caching.Cache.NoAbsoluteExpiration : (timeout == null ? System.Web.Caching.Cache.NoAbsoluteExpiration : DateTime.Now.Add(timeout.Value));
var sliding = isSliding == false ? System.Web.Caching.Cache.NoSlidingExpiration : (timeout ?? System.Web.Caching.Cache.NoSlidingExpiration);
lck.UpgradeToWriteLock();
try
{
_locker.EnterWriteLock();
// create a cache dependency if one is needed.
var dependency = dependentFiles != null && dependentFiles.Length > 0 ? new CacheDependency(dependentFiles) : null;
// create a cache dependency if one is needed.
var dependency = dependentFiles != null && dependentFiles.Length > 0 ? new CacheDependency(dependentFiles) : null;
//NOTE: 'Insert' on System.Web.Caching.Cache actually does an add or update!
_cache.Insert(key, result, dependency, absolute, sliding, priority, removedCallback);
//NOTE: 'Insert' on System.Web.Caching.Cache actually does an add or update!
_cache.Insert(key, result, dependency, absolute, sliding, priority, removedCallback);
}
finally
{
if (_locker.IsWriteLockHeld)
_locker.ExitWriteLock();
}
}
}
finally
{
if (_locker.IsUpgradeableReadLockHeld)
_locker.ExitUpgradeableReadLock();
}
// using GetSafeLazy and GetSafeLazyValue ensures that we don't cache
// exceptions (but try again and again) and silently eat them - however at
@@ -204,5 +220,24 @@ namespace Umbraco.Core.Cache
_locker.ExitWriteLock();
}
}
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
{
if (disposing)
{
_locker.Dispose();
}
_disposedValue = true;
}
}
public void Dispose()
{
// Do not change this code. Put cleanup code in 'Dispose(bool disposing)' method
Dispose(disposing: true);
}
}
}
@@ -0,0 +1,41 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
namespace Umbraco.Core.Collections
{
/// <summary>
/// Allows clearing all event handlers
/// </summary>
/// <typeparam name="TValue"></typeparam>
public class EventClearingObservableCollection<TValue> : ObservableCollection<TValue>, INotifyCollectionChanged
{
public EventClearingObservableCollection()
{
}
public EventClearingObservableCollection(List<TValue> list) : base(list)
{
}
public EventClearingObservableCollection(IEnumerable<TValue> collection) : base(collection)
{
}
// need to explicitly implement with event accessor syntax in order to override in order to to clear
// c# events are weird, they do not behave the same way as other c# things that are 'virtual',
// a good article is here: https://medium.com/@unicorn_dev/virtual-events-in-c-something-went-wrong-c6f6f5fbe252
// and https://stackoverflow.com/questions/2268065/c-sharp-language-design-explicit-interface-implementation-of-an-event
private NotifyCollectionChangedEventHandler _changed;
event NotifyCollectionChangedEventHandler INotifyCollectionChanged.CollectionChanged
{
add { _changed += value; }
remove { _changed -= value; }
}
/// <summary>
/// Clears all event handlers for the <see cref="CollectionChanged"/> event
/// </summary>
public void ClearCollectionChangedEvents() => _changed = null;
}
}
@@ -1,11 +1,14 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Linq;
using System.Runtime.Serialization;
namespace Umbraco.Core.Collections
{
/// <summary>
/// An ObservableDictionary
/// </summary>
@@ -15,7 +18,7 @@ namespace Umbraco.Core.Collections
/// </remarks>
/// <typeparam name="TValue">The type of elements contained in the BindableCollection</typeparam>
/// <typeparam name="TKey">The type of the indexing key</typeparam>
public class ObservableDictionary<TKey, TValue> : ObservableCollection<TValue>, IReadOnlyDictionary<TKey, TValue>, IDictionary<TKey, TValue>
public class ObservableDictionary<TKey, TValue> : ObservableCollection<TValue>, IReadOnlyDictionary<TKey, TValue>, IDictionary<TKey, TValue>, INotifyCollectionChanged
{
protected Dictionary<TKey, int> Indecies { get; }
protected Func<TValue, TKey> KeySelector { get; }
@@ -74,6 +77,22 @@ namespace Umbraco.Core.Collections
#endregion
// need to explicitly implement with event accessor syntax in order to override in order to to clear
// c# events are weird, they do not behave the same way as other c# things that are 'virtual',
// a good article is here: https://medium.com/@unicorn_dev/virtual-events-in-c-something-went-wrong-c6f6f5fbe252
// and https://stackoverflow.com/questions/2268065/c-sharp-language-design-explicit-interface-implementation-of-an-event
private NotifyCollectionChangedEventHandler _changed;
event NotifyCollectionChangedEventHandler INotifyCollectionChanged.CollectionChanged
{
add { _changed += value; }
remove { _changed -= value; }
}
/// <summary>
/// Clears all <see cref="CollectionChanged"/> event handlers
/// </summary>
public void ClearCollectionChangedEvents() => _changed = null;
public bool ContainsKey(TKey key)
{
return Indecies.ContainsKey(key);
@@ -0,0 +1,60 @@
using System.Collections.Generic;
namespace Umbraco.Core.Collections
{
/// <summary>
/// Collection that can be both a queue and a stack.
/// </summary>
/// <typeparam name="T"></typeparam>
public class StackQueue<T>
{
private readonly LinkedList<T> _linkedList = new LinkedList<T>();
public void Clear()
{
_linkedList.Clear();
}
public void Push(T obj)
{
_linkedList.AddFirst(obj);
}
public void Enqueue(T obj)
{
_linkedList.AddFirst(obj);
}
public T Pop()
{
var obj = _linkedList.First.Value;
_linkedList.RemoveFirst();
return obj;
}
public T Dequeue()
{
var obj = _linkedList.Last.Value;
_linkedList.RemoveLast();
return obj;
}
public T PeekStack()
{
return _linkedList.First.Value;
}
public T PeekQueue()
{
return _linkedList.Last.Value;
}
public int Count
{
get
{
return _linkedList.Count;
}
}
}
}
@@ -42,7 +42,19 @@ namespace Umbraco.Core.Compose
}
public void Terminate()
{ }
{
UserService.SavedUserGroup -= OnSavedUserGroupWithUsers;
UserService.SavedUser -= OnSavedUser;
UserService.DeletedUser -= OnDeletedUser;
UserService.UserGroupPermissionsAssigned -= UserGroupPermissionAssigned;
MemberService.Saved -= OnSavedMember;
MemberService.Deleted -= OnDeletedMember;
MemberService.AssignedRoles -= OnAssignedRoles;
MemberService.RemovedRoles -= OnRemovedRoles;
MemberService.Exported -= OnMemberExported;
}
internal static IUser UnknownUser => new User { Id = Constants.Security.UnknownUserId, Name = Constants.Security.UnknownUserName, Email = "" };
@@ -67,7 +79,7 @@ namespace Umbraco.Core.Compose
get
{
var httpContext = HttpContext.Current == null ? (HttpContextBase) null : new HttpContextWrapper(HttpContext.Current);
var ip = httpContext.GetCurrentRequestIpAddress();
var ip = httpContext?.GetCurrentRequestIpAddress();
if (ip == null || ip.ToLowerInvariant().StartsWith("unknown")) ip = "";
return ip;
}
@@ -14,7 +14,9 @@ namespace Umbraco.Core.Compose
}
public void Terminate()
{ }
{
ContentService.Copied -= ContentServiceCopied;
}
private static void ContentServiceCopied(IContentService sender, Events.CopyEventArgs<IContent> e)
{
@@ -18,7 +18,12 @@ namespace Umbraco.Core.Compose
}
public void Terminate()
{ }
{
ContentService.Moved -= ContentService_Moved;
ContentService.Trashed -= ContentService_Trashed;
MediaService.Moved -= MediaService_Moved;
MediaService.Trashed -= MediaService_Trashed;
}
private static void ContentService_Moved(IContentService sender, MoveEventArgs<IContent> e)
{
@@ -88,7 +93,8 @@ namespace Umbraco.Core.Compose
item.Entity.Id,
ObjectTypes.GetName(UmbracoObjectTypes.Document),
string.Format(textService.Localize(
"recycleBin/contentTrashed"),
"recycleBin","contentTrashed"),
item.Entity.Id, originalParentId));
}
}
@@ -127,7 +133,7 @@ namespace Umbraco.Core.Compose
item.Entity.Id,
ObjectTypes.GetName(UmbracoObjectTypes.Media),
string.Format(textService.Localize(
"recycleBin/mediaTrashed"),
"recycleBin", "mediaTrashed"),
item.Entity.Id, originalParentId));
}
}
@@ -51,7 +51,7 @@ namespace Umbraco.Core.Composing
}
catch (Exception ex)
{
_logger.Error<ComponentCollection>(ex, "Error while terminating component {ComponentType}.", componentType.FullName);
_logger.Error<ComponentCollection,string>(ex, "Error while terminating component {ComponentType}.", componentType.FullName);
}
}
}
+2 -2
View File
@@ -114,7 +114,7 @@ namespace Umbraco.Core.Composing
// bit verbose but should help for troubleshooting
//var text = "Ordered Composers: " + Environment.NewLine + string.Join(Environment.NewLine, sortedComposerTypes) + Environment.NewLine;
_logger.Debug<Composers>("Ordered Composers: {SortedComposerTypes}", sortedComposerTypes);
_logger.Debug<Composers,IEnumerable<Type>>("Ordered Composers: {SortedComposerTypes}", sortedComposerTypes);
return sortedComposerTypes;
}
@@ -205,7 +205,7 @@ namespace Umbraco.Core.Composing
catch (Exception e)
{
// in case of an error, force-dump everything to log
_logger.Info<Composers>("Composer Report:\r\n{ComposerReport}", GetComposersReport(requirements));
_logger.Info<Composers,string>("Composer Report:\r\n{ComposerReport}", GetComposersReport(requirements));
_logger.Error<Composers>(e, "Failed to sort composers.");
throw;
}
@@ -49,6 +49,7 @@ namespace Umbraco.Core.Composing.CompositionExtensions
composition.RegisterUnique<IContentTypeCommonRepository, ContentTypeCommonRepository>();
composition.RegisterUnique<IInstallationRepository, InstallationRepository>();
composition.RegisterUnique<IUpgradeCheckRepository, UpgradeCheckRepository>();
composition.RegisterUnique<IDocumentVersionRepository, DocumentVersionRepository>();
return composition;
}
@@ -6,8 +6,10 @@ using Umbraco.Core.Events;
using Umbraco.Core.IO;
using Umbraco.Core.Logging;
using Umbraco.Core.Packaging;
using Umbraco.Core.Security;
using Umbraco.Core.Services;
using Umbraco.Core.Services.Implement;
using Umbraco.Core.Telemetry;
namespace Umbraco.Core.Composing.CompositionExtensions
{
@@ -31,7 +33,12 @@ namespace Umbraco.Core.Composing.CompositionExtensions
composition.RegisterUnique<IDomainService, DomainService>();
composition.RegisterUnique<IAuditService, AuditService>();
composition.RegisterUnique<ITagService, TagService>();
composition.RegisterUnique<IContentService, ContentService>();
composition.RegisterUnique<ContentService>();
composition.RegisterUnique<IContentService>(factory => factory.GetInstance<ContentService>());
composition.RegisterUnique<IContentVersionService>(factory => factory.GetInstance<ContentService>());
composition.RegisterUnique<IContentVersionCleanupPolicy, DefaultContentVersionCleanupPolicy>();
composition.RegisterUnique<IUserService, UserService>();
composition.RegisterUnique<IMemberService, MemberService>();
composition.RegisterUnique<IMediaService, MediaService>();
@@ -52,6 +59,7 @@ namespace Umbraco.Core.Composing.CompositionExtensions
composition.RegisterUnique<IExternalLoginService, ExternalLoginService>();
composition.RegisterUnique<IRedirectUrlService, RedirectUrlService>();
composition.RegisterUnique<IConsentService, ConsentService>();
composition.RegisterUnique<IEmailSender, EmailSender>();
composition.Register<LocalizedTextServiceFileSources>(SourcesFactory);
composition.RegisterUnique<ILocalizedTextService>(factory => new LocalizedTextService(
factory.GetInstance<Lazy<LocalizedTextServiceFileSources>>(),
@@ -73,6 +81,10 @@ namespace Umbraco.Core.Composing.CompositionExtensions
factory.GetInstance<CompiledPackageXmlParser>(), factory.GetInstance<IPackageActionRunner>(),
new DirectoryInfo(IOHelper.GetRootDirectorySafe())));
composition.RegisterUnique<ITelemetryService, TelemetryService>();
composition.RegisterUnique<IHtmlSanitizer, NoopHtmlSanitizer>();
composition.RegisterUnique<IFileStreamSecurityValidator, FileStreamSecurityValidator>();
return composition;
}
+12 -1
View File
@@ -30,6 +30,7 @@ namespace Umbraco.Core.Composing
public static class Current
{
private static IFactory _factory;
private static IRuntimeState _state;
// TODO: get rid of these oddities
// we don't want Umbraco tests to die because the container has not been properly initialized,
@@ -125,7 +126,17 @@ namespace Umbraco.Core.Composing
?? new ProfilingLogger(Logger, Profiler);
public static IRuntimeState RuntimeState
=> Factory.GetInstance<IRuntimeState>();
{
get
{
return _state ?? Factory.GetInstance<IRuntimeState>();
}
internal set
{
// this is only used when the boot entirely fails, we need to manually set this so we can report
_state = value;
}
}
public static TypeLoader TypeLoader
=> Factory.GetInstance<TypeLoader>();
+4 -4
View File
@@ -11,7 +11,7 @@ using System.Web.Compilation;
using System.Web.Hosting;
using Umbraco.Core.Composing;
using Umbraco.Core.IO;
using Umbraco.Core.Logging;
namespace Umbraco.Core.Composing
{
/// <summary>
@@ -35,7 +35,7 @@ namespace Umbraco.Core.Composing
var s = ConfigurationManager.AppSettings[Constants.AppSettings.AssembliesAcceptingLoadExceptions];
return _assembliesAcceptingLoadExceptions = string.IsNullOrWhiteSpace(s)
? Array.Empty<string>()
: s.Split(',').Select(x => x.Trim()).ToArray();
: s.Split(Constants.CharArrays.Comma).Select(x => x.Trim()).ToArray();
}
}
@@ -441,7 +441,7 @@ namespace Umbraco.Core.Composing
}
catch (TypeLoadException ex)
{
Current.Logger.Error(typeof(TypeFinder), ex, "Could not query types on {Assembly} assembly, this is most likely due to this assembly not being compatible with the current Umbraco version", assembly);
Current.Logger.Error<Assembly>(typeof(TypeFinder), ex, "Could not query types on {Assembly} assembly, this is most likely due to this assembly not being compatible with the current Umbraco version", assembly);
continue;
}
@@ -507,7 +507,7 @@ namespace Umbraco.Core.Composing
}
catch (TypeLoadException ex)
{
Current.Logger.Error(typeof(TypeFinder), ex, "Could not query types on {Assembly} assembly, this is most likely due to this assembly not being compatible with the current Umbraco version", assembly);
Current.Logger.Error<Assembly>(typeof(TypeFinder), ex, "Could not query types on {Assembly} assembly, this is most likely due to this assembly not being compatible with the current Umbraco version", assembly);
continue;
}
+97 -49
View File
@@ -1,8 +1,9 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using System.Text;
using System.Threading;
@@ -44,7 +45,7 @@ namespace Umbraco.Core.Composing
private IEnumerable<Assembly> _assemblies;
private bool _reportedChange;
private readonly string _localTempPath;
private string _fileBasePath;
private readonly Lazy<string> _fileBasePath;
/// <summary>
/// Initializes a new instance of the <see cref="TypeLoader"/> class.
@@ -69,6 +70,8 @@ namespace Umbraco.Core.Composing
_localTempPath = localTempPath;
_logger = logger ?? throw new ArgumentNullException(nameof(logger));
_fileBasePath = new Lazy<string>(GetFileBasePath);
if (detectChanges)
{
//first check if the cached hash is string.Empty, if it is then we need
@@ -159,7 +162,8 @@ namespace Umbraco.Core.Composing
return _cachedAssembliesHash;
var typesHashFilePath = GetTypesHashFilePath();
if (!File.Exists(typesHashFilePath)) return string.Empty;
if (!File.Exists(typesHashFilePath))
return string.Empty;
var hash = File.ReadAllText(typesHashFilePath, Encoding.UTF8);
@@ -338,7 +342,9 @@ namespace Umbraco.Core.Composing
var typesListFilePath = GetTypesListFilePath();
if (File.Exists(typesListFilePath) == false)
{
return cache;
}
using (var stream = GetFileStream(typesListFilePath, FileMode.Open, FileAccess.Read, FileShare.Read, ListFileOpenReadTimeout))
using (var reader = new StreamReader(stream))
@@ -346,11 +352,21 @@ namespace Umbraco.Core.Composing
while (true)
{
var baseType = reader.ReadLine();
if (baseType == null) return cache; // exit
if (baseType.StartsWith("<")) break; // old xml
if (baseType == null)
{
return cache; // exit
}
if (baseType.StartsWith("<"))
{
break; // old xml
}
var attributeType = reader.ReadLine();
if (attributeType == null) break;
if (attributeType == null)
{
break;
}
var types = new List<string>();
while (true)
@@ -369,7 +385,10 @@ namespace Umbraco.Core.Composing
types.Add(type);
}
if (types == null) break;
if (types == null)
{
break;
}
}
}
@@ -378,28 +397,31 @@ namespace Umbraco.Core.Composing
}
// internal for tests
internal string GetTypesListFilePath() => GetFileBasePath() + ".list";
internal string GetTypesListFilePath() => _fileBasePath.Value + ".list";
private string GetTypesHashFilePath() => GetFileBasePath() + ".hash";
private string GetTypesHashFilePath() => _fileBasePath.Value + ".hash";
/// <summary>
/// Used to produce the Lazy value of _fileBasePath
/// </summary>
/// <returns></returns>
private string GetFileBasePath()
{
lock (_locko)
var fileBasePath = Path.Combine(_localTempPath, "TypesCache", "umbraco-types." + NetworkHelper.FileSafeMachineName);
// ensure that the folder exists
var directory = Path.GetDirectoryName(fileBasePath);
if (directory == null)
{
if (_fileBasePath != null)
return _fileBasePath;
_fileBasePath = Path.Combine(_localTempPath, "TypesCache", "umbraco-types." + NetworkHelper.FileSafeMachineName);
// ensure that the folder exists
var directory = Path.GetDirectoryName(_fileBasePath);
if (directory == null)
throw new InvalidOperationException($"Could not determine folder for path \"{_fileBasePath}\".");
if (Directory.Exists(directory) == false)
Directory.CreateDirectory(directory);
return _fileBasePath;
throw new InvalidOperationException($"Could not determine folder for path \"{fileBasePath}\".");
}
if (Directory.Exists(directory) == false)
{
Directory.CreateDirectory(directory);
}
return fileBasePath;
}
// internal for tests
@@ -415,7 +437,10 @@ namespace Umbraco.Core.Composing
writer.WriteLine(typeList.BaseType == null ? string.Empty : typeList.BaseType.FullName);
writer.WriteLine(typeList.AttributeType == null ? string.Empty : typeList.AttributeType.FullName);
foreach (var type in typeList.Types)
{
writer.WriteLine(type.AssemblyQualifiedName);
}
writer.WriteLine();
}
}
@@ -433,16 +458,22 @@ namespace Umbraco.Core.Composing
WriteCache();
}
catch { /* bah - just don't die */ }
if (!_timing) _timer = null;
if (!_timing)
_timer = null;
}
}
lock (_timerLock)
{
if (_timer == null)
{
_timer = new Timer(TimerRelease, null, ListFileWriteThrottle, Timeout.Infinite);
}
else
{
_timer.Change(ListFileWriteThrottle, Timeout.Infinite);
}
_timing = true;
}
}
@@ -475,9 +506,11 @@ namespace Umbraco.Core.Composing
catch
{
if (--attempts == 0)
{
throw;
}
_logger.Debug<TypeLoader>("Attempted to get filestream for file {Path} failed, {NumberOfAttempts} attempts left, pausing for {PauseMilliseconds} milliseconds", path, attempts, pauseMilliseconds);
_logger.Debug<TypeLoader,string,int,int>("Attempted to get filestream for file {Path} failed, {NumberOfAttempts} attempts left, pausing for {PauseMilliseconds} milliseconds", path, attempts, pauseMilliseconds);
Thread.Sleep(pauseMilliseconds);
}
}
@@ -498,7 +531,7 @@ namespace Umbraco.Core.Composing
if (--attempts == 0)
throw;
_logger.Debug<TypeLoader>("Attempted to delete file {Path} failed, {NumberOfAttempts} attempts left, pausing for {PauseMilliseconds} milliseconds", path, attempts, pauseMilliseconds);
_logger.Debug<TypeLoader,string,int,int>("Attempted to delete file {Path} failed, {NumberOfAttempts} attempts left, pausing for {PauseMilliseconds} milliseconds", path, attempts, pauseMilliseconds);
Thread.Sleep(pauseMilliseconds);
}
}
@@ -542,7 +575,8 @@ namespace Umbraco.Core.Composing
/// <exception cref="ArgumentNullException">attributeTypes</exception>
public IEnumerable<Attribute> GetAssemblyAttributes(params Type[] attributeTypes)
{
if (attributeTypes == null) throw new ArgumentNullException(nameof(attributeTypes));
if (attributeTypes == null)
throw new ArgumentNullException(nameof(attributeTypes));
return AssembliesToScan.SelectMany(a => attributeTypes.SelectMany(at => a.GetCustomAttributes(at))).ToList();
}
@@ -562,7 +596,9 @@ namespace Umbraco.Core.Composing
public IEnumerable<Type> GetTypes<T>(bool cache = true, IEnumerable<Assembly> specificAssemblies = null)
{
if (_logger == null)
{
throw new InvalidOperationException("Cannot get types from a test/blank type loader.");
}
// do not cache anything from specific assemblies
cache &= specificAssemblies == null;
@@ -571,7 +607,7 @@ namespace Umbraco.Core.Composing
if (!typeof(IDiscoverable).IsAssignableFrom(typeof(T)))
{
// warn
_logger.Debug<TypeLoader>("Running a full, " + (cache ? "" : "non-") + "cached, scan for non-discoverable type {TypeName} (slow).", typeof(T).FullName);
_logger.Debug<TypeLoader,string>("Running a full, " + (cache ? "" : "non-") + "cached, scan for non-discoverable type {TypeName} (slow).", typeof(T).FullName);
return GetTypesInternal(
typeof(T), null,
@@ -582,20 +618,20 @@ namespace Umbraco.Core.Composing
// get IDiscoverable and always cache
var discovered = GetTypesInternal(
typeof (IDiscoverable), null,
typeof(IDiscoverable), null,
() => TypeFinder.FindClassesOfType<IDiscoverable>(AssembliesToScan),
"scanning assemblies",
true);
// warn
if (!cache)
_logger.Debug<TypeLoader>("Running a non-cached, filter for discoverable type {TypeName} (slowish).", typeof(T).FullName);
_logger.Debug<TypeLoader, string>("Running a non-cached, filter for discoverable type {TypeName} (slowish).", typeof(T).FullName);
// filter the cached discovered types (and maybe cache the result)
return GetTypesInternal(
typeof (T), null,
typeof(T), null,
() => discovered
.Where(x => typeof (T).IsAssignableFrom(x)),
.Where(x => typeof(T).IsAssignableFrom(x)),
"filtering IDiscoverable",
cache);
}
@@ -613,7 +649,9 @@ namespace Umbraco.Core.Composing
where TAttribute : Attribute
{
if (_logger == null)
{
throw new InvalidOperationException("Cannot get types from a test/blank type loader.");
}
// do not cache anything from specific assemblies
cache &= specificAssemblies == null;
@@ -621,7 +659,7 @@ namespace Umbraco.Core.Composing
// if not IDiscoverable, directly get types
if (!typeof(IDiscoverable).IsAssignableFrom(typeof(T)))
{
_logger.Debug<TypeLoader>("Running a full, " + (cache ? "" : "non-") + "cached, scan for non-discoverable type {TypeName} / attribute {AttributeName} (slow).", typeof(T).FullName, typeof(TAttribute).FullName);
_logger.Debug<TypeLoader, string, string>("Running a full, " + (cache ? "" : "non-") + "cached, scan for non-discoverable type {TypeName} / attribute {AttributeName} (slow).", typeof(T).FullName, typeof(TAttribute).FullName);
return GetTypesInternal(
typeof(T), typeof(TAttribute),
@@ -632,18 +670,18 @@ namespace Umbraco.Core.Composing
// get IDiscoverable and always cache
var discovered = GetTypesInternal(
typeof (IDiscoverable), null,
typeof(IDiscoverable), null,
() => TypeFinder.FindClassesOfType<IDiscoverable>(AssembliesToScan),
"scanning assemblies",
true);
// warn
if (!cache)
_logger.Debug<TypeLoader>("Running a non-cached, filter for discoverable type {TypeName} / attribute {AttributeName} (slowish).", typeof(T).FullName, typeof(TAttribute).FullName);
_logger.Debug<TypeLoader, string, string>("Running a non-cached, filter for discoverable type {TypeName} / attribute {AttributeName} (slowish).", typeof(T).FullName, typeof(TAttribute).FullName);
// filter the cached discovered types (and maybe cache the result)
return GetTypesInternal(
typeof (T), typeof (TAttribute),
typeof(T), typeof(TAttribute),
() => discovered
.Where(x => typeof(T).IsAssignableFrom(x))
.Where(x => x.GetCustomAttributes<TAttribute>(false).Any()),
@@ -663,16 +701,18 @@ namespace Umbraco.Core.Composing
where TAttribute : Attribute
{
if (_logger == null)
{
throw new InvalidOperationException("Cannot get types from a test/blank type loader.");
}
// do not cache anything from specific assemblies
cache &= specificAssemblies == null;
if (!cache)
_logger.Debug<TypeLoader>("Running a full, non-cached, scan for types / attribute {AttributeName} (slow).", typeof(TAttribute).FullName);
_logger.Debug<TypeLoader, string>("Running a full, non-cached, scan for types / attribute {AttributeName} (slow).", typeof(TAttribute).FullName);
return GetTypesInternal(
typeof (object), typeof (TAttribute),
typeof(object), typeof(TAttribute),
() => TypeFinder.FindClassesWithAttribute<TAttribute>(specificAssemblies ?? AssembliesToScan),
"scanning assemblies",
cache);
@@ -692,12 +732,14 @@ namespace Umbraco.Core.Composing
var name = GetName(baseType, attributeType);
lock (_locko)
using (_logger.DebugDuration<TypeLoader>(
{
using (_logger.DebugDuration<TypeLoader>(
"Getting " + name,
"Got " + name)) // cannot contain typesFound.Count as it's evaluated before the find
{
// get within a lock & timer
return GetTypesInternalLocked(baseType, attributeType, finder, action, cache);
{
// get within a lock & timer
return GetTypesInternalLocked(baseType, attributeType, finder, action, cache);
}
}
}
@@ -719,13 +761,15 @@ namespace Umbraco.Core.Composing
var listKey = new CompositeTypeTypeKey(baseType ?? tobject, attributeType ?? tobject);
TypeList typeList = null;
if (cache)
{
_types.TryGetValue(listKey, out typeList); // else null
}
// if caching and found, return
if (typeList != null)
{
// need to put some logging here to try to figure out why this is happening: http://issues.umbraco.org/issue/U4-3505
_logger.Debug<TypeLoader>("Getting {TypeName}: found a cached type list.", GetName(baseType, attributeType));
_logger.Debug<TypeLoader, string>("Getting {TypeName}: found a cached type list.", GetName(baseType, attributeType));
return typeList.Types;
}
@@ -756,7 +800,7 @@ namespace Umbraco.Core.Composing
// so in this instance there will never be a result.
if (cacheResult.Exception is CachedTypeNotFoundInFileException || cacheResult.Success == false)
{
_logger.Debug<TypeLoader>("Getting {TypeName}: failed to load from cache file, must scan assemblies.", GetName(baseType, attributeType));
_logger.Debug<TypeLoader, string>("Getting {TypeName}: failed to load from cache file, must scan assemblies.", GetName(baseType, attributeType));
scan = true;
}
else
@@ -775,7 +819,7 @@ namespace Umbraco.Core.Composing
catch (Exception ex)
{
// in case of any exception, we have to exit, and revert to scanning
_logger.Error<TypeLoader>(ex, "Getting {TypeName}: failed to load cache file type {CacheType}, reverting to scanning assemblies.", GetName(baseType, attributeType), type);
_logger.Error<TypeLoader,string,string>(ex, "Getting {TypeName}: failed to load cache file type {CacheType}, reverting to scanning assemblies.", GetName(baseType, attributeType), type);
scan = true;
break;
}
@@ -783,7 +827,7 @@ namespace Umbraco.Core.Composing
if (scan == false)
{
_logger.Debug<TypeLoader>("Getting {TypeName}: loaded types from cache file.", GetName(baseType, attributeType));
_logger.Debug<TypeLoader, string>("Getting {TypeName}: loaded types from cache file.", GetName(baseType, attributeType));
}
}
}
@@ -791,10 +835,12 @@ namespace Umbraco.Core.Composing
if (scan)
{
// either we had to scan, or we could not get the types from the cache file - scan now
_logger.Debug<TypeLoader>("Getting {TypeName}: " + action + ".", GetName(baseType, attributeType));
_logger.Debug<TypeLoader, string>("Getting {TypeName}: " + action + ".", GetName(baseType, attributeType));
foreach (var t in finder())
{
typeList.Add(t);
}
}
// if we are to cache the results, do so
@@ -806,14 +852,16 @@ namespace Umbraco.Core.Composing
_types[listKey] = typeList;
//if we are scanning then update the cache file
if (scan)
{
UpdateCache();
}
}
_logger.Debug<TypeLoader>("Got {TypeName}, caching ({CacheType}).", GetName(baseType, attributeType), added.ToString().ToLowerInvariant());
_logger.Debug<TypeLoader, string, string>("Got {TypeName}, caching ({CacheType}).", GetName(baseType, attributeType), added.ToString().ToLowerInvariant());
}
else
{
_logger.Debug<TypeLoader>("Got {TypeName}.", GetName(baseType, attributeType));
_logger.Debug<TypeLoader, string>("Got {TypeName}.", GetName(baseType, attributeType));
}
return typeList.Types;
@@ -16,6 +16,8 @@ namespace Umbraco.Core.Composing
{
protected abstract TBuilder This { get; }
private readonly Dictionary<Type, int> _customWeights = new Dictionary<Type, int>();
/// <summary>
/// Clears all types in the collection.
/// </summary>
@@ -107,6 +109,18 @@ namespace Umbraco.Core.Composing
return This;
}
/// <summary>
/// Changes the default weight of an item
/// </summary>
/// <typeparam name="T">The type of item</typeparam>
/// <param name="weight">The new weight</param>
/// <returns></returns>
public TBuilder SetWeight<T>(int weight) where T : TItem
{
_customWeights[typeof(T)] = weight;
return This;
}
protected override IEnumerable<Type> GetRegisteringTypes(IEnumerable<Type> types)
{
var list = types.ToList();
@@ -118,6 +132,8 @@ namespace Umbraco.Core.Composing
protected virtual int GetWeight(Type type)
{
if (_customWeights.ContainsKey(type))
return _customWeights[type];
var attr = type.GetCustomAttributes(typeof(WeightAttribute), false).OfType<WeightAttribute>().SingleOrDefault();
return attr?.Weight ?? DefaultWeight;
}
+9 -1
View File
@@ -5,6 +5,7 @@ using Umbraco.Core.Dictionary;
using Umbraco.Core.IO;
using Umbraco.Core.Logging.Viewer;
using Umbraco.Core.Manifest;
using Umbraco.Core.Mapping;
using Umbraco.Core.Models.PublishedContent;
using Umbraco.Core.PackageActions;
using Umbraco.Core.Persistence.Mappers;
@@ -28,6 +29,13 @@ namespace Umbraco.Core
public static CacheRefresherCollectionBuilder CacheRefreshers(this Composition composition)
=> composition.WithCollectionBuilder<CacheRefresherCollectionBuilder>();
/// <summary>
/// Gets the map definitions collection builder.
/// </summary>
/// <param name="composition">The composition.</param>
public static MapDefinitionCollectionBuilder MapDefinitions(this Composition composition)
=> composition.WithCollectionBuilder<MapDefinitionCollectionBuilder>();
/// <summary>
/// Gets the mappers collection builder.
/// </summary>
@@ -64,7 +72,7 @@ namespace Umbraco.Core
=> composition.WithCollectionBuilder<PropertyValueConverterCollectionBuilder>();
/// <summary>
/// Gets the url segment providers collection builder.
/// Gets the URL segment providers collection builder.
/// </summary>
/// <param name="composition">The composition.</param>
public static UrlSegmentProviderCollectionBuilder UrlSegmentProviders(this Composition composition)
+9 -4
View File
@@ -1,10 +1,11 @@
using System.IO;
using Umbraco.Core.Cache;
using Umbraco.Core.Composing;
using Umbraco.Core.Configuration;
using Umbraco.Core.Configuration.Grid;
using Umbraco.Core.Configuration.HealthChecks;
using Umbraco.Core.Configuration.UmbracoSettings;
using Umbraco.Core.Dashboards;
using Umbraco.Core.Help;
using Umbraco.Core.IO;
using Umbraco.Core.Logging;
using Umbraco.Core.Manifest;
@@ -28,8 +29,8 @@ namespace Umbraco.Core
public static IGridConfig Grids(this Configs configs)
=> configs.GetConfig<IGridConfig>();
internal static CoreDebug CoreDebug(this Configs configs)
=> configs.GetConfig<CoreDebug>();
public static ICoreDebug CoreDebug(this Configs configs)
=> configs.GetConfig<ICoreDebug>();
public static void AddCoreConfigs(this Configs configs)
{
@@ -39,7 +40,7 @@ namespace Umbraco.Core
configs.Add<IUmbracoSettingsSection>("umbracoConfiguration/settings");
configs.Add<IHealthChecks>("umbracoConfiguration/HealthChecks");
configs.Add(() => new CoreDebug());
configs.Add<ICoreDebug>(() => new CoreDebug());
// GridConfig depends on runtime caches, manifest parsers... and cannot be available during composition
configs.Add<IGridConfig>(factory => new GridConfig(
@@ -48,6 +49,10 @@ namespace Umbraco.Core
configDir,
factory.GetInstance<ManifestParser>(),
factory.GetInstance<IRuntimeState>().Debug));
configs.Add<IContentDashboardSettings>(() => new ContentDashboardSettings());
configs.Add<IHelpPageSettings>(() => new HelpPageSettings());
}
}
}
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Umbraco.Core.Configuration
{
internal class CoreDebug
internal class CoreDebug : ICoreDebug
{
public CoreDebug()
{
@@ -6,7 +6,9 @@ using System.Web;
using System.Web.Configuration;
using System.Web.Hosting;
using System.Xml.Linq;
using Umbraco.Core.Composing;
using Umbraco.Core.IO;
using Umbraco.Core.Logging;
namespace Umbraco.Core.Configuration
{
@@ -23,6 +25,7 @@ namespace Umbraco.Core.Configuration
// TODO these should not be static
private static string _reservedPaths;
private static string _reservedUrls;
private static int _sqlWriteLockTimeOut;
//ensure the built on (non-changeable) reserved paths are there at all times
internal const string StaticReservedPaths = "~/app_plugins/,~/install/,~/mini-profiler-resources/,"; //must end with a comma!
@@ -68,9 +71,9 @@ namespace Umbraco.Core.Configuration
internal static bool? HasSmtpServer { get; set; }
/// <summary>
/// Gets the reserved urls from web.config.
/// Gets the reserved URLs from web.config.
/// </summary>
/// <value>The reserved urls.</value>
/// <value>The reserved URLs.</value>
public string ReservedUrls
{
get
@@ -145,6 +148,20 @@ namespace Umbraco.Core.Configuration
}
}
/// <summary>
/// Gets the path to folder containing the icons used in the umbraco backoffice (/umbraco/assets/icons by default).
/// </summary>
/// <value>The icons path.</value>
public string IconsPath
{
get
{
return ConfigurationManager.AppSettings.ContainsKey(Constants.AppSettings.IconsPath)
? IOHelper.ResolveUrl(Constants.AppSettings.IconsPath)
: $"{Path}/assets/icons";
}
}
/// <summary>
/// Gets or sets the configuration status. This will return the version number of the currently installed umbraco instance.
/// </summary>
@@ -340,10 +357,10 @@ namespace Umbraco.Core.Configuration
}
/// <summary>
/// Gets a value indicating whether umbraco should hide top level nodes from generated urls.
/// Gets a value indicating whether umbraco should hide top level nodes from generated URLs.
/// </summary>
/// <value>
/// <c>true</c> if umbraco hides top level nodes from urls; otherwise, <c>false</c>.
/// <c>true</c> if umbraco hides top level nodes from URLs; otherwise, <c>false</c>.
/// </value>
public bool HideTopLevelNodeFromPath
{
@@ -377,5 +394,69 @@ namespace Umbraco.Core.Configuration
}
}
}
/// <summary>
/// Returns true if TinyMCE scripting sanitization should be applied
/// </summary>
/// <remarks>
/// The default value is false
/// </remarks>
public bool SanitizeTinyMce
{
get
{
try
{
return bool.Parse(ConfigurationManager.AppSettings[Constants.AppSettings.SanitizeTinyMce]);
}
catch
{
return false;
}
}
}
/// <summary>
/// An int value representing the time in milliseconds to lock the database for a write operation
/// </summary>
/// <remarks>
/// The default value is 5000 milliseconds
/// </remarks>
/// <value>The timeout in milliseconds.</value>
public int SqlWriteLockTimeOut
{
get
{
if (_sqlWriteLockTimeOut != default) return _sqlWriteLockTimeOut;
var timeOut = GetSqlWriteLockTimeoutFromConfigFile(Current.Logger);
_sqlWriteLockTimeOut = timeOut;
return _sqlWriteLockTimeOut;
}
}
internal static int GetSqlWriteLockTimeoutFromConfigFile(ILogger logger)
{
var timeOut = 5000; // 5 seconds
var appSettingSqlWriteLockTimeOut = ConfigurationManager.AppSettings[Constants.AppSettings.SqlWriteLockTimeOut];
if (int.TryParse(appSettingSqlWriteLockTimeOut, out var configuredTimeOut))
{
// Only apply this setting if it's not excessively high or low
const int minimumTimeOut = 100;
const int maximumTimeOut = 20000;
if (configuredTimeOut >= minimumTimeOut && configuredTimeOut <= maximumTimeOut) // between 0.1 and 20 seconds
{
timeOut = configuredTimeOut;
}
else
{
logger.Warn<GlobalSettings>(
$"The `{Constants.AppSettings.SqlWriteLockTimeOut}` setting in web.config is not between the minimum of {minimumTimeOut} ms and maximum of {maximumTimeOut} ms, defaulting back to {timeOut}");
}
}
return timeOut;
}
}
}
@@ -44,7 +44,7 @@ namespace Umbraco.Core.Configuration
var path = globalSettings.Path;
if (path.StartsWith(SystemDirectories.Root)) // beware of TrimStart, see U4-2518
path = path.Substring(SystemDirectories.Root.Length);
return path.TrimStart('~').TrimStart('/').Replace('/', '-').Trim().ToLower();
return path.TrimStart(Constants.CharArrays.Tilde).TrimStart(Constants.CharArrays.ForwardSlash).Replace('/', '-').Trim().ToLower();
}
}
@@ -43,7 +43,7 @@ namespace Umbraco.Core.Configuration.Grid
}
catch (Exception ex)
{
_logger.Error<GridEditorsConfig>(ex, "Could not parse the contents of grid.editors.config.js into a JSON array '{Json}", sourceString);
_logger.Error<GridEditorsConfig,string>(ex, "Could not parse the contents of grid.editors.config.js into a JSON array '{Json}", sourceString);
}
}
@@ -0,0 +1,8 @@
namespace Umbraco.Core.Configuration
{
public interface ICoreDebug
{
bool DumpOnTimeoutThreadAbort { get; }
bool LogUncompletedScopes { get; }
}
}
@@ -1,14 +1,14 @@
namespace Umbraco.Core.Configuration
{
/// <summary>
/// Contains general settings information for the entire Umbraco instance based on information from web.config appsettings
/// Contains general settings information for the entire Umbraco instance based on information from web.config appsettings
/// </summary>
public interface IGlobalSettings
{
/// <summary>
/// Gets the reserved urls from web.config.
/// Gets the reserved URLs from web.config.
/// </summary>
/// <value>The reserved urls.</value>
/// <value>The reserved URLs.</value>
string ReservedUrls { get; }
/// <summary>
@@ -21,7 +21,12 @@
/// Gets the path to umbraco's root directory (/umbraco by default).
/// </summary>
string Path { get; }
/// <summary>
/// Gets the path to umbraco's icons directory (/umbraco/assets/icons by default).
/// </summary>
string IconsPath { get; }
/// <summary>
/// Gets or sets the configuration status. This will return the version number of the currently installed umbraco instance.
/// </summary>
@@ -40,10 +45,10 @@
string DefaultUILanguage { get; }
/// <summary>
/// Gets a value indicating whether umbraco should hide top level nodes from generated urls.
/// Gets a value indicating whether umbraco should hide top level nodes from generated URLs.
/// </summary>
/// <value>
/// <c>true</c> if umbraco hides top level nodes from urls; otherwise, <c>false</c>.
/// <c>true</c> if umbraco hides top level nodes from URLs; otherwise, <c>false</c>.
/// </value>
bool HideTopLevelNodeFromPath { get; }
@@ -67,5 +72,15 @@
/// Gets the location of temporary files.
/// </summary>
string LocalTempPath { get; }
/// <summary>
/// Gets the write lock timeout.
/// </summary>
int SqlWriteLockTimeOut { get; }
/// <summary>
/// Returns true if TinyMCE scripting sanitization should be applied
/// </summary>
bool SanitizeTinyMce { get; }
}
}
@@ -8,5 +8,10 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
internal TourConfigElement Tours => (TourConfigElement)this["tours"];
ITourSection IBackOfficeSection.Tours => Tours;
[ConfigurationProperty("id", DefaultValue = "")]
internal string Id => (string)base["id"];
string IBackOfficeSection.Id => (string)base["id"];
}
}
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Configuration;
using Umbraco.Core.Macros;
@@ -22,6 +23,9 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
[ConfigurationProperty("notifications", IsRequired = true)]
internal NotificationsElement Notifications => (NotificationsElement) base["notifications"];
[ConfigurationProperty("contentVersionCleanupPolicyGlobalSettings", IsRequired = false)]
internal ContentVersionCleanupPolicyGlobalSettingsElement ContentVersionCleanupPolicyGlobalSettingsElement => (ContentVersionCleanupPolicyGlobalSettingsElement) this["contentVersionCleanupPolicyGlobalSettings"];
[ConfigurationProperty("PreviewBadge")]
internal InnerTextConfigurationElement<string> PreviewBadge => GetOptionalTextElement("PreviewBadge", DefaultPreviewBadge);
@@ -29,17 +33,27 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
internal InnerTextConfigurationElement<MacroErrorBehaviour> MacroErrors => GetOptionalTextElement("MacroErrors", MacroErrorBehaviour.Inline);
[ConfigurationProperty("disallowedUploadFiles")]
internal CommaDelimitedConfigurationElement DisallowedUploadFiles => GetOptionalDelimitedElement("disallowedUploadFiles", new[] {"ashx", "aspx", "ascx", "config", "cshtml", "vbhtml", "asmx", "air", "axd"});
internal CommaDelimitedConfigurationElement DisallowedUploadFiles => GetOptionalDelimitedElement("disallowedUploadFiles", new[] {"ashx", "aspx", "ascx", "config", "cshtml", "vbhtml", "asmx", "air", "axd", "xamlx"});
[ConfigurationProperty("allowedMediaHosts")]
internal CommaDelimitedConfigurationElement AllowedMediaHosts => GetOptionalDelimitedElement("allowedMediaHosts", new string[0]);
[ConfigurationProperty("allowedUploadFiles")]
internal CommaDelimitedConfigurationElement AllowedUploadFiles => GetOptionalDelimitedElement("allowedUploadFiles", new string[0]);
[ConfigurationProperty("showDeprecatedPropertyEditors")]
internal InnerTextConfigurationElement<bool> ShowDeprecatedPropertyEditors => GetOptionalTextElement("showDeprecatedPropertyEditors", false);
[ConfigurationProperty("loginBackgroundImage")]
internal InnerTextConfigurationElement<string> LoginBackgroundImage => GetOptionalTextElement("loginBackgroundImage", string.Empty);
[ConfigurationProperty("loginLogoImage")]
internal InnerTextConfigurationElement<string> LoginLogoImage => GetOptionalTextElement("loginLogoImage", "assets/img/application/umbraco_logo_white.svg");
[ConfigurationProperty("hideBackofficeLogo")]
internal InnerTextConfigurationElement<bool> HideBackOfficeLogo => GetOptionalTextElement("hideBackofficeLogo", false);
string IContentSection.NotificationEmailAddress => Notifications.NotificationEmailAddress;
bool IContentSection.DisableHtmlEmail => Notifications.DisableHtmlEmail;
@@ -58,8 +72,13 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
IEnumerable<string> IContentSection.AllowedUploadFiles => AllowedUploadFiles;
IContentVersionCleanupPolicyGlobalSettings IContentSection.ContentVersionCleanupPolicyGlobalSettings => ContentVersionCleanupPolicyGlobalSettingsElement;
bool IContentSection.ShowDeprecatedPropertyEditors => ShowDeprecatedPropertyEditors;
string IContentSection.LoginBackgroundImage => LoginBackgroundImage;
string IContentSection.LoginLogoImage => LoginLogoImage;
bool IContentSection.HideBackOfficeLogo => HideBackOfficeLogo;
}
}
@@ -15,7 +15,7 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
{
if (contentConfig == null) throw new ArgumentNullException(nameof(contentConfig));
if (extension == null) return false;
extension = extension.TrimStart('.');
extension = extension.TrimStart(Constants.CharArrays.Period);
return contentConfig.ImageFileTypes.InvariantContains(extension);
}
@@ -0,0 +1,16 @@
using System.Configuration;
namespace Umbraco.Core.Configuration.UmbracoSettings
{
internal class ContentVersionCleanupPolicyGlobalSettingsElement : UmbracoConfigurationElement, IContentVersionCleanupPolicyGlobalSettings
{
[ConfigurationProperty("enable", DefaultValue = false)]
public bool EnableCleanup => (bool)this["enable"];
[ConfigurationProperty("keepAllVersionsNewerThanDays", DefaultValue = 2)]
public int KeepAllVersionsNewerThanDays => (int)this["keepAllVersionsNewerThanDays"];
[ConfigurationProperty("keepLatestVersionPerDayForDays", DefaultValue = 30)]
public int KeepLatestVersionPerDayForDays => (int)this["keepLatestVersionPerDayForDays"];
}
}
@@ -1,7 +1,10 @@
namespace Umbraco.Core.Configuration.UmbracoSettings
using System;
namespace Umbraco.Core.Configuration.UmbracoSettings
{
public interface IBackOfficeSection
{
ITourSection Tours { get; }
string Id { get; }
}
}
}
@@ -12,11 +12,11 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
IEnumerable<string> ImageFileTypes { get; }
IEnumerable<IImagingAutoFillUploadField> ImageAutoFillProperties { get; }
bool ResolveUrlsFromTextString { get; }
IEnumerable<IContentErrorPage> Error404Collection { get; }
string PreviewBadge { get; }
MacroErrorBehaviour MacroErrorBehaviour { get; }
@@ -25,6 +25,8 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
IEnumerable<string> AllowedUploadFiles { get; }
IContentVersionCleanupPolicyGlobalSettings ContentVersionCleanupPolicyGlobalSettings { get; }
/// <summary>
/// Gets a value indicating whether to show deprecated property editors in
/// a datatype list of available editors.
@@ -32,5 +34,8 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
bool ShowDeprecatedPropertyEditors { get; }
string LoginBackgroundImage { get; }
string LoginLogoImage { get; }
bool HideBackOfficeLogo { get; }
}
}
@@ -0,0 +1,9 @@
namespace Umbraco.Core.Configuration.UmbracoSettings
{
public interface IContentVersionCleanupPolicyGlobalSettings
{
bool EnableCleanup { get; }
int KeepAllVersionsNewerThanDays { get; }
int KeepLatestVersionPerDayForDays { get; }
}
}
+37 -2
View File
@@ -43,6 +43,11 @@ namespace Umbraco.Core
/// </summary>
public const string Path = "Umbraco.Core.Path";
/// <summary>
/// Gets the path to umbraco's icons directory (/umbraco/assets/icons by default).
/// </summary>
public const string IconsPath = "Umbraco.Icons.Path";
/// <summary>
/// Gets the path to the css directory (/css by default).
/// </summary>
@@ -59,7 +64,7 @@ namespace Umbraco.Core
public const string MediaPath = "umbracoMediaPath";
/// <summary>
/// The reserved urls from web.config.
/// The reserved URLs from web.config.
/// </summary>
public const string ReservedUrls = "Umbraco.Core.ReservedUrls";
@@ -96,7 +101,7 @@ namespace Umbraco.Core
public const string DefaultUILanguage = "Umbraco.Core.DefaultUILanguage";
/// <summary>
/// A true/false value indicating whether umbraco should hide top level nodes from generated urls.
/// A true/false value indicating whether umbraco should hide top level nodes from generated URLs.
/// </summary>
public const string HideTopLevelNodeFromPath = "Umbraco.Core.HideTopLevelNodeFromPath";
@@ -105,6 +110,26 @@ namespace Umbraco.Core
/// </summary>
public const string UseHttps = "Umbraco.Core.UseHttps";
/// <summary>
/// A true/false value indicating whether the content dashboard should be visible for all user groups.
/// </summary>
public const string AllowContentDashboardAccessToAllUsers = "Umbraco.Core.AllowContentDashboardAccessToAllUsers";
/// <summary>
/// The path to use when constructing the URL for retrieving data for the content dashboard.
/// </summary>
public const string ContentDashboardPath = "Umbraco.Core.ContentDashboardPath";
/// <summary>
/// A list of allowed addresses to fetch content for the content dashboard.
/// </summary>
public const string ContentDashboardUrlAllowlist = "Umbraco.Core.ContentDashboardUrl-Allowlist";
/// <summary>
/// A list of allowed addresses to fetch content for the help page.
/// </summary>
public const string HelpPageUrlAllowList = "Umbraco.Core.HelpPage-Allowlist";
/// <summary>
/// TODO: FILL ME IN
/// </summary>
@@ -135,6 +160,16 @@ namespace Umbraco.Core
/// </summary>
public const string DatabaseFactoryServerVersion = "Umbraco.Core.Debug.DatabaseFactoryServerVersion";
}
/// <summary>
/// An int value representing the time in milliseconds to lock the database for a write operation
/// </summary>
public const string SqlWriteLockTimeOut = "Umbraco.Core.SqlWriteLockTimeOut";
/// <summary>
/// Returns true if TinyMCE scripting sanitization should be applied
/// </summary>
public const string SanitizeTinyMce = "Umbraco.Web.SanitizeTinyMce";
}
}
}
+138
View File
@@ -0,0 +1,138 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Umbraco.Core
{
public static partial class Constants
{
/// <summary>
/// Char Arrays to avoid allocations
/// </summary>
public static class CharArrays
{
/// <summary>
/// Char array containing only /
/// </summary>
public static readonly char[] ForwardSlash = new char[] { '/' };
/// <summary>
/// Char array containing only \
/// </summary>
public static readonly char[] Backslash = new char[] { '\\' };
/// <summary>
/// Char array containing only '
/// </summary>
public static readonly char[] SingleQuote = new char[] { '\'' };
/// <summary>
/// Char array containing only "
/// </summary>
public static readonly char[] DoubleQuote = new char[] { '\"' };
/// <summary>
/// Char array containing ' "
/// </summary>
public static readonly char[] DoubleQuoteSingleQuote = new char[] { '\"', '\'' };
/// <summary>
/// Char array containing only _
/// </summary>
public static readonly char[] Underscore = new char[] { '_' };
/// <summary>
/// Char array containing \n \r
/// </summary>
public static readonly char[] LineFeedCarriageReturn = new char[] { '\n', '\r' };
/// <summary>
/// Char array containing \n
/// </summary>
public static readonly char[] LineFeed = new char[] { '\n' };
/// <summary>
/// Char array containing only ,
/// </summary>
public static readonly char[] Comma = new char[] { ',' };
/// <summary>
/// Char array containing only &
/// </summary>
public static readonly char[] Ampersand = new char[] { '&' };
/// <summary>
/// Char array containing only \0
/// </summary>
public static readonly char[] NullTerminator = new char[] { '\0' };
/// <summary>
/// Char array containing only .
/// </summary>
public static readonly char[] Period = new char[] { '.' };
/// <summary>
/// Char array containing only ~
/// </summary>
public static readonly char[] Tilde = new char[] { '~' };
/// <summary>
/// Char array containing ~ /
/// </summary>
public static readonly char[] TildeForwardSlash = new char[] { '~', '/' };
/// <summary>
/// Char array containing only ?
/// </summary>
public static readonly char[] QuestionMark = new char[] { '?' };
/// <summary>
/// Char array containing ? &
/// </summary>
public static readonly char[] QuestionMarkAmpersand = new char[] { '?', '&' };
/// <summary>
/// Char array containing XML 1.1 whitespace chars
/// </summary>
public static readonly char[] XmlWhitespaceChars = new char[] { ' ', '\t', '\r', '\n' };
/// <summary>
/// Char array containing only the Space char
/// </summary>
public static readonly char[] Space = new char[] { ' ' };
/// <summary>
/// Char array containing only ;
/// </summary>
public static readonly char[] Semicolon = new char[] { ';' };
/// <summary>
/// Char array containing a comma and a space
/// </summary>
public static readonly char[] CommaSpace = new char[] { ',', ' ' };
/// <summary>
/// Char array containing _ -
/// </summary>
public static readonly char[] UnderscoreDash = new char[] { '_', '-' };
/// <summary>
/// Char array containing =
/// </summary>
public static readonly char[] EqualsChar = new char[] { '=' };
/// <summary>
/// Char array containing >
/// </summary>
public static readonly char[] GreaterThan = new char[] { '>' };
/// <summary>
/// Char array containing |
/// </summary>
public static readonly char[] VerticalTab = new char[] { '|' };
}
}
}
+47 -2
View File
@@ -118,6 +118,46 @@ namespace Umbraco.Core
/// </summary>
public const string Image = "Image";
/// <summary>
/// MediaType name for a video.
/// </summary>
public const string Video = "Video";
/// <summary>
/// MediaType name for an audio.
/// </summary>
public const string Audio = "Audio";
/// <summary>
/// MediaType name for an article.
/// </summary>
public const string Article = "Article";
/// <summary>
/// MediaType name for vector graphics.
/// </summary>
public const string VectorGraphics = "VectorGraphics";
/// <summary>
/// MediaType alias for a video.
/// </summary>
public const string VideoAlias = "umbracoMediaVideo";
/// <summary>
/// MediaType alias for an audio.
/// </summary>
public const string AudioAlias = "umbracoMediaAudio";
/// <summary>
/// MediaType alias for an article.
/// </summary>
public const string ArticleAlias = "umbracoMediaArticle";
/// <summary>
/// MediaType alias for vector graphics.
/// </summary>
public const string VectorGraphicsAlias = "umbracoMediaVectorGraphics";
/// <summary>
/// MediaType alias indicating allowing auto-selection.
/// </summary>
@@ -202,9 +242,14 @@ namespace Umbraco.Core
public const string FailedPasswordAttemptsLabel = "Failed Password Attempts";
/// <summary>
/// Group name to put the membership properties on
/// The standard properties group alias for membership properties.
/// </summary>
internal const string StandardPropertiesGroupName = "Membership";
public const string StandardPropertiesGroupAlias = "membership";
/// <summary>
/// The standard properties group name for membership properties.
/// </summary>
public const string StandardPropertiesGroupName = "Membership";
public static Dictionary<string, PropertyType> GetStandardPropertyTypeStubs()
{
+90 -3
View File
@@ -25,6 +25,10 @@ namespace Umbraco.Core
public const int DropDownSingle = -39;
public const int DropDownMultiple = -42;
public const int Upload = -90;
public const int UploadVideo = -100;
public const int UploadAudio = -101;
public const int UploadArticle = -102;
public const int UploadVectorGraphics = -103;
public const int DefaultContentListView = -95;
public const int DefaultMediaListView = -96;
@@ -42,7 +46,7 @@ namespace Umbraco.Core
/// Defines the identifiers for Umbraco data types as constants for easy centralized access/management.
/// </summary>
public static class Guids
{
{
/// <summary>
/// Guid for Content Picker as string
@@ -88,6 +92,49 @@ namespace Umbraco.Core
public static readonly Guid MultipleMediaPickerGuid = new Guid(MultipleMediaPicker);
/// <summary>
/// Guid for Media Picker v3 as string
/// </summary>
public const string MediaPicker3 = "4309A3EA-0D78-4329-A06C-C80B036AF19A";
/// <summary>
/// Guid for Media Picker v3
/// </summary>
public static readonly Guid MediaPicker3Guid = new Guid(MediaPicker3);
/// <summary>
/// Guid for Media Picker v3 multiple as string
/// </summary>
public const string MediaPicker3Multiple = "1B661F40-2242-4B44-B9CB-3990EE2B13C0";
/// <summary>
/// Guid for Media Picker v3 multiple
/// </summary>
public static readonly Guid MediaPicker3MultipleGuid = new Guid(MediaPicker3Multiple);
/// <summary>
/// Guid for Media Picker v3 single-image as string
/// </summary>
public const string MediaPicker3SingleImage = "AD9F0CF2-BDA2-45D5-9EA1-A63CFC873FD3";
/// <summary>
/// Guid for Media Picker v3 single-image
/// </summary>
public static readonly Guid MediaPicker3SingleImageGuid = new Guid(MediaPicker3SingleImage);
/// <summary>
/// Guid for Media Picker v3 multi-image as string
/// </summary>
public const string MediaPicker3MultipleImages = "0E63D883-B62B-4799-88C3-157F82E83ECC";
/// <summary>
/// Guid for Media Picker v3 multi-image
/// </summary>
public static readonly Guid MediaPicker3MultipleImagesGuid = new Guid(MediaPicker3MultipleImages);
/// <summary>
/// Guid for Related Links as string
/// </summary>
@@ -307,6 +354,46 @@ namespace Umbraco.Core
/// </summary>
public static readonly Guid UploadGuid = new Guid(Upload);
/// <summary>
/// Guid for UploadVideo as string
/// </summary>
public const string UploadVideo = "70575fe7-9812-4396-bbe1-c81a76db71b5";
/// <summary>
/// Guid for UploadVideo
/// </summary>
public static readonly Guid UploadVideoGuid = new Guid(UploadVideo);
/// <summary>
/// Guid for UploadAudio as string
/// </summary>
public const string UploadAudio = "8f430dd6-4e96-447e-9dc0-cb552c8cd1f3";
/// <summary>
/// Guid for UploadAudio
/// </summary>
public static readonly Guid UploadAudioGuid = new Guid(UploadAudio);
/// <summary>
/// Guid for UploadArticle as string
/// </summary>
public const string UploadArticle = "bc1e266c-dac4-4164-bf08-8a1ec6a7143d";
/// <summary>
/// Guid for UploadArticle
/// </summary>
public static readonly Guid UploadArticleGuid = new Guid(UploadArticle);
/// <summary>
/// Guid for UploadVectorGraphics as string
/// </summary>
public const string UploadVectorGraphics = "215cb418-2153-4429-9aef-8c0f0041191b";
/// <summary>
/// Guid for UploadVectorGraphics
/// </summary>
public static readonly Guid UploadVectorGraphicsGuid = new Guid(UploadVectorGraphics);
/// <summary>
/// Guid for Label as string
@@ -367,8 +454,8 @@ namespace Umbraco.Core
/// Guid for Label decimal
/// </summary>
public static readonly Guid LabelDecimalGuid = new Guid(LabelDecimal);
}
}
}
+45
View File
@@ -24,6 +24,26 @@
/// </summary>
public const string DataType = "icon-autofill";
/// <summary>
/// System dictionary icon
/// </summary>
public const string Dictionary = "icon-book-alt";
/// <summary>
/// System generic folder icon
/// </summary>
public const string Folder = "icon-folder";
/// <summary>
/// System language icon
/// </summary>
public const string Language = "icon-globe";
/// <summary>
/// System logviewer icon
/// </summary>
public const string LogViewer = "icon-box-alt";
/// <summary>
/// System list view icon
/// </summary>
@@ -39,6 +59,26 @@
/// </summary>
public const string MediaFile = "icon-document";
/// <summary>
/// System media video icon
/// </summary>
public const string MediaVideo = "icon-video";
/// <summary>
/// System media audio icon
/// </summary>
public const string MediaAudio = "icon-sound-waves";
/// <summary>
/// System media article icon
/// </summary>
public const string MediaArticle = "icon-article";
/// <summary>
/// System media vector icon
/// </summary>
public const string MediaVectorGraphics = "icon-picture";
/// <summary>
/// System media folder icon
/// </summary>
@@ -69,6 +109,11 @@
/// </summary>
public const string MemberType = "icon-users";
/// <summary>
/// System packages icon
/// </summary>
public const string Packages = "icon-box";
/// <summary>
/// System property editor icon
/// </summary>
+12 -2
View File
@@ -51,6 +51,11 @@ namespace Umbraco.Core
/// </summary>
public const string ColorPicker = "Umbraco.ColorPicker";
/// <summary>
/// EyeDropper Color Picker.
/// </summary>
public const string ColorPickerEyeDropper = "Umbraco.ColorPicker.EyeDropper";
/// <summary>
/// Content Picker.
/// </summary>
@@ -90,12 +95,17 @@ namespace Umbraco.Core
/// ListView.
/// </summary>
public const string ListView = "Umbraco.ListView";
/// <summary>
/// Media Picker.
/// </summary>
public const string MediaPicker = "Umbraco.MediaPicker";
/// <summary>
/// Media Picker v.3.
/// </summary>
public const string MediaPicker3 = "Umbraco.MediaPicker3";
/// <summary>
/// Multiple Media Picker.
/// </summary>
@@ -192,7 +202,7 @@ namespace Umbraco.Core
public const string NestedContent = "Umbraco.NestedContent";
/// <summary>
/// Alias for the multi url picker editor.
/// Alias for the multi URL picker editor.
/// </summary>
public const string MultiUrlPicker = "Umbraco.MultiUrlPicker";
}
@@ -8,7 +8,7 @@
public static class PropertyTypeGroups
{
/// <summary>
/// Guid for a Image PropertyTypeGroup object.
/// Guid for an Image PropertyTypeGroup object.
/// </summary>
public const string Image = "79ED4D07-254A-42CF-8FA9-EBE1C116A596";
@@ -18,7 +18,27 @@
public const string File = "50899F9C-023A-4466-B623-ABA9049885FE";
/// <summary>
/// Guid for a Image PropertyTypeGroup object.
/// Guid for a Video PropertyTypeGroup object.
/// </summary>
public const string Video = "2F0A61B6-CF92-4FF4-B437-751AB35EB254";
/// <summary>
/// Guid for an Audio PropertyTypeGroup object.
/// </summary>
public const string Audio = "335FB495-0A87-4E82-B902-30EB367B767C";
/// <summary>
/// Guid for an Article PropertyTypeGroup object.
/// </summary>
public const string Article = "9AF3BD65-F687-4453-9518-5F180D1898EC";
/// <summary>
/// Guid for a VectorGraphics PropertyTypeGroup object.
/// </summary>
public const string VectorGraphics = "F199B4D7-9E84-439F-8531-F87D9AF37711";
/// <summary>
/// Guid for a Membership PropertyTypeGroup object.
/// </summary>
public const string Membership = "0756729D-D665-46E3-B84A-37ACEAA614F8";
}
+3 -1
View File
@@ -25,7 +25,7 @@ namespace Umbraco.Core
/// <summary>
/// The name of the 'unknown' user.
/// </summary>
public const string UnknownUserName = "SYTEM";
public const string UnknownUserName = "SYSTEM";
public const string AdminGroupAlias = "admin";
public const string EditorGroupAlias = "editor";
@@ -56,6 +56,8 @@ namespace Umbraco.Core
public const string AllowedApplicationsClaimType = "http://umbraco.org/2015/02/identity/claims/backoffice/allowedapp";
public const string SessionIdClaimType = "http://umbraco.org/2015/02/identity/claims/backoffice/sessionid";
public const string BackOfficeExternalLoginOptionsProperty = "UmbracoBackOfficeExternalLoginOptions";
}
}
}
+17
View File
@@ -0,0 +1,17 @@
namespace Umbraco.Core
{
public static partial class Constants
{
public static class Sql
{
/// <summary>
/// The maximum amount of parameters that can be used in a query.
/// </summary>
/// <remarks>
/// The actual limit is 2100 (https://docs.microsoft.com/en-us/sql/sql-server/maximum-capacity-specifications-for-sql-server),
/// but we want to ensure there's room for additional parameters if this value is used to create groups/batches.
/// </remarks>
public const int MaxParameterCount = 2000;
}
}
}
@@ -14,7 +14,30 @@
public const string GetParentNode = "Umbraco.Core.VersionableRepository.GetParentNode";
public const string GetReservedId = "Umbraco.Core.VersionableRepository.GetReservedId";
}
public static class RelationRepository
{
public const string DeleteByParentAll = "Umbraco.Core.RelationRepository.DeleteByParent";
public const string DeleteByParentIn = "Umbraco.Core.RelationRepository.DeleteByParentIn";
}
public static class DataTypeRepository
{
public const string EnsureUniqueNodeName = "Umbraco.Core.DataTypeDefinitionRepository.EnsureUniqueNodeName";
}
internal static class NuCacheDatabaseDataSource
{
public const string WhereNodeId = "Umbraco.Web.PublishedCache.NuCache.DataSource.WhereNodeId";
public const string WhereNodeIdX = "Umbraco.Web.PublishedCache.NuCache.DataSource.WhereNodeIdX";
public const string SourcesSelectUmbracoNodeJoin = "Umbraco.Web.PublishedCache.NuCache.DataSource.SourcesSelectUmbracoNodeJoin";
public const string ContentSourcesSelect = "Umbraco.Web.PublishedCache.NuCache.DataSource.ContentSourcesSelect";
public const string ContentSourcesCount = "Umbraco.Web.PublishedCache.NuCache.DataSource.ContentSourcesCount";
public const string MediaSourcesSelect = "Umbraco.Web.PublishedCache.NuCache.DataSource.MediaSourcesSelect";
public const string MediaSourcesCount = "Umbraco.Web.PublishedCache.NuCache.DataSource.MediaSourcesCount";
public const string ObjectTypeNotTrashedFilter = "Umbraco.Web.PublishedCache.NuCache.DataSource.ObjectTypeNotTrashedFilter";
public const string OrderByLevelIdSortOrder = "Umbraco.Web.PublishedCache.NuCache.DataSource.OrderByLevelIdSortOrder";
}
}
}
}
+5
View File
@@ -17,6 +17,11 @@
/// The preview cookie name
/// </summary>
public const string PreviewCookieName = "UMB_PREVIEW";
/// <summary>
/// Client-side cookie that determines whether the user has accepted to be in Preview Mode when visiting the website.
/// </summary>
public const string AcceptPreviewCookieName = "UMB-WEBSITE-PREVIEW-ACCEPT";
public const string InstallerCookieName = "umb_installId";
}
@@ -0,0 +1,27 @@
using System;
using System.Security.Cryptography;
namespace Umbraco.Core
{
public static class CryptoServiceProviderExtensions
{
/// <summary>
/// Generates a random int withing a specified range.
/// </summary>
/// <param name="provider">Random bytes provider.</param>
/// <param name="minValue">The minimum value of the resulting int.</param>
/// <param name="maxValue">The maximum value of the resulting int.</param>
/// <returns>A random integer that falls withing the specified range.</returns>
public static int GetInt32(this RNGCryptoServiceProvider provider, int minValue, int maxValue)
{
var randomBytes = new byte[4];
provider.GetBytes(randomBytes);
var randomInt = Math.Abs(BitConverter.ToInt32(randomBytes, 0));
// We call do mod to ensure that the value is within the specified range.
return randomInt % (maxValue - minValue + 1) + minValue;
}
}
}
@@ -0,0 +1,43 @@
using System.Configuration;
namespace Umbraco.Core.Dashboards
{
public class ContentDashboardSettings : IContentDashboardSettings
{
private const string DefaultContentDashboardPath = "cms";
/// <summary>
/// Gets a value indicating whether the content dashboard should be available to all users.
/// </summary>
/// <value>
/// <c>true</c> if the dashboard is visible for all user groups; otherwise, <c>false</c>
/// and the default access rules for that dashboard will be in use.
/// </value>
public bool AllowContentDashboardAccessToAllUsers
{
get
{
bool.TryParse(ConfigurationManager.AppSettings[Constants.AppSettings.AllowContentDashboardAccessToAllUsers], out var value);
return value;
}
}
/// <summary>
/// Gets the path to use when constructing the URL for retrieving data for the content dashboard.
/// </summary>
/// <value>The URL path.</value>
public string ContentDashboardPath =>
ConfigurationManager.AppSettings.ContainsKey(Constants.AppSettings.ContentDashboardPath)
? ConfigurationManager.AppSettings[Constants.AppSettings.ContentDashboardPath]
: DefaultContentDashboardPath;
/// <summary>
/// Gets the allowed addresses to retrieve data for the content dashboard.
/// </summary>
/// <value>The URLs.</value>
public string ContentDashboardUrlAllowlist =>
ConfigurationManager.AppSettings.ContainsKey(Constants.AppSettings.ContentDashboardUrlAllowlist)
? ConfigurationManager.AppSettings[Constants.AppSettings.ContentDashboardUrlAllowlist]
: null;
}
}
@@ -0,0 +1,26 @@
namespace Umbraco.Core.Dashboards
{
public interface IContentDashboardSettings
{
/// <summary>
/// Gets a value indicating whether the content dashboard should be available to all users.
/// </summary>
/// <value>
/// <c>true</c> if the dashboard is visible for all user groups; otherwise, <c>false</c>
/// and the default access rules for that dashboard will be in use.
/// </value>
bool AllowContentDashboardAccessToAllUsers { get; }
/// <summary>
/// Gets the path to use when constructing the URL for retrieving data for the content dashboard.
/// </summary>
/// <value>The URL path.</value>
string ContentDashboardPath { get; }
/// <summary>
/// Gets the allowed addresses to retrieve data for the content dashboard.
/// </summary>
/// <value>The URLs.</value>
string ContentDashboardUrlAllowlist { get; }
}
}
+15 -13
View File
@@ -79,24 +79,26 @@ namespace Umbraco.Core.Diagnostics
private static bool Write(SafeHandle fileHandle, Option options, bool withException = false)
{
var currentProcess = Process.GetCurrentProcess();
var currentProcessHandle = currentProcess.Handle;
var currentProcessId = (uint)currentProcess.Id;
using (var currentProcess = Process.GetCurrentProcess())
{
var currentProcessHandle = currentProcess.Handle;
var currentProcessId = (uint)currentProcess.Id;
MiniDumpExceptionInformation exp;
MiniDumpExceptionInformation exp;
exp.ThreadId = GetCurrentThreadId();
exp.ClientPointers = false;
exp.ExceptionPointers = IntPtr.Zero;
exp.ThreadId = GetCurrentThreadId();
exp.ClientPointers = false;
exp.ExceptionPointers = IntPtr.Zero;
if (withException)
exp.ExceptionPointers = Marshal.GetExceptionPointers();
if (withException)
exp.ExceptionPointers = Marshal.GetExceptionPointers();
var bRet = exp.ExceptionPointers == IntPtr.Zero
? MiniDumpWriteDump(currentProcessHandle, currentProcessId, fileHandle, (uint) options, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero)
: MiniDumpWriteDump(currentProcessHandle, currentProcessId, fileHandle, (uint) options, ref exp, IntPtr.Zero, IntPtr.Zero);
var bRet = exp.ExceptionPointers == IntPtr.Zero
? MiniDumpWriteDump(currentProcessHandle, currentProcessId, fileHandle, (uint)options, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero)
: MiniDumpWriteDump(currentProcessHandle, currentProcessId, fileHandle, (uint)options, ref exp, IntPtr.Zero, IntPtr.Zero);
return bRet;
return bRet;
}
}
public static bool Dump(Option options = Option.WithFullMemory, bool withException = false)
+1 -1
View File
@@ -253,7 +253,7 @@ namespace Umbraco.Core
{
builder.Append(String.Format("{0}={1}&", HttpUtility.UrlEncode(i.Key), i.Value == null ? string.Empty : HttpUtility.UrlEncode(i.Value.ToString())));
}
return builder.ToString().TrimEnd('&');
return builder.ToString().TrimEnd(Constants.CharArrays.Ampersand);
}
/// <summary>The get entry ignore case.</summary>
@@ -0,0 +1,9 @@
namespace Umbraco.Core.Events
{
/// <summary>
/// Used to notify that an Unattended install has completed
/// </summary>
public class UnattendedInstallEventArgs : System.ComponentModel.CancelEventArgs
{
}
}
@@ -1,5 +1,6 @@
using System;
using System.Runtime.Serialization;
using System.Text;
namespace Umbraco.Core.Exceptions
{
@@ -34,6 +35,14 @@ namespace Umbraco.Core.Exceptions
/// </value>
public string[] PropertyTypeAliases { get; }
/// <summary>
/// Gets the property group aliases.
/// </summary>
/// <value>
/// The property group aliases.
/// </value>
public string[] PropertyGroupAliases { get; }
/// <summary>
/// Initializes a new instance of the <see cref="InvalidCompositionException" /> class.
/// </summary>
@@ -56,21 +65,49 @@ namespace Umbraco.Core.Exceptions
/// <param name="addedCompositionAlias">The added composition alias.</param>
/// <param name="propertyTypeAliases">The property type aliases.</param>
public InvalidCompositionException(string contentTypeAlias, string addedCompositionAlias, string[] propertyTypeAliases)
: this(addedCompositionAlias.IsNullOrWhiteSpace()
? string.Format(
"ContentType with alias '{0}' has an invalid composition " +
"and there was a conflict on the following PropertyTypes: '{1}'. " +
"PropertyTypes must have a unique alias across all Compositions in order to compose a valid ContentType Composition.",
contentTypeAlias, string.Join(", ", propertyTypeAliases))
: string.Format(
"ContentType with alias '{0}' was added as a Composition to ContentType with alias '{1}', " +
"but there was a conflict on the following PropertyTypes: '{2}'. " +
"PropertyTypes must have a unique alias across all Compositions in order to compose a valid ContentType Composition.",
addedCompositionAlias, contentTypeAlias, string.Join(", ", propertyTypeAliases)))
: this(contentTypeAlias, addedCompositionAlias, propertyTypeAliases, new string[0])
{ }
/// <summary>
/// Initializes a new instance of the <see cref="InvalidCompositionException" /> class.
/// </summary>
/// <param name="contentTypeAlias">The content type alias.</param>
/// <param name="addedCompositionAlias">The added composition alias.</param>
/// <param name="propertyTypeAliases">The property type aliases.</param>
/// <param name="propertyGroupAliases">The property group aliases.</param>
public InvalidCompositionException(string contentTypeAlias, string addedCompositionAlias, string[] propertyTypeAliases, string[] propertyGroupAliases)
: this(FormatMessage(contentTypeAlias, addedCompositionAlias, propertyTypeAliases, propertyGroupAliases))
{
ContentTypeAlias = contentTypeAlias;
AddedCompositionAlias = addedCompositionAlias;
PropertyTypeAliases = propertyTypeAliases;
PropertyGroupAliases = propertyGroupAliases;
}
private static string FormatMessage(string contentTypeAlias, string addedCompositionAlias, string[] propertyTypeAliases, string[] propertyGroupAliases)
{
var sb = new StringBuilder();
if (addedCompositionAlias.IsNullOrWhiteSpace())
{
sb.AppendFormat("Content type with alias '{0}' has an invalid composition.", contentTypeAlias);
}
else
{
sb.AppendFormat("Content type with alias '{0}' was added as a composition to content type with alias '{1}', but there was a conflict.", addedCompositionAlias, contentTypeAlias);
}
if (propertyTypeAliases.Length > 0)
{
sb.AppendFormat(" Property types must have a unique alias across all compositions, these aliases are duplicate: {0}.", string.Join(", ", propertyTypeAliases));
}
if (propertyGroupAliases.Length > 0)
{
sb.AppendFormat(" Property groups with the same alias must also have the same type across all compositions, these aliases have different types: {0}.", string.Join(", ", propertyGroupAliases));
}
return sb.ToString();
}
/// <summary>
@@ -101,6 +138,7 @@ namespace Umbraco.Core.Exceptions
ContentTypeAlias = info.GetString(nameof(ContentTypeAlias));
AddedCompositionAlias = info.GetString(nameof(AddedCompositionAlias));
PropertyTypeAliases = (string[])info.GetValue(nameof(PropertyTypeAliases), typeof(string[]));
PropertyGroupAliases = (string[])info.GetValue(nameof(PropertyGroupAliases), typeof(string[]));
}
/// <summary>
@@ -119,6 +157,7 @@ namespace Umbraco.Core.Exceptions
info.AddValue(nameof(ContentTypeAlias), ContentTypeAlias);
info.AddValue(nameof(AddedCompositionAlias), AddedCompositionAlias);
info.AddValue(nameof(PropertyTypeAliases), PropertyTypeAliases);
info.AddValue(nameof(PropertyGroupAliases), PropertyGroupAliases);
base.GetObjectData(info, context);
}
@@ -0,0 +1,46 @@
using System;
using System.Runtime.Serialization;
namespace Umbraco.Core.Exceptions
{
/// <summary>
/// An exception that is thrown if an unattended installation occurs.
/// </summary>
[Serializable]
public class UnattendedInstallException : Exception
{
/// <summary>
/// Initializes a new instance of the <see cref="UnattendedInstallException" /> class.
/// </summary>
public UnattendedInstallException()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="UnattendedInstallException" /> class with a specified error message.
/// </summary>
/// <param name="message">The message that describes the error.</param>
public UnattendedInstallException(string message) : base(message)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="UnattendedInstallException" /> class with a specified error message
/// and a reference to the inner exception which is the cause of this exception.
/// </summary>
/// <param name="message">The message that describes the error.</param>
/// <param name="innerException">The inner exception, or null.</param>
public UnattendedInstallException(string message, Exception innerException) : base(message, innerException)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="UnattendedInstallException" /> class.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
protected UnattendedInstallException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
}
+3 -3
View File
@@ -33,8 +33,8 @@ namespace Umbraco.Core
: base(uriValue)
{
Guid guid;
if (Guid.TryParse(uriValue.AbsolutePath.TrimStart('/'), out guid) == false)
throw new FormatException("Url \"" + uriValue + "\" is not a guid entity id.");
if (Guid.TryParse(uriValue.AbsolutePath.TrimStart(Constants.CharArrays.ForwardSlash), out guid) == false)
throw new FormatException("URI \"" + uriValue + "\" is not a GUID entity ID.");
Guid = guid;
}
@@ -48,7 +48,7 @@ namespace Umbraco.Core
{
var udi = Udi.Parse(s);
if (udi is GuidUdi == false)
throw new FormatException("String \"" + s + "\" is not a guid entity id.");
throw new FormatException("String \"" + s + "\" is not a GUID entity id.");
return (GuidUdi) udi;
}
+12
View File
@@ -0,0 +1,12 @@
using System.Configuration;
namespace Umbraco.Core.Help
{
public class HelpPageSettings : IHelpPageSettings
{
public string HelpPageUrlAllowList =>
ConfigurationManager.AppSettings.ContainsKey(Constants.AppSettings.HelpPageUrlAllowList)
? ConfigurationManager.AppSettings[Constants.AppSettings.HelpPageUrlAllowList]
: null;
}
}
@@ -0,0 +1,10 @@
namespace Umbraco.Core.Help
{
public interface IHelpPageSettings
{
/// <summary>
/// Gets the allowed addresses to retrieve data for the help page.
/// </summary>
string HelpPageUrlAllowList { get; }
}
}
+1 -1
View File
@@ -50,7 +50,7 @@ namespace Umbraco.Core
if (string.IsNullOrEmpty(ipAddress))
return request.UserHostAddress;
var addresses = ipAddress.Split(',');
var addresses = ipAddress.Split(Constants.CharArrays.Comma);
if (addresses.Length != 0)
return addresses[0];
+19 -19
View File
@@ -23,94 +23,94 @@ namespace Umbraco.Core.IO
internal IFileSystem InnerFileSystem { get; set; }
public IEnumerable<string> GetDirectories(string path)
public virtual IEnumerable<string> GetDirectories(string path)
{
return InnerFileSystem.GetDirectories(path);
}
public void DeleteDirectory(string path)
public virtual void DeleteDirectory(string path)
{
InnerFileSystem.DeleteDirectory(path);
}
public void DeleteDirectory(string path, bool recursive)
public virtual void DeleteDirectory(string path, bool recursive)
{
InnerFileSystem.DeleteDirectory(path, recursive);
}
public bool DirectoryExists(string path)
public virtual bool DirectoryExists(string path)
{
return InnerFileSystem.DirectoryExists(path);
}
public void AddFile(string path, Stream stream)
public virtual void AddFile(string path, Stream stream)
{
InnerFileSystem.AddFile(path, stream);
}
public void AddFile(string path, Stream stream, bool overrideExisting)
public virtual void AddFile(string path, Stream stream, bool overrideExisting)
{
InnerFileSystem.AddFile(path, stream, overrideExisting);
}
public IEnumerable<string> GetFiles(string path)
public virtual IEnumerable<string> GetFiles(string path)
{
return InnerFileSystem.GetFiles(path);
}
public IEnumerable<string> GetFiles(string path, string filter)
public virtual IEnumerable<string> GetFiles(string path, string filter)
{
return InnerFileSystem.GetFiles(path, filter);
}
public Stream OpenFile(string path)
public virtual Stream OpenFile(string path)
{
return InnerFileSystem.OpenFile(path);
}
public void DeleteFile(string path)
public virtual void DeleteFile(string path)
{
InnerFileSystem.DeleteFile(path);
}
public bool FileExists(string path)
public virtual bool FileExists(string path)
{
return InnerFileSystem.FileExists(path);
}
public string GetRelativePath(string fullPathOrUrl)
public virtual string GetRelativePath(string fullPathOrUrl)
{
return InnerFileSystem.GetRelativePath(fullPathOrUrl);
}
public string GetFullPath(string path)
public virtual string GetFullPath(string path)
{
return InnerFileSystem.GetFullPath(path);
}
public string GetUrl(string path)
public virtual string GetUrl(string path)
{
return InnerFileSystem.GetUrl(path);
}
public DateTimeOffset GetLastModified(string path)
public virtual DateTimeOffset GetLastModified(string path)
{
return InnerFileSystem.GetLastModified(path);
}
public DateTimeOffset GetCreated(string path)
public virtual DateTimeOffset GetCreated(string path)
{
return InnerFileSystem.GetCreated(path);
}
public long GetSize(string path)
public virtual long GetSize(string path)
{
return InnerFileSystem.GetSize(path);
}
public bool CanAddPhysical => InnerFileSystem.CanAddPhysical;
public virtual bool CanAddPhysical => InnerFileSystem.CanAddPhysical;
public void AddFile(string path, string physicalPath, bool overrideIfExists = true, bool copy = false)
public virtual void AddFile(string path, string physicalPath, bool overrideIfExists = true, bool copy = false)
{
InnerFileSystem.AddFile(path, physicalPath, overrideIfExists, copy);
}
+2 -2
View File
@@ -225,7 +225,7 @@ namespace Umbraco.Core.IO
_shadowCurrentId = id;
_logger.Debug<ShadowFileSystems>("Shadow '{ShadowId}'", _shadowCurrentId);
_logger.Debug<ShadowFileSystems, string>("Shadow '{ShadowId}'", _shadowCurrentId);
foreach (var wrapper in _shadowWrappers)
wrapper.Shadow(_shadowCurrentId);
@@ -242,7 +242,7 @@ namespace Umbraco.Core.IO
if (id != _shadowCurrentId)
throw new InvalidOperationException("Not the current shadow.");
_logger.Debug<ShadowFileSystems>("UnShadow '{ShadowId}' {Status}", id, completed ? "complete" : "abort");
_logger.Debug<ShadowFileSystems, string, string>("UnShadow '{ShadowId}' {Status}", id, completed ? "complete" : "abort");
var exceptions = new List<Exception>();
foreach (var wrapper in _shadowWrappers)
+4 -4
View File
@@ -102,7 +102,7 @@ namespace Umbraco.Core.IO
/// <summary>
/// Returns the application relative path to the file.
/// </summary>
/// <param name="fullPathOrUrl">The full path or url.</param>
/// <param name="fullPathOrUrl">The full path or URL.</param>
/// <returns>
/// The <see cref="string"/> representing the relative path.
/// </returns>
@@ -118,11 +118,11 @@ namespace Umbraco.Core.IO
string GetFullPath(string path);
/// <summary>
/// Returns the application relative url to the file.
/// Returns the application relative URL to the file.
/// </summary>
/// <param name="path">The path to return the url for.</param>
/// <param name="path">The path to return the URL for.</param>
/// <returns>
/// <see cref="string"/> representing the relative url.
/// <see cref="string"/> representing the relative URL.
/// </returns>
string GetUrl(string path);
+7 -8
View File
@@ -40,7 +40,7 @@ namespace Umbraco.Core.IO
retval = virtualPath.Replace("~", SystemDirectories.Root);
if (virtualPath.StartsWith("/") && virtualPath.StartsWith(SystemDirectories.Root) == false)
retval = SystemDirectories.Root + "/" + virtualPath.TrimStart('/');
retval = SystemDirectories.Root + "/" + virtualPath.TrimStart(Constants.CharArrays.ForwardSlash);
return retval;
}
@@ -81,6 +81,7 @@ namespace Umbraco.Core.IO
public static string MapPath(string path, bool useHttpContext)
{
if (path == null) throw new ArgumentNullException("path");
useHttpContext = useHttpContext && IsHosted;
// Check if the path is already mapped
@@ -89,20 +90,18 @@ namespace Umbraco.Core.IO
{
return path;
}
// Check that we even have an HttpContext! otherwise things will fail anyways
// http://umbraco.codeplex.com/workitem/30946
if (useHttpContext && HttpContext.Current != null)
if (useHttpContext)
{
//string retval;
if (String.IsNullOrEmpty(path) == false && (path.StartsWith("~") || path.StartsWith(SystemDirectories.Root)))
return HostingEnvironment.MapPath(path);
else
return HostingEnvironment.MapPath("~/" + path.TrimStart('/'));
return HostingEnvironment.MapPath("~/" + path.TrimStart(Constants.CharArrays.ForwardSlash));
}
var root = GetRootDirectorySafe();
var newPath = path.TrimStart('~', '/').Replace('/', IOHelper.DirSepChar);
var newPath = path.TrimStart(Constants.CharArrays.TildeForwardSlash).Replace('/', IOHelper.DirSepChar);
var retval = root + IOHelper.DirSepChar.ToString(CultureInfo.InvariantCulture) + newPath;
return retval;
@@ -121,7 +120,7 @@ namespace Umbraco.Core.IO
if (string.IsNullOrEmpty(retval))
retval = standardPath;
return retval.TrimEnd('/');
return retval.TrimEnd(Constants.CharArrays.ForwardSlash);
}
internal static string ReturnPath(string settingsKey, string standardPath)
@@ -188,7 +187,7 @@ namespace Umbraco.Core.IO
internal static bool VerifyFileExtension(string filePath, IEnumerable<string> validFileExtensions)
{
var ext = Path.GetExtension(filePath);
return ext != null && validFileExtensions.Contains(ext.TrimStart('.'));
return ext != null && validFileExtensions.Contains(ext.TrimStart(Constants.CharArrays.Period));
}
public static bool PathStartsWith(string path, string root, char separator)
+1 -1
View File
@@ -51,7 +51,7 @@ namespace Umbraco.Core.IO
}
catch (Exception e)
{
_logger.Error<MediaFileSystem>(e, "Failed to delete media file '{File}'.", file);
_logger.Error<MediaFileSystem,string>(e, "Failed to delete media file '{File}'.", file);
}
});
}
+19 -19
View File
@@ -19,7 +19,7 @@ namespace Umbraco.Core.IO
// (is used in GetRelativePath)
private readonly string _rootPathFwd;
// the relative url, using url separator chars, NOT ending with a separator
// the relative URL, using URL separator chars, NOT ending with a separator
// eg "" or "/Views" or "/Media" or "/<vpath>/Media" in case of a virtual path
private readonly string _rootUrl;
@@ -33,7 +33,7 @@ namespace Umbraco.Core.IO
_rootPath = EnsureDirectorySeparatorChar(IOHelper.MapPath(virtualRoot)).TrimEnd(Path.DirectorySeparatorChar);
_rootPathFwd = EnsureUrlSeparatorChar(_rootPath);
_rootUrl = EnsureUrlSeparatorChar(IOHelper.ResolveUrl(virtualRoot)).TrimEnd('/');
_rootUrl = EnsureUrlSeparatorChar(IOHelper.ResolveUrl(virtualRoot)).TrimEnd(Constants.CharArrays.ForwardSlash);
}
public PhysicalFileSystem(string rootPath, string rootUrl)
@@ -54,7 +54,7 @@ namespace Umbraco.Core.IO
_rootPath = EnsureDirectorySeparatorChar(rootPath).TrimEnd(Path.DirectorySeparatorChar);
_rootPathFwd = EnsureUrlSeparatorChar(_rootPath);
_rootUrl = EnsureUrlSeparatorChar(rootUrl).TrimEnd('/');
_rootUrl = EnsureUrlSeparatorChar(rootUrl).TrimEnd(Constants.CharArrays.ForwardSlash);
}
/// <summary>
@@ -74,11 +74,11 @@ namespace Umbraco.Core.IO
}
catch (UnauthorizedAccessException ex)
{
Current.Logger.Error<PhysicalFileSystem>(ex, "Not authorized to get directories for '{Path}'", fullPath);
Current.Logger.Error<PhysicalFileSystem,string>(ex, "Not authorized to get directories for '{Path}'", fullPath);
}
catch (DirectoryNotFoundException ex)
{
Current.Logger.Error<PhysicalFileSystem>(ex, "Directory not found for '{Path}'", fullPath);
Current.Logger.Error<PhysicalFileSystem,string>(ex, "Directory not found for '{Path}'", fullPath);
}
return Enumerable.Empty<string>();
@@ -110,7 +110,7 @@ namespace Umbraco.Core.IO
}
catch (DirectoryNotFoundException ex)
{
Current.Logger.Error<PhysicalFileSystem>(ex, "Directory not found for '{Path}'", fullPath);
Current.Logger.Error<PhysicalFileSystem,string>(ex, "Directory not found for '{Path}'", fullPath);
}
}
@@ -190,11 +190,11 @@ namespace Umbraco.Core.IO
}
catch (UnauthorizedAccessException ex)
{
Current.Logger.Error<PhysicalFileSystem>(ex, "Not authorized to get directories for '{Path}'", fullPath);
Current.Logger.Error<PhysicalFileSystem,string>(ex, "Not authorized to get directories for '{Path}'", fullPath);
}
catch (DirectoryNotFoundException ex)
{
Current.Logger.Error<PhysicalFileSystem>(ex, "Directory not found for '{FullPath}'", fullPath);
Current.Logger.Error<PhysicalFileSystem, string>(ex, "Directory not found for '{FullPath}'", fullPath);
}
return Enumerable.Empty<string>();
@@ -227,7 +227,7 @@ namespace Umbraco.Core.IO
}
catch (FileNotFoundException ex)
{
Current.Logger.Error<PhysicalFileSystem>(ex.InnerException, "DeleteFile failed with FileNotFoundException for '{Path}'", fullPath);
Current.Logger.Error<PhysicalFileSystem, string>(ex.InnerException, "DeleteFile failed with FileNotFoundException for '{Path}'", fullPath);
}
}
@@ -243,9 +243,9 @@ namespace Umbraco.Core.IO
}
/// <summary>
/// Gets the filesystem-relative path of a full path or of an url.
/// Gets the filesystem-relative path of a full path or of an URL.
/// </summary>
/// <param name="fullPathOrUrl">The full path or url.</param>
/// <param name="fullPathOrUrl">The full path or URL.</param>
/// <returns>The path, relative to this filesystem's root.</returns>
/// <remarks>
/// <para>The relative path is relative to this filesystem's root, not starting with any
@@ -253,18 +253,18 @@ namespace Umbraco.Core.IO
/// </remarks>
public string GetRelativePath(string fullPathOrUrl)
{
// test url
var path = fullPathOrUrl.Replace('\\', '/'); // ensure url separator char
// test URL
var path = fullPathOrUrl.Replace('\\', '/'); // ensure URL separator char
// if it starts with the root url, strip it and trim the starting slash to make it relative
// if it starts with the root URL, strip it and trim the starting slash to make it relative
// eg "/Media/1234/img.jpg" => "1234/img.jpg"
if (IOHelper.PathStartsWith(path, _rootUrl, '/'))
return path.Substring(_rootUrl.Length).TrimStart('/');
return path.Substring(_rootUrl.Length).TrimStart(Constants.CharArrays.ForwardSlash);
// if it starts with the root path, strip it and trim the starting slash to make it relative
// eg "c:/websites/test/root/Media/1234/img.jpg" => "1234/img.jpg"
if (IOHelper.PathStartsWith(path, _rootPathFwd, '/'))
return path.Substring(_rootPathFwd.Length).TrimStart('/');
return path.Substring(_rootPathFwd.Length).TrimStart(Constants.CharArrays.ForwardSlash);
// unchanged - what else?
return path;
@@ -319,14 +319,14 @@ namespace Umbraco.Core.IO
}
/// <summary>
/// Gets the url.
/// Gets the URL.
/// </summary>
/// <param name="path">The filesystem-relative path.</param>
/// <returns>The url.</returns>
/// <returns>The URL.</returns>
/// <remarks>All separators are forward-slashes.</remarks>
public string GetUrl(string path)
{
path = EnsureUrlSeparatorChar(path).Trim('/');
path = EnsureUrlSeparatorChar(path).Trim(Constants.CharArrays.ForwardSlash);
return _rootUrl + "/" + path;
}
+2 -2
View File
@@ -182,7 +182,7 @@ namespace Umbraco.Core.IO
if (Nodes.TryGetValue(normPath, out sf) && sf.IsExist && (sf.IsDir || overrideIfExists == false))
throw new InvalidOperationException(string.Format("A file at path '{0}' already exists", path));
var parts = normPath.Split('/');
var parts = normPath.Split(Constants.CharArrays.ForwardSlash);
for (var i = 0; i < parts.Length - 1; i++)
{
var dirPath = string.Join("/", parts.Take(i + 1));
@@ -297,7 +297,7 @@ namespace Umbraco.Core.IO
if (Nodes.TryGetValue(normPath, out sf) && sf.IsExist && (sf.IsDir || overrideIfExists == false))
throw new InvalidOperationException(string.Format("A file at path '{0}' already exists", path));
var parts = normPath.Split('/');
var parts = normPath.Split(Constants.CharArrays.ForwardSlash);
for (var i = 0; i < parts.Length - 1; i++)
{
var dirPath = string.Join("/", parts.Take(i + 1));
+4
View File
@@ -11,6 +11,8 @@ namespace Umbraco.Core.IO
public static string Data => "~/App_Data";
public static string LogFiles => Data + "/Logs";
public static string TempData => Data + "/TEMP";
public static string TempFileUploads => TempData + "/FileUploads";
@@ -23,6 +25,8 @@ namespace Umbraco.Core.IO
public static string AppPlugins => "~/App_Plugins";
public static string AppPluginIcons => "/Backoffice/Icons";
public static string MvcViews => "~/Views";
public static string PartialViews => MvcViews + "/Partials/";
+2
View File
@@ -7,6 +7,8 @@ namespace Umbraco.Core.IO
{
public static string TinyMceConfig => SystemDirectories.Config + "/tinyMceConfig.config";
public static string UmbracoSettings => SystemDirectories.Config + "/UmbracoSettings.config";
// TODO: Kill this off we don't have umbraco.config XML cache we now have NuCache
public static string GetContentCacheXml(IGlobalSettings globalSettings)
{
+1 -1
View File
@@ -41,7 +41,7 @@ namespace Umbraco.Core
ServerRole ServerRole { get; }
/// <summary>
/// Gets the Umbraco application url.
/// Gets the Umbraco application URL.
/// </summary>
/// <remarks>This is eg "http://www.example.com".</remarks>
Uri ApplicationUrl { get; }
@@ -129,5 +129,65 @@ namespace Umbraco.Core.Logging
{
System.Diagnostics.Debug.WriteLine(MessageTemplates.Render(messageTemplate, propertyValues), reporting.FullName);
}
/// <inheritdoc/>
public void Fatal<T0, T1, T2>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0,
T1 propertyValue1, T2 propertyValue2)
=> Fatal(reporting, exception, messageTemplate, new object[] { propertyValue0, propertyValue1, propertyValue2 });
/// <inheritdoc/>
public void Fatal<T0, T1>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
=> Fatal(reporting, exception, messageTemplate, new object[] { propertyValue0, propertyValue1 });
/// <inheritdoc/>
public void Fatal<T0>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0)
=> Fatal(reporting, exception, messageTemplate, new object[] { propertyValue0 });
/// <inheritdoc/>
public void Error<T0, T1, T2>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0,
T1 propertyValue1, T2 propertyValue2)
=> Error(reporting, exception, messageTemplate, new object[] { propertyValue0, propertyValue1, propertyValue2 });
/// <inheritdoc/>
public void Error<T0, T1>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
=> Error(reporting, exception, messageTemplate, new object[] { propertyValue0, propertyValue1 });
/// <inheritdoc/>
public void Error<T0>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0)
=> Error(reporting, exception, messageTemplate, new object[] { propertyValue0 });
/// <inheritdoc/>
public void Warn<T0, T1, T2>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0,
T1 propertyValue1, T2 propertyValue2)
=> Warn(reporting, exception, messageTemplate, new object[] { propertyValue0, propertyValue1,propertyValue2 });
/// <inheritdoc/>
public void Warn<T0, T1>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
=> Warn(reporting, exception, messageTemplate, new object[] { propertyValue0, propertyValue1 });
public void Warn<T0>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0)
=> Warn(reporting, exception, messageTemplate, new object[] { propertyValue0 });
public void Warn<T0>(Type reporting, string message, T0 propertyValue0)
=> Warn(reporting, message, new object[] { propertyValue0 });
public void Info<T0, T1, T2>(Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
=> Info(reporting, messageTemplate, new object[] { propertyValue0, propertyValue1, propertyValue2 });
public void Info<T0, T1>(Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
=> Info(reporting, messageTemplate, new object[] { propertyValue0, propertyValue1 });
public void Info<T0>(Type reporting, string messageTemplate, T0 propertyValue0)
=> Info(reporting, messageTemplate, new object[] { propertyValue0 });
public void Debug<T0, T1, T2>(Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
=> Debug(reporting, messageTemplate, new object[] { propertyValue0, propertyValue1, propertyValue2 });
public void Debug<T0, T1>(Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
=> Debug(reporting, messageTemplate, new object[] { propertyValue0, propertyValue1 });
public void Debug<T0>(Type reporting, string messageTemplate, T0 propertyValue0)
=> Debug(reporting, messageTemplate, new object[] { propertyValue0 });
public void Verbose<T0, T1, T2>(Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
=> Verbose(reporting, messageTemplate, new object[] { propertyValue0, propertyValue1,propertyValue2 });
public void Verbose<T0, T1>(Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
=> Verbose(reporting, messageTemplate, new object[] { propertyValue0, propertyValue1 });
public void Verbose<T0>(Type reporting, string messageTemplate, T0 propertyValue0)
=> Verbose(reporting, messageTemplate, new object[] { propertyValue0 });
}
}
+5 -5
View File
@@ -37,10 +37,10 @@ namespace Umbraco.Core.Logging
switch (_level)
{
case LogLevel.Debug:
logger.Debug(loggerType, "{StartMessage} [Timing {TimingId}]", startMessage, _timingId);
logger.Debug<string,string>(loggerType, "{StartMessage} [Timing {TimingId}]", startMessage, _timingId);
break;
case LogLevel.Information:
logger.Info(loggerType, "{StartMessage} [Timing {TimingId}]", startMessage, _timingId);
logger.Info<string, string>(loggerType, "{StartMessage} [Timing {TimingId}]", startMessage, _timingId);
break;
default:
throw new ArgumentOutOfRangeException(nameof(level));
@@ -84,15 +84,15 @@ namespace Umbraco.Core.Logging
{
if (_failed)
{
_logger.Error(_loggerType, _failException, "{FailMessage} ({Duration}ms) [Timing {TimingId}]", _failMessage, Stopwatch.ElapsedMilliseconds, _timingId);
_logger.Error<string,long,string>(_loggerType, _failException, "{FailMessage} ({Duration}ms) [Timing {TimingId}]", _failMessage, Stopwatch.ElapsedMilliseconds, _timingId);
}
else switch (_level)
{
case LogLevel.Debug:
_logger.Debug(_loggerType, "{EndMessage} ({Duration}ms) [Timing {TimingId}]", _endMessage, Stopwatch.ElapsedMilliseconds, _timingId);
_logger.Debug<string,long,string>(_loggerType, "{EndMessage} ({Duration}ms) [Timing {TimingId}]", _endMessage, Stopwatch.ElapsedMilliseconds, _timingId);
break;
case LogLevel.Information:
_logger.Info(_loggerType, "{EndMessage} ({Duration}ms) [Timing {TimingId}]", _endMessage, Stopwatch.ElapsedMilliseconds, _timingId);
_logger.Info<string, long, string>(_loggerType, "{EndMessage} ({Duration}ms) [Timing {TimingId}]", _endMessage, Stopwatch.ElapsedMilliseconds, _timingId);
break;
// filtered in the ctor
//default:
+5 -2
View File
@@ -52,7 +52,7 @@ namespace Umbraco.Core.Logging
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValues">Property values.</param>
void Fatal(Type reporting, Exception exception, string messageTemplate, params object[] propertyValues);
/// <summary>
/// Logs a fatal message.
/// </summary>
@@ -92,7 +92,7 @@ namespace Umbraco.Core.Logging
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValues">Property values.</param>
void Error(Type reporting, Exception exception, string messageTemplate, params object[] propertyValues);
/// <summary>
/// Logs an error message.
/// </summary>
@@ -132,6 +132,7 @@ namespace Umbraco.Core.Logging
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValues">Property values.</param>
void Warn(Type reporting, Exception exception, string messageTemplate, params object[] propertyValues);
/// <summary>
/// Logs an information message.
@@ -147,6 +148,7 @@ namespace Umbraco.Core.Logging
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValues">Property values.</param>
void Info(Type reporting, string messageTemplate, params object[] propertyValues);
/// <summary>
/// Logs a debugging message.
@@ -177,5 +179,6 @@ namespace Umbraco.Core.Logging
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValues">Property values.</param>
void Verbose(Type reporting, string messageTemplate, params object[] propertyValues);
}
}
+240
View File
@@ -0,0 +1,240 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Umbraco.Core.Logging
{
public interface ILogger2 : ILogger
{
/// <summary>
/// Logs a fatal message with an exception.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="exception">An exception.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
/// <param name="propertyValue1">Property value 1</param>
/// <param name="propertyValue2">Property value 2</param>
void Fatal<T0, T1, T2>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2);
/// <summary>
/// Logs a fatal message with an exception.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="exception">An exception.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
/// <param name="propertyValue1">Property value 1</param>
void Fatal<T0, T1>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1);
/// <summary>
/// Logs a fatal message with an exception.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="exception">An exception.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
void Fatal<T0>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0);
/// <summary>
/// Logs an error message with an exception.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="exception">An exception.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
/// <param name="propertyValue1">Property value 1</param>
/// <param name="propertyValue2">Property value 2</param>
void Error<T0, T1, T2>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2);
/// <summary>
/// Logs an error message with an exception.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="exception">An exception.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
/// <param name="propertyValue1">Property value 1</param>
void Error<T0, T1>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1);
/// <summary>
/// Logs an error message with an exception.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="exception">An exception.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
void Error<T0>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0);
/// <summary>
/// Logs a warning message with an exception.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="exception">An exception.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
/// <param name="propertyValue1">Property value 1</param>
/// <param name="propertyValue2">Property value 2</param>
void Warn<T0, T1, T2>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2);
/// <summary>
/// Logs a warning message with an exception.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="exception">An exception.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
/// <param name="propertyValue1">Property value 1</param>
void Warn<T0, T1>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1);
/// <summary>
/// Logs a warning message with an exception.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="exception">An exception.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
void Warn<T0>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0);
/// <summary>
/// Logs a warning message with an exception.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="message">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
void Warn<T0>(Type reporting, string message, T0 propertyValue0);
/// <summary>
/// Logs a info message.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
/// <param name="propertyValue1">Property value 1</param>
/// <param name="propertyValue2">Property value 2</param>
void Info<T0, T1, T2>(Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2);
/// <summary>
/// Logs a info message.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
/// <param name="propertyValue1">Property value 1</param>
void Info<T0, T1>(Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1);
/// <summary>
/// Logs a info message.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
void Info<T0>(Type reporting, string messageTemplate, T0 propertyValue0);
/// <summary>
/// Logs a debug message.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
/// <param name="propertyValue1">Property value 1</param>
/// <param name="propertyValue2">Property value 2</param>
void Debug<T0, T1, T2>(Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2);
/// <summary>
/// Logs a debug message.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
/// <param name="propertyValue1">Property value 1</param>
void Debug<T0, T1>(Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1);
/// <summary>
/// Logs a debug message.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
void Debug<T0>(Type reporting, string messageTemplate, T0 propertyValue0);
/// <summary>
/// Logs a verbose message.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
/// <param name="propertyValue1">Property value 1</param>
/// <param name="propertyValue2">Property value 2</param>
void Verbose<T0, T1, T2>(Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2);
/// <summary>
/// Logs a verbose message.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
/// <param name="propertyValue1">Property value 1</param>
void Verbose<T0, T1>(Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1);
/// <summary>
/// Logs a verbose message.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
void Verbose<T0>(Type reporting, string messageTemplate, T0 propertyValue0);
/// <summary>
/// Logs a error message.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
void Error<T0>(Type reporting, string messageTemplate, T0 propertyValue0);
/// <summary>
/// Logs a error message.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
/// <param name="propertyValue1">Property value 1</param>
void Error<T0,T1>(Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1);
/// <summary>
/// Logs a error message.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
/// <param name="propertyValue1">Property value 1</param>
/// <param name="propertyValue2">Property value 2</param>
void Error<T0, T1,T2>(Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2);
/// <summary>
/// Logs a warning message.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
/// <param name="propertyValue1">Property value 1</param>
/// <param name="propertyValue2">Property value 2</param>
void Warn<T, T0, T1>(string messageTemplate, T0 propertyValue0, T1 propertyValue1);
/// <summary>
/// Logs a warning message.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
/// <param name="propertyValue1">Property value 1</param>
void Warn<T, T0, T1, T2>(string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2);
/// <summary>
/// Logs a warning message with an exception.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
/// <param name="propertyValue1">Property value 1</param>
/// <param name="propertyValue2">Property value 2</param>
void Warn<T0, T1, T2>(Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2);
/// <summary>
/// Logs a warning message with an exception.
/// </summary>
/// <param name="reporting">The reporting type.</param>
/// <param name="messageTemplate">A message template.</param>
/// <param name="propertyValue0">Property value 0</param>
/// <param name="propertyValue1">Property value 1</param>
void Warn<T0, T1>(Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1);
}
}
+2 -2
View File
@@ -24,8 +24,8 @@ namespace Umbraco.Core.Logging
/// <inheritdoc/>
public IDisposable Step(string name)
{
_logger.Debug<LogProfiler>("Begin: {ProfileName}", name);
return new LightDisposableTimer(duration => _logger.Info<LogProfiler>("End {ProfileName} ({ProfileDuration}ms)", name, duration));
_logger.Debug<LogProfiler, string>("Begin: {ProfileName}", name);
return new LightDisposableTimer(duration => _logger.Info<LogProfiler, string,long>("End {ProfileName} ({ProfileDuration}ms)", name, duration));
}
/// <inheritdoc/>
@@ -0,0 +1,442 @@
using System;
namespace Umbraco.Core.Logging
{
public static class Logger2Extensions
{
public static void Debug<T0, T1, T2>(this ILogger logger, Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
{
if (logger is ILogger2 logger2)
{
logger2.Debug(reporting, messageTemplate, propertyValue0, propertyValue1, propertyValue2);
}
else
{
logger.Debug(reporting, messageTemplate, propertyValue0, propertyValue1, propertyValue2);
}
}
public static void Debug<T0, T1>(this ILogger logger, Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
{
if (logger is ILogger2 logger2)
{
logger2.Debug(reporting, messageTemplate, propertyValue0, propertyValue1);
}
else
{
logger.Debug(reporting, messageTemplate, propertyValue0, propertyValue1);
}
}
public static void Debug<T0>(this ILogger logger, Type reporting, string messageTemplate, T0 propertyValue0)
{
if (logger is ILogger2 logger2)
{
logger2.Debug(reporting, messageTemplate, propertyValue0);
}
else
{
logger.Debug(reporting, messageTemplate, propertyValue0);
}
}
public static void Error<T0, T1, T2>(this ILogger logger, Type reporting, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
{
if (logger is ILogger2 logger2)
{
logger2.Error(reporting, exception, messageTemplate, propertyValue0, propertyValue1, propertyValue2);
}
else
{
logger.Error(reporting, exception, messageTemplate, propertyValue0, propertyValue1, propertyValue2);
}
}
public static void Error<T0, T1>(this ILogger logger, Type reporting, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
{
if (logger is ILogger2 logger2)
{
logger2.Error(reporting, exception, messageTemplate, propertyValue0, propertyValue1);
}
else
{
logger.Error(reporting, exception, messageTemplate, propertyValue0, propertyValue1);
}
}
public static void Error<T0>(this ILogger logger, Type reporting, Exception exception, string messageTemplate, T0 propertyValue0)
{
if (logger is ILogger2 logger2)
{
logger2.Error(reporting, exception, messageTemplate, propertyValue0);
}
else
{
logger.Error(reporting, exception, messageTemplate, propertyValue0);
}
}
public static void Fatal<T0, T1, T2>(this ILogger logger, Type reporting, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
{
if (logger is ILogger2 logger2)
{
logger2.Fatal(reporting, exception, messageTemplate, propertyValue0, propertyValue1, propertyValue2);
}
else
{
logger.Fatal(reporting, exception, messageTemplate, propertyValue0, propertyValue1, propertyValue2);
}
}
public static void Fatal<T0, T1>(this ILogger logger, Type reporting, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
{
if (logger is ILogger2 logger2)
{
logger2.Fatal(reporting, exception, messageTemplate, propertyValue0, propertyValue1);
}
else
{
logger.Fatal(reporting, exception, messageTemplate, propertyValue0, propertyValue1);
}
}
public static void Fatal<T0>(this ILogger logger, Type reporting, Exception exception, string messageTemplate, T0 propertyValue0)
{
if (logger is ILogger2 logger2)
{
logger2.Fatal(reporting, exception, messageTemplate, propertyValue0);
}
else
{
logger.Fatal(reporting, exception, messageTemplate, propertyValue0);
}
}
public static void Info<T0, T1, T2>(this ILogger logger, Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
{
if (logger is ILogger2 logger2)
{
logger2.Info(reporting, messageTemplate, propertyValue0, propertyValue1, propertyValue2);
}
else
{
logger.Info(reporting, messageTemplate, propertyValue0, propertyValue1, propertyValue2);
}
}
public static void Info<T0, T1>(this ILogger logger, Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
{
if (logger is ILogger2 logger2)
{
logger2.Info(reporting, messageTemplate, propertyValue0, propertyValue1);
}
else
{
logger.Info(reporting, messageTemplate, propertyValue0, propertyValue1);
}
}
public static void Info<T0>(this ILogger logger, Type reporting, string messageTemplate, T0 propertyValue0)
{
if (logger is ILogger2 logger2)
{
logger2.Info(reporting, messageTemplate, propertyValue0);
}
else
{
logger.Info(reporting, messageTemplate, propertyValue0);
}
}
public static void Verbose<T0, T1, T2>(this ILogger logger, Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
{
if (logger is ILogger2 logger2)
{
logger2.Verbose(reporting, messageTemplate, propertyValue0, propertyValue1, propertyValue2);
}
else
{
logger.Verbose(reporting, messageTemplate, propertyValue0, propertyValue1, propertyValue2);
}
}
public static void Verbose<T0, T1>(this ILogger logger, Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
{
if (logger is ILogger2 logger2)
{
logger2.Verbose(reporting, messageTemplate, propertyValue0, propertyValue1);
}
else
{
logger.Verbose(reporting, messageTemplate, propertyValue0, propertyValue1);
}
}
public static void Verbose<T0>(this ILogger logger, Type reporting, string messageTemplate, T0 propertyValue0)
{
if (logger is ILogger2 logger2)
{
logger2.Verbose(reporting, messageTemplate, propertyValue0);
}
else
{
logger.Verbose(reporting, messageTemplate, propertyValue0);
}
}
public static void Warn<T0, T1, T2>(this ILogger logger, Type reporting, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
{
if (logger is ILogger2 logger2)
{
logger2.Warn(reporting, messageTemplate, exception, propertyValue0, propertyValue1, propertyValue2);
}
else
{
logger.Warn(reporting, messageTemplate, exception, propertyValue0, propertyValue1, propertyValue2);
}
}
public static void Warn<T0, T1>(this ILogger logger, Type reporting, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
{
if (logger is ILogger2 logger2)
{
logger2.Warn(reporting, messageTemplate, exception, propertyValue0, propertyValue1);
}
else
{
logger.Warn(reporting, messageTemplate, exception, propertyValue0, propertyValue1);
}
}
public static void Warn<T0>(this ILogger logger, Type reporting, Exception exception, string messageTemplate, T0 propertyValue0)
{
if (logger is ILogger2 logger2)
{
logger2.Warn(reporting, messageTemplate, exception, propertyValue0);
}
else
{
logger.Warn(reporting, messageTemplate, exception, propertyValue0);
}
}
public static void Warn<T0>(this ILogger logger, Type reporting, string message, T0 propertyValue0)
{
if (logger is ILogger2 logger2)
{
logger2.Warn(reporting, message, propertyValue0);
}
else
{
logger.Warn(reporting, message, propertyValue0);
}
}
//
public static void Error<T, T0>(this ILogger logger, Exception exception, string messageTemplate, T0 propertyValue0)
{
if (logger is ILogger2 logger2)
{
logger2.Error(typeof(T), exception, messageTemplate, propertyValue0);
}
else
{
logger.Error(typeof(T), exception, messageTemplate, propertyValue0);
}
}
public static void Error<T, T0,T1>(this ILogger logger, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
{
if (logger is ILogger2 logger2)
{
logger2.Error(typeof(T), exception, messageTemplate, propertyValue0, propertyValue1);
}
else
{
logger.Error(typeof(T), exception, messageTemplate, propertyValue0, propertyValue1);
}
}
public static void Error<T, T0, T1,T2>(this ILogger logger, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
{
if (logger is ILogger2 logger2)
{
logger2.Error(typeof(T), exception, messageTemplate, propertyValue0, propertyValue1, propertyValue2);
}
else
{
logger.Error(typeof(T), exception, messageTemplate, propertyValue0, propertyValue1, propertyValue2);
}
}
public static void Error<T,T0>(this ILogger logger, string messageTemplate, T0 propertyValue0)
{
if (logger is ILogger2 logger2)
{
logger2.Error(typeof(T), messageTemplate, propertyValue0);
}
else
{
logger.Error(typeof(T), messageTemplate, propertyValue0);
}
}
public static void Error<T, T0,T1>(this ILogger logger, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
{
if (logger is ILogger2 logger2)
{
logger2.Error(typeof(T), messageTemplate, propertyValue0, propertyValue1);
}
else
{
logger.Error(typeof(T), messageTemplate, propertyValue0, propertyValue1);
}
}
public static void Error<T, T0, T1,T2>(this ILogger logger, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
{
if (logger is ILogger2 logger2)
{
logger2.Error(typeof(T), messageTemplate, propertyValue0, propertyValue1, propertyValue2);
}
else
{
logger.Error(typeof(T), messageTemplate, propertyValue0, propertyValue1, propertyValue2);
}
}
public static void Warn<T, T0>(this ILogger logger, Exception exception, string messageTemplate, T0 propertyValue0)
{
if (logger is ILogger2 logger2)
{
logger2.Warn(typeof(T), exception, messageTemplate, propertyValue0);
}
else
{
logger.Warn(typeof(T), exception, messageTemplate, propertyValue0);
}
}
public static void Warn<T, T0, T1>(this ILogger logger, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
{
if (logger is ILogger2 logger2)
{
logger2.Warn(typeof(T), exception, messageTemplate, propertyValue0, propertyValue1);
}
else
{
logger.Warn(typeof(T), exception, messageTemplate, propertyValue0, propertyValue1);
}
}
public static void Warn<T, T0, T1, T2>(this ILogger logger, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
{
if (logger is ILogger2 logger2)
{
logger2.Warn(typeof(T), exception, messageTemplate, propertyValue0, propertyValue1, propertyValue2);
}
else
{
logger.Warn(typeof(T), exception, messageTemplate, propertyValue0, propertyValue1, propertyValue2);
}
}
public static void Warn<T, T0>(this ILogger logger, string messageTemplate, T0 propertyValue0)
{
if (logger is ILogger2 logger2)
{
logger2.Warn(typeof(T), messageTemplate, propertyValue0);
}
else
{
logger.Warn(typeof(T), messageTemplate, propertyValue0);
}
}
public static void Warn<T, T0, T1>(this ILogger logger, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
{
if (logger is ILogger2 logger2)
{
logger2.Warn(typeof(T), messageTemplate, propertyValue0, propertyValue1);
}
else
{
logger.Warn(typeof(T), messageTemplate, propertyValue0, propertyValue1);
}
}
public static void Warn<T, T0, T1, T2>(this ILogger logger, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
{
if (logger is ILogger2 logger2)
{
logger2.Warn(typeof(T), messageTemplate, propertyValue0, propertyValue1, propertyValue2);
}
else
{
logger.Warn(typeof(T), messageTemplate, propertyValue0, propertyValue1, propertyValue2);
}
}
public static void Info<T, T0>(this ILogger logger, string messageTemplate, T0 propertyValue0)
{
if (logger is ILogger2 logger2)
{
logger2.Info(typeof(T), messageTemplate, propertyValue0);
}
else
{
logger.Info(typeof(T), messageTemplate, propertyValue0);
}
}
public static void Info<T, T0, T1>(this ILogger logger, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
{
if (logger is ILogger2 logger2)
{
logger2.Info(typeof(T), messageTemplate, propertyValue0, propertyValue1);
}
else
{
logger.Info(typeof(T), messageTemplate, propertyValue0, propertyValue1);
}
}
public static void Info<T, T0, T1, T2>(this ILogger logger, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
{
if (logger is ILogger2 logger2)
{
logger2.Info(typeof(T), messageTemplate, propertyValue0, propertyValue1, propertyValue2);
}
else
{
logger.Info(typeof(T), messageTemplate, propertyValue0, propertyValue1, propertyValue2);
}
}
public static void Debug<T, T0>(this ILogger logger, string messageTemplate, T0 propertyValue0)
{
if (logger is ILogger2 logger2)
{
logger2.Debug(typeof(T), messageTemplate, propertyValue0);
}
else
{
logger.Debug(typeof(T), messageTemplate, propertyValue0);
}
}
public static void Debug<T, T0, T1>(this ILogger logger, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
{
if (logger is ILogger2 logger2)
{
logger2.Debug(typeof(T), messageTemplate, propertyValue0, propertyValue1);
}
else
{
logger.Debug(typeof(T), messageTemplate, propertyValue0, propertyValue1);
}
}
public static void Debug<T, T0, T1, T2>(this ILogger logger, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
{
if (logger is ILogger2 logger2)
{
logger2.Debug(typeof(T), messageTemplate, propertyValue0, propertyValue1, propertyValue2);
}
else
{
logger.Debug(typeof(T), messageTemplate, propertyValue0, propertyValue1, propertyValue2);
}
}
}
}

Some files were not shown because too many files have changed in this diff Show More