blob: 4be69d02fd4dfe9c29848ea2b58af92045c64363 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<script lang="ts">
interface Props {
data: any;
}
let { data }: Props = $props();
</script>
<ul>
{#each data.data as chapter}
<li>
{#if chapter.attributes.volume}
Vol. {chapter.attributes.volume}
{/if}
Ch. {chapter.attributes.chapter}
<span class="opaque">|</span>
<a
href={`https://mangadex.org/chapter/${chapter.id}`}
target="_blank"
rel="noopener noreferrer"
>
{chapter.attributes.title || 'Read'}
</a>
</li>
{/each}
</ul>
|