From e4bfcdbb6491d20d72cb353fd9f6e06a9d46251b Mon Sep 17 00:00:00 2001 From: dame-is Date: Sat, 27 Dec 2025 16:13:35 -0500 Subject: [PATCH] Update CONTRIBUTING.md and README.md for clarity; remove unused waypoints utility file. --- CONTRIBUTING.md | 2 +- README.md | 6 +- src/utils/waypoints.ts | 159 ----------------------------------------- 3 files changed, 4 insertions(+), 163 deletions(-) delete mode 100644 src/utils/waypoints.ts diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b9901f2..cf15f65 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -96,5 +96,5 @@ Feel free to open an issue for questions or reach out to the maintainer. --- -Thank you for contributing to the ATProto ecosystem! 🎉 +Thank you for contributing to the ATProto ecosystem! diff --git a/README.md b/README.md index 0516f1b..58fc028 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ This is a community tool for the ATProto ecosystem. Contributions are welcome! Want to run your own instance with a custom domain? aturi.to is designed to be forkable! -### 🚀 Quick Start +### Quick Start ```bash # Clone the repository @@ -112,7 +112,7 @@ npm install npm run dev ``` -**📖 See [QUICKSTART.md](QUICKSTART.md) for a complete 10-minute setup guide.** +**See [QUICKSTART.md](QUICKSTART.md) for a complete 10-minute setup guide.** The setup script will help you configure: - Your custom domain @@ -120,7 +120,7 @@ The setup script will help you configure: - Attribution information - Environment variables -### 📚 More Resources +### More Resources - [Quick Start Guide](QUICKSTART.md) - Get running in 10 minutes - [Forking Guide](FORKING.md) - Detailed customization instructions diff --git a/src/utils/waypoints.ts b/src/utils/waypoints.ts deleted file mode 100644 index f6ce0b2..0000000 --- a/src/utils/waypoints.ts +++ /dev/null @@ -1,159 +0,0 @@ -import { ReactNode } from 'react'; - -export type WaypointType = 'post' | 'profile' | 'list'; - -export type Waypoint = { - id: string; - name: string; - description: string; - icon: ReactNode; - getUrl: (handle: string, collection?: string, rkey?: string) => string | null; - supportedTypes: WaypointType[]; -}; - -// SVG Icons for each platform -export const BlueskySVG = () => ( - - - -); - -export const BlackskySVG = () => ( - - - -); - -export const PdslsSVG = () => ( - - - - - - -); - -export const AtpToolsSVG = () => ( - - - -); - -export const LeafletSVG = () => ( - - - -); - -export const RedDwarfSVG = () => ( - - - - -); - -export const WAYPOINT_DESTINATIONS: Record = { - bluesky: { - id: 'bluesky', - name: 'Bluesky', - description: 'The original ATProto client', - icon: , - getUrl: (handle, collection, rkey) => { - if (collection && rkey) { - return `https://bsky.app/profile/${handle}/post/${rkey.replace('app.bsky.feed.post/', '')}`; - } - return `https://bsky.app/profile/${handle}`; - }, - supportedTypes: ['post', 'profile', 'list'], - }, - - blacksky: { - id: 'blacksky', - name: 'Blacksky', - description: 'Alternative ATProto viewer', - icon: , - getUrl: (handle, collection, rkey) => { - if (collection && rkey) { - return `https://blacksky.app/profile/${handle}/post/${rkey}`; - } - return `https://blacksky.app/profile/${handle}`; - }, - supportedTypes: ['post', 'profile'], - }, - - pdsls: { - id: 'pdsls', - name: 'pdsls', - description: 'PDS listing and explorer', - icon: , - getUrl: (handle, collection, rkey) => { - if (collection && rkey) { - return `https://pdsls.dev/at/${handle}/${collection}/${rkey}`; - } - return `https://pdsls.dev/at/${handle}`; - }, - supportedTypes: ['post', 'profile', 'list'], - }, - - atptools: { - id: 'atptools', - name: 'atp.tools', - description: 'Developer tools for ATProto', - icon: , - getUrl: (handle, collection, rkey) => { - if (collection && rkey) { - return `https://atp.tools/record/${handle}/${collection}/${rkey}`; - } - return `https://atp.tools/profile/${handle}`; - }, - supportedTypes: ['post', 'profile', 'list'], - }, - - leaflet: { - id: 'leaflet', - name: 'Leaflet', - description: 'Minimalist ATProto reader', - icon: , - getUrl: (handle, collection, rkey) => { - if (collection && rkey && collection === 'app.bsky.feed.post') { - return `https://leaflet.social/${handle}/${rkey}`; - } - return `https://leaflet.social/${handle}`; - }, - supportedTypes: ['post', 'profile'], - }, - - reddwarf: { - id: 'reddwarf', - name: 'Red Dwarf', - description: 'Compact ATProto browser', - icon: , - getUrl: (handle, collection, rkey) => { - if (collection && rkey) { - return `https://reddwarf.app/@${handle}/${rkey}`; - } - return `https://reddwarf.app/@${handle}`; - }, - supportedTypes: ['post', 'profile'], - }, -}; - -export const WAYPOINT_ORDER = [ - 'bluesky', - 'blacksky', - 'leaflet', - 'reddwarf', - 'pdsls', - 'atptools', -]; - -/** - * Get waypoints available for a specific content type - */ -export function getWaypointsForType(type: WaypointType): Waypoint[] { - return WAYPOINT_ORDER - .map(id => WAYPOINT_DESTINATIONS[id]) - .filter(waypoint => waypoint.supportedTypes.includes(type)); -} - - -- 2.51.2