feat: add IP Query tool

- Introduced a new tool for querying IP information, including location and risk assessment.
- Updated the tool index to include the new IP Query component and its corresponding icon.
- Added IPQuery component with functionality to validate and fetch IP data from external APIs.
This commit is contained in:
typist
2025-10-29 06:36:20 +08:00
parent ae0f9447ea
commit edf87370d9
3 changed files with 322 additions and 2 deletions

View File

@@ -1,10 +1,10 @@
import type { ReactNode } from 'react';
import { FileJson, Hash, Binary, Network, Globe, Activity, Gauge, Wifi } from 'lucide-react'
import { FileJson, Hash, Binary, Network, Globe, Activity, Gauge, Wifi, MapPin } from 'lucide-react'
import UUID from './uuid'
import JSON from './json'
import Base64 from './base64'
import { DNS, Ping, TCPing, SpeedTest } from './network'
import { DNS, Ping, TCPing, SpeedTest, IPQuery } from './network'
export interface Tool {
path: string;
@@ -71,6 +71,13 @@ export const tools: Tool[] = [
icon: <Gauge />,
component: <SpeedTest />,
},
{
path: "ipquery",
name: "IP Query",
description: "Query IP location, quality and risk info",
icon: <MapPin />,
component: <IPQuery />,
},
],
},
];