forked from pdsls.dev/pdsls
this repo has no description
at main 1.4 kB view raw
1export type AtUri = { repo: string; collection: string; rkey: string }; 2type TemplateFn = (uri: AtUri) => { label: string; link: string; icon?: string }; 3type TemplateMap = Record<string, TemplateFn>; 4 5export const uriTemplates: TemplateMap = { 6 "app.bsky.actor.profile": (uri) => ({ 7 label: "Bluesky", 8 link: `https://bsky.app/profile/${uri.repo}`, 9 icon: "i-tabler-brand-bluesky", 10 }), 11 "app.bsky.feed.post": (uri) => ({ 12 label: "Bluesky", 13 link: `https://bsky.app/profile/${uri.repo}/post/${uri.rkey}`, 14 icon: "i-tabler-brand-bluesky", 15 }), 16 "app.bsky.graph.list": (uri) => ({ 17 label: "Bluesky", 18 link: `https://bsky.app/profile/${uri.repo}/lists/${uri.rkey}`, 19 icon: "i-tabler-brand-bluesky", 20 }), 21 "app.bsky.feed.generator": (uri) => ({ 22 label: "Bluesky", 23 link: `https://bsky.app/profile/${uri.repo}/feed/${uri.rkey}`, 24 icon: "i-tabler-brand-bluesky", 25 }), 26 "fyi.unravel.frontpage.post": (uri) => ({ 27 label: "Frontpage", 28 link: `https://frontpage.fyi/post/${uri.repo}/${uri.rkey}`, 29 }), 30 "com.whtwnd.blog.entry": (uri) => ({ 31 label: "WhiteWind", 32 link: `https://whtwnd.com/${uri.repo}/${uri.rkey}`, 33 }), 34 "com.shinolabs.pinksea.oekaki": (uri) => ({ 35 label: "PinkSea", 36 link: `https://pinksea.art/${uri.repo}/oekaki/${uri.rkey}`, 37 }), 38 "blue.linkat.board": (uri) => ({ 39 label: "Linkat", 40 link: `https://linkat.blue/${uri.repo}`, 41 }), 42};