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

Server, Share, Directory and File browser implementation #35

Merged
merged 12 commits into from
Mar 8, 2018

Conversation

csoni111
Copy link
Member

@csoni111 csoni111 commented Mar 6, 2018

screen shot 2018-03-06 at 5 20 57 pm

As per issue #8

@cpg
Copy link
Member

cpg commented Mar 6, 2018

Should it not inherit the dark "skin"?

@csoni111
Copy link
Member Author

csoni111 commented Mar 6, 2018

Updated the color scheme
simulator screen shot - iphone x - 2018-03-06 at 18 15 20

@csoni111
Copy link
Member Author

csoni111 commented Mar 7, 2018

Shares screen
simulator screen shot - iphone x - 2018-03-07 at 13 00 26

@@ -26,21 +25,21 @@ class SharesTableViewController: BaseUITableViewController {
presenter = SharesPresenter(self)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good. Seems you are very familiar with the MVP Architecture. Looks forward to working more with you on this project. @csoni111

@@ -29,7 +29,7 @@ class DashboardPresenter: BasePresenter {

self.view?.updateRefreshing(isRefreshing: true)
let access_token = LocalStorage.shared.getAccessToken()
FetchServers.shared.fetch(access_token: access_token) { (serverResponse) in
AmahiApi.shared.getServers(access_token: access_token) { (serverResponse) in
Copy link
Member

@codedentwickler codedentwickler Mar 8, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not append the access_token in ApiEndpoint file like this. static func servers() -> String { return "\(ApiConstants.BASE_URL)/paths_to_server/\(?access_token=\(LocalStorage().getAccessToken()!)" }

@csoni111
Copy link
Member Author

csoni111 commented Mar 8, 2018

simulator screen shot - iphone 8 plus - 2018-03-08 at 06 00 33

simulator screen shot - iphone 8 plus - 2018-03-08 at 06 00 09

@csoni111 csoni111 changed the title Server list display implementation Server, Share, Directory and File browser implementation Mar 8, 2018
@csoni111
Copy link
Member Author

csoni111 commented Mar 8, 2018

I have added the following:

  • Server Browser
  • Share Browser
  • File / Directory Browser with last modified timestamp and size in case of files.

Currently I have implemented only REMOTE mode for selecting the server url. AUTO and LOCAL Mode can be implemented after Settings screen is ready. I will cover App Browser in another pr.

@cpg cpg merged commit d724157 into amahi:master Mar 8, 2018
@csoni111 csoni111 deleted the server branch March 8, 2018 01:53
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.

3 participants