Mangas

{ e.preventDefault(); load(); }} >
{#if error} {/if} {#if mangasPage}

{mangasPage.page.total ?? mangasPage.items.length} mangas

{#each mangasPage.items as m (m.id)} {#if expandedId === m.id} {/if} {/each}
Title Sync Chapters Last seen
{m.sync_state} {m.chapter_count} {m.latest_seen_at ? new Date(m.latest_seen_at).toLocaleDateString() : '—'}
{#if chaptersByManga[m.id] === 'loading'}

Loading chapters…

{:else if chaptersByManga[m.id]} {@const view = chaptersByManga[m.id] as ChaptersView} {#if view.items.length === 0}

No chapters.

{:else} {#if view.total > view.items.length}

Showing first {view.items.length} of {view.total} chapters (cap reached).

{/if} {#each view.items as c (c.id)} {/each}
# Title Pages Sync
{c.number} {c.title ?? '—'} {c.page_count} {c.sync_state}
{/if} {/if}
{:else}

Loading…

{/if}