+1
src/utils/templates.ts
+1
src/utils/templates.ts
+10
-2
src/views/record.tsx
+10
-2
src/views/record.tsx
···
6
6
import { Backlinks } from "../components/backlinks.jsx";
7
7
import { JSONValue } from "../components/json.jsx";
8
8
import { agent } from "../components/login.jsx";
9
-
import { setCID, setValidRecord, setValidSchema, validRecord } from "../components/navbar.jsx";
9
+
import { pds, setCID, setValidRecord, setValidSchema, validRecord } from "../components/navbar.jsx";
10
10
11
11
import { didDocCache, getAllBacklinks, LinkData, resolvePDS } from "../utils/api.js";
12
12
import { AtUri, uriTemplates } from "../utils/templates.js";
···
170
170
{(externalLink) => (
171
171
<Tooltip text={`Open on ${externalLink().label}`}>
172
172
<a target="_blank" href={externalLink()?.link}>
173
-
<div class={`${externalLink().icon ?? "i-lucide-external-link"} text-xl`} />
173
+
<div class={`${externalLink().icon ?? "i-lucide-app-window"} text-xl`} />
174
174
</a>
175
175
</Tooltip>
176
176
)}
177
177
</Show>
178
+
<Tooltip text="Record on PDS">
179
+
<a
180
+
href={`https://${pds()}/xrpc/com.atproto.repo.getRecord?repo=${params.repo}&collection=${params.collection}&rkey=${params.rkey}`}
181
+
target="_blank"
182
+
>
183
+
<div class="i-lucide-external-link text-xl" />
184
+
</a>
185
+
</Tooltip>
178
186
<Show when={backlinks()}>
179
187
<Tooltip text={showBacklinks() ? "Show record" : "Show backlinks"}>
180
188
<button onclick={() => setShowBacklinks(!showBacklinks())}>