From 314e9dd30815ba83d9ab9e5866adafd61b921b0b Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Wed, 12 Oct 2022 12:46:29 +0300 Subject: [PATCH 1/4] loading hide control --- app/View/Components/Show/Right.php | 21 +++++++++++++++++++ .../components/show/content/right.blade.php | 5 +++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 app/View/Components/Show/Right.php diff --git a/app/View/Components/Show/Right.php b/app/View/Components/Show/Right.php new file mode 100644 index 000000000..e998ce92d --- /dev/null +++ b/app/View/Components/Show/Right.php @@ -0,0 +1,21 @@ + - - + @if (! isset($attributes['disable-loading'])) + + @endif {!! $slot !!} From 2e0a951bf4d875667b85347f3b8dfeffa9d38c4f Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Wed, 12 Oct 2022 14:47:50 +0300 Subject: [PATCH 2/4] css compiled --- public/css/app.css | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/public/css/app.css b/public/css/app.css index 1126fa496..95fd198af 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -49894,18 +49894,18 @@ body{ gap: 0px; } - .sm\:space-x-2 > :not([hidden]) ~ :not([hidden]){ - --tw-space-x-reverse: 0; - margin-right: calc(0.5rem * var(--tw-space-x-reverse)); - margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse))); - } - .sm\:space-y-2 > :not([hidden]) ~ :not([hidden]){ --tw-space-y-reverse: 0; margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); } + .sm\:space-x-2 > :not([hidden]) ~ :not([hidden]){ + --tw-space-x-reverse: 0; + margin-right: calc(0.5rem * var(--tw-space-x-reverse)); + margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse))); + } + .sm\:divide-x-2 > :not([hidden]) ~ :not([hidden]){ --tw-divide-x-reverse: 0; border-right-width: calc(2px * var(--tw-divide-x-reverse)); From 7e85cff8a6c3a1a71f07fafd0fe14ce1e1403aff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Thu, 13 Oct 2022 10:22:00 +0300 Subject: [PATCH 3/4] typo --- app/Jobs/Auth/UpdateUser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/Auth/UpdateUser.php b/app/Jobs/Auth/UpdateUser.php index 1e2a044c6..859691e41 100644 --- a/app/Jobs/Auth/UpdateUser.php +++ b/app/Jobs/Auth/UpdateUser.php @@ -89,7 +89,7 @@ class UpdateUser extends Job implements ShouldUpdate } // Can't unassigned company, The company must be assigned at least one user. - $companies = $this->request->get('companies'); + $companies = (array) $this->request->get('companies', []); $user_companies = $this->model->companies()->pluck('id')->toArray(); $company_diff = array_diff($user_companies, $companies); From a99cb13121a23e59ca89be520e63e38cf7836e69 Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Thu, 13 Oct 2022 17:09:09 +0300 Subject: [PATCH 4/4] target blank for link --- public/akaunting-js/generalAction.js | 8 ++++++++ public/css/app.css | 12 ++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/public/akaunting-js/generalAction.js b/public/akaunting-js/generalAction.js index a2034d6db..994b4eb15 100644 --- a/public/akaunting-js/generalAction.js +++ b/public/akaunting-js/generalAction.js @@ -30,6 +30,14 @@ document.querySelectorAll("[data-table-body]").forEach((table) => { td_item.addEventListener("click", () => { window.location.href = row_href; }); + + // added target blank for click mouse middle button + td_item.addEventListener('mousedown', (event) => { + if (event.button == 1 || event.buttons == 4) { + window.open(row_href, "_blank"); + } + }); + // added target blank for click mouse middle button } } }); diff --git a/public/css/app.css b/public/css/app.css index 1126fa496..95fd198af 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -49894,18 +49894,18 @@ body{ gap: 0px; } - .sm\:space-x-2 > :not([hidden]) ~ :not([hidden]){ - --tw-space-x-reverse: 0; - margin-right: calc(0.5rem * var(--tw-space-x-reverse)); - margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse))); - } - .sm\:space-y-2 > :not([hidden]) ~ :not([hidden]){ --tw-space-y-reverse: 0; margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); } + .sm\:space-x-2 > :not([hidden]) ~ :not([hidden]){ + --tw-space-x-reverse: 0; + margin-right: calc(0.5rem * var(--tw-space-x-reverse)); + margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse))); + } + .sm\:divide-x-2 > :not([hidden]) ~ :not([hidden]){ --tw-divide-x-reverse: 0; border-right-width: calc(2px * var(--tw-divide-x-reverse));