Skip to content

Commit

Permalink
Merge pull request #46 from ECFMP/filament-colors
Browse files Browse the repository at this point in the history
feat: change primary color to vatsim green
  • Loading branch information
AndyTWF authored May 20, 2022
2 parents 0c067a3 + 9b9515d commit fa50834
Show file tree
Hide file tree
Showing 20 changed files with 1,270 additions and 117 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test
on:
push:
branches:
- 'main'
- "main"
pull_request:

jobs:
Expand All @@ -16,8 +16,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ '8.1' ]
composer: [ 'v2' ]
php: ["8.1"]
composer: ["v2"]
steps:
- name: Checkout Code
uses: actions/checkout@v2
Expand Down Expand Up @@ -51,6 +51,12 @@ jobs:
- name: Install Composer Dependencies
run: composer install --prefer-dist --no-interaction --optimize-autoloader --no-suggest

- name: NPM Build
run: |
npm ci
npm run production --no-progress
cat public/mix-manifest.json # See asset versions in log
- name: Copy Env
run: cp .env.example .env

Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@ Homestead.json
# Laravel IDE Helper
_ide_helper*\.php
\.phpstorm\.meta\.php

# Laravel Mix
public/js/**
public/css/**
public/mix-manifest.json
22 changes: 19 additions & 3 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

namespace App\Providers;

use App\Http\Resources\AirportGroupResource;
use Filament\Facades\Filament;
use Illuminate\Support\HtmlString;
use App\Http\Resources\EventResource;
use App\Http\Resources\FlightInformationRegionResource;
use App\Http\Resources\FlowMeasureResource;
use Illuminate\Support\ServiceProvider;
use App\Http\Resources\FlowMeasureResource;
use App\Http\Resources\AirportGroupResource;
use App\Http\Resources\FlightInformationRegionResource;

class AppServiceProvider extends ServiceProvider
{
Expand All @@ -31,5 +33,19 @@ public function boot()
EventResource::withoutWrapping();
FlowMeasureResource::withoutWrapping();
FlightInformationRegionResource::withoutWrapping();

Filament::pushMeta([
new HtmlString('<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">'),
new HtmlString('<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">'),
new HtmlString('<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">'),
new HtmlString('<link rel="manifest" href="/site.webmanifest">'),
new HtmlString('<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">'),
new HtmlString('<meta name="msapplication-TileColor" content="#603cba">'),
new HtmlString('<meta name="theme-color" content="#ffffff">'),
]);

Filament::serving(function () {
Filament::registerTheme(mix('css/filament.css'));
});
}
}
Loading

0 comments on commit fa50834

Please sign in to comment.