diff --git a/docs/content/2.usage/3.supported-networks.md b/docs/content/2.usage/3.supported-networks.md index 5f6d1a1..4e14de9 100644 --- a/docs/content/2.usage/3.supported-networks.md +++ b/docs/content/2.usage/3.supported-networks.md @@ -22,6 +22,7 @@ Some networks have aliases that can be used in place of the main name. All suppo | `pinterest` | | ✅ | ✔️ | ❌ | ❌ | ✔️ | | `reddit` | | ✅ | ✔️ | ❌ | ❌ | ❌ | | `bluesky` | | ✅ | ❌ | ❌ | ❌ | ❌ | +| `threads` | | ✅ | ✔️ | ❌ | ❌ | ❌ | | `pocket` | | ✅ | ❌ | ❌ | ❌ | ❌ | | `whatsapp` | | ✅ | ✔️ | ❌ | ❌ | ❌ | | `telegram` | | ✅ | ✔️ | ❌ | ❌ | ❌ | diff --git a/src/runtime/networks/threads.ts b/src/runtime/networks/threads.ts new file mode 100644 index 0000000..daac2cf --- /dev/null +++ b/src/runtime/networks/threads.ts @@ -0,0 +1,15 @@ +import type { Network } from '../types' + +export const threads: Network = { + name: 'Threads', + shareUrl: 'https://www.threads.net/intent/post?url=[u]', + args: { + title: '&text=[t]', + }, + icon: { + // iconify: ri:threads-fill + viewBox: '0 0 24 24', + path: 'M16.705 11.108c-.162-2.987-1.794-4.697-4.534-4.714c-1.652-.01-3.033.69-3.879 1.973L9.8 9.4c.634-.961 1.635-1.16 2.36-1.153c.903.006 1.583.268 2.024.78c.32.372.535.887.642 1.536q-1.202-.204-2.59-.125c-2.606.15-4.28 1.67-4.168 3.781c.057 1.071.59 1.993 1.502 2.595c.77.509 1.764.757 2.795.701c1.363-.075 2.432-.594 3.178-1.545c.566-.722.924-1.658 1.082-2.836c.65.392 1.13.907 1.397 1.527c.452 1.054.478 2.786-.935 4.198c-1.238 1.236-2.726 1.772-4.975 1.788c-2.495-.018-4.382-.819-5.608-2.378c-1.15-1.46-1.743-3.57-1.765-6.269c.022-2.7.616-4.809 1.765-6.27c1.226-1.559 3.113-2.359 5.608-2.377c2.513.019 4.432.822 5.706 2.39c.625.768 1.095 1.734 1.406 2.86l1.766-.47c-.377-1.387-.969-2.582-1.774-3.573c-1.633-2.01-4.033-3.039-7.11-3.06c-3.071.021-5.432 1.055-7.019 3.071c-1.411 1.795-2.14 4.306-2.164 7.436c.024 3.13.753 5.627 2.164 7.422c1.587 2.016 3.96 3.05 7.03 3.071c2.731-.019 4.655-.734 6.24-2.317c2.075-2.073 2.012-4.67 1.329-6.264c-.525-1.225-1.57-2.206-2.98-2.81m-4.438 4.557c-1.142.064-2.328-.448-2.387-1.546c-.043-.814.58-1.722 2.457-1.83a9.4 9.4 0 0 1 2.533.174c-.216 2.702-1.485 3.14-2.603 3.202', + }, + color: '#000000', +} diff --git a/src/runtime/networksIndex.ts b/src/runtime/networksIndex.ts index 7c7be10..08c9100 100644 --- a/src/runtime/networksIndex.ts +++ b/src/runtime/networksIndex.ts @@ -10,6 +10,7 @@ import { pocket } from './networks/pocket' import { reddit } from './networks/reddit' import { skype } from './networks/skype' import { telegram } from './networks/telegram' +import { threads } from './networks/threads' import { viber } from './networks/viber' import { whatsapp } from './networks/whatsapp' import { x } from './networks/x' @@ -22,6 +23,7 @@ export const networksBase: NetworksIndex = { pinterest, reddit, bluesky, + threads, // Read it later pocket, // Instant Messaging