Published members cleanup (#10159)
* Getting new netcore PublicAccessChecker in place
* Adds full test coverage for PublicAccessChecker
* remove PublicAccessComposer
* adjust namespaces, ensure RoleManager works, separate public access controller, reduce content controller
* Implements the required methods on IMemberManager, removes old migrated code
* Updates routing to be able to re-route, Fixes middleware ordering ensuring endpoints are last, refactors pipeline options, adds public access middleware, ensures public access follows all hops
* adds note
* adds note
* Cleans up ext methods, ensures that members identity is added on both front-end and back ends. updates how UmbracoApplicationBuilder works in that it explicitly starts endpoints at the time of calling.
* Changes name to IUmbracoEndpointBuilder
* adds note
* Fixing tests, fixing error describers so there's 2x one for back office, one for members, fixes TryConvertTo, fixes login redirect
* fixing build
* Updates user manager to correctly validate password hashing and injects the IBackOfficeUserPasswordChecker
* Merges PR
* Fixes up build and notes
* Implements security stamp and email confirmed for members, cleans up a bunch of repo/service level member groups stuff, shares user store code between members and users and fixes the user identity object so we arent' tracking both groups and roles.
* Security stamp for members is now working
* Fixes keepalive, fixes PublicAccessMiddleware to not throw, updates startup code to be more clear and removes magic that registers middleware.
* adds note
* removes unused filter, fixes build
* fixes WebPath and tests
* Looks up entities in one query
* remove usings
* Fix test, remove stylesheet
* Set status code before we write to response to avoid error
* Ensures that users and members are validated when logging in. Shares more code between users and members.
* merge changes
* oops
* Reducing and removing published member cache
* Fixes RepositoryCacheKeys to ensure the keys are normalized
* oops didn't mean to commit this
* Fix casing issues with caching, stop boxing value types for all cache operations, stop re-creating string keys in DefaultRepositoryCachePolicy
* oops didn't mean to comit this
* bah, far out this keeps getting recommitted. sorry
* cannot inject IPublishedMemberCache and cannot have IPublishedMember
* splits out files, fixes build
* fix tests
* removes membership provider classes
* removes membership provider classes
* updates the identity map definition
* reverts commented out lines
* reverts commented out lines
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-04-22 21:21:43 +10:00
|
|
|
namespace Umbraco.Cms.Core
|
2018-06-29 19:52:40 +02:00
|
|
|
{
|
|
|
|
|
public static partial class Constants
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Defines the identifiers for property-type alias conventions that are used within the Umbraco core.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static class Conventions
|
|
|
|
|
{
|
2021-06-08 14:56:45 -06:00
|
|
|
public static class Migrations
|
|
|
|
|
{
|
|
|
|
|
public const string UmbracoUpgradePlanName = "Umbraco.Core";
|
|
|
|
|
public const string KeyValuePrefix = "Umbraco.Core.Upgrader.State+";
|
|
|
|
|
public const string UmbracoUpgradePlanKey = KeyValuePrefix + UmbracoUpgradePlanName;
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-05 13:45:42 +01:00
|
|
|
public static class PermissionCategories
|
2018-06-29 19:52:40 +02:00
|
|
|
{
|
|
|
|
|
public const string ContentCategory = "content";
|
|
|
|
|
public const string AdministrationCategory = "administration";
|
|
|
|
|
public const string StructureCategory = "structure";
|
|
|
|
|
public const string OtherCategory = "other";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static class PublicAccess
|
|
|
|
|
{
|
|
|
|
|
public const string MemberUsernameRuleType = "MemberUsername";
|
|
|
|
|
public const string MemberRoleRuleType = "MemberRole";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static class DataTypes
|
|
|
|
|
{
|
|
|
|
|
public const string ListViewPrefix = "List View - ";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Constants for Umbraco Content property aliases.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static class Content
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Property alias for the Content's Url (internal) redirect.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string InternalRedirectId = "umbracoInternalRedirectId";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Property alias for the Content's navigational hide, (not actually used in core code).
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string NaviHide = "umbracoNaviHide";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Property alias for the Content's Url redirect.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string Redirect = "umbracoRedirect";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Property alias for the Content's Url alias.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string UrlAlias = "umbracoUrlAlias";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Property alias for the Content's Url name.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string UrlName = "umbracoUrlName";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Constants for Umbraco Media property aliases.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static class Media
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Property alias for the Media's file name.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string File = "umbracoFile";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Property alias for the Media's width.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string Width = "umbracoWidth";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Property alias for the Media's height.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string Height = "umbracoHeight";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Property alias for the Media's file size (in bytes).
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string Bytes = "umbracoBytes";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Property alias for the Media's file extension.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string Extension = "umbracoExtension";
|
2018-10-01 14:32:46 +02:00
|
|
|
|
2019-03-29 12:26:42 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// The default height/width of an image file if the size can't be determined from the metadata
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const int DefaultSize = 200;
|
2018-06-29 19:52:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Defines the alias identifiers for Umbraco media types.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static class MediaTypes
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// MediaType alias for a file.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string File = "File";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// MediaType alias for a folder.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string Folder = "Folder";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// MediaType alias for an image.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string Image = "Image";
|
|
|
|
|
|
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
|
|
|
/// <summary>
|
2021-06-21 17:59:01 +01:00
|
|
|
/// MediaType name for a video.
|
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
|
|
|
/// </summary>
|
|
|
|
|
public const string Video = "Video";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2021-06-21 17:59:01 +01:00
|
|
|
/// MediaType name for an audio.
|
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
|
|
|
/// </summary>
|
|
|
|
|
public const string Audio = "Audio";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2021-06-21 17:59:01 +01:00
|
|
|
/// MediaType name for an article.
|
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
|
|
|
/// </summary>
|
|
|
|
|
public const string Article = "Article";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2021-06-21 17:59:01 +01:00
|
|
|
/// MediaType name for vector graphics.
|
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
|
|
|
/// </summary>
|
|
|
|
|
public const string VectorGraphics = "VectorGraphics";
|
|
|
|
|
|
2021-06-21 17:59:01 +01:00
|
|
|
/// <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";
|
|
|
|
|
|
2018-06-29 19:52:40 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// MediaType alias indicating allowing auto-selection.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string AutoSelect = "umbracoAutoSelect";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Constants for Umbraco Member property aliases.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static class Member
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// if a role starts with __umbracoRole we won't show it as it's an internal role used for public access
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static readonly string InternalRolePrefix = "__umbracoRole";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Property alias for the Comments on a Member
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string Comments = "umbracoMemberComments";
|
|
|
|
|
|
|
|
|
|
public const string CommentsLabel = "Comments";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Property alias for the Approved boolean of a Member
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string IsApproved = "umbracoMemberApproved";
|
|
|
|
|
|
|
|
|
|
public const string IsApprovedLabel = "Is Approved";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Property alias for the Locked out boolean of a Member
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string IsLockedOut = "umbracoMemberLockedOut";
|
|
|
|
|
|
|
|
|
|
public const string IsLockedOutLabel = "Is Locked Out";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Property alias for the last date the Member logged in
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string LastLoginDate = "umbracoMemberLastLogin";
|
|
|
|
|
|
|
|
|
|
public const string LastLoginDateLabel = "Last Login Date";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Property alias for the last date a Member changed its password
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string LastPasswordChangeDate = "umbracoMemberLastPasswordChangeDate";
|
|
|
|
|
|
|
|
|
|
public const string LastPasswordChangeDateLabel = "Last Password Change Date";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Property alias for the last date a Member was locked out
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string LastLockoutDate = "umbracoMemberLastLockoutDate";
|
|
|
|
|
|
|
|
|
|
public const string LastLockoutDateLabel = "Last Lockout Date";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2019-01-22 18:03:39 -05:00
|
|
|
/// Property alias for the number of failed login attempts
|
2018-06-29 19:52:40 +02:00
|
|
|
/// </summary>
|
|
|
|
|
public const string FailedPasswordAttempts = "umbracoMemberFailedPasswordAttempts";
|
|
|
|
|
|
|
|
|
|
public const string FailedPasswordAttemptsLabel = "Failed Password Attempts";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Group name to put the membership properties on
|
|
|
|
|
/// </summary>
|
2019-11-05 13:45:42 +01:00
|
|
|
public const string StandardPropertiesGroupName = "Membership";
|
2018-06-29 19:52:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Defines the alias identifiers for Umbraco member types.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static class MemberTypes
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// MemberType alias for default member type.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string DefaultAlias = "Member";
|
|
|
|
|
|
|
|
|
|
public const string SystemDefaultProtectType = "_umbracoSystemDefaultProtectType";
|
|
|
|
|
|
|
|
|
|
public const string AllMembersListId = "all-members";
|
|
|
|
|
}
|
|
|
|
|
|
2020-02-13 09:17:57 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Constants for Umbraco URLs/Querystrings.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static class Url
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Querystring parameter name used for Umbraco's alternative template functionality.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string AltTemplate = "altTemplate";
|
|
|
|
|
}
|
|
|
|
|
|
2018-06-29 19:52:40 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Defines the alias identifiers for built-in Umbraco relation types.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static class RelationTypes
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2019-10-24 16:48:21 +11:00
|
|
|
/// Name for default relation type "Related Media".
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string RelatedMediaName = "Related Media";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Alias for default relation type "Related Media"
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string RelatedMediaAlias = "umbMedia";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Name for default relation type "Related Document".
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string RelatedDocumentName = "Related Document";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Alias for default relation type "Related Document"
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string RelatedDocumentAlias = "umbDocument";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Name for default relation type "Relate Document On Copy".
|
2018-06-29 19:52:40 +02:00
|
|
|
/// </summary>
|
|
|
|
|
public const string RelateDocumentOnCopyName = "Relate Document On Copy";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2019-10-24 16:48:21 +11:00
|
|
|
/// Alias for default relation type "Relate Document On Copy".
|
2018-06-29 19:52:40 +02:00
|
|
|
/// </summary>
|
|
|
|
|
public const string RelateDocumentOnCopyAlias = "relateDocumentOnCopy";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2019-10-24 16:48:21 +11:00
|
|
|
/// Name for default relation type "Relate Parent Document On Delete".
|
2018-06-29 19:52:40 +02:00
|
|
|
/// </summary>
|
|
|
|
|
public const string RelateParentDocumentOnDeleteName = "Relate Parent Document On Delete";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2019-10-24 16:48:21 +11:00
|
|
|
/// Alias for default relation type "Relate Parent Document On Delete".
|
2018-06-29 19:52:40 +02:00
|
|
|
/// </summary>
|
|
|
|
|
public const string RelateParentDocumentOnDeleteAlias = "relateParentDocumentOnDelete";
|
2018-07-30 21:31:35 +10:00
|
|
|
|
|
|
|
|
/// <summary>
|
2019-10-24 16:48:21 +11:00
|
|
|
/// Name for default relation type "Relate Parent Media Folder On Delete".
|
2018-07-30 21:31:35 +10:00
|
|
|
/// </summary>
|
|
|
|
|
public const string RelateParentMediaFolderOnDeleteName = "Relate Parent Media Folder On Delete";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2019-10-24 16:48:21 +11:00
|
|
|
/// Alias for default relation type "Relate Parent Media Folder On Delete".
|
2018-07-30 21:31:35 +10:00
|
|
|
/// </summary>
|
|
|
|
|
public const string RelateParentMediaFolderOnDeleteAlias = "relateParentMediaFolderOnDelete";
|
2019-10-25 14:17:18 +11:00
|
|
|
|
2019-10-25 14:33:40 +11:00
|
|
|
/// <summary>
|
|
|
|
|
/// Returns the types of relations that are automatically tracked
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>
|
|
|
|
|
/// Developers should not manually use these relation types since they will all be cleared whenever an entity
|
|
|
|
|
/// (content, media or member) is saved since they are auto-populated based on property values.
|
|
|
|
|
/// </remarks>
|
Published members cleanup (#10159)
* Getting new netcore PublicAccessChecker in place
* Adds full test coverage for PublicAccessChecker
* remove PublicAccessComposer
* adjust namespaces, ensure RoleManager works, separate public access controller, reduce content controller
* Implements the required methods on IMemberManager, removes old migrated code
* Updates routing to be able to re-route, Fixes middleware ordering ensuring endpoints are last, refactors pipeline options, adds public access middleware, ensures public access follows all hops
* adds note
* adds note
* Cleans up ext methods, ensures that members identity is added on both front-end and back ends. updates how UmbracoApplicationBuilder works in that it explicitly starts endpoints at the time of calling.
* Changes name to IUmbracoEndpointBuilder
* adds note
* Fixing tests, fixing error describers so there's 2x one for back office, one for members, fixes TryConvertTo, fixes login redirect
* fixing build
* Updates user manager to correctly validate password hashing and injects the IBackOfficeUserPasswordChecker
* Merges PR
* Fixes up build and notes
* Implements security stamp and email confirmed for members, cleans up a bunch of repo/service level member groups stuff, shares user store code between members and users and fixes the user identity object so we arent' tracking both groups and roles.
* Security stamp for members is now working
* Fixes keepalive, fixes PublicAccessMiddleware to not throw, updates startup code to be more clear and removes magic that registers middleware.
* adds note
* removes unused filter, fixes build
* fixes WebPath and tests
* Looks up entities in one query
* remove usings
* Fix test, remove stylesheet
* Set status code before we write to response to avoid error
* Ensures that users and members are validated when logging in. Shares more code between users and members.
* merge changes
* oops
* Reducing and removing published member cache
* Fixes RepositoryCacheKeys to ensure the keys are normalized
* oops didn't mean to commit this
* Fix casing issues with caching, stop boxing value types for all cache operations, stop re-creating string keys in DefaultRepositoryCachePolicy
* oops didn't mean to comit this
* bah, far out this keeps getting recommitted. sorry
* cannot inject IPublishedMemberCache and cannot have IPublishedMember
* splits out files, fixes build
* fix tests
* removes membership provider classes
* removes membership provider classes
* updates the identity map definition
* reverts commented out lines
* reverts commented out lines
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-04-22 21:21:43 +10:00
|
|
|
public static string[] AutomaticRelationTypes { get; } = new[] { RelatedMediaAlias, RelatedDocumentAlias };
|
2019-10-25 14:33:40 +11:00
|
|
|
|
2019-10-25 14:17:18 +11:00
|
|
|
//TODO: return a list of built in types so we can use that to prevent deletion in the uI
|
2018-06-29 19:52:40 +02:00
|
|
|
}
|
2020-02-13 09:17:57 +01:00
|
|
|
|
2018-06-29 19:52:40 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|