From 509efbe821462a10f36e2b32c3c1fbfa1c1aa0f2 Mon Sep 17 00:00:00 2001 From: josh Date: Sat, 4 Apr 2026 22:19:58 +1000 Subject: [PATCH] Added timezones --- .../Commands/PopulateAirportTimezones.php | 2 +- .../js/Components/FlightsGoneBy/GlassBox.vue | 20 +- resources/js/Layouts/MainLayout.vue | 26 ++- resources/js/Pages/Auth/ConfirmPassword.vue | 92 +++++---- resources/js/Pages/Auth/ForgotPassword.vue | 110 ++++++----- resources/js/Pages/Auth/Login.vue | 167 ++++++++-------- resources/js/Pages/Auth/Register.vue | 184 +++++++++--------- resources/js/Pages/Auth/ResetPassword.vue | 158 +++++++-------- resources/js/Pages/Auth/VerifyEmail.vue | 103 +++++----- resources/js/Pages/Dashboard.vue | 69 ++++--- resources/js/Pages/ReconcileFlight.vue | 9 +- 11 files changed, 516 insertions(+), 424 deletions(-) diff --git a/app/Console/Commands/PopulateAirportTimezones.php b/app/Console/Commands/PopulateAirportTimezones.php index cd1e116..c2def03 100644 --- a/app/Console/Commands/PopulateAirportTimezones.php +++ b/app/Console/Commands/PopulateAirportTimezones.php @@ -17,7 +17,7 @@ class PopulateAirportTimezones extends Command */ public function handle() { - Airport::whereNull('timezone')->chunk(100, function ($airports) { + Airport::whereNull('timezone')->chunkById(100, function ($airports) { foreach ($airports as $airport) { $zoneName = null; $attempts = 0; diff --git a/resources/js/Components/FlightsGoneBy/GlassBox.vue b/resources/js/Components/FlightsGoneBy/GlassBox.vue index 54facef..0383863 100644 --- a/resources/js/Components/FlightsGoneBy/GlassBox.vue +++ b/resources/js/Components/FlightsGoneBy/GlassBox.vue @@ -1,9 +1,14 @@ @@ -12,8 +17,19 @@ .glass-box { width: 50%; min-height: 50dvh; - gap:1em; + gap: 1em; padding: 2em; } +h2 { + font-size: 2rem; + text-align: center; +} + +p { + text-align: center; + width: 100%; + opacity: 0.7; + margin-bottom: 1rem; +} diff --git a/resources/js/Layouts/MainLayout.vue b/resources/js/Layouts/MainLayout.vue index 6127489..5eaa878 100644 --- a/resources/js/Layouts/MainLayout.vue +++ b/resources/js/Layouts/MainLayout.vue @@ -3,15 +3,20 @@ import {Link} from "@inertiajs/vue3"; import MainHeader from "@/Components/FlightsGoneBy/MainHeader.vue"; import MainFooter from "@/Components/FlightsGoneBy/MainFooter.vue"; import Radar from "@/Components/FlightsGoneBy/Radar.vue"; +import { usePage } from "@inertiajs/vue3"; +const page = usePage(); +