-
Notifications
You must be signed in to change notification settings - Fork 130
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
Add authentication & reactions #31
Add authentication & reactions #31
Conversation
@jvm-odoo Amazing Work 😀. I guess we should also update the readme.md with this that how can user create Github client secret and id and what should be the redirect url. |
return ""; | ||
} | ||
}, []); | ||
const reactionsContainer = useRef(null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why useRef here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To force the reactions to refresh when adding/removing one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, so we call API again to get the reactions or we update it manually
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I managed to use minimum API calls as possible in order to improve performances
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look Good. I guess if you could update the readme.md with these changes and create a new version of the release.
I will update the readme asap! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM😀
Added authentication & reactions
Documentation need to be updated to explain how to set this thing up (create a github app with write access on the blog repository, not OAuth app. And with homepage & callback =
https://username.github.io/react-blog-github/
)Things to note:
Finally, it improves some things & delete unused files.
Extra note: I was forced to put
https://username.github.io/react-blog-github/
as callback because github doesn't support # in urlsWorking example: https://jvm-odoo.github.io/react-blog-github/#/
If you see any thing to improve do not hesitate to comment!
Related issue #26