chore: reformat code

This commit is contained in:
Maël Gangloff
2024-07-31 12:37:43 +02:00
parent edefe53208
commit fc51f65f3b
7 changed files with 94 additions and 92 deletions

View File

@@ -1,4 +1,4 @@
import {Card, Divider, Popconfirm, Typography, theme} from "antd"; import {Card, Divider, Popconfirm, theme, Typography} from "antd";
import {t} from "ttag"; import {t} from "ttag";
import {deleteWatchlist, EventAction} from "../../utils/api"; import {deleteWatchlist, EventAction} from "../../utils/api";
import {DeleteFilled} from "@ant-design/icons"; import {DeleteFilled} from "@ant-design/icons";

View File

@@ -41,7 +41,8 @@ export default function DomainSearchPage() {
domain.tld.type === 'gTLD' ? "green" domain.tld.type === 'gTLD' ? "green"
: "cyan" : "cyan"
}> }>
<Card title={<>{domain.ldhName}{domain.handle ? <> (<Text code>{domain.handle}</Text>)</>: undefined}</>} <Card title={<>{domain.ldhName}{domain.handle ? <> (<Text
code>{domain.handle}</Text>)</> : undefined}</>}
size="small"> size="small">
{domain.status.length > 0 && {domain.status.length > 0 &&
<> <>

View File

@@ -1,5 +1,5 @@
import React, {useEffect, useState} from "react"; import React, {useEffect, useState} from "react";
import {Card, Divider, Flex, Form, message, Skeleton} from "antd"; import {Card, Divider, Flex, Form, message} from "antd";
import {EventAction, getWatchlists, postWatchlist} from "../../utils/api"; import {EventAction, getWatchlists, postWatchlist} from "../../utils/api";
import {AxiosError} from "axios"; import {AxiosError} from "axios";
import {t} from 'ttag' import {t} from 'ttag'
@@ -67,7 +67,8 @@ export default function WatchlistPage() {
<Divider/> <Divider/>
<Card size="small" loading={!watchlists} title={t`My Watchlists`} style={{width: '100%'}}> <Card size="small" loading={!watchlists} title={t`My Watchlists`} style={{width: '100%'}}>
{watchlists && watchlists.length > 0 && <WatchlistsList watchlists={watchlists} onDelete={refreshWatchlists}/>} {watchlists && watchlists.length > 0 &&
<WatchlistsList watchlists={watchlists} onDelete={refreshWatchlists}/>}
</Card> </Card>
</Flex> </Flex>
} }

View File

@@ -3,47 +3,47 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n" "Content-Type: text/plain; charset=utf-8\n"
"Plural-Forms: nplurals=2; plural=(n!=1);\n" "Plural-Forms: nplurals=2; plural=(n!=1);\n"
#: assets/components/search/EventTimeline.tsx:17 #: assets/components/search/EventTimeline.tsx:19
msgid "Registration" msgid "Registration"
msgstr "" msgstr ""
#: assets/components/search/EventTimeline.tsx:18 #: assets/components/search/EventTimeline.tsx:20
msgid "Reregistration" msgid "Reregistration"
msgstr "" msgstr ""
#: assets/components/search/EventTimeline.tsx:19 #: assets/components/search/EventTimeline.tsx:21
msgid "Last changed" msgid "Last changed"
msgstr "" msgstr ""
#: assets/components/search/EventTimeline.tsx:20 #: assets/components/search/EventTimeline.tsx:22
msgid "Expiration" msgid "Expiration"
msgstr "" msgstr ""
#: assets/components/search/EventTimeline.tsx:21 #: assets/components/search/EventTimeline.tsx:23
msgid "Deletion" msgid "Deletion"
msgstr "" msgstr ""
#: assets/components/search/EventTimeline.tsx:22 #: assets/components/search/EventTimeline.tsx:24
msgid "Reinstantiation" msgid "Reinstantiation"
msgstr "" msgstr ""
#: assets/components/search/EventTimeline.tsx:23 #: assets/components/search/EventTimeline.tsx:25
msgid "Transfer" msgid "Transfer"
msgstr "" msgstr ""
#: assets/components/search/EventTimeline.tsx:24 #: assets/components/search/EventTimeline.tsx:26
msgid "Locked" msgid "Locked"
msgstr "" msgstr ""
#: assets/components/search/EventTimeline.tsx:25 #: assets/components/search/EventTimeline.tsx:27
msgid "Unlocked" msgid "Unlocked"
msgstr "" msgstr ""
#: assets/components/search/EventTimeline.tsx:26 #: assets/components/search/EventTimeline.tsx:28
msgid "Registrar expiration" msgid "Registrar expiration"
msgstr "" msgstr ""
#: assets/components/search/EventTimeline.tsx:27 #: assets/components/search/EventTimeline.tsx:29
msgid "ENUM validation expiration" msgid "ENUM validation expiration"
msgstr "" msgstr ""
@@ -162,7 +162,7 @@ msgid "Domain names"
msgstr "" msgstr ""
#: assets/components/tracking/WatchlistForm.tsx:119 #: assets/components/tracking/WatchlistForm.tsx:119
#: assets/components/tracking/WatchlistsList.tsx:22 #: assets/components/tracking/WatchlistsList.tsx:28
msgid "Domain name" msgid "Domain name"
msgstr "" msgstr ""
@@ -191,17 +191,17 @@ msgid "Add a Trigger"
msgstr "" msgstr ""
#: assets/components/tracking/WatchlistForm.tsx:210 #: assets/components/tracking/WatchlistForm.tsx:210
#: assets/components/tracking/WatchlistForm.tsx:216 #: assets/components/tracking/WatchlistForm.tsx:223
msgid "Connector" msgid "Connector"
msgstr "" msgstr ""
#: assets/components/tracking/ConnectorForm.tsx:131 #: assets/components/tracking/ConnectorForm.tsx:131
#: assets/components/tracking/WatchlistForm.tsx:228 #: assets/components/tracking/WatchlistForm.tsx:235
msgid "Create" msgid "Create"
msgstr "" msgstr ""
#: assets/components/tracking/ConnectorForm.tsx:134 #: assets/components/tracking/ConnectorForm.tsx:134
#: assets/components/tracking/WatchlistForm.tsx:231 #: assets/components/tracking/WatchlistForm.tsx:238
msgid "Reset" msgid "Reset"
msgstr "" msgstr ""
@@ -256,30 +256,29 @@ msgid ""
"names via the Provider's API" "names via the Provider's API"
msgstr "" msgstr ""
#: assets/components/tracking/WatchlistsList.tsx:14 #: assets/components/tracking/WatchlistsList.tsx:18
#, javascript-format msgid "Watchlist"
msgid "Watchlist ${ watchlist.token }"
msgstr "" msgstr ""
#: assets/components/tracking/WatchlistsList.tsx:15 #: assets/components/tracking/WatchlistsList.tsx:19
msgid "Delete the Watchlist" msgid "Delete the Watchlist"
msgstr "" msgstr ""
#: assets/components/tracking/WatchlistsList.tsx:16 #: assets/components/tracking/WatchlistsList.tsx:20
msgid "Are you sure to delete this Watchlist?" msgid "Are you sure to delete this Watchlist?"
msgstr "" msgstr ""
#: assets/components/tracking/ConnectorsList.tsx:17 #: assets/components/tracking/ConnectorsList.tsx:17
#: assets/components/tracking/WatchlistsList.tsx:18 #: assets/components/tracking/WatchlistsList.tsx:22
msgid "Yes" msgid "Yes"
msgstr "" msgstr ""
#: assets/components/tracking/ConnectorsList.tsx:18 #: assets/components/tracking/ConnectorsList.tsx:18
#: assets/components/tracking/WatchlistsList.tsx:19 #: assets/components/tracking/WatchlistsList.tsx:23
msgid "No" msgid "No"
msgstr "" msgstr ""
#: assets/components/tracking/WatchlistsList.tsx:26 #: assets/components/tracking/WatchlistsList.tsx:32
msgid "Domain triggers" msgid "Domain triggers"
msgstr "" msgstr ""
@@ -296,62 +295,63 @@ msgstr ""
msgid "Are you sure to delete this Connector?" msgid "Are you sure to delete this Connector?"
msgstr "" msgstr ""
#: assets/pages/search/DomainSearchPage.tsx:19 #: assets/pages/search/DomainSearchPage.tsx:20
msgid "Found !" msgid "Found !"
msgstr "" msgstr ""
#: assets/pages/search/DomainSearchPage.tsx:23 #: assets/pages/search/DomainSearchPage.tsx:24
#: assets/pages/tracking/ConnectorsPage.tsx:23 #: assets/pages/tracking/ConnectorsPage.tsx:23
#: assets/pages/tracking/ConnectorsPage.tsx:31 #: assets/pages/tracking/ConnectorsPage.tsx:31
#: assets/pages/tracking/WatchlistPage.tsx:36 #: assets/pages/tracking/WatchlistPage.tsx:36
#: assets/pages/tracking/WatchlistPage.tsx:44 #: assets/pages/tracking/WatchlistPage.tsx:44
#: assets/pages/tracking/WatchlistPage.tsx:54
msgid "An error occurred" msgid "An error occurred"
msgstr "" msgstr ""
#: assets/pages/search/DomainSearchPage.tsx:28 #: assets/pages/search/DomainSearchPage.tsx:29
msgid "Domain finder" msgid "Domain finder"
msgstr "" msgstr ""
#: assets/pages/search/DomainSearchPage.tsx:47 #: assets/pages/search/DomainSearchPage.tsx:49
msgid "EPP Status Codes" msgid "EPP Status Codes"
msgstr "" msgstr ""
#: assets/pages/search/DomainSearchPage.tsx:57 #: assets/pages/search/DomainSearchPage.tsx:59
msgid "Timeline" msgid "Timeline"
msgstr "" msgstr ""
#: assets/pages/search/DomainSearchPage.tsx:62 #: assets/pages/search/DomainSearchPage.tsx:64
msgid "Entities" msgid "Entities"
msgstr "" msgstr ""
#: assets/pages/search/DomainSearchPage.tsx:70 #: assets/pages/search/DomainSearchPage.tsx:72
msgid "" msgid ""
"Although the domain exists in my database, it has been deleted from the " "Although the domain exists in my database, it has been deleted from the "
"WHOIS by its registrar." "WHOIS by its registrar."
msgstr "" msgstr ""
#: assets/App.tsx:114 #: assets/App.tsx:116
#: assets/pages/info/TldPage.tsx:62 #: assets/pages/info/TldPage.tsx:78
msgid "TLD" msgid "TLD"
msgstr "" msgstr ""
#: assets/pages/info/TldPage.tsx:69 #: assets/pages/info/TldPage.tsx:84
msgid "Flag" msgid "Flag"
msgstr "" msgstr ""
#: assets/pages/info/TldPage.tsx:73 #: assets/pages/info/TldPage.tsx:87
msgid "Country" msgid "Country"
msgstr "" msgstr ""
#: assets/pages/info/TldPage.tsx:79 #: assets/pages/info/TldPage.tsx:92
msgid "Registry Operator" msgid "Registry Operator"
msgstr "" msgstr ""
#: assets/pages/info/TldPage.tsx:104 #: assets/pages/info/TldPage.tsx:119
msgid "This page presents all active TLDs in the root zone database." msgid "This page presents all active TLDs in the root zone database."
msgstr "" msgstr ""
#: assets/pages/info/TldPage.tsx:107 #: assets/pages/info/TldPage.tsx:122
msgid "" msgid ""
"IANA provides the list of currently active TLDs, regardless of their type, " "IANA provides the list of currently active TLDs, regardless of their type, "
"and ICANN provides the list of gTLDs.\n" "and ICANN provides the list of gTLDs.\n"
@@ -363,48 +363,48 @@ msgid ""
"At the same time, the list of root RDAP servers is updated." "At the same time, the list of root RDAP servers is updated."
msgstr "" msgstr ""
#: assets/pages/info/TldPage.tsx:118 #: assets/pages/info/TldPage.tsx:133
msgid "Sponsored Top-Level-Domains" msgid "Sponsored Top-Level-Domains"
msgstr "" msgstr ""
#: assets/pages/info/TldPage.tsx:120 #: assets/pages/info/TldPage.tsx:135
msgid "" msgid ""
"Top-level domains sponsored by specific organizations that set rules for " "Top-level domains sponsored by specific organizations that set rules for "
"registration and use, often related to particular interest groups or " "registration and use, often related to particular interest groups or "
"industries." "industries."
msgstr "" msgstr ""
#: assets/pages/info/TldPage.tsx:127 #: assets/pages/info/TldPage.tsx:142
msgid "Generic Top-Level-Domains" msgid "Generic Top-Level-Domains"
msgstr "" msgstr ""
#: assets/pages/info/TldPage.tsx:129 #: assets/pages/info/TldPage.tsx:144
msgid "" msgid ""
"Generic top-level domains open to everyone, not restricted by specific " "Generic top-level domains open to everyone, not restricted by specific "
"criteria, representing various themes or industries." "criteria, representing various themes or industries."
msgstr "" msgstr ""
#: assets/pages/info/TldPage.tsx:136 #: assets/pages/info/TldPage.tsx:151
msgid "Brand Generic Top-Level-Domains" msgid "Brand Generic Top-Level-Domains"
msgstr "" msgstr ""
#: assets/pages/info/TldPage.tsx:138 #: assets/pages/info/TldPage.tsx:153
msgid "" msgid ""
"Generic top-level domains associated with specific brands, allowing " "Generic top-level domains associated with specific brands, allowing "
"companies to use their own brand names as domains." "companies to use their own brand names as domains."
msgstr "" msgstr ""
#: assets/pages/info/TldPage.tsx:145 #: assets/pages/info/TldPage.tsx:160
msgid "Country-Code Top-Level-Domains" msgid "Country-Code Top-Level-Domains"
msgstr "" msgstr ""
#: assets/pages/info/TldPage.tsx:147 #: assets/pages/info/TldPage.tsx:162
msgid "" msgid ""
"Top-level domains based on country codes, identifying websites according to " "Top-level domains based on country codes, identifying websites according to "
"their country of origin." "their country of origin."
msgstr "" msgstr ""
#: assets/App.tsx:157 #: assets/App.tsx:159
#: assets/pages/watchdog/UserPage.tsx:16 #: assets/pages/watchdog/UserPage.tsx:16
msgid "My Account" msgid "My Account"
msgstr "" msgstr ""
@@ -426,7 +426,7 @@ msgstr ""
msgid "Create a Connector" msgid "Create a Connector"
msgstr "" msgstr ""
#: assets/App.tsx:143 #: assets/App.tsx:145
#: assets/pages/tracking/ConnectorsPage.tsx:48 #: assets/pages/tracking/ConnectorsPage.tsx:48
msgid "My Connectors" msgid "My Connectors"
msgstr "" msgstr ""
@@ -435,12 +435,12 @@ msgstr ""
msgid "Watchlist created !" msgid "Watchlist created !"
msgstr "" msgstr ""
#: assets/pages/tracking/WatchlistPage.tsx:54 #: assets/pages/tracking/WatchlistPage.tsx:59
msgid "Create a Watchlist" msgid "Create a Watchlist"
msgstr "" msgstr ""
#: assets/App.tsx:136 #: assets/App.tsx:138
#: assets/pages/tracking/WatchlistPage.tsx:64 #: assets/pages/tracking/WatchlistPage.tsx:69
msgid "My Watchlists" msgid "My Watchlists"
msgstr "" msgstr ""
@@ -448,7 +448,7 @@ msgstr ""
msgid "Sorry, the page you visited does not exist." msgid "Sorry, the page you visited does not exist."
msgstr "" msgstr ""
#: assets/App.tsx:202 #: assets/App.tsx:205
#: assets/pages/LoginPage.tsx:31 #: assets/pages/LoginPage.tsx:31
msgid "Log in" msgid "Log in"
msgstr "" msgstr ""
@@ -505,70 +505,70 @@ msgid ""
"another" "another"
msgstr "" msgstr ""
#: assets/App.tsx:71 #: assets/App.tsx:73
msgid "Home" msgid "Home"
msgstr "" msgstr ""
#: assets/App.tsx:77 #: assets/App.tsx:79
msgid "Search" msgid "Search"
msgstr "" msgstr ""
#: assets/App.tsx:83 #: assets/App.tsx:85
msgid "Domain" msgid "Domain"
msgstr "" msgstr ""
#: assets/App.tsx:84 #: assets/App.tsx:86
msgid "Domain Finder" msgid "Domain Finder"
msgstr "" msgstr ""
#: assets/App.tsx:91 #: assets/App.tsx:93
msgid "Entity" msgid "Entity"
msgstr "" msgstr ""
#: assets/App.tsx:92 #: assets/App.tsx:94
msgid "Entity Finder" msgid "Entity Finder"
msgstr "" msgstr ""
#: assets/App.tsx:99 #: assets/App.tsx:101
msgid "Nameserver" msgid "Nameserver"
msgstr "" msgstr ""
#: assets/App.tsx:100 #: assets/App.tsx:102
msgid "Nameserver Finder" msgid "Nameserver Finder"
msgstr "" msgstr ""
#: assets/App.tsx:108 #: assets/App.tsx:110
msgid "Information" msgid "Information"
msgstr "" msgstr ""
#: assets/App.tsx:115 #: assets/App.tsx:117
msgid "TLD list" msgid "TLD list"
msgstr "" msgstr ""
#: assets/App.tsx:122 #: assets/App.tsx:124
msgid "Statistics" msgid "Statistics"
msgstr "" msgstr ""
#: assets/App.tsx:130 #: assets/App.tsx:132
msgid "Tracking" msgid "Tracking"
msgstr "" msgstr ""
#: assets/App.tsx:151 #: assets/App.tsx:153
msgid "My Watchdog" msgid "My Watchdog"
msgstr "" msgstr ""
#: assets/App.tsx:164 #: assets/App.tsx:166
msgid "TOS" msgid "TOS"
msgstr "" msgstr ""
#: assets/App.tsx:170 #: assets/App.tsx:172
msgid "Privacy Policy" msgid "Privacy Policy"
msgstr "" msgstr ""
#: assets/App.tsx:178 #: assets/App.tsx:180
msgid "FAQ" msgid "FAQ"
msgstr "" msgstr ""
#: assets/App.tsx:196 #: assets/App.tsx:199
msgid "Log out" msgid "Log out"
msgstr "" msgstr ""