diff --git a/deno.lock b/deno.lock index 7524b07..5959069 100644 --- a/deno.lock +++ b/deno.lock @@ -32,6 +32,7 @@ "npm:sanitize-html@^2.14.0": "2.14.0", "npm:svelte-boring-avatars@^1.2.6": "1.2.6", "npm:svelte-check@4": "4.1.4_svelte@5.19.3__acorn@8.14.0_typescript@5.7.3", + "npm:svelte-french-toast@^1.2.0": "1.2.0_svelte@4.2.19", "npm:svelte@^5.19.3": "5.19.3_acorn@8.14.0", "npm:tailwindcss@4": "4.0.0", "npm:tweetnacl@^1.0.3": "1.0.3", @@ -1843,6 +1844,19 @@ "typescript" ] }, + "svelte-french-toast@1.2.0_svelte@4.2.19": { + "integrity": "sha512-5PW+6RFX3xQPbR44CngYAP1Sd9oCq9P2FOox4FZffzJuZI2mHOB7q5gJBVnOiLF5y3moVGZ7u2bYt7+yPAgcEQ==", + "dependencies": [ + "svelte@4.2.19", + "svelte-writable-derived" + ] + }, + "svelte-writable-derived@3.1.1_svelte@4.2.19": { + "integrity": "sha512-w4LR6/bYZEuCs7SGr+M54oipk/UQKtiMadyOhW0PTwAtJ/Ai12QS77sLngEcfBx2q4H8ZBQucc9ktSA5sUGZWw==", + "dependencies": [ + "svelte@4.2.19" + ] + }, "svelte@4.2.19": { "integrity": "sha512-IY1rnGr6izd10B0A8LqsBfmlT5OILVuZ7XsI0vdGPEvuonFV7NYEUK4dAkm9Zg2q0Um92kYjTpS1CAP3Nh/KWw==", "dependencies": [ @@ -2128,6 +2142,7 @@ "npm:sanitize-html@^2.14.0", "npm:svelte-boring-avatars@^1.2.6", "npm:svelte-check@4", + "npm:svelte-french-toast@^1.2.0", "npm:svelte@^5.19.3", "npm:tailwindcss@4", "npm:tweetnacl@^1.0.3", diff --git a/package.json b/package.json index 5131657..0ec1a0d 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "@tailwindcss/vite": "^4.0.0", "bits-ui": "^0.22.0", "svelte-boring-avatars": "^1.2.6", + "svelte-french-toast": "^1.2.0", "ulidx": "^2.4.1" }, "devDependencies": { diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte index e667936..1b1bb82 100644 --- a/src/routes/(app)/+layout.svelte +++ b/src/routes/(app)/+layout.svelte @@ -10,6 +10,7 @@ import { goto } from "$app/navigation"; import { RoomyPdsStorageAdapter } from "$lib/autodoc-storage"; import { page } from "$app/state"; + import { Toaster } from "svelte-french-toast"; let { children } = $props(); @@ -58,6 +59,7 @@
+
+ \ No newline at end of file diff --git a/src/routes/(app)/dm/[did]/+page.svelte b/src/routes/(app)/dm/[did]/+page.svelte index dde2273..6041428 100644 --- a/src/routes/(app)/dm/[did]/+page.svelte +++ b/src/routes/(app)/dm/[did]/+page.svelte @@ -14,6 +14,7 @@ import ThreadRow from "$lib/components/ThreadRow.svelte"; import { goto } from "$app/navigation"; import ChatMessage from "$lib/components/ChatMessage.svelte"; + import toast from "svelte-french-toast"; let tab = $state("chat"); let channel: Autodoc | undefined = $derived(g.dms[page.params.did]); @@ -81,6 +82,7 @@ threadTitleInput = ""; isThreading.value = false; + toast.success("Thread created", { position: "bottom-end" }) } function sendMessage(e: SubmitEvent) { @@ -109,6 +111,7 @@ delete doc.threads[id] }); + toast.success("Thread deleted", { position: "bottom-end" }); goto(page.url.pathname); }