Skip to content

Commit 477b62e

Browse files
Jhanemba64JeynoxniieeerEtimo285Ubuntu
authored
Dev (#174)
* Fix/resolve merge conflicts (#162) * Dev (#142) * Refactor file handling components and add FilePreview utility - Introduced FilePreview component for displaying file previews based on file type. - Updated FileCard and FileUploader to utilize FilePreview for better file representation. - Enhanced FileInfoDialog to include file previews. - Improved file type detection logic in fileUtils. - Streamlined imports and component structure across affected files. * Test 1 * Add PDF preview message and integrate translation in FilePreview component * Test 2 * Test 3 * Test 4 * Trad part 2 (#122) * rate limiting for build * autres trad * Revert "Fix Playwright" (#121) * Revert "Fix Playwright" * Test 1 * Test 2 * Test 3 * Test 4 * Test 5 * Test 6 * Trad part 2 (#123) * rate limiting for build * autres trad * oublie autres trad * Temporary Files Upload (#119) * Upload page reworked + Visuals for Temp File Gen * Temp Files * Refacto * Fix Front * Persistence in localstorage * Expiration in Front * Working cleanup * Fixes + Translation * Bigger expiration Icon * Set to 24 hours * FilePreview on the Icons * Underscore (#125) * rate limiting for build * underscore * Password Recovery (#124) * Password Recovery * Translation Fix * Refacto decodeJWT + utils * Refacto 2 * Refacto utils part 2 * Schema Validation + Error handling * Added missing definition in resolver * graphql types updated * Changed Toast config (#126) * File list (#128) * Refactor: Update UserResolver and AuthContext for improved async handling and optional fields - Adjusted UserInfo fields to be nullable in UserResolver. - Enhanced async handling in AuthContext and related components. - Improved error handling in Form component. - Cleaned up imports and formatting across multiple files. * Refactor UI components and utility functions - Updated import statements to use consistent single quotes. - Refactored Select, Separator, Sheet, ShimmerButton, Switch, Tabs, and Tooltip components for improved readability and consistency. - Removed the old utility functions file and created a new global utility functions file. - Added new types for file handling and temporary links. - Enhanced drag-and-drop functionality with utility functions. - Cleaned up Layout and UploadPage components for better structure and readability. * Enhance FileCard and FileSection components with compact mode toggle; update Radix UI dependencies and improve file type handling --------- Co-authored-by: Etimo <gitimo@gmail.com> * TempLinks Limit (#130) * TempLink limit + Fixed Translations * Added acceptedFileTypes to TempLinkGenerator * Updated Common i18n * Resend Verify Code Button (#129) * Resend Code Button * underscore * Rework How it Works & About Pages (#131) * Reword How it Works * Rework About Page * Removed Like and Comment (#132) * Feat file expire cron (#134) * feat: add scheduled cleanup for expired resources and update dependencies - Implemented a daily cron job to clean up expired resources from the database and file system. - Added `node-cron` for scheduling tasks and `express-rate-limit` for rate limiting. - Updated `package.json` to include new dependencies and removed duplicates. - Refactored `ResourceResolver` to handle resource expiration and access control more effectively. - Enhanced error handling and logging for resource cleanup operations. - Updated frontend dependencies to their latest versions for improved stability and security. * feat: Enhance subscription and file upload features - Updated SubscriptionResolver to improve error messages for user and subscription not found. - Modified UserResolver to include subscription status in JWT token. - Updated frontend localization files to clarify file size limits for subscribed and non-subscribed users. - Enhanced FileUploader component to enforce file size limits based on subscription status. - Improved TempLinkGenerator to validate file size for non-subscribed users. - Integrated express-rate-limit middleware in storage API to manage upload and request limits. - Refactored multer configuration to include file type and size validation based on user subscription. - Added cleanup logic for expired temporary files in the storage API. - Implemented rate limiting for various routes in the storage API to prevent abuse. * FilePreview v2 (#133) * Updated FilePreviw + FileList * FileSection pagination and Fixes * Added Search Bar * Clear input added --------- Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> * Refactor generateUniqueFilename to use originalName directly and simplify custom name handling * Captcha for Sign Page (#138) * Captcha for Sign Page * Temporilarily Modified e2e test * Inverted logic for keys * Sort By File Type & Author (#136) * Added Audio preview * Filter by type and author * Fixed author filter * Removed useless logs * Antivirus Scan (#137) * Initialization * Working State * Improved UI/UX and translations * Mini fix * Removed useless files * MD5 Hash stored & Exposed on Front (#139) * md5file installed * MD5 Hash is stored and exposed in the UI * Fix lint * Email Code Expiration + fix resend email (#140) * Added the group selection in Front * Grouped Deletion * Drag to select * Grouped Sharing * ScrollBox + Improved drag to select + typo * Group Report * Group Export to ZIP + Removed Group Download * Fix Lint * Cleaning --------- Co-authored-by: niieeer <clement0201@icloud.com> Co-authored-by: Etimo <gitimo@gmail.com> Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> Co-authored-by: Etimo <86971633+Etimo285@users.noreply.github.com> * Fix/frontend build (#143) * fix: correct frontend Dockerfile for production build * fix: remove TypeScript check from frontend build to fix production build --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script (#144) Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Fix/frontend dockerfile (#145) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Fix/frontend dockerfile (#146) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile * feat: add production environment variables for frontend build --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Disable Recaptcha (#147) * Disable Recaptcha * error Lint * error Lint * Chore/final prod config (#148) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile * feat: add production environment variables for frontend build * chore: final production config with storage-api build fix --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * test (#149) * fix: resolve merge conflicts in Dockerfile and reCAPTCHA files --------- Co-authored-by: Daniel Lemos <118815455+Jeynox@users.noreply.github.com> Co-authored-by: niieeer <clement0201@icloud.com> Co-authored-by: Etimo <gitimo@gmail.com> Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> Co-authored-by: Etimo <86971633+Etimo285@users.noreply.github.com> Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Fix/resolve merge conflicts (#164) * Dev (#142) * Refactor file handling components and add FilePreview utility - Introduced FilePreview component for displaying file previews based on file type. - Updated FileCard and FileUploader to utilize FilePreview for better file representation. - Enhanced FileInfoDialog to include file previews. - Improved file type detection logic in fileUtils. - Streamlined imports and component structure across affected files. * Test 1 * Add PDF preview message and integrate translation in FilePreview component * Test 2 * Test 3 * Test 4 * Trad part 2 (#122) * rate limiting for build * autres trad * Revert "Fix Playwright" (#121) * Revert "Fix Playwright" * Test 1 * Test 2 * Test 3 * Test 4 * Test 5 * Test 6 * Trad part 2 (#123) * rate limiting for build * autres trad * oublie autres trad * Temporary Files Upload (#119) * Upload page reworked + Visuals for Temp File Gen * Temp Files * Refacto * Fix Front * Persistence in localstorage * Expiration in Front * Working cleanup * Fixes + Translation * Bigger expiration Icon * Set to 24 hours * FilePreview on the Icons * Underscore (#125) * rate limiting for build * underscore * Password Recovery (#124) * Password Recovery * Translation Fix * Refacto decodeJWT + utils * Refacto 2 * Refacto utils part 2 * Schema Validation + Error handling * Added missing definition in resolver * graphql types updated * Changed Toast config (#126) * File list (#128) * Refactor: Update UserResolver and AuthContext for improved async handling and optional fields - Adjusted UserInfo fields to be nullable in UserResolver. - Enhanced async handling in AuthContext and related components. - Improved error handling in Form component. - Cleaned up imports and formatting across multiple files. * Refactor UI components and utility functions - Updated import statements to use consistent single quotes. - Refactored Select, Separator, Sheet, ShimmerButton, Switch, Tabs, and Tooltip components for improved readability and consistency. - Removed the old utility functions file and created a new global utility functions file. - Added new types for file handling and temporary links. - Enhanced drag-and-drop functionality with utility functions. - Cleaned up Layout and UploadPage components for better structure and readability. * Enhance FileCard and FileSection components with compact mode toggle; update Radix UI dependencies and improve file type handling --------- Co-authored-by: Etimo <gitimo@gmail.com> * TempLinks Limit (#130) * TempLink limit + Fixed Translations * Added acceptedFileTypes to TempLinkGenerator * Updated Common i18n * Resend Verify Code Button (#129) * Resend Code Button * underscore * Rework How it Works & About Pages (#131) * Reword How it Works * Rework About Page * Removed Like and Comment (#132) * Feat file expire cron (#134) * feat: add scheduled cleanup for expired resources and update dependencies - Implemented a daily cron job to clean up expired resources from the database and file system. - Added `node-cron` for scheduling tasks and `express-rate-limit` for rate limiting. - Updated `package.json` to include new dependencies and removed duplicates. - Refactored `ResourceResolver` to handle resource expiration and access control more effectively. - Enhanced error handling and logging for resource cleanup operations. - Updated frontend dependencies to their latest versions for improved stability and security. * feat: Enhance subscription and file upload features - Updated SubscriptionResolver to improve error messages for user and subscription not found. - Modified UserResolver to include subscription status in JWT token. - Updated frontend localization files to clarify file size limits for subscribed and non-subscribed users. - Enhanced FileUploader component to enforce file size limits based on subscription status. - Improved TempLinkGenerator to validate file size for non-subscribed users. - Integrated express-rate-limit middleware in storage API to manage upload and request limits. - Refactored multer configuration to include file type and size validation based on user subscription. - Added cleanup logic for expired temporary files in the storage API. - Implemented rate limiting for various routes in the storage API to prevent abuse. * FilePreview v2 (#133) * Updated FilePreviw + FileList * FileSection pagination and Fixes * Added Search Bar * Clear input added --------- Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> * Refactor generateUniqueFilename to use originalName directly and simplify custom name handling * Captcha for Sign Page (#138) * Captcha for Sign Page * Temporilarily Modified e2e test * Inverted logic for keys * Sort By File Type & Author (#136) * Added Audio preview * Filter by type and author * Fixed author filter * Removed useless logs * Antivirus Scan (#137) * Initialization * Working State * Improved UI/UX and translations * Mini fix * Removed useless files * MD5 Hash stored & Exposed on Front (#139) * md5file installed * MD5 Hash is stored and exposed in the UI * Fix lint * Email Code Expiration + fix resend email (#140) * Added the group selection in Front * Grouped Deletion * Drag to select * Grouped Sharing * ScrollBox + Improved drag to select + typo * Group Report * Group Export to ZIP + Removed Group Download * Fix Lint * Cleaning --------- Co-authored-by: niieeer <clement0201@icloud.com> Co-authored-by: Etimo <gitimo@gmail.com> Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> Co-authored-by: Etimo <86971633+Etimo285@users.noreply.github.com> * Fix/frontend build (#143) * fix: correct frontend Dockerfile for production build * fix: remove TypeScript check from frontend build to fix production build --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script (#144) Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Fix/frontend dockerfile (#145) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Fix/frontend dockerfile (#146) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile * feat: add production environment variables for frontend build --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Disable Recaptcha (#147) * Disable Recaptcha * error Lint * error Lint * Chore/final prod config (#148) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile * feat: add production environment variables for frontend build * chore: final production config with storage-api build fix --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * test (#149) * fix: resolve merge conflicts in Dockerfile and reCAPTCHA files --------- Co-authored-by: Daniel Lemos <118815455+Jeynox@users.noreply.github.com> Co-authored-by: niieeer <clement0201@icloud.com> Co-authored-by: Etimo <gitimo@gmail.com> Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> Co-authored-by: Etimo <86971633+Etimo285@users.noreply.github.com> Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Fix/resolve merge conflicts (#166) * Dev (#142) * Refactor file handling components and add FilePreview utility - Introduced FilePreview component for displaying file previews based on file type. - Updated FileCard and FileUploader to utilize FilePreview for better file representation. - Enhanced FileInfoDialog to include file previews. - Improved file type detection logic in fileUtils. - Streamlined imports and component structure across affected files. * Test 1 * Add PDF preview message and integrate translation in FilePreview component * Test 2 * Test 3 * Test 4 * Trad part 2 (#122) * rate limiting for build * autres trad * Revert "Fix Playwright" (#121) * Revert "Fix Playwright" * Test 1 * Test 2 * Test 3 * Test 4 * Test 5 * Test 6 * Trad part 2 (#123) * rate limiting for build * autres trad * oublie autres trad * Temporary Files Upload (#119) * Upload page reworked + Visuals for Temp File Gen * Temp Files * Refacto * Fix Front * Persistence in localstorage * Expiration in Front * Working cleanup * Fixes + Translation * Bigger expiration Icon * Set to 24 hours * FilePreview on the Icons * Underscore (#125) * rate limiting for build * underscore * Password Recovery (#124) * Password Recovery * Translation Fix * Refacto decodeJWT + utils * Refacto 2 * Refacto utils part 2 * Schema Validation + Error handling * Added missing definition in resolver * graphql types updated * Changed Toast config (#126) * File list (#128) * Refactor: Update UserResolver and AuthContext for improved async handling and optional fields - Adjusted UserInfo fields to be nullable in UserResolver. - Enhanced async handling in AuthContext and related components. - Improved error handling in Form component. - Cleaned up imports and formatting across multiple files. * Refactor UI components and utility functions - Updated import statements to use consistent single quotes. - Refactored Select, Separator, Sheet, ShimmerButton, Switch, Tabs, and Tooltip components for improved readability and consistency. - Removed the old utility functions file and created a new global utility functions file. - Added new types for file handling and temporary links. - Enhanced drag-and-drop functionality with utility functions. - Cleaned up Layout and UploadPage components for better structure and readability. * Enhance FileCard and FileSection components with compact mode toggle; update Radix UI dependencies and improve file type handling --------- Co-authored-by: Etimo <gitimo@gmail.com> * TempLinks Limit (#130) * TempLink limit + Fixed Translations * Added acceptedFileTypes to TempLinkGenerator * Updated Common i18n * Resend Verify Code Button (#129) * Resend Code Button * underscore * Rework How it Works & About Pages (#131) * Reword How it Works * Rework About Page * Removed Like and Comment (#132) * Feat file expire cron (#134) * feat: add scheduled cleanup for expired resources and update dependencies - Implemented a daily cron job to clean up expired resources from the database and file system. - Added `node-cron` for scheduling tasks and `express-rate-limit` for rate limiting. - Updated `package.json` to include new dependencies and removed duplicates. - Refactored `ResourceResolver` to handle resource expiration and access control more effectively. - Enhanced error handling and logging for resource cleanup operations. - Updated frontend dependencies to their latest versions for improved stability and security. * feat: Enhance subscription and file upload features - Updated SubscriptionResolver to improve error messages for user and subscription not found. - Modified UserResolver to include subscription status in JWT token. - Updated frontend localization files to clarify file size limits for subscribed and non-subscribed users. - Enhanced FileUploader component to enforce file size limits based on subscription status. - Improved TempLinkGenerator to validate file size for non-subscribed users. - Integrated express-rate-limit middleware in storage API to manage upload and request limits. - Refactored multer configuration to include file type and size validation based on user subscription. - Added cleanup logic for expired temporary files in the storage API. - Implemented rate limiting for various routes in the storage API to prevent abuse. * FilePreview v2 (#133) * Updated FilePreviw + FileList * FileSection pagination and Fixes * Added Search Bar * Clear input added --------- Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> * Refactor generateUniqueFilename to use originalName directly and simplify custom name handling * Captcha for Sign Page (#138) * Captcha for Sign Page * Temporilarily Modified e2e test * Inverted logic for keys * Sort By File Type & Author (#136) * Added Audio preview * Filter by type and author * Fixed author filter * Removed useless logs * Antivirus Scan (#137) * Initialization * Working State * Improved UI/UX and translations * Mini fix * Removed useless files * MD5 Hash stored & Exposed on Front (#139) * md5file installed * MD5 Hash is stored and exposed in the UI * Fix lint * Email Code Expiration + fix resend email (#140) * Added the group selection in Front * Grouped Deletion * Drag to select * Grouped Sharing * ScrollBox + Improved drag to select + typo * Group Report * Group Export to ZIP + Removed Group Download * Fix Lint * Cleaning --------- Co-authored-by: niieeer <clement0201@icloud.com> Co-authored-by: Etimo <gitimo@gmail.com> Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> Co-authored-by: Etimo <86971633+Etimo285@users.noreply.github.com> * Fix/frontend build (#143) * fix: correct frontend Dockerfile for production build * fix: remove TypeScript check from frontend build to fix production build --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script (#144) Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Fix/frontend dockerfile (#145) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Fix/frontend dockerfile (#146) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile * feat: add production environment variables for frontend build --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Disable Recaptcha (#147) * Disable Recaptcha * error Lint * error Lint * Chore/final prod config (#148) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile * feat: add production environment variables for frontend build * chore: final production config with storage-api build fix --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * test (#149) * fix: resolve merge conflicts in Dockerfile and reCAPTCHA files * fix: improve prod-frontend workflow to handle merged PRs correctly * fix: ensure lint workflow uses correct branch code * fix: ensure lint uses correct code without merge conflicts * fix: remove dotenv import and update Dockerfile with Node 22 and better error handling --------- Co-authored-by: Daniel Lemos <118815455+Jeynox@users.noreply.github.com> Co-authored-by: niieeer <clement0201@icloud.com> Co-authored-by: Etimo <gitimo@gmail.com> Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> Co-authored-by: Etimo <86971633+Etimo285@users.noreply.github.com> Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Conflits (#169) * Dev (#142) * Refactor file handling components and add FilePreview utility - Introduced FilePreview component for displaying file previews based on file type. - Updated FileCard and FileUploader to utilize FilePreview for better file representation. - Enhanced FileInfoDialog to include file previews. - Improved file type detection logic in fileUtils. - Streamlined imports and component structure across affected files. * Test 1 * Add PDF preview message and integrate translation in FilePreview component * Test 2 * Test 3 * Test 4 * Trad part 2 (#122) * rate limiting for build * autres trad * Revert "Fix Playwright" (#121) * Revert "Fix Playwright" * Test 1 * Test 2 * Test 3 * Test 4 * Test 5 * Test 6 * Trad part 2 (#123) * rate limiting for build * autres trad * oublie autres trad * Temporary Files Upload (#119) * Upload page reworked + Visuals for Temp File Gen * Temp Files * Refacto * Fix Front * Persistence in localstorage * Expiration in Front * Working cleanup * Fixes + Translation * Bigger expiration Icon * Set to 24 hours * FilePreview on the Icons * Underscore (#125) * rate limiting for build * underscore * Password Recovery (#124) * Password Recovery * Translation Fix * Refacto decodeJWT + utils * Refacto 2 * Refacto utils part 2 * Schema Validation + Error handling * Added missing definition in resolver * graphql types updated * Changed Toast config (#126) * File list (#128) * Refactor: Update UserResolver and AuthContext for improved async handling and optional fields - Adjusted UserInfo fields to be nullable in UserResolver. - Enhanced async handling in AuthContext and related components. - Improved error handling in Form component. - Cleaned up imports and formatting across multiple files. * Refactor UI components and utility functions - Updated import statements to use consistent single quotes. - Refactored Select, Separator, Sheet, ShimmerButton, Switch, Tabs, and Tooltip components for improved readability and consistency. - Removed the old utility functions file and created a new global utility functions file. - Added new types for file handling and temporary links. - Enhanced drag-and-drop functionality with utility functions. - Cleaned up Layout and UploadPage components for better structure and readability. * Enhance FileCard and FileSection components with compact mode toggle; update Radix UI dependencies and improve file type handling --------- Co-authored-by: Etimo <gitimo@gmail.com> * TempLinks Limit (#130) * TempLink limit + Fixed Translations * Added acceptedFileTypes to TempLinkGenerator * Updated Common i18n * Resend Verify Code Button (#129) * Resend Code Button * underscore * Rework How it Works & About Pages (#131) * Reword How it Works * Rework About Page * Removed Like and Comment (#132) * Feat file expire cron (#134) * feat: add scheduled cleanup for expired resources and update dependencies - Implemented a daily cron job to clean up expired resources from the database and file system. - Added `node-cron` for scheduling tasks and `express-rate-limit` for rate limiting. - Updated `package.json` to include new dependencies and removed duplicates. - Refactored `ResourceResolver` to handle resource expiration and access control more effectively. - Enhanced error handling and logging for resource cleanup operations. - Updated frontend dependencies to their latest versions for improved stability and security. * feat: Enhance subscription and file upload features - Updated SubscriptionResolver to improve error messages for user and subscription not found. - Modified UserResolver to include subscription status in JWT token. - Updated frontend localization files to clarify file size limits for subscribed and non-subscribed users. - Enhanced FileUploader component to enforce file size limits based on subscription status. - Improved TempLinkGenerator to validate file size for non-subscribed users. - Integrated express-rate-limit middleware in storage API to manage upload and request limits. - Refactored multer configuration to include file type and size validation based on user subscription. - Added cleanup logic for expired temporary files in the storage API. - Implemented rate limiting for various routes in the storage API to prevent abuse. * FilePreview v2 (#133) * Updated FilePreviw + FileList * FileSection pagination and Fixes * Added Search Bar * Clear input added --------- Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> * Refactor generateUniqueFilename to use originalName directly and simplify custom name handling * Captcha for Sign Page (#138) * Captcha for Sign Page * Temporilarily Modified e2e test * Inverted logic for keys * Sort By File Type & Author (#136) * Added Audio preview * Filter by type and author * Fixed author filter * Removed useless logs * Antivirus Scan (#137) * Initialization * Working State * Improved UI/UX and translations * Mini fix * Removed useless files * MD5 Hash stored & Exposed on Front (#139) * md5file installed * MD5 Hash is stored and exposed in the UI * Fix lint * Email Code Expiration + fix resend email (#140) * Added the group selection in Front * Grouped Deletion * Drag to select * Grouped Sharing * ScrollBox + Improved drag to select + typo * Group Report * Group Export to ZIP + Removed Group Download * Fix Lint * Cleaning --------- Co-authored-by: niieeer <clement0201@icloud.com> Co-authored-by: Etimo <gitimo@gmail.com> Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> Co-authored-by: Etimo <86971633+Etimo285@users.noreply.github.com> * Fix/frontend build (#143) * fix: correct frontend Dockerfile for production build * fix: remove TypeScript check from frontend build to fix production build --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script (#144) Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Fix/frontend dockerfile (#145) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Fix/frontend dockerfile (#146) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile * feat: add production environment variables for frontend build --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Disable Recaptcha (#147) * Disable Recaptcha * error Lint * error Lint * Chore/final prod config (#148) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile * feat: add production environment variables for frontend build * chore: final production config with storage-api build fix --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * test (#149) * Fix/resolve merge conflicts (#162) (#163) * Dev (#142) * Refactor file handling components and add FilePreview utility - Introduced FilePreview component for displaying file previews based on file type. - Updated FileCard and FileUploader to utilize FilePreview for better file representation. - Enhanced FileInfoDialog to include file previews. - Improved file type detection logic in fileUtils. - Streamlined imports and component structure across affected files. * Test 1 * Add PDF preview message and integrate translation in FilePreview component * Test 2 * Test 3 * Test 4 * Trad part 2 (#122) * rate limiting for build * autres trad * Revert "Fix Playwright" (#121) * Revert "Fix Playwright" * Test 1 * Test 2 * Test 3 * Test 4 * Test 5 * Test 6 * Trad part 2 (#123) * rate limiting for build * autres trad * oublie autres trad * Temporary Files Upload (#119) * Upload page reworked + Visuals for Temp File Gen * Temp Files * Refacto * Fix Front * Persistence in localstorage * Expiration in Front * Working cleanup * Fixes + Translation * Bigger expiration Icon * Set to 24 hours * FilePreview on the Icons * Underscore (#125) * rate limiting for build * underscore * Password Recovery (#124) * Password Recovery * Translation Fix * Refacto decodeJWT + utils * Refacto 2 * Refacto utils part 2 * Schema Validation + Error handling * Added missing definition in resolver * graphql types updated * Changed Toast config (#126) * File list (#128) * Refactor: Update UserResolver and AuthContext for improved async handling and optional fields - Adjusted UserInfo fields to be nullable in UserResolver. - Enhanced async handling in AuthContext and related components. - Improved error handling in Form component. - Cleaned up imports and formatting across multiple files. * Refactor UI components and utility functions - Updated import statements to use consistent single quotes. - Refactored Select, Separator, Sheet, ShimmerButton, Switch, Tabs, and Tooltip components for improved readability and consistency. - Removed the old utility functions file and created a new global utility functions file. - Added new types for file handling and temporary links. - Enhanced drag-and-drop functionality with utility functions. - Cleaned up Layout and UploadPage components for better structure and readability. * Enhance FileCard and FileSection components with compact mode toggle; update Radix UI dependencies and improve file type handling --------- * TempLinks Limit (#130) * TempLink limit + Fixed Translations * Added acceptedFileTypes to TempLinkGenerator * Updated Common i18n * Resend Verify Code Button (#129) * Resend Code Button * underscore * Rework How it Works & About Pages (#131) * Reword How it Works * Rework About Page * Removed Like and Comment (#132) * Feat file expire cron (#134) * feat: add scheduled cleanup for expired resources and update dependencies - Implemented a daily cron job to clean up expired resources from the database and file system. - Added `node-cron` for scheduling tasks and `express-rate-limit` for rate limiting. - Updated `package.json` to include new dependencies and removed duplicates. - Refactored `ResourceResolver` to handle resource expiration and access control more effectively. - Enhanced error handling and logging for resource cleanup operations. - Updated frontend dependencies to their latest versions for improved stability and security. * feat: Enhance subscription and file upload features - Updated SubscriptionResolver to improve error messages for user and subscription not found. - Modified UserResolver to include subscription status in JWT token. - Updated frontend localization files to clarify file size limits for subscribed and non-subscribed users. - Enhanced FileUploader component to enforce file size limits based on subscription status. - Improved TempLinkGenerator to validate file size for non-subscribed users. - Integrated express-rate-limit middleware in storage API to manage upload and request limits. - Refactored multer configuration to include file type and size validation based on user subscription. - Added cleanup logic for expired temporary files in the storage API. - Implemented rate limiting for various routes in the storage API to prevent abuse. * FilePreview v2 (#133) * Updated FilePreviw + FileList * FileSection pagination and Fixes * Added Search Bar * Clear input added --------- * Refactor generateUniqueFilename to use originalName directly and simplify custom name handling * Captcha for Sign Page (#138) * Captcha for Sign Page * Temporilarily Modified e2e test * Inverted logic for keys * Sort By File Type & Author (#136) * Added Audio preview * Filter by type and author * Fixed author filter * Removed useless logs * Antivirus Scan (#137) * Initialization * Working State * Improved UI/UX and translations * Mini fix * Removed useless files * MD5 Hash stored & Exposed on Front (#139) * md5file installed * MD5 Hash is stored and exposed in the UI * Fix lint * Email Code Expiration + fix resend email (#140) * Added the group selection in Front * Grouped Deletion * Drag to select * Grouped Sharing * ScrollBox + Improved drag to select + typo * Group Report * Group Export to ZIP + Removed Group Download * Fix Lint * Cleaning --------- * Fix/frontend build (#143) * fix: correct frontend Dockerfile for production build * fix: remove TypeScript check from frontend build to fix production build --------- * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script (#144) * Fix/frontend dockerfile (#145) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile --------- * Fix/frontend dockerfile (#146) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile * feat: add production environment variables for frontend build --------- * Disable Recaptcha (#147) * Disable Recaptcha * error Lint * error Lint * Chore/final prod config (#148) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile * feat: add production environment variables for frontend build * chore: final production config with storage-api build fix --------- * test (#149) * fix: resolve merge conflicts in Dockerfile and reCAPTCHA files --------- Co-authored-by: Daniel Lemos <118815455+Jeynox@users.noreply.github.com> Co-authored-by: niieeer <clement0201@icloud.com> Co-authored-by: Etimo <gitimo@gmail.com> Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> Co-authored-by: Etimo <86971633+Etimo285@users.noreply.github.com> Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Dev (#165) * Fix/resolve merge conflicts (#162) * Dev (#142) * Refactor file handling components and add FilePreview utility - Introduced FilePreview component for displaying file previews based on file type. - Updated FileCard and FileUploader to utilize FilePreview for better file representation. - Enhanced FileInfoDialog to include file previews. - Improved file type detection logic in fileUtils. - Streamlined imports and component structure across affected files. * Test 1 * Add PDF preview message and integrate translation in FilePreview component * Test 2 * Test 3 * Test 4 * Trad part 2 (#122) * rate limiting for build * autres trad * Revert "Fix Playwright" (#121) * Revert "Fix Playwright" * Test 1 * Test 2 * Test 3 * Test 4 * Test 5 * Test 6 * Trad part 2 (#123) * rate limiting for build * autres trad * oublie autres trad * Temporary Files Upload (#119) * Upload page reworked + Visuals for Temp File Gen * Temp Files * Refacto * Fix Front * Persistence in localstorage * Expiration in Front * Working cleanup * Fixes + Translation * Bigger expiration Icon * Set to 24 hours * FilePreview on the Icons * Underscore (#125) * rate limiting for build * underscore * Password Recovery (#124) * Password Recovery * Translation Fix * Refacto decodeJWT + utils * Refacto 2 * Refacto utils part 2 * Schema Validation + Error handling * Added missing definition in resolver * graphql types updated * Changed Toast config (#126) * File list (#128) * Refactor: Update UserResolver and AuthContext for improved async handling and optional fields - Adjusted UserInfo fields to be nullable in UserResolver. - Enhanced async handling in AuthContext and related components. - Improved error handling in Form component. - Cleaned up imports and formatting across multiple files. * Refactor UI components and utility functions - Updated import statements to use consistent single quotes. - Refactored Select, Separator, Sheet, ShimmerButton, Switch, Tabs, and Tooltip components for improved readability and consistency. - Removed the old utility functions file and created a new global utility functions file. - Added new types for file handling and temporary links. - Enhanced drag-and-drop functionality with utility functions. - Cleaned up Layout and UploadPage components for better structure and readability. * Enhance FileCard and FileSection components with compact mode toggle; update Radix UI dependencies and improve file type handling --------- Co-authored-by: Etimo <gitimo@gmail.com> * TempLinks Limit (#130) * TempLink limit + Fixed Translations * Added acceptedFileTypes to TempLinkGenerator * Updated Common i18n * Resend Verify Code Button (#129) * Resend Code Button * underscore * Rework How it Works & About Pages (#131) * Reword How it Works * Rework About Page * Removed Like and Comment (#132) * Feat file expire cron (#134) * feat: add scheduled cleanup for expired resources and update dependencies - Implemented a daily cron job to clean up expired resources from the database and file system. - Added `node-cron` for scheduling tasks and `express-rate-limit` for rate limiting. - Updated `package.json` to include new dependencies and removed duplicates. - Refactored `ResourceResolver` to handle resource expiration and access control more effectively. - Enhanced error handling and logging for resource cleanup operations. - Updated frontend dependencies to their latest versions for improved stability and security. * feat: Enhance subscription and file upload features - Updated SubscriptionResolver to improve error messages for user and subscription not found. - Modified UserResolver to include subscription status in JWT token. - Updated frontend localization files to clarify file size limits for subscribed and non-subscribed users. - Enhanced FileUploader component to enforce file size limits based on subscription status. - Improved TempLinkGenerator to validate file size for non-subscribed users. - Integrated express-rate-limit middleware in storage API to manage upload and request limits. - Refactored multer configuration to include file type and size validation based on user subscription. - Added cleanup logic for expired temporary files in the storage API. - Implemented rate limiting for various routes in the storage API to prevent abuse. * FilePreview v2 (#133) * Updated FilePreviw + FileList * FileSection pagination and Fixes * Added Search Bar * Clear input added --------- Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> * Refactor generateUniqueFilename to use originalName directly and simplify custom name handling * Captcha for Sign Page (#138) * Captcha for Sign Page * Temporilarily Modified e2e test * Inverted logic for keys * Sort By File Type & Author (#136) * Added Audio preview * Filter by type and author * Fixed author filter * Removed useless logs * Antivirus Scan (#137) * Initialization * Working State * Improved UI/UX and translations * Mini fix * Removed useless files * MD5 Hash stored & Exposed on Front (#139) * md5file installed * MD5 Hash is stored and exposed in the UI * Fix lint * Email Code Expiration + fix resend email (#140) * Added the group selection in Front * Grouped Deletion * Drag to select * Grouped Sharing * ScrollBox + Improved drag to select + typo * Group Report * Group Export to ZIP + Removed Group Download * Fix Lint * Cleaning --------- Co-authored-by: niieeer <clement0201@icloud.com> Co-authored-by: Etimo <gitimo@gmail.com> Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> Co-authored-by: Etimo <86971633+Etimo285@users.noreply.github.com> * Fix/frontend build (#143) * fix: correct frontend Dockerfile for production build * fix: remove TypeScript check from frontend build to fix production build --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script (#144) Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Fix/frontend dockerfile (#145) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Fix/frontend dockerfile (#146) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile * feat: add production environment variables for frontend build --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Disable Recaptcha (#147) * Disable Recaptcha * error Lint * error Lint * Chore/final prod config (#148) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile * feat: add production environment variables for frontend build * chore: final production config with storage-api build fix --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * test (#149) * fix: resolve merge conflicts in Dockerfile and reCAPTCHA files --------- Co-authored-by: Daniel Lemos <118815455+Jeynox@users.noreply.github.com> Co-authored-by: niieeer <clement0201@icloud.com> Co-authored-by: Etimo <gitimo@gmail.com> Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> Co-authored-by: Etimo <86971633+Etimo285@users.noreply.github.com> Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Fix/resolve merge conflicts (#164) * Dev (#142) * Refactor file handling components and add FilePreview utility - Introduced FilePreview component for displaying file previews based on file type. - Updated FileCard and FileUploader to utilize FilePreview for better file representation. - Enhanced FileInfoDialog to include file previews. - Improved file type detection logic in fileUtils. - Streamlined imports and component structure across affected files. * Test 1 * Add PDF preview message and integrate translation in FilePreview component * Test 2 * Test 3 * Test 4 * Trad part 2 (#122) * rate limiting for build * autres trad * Revert "Fix Playwright" (#121) * Revert "Fix Playwright" * Test 1 * Test 2 * Test 3 * Test 4 * Test 5 * Test 6 * Trad part 2 (#123) * rate limiting for build * autres trad * oublie autres trad * Temporary Files Upload (#119) * Upload page reworked + Visuals for Temp File Gen * Temp Files * Refacto * Fix Front * Persistence in localstorage * Expiration in Front * Working cleanup * Fixes + Translation * Bigger expiration Icon * Set to 24 hours * FilePreview on the Icons * Underscore (#125) * rate limiting for build * underscore * Password Recovery (#124) * Password Recovery * Translation Fix * Refacto decodeJWT + utils * Refacto 2 * Refacto utils part 2 * Schema Validation + Error handling * Added missing definition in resolver * graphql types updated * Changed Toast config (#126) * File list (#128) * Refactor: Update UserResolver and AuthContext for improved async handling and optional fields - Adjusted UserInfo fields to be nullable in UserResolver. - Enhanced async handling in AuthContext and related components. - Improved error handling in Form component. - Cleaned up imports and formatting across multiple files. * Refactor UI components and utility functions - Updated import statements to use consistent single quotes. - Refactored Select, Separator, Sheet, ShimmerButton, Switch, Tabs, and Tooltip components for improved readability and consistency. - Removed the old utility functions file and created a new global utility functions file. - Added new types for file handling and temporary links. - Enhanced drag-and-drop functionality with utility functions. - Cleaned up Layout and UploadPage components for better structure and readability. * Enhance FileCard and FileSection components with compact mode toggle; update Radix UI dependencies and improve file type handling --------- Co-authored-by: Etimo <gitimo@gmail.com> * TempLinks Limit (#130) * TempLink limit + Fixed Translations * Added acceptedFileTypes to TempLinkGenerator * Updated Common i18n * Resend Verify Code Button (#129) * Resend Code Button * underscore * Rework How it Works & About Pages (#131) * Reword How it Works * Rework About Page * Removed Like and Comment (#132) * Feat file expire cron (#134) * feat: add scheduled cleanup for expired resources and update dependencies - Implemented a daily cron job to clean up expired resources from the database and file system. - Added `node-cron` for scheduling tasks and `express-rate-limit` for rate limiting. - Updated `package.json` to include new dependencies and removed duplicates. - Refactored `ResourceResolver` to handle resource expiration and access control more effectively. - Enhanced error handling and logging for resource cleanup operations. - Updated frontend dependencies to their latest versions for improved stability and security. * feat: Enhance subscription and file upload features - Updated SubscriptionResolver to improve error messages for user and subscription not found. - Modified UserResolver to include subscription status in JWT token. - Updated frontend localization files to clarify file size limits for subscribed and non-subscribed users. - Enhanced FileUploader component to enforce file size limits based on subscription status. - Improved TempLinkGenerator to validate file size for non-subscribed users. - Integrated express-rate-limit middleware in storage API to manage upload and request limits. - Refactored multer configuration to include file type and size validation based on user subscription. - Added cleanup logic for expired temporary files in the storage API. - Implemented rate limiting for various routes in the storage API to prevent abuse. * FilePreview v2 (#133) * Updated FilePreviw + FileList * FileSection pagination and Fixes * Added Search Bar * Clear input added --------- Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> * Refactor generateUniqueFilename to use originalName directly and simplify custom name handling * Captcha for Sign Page (#138) * Captcha for Sign Page * Temporilarily Modified e2e test * Inverted logic for keys * Sort By File Type & Author (#136) * Added Audio preview * Filter by type and author * Fixed author filter * Removed useless logs * Antivirus Scan (#137) * Initialization * Working State * Improved UI/UX and translations * Mini fix * Removed useless files * MD5 Hash stored & Exposed on Front (#139) * md5file installed * MD5 Hash is stored and exposed in the UI * Fix lint * Email Code Expiration + fix resend email (#140) * Added the group selection in Front * Grouped Deletion * Drag to select * Grouped Sharing * ScrollBox + Improved drag to select + typo * Group Report * Group Export to ZIP + Removed Group Download * Fix Lint * Cleaning --------- Co-authored-by: niieeer <clement0201@icloud.com> Co-authored-by: Etimo <gitimo@gmail.com> Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> Co-authored-by: Etimo <86971633+Etimo285@users.noreply.github.com> * Fix/frontend build (#143) * fix: correct frontend Dockerfile for production build * fix: remove TypeScript check from frontend build to fix production build --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script (#144) Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Fix/frontend dockerfile (#145) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Fix/frontend dockerfile (#146) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile * feat: add production environment variables for frontend build --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Disable Recaptcha (#147) * Disable Recaptcha * error Lint * error Lint * Chore/final prod config (#148) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile * feat: add production environment variables for frontend build * chore: final production config with storage-api build fix --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * test (#149) * fix: resolve merge conflicts in Dockerfile and reCAPTCHA files --------- Co-authored-by: Daniel Lemos <118815455+Jeynox@users.noreply.github.com> Co-authored-by: niieeer <clement0201@icloud.com> Co-authored-by: Etimo <gitimo@gmail.com> Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> Co-authored-by: Etimo <86971633+Etimo285@users.noreply.github.com> Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> --------- Co-authored-by: Daniel Lemos <118815455+Jeynox@users.noreply.github.com> Co-authored-by: niieeer <clement0201@icloud.com> Co-authored-by: Etimo <gitimo@gmail.com> Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> Co-authored-by: Etimo <86971633+Etimo285@users.noreply.github.com> Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Clean up Dockerfile by removing unused ARGs and ENV (#167) Removed environment variable setup for production build. * fix: finalize merge conflict resolution in ReCaptcha and Sign components --------- Co-authored-by: Daniel Lemos <118815455+Jeynox@users.noreply.github.com> Co-authored-by: niieeer <clement0201@icloud.com> Co-authored-by: Etimo <gitimo@gmail.com> Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> Co-authored-by: Etimo <86971633+Etimo285@users.noreply.github.com> Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * fix: finalize merge conflict resolution in ReCaptcha and Sign components (#171) * Yes (#173) * Dev (#172) * Fix/resolve merge conflicts (#162) * Dev (#142) * Refactor file handling components and add FilePreview utility - Introduced FilePreview component for displaying file previews based on file type. - Updated FileCard and FileUploader to utilize FilePreview for better file representation. - Enhanced FileInfoDialog to include file previews. - Improved file type detection logic in fileUtils. - Streamlined imports and component structure across affected files. * Test 1 * Add PDF preview message and integrate translation in FilePreview component * Test 2 * Test 3 * Test 4 * Trad part 2 (#122) * rate limiting for build * autres trad * Revert "Fix Playwright" (#121) * Revert "Fix Playwright" * Test 1 * Test 2 * Test 3 * Test 4 * Test 5 * Test 6 * Trad part 2 (#123) * rate limiting for build * autres trad * oublie autres trad * Temporary Files Upload (#119) * Upload page reworked + Visuals for Temp File Gen * Temp Files * Refacto * Fix Front * Persistence in localstorage * Expiration in Front * Working cleanup * Fixes + Translation * Bigger expiration Icon * Set to 24 hours * FilePreview on the Icons * Underscore (#125) * rate limiting for build * underscore * Password Recovery (#124) * Password Recovery * Translation Fix * Refacto decodeJWT + utils * Refacto 2 * Refacto utils part 2 * Schema Validation + Error handling * Added missing definition in resolver * graphql types updated * Changed Toast config (#126) * File list (#128) * Refactor: Update UserResolver and AuthContext for improved async handling and optional fields - Adjusted UserInfo fields to be nullable in UserResolver. - Enhanced async handling in AuthContext and related components. - Improved error handling in Form component. - Cleaned up imports and formatting across multiple files. * Refactor UI components and utility functions - Updated import statements to use consistent single quotes. - Refactored Select, Separator, Sheet, ShimmerButton, Switch, Tabs, and Tooltip components for improved readability and consistency. - Removed the old utility functions file and created a new global utility functions file. - Added new types for file handling and temporary links. - Enhanced drag-and-drop functionality with utility functions. - Cleaned up Layout and UploadPage components for better structure and readability. * Enhance FileCard and FileSection components with compact mode toggle; update Radix UI dependencies and improve file type handling --------- Co-authored-by: Etimo <gitimo@gmail.com> * TempLinks Limit (#130) * TempLink limit + Fixed Translations * Added acceptedFileTypes to TempLinkGenerator * Updated Common i18n * Resend Verify Code Button (#129) * Resend Code Button * underscore * Rework How it Works & About Pages (#131) * Reword How it Works * Rework About Page * Removed Like and Comment (#132) * Feat file expire cron (#134) * feat: add scheduled cleanup for expired resources and update dependencies - Implemented a daily cron job to clean up expired resources from the database and file system. - Added `node-cron` for scheduling tasks and `express-rate-limit` for rate limiting. - Updated `package.json` to include new dependencies and removed duplicates. - Refactored `ResourceResolver` to handle resource expiration and access control more effectively. - Enhanced error handling and logging for resource cleanup operations. - Updated frontend dependencies to their latest versions for improved stability and security. * feat: Enhance subscription and file upload features - Updated SubscriptionResolver to improve error messages for user and subscription not found. - Modified UserResolver to include subscription status in JWT token. - Updated frontend localization files to clarify file size limits for subscribed and non-subscribed users. - Enhanced FileUploader component to enforce file size limits based on subscription status. - Improved TempLinkGenerator to validate file size for non-subscribed users. - Integrated express-rate-limit middleware in storage API to manage upload and request limits. - Refactored multer configuration to include file type and size validation based on user subscription. - Added cleanup logic for expired temporary files in the storage API. - Implemented rate limiting for various routes in the storage API to prevent abuse. * FilePreview v2 (#133) * Updated FilePreviw + FileList * FileSection pagination and Fixes * Added Search Bar * Clear input added --------- Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> * Refactor generateUniqueFilename to use originalName directly and simplify custom name handling * Captcha for Sign Page (#138) * Captcha for Sign Page * Temporilarily Modified e2e test * Inverted logic for keys * Sort By File Type & Author (#136) * Added Audio preview * Filter by type and author * Fixed author filter * Removed useless logs * Antivirus Scan (#137) * Initialization * Working State * Improved UI/UX and translations * Mini fix * Removed useless files * MD5 Hash stored & Exposed on Front (#139) * md5file installed * MD5 Hash is stored and exposed in the UI * Fix lint * Email Code Expiration + fix resend email (#140) * Added the group selection in Front * Grouped Deletion * Drag to select * Grouped Sharing * ScrollBox + Improved drag to select + typo * Group Report * Group Export to ZIP + Removed Group Download * Fix Lint * Cleaning --------- Co-authored-by: niieeer <clement0201@icloud.com> Co-authored-by: Etimo <gitimo@gmail.com> Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> Co-authored-by: Etimo <86971633+Etimo285@users.noreply.github.com> * Fix/frontend build (#143) * fix: correct frontend Dockerfile for production build * fix: remove TypeScript check from frontend build to fix production build --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script (#144) Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Fix/frontend dockerfile (#145) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Fix/frontend dockerfile (#146) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile * feat: add production environment variables for frontend build --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Disable Recaptcha (#147) * Disable Recaptcha * error Lint * error Lint * Chore/final prod config (#148) * chore: update production config with HTTPS ports, healthcheck fixes, and deployment script * fix: make .env file optional in frontend Dockerfile * feat: add production environment variables for frontend build * chore: final production config with storage-api build fix --------- Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * test (#149) * fix: resolve merge conflicts in Dockerfile and reCAPTCHA files --------- Co-authored-by: Daniel Lemos <118815455+Jeynox@users.noreply.github.com> Co-authored-by: niieeer <clement0201@icloud.com> Co-authored-by: Etimo <gitimo@gmail.com> Co-authored-by: Clément Beaudouin <85437955+niieeer@users.noreply.github.com> Co-authored-by: Etimo <86971633+Etimo285@users.noreply.github.com> Co-authored-by: Ubuntu <ubuntu@vps-cdddcab1.vps.ovh.net> * Fix/resolve merge conflicts (#164) * Dev (#142) * Refactor file handling components and add FilePreview utility - Introduced FilePreview component for displaying file previews based on file type. - Updated FileCard and FileUploader to utilize FilePreview for better file representation. - Enhanced FileInfoDialog to include file previews. - Improved file type detection logic in fileUtils. - Streamlined imports and component structure across affected files. * Test 1 * Add PDF preview message and integrate translation in FilePreview component * Test 2 * Test 3 * Test 4 * Trad part 2 (#122) * rate limiting for build * autres trad * Revert "Fix Playwright" (#121) * Revert "Fix Playwright" * Test 1 * Test 2 * Test 3 * Test 4 * Test 5 * Test 6 * Trad part 2 (#123) * rate limiting for build * autres trad * oublie autres trad * Temporary Files Upload (#119) * Upload page reworked + Visuals for Temp File Gen * Temp Files * Refacto * Fix Front * Persistence in localstorage * Expiration in Front * Working cleanup * Fixes + Translation * Bigger expiration Icon * Set to 24 hours * FilePreview on the Icons * Underscore (#125) * rate limiting for build * underscore * Password Recovery (#124) * Password Recovery * Translation Fix * Refacto decodeJWT + utils * Refacto 2 * Refacto utils part 2 * Schema Validation + Error handling * Added missing definition in resolver * graphql types updated * Changed Toast config (#126) * File list (#128) * Refactor: Update UserResolver and AuthContext for improved async handling and optional fields - Adjusted UserInfo fields to be nullable in UserResolver. - Enhanced async handling in AuthContext and related components. - Improved error handling in Form component. - Cleaned up imports and formatting across multiple files. * Refactor UI components and utility functions - Updated import statements to use consistent single quotes. - Refactored Select, Separator, Sheet, ShimmerButton, Switch, Tabs, and Tooltip components for improved readability and consistency. - Removed the old utility functions file and created a new global utility functions file. - Added new types for file handling and temporary links. - Enhanced drag-and-drop functionality with utility functions. - Cleaned up Layout and UploadPage components for better structure and readability. * Enhance FileCard and FileSection components with compact mode toggle; update Radix UI dependencies and improve file type handling --------- Co-authored-by: Etimo <gitimo@gmail.com> * TempLinks Limit (#130) * TempLink limit + Fixed Translations * Added acceptedFileTypes to TempLinkGenerator * Updated Common i18n * Resend Verify Code Button (#129) * Resend Code Button * underscore * Rework How it Works & About Pages (#131) * Reword How it Works * Rework About Page * Removed Like and Comment (#132) * Feat file expire cron (#134) * feat: add scheduled cleanup for expired resources and update dependencies - Implemented a daily cron job to clean up expired resources from the database and file system. - Added `node-cron` for scheduling tasks and `express-rate-limit` for rate limiting. - Updated `package.json` to include new dependencies and removed duplicates. - Refactored `ResourceResolver` to handle resource expiration and access control more effectively. - Enhanced error handling and logging for resource cleanup operations. - Updated frontend dependencies to their latest versions for improved stability and security. * feat: Enhance subscription and file upload features - Updated SubscriptionResolver to improve error messages for user and subscription not found. - Modified UserResolver to include subscription status in JWT token. - Updated frontend localization files to clarify file size limits for subscribed and non-subscribed users. - Enhanced FileUploader component to enforce file size limits based on subscription status. - Improved TempLinkGenerator to validate file size for non-subscribed users. - Integrated express-rate-limit middleware in storage API to manage upload and request limits. - Refactored multer configuration to include file type and size validation based on user subscription. - Added cleanup logic for expired temporary files in the storage API. - Implemented rate limiting for various routes in the storage API to prevent abuse. * FilePreview v2 (#133) * Updated FilePreviw + FileList * FileSection pagination and Fixes * Added Search Bar * Clear input added --------- Co-authored-by: Clément Beaudouin <8543795…
1 parent 677697a commit 477b62e

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/prod-frontend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ jobs:
3737
file: ./frontend/Dockerfile.prod
3838
build-args: |
3939
BUILD_ENV=PROD
40-
VITE_RECAPTCHA_SITE_KEY=${{ secrets.RECAPTCHA_SITE_KEY }}
40+
VITE_RECAPTCHA_SITE_KEY=${{ secrets.RECAPTCHA_SITE_KEY_PROD }}
4141
push: true
4242
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.PROD_FRONT_IMAGE }}:latest

.github/workflows/staging-frontend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ jobs:
2929
file: ./frontend/Dockerfile.prod
3030
build-args: |
3131
BUILD_ENV=STAGING
32-
VITE_RECAPTCHA_SITE_KEY=${{ secrets.RECAPTCHA_SITE_KEY }}
32+
VITE_RECAPTCHA_SITE_KEY=${{ secrets.RECAPTCHA_SITE_KEY_STAGING }}
3333
push: true
3434
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.STAGING_FRONT_IMAGE }}:latest

frontend/src/components/ReCaptcha/ReCaptcha.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,23 @@ declare global {
2828
}
2929

3030
export const ReCAPTCHA = ({ onSuccess, onError }: ReCAPTCHAProps) => {
31-
const { isDev, isStaging } = useEnv();
31+
const { isDev, isStaging, isProd } = useEnv();
3232
const testSiteKey = '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI';
3333

3434
// Utiliser la clé de test en dev, ou en staging si la clé n'est pas configurée
35+
// En production, la clé doit être fournie via les build args Docker
3536
const resolvedSiteKey =
3637
isDev || (isStaging && !import.meta.env?.VITE_RECAPTCHA_SITE_KEY)
3738
? testSiteKey
3839
: import.meta.env?.VITE_RECAPTCHA_SITE_KEY;
40+
41+
// En production, si la clé n'est pas définie, c'est une erreur de configuration
42+
if (isProd && !resolvedSiteKey) {
43+
console.error(
44+
'reCAPTCHA site key is missing in production. ' +
45+
'Please ensure RECAPTCHA_SITE_KEY secret is configured in GitHub Actions.'
46+
);
47+
}
3948

4049
const containerRef = useRef<HTMLDivElement | null>(null);
4150
const [widgetId, setWidgetId] = useState<number | null>(null);

0 commit comments

Comments
 (0)