alternative tangled frontend (extremely wip)

refactor: set default client to catsky

serenity 47fb3f57 c6579dbd

+16 -6
+4 -2
src/components/Homepage/TrendingFeed.tsx
··· 9 9 import { UnderlineIconRouterLink } from "@/components/Animated/UnderlineIconRouterLink"; 10 10 import { Loading } from "@/components/Icons/Loading"; 11 11 import { useTrendingQuery } from "@/lib/queries/get-trending-from-stitch"; 12 + import { stripTrailingSlashFromUrl } from "@/lib/utils"; 13 + import { DEFAULT_BSKY_CLIENT_URL } from "@/lib/consts"; 12 14 13 15 export const TrendingFeed = () => { 14 16 const { ··· 24 26 <p> 25 27 Powered by{" "} 26 28 <UnderlineLink 27 - href="https://catsky.social/profile/stitch.selfhosted.social" 29 + href={`${stripTrailingSlashFromUrl(DEFAULT_BSKY_CLIENT_URL)}/profile/stitch.selfhosted.social`} 28 30 target="_blank" 29 31 underlineColor="bg-accent" 30 32 className="text-accent" ··· 52 54 <p> 53 55 Powered by{" "} 54 56 <UnderlineLink 55 - href="https://catsky.social/profile/stitch.selfhosted.social" 57 + href={`${stripTrailingSlashFromUrl(DEFAULT_BSKY_CLIENT_URL)}/stitch.selfhosted.social`} 56 58 target="_blank" 57 59 underlineColor="bg-accent" 58 60 className="text-accent"
+5 -3
src/components/Nav/Footer.tsx
··· 1 1 import { LucideHeart } from "lucide-react"; 2 2 import { UnderlineLink } from "@/components/Animated/UnderlinedLink"; 3 3 import { UnderlineRouterLink } from "@/components/Animated/UnderlineRouterLink"; 4 + import { DEFAULT_BSKY_CLIENT_URL } from "@/lib/consts"; 5 + import { stripTrailingSlashFromUrl } from "@/lib/utils"; 4 6 5 7 export const Footer = () => { 6 8 return ( ··· 42 44 />{" "} 43 45 by 44 46 <UnderlineLink 45 - href="https://catsky.social/profile/isuggest.selfce.st" 47 + href={`${stripTrailingSlashFromUrl(DEFAULT_BSKY_CLIENT_URL)}/profile/isuggest.selfce.st`} 46 48 target="_blank" 47 49 > 48 50 Serenity 49 51 </UnderlineLink>{" "} 50 52 for{" "} 51 53 <UnderlineLink 52 - href="https://catsky.social/profile/aimsaimerton.tgirl.gay" 54 + href={`${stripTrailingSlashFromUrl(DEFAULT_BSKY_CLIENT_URL)}/profile/aimsaimerton.tgirl.gay`} 53 55 target="_blank" 54 56 > 55 57 Aims 56 58 </UnderlineLink> 57 59 and{" "} 58 60 <UnderlineLink 59 - href="https://catsky.social/profile/blooym.dev" 61 + href={`${stripTrailingSlashFromUrl(DEFAULT_BSKY_CLIENT_URL)}/profile/blooym.dev`} 60 62 target="_blank" 61 63 > 62 64 Lyna
+3 -1
src/components/Profile/ProfileOverview.tsx
··· 2 2 import { TablerBrandBluesky } from "@/components/Icons/Branding/TablerBrandBluesky"; 3 3 import { Loading } from "@/components/Icons/Loading"; 4 4 import { Avatar } from "@/components/Profile/Avatar"; 5 + import { DEFAULT_BSKY_CLIENT_URL } from "@/lib/consts"; 5 6 import { useAvatarQuery } from "@/lib/queries/get-avatar"; 6 7 import { useProfileQuery } from "@/lib/queries/get-profile"; 7 8 import { useReposQuery } from "@/lib/queries/get-repos"; 8 9 import { useMiniDoc } from "@/lib/queries/resolve-minidoc"; 10 + import { stripTrailingSlashFromUrl } from "@/lib/utils"; 9 11 import { LucideDot, LucideLink, LucideMapPin, LucideUsers } from "lucide-react"; 10 12 import { useState } from "react"; 11 13 ··· 130 132 <UnderlineLink 131 133 underlineColor="bg-text" 132 134 className="text-text" 133 - href={`https://catsky.social/profile/${handle}`} 135 + href={`${stripTrailingSlashFromUrl(DEFAULT_BSKY_CLIENT_URL)}/profile/${handle}`} 134 136 > 135 137 {handle} 136 138 </UnderlineLink>
+4
src/lib/consts.ts
··· 67 67 68 68 export const SLINGSHOT_URL = new URL("https://slingshot.microcosm.blue/"); 69 69 70 + /** 71 + * Default Bluesky client URL. Use the base route, e.g. https://catsky.social/ or https://bsky.app/ or https://witchsky.app/ 72 + * Configurable by client in the future. 73 + */ 70 74 export const DEFAULT_BSKY_CLIENT_URL = new URL("https://catsky.social/");