Changed dateBlock to ItnlBlock
This commit is contained in:
parent
5f340ae7f1
commit
77e3ff68b7
3 changed files with 19 additions and 19 deletions
|
|
@ -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.
|
||||||
|
|
@ -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 />
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue