Skip to content

Commit

Permalink
Merge pull request #2003 from amit-webkul/config
Browse files Browse the repository at this point in the history
➕ Addition in Krayin configuration.
  • Loading branch information
devansh-webkul authored Jan 29, 2025
2 parents 5e8d51a + 558a0c7 commit 9598493
Show file tree
Hide file tree
Showing 16 changed files with 748 additions and 115 deletions.
188 changes: 188 additions & 0 deletions packages/Webkul/Admin/src/Config/core_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,193 @@
'options' => 'Webkul\Core\Core@locales',
],
],
], [
'key' => 'general.general.admin_logo',
'name' => 'admin::app.configuration.index.general.general.admin-logo.title',
'info' => 'admin::app.configuration.index.general.general.admin-logo.title-info',
'sort' => 2,
'fields' => [
[
'name' => 'logo_image',
'title' => 'admin::app.configuration.index.general.general.admin-logo.logo-image',
'type' => 'image',
'validation' => 'mimes:bmp,jpeg,jpg,png,webp,svg',
],
],
], [
'key' => 'general.settings',
'name' => 'admin::app.configuration.index.general.settings.title',
'info' => 'admin::app.configuration.index.general.settings.info',
'icon' => 'icon-configuration',
'sort' => 1,
], [
'key' => 'general.settings.footer',
'name' => 'admin::app.configuration.index.general.settings.footer.title',
'info' => 'admin::app.configuration.index.general.settings.footer.info',
'sort' => 1,
'fields' => [
[
'name' => 'powered_by',
'title' => 'admin::app.configuration.index.general.settings.footer.powered-by',
'type' => 'text',
'default' => 'Powered by',
'validation' => 'max:50',
], [
'name' => 'powered_by_redirection_title',
'title' => 'admin::app.configuration.index.general.settings.footer.powered-by-redirection-title',
'type' => 'text',
'default' => 'Krayin',
'validation' => 'max:20',
], [
'name' => 'powered_by_redirection_link',
'title' => 'admin::app.configuration.index.general.settings.footer.powered-by-redirection-link',
'default' => 'https://krayincrm.com',
'type' => 'text',
], [
'name' => 'other',
'title' => 'admin::app.configuration.index.general.settings.footer.other',
'type' => 'text',
'default' => 'an open-source project by',
'validation' => 'max:100',
], [
'name' => 'other_redirection_title',
'title' => 'admin::app.configuration.index.general.settings.footer.other-redirection-title',
'type' => 'text',
'default' => 'Webkul',
'validation' => 'max:25',
], [
'name' => 'other_redirection_link',
'title' => 'admin::app.configuration.index.general.settings.footer.other-redirection-link',
'default' => 'https://webkul.com',
'type' => 'text',
],
],
], [
'key' => 'general.settings.menu',
'name' => 'admin::app.configuration.index.general.settings.menu.title',
'info' => 'admin::app.configuration.index.general.settings.menu.info',
'sort' => 2,
'fields' => [
[
'name' => 'dashboard',
'title' => 'admin::app.configuration.index.general.settings.menu.dashboard',
'type' => 'text',
'default' => 'Dashboard',
'validation' => 'max:20',
], [
'name' => 'leads',
'title' => 'admin::app.configuration.index.general.settings.menu.leads',
'type' => 'text',
'default' => 'Leads',
'validation' => 'max:20',
], [
'name' => 'quotes',
'title' => 'admin::app.configuration.index.general.settings.menu.quotes',
'type' => 'text',
'default' => 'Quotes',
'validation' => 'max:20',
], [
'name' => 'mail.mail',
'title' => 'admin::app.configuration.index.general.settings.menu.mail',
'type' => 'text',
'default' => 'Mail',
'validation' => 'max:20',
], [
'name' => 'mail.inbox',
'title' => 'admin::app.configuration.index.general.settings.menu.inbox',
'type' => 'text',
'default' => 'Inbox',
'validation' => 'max:20',
], [
'name' => 'mail.draft',
'title' => 'admin::app.configuration.index.general.settings.menu.draft',
'type' => 'text',
'default' => 'Draft',
'validation' => 'max:20',
], [
'name' => 'mail.outbox',
'title' => 'admin::app.configuration.index.general.settings.menu.outbox',
'type' => 'text',
'default' => 'Outbox',
'validation' => 'max:20',
], [
'name' => 'mail.sent',
'title' => 'admin::app.configuration.index.general.settings.menu.sent',
'type' => 'text',
'default' => 'Sent',
'validation' => 'max:20',
], [
'name' => 'mail.trash',
'title' => 'admin::app.configuration.index.general.settings.menu.trash',
'type' => 'text',
'default' => 'Trash',
'validation' => 'max:20',
], [
'name' => 'activities',
'title' => 'admin::app.configuration.index.general.settings.menu.activities',
'type' => 'text',
'default' => 'Activities',
'validation' => 'max:20',
], [
'name' => 'contacts.contacts',
'title' => 'admin::app.configuration.index.general.settings.menu.contacts',
'type' => 'text',
'default' => 'Contacts',
'validation' => 'max:20',
], [
'name' => 'contacts.persons',
'title' => 'admin::app.configuration.index.general.settings.menu.persons',
'type' => 'text',
'default' => 'Persons',
'validation' => 'max:20',
], [
'name' => 'contacts.organizations',
'title' => 'admin::app.configuration.index.general.settings.menu.organizations',
'type' => 'text',
'default' => 'Organizations',
'validation' => 'max:20',
], [
'name' => 'products',
'title' => 'admin::app.configuration.index.general.settings.menu.products',
'type' => 'text',
'default' => 'Products',
'validation' => 'max:20',
], [
'name' => 'settings',
'title' => 'admin::app.configuration.index.general.settings.menu.settings',
'type' => 'text',
'default' => 'Settings',
'validation' => 'max:20',
], [
'name' => 'configuration',
'title' => 'admin::app.configuration.index.general.settings.menu.configuration',
'type' => 'text',
'default' => 'Configuration',
'validation' => 'max:20',
],
],
], [
'key' => 'general.settings.menu_color',
'name' => 'admin::app.configuration.index.general.settings.menu-color.title',
'info' => 'admin::app.configuration.index.general.settings.menu-color.info',
'sort' => 2,
'fields' => [
[
'name' => 'active_background_color',
'title' => 'admin::app.configuration.index.general.settings.menu-color.active-background-color',
'type' => 'color',
'default' => '#0E90D9',
], [
'name' => 'active_text_color',
'title' => 'admin::app.configuration.index.general.settings.menu-color.active-text-color',
'type' => 'color',
'default' => '#ffffff',
], [
'name' => 'text_color',
'title' => 'admin::app.configuration.index.general.settings.menu-color.text-color',
'type' => 'color',
'default' => '#757575',
],
],
],
];
69 changes: 62 additions & 7 deletions packages/Webkul/Admin/src/Resources/lang/ar/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -1869,25 +1869,80 @@

'configuration' => [
'index' => [
'back' => 'رجوع',
'save-btn' => 'حفظ الإعدادات',
'save-success' => 'تم حفظ الإعدادات بنجاح.',
'search' => 'بحث',
'title' => 'الإعدادات',
'back' => 'رجوع',
'delete' => 'حذف',
'save-btn' => 'حفظ التكوين',
'save-success' => 'تم حفظ التكوين بنجاح.',
'search' => 'بحث',
'select-country' => 'اختر الدولة',
'select-state' => 'اختر الولاية',
'title' => 'التكوين',

'general' => [
'title' => 'عام',
'info' => 'الإعدادات العامة',
'info' => 'تكوين عام',

'general' => [
'title' => 'عام',
'info' => 'قم بتحديث إعداداتك العامة هنا.',

'locale-settings' => [
'title' => 'إعدادات اللغة',
'title-info' => 'يحدد اللغة المستخدمة في واجهة المستخدم، مثل العربية (ar)، الإنجليزية (en)، الإسبانية (es)، الفارسية (fa) والتركية (tr).',
'title-info' => 'تعريف اللغة المستخدمة في واجهة المستخدم، مثل العربية (ar)، الإنجليزية (en)، الإسبانية (es)، الفارسية (fa) والتركية (tr).',
],

'admin-logo' => [
'logo-image' => 'صورة الشعار',
'title' => 'شعار الإدارة',
'title-info' => 'تكوين صورة الشعار للوحة الإدارة الخاصة بك.',
],
],
],

'settings' => [
'title' => 'الإعدادات',
'info' => 'قم بتحديث إعداداتك هنا.',

'footer' => [
'info' => 'يمكننا تكوين قسم "مشغل بواسطة" هنا.',
'other' => 'أخرى',
'other-redirection-link' => 'رابط إعادة التوجيه الآخر',
'other-redirection-title' => 'عنوان إعادة التوجيه الآخر',
'powered-by' => 'مشغل بواسطة',
'powered-by-redirection-link' => 'رابط إعادة التوجيه "مشغل بواسطة"',
'powered-by-redirection-title' => 'عنوان إعادة التوجيه "مشغل بواسطة"',
'title' => 'تكوينات قسم "مشغل بواسطة"',
],

'menu' => [
'activities' => 'الأنشطة',
'configuration' => 'التكوين',
'contacts' => 'جهات الاتصال',
'dashboard' => 'لوحة القيادة',
'draft' => 'مسودة',
'inbox' => 'الوارد',
'info' => 'يمكننا تكوين أسماء عناصر القائمة هنا.',
'leads' => 'العملاء المحتملين',
'mail' => 'البريد',
'organizations' => 'المنظمات',
'outbox' => 'الصادر',
'persons' => 'الأشخاص',
'products' => 'المنتجات',
'quotes' => 'عروض الأسعار',
'sent' => 'المرسل',
'settings' => 'الإعدادات',
'title' => 'تكوينات عناصر القائمة',
'trash' => 'المهملات',
],

'menu-color' => [
'active-background-color' => 'لون الخلفية النشطة',
'active-text-color' => 'لون النص النشط',
'info' => 'يمكننا تغيير ألوان عناصر القائمة هنا.',
'text-color' => 'لون النص',
'title' => 'تكوينات ألوان عناصر القائمة',
],
],
],
],

Expand Down
64 changes: 59 additions & 5 deletions packages/Webkul/Admin/src/Resources/lang/en/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -1873,11 +1873,14 @@

'configuration' => [
'index' => [
'back' => 'Back',
'save-btn' => 'Save Configuration',
'save-success' => 'Configuration Saved Successfully.',
'search' => 'Search',
'title' => 'Configuration',
'back' => 'Back',
'delete' => 'Delete',
'save-btn' => 'Save Configuration',
'save-success' => 'Configuration Saved Successfully.',
'search' => 'Search',
'select-country' => 'Select Country',
'select-state' => 'Select State',
'title' => 'Configuration',

'general' => [
'title' => 'General',
Expand All @@ -1890,6 +1893,57 @@
'title' => 'Locale Settings',
'title-info' => 'Defines the language used in the user interface, such as Arabic (ar), English (en), Spanish (es), Persian(fa) and Turkish (tr).',
],

'admin-logo' => [
'logo-image' => 'Logo Image',
'title' => 'Admin Logo',
'title-info' => 'Configure logo image for your admin panel.',
],
],

'settings' => [
'title' => 'Settings',
'info' => 'Update your settings here.',

'footer' => [
'info' => 'We can configure the powered by section here.',
'other' => 'Other',
'other-redirection-link' => 'Other Redirection Link',
'other-redirection-title' => 'Other Redirection Title',
'powered-by' => 'Powered by',
'powered-by-redirection-link' => 'Powered by Redirection Link',
'powered-by-redirection-title' => 'Powered by Redirection Title',
'title' => 'Powered by Section Configurations',
],

'menu' => [
'activities' => 'Activities',
'configuration' => 'Configuration',
'contacts' => 'Contacts',
'dashboard' => 'Dashboard',
'draft' => 'Draft',
'inbox' => 'Inbox',
'info' => 'We can configure the menu items name here.',
'leads' => 'Leads',
'mail' => 'Mail',
'organizations' => 'Organizations',
'outbox' => 'Outbox',
'persons' => 'Persons',
'products' => 'Products',
'quotes' => 'Quotes',
'sent' => 'Sent',
'settings' => 'Settings',
'title' => 'Menu Item Configurations',
'trash' => 'Trash',
],

'menu-color' => [
'active-background-color' => 'Active Background Color',
'active-text-color' => 'Active Text Color',
'info' => 'We can change the menu items colors here.',
'text-color' => 'Text Color',
'title' => 'Menu Item Color Configurations',
],
],
],
],
Expand Down
Loading

0 comments on commit 9598493

Please sign in to comment.