Skip to content

Commit

Permalink
feat: Homepage Nav Update (#3959)
Browse files Browse the repository at this point in the history
* fix: Devcontainer first start errors

* add nav update suggestions
  • Loading branch information
atoff authored Jan 25, 2025
1 parent fb74652 commit ae7199b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
8080,
3306
],
"postCreateCommand": "sh .devcontainer/initialSetup.sh",
"postAttachCommand": "composer install && php artisan migrate && php artisan db:seed"
}
5 changes: 5 additions & 0 deletions .devcontainer/initialSetup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
if ! [ -e .env ]
then
cp .env.example .env
fi
7 changes: 6 additions & 1 deletion config/services.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<?php

return [
Expand Down Expand Up @@ -90,7 +91,7 @@
'base' => 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', '')),
],
],

Expand All @@ -110,6 +111,10 @@
'database' => env('COMMUNITY_DATABASE'),
],

'docs' => [
'url' => 'https://docs.vatsim.uk',
],

'cts' => [
'database' => env('CTS_DATABASE'),
],
Expand Down
1 change: 1 addition & 0 deletions resources/views/components/nav.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
<li class="col-sm-12">
<ul>
<li>{!! link_to_route("site.operations.landing", "Welcome") !!}</li>
<li>{!! link_to(config('services.docs.url'), "Documentation") !!}</li>
<li>{!! link_to_route("site.airports", "Airfield Information") !!}</li>
<li>{!! link_to_route("site.operations.sectors", "Area Sectors") !!}</li>
<li>{!! link_to('https://community.vatsim.uk/forum/166-atc-procedure-changes/', "Procedure Changes") !!}</li>
Expand Down
8 changes: 2 additions & 6 deletions resources/views/site/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,10 @@ function toggleActive() {
<a class="nav-link" href="{{ route('site.atc.newController') }}">Become a Controller</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ route('site.roster.index') }}">Controller Roster</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://cts.vatsim.uk/home/solo.php">Solo Endorsements</a>
<a class="nav-link" href="{{ config('services.docs.url') }}">Documentation</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://cts.vatsim.uk/home/validations.php">Special
Endorsements</a>
<a class="nav-link" href="{{ route('site.roster.index') }}">Controller Roster</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ route('site.atc.heathrow') }}">Heathrow Endorsements</a>
Expand Down

0 comments on commit ae7199b

Please sign in to comment.