-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Base classes instead of cond loading for Advanced Tables
- Loading branch information
Showing
6 changed files
with
53 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,4 +116,4 @@ | |
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Moox\Core\Base; | ||
|
||
use Filament\Resources\RelationManagers\RelationManager; | ||
|
||
if (config('core.use_advanced_tables') === true && trait_exists('\Archilex\AdvancedTables\AdvancedTables')) { | ||
class BaseRelationManager extends RelationManager | ||
{ | ||
// @phpstan-ignore-next-line | ||
use \Archilex\AdvancedTables\AdvancedTables; | ||
Check failure on line 11 in packages/core/src/Base/BaseRelationManager.php GitHub Actions / phpstan
|
||
} | ||
} else { | ||
class BaseRelationManager extends RelationManager {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Moox\Core\Base; | ||
|
||
use Filament\Resources\Resource; | ||
|
||
if (config('core.use_advanced_tables') === true && trait_exists('\Archilex\AdvancedTables\AdvancedTables')) { | ||
class BaseResource extends Resource | ||
{ | ||
// @phpstan-ignore-next-line | ||
use \Archilex\AdvancedTables\AdvancedTables; | ||
Check failure on line 11 in packages/core/src/Base/BaseResource.php GitHub Actions / phpstan
|
||
} | ||
} else { | ||
class BaseResource extends Resource {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Moox\Core\Base; | ||
|
||
use Filament\Widgets\TableWidget; | ||
|
||
if (config('core.use_advanced_tables') === true && trait_exists('\Archilex\AdvancedTables\AdvancedTables')) { | ||
class BaseWidget extends TableWidget | ||
{ | ||
// @phpstan-ignore-next-line | ||
use \Archilex\AdvancedTables\AdvancedTables; | ||
Check failure on line 11 in packages/core/src/Base/BaseWidget.php GitHub Actions / phpstan
|
||
} | ||
} else { | ||
class BaseWidget extends TableWidget {} | ||
} |
This file was deleted.
Oops, something went wrong.