Full Changelog: v1.3.0...v1.3.1
Changes 5/4/2025 v1.3.1
Modals
- Added a shared
.editor-close-btncomponent for all modals:- File Tags
- User Panel
- TOTP Login & Setup
- Change Password
- Truncated long filenames in the File Tags modal header using CSS
text-overflow: ellipsis. - Resized File Tags modal from 400px to 450px wide (with
max-width: 90vwfallback). - Capped User Panel height at 381px and hidden scrollbars to eliminate layout jumps on hover.
HTML
-
Moved
<div id="loginForm">…</div>out of.main-wrapperso the login form can show independently of the app shell. -
Added
<div id="loadingOverlay"></div>immediately inside<body>to cover the UI during auth checks. -
Inserted inline
<style>in<head>to:- Hide
.main-wrapperby default. - Style
#loadingOverlayas a full-viewport white overlay.
- Hide
-
Added
addUserModal,removeUserModal&renameFileModalmodals tostyle="display:none;"
main.js
- Extracted
initializeApp()helper to centralize post-auth startup (tag search, file list, drag-and-drop, folder tree, upload, trash/restore, admin config). - Updated DOMContentLoaded
checkAuthentication()flow to callinitializeApp()when already authenticated. - Extended
updateAuthenticatedUI()to callinitializeApp()after a fresh login so all UI modules re-hydrate. - Enhanced setup-mode in
checkAuthentication():- Show
#addUserModalas a flex overlay (style.display = 'flex'). - Keep
.main-wrapperhidden until setup completes.
- Show
- Added post-setup handler in the Add-User modal’s save button:
- Hide setup modal.
- Show login form.
- Keep app shell hidden.
- Pre-fill and focus the new username in the login inputs.
auth.js / Auth Logic
- Refactored
checkAuthentication()to handle three states:data.setupremove overlay, hide main UI, show setup modal.data.authenticatedremove overlay, callupdateAuthenticatedUI().- not authenticated remove overlay, show login form, keep main UI hidden.
- Refined
updateAuthenticatedUI()to:- Remove loading overlay.
- Show
.main-wrapperand main operations. - Hide
#loginForm. - Reveal header buttons.
- Initialize dynamic header buttons (restore, admin, user-panel).
- Call
initializeApp()to load all modules after login.