diff --git a/Lombiq.JsonEditor.Test.UI/Lombiq.JsonEditor.Tests.UI.csproj b/Lombiq.JsonEditor.Test.UI/Lombiq.JsonEditor.Tests.UI.csproj index c76204e..da8703f 100644 --- a/Lombiq.JsonEditor.Test.UI/Lombiq.JsonEditor.Tests.UI.csproj +++ b/Lombiq.JsonEditor.Test.UI/Lombiq.JsonEditor.Tests.UI.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 @@ -21,7 +21,7 @@ - + diff --git a/Lombiq.JsonEditor/Controllers/AdminController.cs b/Lombiq.JsonEditor/Controllers/AdminController.cs index 10b8420..93235f7 100644 --- a/Lombiq.JsonEditor/Controllers/AdminController.cs +++ b/Lombiq.JsonEditor/Controllers/AdminController.cs @@ -1,4 +1,4 @@ -using AngleSharp.Common; +using AngleSharp.Common; using Lombiq.HelpfulLibraries.OrchardCore.Contents; using Lombiq.HelpfulLibraries.OrchardCore.DependencyInjection; using Lombiq.HelpfulLibraries.OrchardCore.Mvc; @@ -77,7 +77,7 @@ await _contentManager.GetAsync(contentItemId, VersionOptions.Latest) is not { } }); await _layoutAccessor.AddShapeToZoneAsync("Title", titleShape); - var definition = _contentDefinitionManager.GetTypeDefinition(contentItem.ContentType); + var definition = await _contentDefinitionManager.GetTypeDefinitionAsync(contentItem.ContentType); return View(new EditContentItemViewModel(contentItem, definition, JsonConvert.SerializeObject(contentItem))); } diff --git a/Lombiq.JsonEditor/Lombiq.JsonEditor.csproj b/Lombiq.JsonEditor/Lombiq.JsonEditor.csproj index d737fa5..1d0e315 100644 --- a/Lombiq.JsonEditor/Lombiq.JsonEditor.csproj +++ b/Lombiq.JsonEditor/Lombiq.JsonEditor.csproj @@ -3,7 +3,7 @@ - net6.0 + net8.0 true $(DefaultItemExcludes);.git*;node_modules\**;Tests\** @@ -36,12 +36,12 @@ - - - - - - + + + + + + @@ -50,8 +50,8 @@ - - + + diff --git a/Lombiq.JsonEditor/Manifest.cs b/Lombiq.JsonEditor/Manifest.cs index a2704cf..1b4da6d 100644 --- a/Lombiq.JsonEditor/Manifest.cs +++ b/Lombiq.JsonEditor/Manifest.cs @@ -14,11 +14,11 @@ Name = "Lombiq JSON Editor", Category = "Content", Description = "Module for displaying a JSON Editor like on jsoneditoronline.org.", - Dependencies = new[] - { + Dependencies = + [ "OrchardCore.Contents", "OrchardCore.ResourceManagement", - } + ] )] [assembly: Feature( @@ -26,8 +26,8 @@ Name = "Lombiq JSON Content Editor", Category = "Content", Description = "Adds an actions menu item to the content item list for editing them as JSON.", - Dependencies = new[] - { + Dependencies = + [ Default, - } + ] )] diff --git a/Lombiq.JsonEditor/Views/JsonField.Edit.cshtml b/Lombiq.JsonEditor/Views/JsonField.Edit.cshtml index 5056bca..7ca9237 100644 --- a/Lombiq.JsonEditor/Views/JsonField.Edit.cshtml +++ b/Lombiq.JsonEditor/Views/JsonField.Edit.cshtml @@ -10,7 +10,7 @@ }
- +