mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
chore: merge master
This commit is contained in:
@@ -7,6 +7,7 @@ import {DomainSearchBar, FieldType} from "../../components/search/DomainSearchBa
|
||||
import {EventTimeline} from "../../components/search/EventTimeline";
|
||||
import {EntitiesList} from "../../components/search/EntitiesList";
|
||||
import {showErrorAPI} from "../../utils";
|
||||
import {DomainDiagram} from "../../components/search/DomainDiagram";
|
||||
|
||||
const {Text} = Typography;
|
||||
|
||||
@@ -68,6 +69,7 @@ export default function DomainSearchPage() {
|
||||
}
|
||||
</Card>
|
||||
</Badge.Ribbon>
|
||||
<DomainDiagram domain={domain}/>
|
||||
</Space>
|
||||
: <Empty
|
||||
description={t`Although the domain exists in my database, it has been deleted from the WHOIS by its registrar.`}/>)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, {useEffect, useState} from "react";
|
||||
import {Card, Divider, Flex, Form, message} from "antd";
|
||||
import {EventAction, getWatchlists, putWatchlist, postWatchlist} from "../../utils/api";
|
||||
import {EventAction, getWatchlists, postWatchlist, putWatchlist} from "../../utils/api";
|
||||
import {AxiosError} from "axios";
|
||||
import {t} from 'ttag'
|
||||
import {WatchlistForm} from "../../components/tracking/watchlist/WatchlistForm";
|
||||
@@ -37,9 +37,12 @@ export default function WatchlistPage() {
|
||||
connector?: string,
|
||||
dsn?: string[]
|
||||
}) => {
|
||||
const domainsURI = values.domains.map(d => '/api/domains/' + d)
|
||||
let triggers = values.triggers.map(t => ({event: t, action: 'email'}))
|
||||
if(values.dsn !== undefined) triggers = [...triggers, ...values.triggers.map(t => ({event: t, action: 'chat'}))]
|
||||
const domainsURI = values.domains.map(d => '/api/domains/' + d.toLowerCase())
|
||||
let triggers = values.triggers.map(t => ({event: t, action: 'email'}))
|
||||
if (values.dsn !== undefined) triggers = [...triggers, ...values.triggers.map(t => ({
|
||||
event: t,
|
||||
action: 'chat'
|
||||
}))]
|
||||
|
||||
postWatchlist({
|
||||
name: values.name,
|
||||
@@ -64,10 +67,12 @@ export default function WatchlistPage() {
|
||||
connector?: string,
|
||||
dsn?: string[]
|
||||
}) => {
|
||||
const domainsURI = values.domains.map(d => '/api/domains/' + d)
|
||||
let triggers = values.triggers.map(t => ({event: t, action: 'email'}))
|
||||
if(values.dsn !== undefined) triggers = [...triggers, ...values.triggers.map(t => ({event: t, action: 'chat'}))]
|
||||
|
||||
const domainsURI = values.domains.map(d => '/api/domains/' + d.toLowerCase())
|
||||
let triggers = values.triggers.map(t => ({event: t, action: 'email'}))
|
||||
if (values.dsn !== undefined) triggers = [...triggers, ...values.triggers.map(t => ({
|
||||
event: t,
|
||||
action: 'chat'
|
||||
}))]
|
||||
|
||||
return putWatchlist({
|
||||
token: values.token,
|
||||
|
||||
Reference in New Issue
Block a user