Renamed Connect to Connection

This commit is contained in:
z0ccc 2021-08-26 13:39:16 -04:00
parent b6cf0e2d47
commit ba1a7d07d1
4 changed files with 13 additions and 12 deletions

View file

@ -102,6 +102,12 @@ AUTH_PASSWORD_VALIDATORS = [
},
]
REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES': (
'rest_framework.permissions.IsAuthenticatedOrReadOnly',
)
}
# Internationalization
# https://docs.djangoproject.com/en/3.2/topics/i18n/
@ -130,9 +136,3 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
CORS_ORIGIN_WHITELIST = [
'http://localhost:3000'
]
REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': (
'rest_framework.renderers.JSONRenderer',
)
}

View file

@ -2,7 +2,7 @@ import { useState, useEffect } from 'react';
import ScanBlock from './ScanBlock';
import Table from './Table';
const ConnectBlock = () => {
const ConnectionBlock = () => {
const [connectData, setConnectData] = useState('');
const [display, setDisplay] = useState('');
@ -65,7 +65,8 @@ const ConnectBlock = () => {
{display === 1 && <Table data={data} />}
{display === 0 && (
<div className="boxWrap">
Unable to fetch info. Adblock or content filter may have prevented data from loading.
Unable to fetch info. Adblock or content filter may have prevented
data from loading.
</div>
)}
<p>
@ -76,4 +77,4 @@ const ConnectBlock = () => {
);
};
export default ConnectBlock;
export default ConnectionBlock;

View file

@ -2,7 +2,7 @@ import FingerprintBlock from './FingerprintBlock';
import LocationBlock from './LocationBlock';
import HardwareBlock from './HardwareBlock';
import SoftwareBlock from './SoftwareBlock';
import ConnectBlock from './ConnectBlock';
import ConnectionBlock from './ConnectionBlock';
import FiltersBlock from './FiltersBlock';
// import FontsBlock from './FontsBlock';
@ -10,7 +10,7 @@ const ScanBlocks = () => (
<>
<FingerprintBlock />
<LocationBlock />
<ConnectBlock />
<ConnectionBlock />
<FiltersBlock />
<SoftwareBlock />
<HardwareBlock />

View file

@ -1,5 +1,5 @@
{
"fpsLimit": 60,
"fpsLimit": 30,
"interactivity": {
"detectsOn": "window",
"events": {