diff --git a/src/components/error.tsx b/src/components/error.tsx index 4d9e430..248a0c2 100644 --- a/src/components/error.tsx +++ b/src/components/error.tsx @@ -6,10 +6,12 @@ import { SmartSearchBar } from "./smartSearchBar"; export default function ShowError({ error }: { error: Error }) { const router = useRouter(); return ( -
+
-
Error: {error.message}
+
+ Error: {error.message} +
{!View && (
- if you see this message please bug me to add a custom view for this - repo type + This View is not yet implemented. If you have a need, state your + case{" "} + + @natalie.sh +
)} +
+ + at://{handle} + + + /{collection} + + /{rkey} +
- {View && View} - JSON - JSON (Text) + {View && ( + + View + + )} + + JSON + + + JSON (Text) + {View && ( diff --git a/src/routes/at:/$handle/$collection.index.lazy.tsx b/src/routes/at:/$handle/$collection.index.lazy.tsx index 4e64fb9..175ad5f 100644 --- a/src/routes/at:/$handle/$collection.index.lazy.tsx +++ b/src/routes/at:/$handle/$collection.index.lazy.tsx @@ -116,7 +116,7 @@ function RouteComponent() { } if ((isLoading && !cursor) || !records) { - return ; + return ; } return ( diff --git a/src/routes/counter.lazy.tsx b/src/routes/counter.lazy.tsx index a8539f5..ed30453 100644 --- a/src/routes/counter.lazy.tsx +++ b/src/routes/counter.lazy.tsx @@ -207,7 +207,7 @@ export default function RouteComponent() { } = stats; return ( -
+
+
+ at://danabra.mov +
+ , + +
+ at://kot.pink/app.bsky.feed.post +
+ , + +
+ at://komaniecki.bsky.social +
+ , + +
+ at://why.bsky.team/app.bsky.feed.generator +
+ , + +
+ at://jay.bsky.social +
+ , + +
+ at://pippy.bsky.social +
+ , + +
+ at://ngerakines.me/blue.badge.collection +
+ , +]; export const Route = createLazyFileRoute("/")({ component: Index, @@ -9,8 +83,13 @@ export const Route = createLazyFileRoute("/")({ export default function Index() { useDocumentTitle("atp.tools"); + + const randomExamples = useMemo(() => { + return [...examples].sort(() => Math.random() - 0.5).slice(0, 2); + }, []); + return ( -
+
{/* Header section */} @@ -24,33 +103,12 @@ export default function Index() {
-
-
- Try: +
+
+ Try:{" "}
-
- -
- at://danabra.mov -
- - - -
- at://kot.pink/app.bsky.feed.post -
- +
+ {randomExamples}