otakustay / react-diff-view

A git diff component
MIT License
870 stars 81 forks source link

Add more examples how to use lib #169

Open Vanish404 opened 2 years ago

Vanish404 commented 2 years ago

Unfortunately, I didn't fully get the idea on how to use the library. How I can build something similar that I can see on the screenshots? Initially, when I went through the documentation I would be say that is possible, but when I try to build the POC I understand that is not possible to create something similar that I can see on the screenshoots, for example I didn't find filename and icons header for each file. I understand that I can create it by using Decorators, but it would be good to have it inside "black box".

Also site isn't working for diff text visualization. I tried to do it locally and on the github pages.

otakustay commented 2 years ago

For some basic use you can now refer to these sandboxes, I'll update docs later:

For the diff text visualization problem, could you provide the text you paste into the textbox?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

catherineluse commented 1 year ago

I think this should be reopened. In my use case, I'm starting with two strings, not a diff. I had a lot of difficulty generating the diff in the correct format. These examples would have helped.

otakustay commented 1 year ago

Reopen this for a planned document improvement

stale[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.