diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/IListDetails.ts b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/IListDetails.ts
index e1c4f368f..dbcf23a88 100644
--- a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/IListDetails.ts
+++ b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/IListDetails.ts
@@ -1,4 +1,4 @@
-import { ILanguage, IMaintainer, ITag } from "../../interfaces";
+import { ILanguage, IMaintainer, ISyntax, ITag } from "../../interfaces";
export interface IListDetails {
id: number;
@@ -12,33 +12,15 @@ export interface IListDetails {
homeUrl: string;
issuesUrl: string;
languages: ILanguage[];
- license: IListLicense;
maintainers: IMaintainer[];
name: string;
policyUrl: string;
publishedDate: string;
ruleCount: number;
submissionUrl: string;
- syntax: IListSyntax;
+ syntax: ISyntax;
tags: ITag[];
updatedDate: string;
viewUrl: string;
viewUrlMirrors: string[];
-};
-
-export interface IListLicense {
- descriptionUrl: string;
- name: string;
-};
-
-export interface IListSyntax {
- definitionUrl: string;
- name: string;
- supportedSoftware: ISyntaxSupportedSoftware[];
-};
-
-export interface ISyntaxSupportedSoftware {
- homeUrl: string;
- id: number;
- name: string;
};
\ No newline at end of file
diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/InfoCard.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/InfoCard.tsx
index 6be473113..11d04f630 100644
--- a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/InfoCard.tsx
+++ b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/InfoCard.tsx
@@ -1,11 +1,9 @@
import * as React from "react";
import { IColumnVisibility } from "../../../interfaces";
-import { IListLicense, IListSyntax, ISyntaxSupportedSoftware } from "../IListDetails";
-import { ILanguage, ITag } from "../../../interfaces";
+import { ILanguage, ISoftware, ISyntax, ITag } from "../../../interfaces";
import { Description } from "./Description";
import { DiscontinuedDate } from "./DiscontinuedDate";
import { Languages } from "./Languages";
-import { License } from "./License";
import { PublishedDate } from "./PublishedDate";
import { RuleCount } from "./RuleCount";
import { SoftwareIcon } from "../../softwareIcon";
@@ -19,11 +17,11 @@ interface IProps {
descriptionSourceUrl: string;
discontinuedDate: string;
languages: ILanguage[];
- license: IListLicense;
name: string;
publishedDate: string;
ruleCount: number;
- syntax: IListSyntax;
+ software: ISoftware[];
+ syntax: ISyntax;
tags: ITag[];
updatedDate: string;
};
@@ -34,13 +32,12 @@ export const InfoCard = (props: IProps) =>
? null
:
}
- {props.syntax
- ? props.syntax.supportedSoftware.map(
- (s: ISyntaxSupportedSoftware, i: number) =>
-
-
- )
- : null}
+ {props.columnVisibility.filter((c: IColumnVisibility) => c.column === "Software")[0].visible
+ ? null
+ : props.syntax
+ ? props.software.filter((s: ISoftware) => s.syntaxIds.indexOf(props.syntax.id) > -1)
+ .map((s: ISoftware, i: number) =>
)
+ : null}
@@ -54,6 +51,6 @@ export const InfoCard = (props: IProps) =>
: }
-
+ { /**/ }
;
\ No newline at end of file
diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/License.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/License.tsx
index 2a5846b59..4bf26f4c1 100644
--- a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/License.tsx
+++ b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/License.tsx
@@ -1,7 +1,6 @@
import * as React from "react";
-import { IListLicense as IListLicenseDto } from "../IListDetails";
-export const License = (props: IListLicenseDto) =>
+export const License = (props: any) =>
props.name
? (props.descriptionUrl
?