6f4abfcec4
- change worker: do not cache html pages (not necessary) - remove use of window.XXX and maximize import/export, this will provide more clarety, show circular dependencies + you will benefit IDE help
33 lines
877 B
JavaScript
33 lines
877 B
JavaScript
/**
|
|
* 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 = {};
|