From 4a3745bdd862393787fc20fb473dfc4ebf8f3c85 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Fri, 6 Sep 2019 20:35:42 -0500 Subject: [PATCH] standardize indents at 2 spaces --- src/FilterLists.Web/config-overrides.js | 10 +- src/FilterLists.Web/package.json | 2 +- .../src/components/listsTable/ListDrawer.tsx | 40 ++--- .../src/components/listsTable/arraySorter.ts | 28 +-- .../components/softwareCloud/SoftwareIcon.tsx | 164 +++++++++--------- .../components/softwareCloud/imgs/imgs.d.ts | 8 +- .../components/softwareCloud/imgs/index.ts | 72 ++++---- src/FilterLists.Web/src/hooks/useApiData.tsx | 12 +- .../src/hooks/useLanguages.tsx | 2 +- src/FilterLists.Web/src/hooks/useLicenses.tsx | 2 +- src/FilterLists.Web/src/hooks/useLists.tsx | 8 +- .../src/hooks/useSearchColumnFilter.tsx | 92 +++++----- src/FilterLists.Web/src/hooks/useSoftware.tsx | 2 +- src/FilterLists.Web/src/hooks/useSyntaxes.tsx | 2 +- .../src/hooks/useTablePageSizer.tsx | 22 +-- src/FilterLists.Web/src/hooks/useTags.tsx | 2 +- .../src/interfaces/Language.ts | 8 +- src/FilterLists.Web/src/interfaces/License.ts | 8 +- src/FilterLists.Web/src/interfaces/List.ts | 44 ++--- .../src/interfaces/Software.ts | 10 +- src/FilterLists.Web/src/interfaces/Syntax.ts | 10 +- 21 files changed, 274 insertions(+), 274 deletions(-) diff --git a/src/FilterLists.Web/config-overrides.js b/src/FilterLists.Web/config-overrides.js index 7373d107d..4ae59e980 100644 --- a/src/FilterLists.Web/config-overrides.js +++ b/src/FilterLists.Web/config-overrides.js @@ -1,9 +1,9 @@ const { override, fixBabelImports } = require('customize-cra'); module.exports = override( - fixBabelImports('import', { - libraryName: 'antd', - libraryDirectory: 'es', - style: 'css', - }), + fixBabelImports('import', { + libraryName: 'antd', + libraryDirectory: 'es', + style: 'css', + }), ); \ No newline at end of file diff --git a/src/FilterLists.Web/package.json b/src/FilterLists.Web/package.json index 0ac5bd3ae..31f693811 100644 --- a/src/FilterLists.Web/package.json +++ b/src/FilterLists.Web/package.json @@ -41,4 +41,4 @@ ] }, "devDependencies": {} -} +} \ No newline at end of file diff --git a/src/FilterLists.Web/src/components/listsTable/ListDrawer.tsx b/src/FilterLists.Web/src/components/listsTable/ListDrawer.tsx index cb2bf0c82..ff70f0071 100644 --- a/src/FilterLists.Web/src/components/listsTable/ListDrawer.tsx +++ b/src/FilterLists.Web/src/components/listsTable/ListDrawer.tsx @@ -10,27 +10,27 @@ import { Tag } from '../../interfaces/Tag'; import { ListInfoDrawer } from '../ListInfoDrawer'; interface Props { - lists: List[]; - languages: Language[]; - licenses: License[]; - software: Software[]; - syntaxes: Syntax[]; - tags: Tag[]; + lists: List[]; + languages: Language[]; + licenses: License[]; + software: Software[]; + syntaxes: Syntax[]; + tags: Tag[]; }; export const ListDrawer = (props: Props) => { - const renderDrawer = (rp: RouteComponentProps) => { - const list = props.lists.find(l => l.slug === rp.match.params.listSlug); - return list - ? list.languageIds.includes(l.id))} - license={list.licenseId ? props.licenses.find((l: License) => list.licenseId === l.id) : props.licenses.find((l: License) => l.id === 5)} - software={list.syntaxId ? props.software.filter((s: Software) => s.syntaxIds.includes(list.syntaxId)) : []} - syntax={list.syntaxId ? props.syntaxes.find(s => s.id === list.syntaxId) : undefined} - tags={list.tagIds && props.tags.filter((t: Tag) => list.tagIds.includes(t.id))} - {...rp} /> - : (props.lists && props.lists.length) ? : null; - }; - return ; + const renderDrawer = (rp: RouteComponentProps) => { + const list = props.lists.find(l => l.slug === rp.match.params.listSlug); + return list + ? list.languageIds.includes(l.id))} + license={list.licenseId ? props.licenses.find((l: License) => list.licenseId === l.id) : props.licenses.find((l: License) => l.id === 5)} + software={list.syntaxId ? props.software.filter((s: Software) => s.syntaxIds.includes(list.syntaxId)) : []} + syntax={list.syntaxId ? props.syntaxes.find(s => s.id === list.syntaxId) : undefined} + tags={list.tagIds && props.tags.filter((t: Tag) => list.tagIds.includes(t.id))} + {...rp} /> + : (props.lists && props.lists.length) ? : null; + }; + return ; }; \ No newline at end of file diff --git a/src/FilterLists.Web/src/components/listsTable/arraySorter.ts b/src/FilterLists.Web/src/components/listsTable/arraySorter.ts index e438c34b9..75afb46e2 100644 --- a/src/FilterLists.Web/src/components/listsTable/arraySorter.ts +++ b/src/FilterLists.Web/src/components/listsTable/arraySorter.ts @@ -1,18 +1,18 @@ interface ArraySortableEntity { - id: number; - name: string; + id: number; + name: string; }; export const arraySorter = (a: number[], b: number[], entities: ArraySortableEntity[]) => - a && a.length - ? b && b.length - ? a.length === b.length - ? entities.filter((e: ArraySortableEntity) => a.includes(e.id)).map((e: ArraySortableEntity) => e.name).join().toLowerCase() - > entities.filter((e: ArraySortableEntity) => b.includes(e.id)).map((e: ArraySortableEntity) => e.name).join().toLowerCase() - ? 1 - : -1 - : a.length > b.length - ? -1 - : 1 - : -1 - : 1; \ No newline at end of file + a && a.length + ? b && b.length + ? a.length === b.length + ? entities.filter((e: ArraySortableEntity) => a.includes(e.id)).map((e: ArraySortableEntity) => e.name).join().toLowerCase() + > entities.filter((e: ArraySortableEntity) => b.includes(e.id)).map((e: ArraySortableEntity) => e.name).join().toLowerCase() + ? 1 + : -1 + : a.length > b.length + ? -1 + : 1 + : -1 + : 1; \ No newline at end of file diff --git a/src/FilterLists.Web/src/components/softwareCloud/SoftwareIcon.tsx b/src/FilterLists.Web/src/components/softwareCloud/SoftwareIcon.tsx index b48160bcf..06c0fbeb1 100644 --- a/src/FilterLists.Web/src/components/softwareCloud/SoftwareIcon.tsx +++ b/src/FilterLists.Web/src/components/softwareCloud/SoftwareIcon.tsx @@ -1,97 +1,97 @@ import * as React from 'react'; import { - img01, - img02, - img03, - img04, - img05, - img06, - img07, - img08, - img10, - img11, - img12, - img13, - img14, - img15, - img16, - img17, - img18, - img19, - img20, - img21, - img22, - img23, - img24, - img25, - img26, - img27, - img28, - img29, - img30, - img31, - img32, - img33, - img34, - img35, - img36, - img37 + img01, + img02, + img03, + img04, + img05, + img06, + img07, + img08, + img10, + img11, + img12, + img13, + img14, + img15, + img16, + img17, + img18, + img19, + img20, + img21, + img22, + img23, + img24, + img25, + img26, + img27, + img28, + img29, + img30, + img31, + img32, + img33, + img34, + img35, + img36, + img37 } from './imgs'; interface Props { - id: number; + id: number; }; export const SoftwareIcon = (props: Props) => - icons[props.id] - ? {icons[props.id].imageTitle} - : null; + icons[props.id] + ? {icons[props.id].imageTitle} + : null; interface Icon { - image: any; - imageTitle: string; + image: any; + imageTitle: string; }; const icons: { [id: number]: Icon; } = { - 1: { image: img01, imageTitle: "uBlock Origin" }, - 2: { image: img02, imageTitle: "Adblock Plus" }, - 3: { image: img03, imageTitle: "AdGuard" }, - 4: { image: img04, imageTitle: "DNS66" }, - 5: { image: img05, imageTitle: "Nano Adblocker" }, - 6: { image: img06, imageTitle: "AdBlock" }, - 7: { image: img07, imageTitle: "AdAway" }, - 8: { image: img08, imageTitle: "Personal Blocklist" }, - 10: { image: img10, imageTitle: "Redirector" }, - 11: { image: img11, imageTitle: "Hosts File Editor" }, - 12: { image: img12, imageTitle: "Gas Mask" }, - 13: { image: img13, imageTitle: "MinerBlock" }, - 14: { image: img14, imageTitle: "Pi-hole" }, - 15: { image: img15, imageTitle: "uBlock" }, - 16: { image: img16, imageTitle: "Internet Explorer (TPL)" }, - 17: { image: img17, imageTitle: "Google Hit Hider by Domain" }, - 18: { image: img18, imageTitle: "FireHOL" }, - 19: { image: img19, imageTitle: "Samsung Knox" }, - 20: { image: img20, imageTitle: "Little Snitch" }, - 21: { image: img21, imageTitle: "Privoxy" }, - 22: { image: img22, imageTitle: "Diversion" }, - 23: { image: img23, imageTitle: "dnsmasq" }, - 24: { image: img24, imageTitle: "Slimjet" }, - 25: { image: img25, imageTitle: "uMatrix" }, - 26: { image: img26, imageTitle: "Blokada" }, - 27: { image: img27, imageTitle: "hostsmgr" }, - 28: { image: img28, imageTitle: "personalDNSfilter" }, - 29: { image: img29, imageTitle: "Unbound" }, - 30: { image: img30, imageTitle: "BIND" }, - 31: { image: img31, imageTitle: "AdGuard Home" }, - 32: { image: img32, imageTitle: "AdNauseam" }, - 33: { image: img33, imageTitle: "Legacy Unix derivatives" }, - 34: { image: img34, imageTitle: "Windows command line" }, - 35: { image: img35, imageTitle: "Shadowsocks" }, - 36: { image: img36, imageTitle: "ShadowsocksR" }, - 37: { image: img37, imageTitle: "Shadowrocket" } + 1: { image: img01, imageTitle: "uBlock Origin" }, + 2: { image: img02, imageTitle: "Adblock Plus" }, + 3: { image: img03, imageTitle: "AdGuard" }, + 4: { image: img04, imageTitle: "DNS66" }, + 5: { image: img05, imageTitle: "Nano Adblocker" }, + 6: { image: img06, imageTitle: "AdBlock" }, + 7: { image: img07, imageTitle: "AdAway" }, + 8: { image: img08, imageTitle: "Personal Blocklist" }, + 10: { image: img10, imageTitle: "Redirector" }, + 11: { image: img11, imageTitle: "Hosts File Editor" }, + 12: { image: img12, imageTitle: "Gas Mask" }, + 13: { image: img13, imageTitle: "MinerBlock" }, + 14: { image: img14, imageTitle: "Pi-hole" }, + 15: { image: img15, imageTitle: "uBlock" }, + 16: { image: img16, imageTitle: "Internet Explorer (TPL)" }, + 17: { image: img17, imageTitle: "Google Hit Hider by Domain" }, + 18: { image: img18, imageTitle: "FireHOL" }, + 19: { image: img19, imageTitle: "Samsung Knox" }, + 20: { image: img20, imageTitle: "Little Snitch" }, + 21: { image: img21, imageTitle: "Privoxy" }, + 22: { image: img22, imageTitle: "Diversion" }, + 23: { image: img23, imageTitle: "dnsmasq" }, + 24: { image: img24, imageTitle: "Slimjet" }, + 25: { image: img25, imageTitle: "uMatrix" }, + 26: { image: img26, imageTitle: "Blokada" }, + 27: { image: img27, imageTitle: "hostsmgr" }, + 28: { image: img28, imageTitle: "personalDNSfilter" }, + 29: { image: img29, imageTitle: "Unbound" }, + 30: { image: img30, imageTitle: "BIND" }, + 31: { image: img31, imageTitle: "AdGuard Home" }, + 32: { image: img32, imageTitle: "AdNauseam" }, + 33: { image: img33, imageTitle: "Legacy Unix derivatives" }, + 34: { image: img34, imageTitle: "Windows command line" }, + 35: { image: img35, imageTitle: "Shadowsocks" }, + 36: { image: img36, imageTitle: "ShadowsocksR" }, + 37: { image: img37, imageTitle: "Shadowrocket" } }; \ No newline at end of file diff --git a/src/FilterLists.Web/src/components/softwareCloud/imgs/imgs.d.ts b/src/FilterLists.Web/src/components/softwareCloud/imgs/imgs.d.ts index 1090848f7..7f415fac2 100644 --- a/src/FilterLists.Web/src/components/softwareCloud/imgs/imgs.d.ts +++ b/src/FilterLists.Web/src/components/softwareCloud/imgs/imgs.d.ts @@ -1,9 +1,9 @@ declare module "*.svg" { - const content: any; - export default content; + const content: any; + export default content; } declare module "*.png" { - const content: any; - export default content; + const content: any; + export default content; } \ No newline at end of file diff --git a/src/FilterLists.Web/src/components/softwareCloud/imgs/index.ts b/src/FilterLists.Web/src/components/softwareCloud/imgs/index.ts index 6d65459c3..6a3593408 100644 --- a/src/FilterLists.Web/src/components/softwareCloud/imgs/index.ts +++ b/src/FilterLists.Web/src/components/softwareCloud/imgs/index.ts @@ -36,40 +36,40 @@ import img36 from './36-ShadowsocksR.png'; import img37 from './37-Shadowrocket.png'; export { - img01, - img02, - img03, - img04, - img05, - img06, - img07, - img08, - img10, - img11, - img12, - img13, - img14, - img15, - img16, - img17, - img18, - img19, - img20, - img21, - img22, - img23, - img24, - img25, - img26, - img27, - img28, - img29, - img30, - img31, - img32, - img33, - img34, - img35, - img36, - img37 + img01, + img02, + img03, + img04, + img05, + img06, + img07, + img08, + img10, + img11, + img12, + img13, + img14, + img15, + img16, + img17, + img18, + img19, + img20, + img21, + img22, + img23, + img24, + img25, + img26, + img27, + img28, + img29, + img30, + img31, + img32, + img33, + img34, + img35, + img36, + img37 }; \ No newline at end of file diff --git a/src/FilterLists.Web/src/hooks/useApiData.tsx b/src/FilterLists.Web/src/hooks/useApiData.tsx index 4813771bc..8ff9eb54b 100644 --- a/src/FilterLists.Web/src/hooks/useApiData.tsx +++ b/src/FilterLists.Web/src/hooks/useApiData.tsx @@ -1,10 +1,10 @@ import { useEffect, useState } from 'react'; export const useApiData = (url: string) => { - const [data, setData] = useState(); - useEffect(() => { - const fetchData = async () => (await fetch(url)).json().then(r => setData(r)); - fetchData(); - }, [url]); - return data; + const [data, setData] = useState(); + useEffect(() => { + const fetchData = async () => (await fetch(url)).json().then(r => setData(r)); + fetchData(); + }, [url]); + return data; }; \ No newline at end of file diff --git a/src/FilterLists.Web/src/hooks/useLanguages.tsx b/src/FilterLists.Web/src/hooks/useLanguages.tsx index ed67cd574..bd8a00105 100644 --- a/src/FilterLists.Web/src/hooks/useLanguages.tsx +++ b/src/FilterLists.Web/src/hooks/useLanguages.tsx @@ -2,4 +2,4 @@ import { Language } from '../interfaces/Language'; import { useApiData } from './useApiData'; export const useLanguages = () => (useApiData("/api/v1/languages") || []) - .sort((a: Language, b: Language) => a.name.localeCompare(b.name)); \ No newline at end of file + .sort((a: Language, b: Language) => a.name.localeCompare(b.name)); \ No newline at end of file diff --git a/src/FilterLists.Web/src/hooks/useLicenses.tsx b/src/FilterLists.Web/src/hooks/useLicenses.tsx index 0704ae603..aeb6c5845 100644 --- a/src/FilterLists.Web/src/hooks/useLicenses.tsx +++ b/src/FilterLists.Web/src/hooks/useLicenses.tsx @@ -2,4 +2,4 @@ import { License } from '../interfaces/License'; import { useApiData } from './useApiData'; export const useLicenses = () => (useApiData("/api/v1/licenses") || []) - .sort((a: License, b: License) => a.name.localeCompare(b.name)); \ No newline at end of file + .sort((a: License, b: License) => a.name.localeCompare(b.name)); \ No newline at end of file diff --git a/src/FilterLists.Web/src/hooks/useLists.tsx b/src/FilterLists.Web/src/hooks/useLists.tsx index f01f960ef..65bd8113b 100644 --- a/src/FilterLists.Web/src/hooks/useLists.tsx +++ b/src/FilterLists.Web/src/hooks/useLists.tsx @@ -4,8 +4,8 @@ import { List } from '../interfaces/List'; import { useApiData } from './useApiData'; export const useLists = () => { - const lists = useApiData("/api/v1/lists"); - lists && lists.forEach(l => l.slug = slugify(l.name)); - return (lists || []) - .sort((a: List, b: List) => a.name.localeCompare(b.name)); + const lists = useApiData("/api/v1/lists"); + lists && lists.forEach(l => l.slug = slugify(l.name)); + return (lists || []) + .sort((a: List, b: List) => a.name.localeCompare(b.name)); }; \ No newline at end of file diff --git a/src/FilterLists.Web/src/hooks/useSearchColumnFilter.tsx b/src/FilterLists.Web/src/hooks/useSearchColumnFilter.tsx index e0a3c8480..1b435def0 100644 --- a/src/FilterLists.Web/src/hooks/useSearchColumnFilter.tsx +++ b/src/FilterLists.Web/src/hooks/useSearchColumnFilter.tsx @@ -3,55 +3,55 @@ import { FilterDropdownProps } from 'antd/lib/table'; import React, { useEffect, useState } from 'react'; interface FilterPropsState { - filterDropdown?: React.ReactNode | ((props: FilterDropdownProps) => React.ReactNode); - filterIcon?: React.ReactNode | ((filtered: boolean) => React.ReactNode); - onFilter?: (value: any, record: T) => boolean; + filterDropdown?: React.ReactNode | ((props: FilterDropdownProps) => React.ReactNode); + filterIcon?: React.ReactNode | ((filtered: boolean) => React.ReactNode); + onFilter?: (value: any, record: T) => boolean; } export const useSearchColumnFilter = (dataIndex: string) => { - const [filterProps, setFilterProps] = useState>({ - filterDropdown: undefined, - filterIcon: undefined, - onFilter: undefined - }); - useEffect(() => { - const handleSearch = (confirm?: () => void) => { - confirm && confirm(); - }; - const handleReset = (clearFilters?: (selectedKeys: string[]) => void) => { - clearFilters && clearFilters([]); - }; - setFilterProps({ - filterDropdown: ({ setSelectedKeys, selectedKeys, confirm, clearFilters }) => ( -
- setSelectedKeys && setSelectedKeys(e.target.value ? [e.target.value] : [])} - onPressEnter={() => handleSearch(confirm)} - style={{ width: 188, marginBottom: 8, display: 'block' }} /> - - -
- ), - filterIcon: filtered => , - onFilter: (value, record) => { - const searchValue = (record as any)[dataIndex]; - return searchValue && searchValue.toString().toLowerCase().includes(value.toString().toLowerCase()) - } - }) - }, [dataIndex]); - return filterProps; + + ), + filterIcon: filtered => , + onFilter: (value, record) => { + const searchValue = (record as any)[dataIndex]; + return searchValue && searchValue.toString().toLowerCase().includes(value.toString().toLowerCase()) + } + }) + }, [dataIndex]); + return filterProps; }; \ No newline at end of file diff --git a/src/FilterLists.Web/src/hooks/useSoftware.tsx b/src/FilterLists.Web/src/hooks/useSoftware.tsx index 2e21c1e0c..452871f19 100644 --- a/src/FilterLists.Web/src/hooks/useSoftware.tsx +++ b/src/FilterLists.Web/src/hooks/useSoftware.tsx @@ -2,4 +2,4 @@ import { Software } from '../interfaces/Software'; import { useApiData } from './useApiData'; export const useSoftware = () => (useApiData("/api/v1/software") || []) - .sort((a: Software, b: Software) => a.name.localeCompare(b.name)); \ No newline at end of file + .sort((a: Software, b: Software) => a.name.localeCompare(b.name)); \ No newline at end of file diff --git a/src/FilterLists.Web/src/hooks/useSyntaxes.tsx b/src/FilterLists.Web/src/hooks/useSyntaxes.tsx index 8a61eb92b..e3cd1b3ce 100644 --- a/src/FilterLists.Web/src/hooks/useSyntaxes.tsx +++ b/src/FilterLists.Web/src/hooks/useSyntaxes.tsx @@ -2,4 +2,4 @@ import { Syntax } from '../interfaces/Syntax'; import { useApiData } from './useApiData'; export const useSyntaxes = () => (useApiData("/api/v1/syntaxes") || []) - .sort((a: Syntax, b: Syntax) => a.name.localeCompare(b.name)); \ No newline at end of file + .sort((a: Syntax, b: Syntax) => a.name.localeCompare(b.name)); \ No newline at end of file diff --git a/src/FilterLists.Web/src/hooks/useTablePageSizer.tsx b/src/FilterLists.Web/src/hooks/useTablePageSizer.tsx index b8c8a30bd..b9bb402c2 100644 --- a/src/FilterLists.Web/src/hooks/useTablePageSizer.tsx +++ b/src/FilterLists.Web/src/hooks/useTablePageSizer.tsx @@ -1,21 +1,21 @@ import { useEffect, useState } from 'react'; interface TablePageSize { - pageSize: number; - isNarrowWindow: boolean; + pageSize: number; + isNarrowWindow: boolean; }; export const useTablePageSizer = () => { - const [state, setState] = useState(calculateSize()); - useEffect(() => { - const updatePageSize = () => setState(calculateSize()); - window.addEventListener('resize', updatePageSize); - return () => window.removeEventListener('resize', updatePageSize); - }, []); - return state; + const [state, setState] = useState(calculateSize()); + useEffect(() => { + const updatePageSize = () => setState(calculateSize()); + window.addEventListener('resize', updatePageSize); + return () => window.removeEventListener('resize', updatePageSize); + }, []); + return state; }; const calculateSize = () => ({ - pageSize: Math.floor((window.innerHeight - 208) / 57), - isNarrowWindow: window.innerWidth < 576 ? true : false + pageSize: Math.floor((window.innerHeight - 208) / 57), + isNarrowWindow: window.innerWidth < 576 ? true : false }); \ No newline at end of file diff --git a/src/FilterLists.Web/src/hooks/useTags.tsx b/src/FilterLists.Web/src/hooks/useTags.tsx index 6495c363a..7f5de56e5 100644 --- a/src/FilterLists.Web/src/hooks/useTags.tsx +++ b/src/FilterLists.Web/src/hooks/useTags.tsx @@ -2,4 +2,4 @@ import { Tag } from '../interfaces/Tag'; import { useApiData } from './useApiData'; export const useTags = () => (useApiData("/api/v1/tags") || []) - .sort((a: Tag, b: Tag) => a.name.localeCompare(b.name)); \ No newline at end of file + .sort((a: Tag, b: Tag) => a.name.localeCompare(b.name)); \ No newline at end of file diff --git a/src/FilterLists.Web/src/interfaces/Language.ts b/src/FilterLists.Web/src/interfaces/Language.ts index c453f42a6..8adf69639 100644 --- a/src/FilterLists.Web/src/interfaces/Language.ts +++ b/src/FilterLists.Web/src/interfaces/Language.ts @@ -1,6 +1,6 @@ export interface Language { - id: number; - filterListIds: number[]; - iso6391: string; - name: string; + id: number; + filterListIds: number[]; + iso6391: string; + name: string; }; \ No newline at end of file diff --git a/src/FilterLists.Web/src/interfaces/License.ts b/src/FilterLists.Web/src/interfaces/License.ts index ba223d799..765fd1c51 100644 --- a/src/FilterLists.Web/src/interfaces/License.ts +++ b/src/FilterLists.Web/src/interfaces/License.ts @@ -1,6 +1,6 @@ export interface License { - id: number; - descriptionUrl: string; - filterListIds: number[]; - name: string; + id: number; + descriptionUrl: string; + filterListIds: number[]; + name: string; }; \ No newline at end of file diff --git a/src/FilterLists.Web/src/interfaces/List.ts b/src/FilterLists.Web/src/interfaces/List.ts index f63bf709a..09ae2972e 100644 --- a/src/FilterLists.Web/src/interfaces/List.ts +++ b/src/FilterLists.Web/src/interfaces/List.ts @@ -1,25 +1,25 @@ export interface List { - id: number; - chatUrl: string; - description: string; - descriptionSourceUrl: string; - donateUrl: string; - emailAddress: string; - forumUrl: string; - homeUrl: string; - issuesUrl: string; - languageIds: number[]; - licenseId: number; - maintainerIds: number[]; - name: string; - policyUrl: string; - publishedDate: string; - submissionUrl: string; - syntaxId: number; - tagIds: number[]; - viewUrl: string; - viewUrlMirrors: string[]; + id: number; + chatUrl: string; + description: string; + descriptionSourceUrl: string; + donateUrl: string; + emailAddress: string; + forumUrl: string; + homeUrl: string; + issuesUrl: string; + languageIds: number[]; + licenseId: number; + maintainerIds: number[]; + name: string; + policyUrl: string; + publishedDate: string; + submissionUrl: string; + syntaxId: number; + tagIds: number[]; + viewUrl: string; + viewUrlMirrors: string[]; - // auto-generated by useLists hook - slug: string; + // auto-generated by useLists hook + slug: string; }; \ No newline at end of file diff --git a/src/FilterLists.Web/src/interfaces/Software.ts b/src/FilterLists.Web/src/interfaces/Software.ts index d65d4fdcc..e4582b01d 100644 --- a/src/FilterLists.Web/src/interfaces/Software.ts +++ b/src/FilterLists.Web/src/interfaces/Software.ts @@ -1,7 +1,7 @@ export interface Software { - id: number; - homeUrl: string; - isAbpSubscribable: boolean; - name: string; - syntaxIds: number[]; + id: number; + homeUrl: string; + isAbpSubscribable: boolean; + name: string; + syntaxIds: number[]; }; \ No newline at end of file diff --git a/src/FilterLists.Web/src/interfaces/Syntax.ts b/src/FilterLists.Web/src/interfaces/Syntax.ts index c2eea02d4..35b69000c 100644 --- a/src/FilterLists.Web/src/interfaces/Syntax.ts +++ b/src/FilterLists.Web/src/interfaces/Syntax.ts @@ -1,7 +1,7 @@ export interface Syntax { - id: number; - definitionUrl: string; - filterListIds: number[]; - name: string; - softwareIds: number[]; + id: number; + definitionUrl: string; + filterListIds: number[]; + name: string; + softwareIds: number[]; }; \ No newline at end of file