Changed dateBlock to ItnlBlock

This commit is contained in:
z0ccc 2021-09-14 00:07:23 -04:00
parent 5f340ae7f1
commit 77e3ff68b7
3 changed files with 19 additions and 19 deletions

View file

@ -1,11 +1,11 @@
import ScanBlock from './ScanBlock'; import ScanBlock from './ScanBlock';
import Table from './Table'; import Table from './Table';
import { getDate } from './main'; import { getIntl } from './main';
const DateBlock = () => ( const DateBlock = () => (
<ScanBlock> <ScanBlock>
<h1>Date</h1> <h1>Intl</h1>
<Table type="navigator" data={getDate()} /> <Table type="navigator" data={getIntl()} />
<p> <p>
<b>Explanation:</b> JavaScript can be used to find information about your <b>Explanation:</b> JavaScript can be used to find information about your
hardware. This information can be used to create a fingerprint. hardware. This information can be used to create a fingerprint.

View file

@ -1,6 +1,6 @@
/* eslint-disable no-unused-vars */ /* eslint-disable no-unused-vars */
import UserAgentBlock from './UserAgentBlock'; import UserAgentBlock from './UserAgentBlock';
import DateBlock from './DateBlock'; import IntlBlock from './IntlBlock';
import OtherBlock from './OtherBlock'; import OtherBlock from './OtherBlock';
import NavigatorBlock from './NavigatorBlock'; import NavigatorBlock from './NavigatorBlock';
import ScreenBlock from './ScreenBlock'; import ScreenBlock from './ScreenBlock';
@ -14,7 +14,7 @@ import FiltersBlock from './FiltersBlock';
const ScanBlocks = () => ( const ScanBlocks = () => (
<> <>
<DateBlock /> <IntlBlock />
<FingerprintBlock /> <FingerprintBlock />
<LocationBlock /> <LocationBlock />
<ConnectionBlock /> <ConnectionBlock />

View file

@ -9,7 +9,7 @@ export {
getScreen, getScreen,
checkScreenProperties, checkScreenProperties,
detectTor, detectTor,
getDate, getIntl,
}; };
const getDeviceMemory = () => ({ const getDeviceMemory = () => ({
@ -279,12 +279,12 @@ const getScreen = () => [
getColorDepth(), getColorDepth(),
]; ];
const getDateNow = () => ({ // const getDateNow = () => ({
key: 'date', // key: 'date',
title: 'Date', // title: 'Date',
value: Date.now(), // value: Date.now(),
issues: [], // issues: [],
}); // });
const getCalendar = () => ({ const getCalendar = () => ({
key: 'calendar', key: 'calendar',
@ -300,14 +300,14 @@ const getTimezone = () => ({
issues: [], issues: [],
}); });
const getTimezoneOffset = () => ({ // const getTimezoneOffset = () => ({
key: 'timezoneOffset', // key: 'timezoneOffset',
title: 'Timezone offset', // title: 'Timezone offset',
value: new Date().getTimezoneOffset(), // value: new Date().getTimezoneOffset(),
issues: [], // issues: [],
}); // });
const getDate = () => [getCalendar(), getTimezone(), getTimezoneOffset()]; const getIntl = () => [getCalendar(), getTimezone()];
const detectTor = () => { const detectTor = () => {
const date = new Date(); const date = new Date();