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/upload status #83

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

Test/upload status #83

wants to merge 67 commits into from

Conversation

chaoen
Copy link
Contributor

@chaoen chaoen commented May 25, 2016

base on #71

work in progress

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 29 commits May 18, 2016 14:28
The current breadcrumb have loop bugs, this commit just fixed it.

* Should reset paths when upload file path
* Should update path when enter bucket list
Add layout controller & layout service for control transfer display
state.

* Apply the UI design
* Add LayoutController & LayoutService
* Add toggleTransfer() to the transfer button click event
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
Testing all function in transfer controller.
TEST all function in service.
@chaoen
Copy link
Contributor Author

chaoen commented May 26, 2016

DONE

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.

None yet

2 participants