* 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>
162 lines
7.5 KiB
PHP
162 lines
7.5 KiB
PHP
<?php
|
|
|
|
use App\Support\Modules\DatabaseActivator;
|
|
use Nwidart\Modules\Activators\FileActivator;
|
|
|
|
return [
|
|
'namespace' => 'Modules',
|
|
'stubs' => [
|
|
'enabled' => true,
|
|
'path' => resource_path().'/stubs/modules',
|
|
'files' => [
|
|
'routes' => 'Http/Routes/web.php',
|
|
'routes-api' => 'Http/Routes/api.php',
|
|
'provider' => 'Providers/AppServiceProvider.php',
|
|
'route-provider' => 'Providers/RouteServiceProvider.php',
|
|
'event-service-provider' => 'Providers/EventServiceProvider.php',
|
|
'admin-panel-provider' => 'Providers/Filament/AdminPanelProvider.php',
|
|
'views/index' => 'Resources/views/index.blade.php',
|
|
'views/frontend' => 'Resources/views/layouts/frontend.blade.php',
|
|
'listener-test' => 'Listeners/TestEventListener.php',
|
|
'controller-index' => 'Http/Controllers/Frontend/IndexController.php',
|
|
'controller-api' => 'Http/Controllers/Api/ApiController.php',
|
|
'config' => 'Config/config.php',
|
|
'composer' => 'composer.json',
|
|
],
|
|
'replacements' => [
|
|
'start' => ['LOWER_NAME', 'ROUTES_LOCATION'],
|
|
'routes' => ['LOWER_NAME', 'STUDLY_NAME', 'MODULE_NAMESPACE'],
|
|
'routes-api' => ['LOWER_NAME', 'STUDLY_NAME', 'MODULE_NAMESPACE'],
|
|
'json' => ['LOWER_NAME', 'STUDLY_NAME', 'MODULE_NAMESPACE'],
|
|
'provider' => ['LOWER_NAME', 'STUDLY_NAME', 'MODULE_NAMESPACE'],
|
|
'admin-panel-provider' => ['LOWER_NAME', 'STUDLY_NAME', 'MODULE_NAMESPACE'],
|
|
'route-provider' => ['LOWER_NAME', 'STUDLY_NAME', 'MODULE_NAMESPACE'],
|
|
'event-service-provider' => ['STUDLY_NAME', 'MODULE_NAMESPACE'],
|
|
'listener-test' => ['LOWER_NAME', 'STUDLY_NAME', 'MODULE_NAMESPACE'],
|
|
'views/index' => ['LOWER_NAME', 'STUDLY_NAME'],
|
|
'views/frontend' => ['STUDLY_NAME'],
|
|
'controller-index' => ['LOWER_NAME', 'STUDLY_NAME', 'MODULE_NAMESPACE'],
|
|
'controller-api' => ['LOWER_NAME', 'STUDLY_NAME', 'MODULE_NAMESPACE'],
|
|
'config' => ['STUDLY_NAME'],
|
|
'composer' => [
|
|
'LOWER_NAME',
|
|
'STUDLY_NAME',
|
|
'VENDOR',
|
|
'AUTHOR_NAME',
|
|
'AUTHOR_EMAIL',
|
|
'MODULE_NAMESPACE',
|
|
'PROVIDER_NAMESPACE',
|
|
],
|
|
],
|
|
'gitkeep' => false,
|
|
],
|
|
'paths' => [
|
|
'modules' => base_path('modules'),
|
|
'assets' => public_path('modules'),
|
|
'migration' => base_path('database/migrations'),
|
|
'generator' => [
|
|
'config' => ['path' => 'Config', 'generate' => true],
|
|
'command' => ['path' => 'Console', 'generate' => true],
|
|
'migration' => ['path' => 'Database/migrations', 'generate' => true],
|
|
'seeds' => ['path' => 'Database/seeds', 'generate' => true],
|
|
'factory' => ['path' => 'Database/factories', 'generate' => true],
|
|
'model' => ['path' => 'Models', 'generate' => true],
|
|
// 'controller' => ['path' => 'Http/Controllers', 'generate' => true],
|
|
'controller-api' => ['path' => 'Http/Controllers/Api', 'generate' => true],
|
|
'controller-index' => ['path' => 'Http/Controllers/Frontend', 'generate' => true],
|
|
'filter' => ['path' => 'Http/Middleware', 'generate' => true],
|
|
'request' => ['path' => 'Http/Requests', 'generate' => true],
|
|
'routes' => ['path' => 'Http/Routes', 'generate' => true],
|
|
'provider' => ['path' => 'Providers', 'generate' => false],
|
|
'assets' => ['path' => 'Resources/assets', 'generate' => true],
|
|
'lang' => ['path' => 'Resources/lang', 'generate' => true],
|
|
'views' => ['path' => 'Resources/views', 'generate' => true],
|
|
'test' => ['path' => 'tests', 'generate' => true],
|
|
'repository' => ['path' => 'Repositories', 'generate' => false],
|
|
'event' => ['path' => 'Events', 'generate' => false],
|
|
'listener' => ['path' => 'Listeners', 'generate' => true],
|
|
'policies' => ['path' => 'Policies', 'generate' => false],
|
|
'rules' => ['path' => 'Rules', 'generate' => false],
|
|
'jobs' => ['path' => 'Jobs', 'generate' => false],
|
|
'emails' => ['path' => 'Resources/Emails', 'generate' => false],
|
|
'notifications' => ['path' => 'Notifications', 'generate' => false],
|
|
'resource' => ['path' => 'Models/Transformers', 'generate' => false],
|
|
'filament' => ['path' => 'Filament', 'generate' => true],
|
|
'provider-filament' => ['path' => 'Providers/Filament', 'generate' => true],
|
|
],
|
|
],
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Scan Path
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here you define which folder will be scanned. By default will scan vendor
|
|
| directory. This is useful if you host the package in packagist website.
|
|
|
|
|
*/
|
|
|
|
'scan' => [
|
|
'enabled' => false,
|
|
'paths' => [
|
|
base_path('vendor/*/*'),
|
|
base_path('modules/*'),
|
|
],
|
|
],
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Composer File Template
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is the config for composer.json file, generated by this package
|
|
|
|
|
*/
|
|
|
|
'composer' => [
|
|
'vendor' => '',
|
|
'author' => [
|
|
'name' => '',
|
|
'email' => '',
|
|
],
|
|
],
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Caching
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is the config for setting up caching feature.
|
|
|
|
|
*/
|
|
'cache' => [
|
|
'enabled' => true,
|
|
'driver' => env('CACHE_DRIVER', 'file'),
|
|
'key' => 'phpvms-modules',
|
|
'lifetime' => 60 * 60 * 6, // 6 hours
|
|
],
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Choose what laravel-modules will register as custom namespaces.
|
|
| Setting one to false will require you to register that part
|
|
| in your own Service Provider class.
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
'register' => [
|
|
'translations' => true,
|
|
],
|
|
|
|
'activator' => 'database',
|
|
'activators' => [
|
|
'file' => [
|
|
'class' => FileActivator::class,
|
|
'statuses-file' => config_path('modules_statuses.json'),
|
|
'cache-key' => 'activator.installed',
|
|
'cache-lifetime' => 60 * 60 * 24 * 7, // 1 week
|
|
],
|
|
'database' => [
|
|
'class' => DatabaseActivator::class,
|
|
'statuses-file' => config_path('modules_statuses.json'),
|
|
'cache-key' => 'activator.installed',
|
|
'cache-lifetime' => 60 * 60 * 24 * 7, // 1 week
|
|
],
|
|
],
|
|
];
|