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

Try Vue.js #14

Merged
merged 13 commits into from Oct 20, 2018
Merged

Try Vue.js #14

merged 13 commits into from Oct 20, 2018

Conversation

chaspy
Copy link
Owner

@chaspy chaspy commented Oct 20, 2018

Please review and merge first #13

@chaspy chaspy changed the title [WIP]Try vue js Try Vue.js Oct 20, 2018
@chaspy chaspy requested a review from kamontia October 20, 2018 11:31
@chaspy
Copy link
Owner Author

chaspy commented Oct 20, 2018

@kamontia
Implemented data binding using Vue.js 🎉
If you log in, you can see your favorites in http://localhost:4567/top

please review and merge.

app.rb Outdated
result = request.env['omniauth.auth']
@twitter.access_token = result.credentials.token
@twitter.access_token_secret = result.credentials.secret
get '/favorite' do
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think that the pass should be renamed /api/v1.0/favorite because this URL is not used with view rendering.

Copy link
Owner Author

Choose a reason for hiding this comment

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

addressed 58c6ebc

app.rb Outdated
session[:uid] = env['omniauth.auth']['uid']
session[:twitter_oauth] = env['omniauth.auth'][:credentials]

redirect to('/')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since authentication has been completed at this point, i suppose that it should be redirected to /top.

Copy link
Owner Author

Choose a reason for hiding this comment

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

addressed 844f9eb

@chaspy
Copy link
Owner Author

chaspy commented Oct 20, 2018

@kamontia
Thank you for pointing out! addressed! prelase review and merge!

@kamontia
Copy link
Collaborator

Hello @chaspy , Thank you for your effort.

@kamontia kamontia merged commit 38ebd35 into master Oct 20, 2018
@ghost ghost deleted the try-vue-js branch October 20, 2018 14:37
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