mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-18 10:15:41 +00:00
chore: update every 15 minutes
This commit is contained in:
parent
80d293df03
commit
bd2953abfd
@ -14,6 +14,7 @@ import {
|
|||||||
DeleteOutlined,
|
DeleteOutlined,
|
||||||
ExceptionOutlined,
|
ExceptionOutlined,
|
||||||
ExclamationCircleOutlined,
|
ExclamationCircleOutlined,
|
||||||
|
ExclamationOutlined,
|
||||||
FieldTimeOutlined,
|
FieldTimeOutlined,
|
||||||
KeyOutlined,
|
KeyOutlined,
|
||||||
MonitorOutlined,
|
MonitorOutlined,
|
||||||
@ -62,7 +63,7 @@ export function TrackedDomainTable() {
|
|||||||
const notices: ReactElement[] = []
|
const notices: ReactElement[] = []
|
||||||
setDataTable(data['hydra:member'].map((d: Domain) => {
|
setDataTable(data['hydra:member'].map((d: Domain) => {
|
||||||
const expirationDate = d.events.find(e => e.action === 'expiration' && !e.deleted)?.date
|
const expirationDate = d.events.find(e => e.action === 'expiration' && !e.deleted)?.date
|
||||||
const expiresInDays = d.expiresInDays && d.expiresInDays > 0 ? -d.expiresInDays : undefined
|
const expiresInDays = d.expiresInDays !== undefined && d.expiresInDays > 0 ? -d.expiresInDays : undefined
|
||||||
|
|
||||||
if (d.status.includes('redemption period')) {
|
if (d.status.includes('redemption period')) {
|
||||||
if (!notices.includes(REDEMPTION_NOTICE)) notices.push(REDEMPTION_NOTICE)
|
if (!notices.includes(REDEMPTION_NOTICE)) notices.push(REDEMPTION_NOTICE)
|
||||||
@ -138,12 +139,21 @@ export function TrackedDomainTable() {
|
|||||||
</Tooltip>
|
</Tooltip>
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
d.expiresInDays ? <Tooltip title={t`Estimated number of days until WHOIS removal`}>
|
expiresInDays !== undefined ?
|
||||||
<Tag bordered={false}
|
<Tooltip title={t`Estimated number of days until WHOIS removal`}>
|
||||||
color={d.expiresInDays <= 5 ? 'red' : d.expiresInDays <= 35 ? 'orange' : 'default'}>
|
<Tag bordered={false}
|
||||||
{t`J ${expiresInDays}`}
|
color={expiresInDays >= -5 ? 'red' : expiresInDays >= -35 ? 'orange' : 'default'}>
|
||||||
</Tag>
|
{t`J ${expiresInDays}`}
|
||||||
</Tooltip> : undefined
|
</Tag>
|
||||||
|
</Tooltip> : undefined
|
||||||
|
}
|
||||||
|
{
|
||||||
|
d.expiresInDays !== undefined && d.expiresInDays <= 0 ?
|
||||||
|
<Tooltip title={t`Deletion is imminent`}>
|
||||||
|
<Tag bordered={false} color='red'>
|
||||||
|
<ExclamationOutlined/>
|
||||||
|
</Tag>
|
||||||
|
</Tooltip> : undefined
|
||||||
}
|
}
|
||||||
</Flex>
|
</Flex>
|
||||||
}
|
}
|
||||||
|
|||||||
@ -83,9 +83,12 @@ final readonly class UpdateDomainsFromWatchlistHandler
|
|||||||
$this->RDAPService->registerDomain($domain->getLdhName());
|
$this->RDAPService->registerDomain($domain->getLdhName());
|
||||||
$this->bus->dispatch(new SendDomainEventNotif($watchList->getToken(), $domain->getLdhName(), $updatedAt));
|
$this->bus->dispatch(new SendDomainEventNotif($watchList->getToken(), $domain->getLdhName(), $updatedAt));
|
||||||
} catch (NotFoundHttpException) {
|
} catch (NotFoundHttpException) {
|
||||||
$notification = (new DomainDeletedNotification($this->sender, $domain));
|
|
||||||
$this->mailer->send($notification->asEmailMessage(new Recipient($watchList->getUser()->getEmail()))->getMessage());
|
if (!$domain->getDeleted()) {
|
||||||
$this->chatNotificationService->sendChatNotification($watchList, $notification);
|
$notification = (new DomainDeletedNotification($this->sender, $domain));
|
||||||
|
$this->mailer->send($notification->asEmailMessage(new Recipient($watchList->getUser()->getEmail()))->getMessage());
|
||||||
|
$this->chatNotificationService->sendChatNotification($watchList, $notification);
|
||||||
|
}
|
||||||
|
|
||||||
if (null !== $watchList->getConnector()) {
|
if (null !== $watchList->getConnector()) {
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -21,7 +21,7 @@ final readonly class SendNotifWatchListTriggerSchedule implements ScheduleProvid
|
|||||||
{
|
{
|
||||||
return (new Schedule())
|
return (new Schedule())
|
||||||
->add(
|
->add(
|
||||||
RecurringMessage::every('1 hour', new ProcessWatchListsTrigger()),
|
RecurringMessage::every('15 minutes', new ProcessWatchListsTrigger()),
|
||||||
)
|
)
|
||||||
->stateful($this->cache);
|
->stateful($this->cache);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -86,22 +86,22 @@ msgid "Registration"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/search/DomainLifecycleSteps.tsx:24
|
#: assets/components/search/DomainLifecycleSteps.tsx:24
|
||||||
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:132
|
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:133
|
||||||
msgid "Active"
|
msgid "Active"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/search/DomainLifecycleSteps.tsx:29
|
#: assets/components/search/DomainLifecycleSteps.tsx:29
|
||||||
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:110
|
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:111
|
||||||
msgid "Auto-Renew Grace Period"
|
msgid "Auto-Renew Grace Period"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/search/DomainLifecycleSteps.tsx:35
|
#: assets/components/search/DomainLifecycleSteps.tsx:35
|
||||||
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:118
|
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:119
|
||||||
msgid "Redemption Grace Period"
|
msgid "Redemption Grace Period"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/search/DomainLifecycleSteps.tsx:40
|
#: assets/components/search/DomainLifecycleSteps.tsx:40
|
||||||
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:126
|
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:127
|
||||||
msgid "Pending Delete"
|
msgid "Pending Delete"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -113,7 +113,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/search/DomainResult.tsx:64
|
#: assets/components/search/DomainResult.tsx:64
|
||||||
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:88
|
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:89
|
||||||
msgid "Registry Lock"
|
msgid "Registry Lock"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -124,7 +124,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/search/DomainResult.tsx:75
|
#: assets/components/search/DomainResult.tsx:75
|
||||||
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:94
|
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:95
|
||||||
msgid "Registrar Lock"
|
msgid "Registrar Lock"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -135,12 +135,12 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/search/DomainResult.tsx:84
|
#: assets/components/search/DomainResult.tsx:84
|
||||||
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:100
|
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:101
|
||||||
msgid "DNSSEC"
|
msgid "DNSSEC"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/search/DomainResult.tsx:90
|
#: assets/components/search/DomainResult.tsx:90
|
||||||
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:205
|
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:215
|
||||||
msgid "EPP Status Codes"
|
msgid "EPP Status Codes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -166,7 +166,7 @@ msgid "Search"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/Sider.tsx:41
|
#: assets/components/Sider.tsx:41
|
||||||
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:165
|
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:175
|
||||||
msgid "Domain"
|
msgid "Domain"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -438,58 +438,62 @@ msgstr ""
|
|||||||
msgid ".${ tld.tld } Registry"
|
msgid ".${ tld.tld } Registry"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:28
|
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:29
|
||||||
msgid ""
|
msgid ""
|
||||||
"At least one domain name is in redemption period and will potentially be "
|
"At least one domain name is in redemption period and will potentially be "
|
||||||
"deleted soon"
|
"deleted soon"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:36
|
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:37
|
||||||
msgid ""
|
msgid ""
|
||||||
"At least one domain name is pending deletion and will soon become available "
|
"At least one domain name is pending deletion and will soon become available "
|
||||||
"for registration again"
|
"for registration again"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:141
|
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:143
|
||||||
msgid "Estimated number of days until WHOIS removal"
|
msgid "Estimated number of days until WHOIS removal"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:144
|
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:146
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "J ${ expiresInDays }"
|
msgid "J ${ expiresInDays }"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:171
|
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:152
|
||||||
|
msgid "Deletion is imminent"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:181
|
||||||
msgid "Status"
|
msgid "Status"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:177
|
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:187
|
||||||
msgid "Options"
|
msgid "Options"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:183
|
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:193
|
||||||
msgid "Expiration date"
|
msgid "Expiration date"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:197
|
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:207
|
||||||
msgid "Updated at"
|
msgid "Updated at"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:225
|
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:235
|
||||||
msgid "No tracked domain names were found, please create your first Watchlist"
|
msgid "No tracked domain names were found, please create your first Watchlist"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:234
|
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:244
|
||||||
msgid ""
|
msgid ""
|
||||||
"Please note that this table does not include domain names marked as expired "
|
"Please note that this table does not include domain names marked as expired "
|
||||||
"or those with an unknown expiration date"
|
"or those with an unknown expiration date"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:239
|
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:249
|
||||||
msgid "At least one domain name you are tracking requires special attention"
|
msgid "At least one domain name you are tracking requires special attention"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:245
|
#: assets/components/tracking/watchlist/TrackedDomainTable.tsx:255
|
||||||
msgid "The domain names below are subject to special monitoring"
|
msgid "The domain names below are subject to special monitoring"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user