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

View file

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

View file

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