From bf166fcf82f643dd556e1eb9e37aa465aed4e5f4 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Fri, 3 Jul 2026 21:01:06 +0800 Subject: [PATCH 1/2] Update: Vue 2 to Vue 3 with Typescript, node 14 to node 22, Jenkinsfile, Dockerfile, vapor.yml (Post PROD Deployment) --- resources/views/partials/header.blade.php | 169 +++++++++++----------- 1 file changed, 85 insertions(+), 84 deletions(-) diff --git a/resources/views/partials/header.blade.php b/resources/views/partials/header.blade.php index ac3c70fa..2c4632c9 100644 --- a/resources/views/partials/header.blade.php +++ b/resources/views/partials/header.blade.php @@ -30,7 +30,7 @@ -
+
Payments
@@ -120,97 +120,98 @@
@endif +
+@push('scripts') + -
+ // Items to hide - start from the last ones (maintaining original order for visible items) + var itemsToHide = []; + + // Iterate from the end to find items that need to be hidden + for (var i = items.length - 1; i >= 0; i--) { + var item = items[i]; + item.style.visibility = 'hidden'; + var itemWidth = item.offsetWidth + 20; + + if (totalWidth - itemWidth <= availableWidth) { + // This item can be shown, stop hiding + totalWidth -= itemWidth; + item.style.visibility = ''; + break; + } else { + // This item needs to be hidden + itemsToHide.push(item); + totalWidth -= itemWidth; + } + item.style.visibility = ''; + } + + // Reverse to get them in original order for dropdown + itemsToHide.reverse(); + + // Add hidden items to dropdown in their original order + itemsToHide.forEach(function(item) { + var link = item.querySelector('a'); + if (link) { + var menuItem = document.createElement('a'); + menuItem.href = link.href; + menuItem.className = 'dropdown-item'; + menuItem.innerHTML = '' + link.textContent.trim() + ''; + moreMenu.appendChild(menuItem); + } + item.style.display = 'none'; + }); + + moreDropdown.style.display = moreMenu.children.length > 0 ? 'block' : 'none'; + } + + adjustNavigation(); + window.addEventListener('resize', adjustNavigation); + setTimeout(adjustNavigation, 500); +}); + +@endpush From bd5a6eff6909959338086bfd0c7e691839ad31b0 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Fri, 3 Jul 2026 21:17:22 +0800 Subject: [PATCH 2/2] Update: Vue 2 to Vue 3 with Typescript, node 14 to node 22, Jenkinsfile, Dockerfile, vapor.yml (Post PROD Deployment) --- resources/views/partials/header.blade.php | 119 ++++++++++++++++++++-- 1 file changed, 110 insertions(+), 9 deletions(-) diff --git a/resources/views/partials/header.blade.php b/resources/views/partials/header.blade.php index 2c4632c9..37a158bb 100644 --- a/resources/views/partials/header.blade.php +++ b/resources/views/partials/header.blade.php @@ -22,11 +22,24 @@ - -
-
E-Invoice Guideline
+ +
+ + +
@@ -124,7 +137,88 @@ @push('scripts') @endpush