Skip to content

Commit

Permalink
v2.0.0-alpha007
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Butterfield committed Aug 6, 2024
1 parent 619071b commit 00d3f90
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/Umbraco.Cms.14.x/Umbraco.Cms.14.x.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<ItemGroup>
<PackageReference Include="Umbraco.Cms" Version="14.1.0" />
<PackageReference Include="Umbraco.Cms.Core" Version="14.1.0" />
<PackageReference Include="Umbraco.Community.BlockPreview" Version="2.0.0-alpha006" />
<PackageReference Include="uSync" Version="14.0.0" />
</ItemGroup>

<ItemGroup>
<!-- Opt-in to app-local ICU to ensure consistent globalization APIs across different platforms -->
<PackageReference Include="Microsoft.ICU.ICU4C.Runtime" Version="72.1.0.3" />
<ProjectReference Include="..\Umbraco.Community.BlockPreview\Umbraco.Community.BlockPreview.csproj" />
<RuntimeHostConfigurationOption Include="System.Globalization.AppLocalIcu" Value="72.1.0.3" Condition="$(RuntimeIdentifier.StartsWith('linux')) or $(RuntimeIdentifier.StartsWith('win')) or ('$(RuntimeIdentifier)' == '' and !$([MSBuild]::IsOSPlatform('osx')))" />
</ItemGroup>

Expand Down
6 changes: 4 additions & 2 deletions src/Umbraco.Cms.14.x/Views/home.cshtml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@using Umbraco.Cms.Web.Common.PublishedModels;
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<Home>
@{
Layout = null;
}
Layout = "Layout.cshtml";
}

@await Html.GetBlockGridHtmlAsync(Model.Blocks)
8 changes: 1 addition & 7 deletions src/Umbraco.Cms.14.x/appsettings.Development.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,7 @@
"RuntimeMinification": {
"UseInMemoryCache": true,
"CacheBuster": "Timestamp"
},
//"Security": {
// "BackOfficeHost": "http://localhost:5173",
// "AuthorizeCallbackPathName": "/oauth_complete",
// "AuthorizeCallbackLogoutPathName": "/logout",
// "AuthorizeCallbackErrorPathName": "/error"
//}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.VisualStudio.JavaScript.Sdk/1.0.784122">
<PropertyGroup>
<ShouldRunNpmInstall>false</ShouldRunNpmInstall>
<ShouldRunBuildScript>false</ShouldRunBuildScript>
<StaticWebAssetSourceId>Umbraco.Community.BlockPreview</StaticWebAssetSourceId>
<DebugAssetsDirectory>$(MSBuildProjectDirectory)\dist</DebugAssetsDirectory>
</PropertyGroup>
<PropertyGroup>
<ShouldRunNpmInstall>false</ShouldRunNpmInstall>
<ShouldRunBuildScript>false</ShouldRunBuildScript>
<StaticWebAssetSourceId>Umbraco.Community.BlockPreview</StaticWebAssetSourceId>
<DebugAssetsDirectory>$(MSBuildProjectDirectory)\dist</DebugAssetsDirectory>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "../umbraco-package-schema.json",
"name": "Umbraco.Community.BlockPreview",
"id": "Umbraco.Community.BlockPreview",
"version": "2.0.0-alpha006",
"version": "2.0.0-alpha007",
"allowTelemetry": true,
"extensions": [
{
Expand Down
1 change: 0 additions & 1 deletion src/Umbraco.Community.BlockPreview/BlockPreviewComposer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using Umbraco.Cms.Core.Composing;
using Umbraco.Cms.Core.DependencyInjection;
using Umbraco.Cms.Core.Notifications;
using Umbraco.Community.BlockPreview.Extensions;
using Umbraco.Community.BlockPreview.Helpers;
using Umbraco.Community.BlockPreview.Interfaces;
using Umbraco.Community.BlockPreview.NotificationHandlers;
Expand Down
6 changes: 3 additions & 3 deletions src/Umbraco.Community.BlockPreview/BlockPreviewOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public BlockPreviewOptions()

public class BlockTypeSettings
{
public bool Enabled { get; set; }
public string[]? ViewLocations { get; set; }
public string[]? ContentTypes { get; set; }
public bool Enabled { get; set; } = false;
public string[]? ViewLocations { get; set; } = [];
public string[]? ContentTypes { get; set; } = [];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static IUmbracoBuilder AddBlockPreview(this IUmbracoBuilder builder,
ArgumentNullException.ThrowIfNull(builder);

var optionsBuilder = builder.Services.AddOptions<BlockPreviewOptions>()
.BindConfiguration(Constants.Configuration.AppPluginsRoot)
.BindConfiguration(Constants.Configuration.AppSettingsRoot)
.ValidateDataAnnotations();

configure?.Invoke(optionsBuilder);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>

<VersionPrefix>2.0.0</VersionPrefix>
<VersionSuffix>alpha006</VersionSuffix>
<VersionSuffix>alpha007</VersionSuffix>
<Authors>Rick Butterfield, Dave Woestenborghs, Matthew Wise</Authors>
<Copyright>$([System.DateTime]::UtcNow.ToString(`yyyy`)) © Rick Butterfield</Copyright>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "../umbraco-package-schema.json",
"name": "Umbraco.Community.BlockPreview",
"id": "Umbraco.Community.BlockPreview",
"version": "2.0.0-alpha006",
"version": "2.0.0-alpha007",
"allowTelemetry": true,
"extensions": [
{
Expand Down

0 comments on commit 00d3f90

Please sign in to comment.