Updated connection loading

This commit is contained in:
z0ccc 2021-07-23 21:20:15 -04:00
parent 0d0380d471
commit d62d8f59a6
5 changed files with 19 additions and 15 deletions

View file

@ -11,8 +11,8 @@ const ConnectBlock = () => {
.then((response) => response.json())
.then((data) => {
setConnectData(data);
});
setDisplay('block');
});
}, []);
const detectTor = () => {
@ -32,22 +32,22 @@ const ConnectBlock = () => {
{
key: 'ipAddress',
title: 'IP address',
value: connectData.query,
value: connectData.query || 'N/A',
},
{
key: 'isp',
title: 'ISP',
value: connectData.isp,
value: connectData.isp || 'N/A',
},
{
key: 'org',
title: 'Organization',
value: connectData.org,
value: connectData.org || 'N/A',
},
{
key: 'asn',
title: 'ASN',
value: connectData.as,
value: connectData.as || 'N/A',
},
{
key: 'tor',

View file

@ -11,7 +11,7 @@ const FontsBlock = () => {
const height = [];
const span = document.createElement('span');
span.innerHTML = 'AaBbCcWwLl:/!@';
span.innerHTML = 'AaBbCcWwLl:/!@的下ㅏㅎ平片';
span.style.fontSize = '100px';
for (let i = 0; i < famLen; i++) {

View file

@ -11,8 +11,8 @@ const LocationBlock = () => {
.then((response) => response.json())
.then((data) => {
setLocationData(data);
});
setDisplay('block');
});
}, []);
const mapUrl = `https://maps.googleapis.com/maps/api/staticmap?center=${locationData.lat},${locationData.lon}&markers=color:red%7Clabel:%7C${locationData.lat},${locationData.lon}&size=500x200&zoom=10&key=AIzaSyB-YN-X8PGBSPd7NOaQu4csVhgJUnF3ZGk`;

View file

@ -4,17 +4,17 @@ import HardwareBlock from './HardwareBlock';
import SoftwareBlock from './SoftwareBlock';
import ConnectBlock from './ConnectBlock';
import FiltersBlock from './FiltersBlock';
import FontsBlock from './FontsBlock';
// import FontsBlock from './FontsBlock';
const ScanBlocks = () => (
<div>
<FingerprintBlock />
<FiltersBlock />
<LocationBlock />
<ConnectBlock />
<HardwareBlock />
<SoftwareBlock />
<FiltersBlock />
<FontsBlock />
<HardwareBlock />
{/* <FontsBlock /> */}
</div>
);

View file

@ -81,13 +81,13 @@
h1 {
margin: 0 0 12px 0;
font-weight: 500;
font-weight: 600;
font-size: 19px;
}
h2 {
margin: 0 0 4px 0;
font-weight: 500;
font-weight: 600;
font-size: 17px;
}
@ -148,7 +148,7 @@ td {
td:first-child {
width: 180px;
font-weight: 500;
font-weight: 600;
word-break: normal;
}
@ -156,6 +156,10 @@ p {
margin: 12px 0 0 0;
}
b {
font-weight: 600;
}
img {
width: 100%;
border-radius: 6px;
@ -167,7 +171,7 @@ img {
.hash {
text-align: center;
font-weight: 500;
font-weight: 600;
}
form {