From 2b4a3e0d67f696a1496fa54e9bc67704fc87703a Mon Sep 17 00:00:00 2001 From: ntnyq Date: Wed, 11 Dec 2024 21:02:03 +0800 Subject: [PATCH] feat: add sharer `bluesky` --- .vscode/extensions.json | 8 +++++++- docs/demo/README.md | 10 ++++++---- docs/guide/README.md | 11 ++++++----- src/node/networks.ts | 7 +++++++ 4 files changed, 26 insertions(+), 10 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 1d7ac85..44ddf63 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,3 +1,9 @@ { - "recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"] + "recommendations": [ + "dbaeumer.vscode-eslint", + "esbenp.prettier-vscode", + "ntnyq.eslint-command", + "editorconfig.editorconfig", + "streetsidesoftware.code-spell-checker" + ] } diff --git a/docs/demo/README.md b/docs/demo/README.md index e5ec3c3..07e5304 100644 --- a/docs/demo/README.md +++ b/docs/demo/README.md @@ -54,21 +54,23 @@ Some demos. ```vue ``` - + ## User-customed networks diff --git a/docs/guide/README.md b/docs/guide/README.md index a8b62d2..4b0d532 100644 --- a/docs/guide/README.md +++ b/docs/guide/README.md @@ -86,19 +86,20 @@ Default networks set for all your social share components, no matter it's in glo Currently, networks below are built-in supported: +- bluesky +- douban +- email - facebook - line +- qq +- qrcode - reddit -- email - skype - telegram - twitter +- wechat - weibo -- qq -- douban - whatsapp -- wechat -- qrcode ::: warning Note There is no single, standard way in which browsers/email clients handle mailto links (e.g. subject and body fields may be discarded without a warning). Also there is a risk that popup and ad blockers, anti-virus software etc. may silently block forced opening of mailto links. diff --git a/src/node/networks.ts b/src/node/networks.ts index 41d5392..c9aeb25 100644 --- a/src/node/networks.ts +++ b/src/node/networks.ts @@ -3,6 +3,13 @@ import type { SocialShareNetworkData, SocialSharePluginOptions } from '../shared // @keep-sorted export const BUILT_IN_NETWORKS: SocialShareNetworkData = { + bluesky: { + sharer: 'https://bsky.app/intent/compose?text=@title%20%0A@url', + type: 'popup', + color: '#0057a8', + icon: '', + }, + douban: { sharer: 'https://shuo.douban.com/!service/share?href=@url&name=@title&text=@description&image=@media&starid=0&aid=0&style=11',