From b42e53e942e2af8233ee01fc11b9c5d65cc67b44 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 16 Jul 2020 11:18:17 +0700 Subject: [PATCH] Clean code --- composer.json | 2 +- etc/adminhtml/di.xml | 68 ++++++++--------- etc/adminhtml/system.xml | 156 +++++++++++++++++++-------------------- etc/config.xml | 78 ++++++++++---------- i18n/en_US.csv | 1 + 5 files changed, 153 insertions(+), 152 deletions(-) diff --git a/composer.json b/composer.json index e6e62f5..8706970 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "liquid/liquid": "^1.4.8" }, "type": "magento2-module", - "version": "1.1.2", + "version": "1.1.3", "license": "proprietary", "authors": [ { diff --git a/etc/adminhtml/di.xml b/etc/adminhtml/di.xml index 2160f59..d9a1afe 100644 --- a/etc/adminhtml/di.xml +++ b/etc/adminhtml/di.xml @@ -1,34 +1,34 @@ - - - - - - - - created_at - updated_at - - - - - + + + + + + + + created_at + updated_at + + + + + diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml index 5f43148..797bd88 100755 --- a/etc/adminhtml/system.xml +++ b/etc/adminhtml/system.xml @@ -1,78 +1,78 @@ - - - - -
- separator-top - - mageplaza - Mageplaza_Webhook::configuration - - - - - Magento\Config\Model\Config\Source\Yesno - How to integrate with others]]> - - - - validate-digits - How to deteminte as Abandonded Cart. Enter number of hour(s). Recommend: 1, 6, 10, 12, 24. Default: 10 - - - - validate-digits - The number of logs will be kept in each hook. If it reaches this number, the old logs will be removed. If empty or zero, no limitation. Default: 10 - - - - Magento\Config\Model\Config\Source\Yesno - SMTP]]> - - - - Mageplaza\Webhook\Model\Config\Backend\Email - Separated by comma (,) - - - - Magento\Config\Model\Config\Source\Email\Template - - - - - - - Mageplaza\Webhook\Model\Config\Source\Schedule - - - - - - day,week,month - - - -
-
-
+ + + + +
+ separator-top + + mageplaza + Mageplaza_Webhook::configuration + + + + + Magento\Config\Model\Config\Source\Yesno + How to integrate with others]]> + + + + validate-digits + How to deteminte as Abandonded Cart. Enter number of hour(s). Recommend: 1, 6, 10, 12, 24. Default: 10 + + + + validate-digits + The number of logs will be kept in each hook. If it reaches this number, the old logs will be removed. If empty or zero, no limitation. Default: 10 + + + + Magento\Config\Model\Config\Source\Yesno + SMTP]]> + + + + Mageplaza\Webhook\Model\Config\Backend\Email + Separated by comma (,) + + + + Magento\Config\Model\Config\Source\Email\Template + + + + + + + Mageplaza\Webhook\Model\Config\Source\Schedule + + + + + + day,week,month + + + +
+
+
diff --git a/etc/config.xml b/etc/config.xml index f3ea88e..5869ed1 100644 --- a/etc/config.xml +++ b/etc/config.xml @@ -1,39 +1,39 @@ - - - - - - - 1 - 10 - 10 - 0 - mp_webhook_general_email_template - - - 0 - 00,00,00 - - - - + + + + + + + 1 + 10 + 10 + 0 + mp_webhook_general_email_template + + + 0 + 00,00,00 + + + + diff --git a/i18n/en_US.csv b/i18n/en_US.csv index a8dd099..31f6a0c 100644 --- a/i18n/en_US.csv +++ b/i18n/en_US.csv @@ -114,6 +114,7 @@ Hook,Hook "The hook has been saved.","The hook has been saved." "Something went wrong while sending %1 hook","Something went wrong while sending %1 hook" "Cannot connect to server. Please try again later.","Cannot connect to server. Please try again later." +"Invalid email format.","Invalid email format." "--Please Select--","--Please Select--" Basic,Basic Digest,Digest