mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 17:55:42 +00:00
feat: add auto renew period in lifecycle
This commit is contained in:
parent
a1bad26f1d
commit
cbefdb0adf
@ -1,7 +1,13 @@
|
|||||||
import {StepProps, Steps, Tooltip} from "antd";
|
import {StepProps, Steps, Tooltip} from "antd";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import {t} from "ttag";
|
import {t} from "ttag";
|
||||||
import {CheckOutlined, DeleteOutlined, ExclamationCircleOutlined, SignatureOutlined} from "@ant-design/icons";
|
import {
|
||||||
|
CheckOutlined,
|
||||||
|
DeleteOutlined,
|
||||||
|
ExclamationCircleOutlined,
|
||||||
|
FieldTimeOutlined,
|
||||||
|
SignatureOutlined
|
||||||
|
} from "@ant-design/icons";
|
||||||
import {rdapEventDetailTranslation, rdapStatusCodeDetailTranslation} from "../../utils/functions/rdapTranslation";
|
import {rdapEventDetailTranslation, rdapStatusCodeDetailTranslation} from "../../utils/functions/rdapTranslation";
|
||||||
|
|
||||||
export function DomainLifecycleSteps({status}: { status: string[] }) {
|
export function DomainLifecycleSteps({status}: { status: string[] }) {
|
||||||
@ -19,23 +25,29 @@ export function DomainLifecycleSteps({status}: { status: string[] }) {
|
|||||||
title: <Tooltip title={rdapStatusCodeDetailTranslated.active}>{t`Active`}</Tooltip>,
|
title: <Tooltip title={rdapStatusCodeDetailTranslated.active}>{t`Active`}</Tooltip>,
|
||||||
icon: <CheckOutlined/>
|
icon: <CheckOutlined/>
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: <Tooltip title={rdapStatusCodeDetailTranslated["auto renew period"]}>{t`Auto-Renew Grace Period`}</Tooltip>,
|
||||||
|
icon: <FieldTimeOutlined style={{color: 'palevioletred'}}/>
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: <Tooltip
|
title: <Tooltip
|
||||||
title={rdapStatusCodeDetailTranslated["redemption period"]}>{t`Redemption Period`}</Tooltip>,
|
title={rdapStatusCodeDetailTranslated["redemption period"]}>{t`Redemption Grace Period`}</Tooltip>,
|
||||||
icon: <ExclamationCircleOutlined style={{color: 'orangered'}}/>
|
icon: <ExclamationCircleOutlined style={{color: 'magenta'}}/>
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: <Tooltip title={rdapStatusCodeDetailTranslated["pending delete"]}>{t`Pending Delete`}</Tooltip>,
|
title: <Tooltip title={rdapStatusCodeDetailTranslated["pending delete"]}>{t`Pending Delete`}</Tooltip>,
|
||||||
icon: <DeleteOutlined style={{color: 'palevioletred'}}/>
|
icon: <DeleteOutlined style={{color: 'orangered'}}/>
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
let currentStep = 1
|
let currentStep = 1
|
||||||
|
|
||||||
if (status.includes('redemption period')) {
|
if (status.includes('auto renew period')) {
|
||||||
currentStep = 2
|
currentStep = 2
|
||||||
} else if (status.includes('pending delete')) {
|
} else if (status.includes('redemption period')) {
|
||||||
currentStep = 3
|
currentStep = 3
|
||||||
|
} else if (status.includes('pending delete')) {
|
||||||
|
currentStep = 4
|
||||||
}
|
}
|
||||||
|
|
||||||
return <Steps
|
return <Steps
|
||||||
|
|||||||
@ -80,20 +80,24 @@ msgstr ""
|
|||||||
msgid "Register"
|
msgid "Register"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/search/DomainLifecycleSteps.tsx:15
|
#: assets/components/search/DomainLifecycleSteps.tsx:21
|
||||||
#: assets/utils/functions/rdapTranslation.ts:43
|
#: assets/utils/functions/rdapTranslation.ts:43
|
||||||
msgid "Registration"
|
msgid "Registration"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/search/DomainLifecycleSteps.tsx:19
|
#: assets/components/search/DomainLifecycleSteps.tsx:25
|
||||||
msgid "Active"
|
msgid "Active"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/search/DomainLifecycleSteps.tsx:24
|
#: assets/components/search/DomainLifecycleSteps.tsx:29
|
||||||
msgid "Redemption Period"
|
msgid "Auto-Renew Grace Period"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/search/DomainLifecycleSteps.tsx:28
|
#: assets/components/search/DomainLifecycleSteps.tsx:34
|
||||||
|
msgid "Redemption Grace Period"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: assets/components/search/DomainLifecycleSteps.tsx:38
|
||||||
msgid "Pending Delete"
|
msgid "Pending Delete"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -122,11 +126,11 @@ msgstr ""
|
|||||||
msgid "EPP Status Codes"
|
msgid "EPP Status Codes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/search/DomainResult.tsx:89
|
#: assets/components/search/DomainResult.tsx:83
|
||||||
msgid "Timeline"
|
msgid "Timeline"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/search/DomainResult.tsx:96
|
#: assets/components/search/DomainResult.tsx:90
|
||||||
msgid "Entities"
|
msgid "Entities"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user