From 6d14e93c384d63a6fc778186e50d06d88e67bfd2 Mon Sep 17 00:00:00 2001 From: EnesSacid-Buker <73346401+EnesSacid-Buker@users.noreply.github.com> Date: Mon, 19 Sep 2022 16:59:28 +0300 Subject: [PATCH 1/7] Bulk action buttons issue fixed --- resources/assets/js/plugins/bulk-action.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/js/plugins/bulk-action.js b/resources/assets/js/plugins/bulk-action.js index 365ee8f60..ab2c3ff30 100644 --- a/resources/assets/js/plugins/bulk-action.js +++ b/resources/assets/js/plugins/bulk-action.js @@ -62,7 +62,7 @@ export default class BulkAction { } change(type) { - let action = document.getElementById('button-bulk-action-' + type); + let action = document.getElementById('index-bulk-actions-' + type); this.value = type; From e24b87095529903a07296c2a43309e5a68c971a3 Mon Sep 17 00:00:00 2001 From: EnesSacid-Buker <73346401+EnesSacid-Buker@users.noreply.github.com> Date: Mon, 19 Sep 2022 17:01:09 +0300 Subject: [PATCH 2/7] Duplicate icon added to bulk actions --- app/Abstracts/BulkAction.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Abstracts/BulkAction.php b/app/Abstracts/BulkAction.php index 3f49455c4..ab8d60f71 100644 --- a/app/Abstracts/BulkAction.php +++ b/app/Abstracts/BulkAction.php @@ -44,6 +44,7 @@ abstract class BulkAction 'enable' => 'check_circle', 'disable' => 'hide_source', 'delete' => 'delete', + 'duplicate' => 'file_copy', 'export' => 'file_download', 'reconcile' => 'published_with_changes', 'unreconcile' => 'layers_clear', From 300d4e8f53d98923dbc37e70193fcea6004fa54d Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Tue, 20 Sep 2022 10:17:14 +0300 Subject: [PATCH 3/7] added pointer-event-none --- app/View/Presenters/Menu.php | 20 ++++++------- .../views/banking/accounts/show.blade.php | 2 +- .../banking/transactions/index.blade.php | 2 +- .../views/banking/transfers/index.blade.php | 2 +- .../views/common/dashboards/show.blade.php | 2 +- resources/views/common/items/index.blade.php | 2 +- .../views/common/reports/index.blade.php | 2 +- .../contacts/index/more-buttons.blade.php | 2 +- .../contacts/show/more-buttons.blade.php | 2 +- .../views/components/delete-button.blade.php | 2 +- .../documents/index/more-buttons.blade.php | 2 +- .../documents/show/more-buttons.blade.php | 2 +- .../components/layouts/admin/menu.blade.php | 28 +++++++++---------- .../components/layouts/portal/menu.blade.php | 18 ++++++------ .../views/components/table/actions.blade.php | 4 +-- .../transactions/show/more-buttons.blade.php | 2 +- .../transfers/show/more-buttons.blade.php | 2 +- .../views/components/widgets/header.blade.php | 2 +- .../views/settings/categories/index.blade.php | 2 +- .../views/settings/taxes/index.blade.php | 2 +- 20 files changed, 51 insertions(+), 51 deletions(-) diff --git a/app/View/Presenters/Menu.php b/app/View/Presenters/Menu.php index e12551a92..1d0faf2a7 100644 --- a/app/View/Presenters/Menu.php +++ b/app/View/Presenters/Menu.php @@ -34,11 +34,11 @@ class Menu extends Presenter */ public function getMenuWithoutDropdownWrapper($item) { - return '
  • - getAttributes() . '> + return '
  • + getAttributes() . '> ' . $this->getIcon($item) . ' - ' . $item->title . ' - + ' . $item->title . ' +
  • ' . PHP_EOL; @@ -104,9 +104,9 @@ class Menu extends Presenter return '
    getActiveStateOnChild($item) . '> -
    +
    ' . $this->getIcon($item) . ' - ' . $item->title . ' + ' . $item->title . ' ' . $this->getChevron($item) . '
    @@ -132,10 +132,10 @@ class Menu extends Presenter return '
    -
    +
    ' . $this->getIcon($item) . ' - ' . $item->title . ' - + ' . $item->title . ' + ' . $this->getChevron($item) . '
    @@ -226,7 +226,7 @@ class Menu extends Presenter $icon_content = '' . $item->icon . ''; } - return '
    + return '
    ' . $icon_content . '
    ' . PHP_EOL; } diff --git a/resources/views/banking/accounts/show.blade.php b/resources/views/banking/accounts/show.blade.php index 55d4922f9..ded360508 100644 --- a/resources/views/banking/accounts/show.blade.php +++ b/resources/views/banking/accounts/show.blade.php @@ -73,7 +73,7 @@ - more_horiz + more_horiz @stack('see_performance_button_start') diff --git a/resources/views/banking/transactions/index.blade.php b/resources/views/banking/transactions/index.blade.php index 9d63277d4..f469aa217 100644 --- a/resources/views/banking/transactions/index.blade.php +++ b/resources/views/banking/transactions/index.blade.php @@ -24,7 +24,7 @@ - more_horiz + more_horiz @can('create-banking-transactions') diff --git a/resources/views/banking/transfers/index.blade.php b/resources/views/banking/transfers/index.blade.php index d37e6c2f0..88c1dba61 100644 --- a/resources/views/banking/transfers/index.blade.php +++ b/resources/views/banking/transfers/index.blade.php @@ -20,7 +20,7 @@ - more_horiz + more_horiz @can('create-banking-transfers') diff --git a/resources/views/common/dashboards/show.blade.php b/resources/views/common/dashboards/show.blade.php index bc3eb41e7..7284177b5 100644 --- a/resources/views/common/dashboards/show.blade.php +++ b/resources/views/common/dashboards/show.blade.php @@ -103,7 +103,7 @@ - more_vert + more_vert diff --git a/resources/views/common/items/index.blade.php b/resources/views/common/items/index.blade.php index 0c9e8005f..52037ca4b 100644 --- a/resources/views/common/items/index.blade.php +++ b/resources/views/common/items/index.blade.php @@ -18,7 +18,7 @@ - more_horiz + more_horiz @can('create-common-items') diff --git a/resources/views/common/reports/index.blade.php b/resources/views/common/reports/index.blade.php index b3c00040d..9bdc67bfc 100644 --- a/resources/views/common/reports/index.blade.php +++ b/resources/views/common/reports/index.blade.php @@ -61,7 +61,7 @@ - more_vert + more_vert diff --git a/resources/views/components/contacts/index/more-buttons.blade.php b/resources/views/components/contacts/index/more-buttons.blade.php index 76c542b83..af09eca7a 100644 --- a/resources/views/components/contacts/index/more-buttons.blade.php +++ b/resources/views/components/contacts/index/more-buttons.blade.php @@ -1,6 +1,6 @@ - more_horiz + more_horiz @if ($checkPermissionCreate) diff --git a/resources/views/components/contacts/show/more-buttons.blade.php b/resources/views/components/contacts/show/more-buttons.blade.php index 92cdc1f9a..6314d681a 100644 --- a/resources/views/components/contacts/show/more-buttons.blade.php +++ b/resources/views/components/contacts/show/more-buttons.blade.php @@ -3,7 +3,7 @@ @if (! $hideActionsDropdown) - more_horiz + more_horiz @stack('delete_button_start') diff --git a/resources/views/components/delete-button.blade.php b/resources/views/components/delete-button.blade.php index 086ccdd51..95b10ff0f 100644 --- a/resources/views/components/delete-button.blade.php +++ b/resources/views/components/delete-button.blade.php @@ -8,7 +8,7 @@ @if ($slot->isNotEmpty()) {!! $slot !!} @else - delete + delete @@ -165,7 +165,7 @@ @elseif (is_object(user()->picture)) {{ user()->name }} @else - account_circle + account_circle @endif @stack('navbar_profile_welcome') @@ -183,7 +183,7 @@ @can('read-notifications') @@ -213,7 +213,9 @@ export default { }.bind(this), 100); }, - onInput() { + onInput(event) { + this.search = event.target.value; + //to optimize performance we kept the condition that checks for if search exists or not if (!this.search) { return; diff --git a/resources/assets/js/components/AkauntingItemButton.vue b/resources/assets/js/components/AkauntingItemButton.vue index 81cf6f2f0..4e1098f39 100644 --- a/resources/assets/js/components/AkauntingItemButton.vue +++ b/resources/assets/js/components/AkauntingItemButton.vue @@ -16,8 +16,8 @@ autocapitalize="default" autocorrect="ON" :placeholder="placeholder" - v-model="search" - @input="onInput" + :value="search" + @input="onInput($event)" :ref="'input-item-field-' + _uid" @keydown.enter="inputEnterEvent" /> @@ -282,7 +282,9 @@ export default { }.bind(this), 100); }, - onInput() { + onInput(event) { + this.search = event.target.value; + this.isItemMatched = false; //to optimize performance we kept the condition that checks for if search exists or not if (!this.search) { From 6424b29580ea96e221b490a5b72cf3ba9db8dbfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Thu, 22 Sep 2022 00:57:54 +0300 Subject: [PATCH 7/7] updated info --- app/Utilities/Info.php | 18 ++++++++++++++++-- composer.json | 2 +- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/app/Utilities/Info.php b/app/Utilities/Info.php index 903bc96a0..47bcbcde7 100644 --- a/app/Utilities/Info.php +++ b/app/Utilities/Info.php @@ -4,8 +4,10 @@ namespace App\Utilities; use App\Models\Auth\User; use App\Models\Common\Company; +use App\Models\Common\Contact; +use App\Models\Document\Document; use Composer\InstalledVersions; -use DB; +use Illuminate\Support\Facades\DB; class Info { @@ -13,8 +15,11 @@ class Info { return array_merge(static::versions(), [ 'api_key' => setting('apps.api_key'), + 'ip' => static::ip(), 'companies' => Company::count(), 'users' => User::count(), + 'invoices' => Document::invoice()->count(), + 'customers' => Contact::customer()->count(), 'php_extensions' => static::phpExtensions(), ]); } @@ -23,10 +28,12 @@ class Info { return [ 'akaunting' => version('short'), - 'laravel' => app()->version(), + 'laravel' => InstalledVersions::getPrettyVersion('laravel/framework'), 'php' => static::phpVersion(), 'mysql' => static::mysqlVersion(), + 'guzzle' => InstalledVersions::getPrettyVersion('guzzlehttp/guzzle'), 'livewire' => InstalledVersions::getPrettyVersion('livewire/livewire'), + 'omnipay' => InstalledVersions::getPrettyVersion('league/omnipay'), ]; } @@ -54,4 +61,11 @@ class Info return 'N/A'; } + + public static function ip() + { + return request()->header('CF_CONNECTING_IP') + ? request()->header('CF_CONNECTING_IP') + : request()->ip(); + } } diff --git a/composer.json b/composer.json index cd3735b0b..093763a76 100644 --- a/composer.json +++ b/composer.json @@ -28,6 +28,7 @@ "ext-xml": "*", "ext-zip": "*", "akaunting/laravel-apexcharts": "^2.0", + "akaunting/laravel-debugbar-collector": "^2.0", "akaunting/laravel-firewall": "^2.0", "akaunting/laravel-language": "^1.0", "akaunting/laravel-menu": "^2.0", @@ -37,7 +38,6 @@ "akaunting/laravel-setting": "^1.2", "akaunting/laravel-sortable": "^1.0", "akaunting/laravel-version": "^1.0", - "akaunting/laravel-debugbar-collector": "^2.0", "akaunting/module-offline-payments": "^3.0", "akaunting/module-paypal-standard": "^3.0", "barryvdh/laravel-debugbar": "^3.6",