From 903ee3e158b34ea3d7b41abb50e27b359138c457 Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Fri, 24 Mar 2023 13:02:22 +0530 Subject: [PATCH] feat: Dialog.vue - shift showToast to interactive.ts --- src/App.vue | 1 - src/components/Controls/Barcode.vue | 2 +- src/components/Dialog.vue | 157 ++++++++++++++++++ src/components/Modal.vue | 29 +--- src/components/ShortcutsHelper.vue | 4 + src/errorHandling.ts | 3 +- src/pages/Settings/Settings.vue | 2 +- src/pages/TemplateBuilder/TemplateBuilder.vue | 2 +- src/styles/index.css | 14 ++ src/utils/interactive.ts | 88 ++++++++++ src/utils/ipcCalls.ts | 3 +- src/utils/language.ts | 2 +- src/utils/types.ts | 13 ++ src/utils/ui.ts | 28 +--- 14 files changed, 288 insertions(+), 60 deletions(-) create mode 100644 src/components/Dialog.vue create mode 100644 src/utils/interactive.ts diff --git a/src/App.vue b/src/App.vue index 11602eff..61beeb75 100644 --- a/src/App.vue +++ b/src/App.vue @@ -102,7 +102,6 @@ export default defineComponent({ WindowsTitleBar, }, async mounted() { - // setGlobalShortcuts(this.shortcuts as Shortcuts); this.setInitialScreen(); }, watch: { diff --git a/src/components/Controls/Barcode.vue b/src/components/Controls/Barcode.vue index d579ba13..219f0141 100644 --- a/src/components/Controls/Barcode.vue +++ b/src/components/Controls/Barcode.vue @@ -27,7 +27,7 @@ + diff --git a/src/components/Modal.vue b/src/components/Modal.vue index 9b26a6bd..f7476c68 100644 --- a/src/components/Modal.vue +++ b/src/components/Modal.vue @@ -1,22 +1,7 @@