From ae7199b3a782e9c545139244b85e9a28a601a20b Mon Sep 17 00:00:00 2001 From: Alex Toff Date: Sat, 25 Jan 2025 14:20:37 +0000 Subject: [PATCH] feat: Homepage Nav Update (#3959) * fix: Devcontainer first start errors * add nav update suggestions --- .devcontainer/devcontainer.json | 1 + .devcontainer/initialSetup.sh | 5 +++++ config/services.php | 7 ++++++- resources/views/components/nav.blade.php | 1 + resources/views/site/home.blade.php | 8 ++------ 5 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 .devcontainer/initialSetup.sh diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index cc653c9d89..5388f65208 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -25,5 +25,6 @@ 8080, 3306 ], + "postCreateCommand": "sh .devcontainer/initialSetup.sh", "postAttachCommand": "composer install && php artisan migrate && php artisan db:seed" } \ No newline at end of file diff --git a/.devcontainer/initialSetup.sh b/.devcontainer/initialSetup.sh new file mode 100644 index 0000000000..3fb4c41877 --- /dev/null +++ b/.devcontainer/initialSetup.sh @@ -0,0 +1,5 @@ +#!/bin/bash +if ! [ -e .env ] +then + cp .env.example .env +fi \ No newline at end of file diff --git a/config/services.php b/config/services.php index 04bce23fcc..9edd122f78 100644 --- a/config/services.php +++ b/config/services.php @@ -1,3 +1,4 @@ + env('VATSIM_OAUTH_BASE', 'https://auth.vatsim.net'), 'id' => env('VATSIM_OAUTH_CLIENT'), 'secret' => env('VATSIM_OAUTH_SECRET'), - 'scopes' => explode(',', env('VATSIM_OAUTH_SCOPES')), + 'scopes' => explode(',', env('VATSIM_OAUTH_SCOPES', '')), ], ], @@ -110,6 +111,10 @@ 'database' => env('COMMUNITY_DATABASE'), ], + 'docs' => [ + 'url' => 'https://docs.vatsim.uk', + ], + 'cts' => [ 'database' => env('CTS_DATABASE'), ], diff --git a/resources/views/components/nav.blade.php b/resources/views/components/nav.blade.php index 4e20953641..40e529614c 100644 --- a/resources/views/components/nav.blade.php +++ b/resources/views/components/nav.blade.php @@ -97,6 +97,7 @@