diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-12-21 16:42:56 +0100 | 
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-12-21 16:42:56 +0100 | 
| commit | a52dd5d7acd06d92e27c8a96fe010963ec5b8275 (patch) | |
| tree | 78c53bb77e39cbe2f7c2376a6bc45a797f40508a /src/config/sharing.ts | |
| parent | 926e1df1e9a7de29134293fe2306c9d9ecb594a6 (diff) | |
chore: add a sharing component
Diffstat (limited to 'src/config/sharing.ts')
| -rw-r--r-- | src/config/sharing.ts | 72 | 
1 files changed, 72 insertions, 0 deletions
| diff --git a/src/config/sharing.ts b/src/config/sharing.ts new file mode 100644 index 0000000..580145e --- /dev/null +++ b/src/config/sharing.ts @@ -0,0 +1,72 @@ +import { t } from '@lingui/macro'; + +const sharingMedia = [ +  { +    id: 'diaspora', +    name: 'Diaspora', +    parameters: { +      content: '', +      image: '', +      title: 'title', +      url: 'url', +    }, +    url: 'https://share.diasporafoundation.org/', +  }, +  { +    id: 'facebook', +    name: 'Facebook', +    parameters: { +      content: '', +      image: '', +      title: '', +      url: 'u', +    }, +    url: 'https://www.facebook.com/sharer/sharer.php', +  }, +  { +    id: 'linkedin', +    name: 'LinkedIn', +    parameters: { +      content: '', +      image: '', +      title: '', +      url: 'url', +    }, +    url: 'https://www.linkedin.com/sharing/share-offsite/', +  }, +  { +    id: 'twitter', +    name: 'Twitter', +    parameters: { +      content: '', +      image: '', +      title: 'text', +      url: 'url', +    }, +    url: 'https://twitter.com/intent/tweet', +  }, +  { +    id: 'journal-du-hacker', +    name: 'Journal du Hacker', +    parameters: { +      content: '', +      image: '', +      title: 'title', +      url: 'url', +    }, +    url: 'https://www.journalduhacker.net/stories/new', +  }, +  { +    id: 'email', +    name: t`Email`, +    parameters: { +      content: 'body', +      image: '', +      title: 'subject', +      url: '', +    }, +    url: 'mailto:', +  }, +]; + +export default sharingMedia; | 
