+19
-8
src/views/pds.tsx
+19
-8
src/views/pds.tsx
···
8
import { Modal } from "../components/modal";
9
import { setPDS } from "../components/navbar";
10
import Tooltip from "../components/tooltip";
11
import { localDateFromTimestamp } from "../utils/date";
12
13
const LIMIT = 1000;
···
132
<Tab tab="repos" label="Repositories" />
133
<Tab tab="info" label="Info" />
134
</div>
135
-
<Tooltip text="Firehose">
136
-
<A
137
-
href={`/firehose?instance=wss://${params.pds}`}
138
-
class="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"
139
-
>
140
-
<span class="iconify lucide--radio-tower"></span>
141
-
</A>
142
-
</Tooltip>
143
</div>
144
<div class="flex flex-col gap-1 px-2">
145
<Show when={!location.hash || location.hash === "#repos"}>
···
8
import { Modal } from "../components/modal";
9
import { setPDS } from "../components/navbar";
10
import Tooltip from "../components/tooltip";
11
+
import { addToClipboard } from "../utils/copy";
12
import { localDateFromTimestamp } from "../utils/date";
13
14
const LIMIT = 1000;
···
133
<Tab tab="repos" label="Repositories" />
134
<Tab tab="info" label="Info" />
135
</div>
136
+
<div class="flex gap-1">
137
+
<Tooltip text="Copy PDS">
138
+
<button
139
+
onClick={() => addToClipboard(params.pds)}
140
+
class="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"
141
+
>
142
+
<span class="iconify lucide--copy"></span>
143
+
</button>
144
+
</Tooltip>
145
+
<Tooltip text="Firehose">
146
+
<A
147
+
href={`/firehose?instance=wss://${params.pds}`}
148
+
class="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"
149
+
>
150
+
<span class="iconify lucide--radio-tower"></span>
151
+
</A>
152
+
</Tooltip>
153
+
</div>
154
</div>
155
<div class="flex flex-col gap-1 px-2">
156
<Show when={!location.hash || location.hash === "#repos"}>