mirror of
https://github.com/pelican-dev/panel.git
synced 2025-06-22 08:11:07 +02:00
Review changes
This commit is contained in:
parent
875a933dc9
commit
a7fef61937
@ -6,7 +6,7 @@ use Filament\Forms\Components\Component;
|
|||||||
use Filament\Forms\Components\TextInput;
|
use Filament\Forms\Components\TextInput;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
|
|
||||||
abstract class CommonSchema
|
abstract class BaseSchema
|
||||||
{
|
{
|
||||||
abstract public function getId(): string;
|
abstract public function getId(): string;
|
||||||
|
|
@ -3,7 +3,7 @@
|
|||||||
namespace App\Extensions\Captcha\Schemas\Turnstile;
|
namespace App\Extensions\Captcha\Schemas\Turnstile;
|
||||||
|
|
||||||
use App\Extensions\Captcha\Schemas\CaptchaSchemaInterface;
|
use App\Extensions\Captcha\Schemas\CaptchaSchemaInterface;
|
||||||
use App\Extensions\Captcha\Schemas\CommonSchema;
|
use App\Extensions\Captcha\Schemas\BaseSchema;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Filament\Forms\Components\Component as BaseComponent;
|
use Filament\Forms\Components\Component as BaseComponent;
|
||||||
use Filament\Forms\Components\Placeholder;
|
use Filament\Forms\Components\Placeholder;
|
||||||
@ -11,7 +11,7 @@ use Filament\Forms\Components\Toggle;
|
|||||||
use Illuminate\Support\Facades\Http;
|
use Illuminate\Support\Facades\Http;
|
||||||
use Illuminate\Support\HtmlString;
|
use Illuminate\Support\HtmlString;
|
||||||
|
|
||||||
class TurnstileSchema extends CommonSchema implements CaptchaSchemaInterface
|
class TurnstileSchema extends BaseSchema implements CaptchaSchemaInterface
|
||||||
{
|
{
|
||||||
public function getId(): string
|
public function getId(): string
|
||||||
{
|
{
|
||||||
|
@ -23,8 +23,6 @@ use Filament\Widgets\Widget;
|
|||||||
use Filament\Widgets\WidgetConfiguration;
|
use Filament\Widgets\WidgetConfiguration;
|
||||||
use Livewire\Attributes\On;
|
use Livewire\Attributes\On;
|
||||||
|
|
||||||
// use App\Filament\Server\Widgets\ServerNetworkChart;
|
|
||||||
|
|
||||||
class Console extends Page
|
class Console extends Page
|
||||||
{
|
{
|
||||||
use InteractsWithActions;
|
use InteractsWithActions;
|
||||||
@ -69,11 +67,10 @@ class Console extends Page
|
|||||||
public function mountFeature(string $data): void
|
public function mountFeature(string $data): void
|
||||||
{
|
{
|
||||||
$data = json_decode($data);
|
$data = json_decode($data);
|
||||||
//$feature = data_get($data, 'key');
|
$feature = data_get($data, 'key');
|
||||||
|
|
||||||
$feature = 'test';
|
|
||||||
$feature = $this->featureService->get($feature);
|
$feature = $this->featureService->get($feature);
|
||||||
if (/*!$feature || */ $this->getMountedAction()) {
|
if (!$feature || $this->getMountedAction()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$this->mountAction($feature->getId());
|
$this->mountAction($feature->getId());
|
||||||
|
@ -17,6 +17,7 @@ class FeatureServiceProvider extends ServiceProvider
|
|||||||
$this->app->singleton(FeatureService::class, function ($app) {
|
$this->app->singleton(FeatureService::class, function ($app) {
|
||||||
$provider = new FeatureService();
|
$provider = new FeatureService();
|
||||||
|
|
||||||
|
// Default Feature providers
|
||||||
$provider->register(new GSLTokenSchema());
|
$provider->register(new GSLTokenSchema());
|
||||||
$provider->register(new JavaVersionSchema());
|
$provider->register(new JavaVersionSchema());
|
||||||
$provider->register(new MinecraftEulaSchema());
|
$provider->register(new MinecraftEulaSchema());
|
||||||
|
@ -17,6 +17,7 @@ class OAuthServiceProvider extends ServiceProvider
|
|||||||
{
|
{
|
||||||
$this->app->singleton(OAuthService::class, function ($app) {
|
$this->app->singleton(OAuthService::class, function ($app) {
|
||||||
$service = new OAuthService();
|
$service = new OAuthService();
|
||||||
|
|
||||||
// Default OAuth providers included with Socialite
|
// Default OAuth providers included with Socialite
|
||||||
$service->register(new CommonSchema('facebook', icon: 'tabler-brand-facebook-f', hexColor: '#1877f2'));
|
$service->register(new CommonSchema('facebook', icon: 'tabler-brand-facebook-f', hexColor: '#1877f2'));
|
||||||
$service->register(new CommonSchema('x', icon: 'tabler-brand-x-f', hexColor: '#1da1f2'));
|
$service->register(new CommonSchema('x', icon: 'tabler-brand-x-f', hexColor: '#1da1f2'));
|
||||||
|
@ -17,6 +17,5 @@
|
|||||||
"prettier": "^3.4.2",
|
"prettier": "^3.4.2",
|
||||||
"tailwindcss": "^3.4.13",
|
"tailwindcss": "^3.4.13",
|
||||||
"vite": "^6.0"
|
"vite": "^6.0"
|
||||||
},
|
}
|
||||||
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user