Review changes

This commit is contained in:
Vehikl 2025-06-12 15:44:16 -04:00
parent 875a933dc9
commit a7fef61937
6 changed files with 8 additions and 10 deletions

View File

@ -6,7 +6,7 @@ use Filament\Forms\Components\Component;
use Filament\Forms\Components\TextInput;
use Illuminate\Support\Str;
abstract class CommonSchema
abstract class BaseSchema
{
abstract public function getId(): string;

View File

@ -3,7 +3,7 @@
namespace App\Extensions\Captcha\Schemas\Turnstile;
use App\Extensions\Captcha\Schemas\CaptchaSchemaInterface;
use App\Extensions\Captcha\Schemas\CommonSchema;
use App\Extensions\Captcha\Schemas\BaseSchema;
use Exception;
use Filament\Forms\Components\Component as BaseComponent;
use Filament\Forms\Components\Placeholder;
@ -11,7 +11,7 @@ use Filament\Forms\Components\Toggle;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\HtmlString;
class TurnstileSchema extends CommonSchema implements CaptchaSchemaInterface
class TurnstileSchema extends BaseSchema implements CaptchaSchemaInterface
{
public function getId(): string
{

View File

@ -23,8 +23,6 @@ use Filament\Widgets\Widget;
use Filament\Widgets\WidgetConfiguration;
use Livewire\Attributes\On;
// use App\Filament\Server\Widgets\ServerNetworkChart;
class Console extends Page
{
use InteractsWithActions;
@ -69,11 +67,10 @@ class Console extends Page
public function mountFeature(string $data): void
{
$data = json_decode($data);
//$feature = data_get($data, 'key');
$feature = data_get($data, 'key');
$feature = 'test';
$feature = $this->featureService->get($feature);
if (/*!$feature || */ $this->getMountedAction()) {
if (!$feature || $this->getMountedAction()) {
return;
}
$this->mountAction($feature->getId());

View File

@ -17,6 +17,7 @@ class FeatureServiceProvider extends ServiceProvider
$this->app->singleton(FeatureService::class, function ($app) {
$provider = new FeatureService();
// Default Feature providers
$provider->register(new GSLTokenSchema());
$provider->register(new JavaVersionSchema());
$provider->register(new MinecraftEulaSchema());

View File

@ -17,6 +17,7 @@ class OAuthServiceProvider extends ServiceProvider
{
$this->app->singleton(OAuthService::class, function ($app) {
$service = new OAuthService();
// Default OAuth providers included with Socialite
$service->register(new CommonSchema('facebook', icon: 'tabler-brand-facebook-f', hexColor: '#1877f2'));
$service->register(new CommonSchema('x', icon: 'tabler-brand-x-f', hexColor: '#1da1f2'));

View File

@ -17,6 +17,5 @@
"prettier": "^3.4.2",
"tailwindcss": "^3.4.13",
"vite": "^6.0"
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
}