diff --git a/MisplaceAI/MisplaceAI/settings.py b/MisplaceAI/MisplaceAI/settings.py index c913ecb9f0f74e6111c957f6beb46fd305d3a503..83a2b6a54277550838309951ace4ee0061ee9e2c 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 a0b860a9962ba66073eb08118574ed006a7fd1ad..d5c284e24352e82f16631f51503611232cafa3b3 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 4119fe75918cca626621edd66ba4cc6e2eb93240..0485f8a1efecfa7af9b2eeb974d2f0a5eadbee59 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 213aae228461b7f6a32ce966ea869e852ddb53e6..d58eefff7ab7ca46f2873ccdb287414a3147d053 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 32155ea65f5b7e3bfa47f6d15fd06785cb4f32d9..52655935b2a384fc0be5fd9a91f4884399df33df 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;