From 5acaf6a7cca70025a962f6a1b925825c0c60c54f Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Thu, 16 May 2024 11:23:37 +0300 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=BF=D0=B4=D0=B0=D1=82=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Customer/Database/Seeders/.gitkeep | 0 .../Seeders/CustomerDatabaseSeeder.php | 16 ----- web/Modules/Docker/Database/Seeders/.gitkeep | 0 .../Database/Seeders/DockerDatabaseSeeder.php | 16 ----- web/Modules/Email/Database/Seeders/.gitkeep | 0 .../Database/Seeders/EmailDatabaseSeeder.php | 16 ----- .../LetsEncrypt/Database/Seeders/.gitkeep | 0 .../Seeders/LetsEncryptDatabaseSeeder.php | 16 ----- .../Microweber/Database/Seeders/.gitkeep | 0 .../Seeders/MicroweberDatabaseSeeder.php | 16 ----- .../Microweber/MicroweberShellExecutor.php | 23 ------- .../Providers/Filament/AdminPanelProvider.php | 65 ------------------- web/Modules/Microweber/routes/web.php | 14 ---- .../Minecraft/Database/Seeders/.gitkeep | 0 .../Seeders/MinecraftDatabaseSeeder.php | 16 ----- .../Terminal/Database/Seeders/.gitkeep | 0 .../Seeders/TerminalDatabaseSeeder.php | 16 ----- web/app/ApiSDK/PhyreApiSDK.php | 8 +-- web/phpunit-coverage.xml | 1 + 19 files changed, 5 insertions(+), 218 deletions(-) delete mode 100644 web/Modules/Customer/Database/Seeders/.gitkeep delete mode 100644 web/Modules/Customer/Database/Seeders/CustomerDatabaseSeeder.php delete mode 100644 web/Modules/Docker/Database/Seeders/.gitkeep delete mode 100644 web/Modules/Docker/Database/Seeders/DockerDatabaseSeeder.php delete mode 100644 web/Modules/Email/Database/Seeders/.gitkeep delete mode 100644 web/Modules/Email/Database/Seeders/EmailDatabaseSeeder.php delete mode 100644 web/Modules/LetsEncrypt/Database/Seeders/.gitkeep delete mode 100644 web/Modules/LetsEncrypt/Database/Seeders/LetsEncryptDatabaseSeeder.php delete mode 100644 web/Modules/Microweber/Database/Seeders/.gitkeep delete mode 100644 web/Modules/Microweber/Database/Seeders/MicroweberDatabaseSeeder.php delete mode 100644 web/Modules/Microweber/MicroweberShellExecutor.php delete mode 100644 web/Modules/Microweber/Providers/Filament/AdminPanelProvider.php delete mode 100644 web/Modules/Minecraft/Database/Seeders/.gitkeep delete mode 100644 web/Modules/Minecraft/Database/Seeders/MinecraftDatabaseSeeder.php delete mode 100644 web/Modules/Terminal/Database/Seeders/.gitkeep delete mode 100644 web/Modules/Terminal/Database/Seeders/TerminalDatabaseSeeder.php diff --git a/web/Modules/Customer/Database/Seeders/.gitkeep b/web/Modules/Customer/Database/Seeders/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/web/Modules/Customer/Database/Seeders/CustomerDatabaseSeeder.php b/web/Modules/Customer/Database/Seeders/CustomerDatabaseSeeder.php deleted file mode 100644 index dc9ee5c..0000000 --- a/web/Modules/Customer/Database/Seeders/CustomerDatabaseSeeder.php +++ /dev/null @@ -1,16 +0,0 @@ -call([]); - } -} diff --git a/web/Modules/Docker/Database/Seeders/.gitkeep b/web/Modules/Docker/Database/Seeders/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/web/Modules/Docker/Database/Seeders/DockerDatabaseSeeder.php b/web/Modules/Docker/Database/Seeders/DockerDatabaseSeeder.php deleted file mode 100644 index f7a7178..0000000 --- a/web/Modules/Docker/Database/Seeders/DockerDatabaseSeeder.php +++ /dev/null @@ -1,16 +0,0 @@ -call([]); - } -} diff --git a/web/Modules/Email/Database/Seeders/.gitkeep b/web/Modules/Email/Database/Seeders/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/web/Modules/Email/Database/Seeders/EmailDatabaseSeeder.php b/web/Modules/Email/Database/Seeders/EmailDatabaseSeeder.php deleted file mode 100644 index b571e11..0000000 --- a/web/Modules/Email/Database/Seeders/EmailDatabaseSeeder.php +++ /dev/null @@ -1,16 +0,0 @@ -call([]); - } -} diff --git a/web/Modules/LetsEncrypt/Database/Seeders/.gitkeep b/web/Modules/LetsEncrypt/Database/Seeders/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/web/Modules/LetsEncrypt/Database/Seeders/LetsEncryptDatabaseSeeder.php b/web/Modules/LetsEncrypt/Database/Seeders/LetsEncryptDatabaseSeeder.php deleted file mode 100644 index b986342..0000000 --- a/web/Modules/LetsEncrypt/Database/Seeders/LetsEncryptDatabaseSeeder.php +++ /dev/null @@ -1,16 +0,0 @@ -call([]); - } -} diff --git a/web/Modules/Microweber/Database/Seeders/.gitkeep b/web/Modules/Microweber/Database/Seeders/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/web/Modules/Microweber/Database/Seeders/MicroweberDatabaseSeeder.php b/web/Modules/Microweber/Database/Seeders/MicroweberDatabaseSeeder.php deleted file mode 100644 index bc2ea34..0000000 --- a/web/Modules/Microweber/Database/Seeders/MicroweberDatabaseSeeder.php +++ /dev/null @@ -1,16 +0,0 @@ -call([]); - } -} diff --git a/web/Modules/Microweber/MicroweberShellExecutor.php b/web/Modules/Microweber/MicroweberShellExecutor.php deleted file mode 100644 index 0005007..0000000 --- a/web/Modules/Microweber/MicroweberShellExecutor.php +++ /dev/null @@ -1,23 +0,0 @@ -getModuleNamespace(); - - return $panel - ->id('microweber::admin') - ->path('microweber/admin') - ->colors([ - 'primary' => Color::Teal, - ]) - ->discoverResources(in: module_path($this->module, 'Filament/Admin/Resources'), for: "$moduleNamespace\\Filament\\Admin\\Resources") - ->discoverPages(in: module_path($this->module, 'Filament/Admin/Pages'), for: "$moduleNamespace\\Filament\\Admin\\Pages") - ->pages([ - Pages\Dashboard::class, - ]) - ->discoverWidgets(in: module_path($this->module, 'Filament/Admin/Widgets'), for: "$moduleNamespace\\Filament\\Admin\\Widgets") - ->widgets([ - Widgets\AccountWidget::class, - Widgets\FilamentInfoWidget::class, - ]) - ->middleware([ - EncryptCookies::class, - AddQueuedCookiesToResponse::class, - StartSession::class, - AuthenticateSession::class, - ShareErrorsFromSession::class, - VerifyCsrfToken::class, - SubstituteBindings::class, - DisableBladeIconComponents::class, - DispatchServingFilamentEvent::class, - ]) - ->authMiddleware([ - Authenticate::class, - ]); - } - - protected function getModuleNamespace(): string - { - return config('modules.namespace').'\\'.$this->module; - } -} diff --git a/web/Modules/Microweber/routes/web.php b/web/Modules/Microweber/routes/web.php index 56187f2..4e8677b 100644 --- a/web/Modules/Microweber/routes/web.php +++ b/web/Modules/Microweber/routes/web.php @@ -17,17 +17,3 @@ use Modules\Microweber\App\Http\Controllers\MicroweberController; Route::group([], function () { Route::resource('microweber', MicroweberController::class)->names('microweber'); }); - -Route::get('waaw', function () { - - $whiteLabelSettings = []; - $whiteLabelSettings['whmcs_url'] = 'qko'; - - $whitelabel = new \MicroweberPackages\SharedServerScripts\MicroweberWhitelabelSettingsUpdater(); - $whitelabel->setPath(config('microweber.sharedPaths.app')); - $apply = $whitelabel->apply($whiteLabelSettings); - - dd($apply); - - -}); diff --git a/web/Modules/Minecraft/Database/Seeders/.gitkeep b/web/Modules/Minecraft/Database/Seeders/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/web/Modules/Minecraft/Database/Seeders/MinecraftDatabaseSeeder.php b/web/Modules/Minecraft/Database/Seeders/MinecraftDatabaseSeeder.php deleted file mode 100644 index 3e15c42..0000000 --- a/web/Modules/Minecraft/Database/Seeders/MinecraftDatabaseSeeder.php +++ /dev/null @@ -1,16 +0,0 @@ -call([]); - } -} diff --git a/web/Modules/Terminal/Database/Seeders/.gitkeep b/web/Modules/Terminal/Database/Seeders/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/web/Modules/Terminal/Database/Seeders/TerminalDatabaseSeeder.php b/web/Modules/Terminal/Database/Seeders/TerminalDatabaseSeeder.php deleted file mode 100644 index 58c1d3d..0000000 --- a/web/Modules/Terminal/Database/Seeders/TerminalDatabaseSeeder.php +++ /dev/null @@ -1,16 +0,0 @@ -call([]); - } -} diff --git a/web/app/ApiSDK/PhyreApiSDK.php b/web/app/ApiSDK/PhyreApiSDK.php index 5c92b9f..1686ca0 100644 --- a/web/app/ApiSDK/PhyreApiSDK.php +++ b/web/app/ApiSDK/PhyreApiSDK.php @@ -53,10 +53,10 @@ class PhyreApiSDK curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $requestType); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params)); -// curl_setopt($ch, CURLOPT_HTTPHEADER, array( -// 'Content-Type: application/x-www-form-urlencoded', -// 'Authorization: Basic '.base64_encode($this->username.':'.$this->password) -// )); + curl_setopt($ch, CURLOPT_HTTPHEADER, array( + 'Content-Type: application/x-www-form-urlencoded', + 'Authorization: Basic '.base64_encode($this->username.':'.$this->password) + )); $response = curl_exec($ch); curl_close($ch); diff --git a/web/phpunit-coverage.xml b/web/phpunit-coverage.xml index 95310f5..ed0e35b 100644 --- a/web/phpunit-coverage.xml +++ b/web/phpunit-coverage.xml @@ -36,6 +36,7 @@ app/Filament Modules/*/App/Filament Modules/*/Filament + Modules/*/Database/migrations