From d8359f4354dc44aa2844188f67802f07b6a4ea66 Mon Sep 17 00:00:00 2001 From: Collin Barrett Date: Sun, 19 Aug 2018 19:37:54 -0500 Subject: [PATCH] remove added date from ui (new prod db, no longer relevant/accurate) --- scripts/cron | 2 +- .../MappingProfiles/ListDetailsDtoMappingProfile.cs | 1 - .../FilterList/Models/ListDetailsDto.cs | 1 - .../ClientApp/components/ListDetails.tsx | 12 +----------- 4 files changed, 2 insertions(+), 14 deletions(-) diff --git a/scripts/cron b/scripts/cron index 2bf203a75..24c3f09c6 100644 --- a/scripts/cron +++ b/scripts/cron @@ -1,2 +1,2 @@ # FilterLists Capture Snapshots -*/1 * * * * nice -n 19 /usr/bin/flock -n /tmp/filterlistsagent.lockfile /var/www/api.filterlists/FilterLists.Agent > /dev/null 2>&1 \ No newline at end of file +*/1 * * * * nice -n 19 /usr/bin/flock -n /tmp/filterlistsagent.lockfile /var/www/filterlists/FilterLists.Agent > /dev/null 2>&1 \ No newline at end of file diff --git a/src/FilterLists.Services/FilterList/MappingProfiles/ListDetailsDtoMappingProfile.cs b/src/FilterLists.Services/FilterList/MappingProfiles/ListDetailsDtoMappingProfile.cs index 12b886214..1de37fe2b 100644 --- a/src/FilterLists.Services/FilterList/MappingProfiles/ListDetailsDtoMappingProfile.cs +++ b/src/FilterLists.Services/FilterList/MappingProfiles/ListDetailsDtoMappingProfile.cs @@ -10,7 +10,6 @@ public class ListDetailsDtoMappingProfile : Profile { public ListDetailsDtoMappingProfile() => CreateMap() - .ForMember(d => d.AddedDate, c => c.MapFrom(l => l.CreatedDateUtc)) .ForMember(d => d.Languages, c => c.MapFrom(l => l.FilterListLanguages.Select(la => la.Language.Name))) .ForMember(d => d.Maintainers, c => c.MapFrom(l => l.FilterListMaintainers.Select(m => m.Maintainer))) .ForMember(d => d.RuleCount, diff --git a/src/FilterLists.Services/FilterList/Models/ListDetailsDto.cs b/src/FilterLists.Services/FilterList/Models/ListDetailsDto.cs index a09d9bef2..6a9c97697 100644 --- a/src/FilterLists.Services/FilterList/Models/ListDetailsDto.cs +++ b/src/FilterLists.Services/FilterList/Models/ListDetailsDto.cs @@ -8,7 +8,6 @@ namespace FilterLists.Services.FilterList.Models public class ListDetailsDto { public uint Id { get; set; } - public DateTime? AddedDate { get; set; } public string ChatUrl { get; set; } public string Description { get; set; } public string DescriptionSourceUrl { get; set; } diff --git a/src/FilterLists.Web/ClientApp/components/ListDetails.tsx b/src/FilterLists.Web/ClientApp/components/ListDetails.tsx index 7b8d63125..01ffd851f 100644 --- a/src/FilterLists.Web/ClientApp/components/ListDetails.tsx +++ b/src/FilterLists.Web/ClientApp/components/ListDetails.tsx @@ -57,7 +57,6 @@ function ListInfo(props: any) { - @@ -128,14 +127,6 @@ function UpdatedDate(props: any) { : null; } -function AddedDate(props: any) { - return props.date - ?
  • -

    Added to FilterLists: {moment(props.date).format("MMM D, Y")}

    -
  • - : null; -} - function PublishedDate(props: any) { return props.date ?
  • @@ -310,7 +301,6 @@ function MaintainerUrls(props: any) { } interface IFilterListDetailsDto { - addedDate: string; chatUrl: string; description: string; descriptionSourceUrl: string; @@ -360,4 +350,4 @@ interface IListSyntaxDto { interface ISyntaxSupportedSoftwareDto { homeUrl: string; name: string; -}; +}; \ No newline at end of file