UNPKG

vue-socials

Version:

Social media share buttons and counts for Vue.js

39 lines (35 loc) 998 B
import { defineComponent } from 'vue'; import BaseSocials from '../../mixins/BaseSocial/BaseSocial.js'; import getSerialisedParams from '../../utils/getSerialisedParams.js'; /** * Hey! * * SYahoo component used for Yahoo social network * @link http://compose.mail.yahoo.com/ */ /** * Share parameters for link */ var SYahoo = /* #__PURE__ */defineComponent({ name: 'SYahoo', mixins: [BaseSocials('Yahoo')], computed: { networkURL: function networkURL() { var BASE_URL = 'http://compose.mail.yahoo.com/'; var shareOptions = this.shareOptions; var email = shareOptions.email, subject = shareOptions.subject, body = shareOptions.body; var serialisedParams = getSerialisedParams({ to: email, subject: subject, body: body }); return "".concat(BASE_URL).concat(serialisedParams); } }, render: function render() { return this.generateComponent(this.networkURL); } }); export default SYahoo;