- Right to left
- Display two pages
- First page is cover
- OCR enabled
- Display box outlines
- Editable text
- Toggle boxes on click
+ {#each toggles as { key, text, value }}
+ updateSetting(key, !value)}
+ >{text}
+ {/each}
diff --git a/src/routes/[manga]/+page.svelte b/src/routes/[manga]/+page.svelte
index e06eac3..92aedf6 100644
--- a/src/routes/[manga]/+page.svelte
+++ b/src/routes/[manga]/+page.svelte
@@ -3,17 +3,32 @@
import { goto } from '$app/navigation';
import { onMount } from 'svelte';
import VolumeItem from '$lib/components/VolumeItem.svelte';
+ import { Button, Modal } from 'flowbite-svelte';
+ import { ExclamationCircleOutline } from 'flowbite-svelte-icons';
+ import { db } from '$lib/catalog/db';
const manga = $currentManga;
+ let popupModal = false;
onMount(() => {
if (!manga) {
goto('/');
}
});
+
+ function onDelete() {
+ popupModal = true;
+ }
+
+ async function confirmDelete() {
+ const title = manga?.[0].mokuroData.title_uuid;
+ await db.catalog.delete(title);
+ goto('/');
+ }
-
+
+
{#if manga}
{#each manga as volume}
@@ -21,8 +36,19 @@
{/if}