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

View file

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

View file

@ -11,8 +11,8 @@ const LocationBlock = () => {
.then((response) => response.json()) .then((response) => response.json())
.then((data) => { .then((data) => {
setLocationData(data); setLocationData(data);
});
setDisplay('block'); 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`; 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 SoftwareBlock from './SoftwareBlock';
import ConnectBlock from './ConnectBlock'; import ConnectBlock from './ConnectBlock';
import FiltersBlock from './FiltersBlock'; import FiltersBlock from './FiltersBlock';
import FontsBlock from './FontsBlock'; // import FontsBlock from './FontsBlock';
const ScanBlocks = () => ( const ScanBlocks = () => (
<div> <div>
<FingerprintBlock /> <FingerprintBlock />
<FiltersBlock />
<LocationBlock /> <LocationBlock />
<ConnectBlock /> <ConnectBlock />
<HardwareBlock />
<SoftwareBlock /> <SoftwareBlock />
<FiltersBlock /> <HardwareBlock />
<FontsBlock /> {/* <FontsBlock /> */}
</div> </div>
); );

View file

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