From 7f833fc60e4121fa7e0f994746d3c17a71d2a587 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 13 Jun 2024 18:58:57 +0200 Subject: [PATCH] Add toasts to communicate with user Signed-off-by: Knut Ahlers --- src/components/_headNav.vue | 8 +--- src/components/_toast.vue | 82 +++++++++++++++++++++++++++++++++++++ src/components/_toaster.vue | 47 +++++++++++++++++++++ src/components/app.vue | 5 ++- src/components/login.vue | 7 +++- src/helpers/busevents.ts | 13 ++++++ src/helpers/template.ts | 15 +++++++ src/main.ts | 35 ++++++++++------ 8 files changed, 191 insertions(+), 21 deletions(-) create mode 100644 src/components/_toast.vue create mode 100644 src/components/_toaster.vue create mode 100644 src/helpers/busevents.ts create mode 100644 src/helpers/template.ts diff --git a/src/components/_headNav.vue b/src/components/_headNav.vue index 50b8509..1bc4782 100644 --- a/src/components/_headNav.vue +++ b/src/components/_headNav.vue @@ -1,14 +1,10 @@ + + + diff --git a/src/components/_toaster.vue b/src/components/_toaster.vue new file mode 100644 index 0000000..908afc3 --- /dev/null +++ b/src/components/_toaster.vue @@ -0,0 +1,47 @@ + + + diff --git a/src/components/app.vue b/src/components/app.vue index 3cb753f..69c30a8 100644 --- a/src/components/app.vue +++ b/src/components/app.vue @@ -48,6 +48,8 @@
+ +
@@ -57,9 +59,10 @@ import { defineComponent } from 'vue' import HeadNav from './_headNav.vue' +import Toaster from './_toaster.vue' export default defineComponent({ - components: { HeadNav }, + components: { HeadNav, Toaster }, name: 'TwitchBotEditorApp', }) diff --git a/src/components/login.vue b/src/components/login.vue index 475c0e2..4c6ce93 100644 --- a/src/components/login.vue +++ b/src/components/login.vue @@ -11,16 +11,19 @@ Login with Twitch +