UNPKG

vue-socials

Version:

Social media share buttons and counts for Vue.js

38 lines (34 loc) 948 B
import { defineComponent } from 'vue'; import BaseSocials from '../../mixins/BaseSocial/BaseSocial.js'; import getSerialisedParams from '../../utils/getSerialisedParams.js'; /** * Hey! * * SHatena component used for Hatena social network * @link https://b.hatena.ne.jp/ */ /** * Share parameters for link */ var SHatena = /* #__PURE__ */defineComponent({ name: 'SHatena', mixins: [BaseSocials('Hatena')], computed: { networkURL: function networkURL() { var BASE_URL = 'http://b.hatena.ne.jp/add'; var shareOptions = this.shareOptions; var url = shareOptions.url, title = shareOptions.title; var serialisedParams = getSerialisedParams({ mode: 'confirm', url: url, title: title }); return "".concat(BASE_URL).concat(serialisedParams); } }, render: function render() { return this.generateComponent(this.networkURL); } }); export default SHatena;