]> source.dussan.org Git - nextcloud-server.git/commit
Use storage id + appframework for ext storage CRUD
authorVincent Petry <pvince81@owncloud.com>
Fri, 31 Oct 2014 10:41:07 +0000 (11:41 +0100)
committerVincent Petry <pvince81@owncloud.com>
Thu, 12 Mar 2015 17:51:02 +0000 (18:51 +0100)
commitce94a998dd5a5801beef7874dd13752095e35de0
tree8d91631f709549c40555dcb74e9976519f895ae2
parent23cc3cc5f2f42166c37fbe03fa62d3dd1dbfe5ed
Use storage id + appframework for ext storage CRUD

- Added StorageConfig class to replace ugly arrays
- Implemented StorageService and StorageController for Global and User
  storages
- Async status checking for storages (from Xenopathic)
- Auto-generate id for external storage configs (not the same as
  storage_id)
- Refactor JS classes for external storage settings, this mostly
  moves/encapsulated existing global event handlers into the
  MountConfigListView class.
- Added some JS unit tests for the external storage UI
29 files changed:
apps/files_external/ajax/addMountPoint.php [deleted file]
apps/files_external/ajax/removeMountPoint.php [deleted file]
apps/files_external/appinfo/app.php
apps/files_external/appinfo/application.php
apps/files_external/appinfo/routes.php
apps/files_external/controller/globalstoragescontroller.php [new file with mode: 0644]
apps/files_external/controller/storagescontroller.php [new file with mode: 0644]
apps/files_external/controller/userstoragescontroller.php [new file with mode: 0644]
apps/files_external/js/dropbox.js
apps/files_external/js/google.js
apps/files_external/js/settings.js
apps/files_external/js/sftp_key.js
apps/files_external/lib/config.php
apps/files_external/lib/notfoundexception.php [new file with mode: 0644]
apps/files_external/lib/storageconfig.php [new file with mode: 0644]
apps/files_external/service/globalstoragesservice.php [new file with mode: 0644]
apps/files_external/service/storagesservice.php [new file with mode: 0644]
apps/files_external/service/userstoragesservice.php [new file with mode: 0644]
apps/files_external/templates/settings.php
apps/files_external/tests/controller/globalstoragescontrollertest.php [new file with mode: 0644]
apps/files_external/tests/controller/storagescontrollertest.php [new file with mode: 0644]
apps/files_external/tests/controller/userstoragescontrollertest.php [new file with mode: 0644]
apps/files_external/tests/js/settingsSpec.js [new file with mode: 0644]
apps/files_external/tests/service/globalstoragesservicetest.php [new file with mode: 0644]
apps/files_external/tests/service/storagesservicetest.php [new file with mode: 0644]
apps/files_external/tests/service/userstoragesservicetest.php [new file with mode: 0644]
apps/files_external/tests/storageconfigtest.php [new file with mode: 0644]
core/js/tests/specHelper.js
tests/karma.config.js