mirror of
https://github.com/Xevion/rdap.git
synced 2025-12-08 22:08:16 -06:00
feat: enhance RDAP component rendering with comprehensive data display
Major improvements to RDAP card components: - Add tooltips to action buttons in AbstractCard for better UX - Implement dedicated section components (EntitiesSection, LinksSection, NameserversSection, RemarksSection, SecureDNSSection, VCardDisplay) - Add conditional rendering for optional fields across all card types - Enhance Entity and Nameserver cards with full data display - Add WHOIS server (port43) display to relevant cards - Improve visual hierarchy with nested entity displays - Fix autodetection to only run when in autodetect mode - Add proper null/undefined checks throughout components
This commit is contained in:
@@ -70,11 +70,14 @@ const Index: NextPage = () => {
|
||||
setTarget(target);
|
||||
setTargetType(targetType);
|
||||
|
||||
const detectResult = await getType(target);
|
||||
if (detectResult.isOk) {
|
||||
setDetectedType(Maybe.just(detectResult.value));
|
||||
} else {
|
||||
setDetectedType(Maybe.nothing());
|
||||
// Only run autodetection when in autodetect mode (targetType is null)
|
||||
if (targetType === null) {
|
||||
const detectResult = await getType(target);
|
||||
if (detectResult.isOk) {
|
||||
setDetectedType(Maybe.just(detectResult.value));
|
||||
} else {
|
||||
setDetectedType(Maybe.nothing());
|
||||
}
|
||||
}
|
||||
}}
|
||||
onSubmit={async function (props) {
|
||||
|
||||
Reference in New Issue
Block a user