From c713592b90a1baa00fc3f820531ff3d15bb8fe2c Mon Sep 17 00:00:00 2001 From: Daniil Lohvinov Date: Tue, 12 Mar 2024 15:50:36 +0200 Subject: [PATCH] refactor: complete captcha refactor [WTEL-4251] --- src/app/components/utils/index.js | 2 + src/app/components/utils/wt-snack-bar.vue | 141 ++++++++++++++++++ .../wt-omni-widget-popup.vue | 7 + .../wt-omni-widget-window.vue | 2 + src/app/locale/en/en.js | 5 + src/app/locale/ru/ru.js | 5 + src/app/locale/ua/ua.js | 5 + src/install.js | 19 ++- src/main.js | 3 +- .../components/wt-omni-widget-appointment.vue | 15 +- .../components/wt-omni-widget-call-start.vue | 10 +- .../wt-omni-widget-chat-wrapper.vue | 55 +++---- .../reCAPTCHA-verification/api/reCAPTCHA.js | 18 ++- 13 files changed, 244 insertions(+), 43 deletions(-) create mode 100644 src/app/components/utils/wt-snack-bar.vue diff --git a/src/app/components/utils/index.js b/src/app/components/utils/index.js index 68a6332..9cacc81 100644 --- a/src/app/components/utils/index.js +++ b/src/app/components/utils/index.js @@ -4,6 +4,7 @@ import WtIconBtn from './wt-icon-btn.vue'; import WtInput from './wt-input.vue'; import WtLabel from './wt-label.vue'; import WtTextarea from './wt-textarea.vue'; +import WtSnackBar from './wt-snack-bar.vue'; const Components = { WtButton, @@ -11,6 +12,7 @@ const Components = { WtInput, WtLabel, WtTextarea, + WtSnackBar, }; Object.keys(Components).forEach((name) => { diff --git a/src/app/components/utils/wt-snack-bar.vue b/src/app/components/utils/wt-snack-bar.vue new file mode 100644 index 0000000..874304a --- /dev/null +++ b/src/app/components/utils/wt-snack-bar.vue @@ -0,0 +1,141 @@ + + + + + diff --git a/src/app/components/wt-omni-widget-popup/wt-omni-widget-popup.vue b/src/app/components/wt-omni-widget-popup/wt-omni-widget-popup.vue index 54c236c..fa13160 100644 --- a/src/app/components/wt-omni-widget-popup/wt-omni-widget-popup.vue +++ b/src/app/components/wt-omni-widget-popup/wt-omni-widget-popup.vue @@ -2,6 +2,7 @@ diff --git a/src/modules/call/components/wt-omni-widget-call-start.vue b/src/modules/call/components/wt-omni-widget-call-start.vue index afa708d..db116f5 100644 --- a/src/modules/call/components/wt-omni-widget-call-start.vue +++ b/src/modules/call/components/wt-omni-widget-call-start.vue @@ -24,7 +24,6 @@ color="success" @click="call" > - err: {{ err }} @@ -32,6 +31,7 @@