]> source.dussan.org Git - nextcloud-server.git/commit
Files, trashbin, public apps use ajax/JSON for the file list
authorVincent Petry <pvince81@owncloud.com>
Mon, 28 Oct 2013 19:22:06 +0000 (20:22 +0100)
committerVincent Petry <pvince81@owncloud.com>
Wed, 2 Apr 2014 13:33:47 +0000 (15:33 +0200)
commit0be9de5df558232e12e2f582af5d08e1f488ba90
treede37dea2e23dd28f631948295979980ec774027f
parent268206cec55921d2d0309469ebd5d9533e4f79ee
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
41 files changed:
apps/files/ajax/list.php
apps/files/ajax/newfile.php
apps/files/ajax/newfolder.php
apps/files/ajax/rawlist.php [deleted file]
apps/files/ajax/upload.php
apps/files/index.php
apps/files/js/breadcrumb.js [new file with mode: 0644]
apps/files/js/file-upload.js
apps/files/js/fileactions.js
apps/files/js/filelist.js
apps/files/js/files.js
apps/files/lib/app.php
apps/files/lib/helper.php
apps/files/templates/index.php
apps/files/templates/part.breadcrumb.php [deleted file]
apps/files/templates/part.list.php [deleted file]
apps/files/tests/ajax_rename.php
apps/files/tests/js/breadcrumbSpec.js [new file with mode: 0644]
apps/files/tests/js/fileactionsSpec.js
apps/files/tests/js/filelistSpec.js
apps/files_sharing/ajax/list.php [new file with mode: 0644]
apps/files_sharing/css/public.css
apps/files_sharing/js/public.js
apps/files_sharing/js/share.js
apps/files_sharing/lib/helper.php [new file with mode: 0644]
apps/files_sharing/public.php
apps/files_trashbin/ajax/list.php
apps/files_trashbin/ajax/preview.php
apps/files_trashbin/ajax/undelete.php
apps/files_trashbin/css/trash.css
apps/files_trashbin/index.php
apps/files_trashbin/js/disableDefaultActions.js
apps/files_trashbin/js/filelist.js
apps/files_trashbin/js/trash.js
apps/files_trashbin/lib/helper.php
apps/files_trashbin/templates/index.php
apps/files_trashbin/templates/part.breadcrumb.php [deleted file]
apps/files_trashbin/templates/part.list.php [deleted file]
core/css/styles.css
core/js/js.js
core/js/oc-dialogs.js