add nano icon, sort software alpha

ref #470
This commit is contained in:
Collin M. Barrett 2018-09-15 17:20:47 -05:00
parent ff609fa823
commit f9941698a5
4 changed files with 9 additions and 3 deletions

View file

@ -101,4 +101,4 @@
"homeUrl": "https://www.jeffersonscher.com/gm/google-hit-hider/",
"name": "Google Hit Hider by Domain"
}
]
]

View file

@ -13,7 +13,11 @@ public ListSummaryDtoMappingProfile() =>
.ForMember(d => d.Languages, o => o.MapFrom(l => l.FilterListLanguages.Select(la => la.Language)))
.ForMember(d => d.SoftwareIds,
o => o.MapFrom(l =>
l.Syntax.SoftwareSyntaxes.Select(ss => (int)ss.Software.Id)))
l.Syntax
.SoftwareSyntaxes
.Select(ss => ss.Software)
.OrderBy(s => s.Name)
.Select(s => (int)s.Id)))
.ForMember(d => d.Tags, o => o.MapFrom(l => l.FilterListTags.Select(m => m.Tag)))
.ForMember(d => d.UpdatedDate,
o => o.MapFrom(l =>

Binary file not shown.

After

Width:  |  Height:  |  Size: 752 B

View file

@ -3,6 +3,7 @@ import img1 from "../../../../imgs/software/1-uBlock-Origin.svg";
import img2 from "../../../../imgs/software/2-Adblock-Plus.svg";
import img3 from "../../../../imgs/software/3-AdGuard.png";
import img4 from "../../../../imgs/software/4-DNS66.png";
import img5 from "../../../../imgs/software/5-Nano-Adblocker.png";
interface IProps {
id: number;
@ -26,5 +27,6 @@ const icons: { [id: number]: IIcon; } = {
1: { image: img1, imageTitle: "uBlock Origin" },
2: { image: img2, imageTitle: "Adblock Plus" },
3: { image: img3, imageTitle: "AdGuard" },
4: { image: img4, imageTitle: "DNS66" }
4: { image: img4, imageTitle: "DNS66" },
5: { image: img5, imageTitle: "Nano Adblocker" }
};