27 lines
596 B
JavaScript
27 lines
596 B
JavaScript
|
|
/**
|
||
|
|
* OxiCloud - App state container
|
||
|
|
* Centralized mutable state for app and cached DOM references.
|
||
|
|
*/
|
||
|
|
|
||
|
|
window.app = {
|
||
|
|
currentView: 'grid',
|
||
|
|
currentPath: '',
|
||
|
|
currentFolder: null,
|
||
|
|
contextMenuTargetFolder: null,
|
||
|
|
contextMenuTargetFile: null,
|
||
|
|
selectedTargetFolderId: '',
|
||
|
|
moveDialogMode: 'file',
|
||
|
|
isTrashView: false,
|
||
|
|
isSharedView: false,
|
||
|
|
isFavoritesView: false,
|
||
|
|
isRecentView: false,
|
||
|
|
currentSection: 'files',
|
||
|
|
isSearchMode: false,
|
||
|
|
shareDialogItem: null,
|
||
|
|
shareDialogItemType: null,
|
||
|
|
notificationShareUrl: null
|
||
|
|
};
|
||
|
|
|
||
|
|
window.appElements = {
|
||
|
|
};
|