Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test/create folder #86

Open
wants to merge 73 commits into
base: dev
Choose a base branch
from
Open

Test/create folder #86

wants to merge 73 commits into from

Conversation

chaoen
Copy link
Contributor

@chaoen chaoen commented May 26, 2016

base on #78

JamieHo3312 and others added 30 commits April 18, 2016 16:27
Remove `angular-breadcrumb` because it doesn't support nested path. And
I re-implement a new breadcrumb component.

* Remove angular-breadcrumb from dependencies
* Add layout/breadcrumb component
* Add a method call to $bucket for update the bucket length
* Add file.css
* Add file.html
When user clicked the bucket on bucket list, we will change the state
whcih is the user selected.

* Add `selectBucket` method to BucketController
* Update the view of bucket component
When the user enter into `file` state, the FileController will set the
path to $file service and get file list. For testing the UI flow, I add
a fake API call to $file service.

* Add `getFiles` method to $file service for fetch file list
* Add `setPaths` method to $file service for set the API prefix
* Add basic view for view the state of FileController
Add file controller properties to file.html for UI display.

* import file styles in file module
* bind properties
* paths.folders is Array
* add `prefix` parameters to api call
Add method to breadcrumb for update the paths and update file
module. This commit can display bucket and files, but not yet
support display folder.

* add `updateFilePath` to $breadcrumb
* add necessary method call to file controller
The source file size is 'bytes', so we need a filter to format size for
display

* Add `src/filters/filesize.js`
jigsawye and others added 30 commits May 18, 2016 16:26
Modify the state of upload service, because the privous are not useable
in transfer. All files(pending, uploading, success...) in state.files
now, and use `status` for control.

* Refactor state tree.
* Refactor methods.
* Update totalSize
The authentication will throw a `token_invalid` fails so add new
condition for handle it.

* Update config/http.config.js
Move all upload object to transfer service, because the transfer should
display upload status and delete status, so the both data must be handle
in same service.

* Move methods to transfer service
* Add some translations
* Move app's updating status to $transfer and renamed to processing
Implement the `none`, `properties`, `transfers` button.

* Add `properties` to layout state
* Add `openTransfers`, `openProperties` and `closeSidePanels` methods
Now the files has additional `checked` property for handle user select
files, and that will let us know how mnay file are selected, then
control th download button is disable or not.

* Format the files list
* Add a `downloadETag` let us know which file is selected for download
Now the bucket length of breadcrumb will keep last length. In previous
version will reset to 0 every time.

* Add a condition for handle this problem.
Add a download method to file service, that method can let user download
selected file.

* Rename `folders` to `prefix`, and it should be string
* Add `download` method to file service.
Move the download action to downloadFile method, and fix the file url
issue.

* Add downloadFile() to file service
* Fix issue of download file url
Add API call to folder service.

* Add createFolder to create folder
* Remove title of folder.html
The privous version file list are not supported folder, this commit just
refactor to support it.

* Add method to sort.js for supported folder sort
* Add icon.js to get icon of file type
* Add click event to file list item
* Add some method to filter files
The folder's etag has same string because the body is empty string
when create folder. This commit just use Key instead of ETag when
select file/folder.

* Use Key instead of ETag.
Test all function in folder controller.
Test all function in folder service.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants