diff --git a/src/lib/components/anilistItems.svelte b/src/lib/components/anilistItems.svelte index 89fd5bd..c12329a 100644 --- a/src/lib/components/anilistItems.svelte +++ b/src/lib/components/anilistItems.svelte @@ -1,9 +1,10 @@ + +
+
+ {#if cover} + {title} + {:else} + Broken art + {/if} +
+

{title}

+ {#if lastChapter || chapterProgress} + CH {chapterProgress ? chapterProgress + "/" : ""}{lastChapter || "?"} + {/if} + {#if lastVolume || volumeProgress} + vol {volumeProgress ? volumeProgress + "/" : ""}{lastVolume} + {/if} + {#if score} + {score}/10 + {/if} + {#if description} +

+ {/if} +
+
+
+ + \ No newline at end of file diff --git a/src/lib/components/listOrGrid.svelte b/src/lib/components/listOrGrid.svelte deleted file mode 100644 index 94fd270..0000000 --- a/src/lib/components/listOrGrid.svelte +++ /dev/null @@ -1,30 +0,0 @@ - - -
- -
- - \ No newline at end of file diff --git a/src/lib/components/mangadexItems.svelte b/src/lib/components/mangadexItems.svelte index 38185c3..361c579 100644 --- a/src/lib/components/mangadexItems.svelte +++ b/src/lib/components/mangadexItems.svelte @@ -1,39 +1,23 @@ -
+
{#each entries as entry} - {@const title = entry.attributes.title.en || entry.attributes.title.ja || Object.values(entry.attributes.title)[0]} - open(entry)}> -
- {#if entry.relationships.find(t => t.type === "cover_art")} - {title} - {:else} - Broken art - {/if} -
-

{title}

- {#if entry.attributes.lastChapter} - CH {entry.attributes.lastChapter} - {/if} - {#if entry.attributes.lastVolume} - vol {entry.attributes.lastVolume} - {/if} - {#if entry.attributes.description.en} -

- {/if} -
-
+
+ t.type === "cover_art") ? `https://uploads.mangadex.org/covers/${entry.id}/${entry.relationships.find(t => t.type === "cover_art").attributes.fileName}.512.jpg` : null} + title={entry.attributes.title.en || entry.attributes.title.ja || Object.values(entry.attributes.title)[0]} + lastChapter={entry.attributes.lastChapter} + lastVolume={entry.attributes.lastVolume} + description={entry.attributes.description.en} + /> {/each}
@@ -46,9 +30,6 @@ a:hover { color: black; text-decoration: none; - } - h3 { - margin: 0; } .items { display: grid; @@ -56,41 +37,7 @@ gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); } - .items-list.items { + .items.list { grid-template-columns: 1fr; } - .items-list .item img { - height: 10rem; - } - .r18 img { - filter: blur(10px); - } - .info { - display: none; - opacity: 0; - transition: .2s opacity; - } - .items-list .info { - display: block; - opacity: 1; - } - .flex { - display: flex; - gap: 1rem; - } - .item img { - border-radius: 5px; - height: 15rem; - width: auto; - box-shadow: 0 0 0 white; - transition: .4s box-shadow, .3s height; - } - @media(prefers-reduced-motion) { - .item img, .item:hover img { - box-shadow: none; - } - } - .item:hover img { - box-shadow: 0 0 10px grey; - } \ No newline at end of file diff --git a/src/lib/components/showTypeChooser.svelte b/src/lib/components/showTypeChooser.svelte new file mode 100644 index 0000000..3345b9b --- /dev/null +++ b/src/lib/components/showTypeChooser.svelte @@ -0,0 +1,34 @@ + + +
+ +
+ + \ No newline at end of file diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index c705866..bfede65 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -2,7 +2,7 @@ import request from "$lib/util/request"; import { getUserDetails, getUserManga, isLogedIn } from "$lib/util/anilist"; import AnilistItems from "$lib/components/anilistItems.svelte"; - import ListOrGrid from "$lib/components/listOrGrid.svelte"; + import ShowTypeChooser from "$lib/components/showTypeChooser.svelte"; import ratelimit from '$lib/util/ratelimit'; import MangadexItems from '$lib/components/mangadexItems.svelte'; import { goto } from "$app/navigation"; @@ -113,7 +113,6 @@ let userDetails = isLogedIn() && getUserDetails(); let userManga = isLogedIn() && getUserManga(); - let listStyle = false; @@ -156,7 +155,7 @@ {#if result} @@ -164,14 +163,14 @@ {#await result} Loading... {:then result} - + {/await} {:else}
{#await userManga then userManga} {#each userManga.data.MediaListCollection.lists as list}

{list.name}

- + {/each} {/await}
@@ -181,28 +180,6 @@ Sign in via Anilist to view your manga list and search for manga online. You can still read manga or download it without signing in using direct mangadex URLs.

{/if} - -
- - Shameless plug: - -

- Be sure to check out my main site, and my game Heaventaker. -

- -
- -

- Website's source code available on GitHub under GPLv3. Hosted on Cloudflare Pages, a static site hosting, where none of the images are stored. -

- -
- -

This site works by using Mangadex API from your browser, and loading or downloading the manga directly from MD@H, without using my servers (so I don't host any content seen here, nor can I delete it). The whole site is client side only (it runs in your browser). I cannot delete any content (images or text), only hide it from this specific site - but there are tons of other sites, and anybody with decent coding skills can clone this page and remove the rule hiding the content (this page is open source).

- -
- -

DISCLAIMER: This site isn't distributing any content and is using mangadex.org API. All of the site's requests are done client side, my servers aren't sharing any manga data. Website is open source, and I don't claim any copyright on the publications. If you believe in good faith you're downloading copyrighted content, file a DMCA at yourself, your operating system (as it took a part in the download), your ISP, your browser and all the free libraries that are used in any of the previous (made by volunteers), and then here. /s

diff --git a/src/routes/about/+page.svelte b/src/routes/about/+page.svelte new file mode 100644 index 0000000..e71bcfd --- /dev/null +++ b/src/routes/about/+page.svelte @@ -0,0 +1,29 @@ + +
+

Manga reader

+ Made by TechmandanCZ#3372 + +
+ + Shameless plug: + +

+ Be sure to check out my main site, and my game Heaventaker. +

+ +
+ +

+ Website's source code available on GitHub under GPLv3. Hosted on Cloudflare Pages, a static site hosting, where none of the images are stored. +

+ +
+ +

This site works by using Mangadex API from your browser, and loading or downloading the manga directly from MD@H, without using my servers (so I don't host any content seen here, nor can I delete it). The whole site is client side only (it runs in your browser). I cannot delete any content (images or text), only hide it from this specific site - but there are tons of other sites, and anybody with decent coding skills can clone this page and remove the rule hiding the content (this page is open source).

+ +
+ +

DISCLAIMER: This site isn't distributing any content and is using mangadex.org API. All of the site's requests are done client side, my servers aren't sharing any manga data. Website is open source, and I don't claim any copyright on the publications. If you believe in good faith you're downloading copyrighted content, file a DMCA at yourself, your operating system (as it took a part in the download), your ISP, your browser and all the free libraries that are used in any of the previous (made by volunteers), and then here. /satire

+ +

For DMCA requests, I recommend going to the mangadex page of the selected manga instead and reporting it there, as it will be taken down more quickly. You can of course report it to me and I'll block the page from viewing it, but it's trivial to remove that (1 required software installed to run this site, edit single line, run 2 more commands and you have bypassed the block), so I really recommend removing the source instead.

+
\ No newline at end of file