Files
Oxicloud/static/js/app/state.js
T
Edouard Vanbelle 6f4abfcec4 refactor(js): avoid use of window.XXX and move to import/export
- 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
2026-04-14 19:05:01 +02:00

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 = {};