From 0a9d332d604990b5a1458100a3630edb92b3431a Mon Sep 17 00:00:00 2001 From: Ryan Date: Sat, 26 Apr 2025 04:33:01 -0400 Subject: [PATCH] refactor(auth): relocate logout handler to main.js --- CHANGELOG.md | 1 + public/js/auth.js | 20 -------------------- public/js/main.js | 21 +++++++++++++++++++++ 3 files changed, 22 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ccfc75..22d4d26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,7 @@ - **Security**: Added `frame-src 'self'` to the Content-Security-Policy header so that the embedded API docs iframe can load from our own origin without relaxing JS restrictions. - **Controller**: Updated `FolderController::shareFolder()` (folderController) to include the gallery-view toggle script block intact, ensuring the “Switch to Gallery View” button works when sharing folders. - **UI (fileListView.js)**: Refactored `renderGalleryView` to remove all inline `onclick=` handlers; switched to using data-attributes and `addEventListener()` for preview, download, edit and rename buttons, fully CSP-compliant. +- Moved logout button handler out of inline `