mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
chore: remove isDeleted check in orderDomain
This commit is contained in:
@@ -154,11 +154,11 @@ export function ConnectorForm({form, onCreate}: { form: FormInstance, onCreate:
|
|||||||
<Input.Password autoComplete='off' required={true} placeholder=''/>
|
<Input.Password autoComplete='off' required={true} placeholder=''/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t`Domain Contact Handle ID`}
|
label={t`Owner nic-handle`}
|
||||||
name={['authData', 'contactid']}
|
name={['authData', 'contactid']}
|
||||||
help={<Typography.Text
|
help={<Typography.Text
|
||||||
type='secondary'>{t`The Contact ID for ownership of registered Domains. `}<a
|
type='secondary'>{t`The nic-handle of the domain name owner`}<a
|
||||||
href="https://cloud.autodns.com/contacts/domain">{t`You got from this page`}</a></Typography.Text>}
|
href="https://cloud.autodns.com/contacts/domain">{t`You can get it from this page`}</a></Typography.Text>}
|
||||||
rules={[{required: true, message: t`Required`}]}
|
rules={[{required: true, message: t`Required`}]}
|
||||||
required={true}>
|
required={true}>
|
||||||
<Input autoComplete='off' required={true} placeholder=''/>
|
<Input autoComplete='off' required={true} placeholder=''/>
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ export const helpGetTokenLink = (provider?: string) => {
|
|||||||
</Typography.Link>
|
</Typography.Link>
|
||||||
case ConnectorProvider.AUTODNS:
|
case ConnectorProvider.AUTODNS:
|
||||||
return <Typography.Link target='_blank' href="https://en.autodns.com/domain-robot-api/">
|
return <Typography.Link target='_blank' href="https://en.autodns.com/domain-robot-api/">
|
||||||
{t`Because of some limitations in API of AutoDNS, we suggest to create an dedicated user for API with limited rights.`}
|
{t`Because of some limitations in API of AutoDNS, we suggest to create an dedicated user for API with limited rights`}
|
||||||
</Typography.Link>
|
</Typography.Link>
|
||||||
default:
|
default:
|
||||||
return <></>
|
return <></>
|
||||||
@@ -35,6 +35,8 @@ export const tosHyperlink = (provider?: string) => {
|
|||||||
return 'https://www.ovhcloud.com/fr/terms-and-conditions/contracts/'
|
return 'https://www.ovhcloud.com/fr/terms-and-conditions/contracts/'
|
||||||
case ConnectorProvider.GANDI:
|
case ConnectorProvider.GANDI:
|
||||||
return 'https://www.gandi.net/en/contracts/terms-of-service'
|
return 'https://www.gandi.net/en/contracts/terms-of-service'
|
||||||
|
case ConnectorProvider.NAMECHEAP:
|
||||||
|
return 'https://www.namecheap.com/legal/universal/universal-tos/'
|
||||||
case ConnectorProvider.AUTODNS:
|
case ConnectorProvider.AUTODNS:
|
||||||
return 'https://www.internetx.com/agb/'
|
return 'https://www.internetx.com/agb/'
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -35,10 +35,6 @@ class AutodnsProvider extends AbstractProvider
|
|||||||
*/
|
*/
|
||||||
public function orderDomain(Domain $domain, bool $dryRun = false): void
|
public function orderDomain(Domain $domain, bool $dryRun = false): void
|
||||||
{
|
{
|
||||||
if (!$domain->getDeleted()) {
|
|
||||||
throw new \InvalidArgumentException('The domain name still appears in the WHOIS database');
|
|
||||||
}
|
|
||||||
|
|
||||||
$ldhName = $domain->getLdhName();
|
$ldhName = $domain->getLdhName();
|
||||||
if (!$ldhName) {
|
if (!$ldhName) {
|
||||||
throw new \InvalidArgumentException('Domain name cannot be null');
|
throw new \InvalidArgumentException('Domain name cannot be null');
|
||||||
|
|||||||
@@ -34,10 +34,6 @@ class GandiProvider extends AbstractProvider
|
|||||||
*/
|
*/
|
||||||
public function orderDomain(Domain $domain, bool $dryRun = false): void
|
public function orderDomain(Domain $domain, bool $dryRun = false): void
|
||||||
{
|
{
|
||||||
if (!$domain->getDeleted()) {
|
|
||||||
throw new \InvalidArgumentException('The domain name still appears in the WHOIS database');
|
|
||||||
}
|
|
||||||
|
|
||||||
$ldhName = $domain->getLdhName();
|
$ldhName = $domain->getLdhName();
|
||||||
if (!$ldhName) {
|
if (!$ldhName) {
|
||||||
throw new \InvalidArgumentException('Domain name cannot be null');
|
throw new \InvalidArgumentException('Domain name cannot be null');
|
||||||
|
|||||||
@@ -53,10 +53,6 @@ class OvhProvider extends AbstractProvider
|
|||||||
*/
|
*/
|
||||||
public function orderDomain(Domain $domain, bool $dryRun = false): void
|
public function orderDomain(Domain $domain, bool $dryRun = false): void
|
||||||
{
|
{
|
||||||
if (!$domain->getDeleted()) {
|
|
||||||
throw new \InvalidArgumentException('The domain name still appears in the WHOIS database');
|
|
||||||
}
|
|
||||||
|
|
||||||
$ldhName = $domain->getLdhName();
|
$ldhName = $domain->getLdhName();
|
||||||
if (!$ldhName) {
|
if (!$ldhName) {
|
||||||
throw new \InvalidArgumentException('Domain name cannot be null');
|
throw new \InvalidArgumentException('Domain name cannot be null');
|
||||||
|
|||||||
@@ -242,15 +242,15 @@ msgid "AutoDNS Password"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/tracking/connector/ConnectorForm.tsx:157
|
#: assets/components/tracking/connector/ConnectorForm.tsx:157
|
||||||
msgid "Domain Contact Handle ID"
|
msgid "Owner nic-handle"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/tracking/connector/ConnectorForm.tsx:160
|
#: assets/components/tracking/connector/ConnectorForm.tsx:160
|
||||||
msgid "The Contact ID for ownership of registered Domains. "
|
msgid "The nic-handle of the domain name owner"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/tracking/connector/ConnectorForm.tsx:161
|
#: assets/components/tracking/connector/ConnectorForm.tsx:161
|
||||||
msgid "You got from this page"
|
msgid "You can get it from this page"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/tracking/connector/ConnectorForm.tsx:168
|
#: assets/components/tracking/connector/ConnectorForm.tsx:168
|
||||||
@@ -1102,7 +1102,7 @@ msgstr ""
|
|||||||
#: assets/utils/providers/index.tsx:24
|
#: assets/utils/providers/index.tsx:24
|
||||||
msgid ""
|
msgid ""
|
||||||
"Because of some limitations in API of AutoDNS, we suggest to create an "
|
"Because of some limitations in API of AutoDNS, we suggest to create an "
|
||||||
"dedicated user for API with limited rights."
|
"dedicated user for API with limited rights"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/utils/providers/ovh.tsx:5
|
#: assets/utils/providers/ovh.tsx:5
|
||||||
|
|||||||
Reference in New Issue
Block a user