Files, trashbin, public apps use ajax/JSON for the file list
Files app: - removed file list template, now rendering list from JSON response - FileList.addFile/addDir is now FileList.add() and takes a JS map with all required arguments instead of having a long number of function arguments - added unit tests for many FileList operations - fixed newfile.php, newfolder.php and rename.php to return the file's full JSON on success - removed obsolete/unused undo code - removed download_url / loading options, now using Files.getDownloadUrl() for that - server side now uses Helper::getFileInfo() to prepare file JSON response - previews are now client-side only Breadcrumbs are now JS only: - Added BreadCrumb class to handle breadcrumb rendering and events - Added unit test for BreadCrumb class - Moved all relevant JS functions to the BreadCrumb class Public page now uses ajax to load the file list: - Added Helper class in sharing app to make it easier to authenticate and retrieve the file's real path - Added ajax/list.php to retrieve the file list - Fixed FileActions and FileList to work with the ajax list Core: - Fixed file picker dialog to use the same list format as files app
Showing
- apps/files/ajax/list.php 2 additions, 18 deletionsapps/files/ajax/list.php
- apps/files/ajax/newfile.php 3 additions, 13 deletionsapps/files/ajax/newfile.php
- apps/files/ajax/newfolder.php 2 additions, 2 deletionsapps/files/ajax/newfolder.php
- apps/files/ajax/rawlist.php 0 additions, 54 deletionsapps/files/ajax/rawlist.php
- apps/files/ajax/upload.php 21 additions, 26 deletionsapps/files/ajax/upload.php
- apps/files/index.php 3 additions, 38 deletionsapps/files/index.php
- apps/files/js/breadcrumb.js 242 additions, 0 deletionsapps/files/js/breadcrumb.js
- apps/files/js/file-upload.js 6 additions, 55 deletionsapps/files/js/file-upload.js
- apps/files/js/fileactions.js 2 additions, 2 deletionsapps/files/js/fileactions.js
- apps/files/js/filelist.js 407 additions, 333 deletionsapps/files/js/filelist.js
- apps/files/js/files.js 52 additions, 164 deletionsapps/files/js/files.js
- apps/files/lib/app.php 1 addition, 19 deletionsapps/files/lib/app.php
- apps/files/lib/helper.php 51 additions, 43 deletionsapps/files/lib/helper.php
- apps/files/templates/index.php 6 additions, 9 deletionsapps/files/templates/index.php
- apps/files/templates/part.breadcrumb.php 0 additions, 17 deletionsapps/files/templates/part.breadcrumb.php
- apps/files/templates/part.list.php 0 additions, 67 deletionsapps/files/templates/part.list.php
- apps/files/tests/ajax_rename.php 19 additions, 11 deletionsapps/files/tests/ajax_rename.php
- apps/files/tests/js/breadcrumbSpec.js 248 additions, 0 deletionsapps/files/tests/js/breadcrumbSpec.js
- apps/files/tests/js/fileactionsSpec.js 44 additions, 14 deletionsapps/files/tests/js/fileactionsSpec.js
- apps/files/tests/js/filelistSpec.js 770 additions, 28 deletionsapps/files/tests/js/filelistSpec.js
Loading
Please register or sign in to comment