-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add IContentComponent to C&S contents
tests: add FooterLinkTagHelper changes unit tests chore: Linted code for plan-technology-for-your-school.sln solution chore: sonarcloud fix chore: add .sonarqube to gitignore fix: handle prefixed "/" chore formatting fix: expected url fix: expected url fix: test fix: Look in all assemblies for IContentComponent types wip chore: add text fix: unit tests, tweak validation
- Loading branch information
1 parent
32adb19
commit cf8ba9f
Showing
12 changed files
with
164 additions
and
59 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
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,12 +1,15 @@ | ||
using System.Diagnostics.CodeAnalysis; | ||
using Dfe.PlanTech.Domain.Content.Interfaces; | ||
using Dfe.PlanTech.Domain.Content.Models; | ||
|
||
namespace Dfe.PlanTech.Web.Models.Content; | ||
|
||
[ExcludeFromCodeCoverage] | ||
public class ContentBase : Contentful.Core.Models.Entry<ContentBase> | ||
public class ContentBase : Contentful.Core.Models.Entry<ContentBase>, IContentComponent, IHasSlug | ||
{ | ||
public string InternalName { get; set; } = null!; | ||
public string Slug { get; set; } = null!; | ||
public string? Title { get; set; } | ||
public string? Subtitle { get; set; } | ||
public SystemDetails Sys { get; set; } = null!; | ||
} |
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
20 changes: 20 additions & 0 deletions
20
src/Dfe.PlanTech.Web/Models/Content/IContentSupportPage.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Dfe.PlanTech.Domain.Content.Interfaces; | ||
|
||
namespace Dfe.PlanTech.Web.Models.Content; | ||
|
||
public interface IContentSupportPage<TContent> : IContentSupportPage | ||
where TContent : class | ||
{ | ||
List<TContent> Content { get; } | ||
} | ||
|
||
public interface IContentSupportPage : IContentComponent, IHasSlug | ||
{ | ||
Heading Heading { get; } | ||
bool IsSitemap { get; } | ||
bool HasCitation { get; } | ||
bool HasBackToTop { get; } | ||
bool HasFeedbackBanner { get; } | ||
bool HasPrint { get; } | ||
bool ShowVerticalNavigation { get; } | ||
} |
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
Oops, something went wrong.