From c9b9adeff5280c4bc06f8dc7c453b5fca2955d19 Mon Sep 17 00:00:00 2001 From: restyler Date: Sun, 29 Jun 2025 01:14:44 +0400 Subject: [PATCH] Extracting SQLCounter and SQLEditor components for enhanced SQL snippet functionality --- frontend/src/components/SQLCounter.vue | 195 +++++++++++++++++ frontend/src/components/SQLEditor.vue | 163 ++++++++++++++ frontend/src/views/SqlSnippets.vue | 183 +--------------- frontend/src/views/Subscribers.vue | 283 ++++++++++++------------- i18n/en.json | 6 +- 5 files changed, 507 insertions(+), 323 deletions(-) create mode 100644 frontend/src/components/SQLCounter.vue create mode 100644 frontend/src/components/SQLEditor.vue diff --git a/frontend/src/components/SQLCounter.vue b/frontend/src/components/SQLCounter.vue new file mode 100644 index 00000000..3ca08c09 --- /dev/null +++ b/frontend/src/components/SQLCounter.vue @@ -0,0 +1,195 @@ + + + + + diff --git a/frontend/src/components/SQLEditor.vue b/frontend/src/components/SQLEditor.vue new file mode 100644 index 00000000..95e89c0a --- /dev/null +++ b/frontend/src/components/SQLEditor.vue @@ -0,0 +1,163 @@ + + + + + diff --git a/frontend/src/views/SqlSnippets.vue b/frontend/src/views/SqlSnippets.vue index 2f9a01f8..33ff7be2 100644 --- a/frontend/src/views/SqlSnippets.vue +++ b/frontend/src/views/SqlSnippets.vue @@ -132,81 +132,22 @@ {{ $t('sqlSnippets.queryHelp') }}

- -
-
-
-
-
- - - Matches - - - Live validation disabled - - - - - - Error - - - {{ subscriberCount.found.toLocaleString() }} - - - - - -
-
-
-
- Total subscribers: {{ subscriberCount.total.toLocaleString() }} -
-
-
-
-
+ +
-
+
{{ $t('globals.fields.status') }}
-
-
- -
-
-
- -
- - {{ $t('sqlSnippets.validate') }} - -
-