2026-02-20 12:27:52 +01:00
|
|
|
/**
|
|
|
|
|
* OxiCloud - App state container
|
|
|
|
|
* Centralized mutable state for app and cached DOM references.
|
|
|
|
|
*/
|
|
|
|
|
|
2026-04-13 15:09:10 +02:00
|
|
|
export const app = {
|
2026-02-20 12:27:52 +01:00
|
|
|
currentView: 'grid',
|
|
|
|
|
currentPath: '',
|
|
|
|
|
currentFolder: null,
|
2026-03-22 22:55:42 +01:00
|
|
|
currentFolderInfo: null,
|
2026-02-20 12:27:52 +01:00
|
|
|
contextMenuTargetFolder: null,
|
|
|
|
|
contextMenuTargetFile: null,
|
|
|
|
|
selectedTargetFolderId: '',
|
|
|
|
|
moveDialogMode: 'file',
|
2026-04-15 22:18:42 +02:00
|
|
|
currentSection: null, // will be defined on first call
|
2026-02-20 12:27:52 +01:00
|
|
|
isSearchMode: false,
|
|
|
|
|
shareDialogItem: null,
|
|
|
|
|
shareDialogItemType: null,
|
2026-02-21 00:19:04 +01:00
|
|
|
notificationShareUrl: null,
|
2026-02-22 20:20:00 -08:00
|
|
|
userHomeFolderId: null,
|
|
|
|
|
userHomeFolderName: null,
|
2026-04-06 10:59:46 +02:00
|
|
|
breadcrumbPath: [], // Array of {id, name} tracking folder navigation hierarchy
|
|
|
|
|
viewFile: null // current file in inline view
|
2026-02-20 12:27:52 +01:00
|
|
|
};
|
|
|
|
|
|
2026-04-13 15:09:10 +02:00
|
|
|
export const appElements = {};
|