From 08343ae18eb77526373f23f9a981b91af616c566 Mon Sep 17 00:00:00 2001
From: 18alantom <2.alan.tom@gmail.com>
Date: Thu, 23 Mar 2023 12:25:25 +0530
Subject: [PATCH] refactor: use composable for doc shortcuts in Forms - type
Toast.vue, use constants for duration
---
src/components/Toast.vue | 46 +++++--
src/pages/CommonForm/CommonForm.vue | 48 +++++--
src/pages/InvoiceForm.vue | 34 ++++-
src/pages/ListView/ListView.vue | 9 +-
src/pages/QuickEditForm.vue | 34 ++++-
src/pages/TemplateBuilder/TemplateBuilder.vue | 40 +++---
src/utils/shortcuts.ts | 30 +++--
src/utils/types.ts | 13 +-
src/utils/ui.ts | 121 +++++++++++++-----
src/utils/vueUtils.ts | 76 ++++++++++-
10 files changed, 355 insertions(+), 96 deletions(-)
diff --git a/src/components/Toast.vue b/src/components/Toast.vue
index 92d22283..fe6da8f8 100644
--- a/src/components/Toast.vue
+++ b/src/components/Toast.vue
@@ -34,11 +34,16 @@
/>
-
diff --git a/src/pages/CommonForm/CommonForm.vue b/src/pages/CommonForm/CommonForm.vue
index 2a32d3be..1c5a4ee3 100644
--- a/src/pages/CommonForm/CommonForm.vue
+++ b/src/pages/CommonForm/CommonForm.vue
@@ -5,7 +5,8 @@