tangled
alpha
login
or
join now
vielle.dev
/
pdsls
forked from
pds.ls/pdsls
0
fork
atom
atproto explorer
0
fork
atom
overview
issues
pulls
pipelines
only show buttons in record view
juli.ee
5 months ago
00dffd35
10b1dfce
verified
This commit was signed with the committer's
known signature
.
juli.ee
SSH Key Fingerprint:
SHA256:mBrT4x0JdzLpbVR95g1hjI1aaErfC02kmLRkPXwsYCk=
+32
-30
1 changed file
expand all
collapse all
unified
split
src
components
json.tsx
+32
-30
src/components/json.tsx
···
147
147
<VideoPlayer did={repo} cid={blob.ref.$link} />
148
148
</ErrorBoundary>
149
149
</Show>
150
150
-
<span
151
151
-
classList={{
152
152
-
"flex items-center justify-between gap-1": true,
153
153
-
"flex-col": !hide(),
154
154
-
}}
155
155
-
>
156
156
-
<Show when={blob.mimeType.startsWith("image/") || blob.mimeType === "video/mp4"}>
157
157
-
<Tooltip text={hide() ? "Show" : "Hide"}>
158
158
-
<button
159
159
-
onclick={() => setHide(!hide())}
160
160
-
class={`${!hide() ? "-mt-1 -ml-0.5" : ""} flex items-center rounded-lg p-1 hover:bg-neutral-200 active:bg-neutral-300 dark:hover:bg-neutral-700 dark:active:bg-neutral-600`}
161
161
-
>
162
162
-
<span
163
163
-
class={`iconify text-base ${hide() ? "lucide--eye-off" : "lucide--eye"}`}
164
164
-
></span>
165
165
-
</button>
166
166
-
</Tooltip>
167
167
-
</Show>
168
168
-
<Show when={pds()}>
169
169
-
<Tooltip text="Blob on PDS">
170
170
-
<a
171
171
-
href={`https://${pds()}/xrpc/com.atproto.sync.getBlob?did=${repo}&cid=${blob.ref.$link}`}
172
172
-
target="_blank"
173
173
-
class={`${!hide() ? "-mb-1 -ml-0.5" : ""} flex items-center rounded-lg p-1 hover:bg-neutral-200 active:bg-neutral-300 dark:hover:bg-neutral-700 dark:active:bg-neutral-600`}
174
174
-
>
175
175
-
<span class="iconify lucide--external-link text-base"></span>
176
176
-
</a>
177
177
-
</Tooltip>
178
178
-
</Show>
179
179
-
</span>
150
150
+
<Show when={params.rkey}>
151
151
+
<span
152
152
+
classList={{
153
153
+
"flex items-center justify-between gap-1": true,
154
154
+
"flex-col": !hide(),
155
155
+
}}
156
156
+
>
157
157
+
<Show when={blob.mimeType.startsWith("image/") || blob.mimeType === "video/mp4"}>
158
158
+
<Tooltip text={hide() ? "Show" : "Hide"}>
159
159
+
<button
160
160
+
onclick={() => setHide(!hide())}
161
161
+
class={`${!hide() ? "-mt-1 -ml-0.5" : ""} flex items-center rounded-lg p-1 hover:bg-neutral-200 active:bg-neutral-300 dark:hover:bg-neutral-700 dark:active:bg-neutral-600`}
162
162
+
>
163
163
+
<span
164
164
+
class={`iconify text-base ${hide() ? "lucide--eye-off" : "lucide--eye"}`}
165
165
+
></span>
166
166
+
</button>
167
167
+
</Tooltip>
168
168
+
</Show>
169
169
+
<Show when={pds()}>
170
170
+
<Tooltip text="Blob on PDS">
171
171
+
<a
172
172
+
href={`https://${pds()}/xrpc/com.atproto.sync.getBlob?did=${repo}&cid=${blob.ref.$link}`}
173
173
+
target="_blank"
174
174
+
class={`${!hide() ? "-mb-1 -ml-0.5" : ""} flex items-center rounded-lg p-1 hover:bg-neutral-200 active:bg-neutral-300 dark:hover:bg-neutral-700 dark:active:bg-neutral-600`}
175
175
+
>
176
176
+
<span class="iconify lucide--external-link text-base"></span>
177
177
+
</a>
178
178
+
</Tooltip>
179
179
+
</Show>
180
180
+
</span>
181
181
+
</Show>
180
182
</span>
181
183
{rawObj}
182
184
</>