- {$mangaMeta.ChapterTitle === ChapterTitle['Source Title']
- ? chapter.name
- : `Chapter ${chapter.chapterNumber}`}
-
- {new Date(
- $mangaMeta.ChapterFetchUpload
- ? parseInt(chapter.uploadDate)
- : parseInt(chapter.fetchedAt) * 1000
- ).toLocaleDateString()}{chapter.isDownloaded
- ? ' • Downloaded'
- : ''}{chapter.scanlator ? ` • ${chapter.scanlator}` : ''}
+
-
e.chapter.id === chapter.id
- )}
- />
+ e.chapter.id === chapter.id
+ )}
+ />
- {#if $selectMode}
-
+ {#if $selectMode}
+
+
+
+ {/if}
+ {}}
+ class="h-full rounded-full p-2 hover:variant-ghost"
+ >
- {/if}
- {}}
- class="h-full rounded-full p-2 hover:variant-ghost"
- >
-
-
-
-
-
- {#if chapter.isDownloaded}
-
{
- client
- .mutation(deleteDownloadedChapters, {
- ids: [chapter.id]
- })
- .toPromise();
- }}
- class="variant-glass w-full cursor-pointer select-none p-2 hover:variant-soft"
- >
- delete
-
- {:else}
-
- client
- .mutation(enqueueChapterDownloads, {
- ids: [chapter.id]
- })
- .toPromise()}
- class="variant-glass w-full cursor-pointer select-none p-2 hover:variant-soft"
- >
- download
-
- {/if}
- {#if chapter.isBookmarked}
-
- client
- .mutation(updateChapters, {
- isBookmarked: false,
- ids: [chapter.id]
- })
- .toPromise()}
- class="variant-glass w-full cursor-pointer select-none p-2 hover:variant-soft"
- >
- unbookmark
-
- {:else}
+
+
+
+ {#if chapter.isDownloaded}
+ {
+ client
+ .mutation(deleteDownloadedChapters, {
+ ids: [chapter.id]
+ })
+ .toPromise();
+ }}
+ class="variant-glass w-full cursor-pointer select-none p-2 hover:variant-soft"
+ >
+ delete
+
+ {:else}
+
+ client
+ .mutation(enqueueChapterDownloads, {
+ ids: [chapter.id]
+ })
+ .toPromise()}
+ class="variant-glass w-full cursor-pointer select-none p-2 hover:variant-soft"
+ >
+ download
+
+ {/if}
+ {#if chapter.isBookmarked}
+
+ client
+ .mutation(updateChapters, {
+ isBookmarked: false,
+ ids: [chapter.id]
+ })
+ .toPromise()}
+ class="variant-glass w-full cursor-pointer select-none p-2 hover:variant-soft"
+ >
+ unbookmark
+
+ {:else}
+
+ client
+ .mutation(updateChapters, {
+ isBookmarked: true,
+ ids: [chapter.id]
+ })
+ .toPromise()}
+ class="variant-glass w-full cursor-pointer select-none p-2 hover:variant-soft"
+ >
+ bookmark
+
+ {/if}
+ {#if chapter.isRead}
+ handelUnRead(chapter)}
+ class="variant-glass w-full cursor-pointer select-none p-2 hover:variant-soft"
+ >
+ mark as unread
+
+ {:else}
+ handelRead(chapter)}
+ class="variant-glass w-full cursor-pointer select-none p-2 hover:variant-soft"
+ >
+ mark as read
+
+ {/if}
- client
- .mutation(updateChapters, {
- isBookmarked: true,
- ids: [chapter.id]
- })
- .toPromise()}
+ on:click={() => handelPrevRead(chapter)}
class="variant-glass w-full cursor-pointer select-none p-2 hover:variant-soft"
>
- bookmark
+ mark previous as read
- {/if}
- {#if chapter.isRead}
- handelUnRead(chapter)}
- class="variant-glass w-full cursor-pointer select-none p-2 hover:variant-soft"
- >
- mark as unread
-
- {:else}
- handelRead(chapter)}
- class="variant-glass w-full cursor-pointer select-none p-2 hover:variant-soft"
- >
- mark as read
-
- {/if}
- handelPrevRead(chapter)}
- class="variant-glass w-full cursor-pointer select-none p-2 hover:variant-soft"
- >
- mark previous as read
-
+
+
-
-
- {/if}
+ {/if}
+
{/each}
diff --git a/src/routes/(app)/more/+page.svelte b/src/routes/(app)/more/+page.svelte
new file mode 100644
index 00000000..c4620ebd
--- /dev/null
+++ b/src/routes/(app)/more/+page.svelte
@@ -0,0 +1,26 @@
+
+
+
+
+
+ Downloads
+
+
+
+
+ Settings
+
diff --git a/src/routes/(app)/updates/+page.svelte b/src/routes/(app)/updates/+page.svelte
index 6b17cc7e..9c45d058 100644
--- a/src/routes/(app)/updates/+page.svelte
+++ b/src/routes/(app)/updates/+page.svelte
@@ -19,6 +19,7 @@
import type { UpdateNode } from './UpdatesStores';
import {
dlreabook,
+ formatDate,
gridValues,
HelpDoSelect,
HelpSelectAll
@@ -188,9 +189,7 @@
parseInt(updat.fetchedAt) * 1000
).toLocaleString()}
>
- {new Date(
- parseInt(updat.fetchedAt) * 1000
- ).toLocaleString()}
+ {formatDate(new Date(parseInt(updat.fetchedAt) * 1000))}