fix: folder trash/delete operations & frontend refactoring
- Fix recursive CTE: add missing RECURSIVE keyword in move_to_trash and restore_from_trash SQL queries (relation 'descendants' does not exist) - Fix folder deletion: delete descendant files before folder to avoid 'duplicate key violates unique constraint idx_files_unique_name_at_root' - Simplify trash model: only mark the folder as trashed, not child files (implicit trash via parent) - Update trash_items view: filter to show only top-level trashed items - Update schema.sql: change files.folder_id FK from ON DELETE SET NULL to ON DELETE CASCADE - Fix trash view icons: folders and files now show correct visual icons (folder-icon, pdf-icon, etc.) in trash view - Frontend refactoring: extract inline CSS/JS from admin.html and profile.html into dedicated external files - Frontend cleanup: replace all inline style attributes with CSS classes - Frontend cleanup: replace style.display JS - Fix recursive CTE: add missing RECURSIVE keyword in move_to_trash and restore_from_trash SQL queries (relation 'descendants' d
This commit is contained in:
+6
-5
@@ -8,7 +8,7 @@
|
||||
<script>if(localStorage.getItem('oxicloud_theme')==='dark')document.documentElement.setAttribute('data-theme','dark');</script>
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
<link rel="icon" href="/favicon.ico" type="image/x-icon">
|
||||
<script src="/js/icons.js" defer></script>
|
||||
<script src="/js/core/icons.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Main layout similar to index.html -->
|
||||
@@ -247,9 +247,10 @@
|
||||
<button id="close-notification" class="close-notification-btn">×</button>
|
||||
</div>
|
||||
|
||||
<script src="/js/i18n.js"></script>
|
||||
<script src="/js/languageSelector.js"></script>
|
||||
<script src="/js/fileSharing.js"></script>
|
||||
<script src="/js/core/i18n.js"></script>
|
||||
<script src="/js/core/languageSelector.js"></script>
|
||||
<script src="/js/core/formatters.js"></script>
|
||||
<script src="/js/features/sharing/fileSharing.js"></script>
|
||||
<script>
|
||||
// Auth check — redirect to login if no token
|
||||
(function() {
|
||||
@@ -306,6 +307,6 @@
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
<script src="/js/shared.js"></script>
|
||||
<script src="/js/views/shared/shared.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user