diff --git a/backend/Cargo.lock b/backend/Cargo.lock index a56bb91..31d4548 100644 --- a/backend/Cargo.lock +++ b/backend/Cargo.lock @@ -1558,7 +1558,7 @@ checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4" [[package]] name = "mangalord" -version = "0.120.0" +version = "0.121.0" dependencies = [ "anyhow", "argon2", diff --git a/backend/Cargo.toml b/backend/Cargo.toml index ef2f1f7..e600477 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mangalord" -version = "0.120.0" +version = "0.121.0" edition = "2021" default-run = "mangalord" diff --git a/frontend/package.json b/frontend/package.json index 246822a..48dcdab 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "mangalord-frontend", - "version": "0.120.0", + "version": "0.121.0", "private": true, "type": "module", "scripts": { diff --git a/frontend/src/routes/library/+page.svelte b/frontend/src/routes/library/+page.svelte index 5d26e0d..b8e2095 100644 --- a/frontend/src/routes/library/+page.svelte +++ b/frontend/src/routes/library/+page.svelte @@ -7,6 +7,8 @@ import CollectionsGrid from '$lib/components/CollectionsGrid.svelte'; import PageTagsList from '$lib/components/PageTagsList.svelte'; import HistoryList from '$lib/components/HistoryList.svelte'; + import ListRowSkeleton from '$lib/components/ListRowSkeleton.svelte'; + import MangaGridSkeleton from '$lib/components/MangaGridSkeleton.svelte'; let { data } = $props(); @@ -66,37 +68,42 @@ /> -{#if !data.authenticated} -

- Sign in to see your library. -

-{:else if data.error} - -{:else if activeTab === 'bookmarks'} - {#if data.bookmarks.length === 0} -

No bookmarks yet.

+{#await data.result} + {#if activeTab === 'collections'} + {:else} - + {/if} -{:else if activeTab === 'collections'} - {#if data.collections.length === 0} -

- You don't have any collections yet. Open any manga and use - Add to collection to start one. +{:then r} + {#if !r.authenticated} +

+ Sign in to see your library.

+ {:else if r.error} + + {:else if activeTab === 'bookmarks'} + {#if r.bookmarks.length === 0} +

No bookmarks yet.

+ {:else} + + {/if} + {:else if activeTab === 'collections'} + {#if r.collections.length === 0} +

+ You don't have any collections yet. Open any manga and use + Add to collection to start one. +

+ {:else} + + {/if} + {:else if activeTab === 'page-tags'} + {:else} - + {/if} -{:else if activeTab === 'page-tags'} - -{:else} - -{/if} +{/await}