From f86153049be1a54e8d2317672c9d0a5120b7e82b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Sun, 29 Dec 2024 18:17:58 +0100 Subject: [PATCH] chore: simplify the Watchlist component --- .../tracking/watchlist/WatchlistCard.tsx | 23 ++++++++----------- src/Service/RDAPService.php | 2 +- translations/translations.pot | 8 +++---- 3 files changed, 15 insertions(+), 18 deletions(-) diff --git a/assets/components/tracking/watchlist/WatchlistCard.tsx b/assets/components/tracking/watchlist/WatchlistCard.tsx index 330a571..89a9158 100644 --- a/assets/components/tracking/watchlist/WatchlistCard.tsx +++ b/assets/components/tracking/watchlist/WatchlistCard.tsx @@ -1,4 +1,4 @@ -import {Card, Divider, Space, Table, Tag, Tooltip} from "antd"; +import {Card, Col, Divider, Row, Space, Tag, Tooltip} from "antd"; import {DisconnectOutlined, LinkOutlined} from "@ant-design/icons"; import {t} from "ttag"; import {ViewDiagramWatchlistButton} from "./diagram/ViewDiagramWatchlistButton"; @@ -72,24 +72,21 @@ export function WatchlistCard({watchlist, onUpdateWatchlist, connectors, onDelet } > - ), - events: watchlist.triggers?.filter(t => t.action === 'email') + + + {watchlist.domains.map(d => )} + + + {watchlist.triggers?.filter(t => t.action === 'email') .map(t => {rdapEventNameTranslated[t.event as keyof typeof rdapEventNameTranslated]} - ) - }]} - {...(sm ? {scroll: {y: 'max-content'}} : {scroll: {y: 240}})} - /> + )} + + diff --git a/src/Service/RDAPService.php b/src/Service/RDAPService.php index 3f86429..263afc5 100644 --- a/src/Service/RDAPService.php +++ b/src/Service/RDAPService.php @@ -177,7 +177,7 @@ readonly class RDAPService $tld = strtolower(idn_to_ascii(substr($domain, $lastDotPosition + 1))); $tldEntity = $this->tldRepository->findOneBy(['tld' => $tld]); if (null === $tldEntity) { - throw new NotFoundHttpException("The requested TLD is not yet supported, please try again with another one"); + throw new NotFoundHttpException('The requested TLD is not yet supported, please try again with another one'); } return $tldEntity; diff --git a/translations/translations.pot b/translations/translations.pot index 33bba0d..7a79c12 100644 --- a/translations/translations.pot +++ b/translations/translations.pot @@ -43,7 +43,7 @@ msgstr "" #: assets/components/LoginForm.tsx:62 #: assets/components/RegisterForm.tsx:41 #: assets/components/RegisterForm.tsx:49 -#: assets/components/search/DomainSearchBar.tsx:20 +#: assets/components/search/DomainSearchBar.tsx:21 #: assets/components/tracking/connector/ConnectorForm.tsx:43 #: assets/components/tracking/connector/ConnectorForm.tsx:69 #: assets/components/tracking/connector/ConnectorForm.tsx:77 @@ -109,7 +109,7 @@ msgstr "" msgid "Entities" msgstr "" -#: assets/components/search/DomainSearchBar.tsx:23 +#: assets/components/search/DomainSearchBar.tsx:24 #: assets/components/tracking/watchlist/WatchlistForm.tsx:118 msgid "This domain name does not appear to be valid" msgstr "" @@ -514,11 +514,11 @@ msgstr "" msgid "Sorry, the page you visited does not exist." msgstr "" -#: assets/pages/search/DomainSearchPage.tsx:28 +#: assets/pages/search/DomainSearchPage.tsx:24 msgid "Found !" msgstr "" -#: assets/pages/search/DomainSearchPage.tsx:44 +#: assets/pages/search/DomainSearchPage.tsx:46 msgid "" "Although the domain exists in my database, it has been deleted from the " "WHOIS by its registrar."