Skip to content

Commit

Permalink
feat(share): replace Evernote with Threads
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed Sep 26, 2024
1 parent c811567 commit 0e343fc
Showing 1 changed file with 18 additions and 21 deletions.
39 changes: 18 additions & 21 deletions src/components/widget/share.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts">
export enum SocialMedia {
Wechat = 'wechat',
Weibo = 'weibo',
Twitter = 'twitter',
Threads = 'threads',
Weibo = 'weibo',
douban = 'douban',
Evernote = 'evernote',
Facebook = 'facebook',
LinkedIn = 'linkedin'
}
Expand Down Expand Up @@ -81,6 +81,20 @@
)
}
},
{
id: SocialMedia.Threads,
name: 'Threads',
class: 'threads',
url: (params) => {
return (
`https://www.threads.net/intent/post?` +
qs.stringify({
url: params.url,
text: params.title
})
)
}
},
{
id: SocialMedia.Facebook,
name: 'Facebook',
Expand Down Expand Up @@ -117,23 +131,6 @@
return (
// https://www.douban.com/service/sharebutton
`https://www.douban.com/recommend/?` +
qs.stringify({
url: params.url,
title: params.title
// image: '',
// updated: '',
// bm: ''
})
)
}
},
{
id: SocialMedia.Evernote,
name: 'Evernote',
class: 'evernote',
url: (params) => {
return (
`https://www.evernote.com/clip.action?` +
qs.stringify({
url: params.url,
title: params.title
Expand Down Expand Up @@ -252,8 +249,8 @@
&.douban:hover {
background-color: $douban-primary !important;
}
&.evernote:hover {
background-color: $evernote-primary !important;
&.threads:hover {
background-color: $threads-primary !important;
}
&.twitter:hover {
background-color: $twitter-x-primary !important;
Expand Down

0 comments on commit 0e343fc

Please sign in to comment.