-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: add typed Condition Manifest
- Loading branch information
Showing
6 changed files
with
338 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/jcdcdev.Umbraco.Core.TestSite/uSync/v15/Content/test.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Content Key="d10d23ab-d956-406c-b041-08c6298374e7" Alias="Test" Level="101"> | ||
<Info> | ||
<Parent Key="00000000-0000-0000-0000-000000000000"></Parent> | ||
<Path>/[-20]/Test</Path> | ||
<Trashed Parent="916724a5-173d-4619-b97e-b9de133dd6f5">true</Trashed> | ||
<ContentType>home</ContentType> | ||
<CreateDate>2024-12-30T23:16:58</CreateDate> | ||
<NodeName Default="Test"> | ||
<Name Culture="en-GB">Test</Name> | ||
</NodeName> | ||
<SortOrder>0</SortOrder> | ||
<Published Default="true"> | ||
<Published Culture="en-GB">true</Published> | ||
</Published> | ||
<Schedule /> | ||
<Template Key="77e83006-4abe-4bff-b405-307a4f22f55d">home</Template> | ||
</Info> | ||
<Properties> | ||
<gridContent> | ||
<Value><![CDATA[]]></Value> | ||
</gridContent> | ||
</Properties> | ||
</Content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
namespace jcdcdev.Umbraco.Core; | ||
|
||
public static class Constants | ||
{ | ||
public class Conditions | ||
{ | ||
public const string BlockEntryShowContentEdit = "Umb.Condition.BlockEntryShowContentEdit"; | ||
public const string BlockHasSettings = "Umb.Condition.BlockWorkspaceHasSettings"; | ||
public const string CollectionAlias = "Umb.Condition.CollectionAlias"; | ||
public const string CollectionBulkActionPermission = "Umb.Condition.CollectionBulkActionPermission"; | ||
public const string CurrentUserAllowDocumentRecycleBin = "Umb.Condition.CurrentUser.AllowDocumentRecycleBin"; | ||
public const string CurrentUserAllowMediaRecycleBin = "Umb.Condition.CurrentUser.AllowMediaRecycleBin"; | ||
public const string EntityIsNotTrashed = "Umb.Condition.EntityIsNotTrashed"; | ||
public const string EntityIsTrashed = "Umb.Condition.EntityIsTrashed"; | ||
public const string MenuAlias = "Umb.Condition.MenuAlias"; | ||
public const string MultipleAppLanguages = "Umb.Condition.MultipleAppLanguages"; | ||
public const string PropertyWritable = "Umb.Condition.Property.Writable"; | ||
public const string SectionAlias = "Umb.Condition.SectionAlias"; | ||
public const string SectionUserPermission = "Umb.Condition.SectionUserPermission"; | ||
public const string Switch = "Umb.Condition.Switch"; | ||
public const string UserAllowDeleteAction = "Umb.Condition.User.AllowDeleteAction"; | ||
public const string UserAllowDisableAction = "Umb.Condition.User.AllowDisableAction"; | ||
public const string UserAllowEnableAction = "Umb.Condition.User.AllowEnableAction"; | ||
public const string UserAllowExternalLoginAction = "Umb.Condition.User.AllowExternalLoginAction"; | ||
public const string UserAllowMfaAction = "Umb.Condition.User.AllowMfaAction"; | ||
public const string UserAllowResendInviteAction = "Umb.Condition.User.AllowResendInviteAction"; | ||
public const string UserAllowUnlockAction = "Umb.Condition.User.AllowUnlockAction"; | ||
public const string UserPermissionDocument = "Umb.Condition.UserPermission.Document"; | ||
public const string WorkspaceContentHasProperties = "Umb.Condition.Workspace.ContentHasProperties"; | ||
public const string WorkspaceAlias = "Umb.Condition.WorkspaceAlias"; | ||
public const string WorkspaceContentTypeAlias = "Umb.Condition.WorkspaceContentTypeAlias"; | ||
public const string WorkspaceEntityType = "Umb.Condition.WorkspaceEntityType"; | ||
public const string WorkspaceHasCollection = "Umb.Condition.WorkspaceHasCollection"; | ||
public const string WorkspaceEntityIsNew = "Umb.Condition.WorkspaceEntityIsNew"; | ||
} | ||
|
||
public class Sections | ||
{ | ||
public const string Content = "Umb.Section.Content"; | ||
public const string Media = "Umb.Section.Media"; | ||
public const string Settings = "Umb.Section.Settings"; | ||
public const string Members = "Umb.Section.Members"; | ||
public const string Packages = "Umb.Section.Packages"; | ||
public const string Dictionary = "Umb.Section.Translation"; | ||
public const string Users = "Umb.Section.Users"; | ||
} | ||
|
||
public class Workspaces | ||
{ | ||
public const string Block = "Umb.Workspace.Block"; | ||
public const string BlockGridAreaType = "Umb.Workspace.BlockGridAreaType"; | ||
public const string BlockGridType = "Umb.Workspace.BlockGridType"; | ||
public const string BlockListType = "Umb.Workspace.BlockListType"; | ||
public const string BlockRteType = "Umb.Workspace.BlockRteType"; | ||
public const string DataType = "Umb.Workspace.DataType"; | ||
public const string Dictionary = "Umb.Workspace.Dictionary"; | ||
public const string Document = "Umb.Workspace.Document"; | ||
public const string DocumentBlueprint = "Umb.Workspace.DocumentBlueprint"; | ||
public const string DocumentBlueprintFolder = "Umb.Workspace.DocumentBlueprint.Folder"; | ||
public const string DocumentBlueprintRoot = "Umb.Workspace.DocumentBlueprint.Root"; | ||
public const string DocumentType = "Umb.Workspace.DocumentType"; | ||
public const string ExtensionRoot = "Umb.Workspace.ExtensionRoot"; | ||
public const string Language = "Umb.Workspace.Language"; | ||
public const string LanguageRoot = "Umb.Workspace.LanguageRoot"; | ||
public const string LogViewer = "Umb.Workspace.LogViewer"; | ||
public const string Media = "Umb.Workspace.Media"; | ||
public const string MediaType = "Umb.Workspace.MediaType"; | ||
public const string Member = "Umb.Workspace.Member"; | ||
public const string MemberGroup = "Umb.Workspace.MemberGroup"; | ||
public const string MemberType = "Umb.Workspace.MemberType"; | ||
public const string Package = "Umb.Workspace.Package"; | ||
public const string PackageBuilder = "Umb.Workspace.PackageBuilder"; | ||
public const string PartialView = "Umb.Workspace.PartialView"; | ||
public const string PropertyType = "Umb.Workspace.PropertyType"; | ||
public const string RelationType = "Umb.Workspace.RelationType"; | ||
public const string RelationTypeRoot = "Umb.Workspace.RelationTypeRoot"; | ||
public const string Script = "Umb.Workspace.Script"; | ||
public const string Stylesheet = "Umb.Workspace.Stylesheet"; | ||
public const string Template = "Umb.Workspace.Template"; | ||
public const string User = "Umb.Workspace.User"; | ||
public const string UserGroup = "Umb.Workspace.UserGroup"; | ||
public const string Webhook = "Umb.Workspace.Webhook"; | ||
public const string WebhookRoot = "Umb.Workspace.WebhookRoot"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.