UNPKG

vue-socials

Version:

Social media share buttons and counts for Vue.js

37 lines (33 loc) 914 B
import { defineComponent } from 'vue'; import BaseSocials from '../../mixins/BaseSocial/BaseSocial.js'; import getSerialisedParams from '../../utils/getSerialisedParams.js'; /** * Hey! * * SSkype component used for Skype social network * @link https://web.skype.com/ */ /** * Share parameters for link */ var SSkype = /* #__PURE__ */defineComponent({ name: 'SSkype', mixins: [BaseSocials('Skype')], computed: { networkURL: function networkURL() { var BASE_URL = 'https://web.skype.com/share'; var shareOptions = this.shareOptions; var url = shareOptions.url, text = shareOptions.text; var serialisedParams = getSerialisedParams({ url: url, text: text }); return "".concat(BASE_URL).concat(serialisedParams); } }, render: function render() { return this.generateComponent(this.networkURL); } }); export default SSkype;