From ba1a7d07d1ba0c3f757b33480725962f33d1513e Mon Sep 17 00:00:00 2001 From: z0ccc Date: Thu, 26 Aug 2021 13:39:16 -0400 Subject: [PATCH] Renamed Connect to Connection --- backend/backend/settings.py | 12 ++++++------ .../{ConnectBlock.js => ConnectionBlock.js} | 7 ++++--- frontend/src/components/ScanBlocks.js | 4 ++-- frontend/src/particles.json | 2 +- 4 files changed, 13 insertions(+), 12 deletions(-) rename frontend/src/components/{ConnectBlock.js => ConnectionBlock.js} (94%) diff --git a/backend/backend/settings.py b/backend/backend/settings.py index f135dd9..a85587a 100644 --- a/backend/backend/settings.py +++ b/backend/backend/settings.py @@ -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', - ) -} diff --git a/frontend/src/components/ConnectBlock.js b/frontend/src/components/ConnectionBlock.js similarity index 94% rename from frontend/src/components/ConnectBlock.js rename to frontend/src/components/ConnectionBlock.js index 6bead48..437f3e5 100644 --- a/frontend/src/components/ConnectBlock.js +++ b/frontend/src/components/ConnectionBlock.js @@ -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 && } {display === 0 && (
- 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.
)}

@@ -76,4 +77,4 @@ const ConnectBlock = () => { ); }; -export default ConnectBlock; +export default ConnectionBlock; diff --git a/frontend/src/components/ScanBlocks.js b/frontend/src/components/ScanBlocks.js index a6f5fa7..b9ae1e3 100644 --- a/frontend/src/components/ScanBlocks.js +++ b/frontend/src/components/ScanBlocks.js @@ -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 = () => ( <> - + diff --git a/frontend/src/particles.json b/frontend/src/particles.json index 09596e4..f79086e 100644 --- a/frontend/src/particles.json +++ b/frontend/src/particles.json @@ -1,5 +1,5 @@ { - "fpsLimit": 60, + "fpsLimit": 30, "interactivity": { "detectsOn": "window", "events": {