Added org to connection Data
This commit is contained in:
parent
9a2a0814f9
commit
4b24ab3dd0
4 changed files with 4 additions and 6 deletions
|
|
@ -109,11 +109,7 @@ const AutofillPage = ({ tab, ipData }: AutofillPageProps) => {
|
||||||
<TableRow title="Address" value={address} />
|
<TableRow title="Address" value={address} />
|
||||||
<TableRow title="Phone" value={phone} noBorder />
|
<TableRow title="Phone" value={phone} noBorder />
|
||||||
</Table>
|
</Table>
|
||||||
<Button
|
<Button variant="primary" onClick={() => console.log('click')}>
|
||||||
variant="primary"
|
|
||||||
sx={{ width: '100%' }}
|
|
||||||
onClick={() => console.log('click')}
|
|
||||||
>
|
|
||||||
Autofill Current Page
|
Autofill Current Page
|
||||||
</Button>
|
</Button>
|
||||||
</Page>
|
</Page>
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ const ConnectionPage = ({ tab, ipData }: ConnectionPageProps) => {
|
||||||
<TableRow title="Latitude" value={`${ipData?.lat}`} />
|
<TableRow title="Latitude" value={`${ipData?.lat}`} />
|
||||||
<TableRow title="Longitude" value={`${ipData?.lon}`} />
|
<TableRow title="Longitude" value={`${ipData?.lon}`} />
|
||||||
<TableRow title="ISP" value={ipData?.isp} />
|
<TableRow title="ISP" value={ipData?.isp} />
|
||||||
|
<TableRow title="Organization" value={ipData?.org} />
|
||||||
<TableRow
|
<TableRow
|
||||||
title="Proxy/VPN"
|
title="Proxy/VPN"
|
||||||
value={ipData?.proxy ? 'True' : 'False'}
|
value={ipData?.proxy ? 'True' : 'False'}
|
||||||
|
|
|
||||||
|
|
@ -10,5 +10,6 @@ export interface ipData {
|
||||||
lat: number
|
lat: number
|
||||||
lon: number
|
lon: number
|
||||||
isp: string
|
isp: string
|
||||||
|
org: string
|
||||||
proxy: boolean
|
proxy: boolean
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
const getIp = () =>
|
const getIp = () =>
|
||||||
fetch(
|
fetch(
|
||||||
'http://ip-api.com/json?fields=status,message,country,countryCode,region,regionName,city,zip,lat,lon,timezone,isp,proxy,query'
|
'http://ip-api.com/json?fields=status,message,country,countryCode,region,regionName,city,zip,lat,lon,timezone,isp,org,proxy,query'
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((ipData) => {
|
.then((ipData) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue