Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/master'
Browse files Browse the repository at this point in the history
Conflicts:
	dist/vue-social-sharing.min.js
  • Loading branch information
nicolasbeauvais committed Feb 18, 2017
2 parents 78b4b1d + 3af3423 commit 491499d
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 4 deletions.
11 changes: 10 additions & 1 deletion dist/vue-social-sharing.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var networks = {
},

pinterest: {
sharer: 'https://pinterest.com/pin/create/button/?url=@url&description=@title'
sharer: 'https://pinterest.com/pin/create/button/?url=@url&media=@media&description=@title'
},

reddit: {
Expand Down Expand Up @@ -138,6 +138,14 @@ var SocialSharing = {
googleKey: {
type: String,
default: undefined
},

/** Pinterest Media URL.
* Specifies the image/media to be used.
*/
media: {
type: String,
default: ''
}
},

Expand Down Expand Up @@ -183,6 +191,7 @@ var SocialSharing = {
.replace(/@description/g, this.description)
.replace(/@quote/g, this.quote)
.replace(/@hashtags/g, this.hashtags)
.replace(/@media/g, this.media)
.replace(/@twitteruser/g, this.twitterUser ? '&via=' + this.twitterUser : '');
},

Expand Down
11 changes: 10 additions & 1 deletion dist/vue-social-sharing.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var networks = {
},

pinterest: {
sharer: 'https://pinterest.com/pin/create/button/?url=@url&description=@title'
sharer: 'https://pinterest.com/pin/create/button/?url=@url&media=@media&description=@title'
},

reddit: {
Expand Down Expand Up @@ -142,6 +142,14 @@ var SocialSharing = {
googleKey: {
type: String,
default: undefined
},

/** Pinterest Media URL.
* Specifies the image/media to be used.
*/
media: {
type: String,
default: ''
}
},

Expand Down Expand Up @@ -187,6 +195,7 @@ var SocialSharing = {
.replace(/@description/g, this.description)
.replace(/@quote/g, this.quote)
.replace(/@hashtags/g, this.hashtags)
.replace(/@media/g, this.media)
.replace(/@twitteruser/g, this.twitterUser ? '&via=' + this.twitterUser : '');
},

Expand Down
2 changes: 1 addition & 1 deletion dist/vue-social-sharing.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion src/social-sharing.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const networks = {
},

pinterest: {
sharer: 'https://pinterest.com/pin/create/button/?url=@url&description=@title'
sharer: 'https://pinterest.com/pin/create/button/?url=@url&media=@media&description=@title'
},

reddit: {
Expand Down Expand Up @@ -109,6 +109,14 @@ export default {
googleKey: {
type: String,
default: undefined
},

/** Pinterest Media URL.
* Specifies the image/media to be used.
*/
media: {
type: String,
default: ''
}
},

Expand Down Expand Up @@ -154,6 +162,7 @@ export default {
.replace(/@description/g, this.description)
.replace(/@quote/g, this.quote)
.replace(/@hashtags/g, this.hashtags)
.replace(/@media/g, this.media)
.replace(/@twitteruser/g, this.twitterUser ? '&via=' + this.twitterUser : '');
},

Expand Down

0 comments on commit 491499d

Please sign in to comment.