mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
re-enable rule count
This commit is contained in:
parent
82de6487e4
commit
adec87d83e
3 changed files with 9 additions and 6 deletions
|
|
@ -15,7 +15,12 @@ public ListDetailsDtoMappingProfile() =>
|
|||
.ForMember(d => d.Maintainers, c => c.MapFrom(l => l.FilterListMaintainers.Select(m => m.Maintainer)))
|
||||
.ForMember(d => d.Tags, c => c.MapFrom(l => l.FilterListTags.Select(m => m.Tag)))
|
||||
.ForMember(d => d.RuleCount,
|
||||
c => c.MapFrom(l => 0))
|
||||
c => c.MapFrom(l =>
|
||||
l.Snapshots
|
||||
.OrderByDescending(s => s.CreatedDateUtc)
|
||||
.FirstOrDefault()
|
||||
.SnapshotRules
|
||||
.Count))
|
||||
.ForMember(d => d.UpdatedDate,
|
||||
c => c.MapFrom(l =>
|
||||
l.ModifiedDateUtc));
|
||||
|
|
|
|||
|
|
@ -13,8 +13,6 @@ public ListSummaryDtoMappingProfile() =>
|
|||
CreateMap<Data.Entities.FilterList, ListSummaryDto>()
|
||||
.ForMember(d => d.Languages, c => c.MapFrom(l => l.FilterListLanguages.Select(la => la.Language)))
|
||||
.ForMember(d => d.Tags, c => c.MapFrom(l => l.FilterListTags.Select(m => m.Tag)))
|
||||
.ForMember(d => d.UpdatedDate,
|
||||
c => c.MapFrom(l =>
|
||||
l.ModifiedDateUtc));
|
||||
.ForMember(d => d.UpdatedDate, c => c.MapFrom(l => l.ModifiedDateUtc));
|
||||
}
|
||||
}
|
||||
|
|
@ -54,9 +54,9 @@ function ListInfo(props: any) {
|
|||
<Description description={props.details.description} url={props.details.descriptionSourceUrl}/>
|
||||
<ul className="list-group list-group-flush">
|
||||
<Languages languages={props.details.languages}/>
|
||||
{/* <RuleCount count={props.details.ruleCount}/> */}
|
||||
<RuleCount count={props.details.ruleCount}/>
|
||||
<DiscontinuedDate date={props.details.discontinuedDate}/>
|
||||
{/* <UpdatedDate date={props.details.updatedDate}/>--> */}
|
||||
{ /* <UpdatedDate date={props.details.updatedDate}/>--> */ }
|
||||
<PublishedDate date={props.details.publishedDate}/>
|
||||
<License license={props.details.license}/>
|
||||
</ul>
|
||||
|
|
|
|||
Loading…
Reference in a new issue