From f742992d740041b6ae211d96f9628c3c283f78b3 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 15 Sep 2018 11:46:30 -0500 Subject: [PATCH] refactor Home component --- .../ClientApp/modules/home/Home.tsx | 313 +++--------------- .../ClientApp/modules/home/HomeContainer.tsx | 66 ++++ .../ClientApp/modules/home/ILanguageDto.ts | 4 + .../ClientApp/modules/home/IListDto.ts | 19 ++ .../ClientApp/modules/home/ISoftwareDto.ts | 4 + .../ClientApp/modules/home/ListsTable.tsx | 159 +++++++++ .../ClientApp/modules/home/Tagline.tsx | 15 + .../DetailsExpander.tsx | 0 .../DetailsExpanderContainer.tsx | 0 .../IFilterListDetailsDto.ts | 0 .../LinkButtonGroup.tsx | 0 .../index.ts | 2 +- .../infoCard/Description.tsx | 0 .../infoCard/DiscontinuedDate.tsx | 0 .../infoCard/InfoCard.tsx | 0 .../infoCard/Languages.tsx | 0 .../infoCard/License.tsx | 0 .../infoCard/PublishedDate.tsx | 0 .../infoCard/RuleCount.tsx | 0 .../infoCard/Tag.tsx | 0 .../infoCard/Tags.tsx | 0 .../infoCard/UpdatedDate.tsx | 0 .../infoCard/description.css | 0 .../infoCard/index.ts | 0 .../MaintainerAdditionalLists.tsx | 0 .../MaintainerInfoCard.tsx | 0 .../MaintainerLinkButtonGroup.tsx | 0 .../MaintainersInfoCard.tsx | 0 .../maintainersInfoCard/index.ts | 0 .../modules/home/components/index.ts | 4 +- .../ClientApp/modules/home/index.ts | 4 +- .../modules/home/{home.css => listsTable.css} | 0 32 files changed, 315 insertions(+), 275 deletions(-) create mode 100644 src/FilterLists.Web/ClientApp/modules/home/HomeContainer.tsx create mode 100644 src/FilterLists.Web/ClientApp/modules/home/ILanguageDto.ts create mode 100644 src/FilterLists.Web/ClientApp/modules/home/IListDto.ts create mode 100644 src/FilterLists.Web/ClientApp/modules/home/ISoftwareDto.ts create mode 100644 src/FilterLists.Web/ClientApp/modules/home/ListsTable.tsx create mode 100644 src/FilterLists.Web/ClientApp/modules/home/Tagline.tsx rename src/FilterLists.Web/ClientApp/modules/home/components/{detailsExpanderContainer => detailsExpander}/DetailsExpander.tsx (100%) rename src/FilterLists.Web/ClientApp/modules/home/components/{detailsExpanderContainer => detailsExpander}/DetailsExpanderContainer.tsx (100%) rename src/FilterLists.Web/ClientApp/modules/home/components/{detailsExpanderContainer => detailsExpander}/IFilterListDetailsDto.ts (100%) rename src/FilterLists.Web/ClientApp/modules/home/components/{detailsExpanderContainer => detailsExpander}/LinkButtonGroup.tsx (100%) rename src/FilterLists.Web/ClientApp/modules/home/components/{detailsExpanderContainer => detailsExpander}/index.ts (65%) rename src/FilterLists.Web/ClientApp/modules/home/components/{detailsExpanderContainer => detailsExpander}/infoCard/Description.tsx (100%) rename src/FilterLists.Web/ClientApp/modules/home/components/{detailsExpanderContainer => detailsExpander}/infoCard/DiscontinuedDate.tsx (100%) rename src/FilterLists.Web/ClientApp/modules/home/components/{detailsExpanderContainer => detailsExpander}/infoCard/InfoCard.tsx (100%) rename src/FilterLists.Web/ClientApp/modules/home/components/{detailsExpanderContainer => detailsExpander}/infoCard/Languages.tsx (100%) rename src/FilterLists.Web/ClientApp/modules/home/components/{detailsExpanderContainer => detailsExpander}/infoCard/License.tsx (100%) rename src/FilterLists.Web/ClientApp/modules/home/components/{detailsExpanderContainer => detailsExpander}/infoCard/PublishedDate.tsx (100%) rename src/FilterLists.Web/ClientApp/modules/home/components/{detailsExpanderContainer => detailsExpander}/infoCard/RuleCount.tsx (100%) rename src/FilterLists.Web/ClientApp/modules/home/components/{detailsExpanderContainer => detailsExpander}/infoCard/Tag.tsx (100%) rename src/FilterLists.Web/ClientApp/modules/home/components/{detailsExpanderContainer => detailsExpander}/infoCard/Tags.tsx (100%) rename src/FilterLists.Web/ClientApp/modules/home/components/{detailsExpanderContainer => detailsExpander}/infoCard/UpdatedDate.tsx (100%) rename src/FilterLists.Web/ClientApp/modules/home/components/{detailsExpanderContainer => detailsExpander}/infoCard/description.css (100%) rename src/FilterLists.Web/ClientApp/modules/home/components/{detailsExpanderContainer => detailsExpander}/infoCard/index.ts (100%) rename src/FilterLists.Web/ClientApp/modules/home/components/{detailsExpanderContainer => detailsExpander}/maintainersInfoCard/MaintainerAdditionalLists.tsx (100%) rename src/FilterLists.Web/ClientApp/modules/home/components/{detailsExpanderContainer => detailsExpander}/maintainersInfoCard/MaintainerInfoCard.tsx (100%) rename src/FilterLists.Web/ClientApp/modules/home/components/{detailsExpanderContainer => detailsExpander}/maintainersInfoCard/MaintainerLinkButtonGroup.tsx (100%) rename src/FilterLists.Web/ClientApp/modules/home/components/{detailsExpanderContainer => detailsExpander}/maintainersInfoCard/MaintainersInfoCard.tsx (100%) rename src/FilterLists.Web/ClientApp/modules/home/components/{detailsExpanderContainer => detailsExpander}/maintainersInfoCard/index.ts (100%) rename src/FilterLists.Web/ClientApp/modules/home/{home.css => listsTable.css} (100%) diff --git a/src/FilterLists.Web/ClientApp/modules/home/Home.tsx b/src/FilterLists.Web/ClientApp/modules/home/Home.tsx index 8384620ee..0121f1fe2 100644 --- a/src/FilterLists.Web/ClientApp/modules/home/Home.tsx +++ b/src/FilterLists.Web/ClientApp/modules/home/Home.tsx @@ -1,26 +1,10 @@ import * as React from "react"; -import { RouteComponentProps } from "react-router"; -import "isomorphic-fetch"; -import "../../utils/loader.css"; -import ReactTable from "react-table" -import "react-table/react-table.css" -import "./home.css"; -import * as moment from "moment"; -import { getContrast } from "../../utils/GetContrast"; -import { DetailsExpanderContainer } from "./components"; - -interface IHomeState { - lists: IListDto[]; - loadingLists: boolean; - ruleCount: number; - loadingRuleCount: boolean; - software: ISoftwareDto[]; - loadingSoftware: boolean; - languages: ILanguageDto[]; - loadingLanguages: boolean; - columnVisibility: IColumnVisibility[]; - pageSize: number; -} +import { IListDto } from "./IListDto"; +import { ISoftwareDto } from "./ISoftwareDto"; +import { ILanguageDto } from "./ILanguageDto"; +import { Tagline } from "./Tagline"; +import { ListsTable } from "./ListsTable"; +import { IColumnVisibility } from "./ListsTable"; const columnVisibilityDefaults = [ { column: "Software", visible: true }, @@ -29,74 +13,42 @@ const columnVisibilityDefaults = [ { column: "Updated Date", visible: true } ]; -export class Home extends React.Component, IHomeState> { +interface IProps { + lists: IListDto[]; + ruleCount: number; + software: ISoftwareDto[]; + languages: ILanguageDto[]; +} + +interface IState { + columnVisibility: IColumnVisibility[]; + pageSize: number; +} + +export class Home extends React.Component { constructor(props: any) { super(props); this.state = { - lists: [], - loadingLists: true, - ruleCount: 0, - loadingRuleCount: true, - software: [], - loadingSoftware: true, - languages: [], - loadingLanguages: true, columnVisibility: columnVisibilityDefaults, pageSize: 20 }; this.updatePageSize = this.updatePageSize.bind(this); } - render() { - const contents = this.state.loadingLists || - this.state.loadingRuleCount || - this.state.loadingSoftware || - this.state.loadingLanguages - ?
Loading...
- :
- {Home.renderTagline(this.state)} - {Home.renderFilterListsTable(this.state)} - {this.renderColumnVisibilityCheckboxes()} -
; - return
- {contents} -
; - } - componentDidMount() { this.updatePageSize(); - fetch("https://filterlists.com/api/v1/lists") - .then(response => response.json() as Promise) - .then(data => { - this.setState({ - lists: data, - loadingLists: false - }); - }); - fetch("https://filterlists.com/api/v1/rules") - .then(response => response.json() as Promise) - .then(data => { - this.setState({ - ruleCount: data, - loadingRuleCount: false - }); - }); - fetch("https://filterlists.com/api/v1/software") - .then(response => response.json() as Promise) - .then(data => { - this.setState({ - software: data, - loadingSoftware: false - }); - }); - fetch("https://filterlists.com/api/v1/languages") - .then(response => response.json() as Promise) - .then(data => { - this.setState({ - languages: data, - loadingLanguages: false - }); - }); + } + + render() { + return this.props.lists + ?
+ + + {this.renderColumnVisibilityCheckboxes()} +
+ : null; } updatePageSize() { @@ -105,168 +57,24 @@ export class Home extends React.Component, IHomeState> { }); } - private static renderTagline(state: IHomeState) { - return

- The independent, comprehensive directory of {state.ruleCount.toLocaleString() - } unique rules across {state.lists.length - } filter and host lists for advertisements, trackers, malware, and annoyances. -

; - } - - private static renderFilterListsTable(state: IHomeState) { - return row[filter.id].toUpperCase() - .includes(filter.value.toUpperCase()), - sortMethod: (a: any, b: any) => a.toUpperCase() > b.toUpperCase() ? 1 : -1, - Cell: (cell: any) =>

{cell.value}

, - style: { overflow: "visible" } - }, - { - Header: "Software Support", - accessor: "softwareIds", - filterable: true, - filterMethod: (filter: any, row: any) => { - if (filter.value === "any") { - return true; - } - return row[filter.id].join(",").split(",").includes(filter.value); - }, - Filter: ({ filter, onChange }) => - , - sortable: false, - Cell: () => null, - width: 250, - headerClassName: "d-none d-md-block", - className: "d-none d-md-block", - show: state.columnVisibility.filter((c: IColumnVisibility) => { - return c.column === "Software"; - })[0].visible - }, - { - Header: "Tags", - accessor: "tags", - filterable: true, - filterMethod: (filter: any, row: any) => row[filter.id].map((e: any) => e.name).join() - .toUpperCase().includes(filter.value.toUpperCase()), - sortable: false, - Cell: (cell: any) =>
{cell.value.map( - (e: any) => {e.name})}
, - width: 200, - headerClassName: "d-none d-md-block", - className: "d-none d-md-block", - show: state.columnVisibility.filter((c: IColumnVisibility) => { - return c.column === "Tags"; - })[0].visible - }, - { - Header: "Languages", - accessor: "languages", - filterable: true, - filterMethod: (filter: any, row: any) => { - if (filter.value === "any") { - return true; - } - return row[filter.id].map((x: any) => x.iso6391).includes(filter.value); - }, - Filter: ({ filter, onChange }) => - , - sortable: false, - Cell: (cell: any) =>
{cell.value.map( - (e: any) => {e.iso6391}) - }
, - style: { whiteSpace: "inherit" }, - width: 100, - headerClassName: "d-none d-md-block", - className: "d-none d-md-block", - show: state.columnVisibility.filter((c: IColumnVisibility) => { - return c.column === "Languages"; - })[0].visible - }, - { - Header: "Updated", - accessor: "updatedDate", - filterable: true, - filterMethod: (filter: any, row: any) => row[filter.id].includes(filter.value), - sortMethod: (a: any, b: any) => moment(a).isValid() - ? (moment(b).isValid() ? (moment(a).isBefore(b) ? -1 : 1) : 1) - : -1, - Cell: (cell: any) =>
{moment(cell.value).isValid() - ? moment(cell.value).format("l") - : "N/A"}
, - style: { whiteSpace: "inherit" }, - width: 100, - headerClassName: "d-none d-md-block", - className: "d-none d-md-block", - show: state.columnVisibility.filter((c: IColumnVisibility) => { - return c.column === "Updated Date"; - })[0].visible - }, - { - Header: "Details", - accessor: "id", - sortable: false, - expander: true, - Expander: ({ isExpanded, row }) => -
- {isExpanded - ? - : } -
, - style: { textAlign: "center" }, - width: 90 - } - ]} - SubComponent={(row: any) => { - return ( - - ); - }} - className="-striped -highlight"/>; - } - private renderColumnVisibilityCheckboxes() { return
Visible:  {this.state.columnVisibility.map( - (c: IColumnVisibility) => this.renderColumnVisibilityCheckbox(c))} + (c: IColumnVisibility, i) => this.renderColumnVisibilityCheckbox(c, i))}
; }; - private renderColumnVisibilityCheckbox(props: IColumnVisibility) { - return
- this.checkColumn(props)}/> - + private renderColumnVisibilityCheckbox(props: IColumnVisibility, key: number) { + return
+ this.checkColumn(props)}/> +
; } @@ -285,39 +93,4 @@ export class Home extends React.Component, IHomeState> { } return -1; } -} - -interface ISoftwareDto { - id: number; - name: string; -} - -interface ILanguageDto { - iso6391: string; - name: string; -} - -interface IListDto { - id: number; - name: string; - languages: IListLanguageDto[]; - softwareIds: number[]; - tags: IListTagDto[]; - updatedDate: string; -} - -interface IListLanguageDto { - name: string; - iso6391: string; -} - -interface IListTagDto { - name: string; - colorHex: string; - description: string; -} - -interface IColumnVisibility { - column: string; - visible: boolean; } \ No newline at end of file diff --git a/src/FilterLists.Web/ClientApp/modules/home/HomeContainer.tsx b/src/FilterLists.Web/ClientApp/modules/home/HomeContainer.tsx new file mode 100644 index 000000000..253b78b40 --- /dev/null +++ b/src/FilterLists.Web/ClientApp/modules/home/HomeContainer.tsx @@ -0,0 +1,66 @@ +import * as React from "react"; +import "isomorphic-fetch"; +import { IListDto } from "./IListDto"; +import { ISoftwareDto } from "./ISoftwareDto"; +import { ILanguageDto } from "./ILanguageDto"; +import "../../utils/loader.css"; +import { Home } from "./Home"; + +interface IState { + lists: IListDto[]; + ruleCount: number; + software: ISoftwareDto[]; + languages: ILanguageDto[]; +} + +export class HomeContainer extends React.Component<{}, IState> { + constructor(props: any) { + super(props); + this.state = { + lists: [], + ruleCount: 0, + software: [], + languages: [] + }; + } + + componentDidMount() { + fetch("https://filterlists.com/api/v1/lists") + .then(r => r.json() as Promise) + .then(d => { + this.setState({ + lists: d + }); + }); + fetch("https://filterlists.com/api/v1/rules") + .then(r => r.json() as Promise) + .then(d => { + this.setState({ + ruleCount: d + }); + }); + fetch("https://filterlists.com/api/v1/software") + .then(r => r.json() as Promise) + .then(d => { + this.setState({ + software: d + }); + }); + fetch("https://filterlists.com/api/v1/languages") + .then(r => r.json() as Promise) + .then(d => { + this.setState({ + languages: d + }); + }); + } + + render() { + return this.state.lists.length === 0 || + this.state.ruleCount === 0 || + this.state.software.length === 0 || + this.state.languages.length === 0 + ?
Loading...
+ : ; + } +} \ No newline at end of file diff --git a/src/FilterLists.Web/ClientApp/modules/home/ILanguageDto.ts b/src/FilterLists.Web/ClientApp/modules/home/ILanguageDto.ts new file mode 100644 index 000000000..a5c69134e --- /dev/null +++ b/src/FilterLists.Web/ClientApp/modules/home/ILanguageDto.ts @@ -0,0 +1,4 @@ +export interface ILanguageDto { + iso6391: string; + name: string; +} \ No newline at end of file diff --git a/src/FilterLists.Web/ClientApp/modules/home/IListDto.ts b/src/FilterLists.Web/ClientApp/modules/home/IListDto.ts new file mode 100644 index 000000000..b37ddd476 --- /dev/null +++ b/src/FilterLists.Web/ClientApp/modules/home/IListDto.ts @@ -0,0 +1,19 @@ +export interface IListDto { + id: number; + name: string; + languages: IListLanguageDto[]; + softwareIds: number[]; + tags: IListTagDto[]; + updatedDate: string; +} + +interface IListLanguageDto { + name: string; + iso6391: string; +} + +interface IListTagDto { + name: string; + colorHex: string; + description: string; +} \ No newline at end of file diff --git a/src/FilterLists.Web/ClientApp/modules/home/ISoftwareDto.ts b/src/FilterLists.Web/ClientApp/modules/home/ISoftwareDto.ts new file mode 100644 index 000000000..a4a382910 --- /dev/null +++ b/src/FilterLists.Web/ClientApp/modules/home/ISoftwareDto.ts @@ -0,0 +1,4 @@ +export interface ISoftwareDto { + id: number; + name: string; +} \ No newline at end of file diff --git a/src/FilterLists.Web/ClientApp/modules/home/ListsTable.tsx b/src/FilterLists.Web/ClientApp/modules/home/ListsTable.tsx new file mode 100644 index 000000000..2f70c2d7b --- /dev/null +++ b/src/FilterLists.Web/ClientApp/modules/home/ListsTable.tsx @@ -0,0 +1,159 @@ +import * as React from "react"; +import { IListDto } from "./IListDto"; +import { ISoftwareDto } from "./ISoftwareDto"; +import { ILanguageDto } from "./ILanguageDto"; +import ReactTable from "react-table" +import "react-table/react-table.css" +import "./listsTable.css"; +import * as moment from "moment"; +import { getContrast } from "../../utils/GetContrast"; +import { DetailsExpander } from "./components"; + +export interface IColumnVisibility { + column: string; + visible: boolean; +} + +interface IProps { + lists: IListDto[]; + software: ISoftwareDto[]; + languages: ILanguageDto[]; + columnVisibility: IColumnVisibility[]; + pageSize: number; +} + +export const ListsTable = (props: IProps) => { + return + r[f.id].toUpperCase().includes(f.value.toUpperCase()), + sortMethod: (a: any, b: any) => a.toUpperCase() > b.toUpperCase() ? 1 : -1, + Cell: (c: any) =>

{c.value}

, + style: { overflow: "visible" } + }, + { + Header: "Software Support", + accessor: "softwareIds", + filterable: true, + filterMethod: (f: any, r: any) => + f.value === "any" || r[f.id].join(",").split(",").includes(f.value), + Filter: ({ filter, onChange }) => + , + sortable: false, + Cell: () => null, + width: 250, + headerClassName: "d-none d-md-block", + className: "d-none d-md-block", + show: props.columnVisibility.filter( + (c: IColumnVisibility) => { return c.column === "Software"; })[0].visible + }, + { + Header: "Tags", + accessor: "tags", + filterable: true, + filterMethod: (f: any, r: any) => + r[f.id].map((e: any) => e.name).join().toUpperCase().includes(f.value.toUpperCase()), + sortable: false, + Cell: (c: any) => +
+ {c.value.map((e: any, i: any) => + {e.name} + )} +
, + width: 200, + headerClassName: "d-none d-md-block", + className: "d-none d-md-block", + show: props.columnVisibility.filter( + (c: IColumnVisibility) => { return c.column === "Tags"; })[0].visible + }, + { + Header: "Languages", + accessor: "languages", + filterable: true, + filterMethod: (f: any, r: any) => + f.value === "any" || r[f.id].map((x: any) => x.iso6391).includes(f.value), + Filter: ({ filter, onChange }) => + , + sortable: false, + Cell: (c: any) =>
+ {c.value.map((e: any, i: any) => + {e.iso6391} + )} +
, + style: { whiteSpace: "inherit" }, + width: 100, + headerClassName: "d-none d-md-block", + className: "d-none d-md-block", + show: props.columnVisibility.filter( + (c: IColumnVisibility) => { return c.column === "Languages"; })[0].visible + }, + { + Header: "Updated", + accessor: "updatedDate", + filterable: true, + filterMethod: (f: any, r: any) => r[f.id].includes(f.value), + sortMethod: (a: any, b: any) => + moment(a).isValid() ? (moment(b).isValid() ? (moment(a).isBefore(b) ? -1 : 1) : 1) : -1, + Cell: (c: any) =>
+ {moment(c.value).isValid() ? moment(c.value).format("l") : "N/A"} +
, + style: { whiteSpace: "inherit" }, + width: 100, + headerClassName: "d-none d-md-block", + className: "d-none d-md-block", + show: props.columnVisibility.filter( + (c: IColumnVisibility) => { return c.column === "Updated Date"; })[0].visible + }, + { + Header: "Details", + accessor: "id", + sortable: false, + expander: true, + Expander: ({ isExpanded, row }) => +
+ {isExpanded + ? + : } +
, + style: { textAlign: "center" }, + width: 90 + } + ]} + SubComponent={(r: any) => } + className="-striped -highlight"/>; +}; \ No newline at end of file diff --git a/src/FilterLists.Web/ClientApp/modules/home/Tagline.tsx b/src/FilterLists.Web/ClientApp/modules/home/Tagline.tsx new file mode 100644 index 000000000..d68205090 --- /dev/null +++ b/src/FilterLists.Web/ClientApp/modules/home/Tagline.tsx @@ -0,0 +1,15 @@ +import * as React from "react"; + +interface IProps { + ruleCount: number, + listCount: number; +} + +export const Tagline = (props: IProps) => { + return

+ The independent, comprehensive directory of {props.ruleCount.toLocaleString() + } unique rules across { + props.listCount.toLocaleString() + } filter and host lists for advertisements, trackers, malware, and annoyances. +

; +}; \ No newline at end of file diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/DetailsExpander.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/DetailsExpander.tsx similarity index 100% rename from src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/DetailsExpander.tsx rename to src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/DetailsExpander.tsx diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/DetailsExpanderContainer.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/DetailsExpanderContainer.tsx similarity index 100% rename from src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/DetailsExpanderContainer.tsx rename to src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/DetailsExpanderContainer.tsx diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/IFilterListDetailsDto.ts b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/IFilterListDetailsDto.ts similarity index 100% rename from src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/IFilterListDetailsDto.ts rename to src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/IFilterListDetailsDto.ts diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/LinkButtonGroup.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/LinkButtonGroup.tsx similarity index 100% rename from src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/LinkButtonGroup.tsx rename to src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/LinkButtonGroup.tsx diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/index.ts b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/index.ts similarity index 65% rename from src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/index.ts rename to src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/index.ts index 46cf29787..4e47d6e8d 100644 --- a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/index.ts +++ b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/index.ts @@ -1,5 +1,5 @@ import { DetailsExpanderContainer } from "./DetailsExpanderContainer"; export { - DetailsExpanderContainer + DetailsExpanderContainer as DetailsExpander }; \ No newline at end of file diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/Description.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/Description.tsx similarity index 100% rename from src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/Description.tsx rename to src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/Description.tsx diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/DiscontinuedDate.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/DiscontinuedDate.tsx similarity index 100% rename from src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/DiscontinuedDate.tsx rename to src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/DiscontinuedDate.tsx diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/InfoCard.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/InfoCard.tsx similarity index 100% rename from src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/InfoCard.tsx rename to src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/InfoCard.tsx diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/Languages.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/Languages.tsx similarity index 100% rename from src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/Languages.tsx rename to src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/Languages.tsx diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/License.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/License.tsx similarity index 100% rename from src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/License.tsx rename to src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/License.tsx diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/PublishedDate.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/PublishedDate.tsx similarity index 100% rename from src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/PublishedDate.tsx rename to src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/PublishedDate.tsx diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/RuleCount.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/RuleCount.tsx similarity index 100% rename from src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/RuleCount.tsx rename to src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/RuleCount.tsx diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/Tag.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/Tag.tsx similarity index 100% rename from src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/Tag.tsx rename to src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/Tag.tsx diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/Tags.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/Tags.tsx similarity index 100% rename from src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/Tags.tsx rename to src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/Tags.tsx diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/UpdatedDate.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/UpdatedDate.tsx similarity index 100% rename from src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/UpdatedDate.tsx rename to src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/UpdatedDate.tsx diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/description.css b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/description.css similarity index 100% rename from src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/description.css rename to src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/description.css diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/index.ts b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/index.ts similarity index 100% rename from src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/infoCard/index.ts rename to src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/index.ts diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/maintainersInfoCard/MaintainerAdditionalLists.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/maintainersInfoCard/MaintainerAdditionalLists.tsx similarity index 100% rename from src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/maintainersInfoCard/MaintainerAdditionalLists.tsx rename to src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/maintainersInfoCard/MaintainerAdditionalLists.tsx diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/maintainersInfoCard/MaintainerInfoCard.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/maintainersInfoCard/MaintainerInfoCard.tsx similarity index 100% rename from src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/maintainersInfoCard/MaintainerInfoCard.tsx rename to src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/maintainersInfoCard/MaintainerInfoCard.tsx diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/maintainersInfoCard/MaintainerLinkButtonGroup.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/maintainersInfoCard/MaintainerLinkButtonGroup.tsx similarity index 100% rename from src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/maintainersInfoCard/MaintainerLinkButtonGroup.tsx rename to src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/maintainersInfoCard/MaintainerLinkButtonGroup.tsx diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/maintainersInfoCard/MaintainersInfoCard.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/maintainersInfoCard/MaintainersInfoCard.tsx similarity index 100% rename from src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/maintainersInfoCard/MaintainersInfoCard.tsx rename to src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/maintainersInfoCard/MaintainersInfoCard.tsx diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/maintainersInfoCard/index.ts b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/maintainersInfoCard/index.ts similarity index 100% rename from src/FilterLists.Web/ClientApp/modules/home/components/detailsExpanderContainer/maintainersInfoCard/index.ts rename to src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/maintainersInfoCard/index.ts diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/index.ts b/src/FilterLists.Web/ClientApp/modules/home/components/index.ts index b2e0f87ca..0bfa78841 100644 --- a/src/FilterLists.Web/ClientApp/modules/home/components/index.ts +++ b/src/FilterLists.Web/ClientApp/modules/home/components/index.ts @@ -1,5 +1,5 @@ -import { DetailsExpanderContainer } from "./detailsExpanderContainer"; +import { DetailsExpander } from "./detailsExpander"; export { - DetailsExpanderContainer + DetailsExpander }; \ No newline at end of file diff --git a/src/FilterLists.Web/ClientApp/modules/home/index.ts b/src/FilterLists.Web/ClientApp/modules/home/index.ts index d22a41187..f53b5d5c0 100644 --- a/src/FilterLists.Web/ClientApp/modules/home/index.ts +++ b/src/FilterLists.Web/ClientApp/modules/home/index.ts @@ -1,5 +1,5 @@ -import { Home } from "./Home"; +import { HomeContainer } from "./HomeContainer"; export { - Home + HomeContainer as Home }; \ No newline at end of file diff --git a/src/FilterLists.Web/ClientApp/modules/home/home.css b/src/FilterLists.Web/ClientApp/modules/home/listsTable.css similarity index 100% rename from src/FilterLists.Web/ClientApp/modules/home/home.css rename to src/FilterLists.Web/ClientApp/modules/home/listsTable.css