kothariji / SyntaxMeets

Syntaxmeets. Create rooms 🏠 Call your friends πŸ‘¬πŸΌ Sip Chai, β˜• Chat, Create, and CodeπŸ‘¨β€πŸ’». A coding platform to code simultaneously πŸš€ with your friends and design your algorithms on SyntaxPad.πŸ’«βœ¨
https://syntaxmeets.vercel.app
MIT License
168 stars 59 forks source link

Add Code share feature that generates an image of the Code Snippet. #74

Closed AyushShri closed 3 years ago

AyushShri commented 3 years ago

GSSOC21

bishalshaw-164 commented 3 years ago

I'm gssoc'21 participant . I want to work on this issue, Can you assign issue to me ?

AyushShri commented 3 years ago

Hi @bishalshaw-164 , First of all, thank you so much for taking out the time to work on this issue. Definitely:raised_hands:, Please go forward to work on this issue. I am assigning this Issue to you :thumbsup:

Also for my interest, I would like to know the implementation methodology that you might derive to solve this issue before raising a PR. I'll be delighted to learn about your working approach and discussing it before actually implementing it. Happy Contributing! :thumbsup:

bishalshaw-164 commented 3 years ago

Thanks for asking, I want to use toDataURL() method of HTMLCanvasElement which returns an encoded data URI representing the image in the specified format. But now it seems like this issue can't solve by this method.....How can use carbon.sh. API for this issue Can u pls elaborate??

On Tue, Mar 16, 2021 at 8:04 PM Ayush Shrivastav @.***> wrote:

Hi @bishalshaw-164 https://github.com/bishalshaw-164 , First of all, thank you so much for taking out the time to work on this issue. DefinitelyπŸ™Œ, Please go forward to work on this issue. I am assigning this Issue to you πŸ‘

Also for my interest, I would like to know the implementation methodology that you might derive to solve this issue before raising a PR. I'll be delighted to learn about your working approach. Happy Contributing! πŸ‘

β€” You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kothariji/SyntaxMeets/issues/74#issuecomment-800311895, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR5Z7BQKSTULT2ZCR4CDIEDTD5UARANCNFSM4ZH2L5IA .

AyushShri commented 3 years ago

Hi @bishalshaw-164, I was not able to keep up with the reply as I was stuck in some work. Yes, toDataUrL would not be able to solve this because of Canvas restrictions. Also carbon.sh has no API and works only by Embedding Code or just by typing it. So after having a discussion with @kothariji , we came to the conclusion that we can use PasteBin API for the same. ( as of now we are dropping the idea of exporting as an image). Hence you can go ahead and implement the sharing feature with Pastebin. Rest all functionalities will work as discussed earlier in this issue. Later we might shift from PasteBin API to Github Gists once the Oauth gets implemented. For any queries, Feel free to comment. PasteBin API Ref : PASTEBIN API Happy Contributing!

kothariji commented 3 years ago

Hi @bishalshaw-164, any updates ??

subhangi2731 commented 3 years ago

@kothariji please assign this to me then

kothariji commented 3 years ago

Sure @subhangi2731, we are assigning this issue to you.

AyushShri commented 3 years ago

@kothariji please assign this to me then

Thanks for coming forward @subhangi2731 , to solve this issue. Please go forward to work on it.

Also for my interest, I would like to know the implementation methodology that you might derive to solve this issue before raising a PR. I'll be delighted to learn about your working approach. Happy Contributing!

subhangi2731 commented 3 years ago

@kothariji Access to fetch at 'https://pastebin.com/login' from origin 'http://localhost:3000/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

please reply and help me what should I do