Commit Graph

945 Commits

Author SHA1 Message Date
Niels Lyngsø
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
Mole
e75edbcaf0 Add more tests. 2021-03-02 10:53:55 +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
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
Mole
e243162ade Add unit test for the bug 2021-01-08 15:44:55 +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
Nik
9a0746da84 Issue #8568 Add an override for GetMostRecentRedirectUrl to allow for culture being passed in (#9191) 2020-10-27 10:48:16 +00:00
Warren Buckley
f569200272 Fix & update tests 2020-10-07 21:20:53 +01: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
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
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
Bjarke Berg
d2f361e816 Merge remote-tracking branch 'origin/v8/8.6' into v8/dev
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Tests/PublishedContent/NuCacheChildrenTests.cs
2020-04-16 18:54:45 +02:00
Shannon
3310ef9d8d fix tests 2020-04-16 23:53:52 +10:00
Shannon
d2c05bf681 Fixes issue with RelationTypeFactory swapping the parent/child 2020-04-16 22:27:05 +10:00
Nathan Woulfe
ffef6ed2a1 7713 - changing CSS directory breaks RTE (#7726) 2020-03-24 18:04:38 +01:00
SimonCropp
8752ce871a fix assert order of expted V actual 2020-03-20 15:06:27 +01:00
abi
a7ad464b40 Remove Empty Statements 2020-02-12 15:11:18 +01:00
Warren Buckley
ffd43131c4 Merge pull request #7627 from umbraco/v8/bugfix/AB4828-resetpassword-mail
AB4828 - Reset Password Email

(cherry picked from commit f00680bfe6)
2020-02-12 11:54:21 +00:00
Warren Buckley
e90e32b871 Add unit test to verify SecurityStamp changes/invalidates when the userlogin changes 2020-02-12 10:11:28 +00:00
Warren Buckley
81a0a52874 Merge branch 'v8/feature/media-tracking' into v8/dev
# Conflicts:
#	src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
2020-01-22 08:36:32 +00:00
Andy Butland
bc82ccd824 Prevented user from changing a document type to an element type if it's already been used to create content (#5668) 2020-01-19 09:34:04 +00:00
Shannon
a1769dd937 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/media-tracking
# Conflicts:
#	src/Umbraco.Core/Migrations/Upgrade/UmbracoPlan.cs
#	src/Umbraco.Core/Models/RelationType.cs
#	src/Umbraco.Web/PropertyEditors/NestedContentPropertyEditor.cs
#	src/Umbraco.Web/UmbracoComponentRenderer.cs
2019-12-18 15:28:27 +11:00
Warren Buckley
9e1a56eba5 Rename from DataValueReferenceFor to DataValyeReferenceFactory & Factories for the plural collection 2019-12-04 16:14:33 +00:00
Warren Buckley
1471bffeff Adds DataValueReferenceFor & its collection 2019-12-02 15:00:56 +00:00
Warren Buckley
69faaa8797 Update tests to pass in an empty collection for the repository layers expecting the new dataValueReferencesCollection 2019-11-27 20:29:38 +00:00
Ronald Barendse
34008edd34 Fix issues with added PanicException 2019-11-15 09:15:12 +01:00
Shannon
85c2269645 Adds ability to filter out paged relations by entity type 2019-11-15 14:49:46 +11:00
Shannon
ca91bf0f94 Fixes issue with getting paged entity relations when the relation is between the same entity and itself 2019-11-15 14:14:09 +11:00
Shannon
d1948b1543 Adds relation service tests for both paged children and parents and tests the repo 2019-11-06 13:08:03 +11:00
Shannon
6b7a48d00b Gets entity repository working with relation queries and adds test 2019-11-06 12:43:10 +11:00
Shannon
602acce8f4 Gets entity repository to be able to return a mix of object types 2019-11-05 15:50:49 +11:00
Shannon
f3f242b416 fixes test 2019-10-24 22:39:12 +11:00
Shannon
ae64fe49be Allows relation types to not have specific object types, updates IRelation to return the actual object types for the ID references, now relations can be more flexible without being strangely tied to specific object types based on the relation type. 2019-10-24 21:32:00 +11:00
Shannon
193892f084 Creates method to create the relations based on the property editor's returned reference but have discovered a gotcha for relations, so next step is to resolve that. 2019-10-24 16:48:21 +11:00
Shannon
9303a49732 Moves the copy/paste rte stuff to a separate service, injects lazy property editors and relation service into the base content repositories 2019-10-23 19:08:03 +11:00
Bjarke Berg
c072015288 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/AB2913-DataTypeTracking
# Conflicts:
#	src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
2019-10-21 09:40:21 +02:00
Bjarke Berg
debe4b381c Fixed tests 2019-10-21 07:26:39 +02:00
Bjarke Berg
538a8cf41b Change to case when, just to support if someone change values to something invalid directly in the database, and fixed tes 2019-10-21 07:23:11 +02:00
Bjarke Berg
9d7aacbfc0 Merge remote-tracking branch 'origin/v8/dev' into v8/bugfix/AB3172-long-running-ops 2019-10-17 09:44:51 +02:00
Shannon
d0435f6625 Moves read/write locking and isolation level to the responsibility of the sql provider based on the db type 2019-10-15 00:04:41 +11:00
Shannon
2675516b96 Adds logic to ensure you can't change to a culture that is already assigned + test 2019-10-10 20:45:16 +11:00
Shannon
bcc76b2072 Implements DataTypeService.FindUsages 2019-10-08 23:09:45 +11:00
Ronald Barendse
af1615bbb7 Removed usage of obsoleted FileSecurityException 2019-10-06 11:55:02 +02:00
Kenn Jacobsen
87845ee907 V8: Allow localization of the backoffice using parent cultures… (#6090)
(cherry picked from commit 405538544f)
2019-08-13 20:28:48 +02:00
Shannon
87e7cec02e WIP - commiting what i have. Solved part of the problem but there are others. 2019-07-31 18:30:34 +10:00
Shannon
76cbfdb787 ignores a failing test, will need a separate task for that. 2019-06-19 12:31:36 +10:00
Shannon
3bf43d7ce3 adds a unit test showing that the SimilarNodeName is broken. 2019-06-17 16:48:35 +10:00
Shannon
d8180604e8 fixes SimilarNodeName 2019-06-11 22:10:53 +10:00
Stephan
849feb0683 Fix UmbracoDatabaseFactory SqlServer detection 2019-06-04 13:15:25 +02:00
Stephan
3185f7ae97 Fix member type builtin properties handling 2019-04-23 13:07:57 +02:00