ntnyq / vuepress-plugin-social-share

:mega: Social sharing plugin for VuePress
https://social-share.ntnyq.com
MIT License
33 stars 7 forks source link

Add option to create custom sharer #15

Closed D4rkMindz closed 4 years ago

D4rkMindz commented 5 years ago

Hi there I really like your plugin. The only problem is, that i'd like to create a custom sharer for my website (very specific thing). How about we create a NETWORK_DATA list, where the share link is created via a callback? This would enable you to create a custom sharer with even dynamic sharer options (e.g. executing a copy to clipboard function).

Reach out to me if you'd like to implement this with me

issue-label-bot[bot] commented 5 years ago

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.95. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

ntnyq commented 5 years ago

Thanks

Here is my plan:

Custom sharers will be supported via an option extendsNetworks of the plugin.

networksData to create sharers will be the result of Object.assign({}, defaultNetworks, extendsNetworks) so that user can overrides the defaultNetworks, too.

svg icon, network image or image in .vuepress/public will be supported to custom the sharer's icon.

ntnyq commented 4 years ago

Released in v0.1.0

Docs and demos