-
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.
Merge pull request #1 from seangwright/feat/dotnet-8
Feature: .NET 8 and Xperience by Kentico 28.1.0
- Loading branch information
Showing
22 changed files
with
1,747 additions
and
2,806 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
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
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
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,20 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | ||
<CentralPackageVersionOverrideEnabled>false</CentralPackageVersionOverrideEnabled> | ||
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> | ||
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageVersion Include="Kentico.Xperience.WebApp" Version="28.1.0" /> | ||
|
||
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" /> | ||
<PackageVersion Include="NUnit" Version="4.0.1" /> | ||
<PackageVersion Include="NUnit3TestAdapter" Version="4.5.0" /> | ||
<PackageVersion Include="NUnit.Analyzers" Version="3.10.0" /> | ||
<PackageVersion Include="coverlet.collector" Version="6.0.0" /> | ||
<PackageVersion Include="Kentico.Xperience.Core.Tests" Version="28.1.0" /> | ||
<PackageVersion Include="NSubstitute" Version="5.1.0" /> | ||
<PackageVersion Include="FluentAssertions" Version="6.12.0" /> | ||
</ItemGroup> | ||
</Project> |
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
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"sdk": { | ||
"version": "7.0.203", | ||
"rollForward": "latestMinor", | ||
"version": "8.0.100", | ||
"rollForward": "latestMajor", | ||
"allowPrerelease": false | ||
} | ||
} |
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
93 changes: 46 additions & 47 deletions
93
src/XperienceCommunity.PreviewComponentOutlines/OutlinesConfiguration.cs
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 |
---|---|---|
@@ -1,49 +1,48 @@ | ||
namespace XperienceCommunity.PreviewComponentOutlines | ||
namespace XperienceCommunity.PreviewComponentOutlines; | ||
|
||
public class OutlinesConfiguration | ||
{ | ||
public class OutlinesConfiguration | ||
{ | ||
/// <summary> | ||
/// Color of the outline surrounding Page Builder components | ||
/// </summary> | ||
/// <value></value> | ||
public string OutlineColor { get; set; } = "#ccc"; | ||
/// <summary> | ||
/// Font size of the label text for each Page Builder component | ||
/// </summary> | ||
/// <value></value> | ||
public string LabelFontSize { get; set; } = "1rem"; | ||
/// <summary> | ||
/// Font color of the label text for each Page Builder component | ||
/// </summary> | ||
/// <value></value> | ||
public string LabelFontColor { get; set; } = "#7f09b7"; | ||
/// <summary> | ||
/// Background color of the label for each Page Builder component | ||
/// </summary> | ||
/// <value></value> | ||
public string LabelBackgroundColor { get; set; } = "#fff"; | ||
/// <summary> | ||
/// Border color of the label for each Page Builder component | ||
/// </summary> | ||
/// <value></value> | ||
public string LabelBorderColor { get; set; } = "#7f09b7"; | ||
/// <summary> | ||
/// Padding of the label for each Page Builder component | ||
/// </summary> | ||
/// <value></value> | ||
public string LabelPadding { get; set; } = ".5rem"; | ||
/// <summary> | ||
/// Opacity of the label for each Page Builder Component | ||
/// </summary> | ||
/// <value></value> | ||
public string LabelOpacity { get; set; } = ".8"; | ||
/// <summary> | ||
/// If true, the styles provided by the library will be used for Page Builder component | ||
/// outlines and labels along with any customized values in this configuration class. | ||
/// | ||
/// If false, the user will be expected to provide their own styles. | ||
/// </summary> | ||
/// <value>Defaults to true</value> | ||
public bool UseIncludedStyles { get; set; } = true; | ||
} | ||
/// <summary> | ||
/// Color of the outline surrounding Page Builder components | ||
/// </summary> | ||
/// <value></value> | ||
public string OutlineColor { get; set; } = "#ccc"; | ||
/// <summary> | ||
/// Font size of the label text for each Page Builder component | ||
/// </summary> | ||
/// <value></value> | ||
public string LabelFontSize { get; set; } = "1rem"; | ||
/// <summary> | ||
/// Font color of the label text for each Page Builder component | ||
/// </summary> | ||
/// <value></value> | ||
public string LabelFontColor { get; set; } = "#7f09b7"; | ||
/// <summary> | ||
/// Background color of the label for each Page Builder component | ||
/// </summary> | ||
/// <value></value> | ||
public string LabelBackgroundColor { get; set; } = "#fff"; | ||
/// <summary> | ||
/// Border color of the label for each Page Builder component | ||
/// </summary> | ||
/// <value></value> | ||
public string LabelBorderColor { get; set; } = "#7f09b7"; | ||
/// <summary> | ||
/// Padding of the label for each Page Builder component | ||
/// </summary> | ||
/// <value></value> | ||
public string LabelPadding { get; set; } = ".5rem"; | ||
/// <summary> | ||
/// Opacity of the label for each Page Builder Component | ||
/// </summary> | ||
/// <value></value> | ||
public string LabelOpacity { get; set; } = ".8"; | ||
/// <summary> | ||
/// If true, the styles provided by the library will be used for Page Builder component | ||
/// outlines and labels along with any customized values in this configuration class. | ||
/// | ||
/// If false, the user will be expected to provide their own styles. | ||
/// </summary> | ||
/// <value>Defaults to true</value> | ||
public bool UseIncludedStyles { get; set; } = true; | ||
} |
48 changes: 21 additions & 27 deletions
48
src/XperienceCommunity.PreviewComponentOutlines/OutlinesServiceCollectionExtensions.cs
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 |
---|---|---|
@@ -1,33 +1,27 @@ | ||
using Microsoft.AspNetCore.Razor.TagHelpers; | ||
using XperienceCommunity.PreviewComponentOutlines; | ||
|
||
namespace Microsoft.Extensions.DependencyInjection | ||
namespace Microsoft.Extensions.DependencyInjection; | ||
|
||
public static class OutlinesServiceCollectionExtensions | ||
{ | ||
public static class OutlinesServiceCollectionExtensions | ||
{ | ||
/// <summary> | ||
/// Adds Page Builder component outlines and labels in Preview mode with no | ||
/// design customization | ||
/// </summary> | ||
/// <param name="services"></param> | ||
/// <returns></returns> | ||
public static IServiceCollection AddPreviewComponentOutlines(this IServiceCollection services) | ||
{ | ||
return services.AddPreviewComponentOutlines(o => { }); | ||
} | ||
/// <summary> | ||
/// Adds Page Builder component outlines and labels in Preview mode with no | ||
/// design customization | ||
/// </summary> | ||
/// <param name="services"></param> | ||
/// <returns></returns> | ||
public static IServiceCollection AddPreviewComponentOutlines(this IServiceCollection services) => services.AddPreviewComponentOutlines(o => { }); | ||
|
||
/// <summary> | ||
/// Adds Page Builder component outlines and labels in Preview mode with design | ||
/// configuration provided by the <paramref name="configure" /> delegate | ||
/// </summary> | ||
/// <param name="services"></param> | ||
/// <param name="configure"></param> | ||
/// <returns></returns> | ||
public static IServiceCollection AddPreviewComponentOutlines(this IServiceCollection services, Action<OutlinesConfiguration> configure) | ||
{ | ||
return services | ||
.Configure(configure) | ||
.AddTransient<ITagHelperComponent, OutlinesStylesTagHelperComponent>(); | ||
} | ||
} | ||
/// <summary> | ||
/// Adds Page Builder component outlines and labels in Preview mode with design | ||
/// configuration provided by the <paramref name="configure" /> delegate | ||
/// </summary> | ||
/// <param name="services"></param> | ||
/// <param name="configure"></param> | ||
/// <returns></returns> | ||
public static IServiceCollection AddPreviewComponentOutlines(this IServiceCollection services, Action<OutlinesConfiguration> configure) => | ||
services | ||
.Configure(configure) | ||
.AddTransient<ITagHelperComponent, OutlinesStylesTagHelperComponent>(); | ||
} |
Oops, something went wrong.