/** * OxiCloud - App state container * Centralized mutable state for app and cached DOM references. */ export const app = { currentView: 'grid', currentPath: '', currentFolder: null, currentFolderInfo: null, contextMenuTargetFolder: null, contextMenuTargetFile: null, selectedTargetFolderId: '', moveDialogMode: 'file', isFilesView: true, isTrashView: false, isSharedView: false, isFavoritesView: false, isRecentView: false, isPhotosView: false, currentSection: 'files', isSearchMode: false, shareDialogItem: null, shareDialogItemType: null, notificationShareUrl: null, userHomeFolderId: null, userHomeFolderName: null, breadcrumbPath: [], // Array of {id, name} tracking folder navigation hierarchy viewFile: null // current file in inline view }; export const appElements = {};