chore: Update deployment index.blade.php script for better performance

This commit is contained in:
Andras Bacsai 2024-05-29 11:13:22 +02:00
parent a8c3a2d991
commit e26f4ce707

View File

@ -105,12 +105,9 @@
@endforelse @endforelse
@if ($deployments_count > 0) @if ($deployments_count > 0)
@assets
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/utc.js"></script> <script src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/utc.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/relativeTime.js"></script> <script src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/relativeTime.js"></script>
@endassets
@script
<script> <script>
function goto(url) { function goto(url) {
window.location.href = url; window.location.href = url;
@ -145,8 +142,6 @@
} }
})) }))
</script> </script>
@endscript
@endif @endif
</div> </div>
</div> </div>