f2d35ca792
- JWT secret auto-generates and persists to <STORAGE_PATH>/.jwt_secret - Remove setup token: first admin setup is open until system initialized - Fix schema.sql: move CREATE EXTENSION pg_trgm/ltree to top - Update login UI and auth.js to remove setup token fields
31 lines
761 B
JavaScript
Executable File
31 lines
761 B
JavaScript
Executable File
/**
|
|
* 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',
|
|
isFilesView: true,
|
|
isTrashView: false,
|
|
isSharedView: false,
|
|
isFavoritesView: false,
|
|
isRecentView: false,
|
|
currentSection: 'files',
|
|
isSearchMode: false,
|
|
shareDialogItem: null,
|
|
shareDialogItemType: null,
|
|
notificationShareUrl: null,
|
|
userHomeFolderId: null,
|
|
userHomeFolderName: null,
|
|
breadcrumbPath: [] // Array of {id, name} tracking folder navigation hierarchy
|
|
};
|
|
|
|
window.appElements = {
|
|
};
|