meteorlxy / vssue

:mailbox: A Vue-powered Issue-based Comment Plugin
https://vssue.js.org
MIT License
779 stars 107 forks source link

[Question] Migrating from WordPress Comments #89

Closed RehanSaeed closed 4 years ago

RehanSaeed commented 4 years ago

I'm trying to migrate my comments from WordPress and have some questions:

  1. Where can I find more information about how an issue in GitHub matches with comments on a particular page on my static site? It doesn't seem to be documented.
  2. Is there any way I can override the user information in a comment, so I can provide an email address instead of a GitHub user? When I port my comments from WordPress, they will all show as if they were coming from me.
  3. How do I secure my GitHub client secret if I am hosting using GitHub pages?
  4. FYI, Vssue is not showing up as a plugin in Gridsome.
meteorlxy commented 4 years ago
  1. Where can I find more information about how an issue in GitHub matches with comments on a particular page on my static site? It doesn't seem to be documented.

See docs for title and issueId: https://vssue.js.org/options/#title

  1. Is there any way I can override the user information in a comment, so I can provide an email address instead of a GitHub user? When I port my comments from WordPress, they will all show as if they were coming from me.

I don't fully understand what you want. I don't think it's possible to migrate your wordpress comments directly to Github issues, because (I guess) the comments are stored in your own database with your own user system.

  1. How do I secure my GitHub client secret if I am hosting using GitHub pages?

Serve your own proxy server, and store the client serect in your proxy server.

See https://vssue.js.org/options/#proxy

  1. FYI, Vssue is not showing up as a plugin in Gridsome.

Uh, yes. Didn't create a plugin for gridsome

RehanSaeed commented 4 years ago

I have an idea that would make it possible to add suport for third party user systems. If Vuess were to look for an XML comment at the beginning of a GitHub comment like so:

<!--{"name":"Muhammad Rehan Saeed", "avatar":"https://secure.gravatar.com/avatar/2b2f900e3ac0f5551dbde728d3bb4954?s=96&d=mm&r=g", "link": "https://rehansaeed.com"}-->

This is the rest of the GitHub comment.

Then the above JSON will not show up in the UI (because it's in an XML comment) but could be parsed by Vuess and then you could replace the avatar image and user name with the ones above. You could also change the link when clicking on the avatar or name to the one above.

In my example above, I'm using Gravatar. This would make porting from WordPress, Ghost, Disqus or any other third party comment system much simpler.

stale[bot] commented 4 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.