Skip to content

Commit

Permalink
feat: support line/bluesky/hatenabookmark
Browse files Browse the repository at this point in the history
  • Loading branch information
memory-lovers committed Apr 3, 2024
1 parent fe8432d commit e281b50
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/runtime/networks/bluesky.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import type { Network } from '../types'

export const bluesky: Network = {
name: 'bluesky',
shareUrl: 'https://bsky.app/intent/compose?text=[u]',
icon: {
// iconify: ri:bluesky-fill
viewBox: '0 0 24 24',
path: 'M12 11.388c-.906-1.761-3.372-5.044-5.665-6.662c-2.197-1.55-3.034-1.283-3.583-1.033C2.116 3.978 2 4.955 2 5.528c0 .575.315 4.709.52 5.4c.68 2.28 3.094 3.05 5.32 2.803c-3.26.483-6.157 1.67-2.36 5.898c4.178 4.325 5.726-.927 6.52-3.59c.794 2.663 1.708 7.726 6.444 3.59c3.556-3.59.977-5.415-2.283-5.898c2.225.247 4.64-.523 5.319-2.803c.205-.69.52-4.825.52-5.399c0-.575-.116-1.55-.752-1.838c-.549-.248-1.386-.517-3.583 1.033c-2.293 1.621-4.76 4.904-5.665 6.664',
},
color: '#1185FE',
}
12 changes: 12 additions & 0 deletions src/runtime/networks/hatenabookmark.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import type { Network } from '../types'

export const hatenabookmark: Network = {
name: 'hatenabookmark',
shareUrl: 'https://b.hatena.ne.jp/entry?url=[u]',
icon: {
// iconify: cib:hatena-bookmark
viewBox: '0 0 32 32',
path: 'M27.292 0A4.703 4.703 0 0 1 32 4.708v22.584A4.703 4.703 0 0 1 27.292 32H4.708A4.703 4.703 0 0 1 0 27.292V4.708A4.703 4.703 0 0 1 4.708 0zm-4.937 19.292a1.88 1.88 0 0 0-1.881 1.88c0 1.041.839 1.885 1.881 1.885c1.041 0 1.88-.86 1.88-1.901a1.875 1.875 0 0 0-1.88-1.875zm-10.876 3.703c1.6 0 2.74-.057 3.443-.156c.699-.115 1.297-.297 1.761-.552a3.234 3.234 0 0 0 1.359-1.317c.319-.568.48-1.224.48-1.975c0-1.041-.281-1.869-.839-2.495c-.563-.64-1.323-.979-2.323-1.057c.88-.24 1.541-.599 1.943-1.083c.416-.459.619-1.1.619-1.896c0-.641-.135-1.183-.4-1.683a3.099 3.099 0 0 0-1.177-1.156c-.459-.261-.98-.423-1.62-.543c-.62-.099-1.719-.161-3.297-.161H7.537v13.985h3.943zm.985-5.579c.937 0 1.577.115 1.916.349c.36.24.521.661.521 1.24c0 .541-.183.921-.557 1.14c-.365.24-1.021.339-1.923.339h-1.343v-3.063h1.4zm11.541.944V8.943h-3.281v9.417zm-12.104-6.256c.948 0 1.577.109 1.905.323c.329.213.491.579.491 1.104c0 .511-.172.865-.516 1.073c-.355.208-1 .313-1.937.313h-.761v-2.813z',
},
color: '#00A4DE',
}
12 changes: 12 additions & 0 deletions src/runtime/networks/line.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import type { Network } from '../types'

export const line: Network = {
name: 'line',
shareUrl: 'https://line.me/R/share?text=[u]',
icon: {
// iconify: simple-icons:line
viewBox: '0 0 24 24',
path: 'M19.365 9.863a.631.631 0 0 1 0 1.261H17.61v1.125h1.755a.63.63 0 1 1 0 1.259h-2.386a.631.631 0 0 1-.627-.629V8.108c0-.345.282-.63.63-.63h2.386a.63.63 0 0 1-.003 1.26H17.61v1.125zm-3.855 3.016a.63.63 0 0 1-.631.627a.618.618 0 0 1-.51-.25l-2.443-3.317v2.94a.63.63 0 0 1-1.257 0V8.108a.627.627 0 0 1 .624-.628c.195 0 .375.104.495.254l2.462 3.33V8.108c0-.345.282-.63.63-.63c.345 0 .63.285.63.63zm-5.741 0a.632.632 0 0 1-.631.629a.631.631 0 0 1-.627-.629V8.108c0-.345.282-.63.63-.63c.346 0 .628.285.628.63zm-2.466.629H4.917a.634.634 0 0 1-.63-.629V8.108c0-.345.285-.63.63-.63c.348 0 .63.285.63.63v4.141h1.756a.63.63 0 0 1 0 1.259M24 10.314C24 4.943 18.615.572 12 .572S0 4.943 0 10.314c0 4.811 4.27 8.842 10.035 9.608c.391.082.923.258 1.058.59c.12.301.079.766.038 1.08l-.164 1.02c-.045.301-.24 1.186 1.049.645c1.291-.539 6.916-4.078 9.436-6.975C23.176 14.393 24 12.458 24 10.314',
},
color: '#06C655',
}
6 changes: 6 additions & 0 deletions src/runtime/networksIndex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import { whatsapp } from './networks/whatsapp'
import { telegram } from './networks/telegram'
import { skype } from './networks/skype'
import { email } from './networks/email'
import { line } from './networks/line'
import { bluesky } from './networks/bluesky'
import { hatenabookmark } from './networks/hatenabookmark'

export const networksIndex: NetworksIndex = {
// Social Networks
Expand All @@ -18,6 +21,9 @@ export const networksIndex: NetworksIndex = {
linkedin,
pinterest,
reddit,
line,
bluesky,
hatenabookmark,
// Read it later
pocket,
// Instant Messaging
Expand Down

0 comments on commit e281b50

Please sign in to comment.