Commit Graph

878 Commits

Author SHA1 Message Date
Arthur Parienté
b69979ef1e
Merge branch 'feature/8.0' (#2041)
* Run rector

* Run rector
2025-05-05 19:58:37 -05:00
Nabeel Shahzad
00c6942e73
Merge remote-tracking branch 'origin/feature/8.0'
# Conflicts:
#	.github/version.yml
#	app/Console/Commands/Version.php
#	app/Database/seeds/permissions.yml
#	app/Http/Controllers/Admin/UserController.php
#	app/Models/UserOAuthToken.php
#	app/Providers/AuthServiceProvider.php
#	composer.json
#	composer.lock
#	config/version.yml
#	modules/Sample/Providers/SampleServiceProvider.php
#	resources/views/admin/menu.blade.php
#	resources/views/layouts/seven/nav.blade.php
#	version.json
2025-05-05 11:14:06 -05:00
Arthur Parienté
28e2d33b88
[8.x] Add RectorPHP (#1986)
* Add rector

* Remove cache

* Run rector again

* Run pint

* Run Rector in CI

* Update composer.lock
2025-03-14 11:38:16 -05:00
Arthur Parienté
a9c135f9d8
[8.x] Fix module navigation (#2012)
* Fix module navigation

* Run pint

* Add missing code? (wtf)

* Run pint
2025-03-13 10:25:47 -05:00
Arthur Parienté
7d7e7ea548
Add missing ',' in email-plain.blade.php (#1987) 2025-02-04 14:31:26 -06:00
Arthur Parienté
fccbc751fe
Fix admin links (#1985) 2025-02-01 13:49:26 -06:00
Arthur Parienté
8df055f056
[7.x] Add access_admin gate (#1975)
* Add access_admin gate

* Add example in seven theme nav
2025-02-01 12:51:44 -06:00
Arthur Parienté
4915c62727
Load assets using vite instead of webpack in seven theme (#1978) 2025-01-31 20:57:29 -06:00
Arthur Parienté
22c548c7ad
[7.x] Add log viewer (#1972)a
* add opcodesio/log-viewer

* set up with custom permission

---------

Co-authored-by: Nabeel S. <nabeelio@users.noreply.github.com>
2025-01-31 20:56:50 -06:00
Arthur Hetem
bcca922344
fix: fix hcaptcha sitekey tag (#1979) 2025-01-22 14:34:39 -06:00
Arthur Hetem
21fcfe63d3
feat: include logo and version on dashboard widget (#1976)
* feat: include logo + version on dashboard widget

* Apply fixes from StyleCI

* Revert "Apply fixes from StyleCI"

This reverts commit 915f0b6f6c3c3488e1afd88c7a83bc5bccfaec7f.

* style: fix lint of DashboardWiget

* refactor: Change widget name and sorting, logo bg

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2025-01-22 06:18:51 -05:00
Arthur Parienté
bc1e58a583
Add "Processing, please wait" meseasge during migrations in updater and installer (#1962) 2025-01-20 10:57:09 -06:00
Arthur Parienté
d5b24a1e7a
User shouldn't be able to edit ivao/vatsim id directly (#1965) 2025-01-20 10:56:42 -06:00
Arthur Parienté
0bb4c393e2
fix: active state detection in ModuleLinksPlugin (#1969) 2025-01-20 10:56:18 -06:00
Arthur Parienté
11747da6ba
[8.x] New Admin Interface, Laravel 11 Upgrade and Vite Upgrade (#1953)
* LatestPirepsChart Widget

* Apply fixes from StyleCI

* Fix Pirep widgets

* Add missing icons

* Migrate permission system to spatie and add filament shield

* Apply fixes from StyleCI

* Fix AircraftResource

* Use global RelationManagers when possible

* Apply fixes from StyleCI

* Update Maintenance page

* Update AirlineResource

* Add emptyStateActions

* Apply fixes from StyleCI

* Fix SubfleetResource

* Update Resources

* Apply fixes from StyleCI

* Add Filament Cluster

* Publish Filament Assets

* Use RichEditor for notes and descriptions

* Add Filament Global Search

* Apply fixes from StyleCI

* Remove old admin interface

* Update old admin theme (for backward compatibility)

* Add UpdatePending Middleware to Admin Dashboard

* Add OldModulesLinks widget

* Apply fixes from StyleCI

* Fix Edit Module

* Update arthurpar06's fork of coolsam/modules

* Enable shield auto-discovery

* Update arthurpar06's fork of coolsam/modules

* Update arthurpar06's fork of coolsam/modules

* Make sure only super_admins can edit roles

* Update arthurpar06's fork of coolsam/modules

* Apply fixes from StyleCI

* Remove role permissions from ShieldSeeder

* Move the upgrade role system migrations to a single one. Make previous admin users admin again

* Fix fares relationship pivot

* Fix drop table order for roles migrations

* Run the ShieldSeeder on install

* Remove sample module from old module links

* Fix permission upgrade migration

* Apply fixes from StyleCI

* Migrate from webpack to vite

* Fix missing icons in login

* Fix leaflet-bar on hover

* Fix sass division

* Build new assets

* Update brand name

* Apply fixes from StyleCI

* Add link to frontend in admin

* Apply fixes from StyleCI

* Add user avatar in filament

* Use tabs for settings

* Apply fixes from StyleCI

* Fix composer.lock

* Add backups page in admin

* Apply fixes from StyleCI

* Fix Flight Level in FlightResource

* Hot reload for filament in local

* Improve global search in admin

* Apply fixes from StyleCI

* Upgrade to filament 3.1

* Update filament

* Fix dev seeds

* Add migrations for roles and permissions

* Apply fixes from StyleCI

* Delete temp tables after new roles import

* Add missing permission checks

* Add more sortable/searchable fields

* Use ActionGroup in PirepResource

* Add UsersRelationManager in AwardResource

* Apply fixes from StyleCI

* Add sortable and searchable to AwardResource

* Apply fixes from StyleCI

* Rework PirepResource form

* Apply fixes from StyleCI

* Fix recordUrl in PirepResource

* Add aircraft button in subfleet edit page

* Add placeholders for pivot

* Add Fare > Flight relationship

* Update modules stub

* Update arthurpar06's fork of coolsam/modules

* Apply fixes from StyleCI

* Fix modules stub replacements

* Add Favicon to Filament

* Remove webpack dependencies

* Delete cache files

* Fix composer.lock

* Allow more control over custom Pirep Fields

* New actions in Maintenance

* New Aircraft Fields

* Upgrade to vite 5

* Upgrade to tailwindcss 3.4

* Move import roles and permissions to migrations data

* Apply fixes from StyleCI

* Upgrade to filament 3.2

* Upgrade filament

* Add InviteResource

* Add ability to create user from admin

* Apply fixes from StyleCI

* Fix composer.json

* Update composer.lock

* Update composer.lock

* Fix composer.lock

* Add ActivityLog to filament

* Apply fixes from StyleCI

* Upgrade dependencies

* Fix OldModulesLinksWidget

* Add access_admin gate

* Update filament plugins

* Update seeders and migrations related to permissions upgrade

* Upgrade filament

* Add unsaved changes alerts

* Remove laravelcollective/html

* Use fork for queueworker/sansdaemon

* Remove laravelcollective/html provider

* Bump dependencies

* Add mariadb db driver

* Apply fixes from StyleCI

* Update money config file

* wip

* Add ModuleLinksPlugin

* Add permissions check in ModuleLinksPlugin

* Remove OldModulesLinks Widget

* Update AdminPanelProvider stub

* Apply fixes from StyleCI

* Fix webcron id cache

* Remove some old controllers

* Add ajax calls for airports in admin

* Update Dependencies

* Hide internal userfields in admin

* Fix Expenses

* Add ability to edit news

* Apply fixes from StyleCI

* Add optimize in maintenance

* Add update app to maintenance

* Add installer in filament

* Node dependencies upgrade

* Fix new installer

* wip

* Add LegacyImporter

* Add Updater

* Add pages slugs

* Remove system link from module links

* Update redirect url

* Add migrations output to installer

* Update system middleware links

* Remove old system

* Some fixes

* Apply fixes from StyleCI

* Fix InstalledCheck middleware

* Improve Installer Page

* Apply fixes from StyleCI

* Fix Installer

* Add more types to system pages

* Add some phpdocs

* Apply fixes from StyleCI

* Update composer.lock

* Add ability to add multiple ranks to a subfleet at once

* SimBrief Airframes & Aircraft Weight Casting in filament

* Apply fixes from StyleCI

* Update primary color

* Upgrade packages (for security reasons)

* Upgrade some npm packages

* Apply fixes from StyleCI

* Upgrade to vite v6

* Use FiltersForm in Finances and migrate AirlineFinanceTable to a TableWidget

* Apply fixes from StyleCI

* Add missing policies

* Apply fixes from StyleCI

* Fix ShieldSeeder namespace

* Update composer.lock

* Remove v7 migrations

* Do not seed roles via yaml

* Update installer

* Apply fixes from StyleCI

* Migrate queueworker/sansdaemon

* Fix Finance Widgets

* Apply fixes from StyleCI

* Update ability middlewares

* remove old admin views

* make columns toggleable in AirportResource

* update sail and docker to php84

* update php versions in build

* upgrade packages to support php8.4

* fix: Implicitly marking parameter ... as nullable is deprecated, the explicit nullable type must be used instead

* fix: Implicitly marking parameter ... as nullable is deprecated, the explicit nullable type must be used instead

* add missing pagination for old admin

* Apply automatic changes

* update composer.lock

* update AdminPanelProvider stub

* update UserResource icon

* hide internal user fields

* Add go back to app in admin panel provider stub

* Apply automatic changes

* Update ModuleLinksPlugin

* Add ModuleSetupFilament command

* Apply automatic changes

* Change migrations date to ensure good order

* Update composer.lock

* Migrate create_phpvms_table migration to laravel 11 syntax

* Don't show in progress, draft and cancelled pireps in admin

* Add missing 's' in ranks navigation label

* Don't create old role tables on fresh installs

* Add back default

* Redirect /update to /system/update

* Change news default pagination

* fix admin link in nav

* fix permissions for updater

* fix permissions for updater

* Lint code

* Remove PHP 8.1 from workflow

* fix findUsersOnLeave

* update composer.lock

* Update role export

* Fix export table names

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: ArthurHetem <arthurhetemgames@gmail.com>
Co-authored-by: arthurpar06 <arthurpar06@users.noreply.github.com>
2025-01-16 10:24:26 -06:00
Taylor Broad
4cbfcf800c
fix pagination alignment (#1942) 2025-01-13 10:04:28 -06:00
Nabeel S.
63b0c85f68
Add a default theme that points to the beta (#1939)
* Add a default theme that points to the beta

* Add a theme description
2025-01-13 09:39:40 -06:00
B.Fatih KOZ
1a02196d3d
Credits blade for seven theme (#1937)
* Add credits blade

Closes #1935

Thanks @PaintSplasher for his contribution, nice catch there.

* Manual Style Fixes
2025-01-12 15:23:56 -06:00
Taylor Broad
2fd909a64d
add if metar condition (#1931) 2025-01-11 10:41:18 -05:00
Taylor Broad
7e30259a19
New Default Theme for phpVMS (#1921)
* refactor: rename default to beta

* feat: create seven theme with cdn links for bs5

* modify branches

* refactor: change database seed and add migration for default theme check

* task: move all theme files over for working theme

* refactor: dashboard base changes.

* refactor: migrate home to bs5

* refactor: find and replace all `data-` references to `data-bs-`

* refactor: migrate errors to bs5

* refactor: dashboard ui

* refactor: migrate profile bs5, tomselectjs

* adjust styling

* refactor: update copyright. add light/dark button

* fix: TomSelect script tags missing

* fix: tomselect dark mode fix

* refactor: airport search for TomSelect.

* refactor: adjusted error pages to work in light/dark mode.

* fix: prevent "flashbang" on dark mode.

* fix: "flashbang" for real this time.

* refactor: nav items vertical alignment

* refactor: migrate navbar icons to bs icons

* refactor: migrate flash to bs5

* fix: add missing leaflet css

* refactor: migrate livemap to bs5

* refactor: migrate downloads to bs5

* refactor: migrate external redirect modal to bs5

* Apply fixes from StyleCI

* refactor: migrate footer to bs5

* fix: flashbang when dark mode is auto

* refactor: migrate pagination for bs5

* refactor: restructure page ordering to snap footer to bottom if content isn't full height.

* refactor: container width

* refactor: update dashboard widget

* refactor: finish profile edit, include networks

* refactor: fix profile card footer

* refactor: migrate user list to bs5

* refactor: migrate airport page to bs5

* remove jQuery from bidding scripts

* refactor: update layout, add css.

* add: view flight lang def

* refactor: all flight pages

* refactor: all of pireps

* refactor: authentication

* fix: remove select2 classes

* refactor: migrate info component to bs5

* fix popovers for flights page

Co-authored-by: Arthur Hetem <ArthurHetem@users.noreply.github.com>

* adjust pirep fields

* fix airport pages based on feedback

* refactor: changes to weather widget card

* refactor: migrate widgets to bs5

* refactor: changes to weather widget cards

* fix: comment out missing class

* fix: make header a card. Move weather into tabs.

* fix: fix offcanvas id on weather wiget

* refactor: remove jquery from flight scripts

* fix: add missing cookieconsentcss

* refactor: migrate livemap noflights div to bs5

* push changes

* refactor: responsive design for home

* fix: remove cards bg and primary bg color

* refactor: change color mode auto to system

* fix button sizes

* fix: move migration to migration_data

* fix: add additional classes.

* Apply fixes from StyleCI

* fix: nav spacing

* fix: add missing langs, fix airport show bs5

* Apply fixes from StyleCI

* fix: adjust card-headers

* fix: aircraft selection modal langs and js

* Apply fixes from StyleCI

* fix: make seven default fallback

* enhancement: add feature to scan existing themes for references to default, and change those to "beta" to not break references for devs.

* Apply fixes from StyleCI

* fix: add check if beta directory exists before deleting default.

* refactor: change color mode auto to system in login layout

* fix: add missing french langs

* refactor: center the arrow vertically in the profile dropdown

* fix: change default icon for module links.

* Apply fixes from StyleCI

---------

Co-authored-by: ArthurHetem <arthurhetemgames@gmail.com>
Co-authored-by: Arthur Pariente <arthur.pariente78960@gmail.com>
Co-authored-by: Taylor Broad <BossOfGames@users.noreply.github.com>
Co-authored-by: Arthur Hetem <ArthurHetem@users.noreply.github.com>
Co-authored-by: Nabeel S. <nabeelio@users.noreply.github.com>
2025-01-10 10:38:59 -06:00
Arthur Parienté
a1b94e99dd
Add docker for production (#1914)
* Add docker for production

* Add custom dockerfile

* Add trusted proxies

* Add mariadb client (required for backups)

* swap prod and dev docker compose names

* remove sample module

* Add .env.example

* Add support for installer to handle existing .env file and create only DB entries

* Add some documentation about the docker stack

* Align user and group variable names with sail conventions

* Fix tests

* Apply fixes from StyleCI

* Update composer.lock

* remove default db credentials from .env.example

* upgrade nesbot/carbon

---------

Co-authored-by: arthurpar06 <arthurpar06@users.noreply.github.com>
2025-01-09 11:02:55 -06:00
Taylor Broad
0421186c64
Modify Flight Importer Deletion Options (#1924)
* Modify flight importer

* Apply fixes from StyleCI

* styleci fix

* fix delete previous error

---------

Co-authored-by: Taylor Broad <BossOfGames@users.noreply.github.com>
2025-01-04 20:32:47 -06:00
Taylor Broad
9316ef42d0
fix: update module stub to proper view loading template. (#1920) 2024-12-27 14:10:17 -06:00
B.Fatih KOZ
4ecfdd1241
Update Admin > Pireps > fields.blade.php (#1913)
Fix precision
2024-12-22 16:23:47 -05:00
B.Fatih KOZ
8fe9249496
Update fields.blade.php (#1895)
Fix for the `undefined variable` issue being observed while creating a new aircraft.
2024-11-20 11:02:10 -06:00
B.Fatih KOZ
5862b4061f
SimBrief Airframes & Aircraft Weight Casting (#1892)
* SimBrief Airframes

* Update AirframeController.php

* Settings and Manual Update

* Convert Aircraft Weights to Pounds

If the 'kg' is selected as weight unit.

* Fix Fuel Casting

* Update simbrief_form.blade.php

* Display weights with local units

* StyleFix CI Fixes :)

* StyleCI Fix 2 :)

* Update aircraft.csv for tests

Provide some weights

* Update ApiTest with AC Weights

* Update ApiTest.php

* Don't check the weights during tests (to test)

* Update ImporterTest.php

Add weight to importer

* Fix for wrong airframe_id generation.

Ref PilotID should be used.

* Use ENUMS instead of strings

For separating Internal / External airframes

* Forgot one :)

* Update Aircraft Resource

* Update Aircraft.php
2024-11-18 11:53:09 -06:00
B.Fatih KOZ
47ce6755b4
Turkish Translation (#1890) 2024-11-15 10:57:41 -06:00
Rendradinata Rafid
01926253e1
Added Japanese Language (#1884)
* Added Japanese Language

* stylecl fix

* removed unnecessary file

* Changed based of feedback.

---------

Co-authored-by: Nabeel S. <nabeelio@users.noreply.github.com>
2024-11-11 09:33:12 -06:00
B.Fatih KOZ
9cdbce8b15
Credits Page (For phpvms v7 and installed modules) (#1886)
* Credits (Feature Request)
2024-11-08 09:48:10 -06:00
Nabeel S.
d4212aaf84
Revert "Credits (Feature Request) (#1868)" (#1885)
This reverts commit e6030db954.
2024-10-13 20:31:15 -05:00
B.Fatih KOZ
e6030db954
Credits (Feature Request) (#1868)
* Credits (Feature Request)

* StlyCI Fix

---------

Co-authored-by: Nabeel S. <nabeelio@users.noreply.github.com>
2024-10-13 20:30:55 -05:00
B.Fatih KOZ
583cdea1dd
Search Flights By Type Rating and Aircraft ICAO Type Code (#1881)
* New Search Options

* Update FlightController.php

Add name to the collection, so it can be used in the search form instead of (or together with) the type code.

* Update search.blade.php

Replace `!empty()` with `filled()` , thanks to @PaintSplasher for the test and solution.

---------

Co-authored-by: Nabeel S. <nabeelio@users.noreply.github.com>
2024-10-12 21:27:18 -05:00
Arthur Parienté
14cc6ceb55
Add ability to add multiple ranks to a subfleet at once (#1870)
Co-authored-by: Nabeel S. <nabeelio@users.noreply.github.com>
2024-09-10 10:22:09 -05:00
B.Fatih KOZ
53c82f8ea6
Latest Awards Widget (#1862) 2024-09-10 10:00:02 -05:00
Taylor Broad
81af5821e6
Correct Default theme.json (#1872)
The theme.json file uses "parent_theme" instead of "extends", which doesn't match the documentation. This has been corrected for a case where the user may copy and paste the default theme's theme.json file and expects it to work.
2024-09-10 09:58:24 -05:00
B.Fatih KOZ
4cd04f4ca5
Fix install error (#1869)
Airport selection dropdown loop was faulty, it was passing in the country full name for the code field, thus failing on new installs.
2024-08-21 08:48:38 -05:00
Nabeel S.
b827ea1368
Json acars profile (#1848)
* Output the new format of profile for download

* Apply fixes from StyleCI

* Missing end quote
2024-07-16 11:55:49 -05:00
Arthur Hetem
424380c63d
Remove laravelcollective/html from installer, updater and importer (#1807)
* Remove laravelHtml helper from installer and update

* Fix wrong action on importer complete form

* Fix wrong button types and env file

---------

Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
2024-07-15 13:39:51 -05:00
Arthur Parienté
2693acab8a
Add IVAO OAuth (#1828)
* Add IVAO OAuth

* Apply fixes from StyleCI

* Fix OAuthTest

* Update composer.lock

---------

Co-authored-by: arthurpar06 <arthurpar06@users.noreply.github.com>
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
2024-07-02 09:45:50 -04:00
Arthur Parienté
d39eb77159
VATSIM OAuth (#1761)
* Add socialiteproviders/vatsim

* Add vatsim_id field

* Fix OAuthTest

* Add vatsim to OAuthController

* Add vatsim login button

* Apply fixes from StyleCI

* Add vatsim profile buttons

* Add vatsim_id to sortable array in User

* Update composer.lock

* Update composer.lock

* Update composer.lock

* Update composer.lock

* Update composer.lock

* Update composer.lock

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
2024-07-01 13:25:23 -04:00
Nabeel S
523c78b023
Revert "Add IVAO OAuth (#1818)" (#1827)
This reverts commit 2285b78e9e.
2024-07-01 13:16:54 -04:00
Arthur Parienté
2285b78e9e
Add IVAO OAuth (#1818)
* Add IVAO OAuth

* Apply fixes from StyleCI

* Fix OAuthTest

---------

Co-authored-by: arthurpar06 <arthurpar06@users.noreply.github.com>
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
2024-07-01 13:16:14 -04:00
B.Fatih KOZ
afdd3db9dc
Fix Airport Pagination (#1823)
Without the change it will not be possible to live sort and use pagination.
2024-06-20 18:04:09 -05:00
B.Fatih KOZ
59b4d075e5
Add missing IATA Flight Types (#1821)
Add Shuttle Mode, Passenger with Cargo In Cabin, General Aviation, Air Taxi and two non standard (company specific) codes.
2024-06-17 16:18:01 -04:00
Arthur Parienté
287b3bf201
Add ability to edit news (#1814)
* Add ability to edit news

* Apply fixes from StyleCI

* Add option to send notifications

* Add option to send notifications when a news is updated

* Apply fixes from StyleCI

---------

Co-authored-by: arthurpar06 <arthurpar06@users.noreply.github.com>
2024-05-29 21:06:14 -05:00
Arthur Parienté
84ecc61ada
Update Module AppServiceProvider Stub (#1811)
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
2024-05-24 10:30:21 -05:00
Arthur Parienté
7c0eb7d906
Remove laravelcollective/html from frontend (#1753)
* Apply fixes from StyleCI

* Remove laravelcollective/html from frontend

* Fix typo

* Fix airport_list in PirepController@edit

* Fix values in pirep edit form

* Apply fixes from StyleCI

* Fill dpt/arr airports when creating a pirep from a flight

* Fix checkbox in registeration form

* Fix register view

* Fix typo

* Remove discord button from registration page (forgotten while merging)

* Remove readonly from select in pirep fields view

* Fix home airport selected value in edit profile

* Fix checkbox in edit profile form

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
2024-05-08 18:31:08 -05:00
Arthur Parienté
55cb0e0e68
Add activity logger (#1755)
* Apply fixes from StyleCI

* Add spatie/laravel-activitylog

* Add admin interface for activities

* Disable activity logging in api routes

* Add activity watcher to models

* Add clean up command

* Apply fixes from StyleCI

* Remove activities from menu if activity logger is disabled

* Fix migrations structure

* Apply fixes from StyleCI

* Fix tests

* Fix display of changes if newValue is an array

* Disable activity logger for frontend routes

* Enable activity logger only in admin routes

* Apply fixes from StyleCI

* Update composer.lock

* Update composer.lock

* Update composer.lock

* Update composer.lock

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
2024-03-05 14:19:22 -06:00
Arthur Parienté
ac97a572c5
Add modal for External Redirects (#1740)
* Add Modal for External Redirects

* Add Translations

* Apply fixes from StyleCI

* Add system to always trust a domain

* Show modal only if a has data-external-redirect

* Move isExternalFile check in an Attribute

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
2024-03-05 12:01:01 -06:00
B.Fatih KOZ
15bac3a9a7
Use internal units for pirep fields (#1782) 2024-03-05 09:11:42 -06:00