From eb7dcbfb05ef6e88afc1d9e21095bc85ee6f2761 Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Tue, 18 Oct 2022 17:18:32 +0300 Subject: [PATCH] unused developments ejected --- app/View/Components/MargueeText.php | 32 ------------------- public/akaunting-js/generalAction.js | 6 +++- .../banking/reconciliations/index.blade.php | 4 +-- .../banking/transactions/index.blade.php | 2 +- .../views/components/marguee-text.blade.php | 21 ------------ resources/views/components/table/td.blade.php | 2 +- .../views/settings/currencies/index.blade.php | 4 +-- .../views/settings/taxes/index.blade.php | 4 +-- 8 files changed, 13 insertions(+), 62 deletions(-) delete mode 100644 app/View/Components/MargueeText.php delete mode 100644 resources/views/components/marguee-text.blade.php diff --git a/app/View/Components/MargueeText.php b/app/View/Components/MargueeText.php deleted file mode 100644 index 00617ab44..000000000 --- a/app/View/Components/MargueeText.php +++ /dev/null @@ -1,32 +0,0 @@ -width = $width; - } - - /** - * Get the view / contents that represent the component. - * - * @return \Illuminate\Contracts\View\View|string - */ - public function render() - { - return view('components.marguee-text'); - } -} diff --git a/public/akaunting-js/generalAction.js b/public/akaunting-js/generalAction.js index 337834b27..a2f229f71 100644 --- a/public/akaunting-js/generalAction.js +++ b/public/akaunting-js/generalAction.js @@ -359,7 +359,7 @@ if (navigator.userAgent.search("Firefox") >= 0) { //Firefox show modal for icon set //margue animation for truncated text -document.querySelectorAll('[data-truncate]').forEach((truncate) => { +function marqueeAnimation(truncate) { if (truncate.offsetWidth > truncate.parentElement.clientWidth || truncate.offsetWidth > truncate.parentElement.parentElement.clientWidth) { truncate.addEventListener('mouseover', function () { truncate.parentElement.style.animationPlayState = 'running'; @@ -379,6 +379,10 @@ document.querySelectorAll('[data-truncate]').forEach((truncate) => { truncate.classList.add('truncate'); truncate.parentElement.classList.add('truncate'); } +} + +document.querySelectorAll('[data-truncate]').forEach((truncate) => { + marqueeAnimation(truncate); }); //disable/enable icons ejected from data-truncate diff --git a/resources/views/banking/reconciliations/index.blade.php b/resources/views/banking/reconciliations/index.blade.php index 2a3283ba8..29a3a289e 100644 --- a/resources/views/banking/reconciliations/index.blade.php +++ b/resources/views/banking/reconciliations/index.blade.php @@ -78,9 +78,9 @@ - +
- +
@if (! $item->reconciled) diff --git a/resources/views/banking/transactions/index.blade.php b/resources/views/banking/transactions/index.blade.php index 9106735ae..7b5b17785 100644 --- a/resources/views/banking/transactions/index.blade.php +++ b/resources/views/banking/transactions/index.blade.php @@ -153,7 +153,7 @@ {{ $item->type_title }} - +
diff --git a/resources/views/components/marguee-text.blade.php b/resources/views/components/marguee-text.blade.php deleted file mode 100644 index e71cc5567..000000000 --- a/resources/views/components/marguee-text.blade.php +++ /dev/null @@ -1,21 +0,0 @@ -@php - $slot_text_length = strlen($slot); - - $slot_isHtml = strlen(strip_tags($slot)) < strlen($slot); -@endphp - -@if ($slot_text_length >= '30' && ! $slot_isHtml) -
-
- {!! $slot !!} -
-
-@else - {!! $slot !!} -@endif diff --git a/resources/views/components/table/td.blade.php b/resources/views/components/table/td.blade.php index cef211941..9e993a0da 100644 --- a/resources/views/components/table/td.blade.php +++ b/resources/views/components/table/td.blade.php @@ -1,4 +1,4 @@ - + @if (!empty($first)) @php $first_attributes = $first->attributes; diff --git a/resources/views/settings/currencies/index.blade.php b/resources/views/settings/currencies/index.blade.php index 8c2c570a7..92d94b8b4 100644 --- a/resources/views/settings/currencies/index.blade.php +++ b/resources/views/settings/currencies/index.blade.php @@ -58,9 +58,9 @@ - +
{{ $item->name }} - +
@if (! $item->enabled) diff --git a/resources/views/settings/taxes/index.blade.php b/resources/views/settings/taxes/index.blade.php index 53f38df33..745e70c80 100644 --- a/resources/views/settings/taxes/index.blade.php +++ b/resources/views/settings/taxes/index.blade.php @@ -73,9 +73,9 @@ - +
{{ $item->name }} - +
@if (! $item->enabled)