chowdown icon indicating copy to clipboard operation
chowdown copied to clipboard

Added option to create and edit recipes in the browser

Open RobinWeitzel opened this issue 5 years ago • 2 comments

Uses the Github API to commit new or changed recipes to the repository. This makes it possible to create and edit recipes without having to open a text editor every time.

A few caveats:

  • Unfortunately, Githubs CORS policy on OAuth requests makes it impossible to use OAuth for authentication.
  • After updating a file, it takes a few minutes for Github to rebuild the site so changes are not immediately visible.
  • Does not work with component recipes

RobinWeitzel avatar Oct 20 '19 16:10 RobinWeitzel

what does this caveat mean for usability?

Unfortunately, Githubs CORS policy on OAuth requests makes it impossible to use OAuth for authentication.

PhilipNelson5 avatar Dec 10 '19 03:12 PhilipNelson5

It means, you have to log in to Github every time you make an edit. I can't request a token from Github to keep the user logged in (without using a third party service which I want to avoid).

For me personally, I usually only add one recipie at a time so in that case it does not matter but if you want to add multiple recipies right after each other it's extra hassle.

RobinWeitzel avatar Dec 10 '19 05:12 RobinWeitzel