Gathering detailed insights and metrics for vue-share-ssr
Gathering detailed insights and metrics for vue-share-ssr
Gathering detailed insights and metrics for vue-share-ssr
Gathering detailed insights and metrics for vue-share-ssr
vue social share based on social-share.js and it supports SSR
npm install vue-share-ssr
Typescript
Module System
Node Version
NPM Version
JavaScript (77.06%)
CSS (21.29%)
Vue (1.65%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
3 Commits
1 Watchers
27 Branches
1 Contributors
Updated on Oct 08, 2019
Latest Version
0.0.4
Package Id
vue-share-ssr@0.0.4
Unpacked Size
903.96 kB
Size
258.15 kB
File Count
16
NPM Version
6.4.1
Node Version
10.14.2
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A Vue social share component based on Share.js and it supports SSR
1npm install vue-share-ssr -S 2# or 3yarn add vue-share-ssr
1import Vue from 'vue' 2import Share from 'vue-share-ssr' 3 4Vue.use(Share) 5 6<share :config="config"></share>
props config
是一个对象,包含如下属性。
url : '', // 网址,默认使用 window.location.href
source : '', // 来源(QQ空间会用到), 默认读取head标签:<meta name="site" content="http://overtrue" />
title : '', // 标题,默认读取 document.title 或者 <meta name="title" content="share.js" />
description : '', // 描述, 默认读取head标签:<meta name="description" content="PHP弱类型的实现原理分析" />
image : '', // 图片, 默认取网页中第一个img标签
sites : ['qzone', 'qq', 'weibo','wechat', 'douban'], // 启用的站点
disabled : ['google', 'facebook', 'twitter'], // 禁用的站点
wechatQrcodeTitle : '微信扫一扫:分享', // 微信二维码提示文字
wechatQrcodeHelper : '<p>微信里点“发现”,扫一下</p><p>二维码便可将本文分享至朋友圈。</p>'
微博、QQ 空间、QQ 好友、微信、腾讯微博、豆瓣、Facebook、Twitter、Linkedin、Google+
plugins/share.js
1import Vue from 'vue' 2import VueShareSSR from 'vue-share-ssr/dist/ssr' 3import 'vue-share-ssr/dist/share.css' 4 5Vue.use(VueShareSSR)
nuxt.config.js
1module.exports = { 2 plugins: [ 3 {src: '@/plugins/share', ssr: false} 4 ] 5}
1<template> 2 <div v-share:myShare="config"></div> 3</template> 4<script> 5 export default { 6 data() { 7 return { 8 config: { 9 url : '', // 网址,默认使用 window.location.href 10 source : '', // 来源(QQ空间会用到), 默认读取head标签:<meta name="site" content="http://overtrue" /> 11 title : '', // 标题,默认读取 document.title 或者 <meta name="title" content="share.js" /> 12 description : '', // 描述, 默认读取head标签:<meta name="description" content="PHP弱类型的实现原理分析" /> 13 image : '', // 图片, 默认取网页中第一个img标签 14 sites : ['qzone', 'qq', 'weibo','wechat', 'douban'], // 启用的站点 15 disabled : ['google', 'facebook', 'twitter'], // 禁用的站点 16 wechatQrcodeTitle : '微信扫一扫:分享', // 微信二维码提示文字 17 wechatQrcodeHelper : '<p>微信里点“发现”,扫一下</p><p>二维码便可将本文分享至朋友圈。</p>' 18 } 19 } 20 } 21 } 22</script>
This content is released under the MIT License.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/3 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
118 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More