From 3c64c694adb56b3cd15bfedad88414c655940365 Mon Sep 17 00:00:00 2001 From: a2-imeri <Alfret2.imeri@live.uwe.ac.uk> Date: Wed, 3 Jul 2024 17:47:57 +0100 Subject: [PATCH] Update CSS --- MisplaceAI/MisplaceAI/settings.py | 5 +++-- frontend/src/components/detection/video/VideoUploadForm.js | 2 +- frontend/src/styles/input/Dropdown.css | 1 + frontend/src/styles/input/FileInput.css | 1 + frontend/src/styles/input/NumberInput.css | 3 ++- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/MisplaceAI/MisplaceAI/settings.py b/MisplaceAI/MisplaceAI/settings.py index c913ecb..83a2b6a 100644 --- a/MisplaceAI/MisplaceAI/settings.py +++ b/MisplaceAI/MisplaceAI/settings.py @@ -55,6 +55,7 @@ INSTALLED_APPS = [ 'corsheaders', 'user_dashboard', 'rest_framework_simplejwt', + 'rest_framework_simplejwt.token_blacklist', ] @@ -84,10 +85,10 @@ CORS_ALLOW_CREDENTIALS = True CSRF_COOKIE_HTTPONLY = True ROOT_URLCONF = 'MisplaceAI.urls' + SESSION_COOKIE_AGE = 1209600 # 2 weeks in seconds +SESSION_EXPIRE_AT_BROWSER_CLOSE = False# Do not expire the session when the browser closes -# Do not expire the session when the browser closes -SESSION_EXPIRE_AT_BROWSER_CLOSE = False # Optionally, secure the session cookie (recommended for production) SESSION_COOKIE_SECURE = False # Set to True if using HTTPS diff --git a/frontend/src/components/detection/video/VideoUploadForm.js b/frontend/src/components/detection/video/VideoUploadForm.js index a0b860a..d5c284e 100644 --- a/frontend/src/components/detection/video/VideoUploadForm.js +++ b/frontend/src/components/detection/video/VideoUploadForm.js @@ -77,7 +77,7 @@ const VideoUploadForm = ({ handleFileChange, handleSubmit, handleFramesJumpChang <Form onSubmit={handleSubmit}> <Form.Group controlId="videoFile"> <FileInput - label="Upload Video" + onChange={handleFileInputChange} fileName={fileName} disabled={isLoading} diff --git a/frontend/src/styles/input/Dropdown.css b/frontend/src/styles/input/Dropdown.css index 4119fe7..0485f8a 100644 --- a/frontend/src/styles/input/Dropdown.css +++ b/frontend/src/styles/input/Dropdown.css @@ -1,3 +1,4 @@ +/* src/styles/input/Dropdown.css */ /* Dropdown.css */ .dropdown-container { position: relative; diff --git a/frontend/src/styles/input/FileInput.css b/frontend/src/styles/input/FileInput.css index 213aae2..d58eeff 100644 --- a/frontend/src/styles/input/FileInput.css +++ b/frontend/src/styles/input/FileInput.css @@ -1,3 +1,4 @@ +/* src/styles/input/FileInput.css */ .file-input-container { display: flex; flex-direction: column; diff --git a/frontend/src/styles/input/NumberInput.css b/frontend/src/styles/input/NumberInput.css index 32155ea..5265593 100644 --- a/frontend/src/styles/input/NumberInput.css +++ b/frontend/src/styles/input/NumberInput.css @@ -1,10 +1,11 @@ +/* src/styles/input/NumberInput.css */ /* NumberInput.css */ .number-input-container { display: flex; flex-direction: column; align-items: center; - margin: 20px 0; + margin-bottom: 30px; font-family: 'Arial', sans-serif; width: 100%; max-width: 300px; -- GitLab