From d705e37d8556671d4c90a9a892f46592a9e2d90f Mon Sep 17 00:00:00 2001 From: wisecolt Date: Tue, 3 Feb 2026 12:34:49 +0300 Subject: [PATCH] feat(ui): toast bildirim sistemini ekle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Toast bileşeni ve store oluşturuldu. Ayarlar sayfasındaki işlem bildirimleri yeni sistemle gösterilmeye başlandı. --- client/src/App.svelte | 2 + client/src/components/Toast.svelte | 86 ++++++++++++++++++++++++++++++ client/src/routes/Settings.svelte | 37 ++++--------- client/src/stores/toastStore.js | 24 +++++++++ 4 files changed, 121 insertions(+), 28 deletions(-) create mode 100644 client/src/components/Toast.svelte create mode 100644 client/src/stores/toastStore.js diff --git a/client/src/App.svelte b/client/src/App.svelte index b167fae..506a7eb 100644 --- a/client/src/App.svelte +++ b/client/src/App.svelte @@ -4,6 +4,7 @@ import Sidebar from "./components/Sidebar.svelte"; import Topbar from "./components/Topbar.svelte"; import MiniPlayer from "./components/MiniPlayer.svelte"; + import Toast from "./components/Toast.svelte"; import Files from "./routes/Files.svelte"; import Transfers from "./routes/Transfers.svelte"; import Trash from "./routes/Trash.svelte"; @@ -163,6 +164,7 @@ + {#if menuOpen} diff --git a/client/src/components/Toast.svelte b/client/src/components/Toast.svelte new file mode 100644 index 0000000..90cb384 --- /dev/null +++ b/client/src/components/Toast.svelte @@ -0,0 +1,86 @@ + + +{#if toastData.visible && toastData.message} +
+
+ + {toastData.message} +
+
+{/if} + + diff --git a/client/src/routes/Settings.svelte b/client/src/routes/Settings.svelte index 7d251ae..59a2753 100644 --- a/client/src/routes/Settings.svelte +++ b/client/src/routes/Settings.svelte @@ -1,6 +1,7 @@