Files
Oxicloud/static/js/app/state.js
T

33 lines
865 B
JavaScript
Raw Normal View History

/**
* OxiCloud - App state container
* Centralized mutable state for app and cached DOM references.
*/
window.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
};
2026-04-07 22:48:59 +02:00
window.appElements = {};