]> source.dussan.org Git - nextcloud-server.git/commit
Namespacing for FileList, FileActions and trashbin app
authorVincent Petry <pvince81@owncloud.com>
Thu, 8 May 2014 20:06:30 +0000 (22:06 +0200)
committerVincent Petry <pvince81@owncloud.com>
Thu, 15 May 2014 15:51:04 +0000 (17:51 +0200)
commit9d38e3602b2faf37d861729c52690ce51b8fee97
tree5da63d26db4a4e8ec356dee45fc8f7804c6fe38a
parentfb10bf4048aaf5b2a9665fc9dff217c790efe005
Namespacing for FileList, FileActions and trashbin app

- FileList is now an instantiable class
- FileActions is now in namespace
- added App class for trashbin app
- moved trashbin overrides into classes extending FileList
- replaced many static calls with "this." or "self." to make the classes
  reusable/extendable
- new URL parameter "view" to specify which view is shown, for example
  "files" or "trashbin"
- added OC.Util.History utility class in core for handling history
- moved URL handling/routing to OCA.Files.App
- popstate will correctly update the current view and notify the view of
  the URL change so it can update the current dir
- added JS unitt tests for the trashbin app
- fixed public app to work with the new namespaces
37 files changed:
apps/files/appinfo/app.php
apps/files/css/files.css
apps/files/index.php
apps/files/js/app.js
apps/files/js/breadcrumb.js
apps/files/js/file-upload.js
apps/files/js/fileactions.js
apps/files/js/filelist.js
apps/files/js/files.js
apps/files/js/filesummary.js
apps/files/js/navigation.js
apps/files/list.php [new file with mode: 0644]
apps/files/templates/appnavigation.php
apps/files/templates/index.php
apps/files/templates/list.php [new file with mode: 0644]
apps/files/tests/js/appSpec.js [new file with mode: 0644]
apps/files/tests/js/breadcrumbSpec.js
apps/files/tests/js/fileactionsSpec.js
apps/files/tests/js/filelistSpec.js
apps/files/tests/js/filesSpec.js
apps/files/tests/js/filesummarySpec.js
apps/files_sharing/css/public.css
apps/files_sharing/js/public.js
apps/files_sharing/js/share.js
apps/files_sharing/public.php
apps/files_trashbin/appinfo/app.php
apps/files_trashbin/index.php
apps/files_trashbin/js/app.js [new file with mode: 0644]
apps/files_trashbin/js/disableDefaultActions.js [deleted file]
apps/files_trashbin/js/filelist.js
apps/files_trashbin/js/files.js [new file with mode: 0644]
apps/files_trashbin/js/trash.js [deleted file]
apps/files_trashbin/templates/index.php
apps/files_trashbin/tests/js/appSpec.js [new file with mode: 0644]
apps/files_trashbin/tests/js/filelistSpec.js [new file with mode: 0644]
core/js/js.js
tests/karma.config.js