mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-24 08:30:28 +00:00
упдате
This commit is contained in:
parent
bdd02906d8
commit
5acaf6a7cc
19 changed files with 5 additions and 218 deletions
|
@ -1,16 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Modules\Customer\Database\Seeders;
|
|
||||||
|
|
||||||
use Illuminate\Database\Seeder;
|
|
||||||
|
|
||||||
class CustomerDatabaseSeeder extends Seeder
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Run the database seeds.
|
|
||||||
*/
|
|
||||||
public function run(): void
|
|
||||||
{
|
|
||||||
// $this->call([]);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Modules\Docker\Database\Seeders;
|
|
||||||
|
|
||||||
use Illuminate\Database\Seeder;
|
|
||||||
|
|
||||||
class DockerDatabaseSeeder extends Seeder
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Run the database seeds.
|
|
||||||
*/
|
|
||||||
public function run(): void
|
|
||||||
{
|
|
||||||
// $this->call([]);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Modules\Email\Database\Seeders;
|
|
||||||
|
|
||||||
use Illuminate\Database\Seeder;
|
|
||||||
|
|
||||||
class EmailDatabaseSeeder extends Seeder
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Run the database seeds.
|
|
||||||
*/
|
|
||||||
public function run(): void
|
|
||||||
{
|
|
||||||
// $this->call([]);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Modules\LetsEncrypt\Database\Seeders;
|
|
||||||
|
|
||||||
use Illuminate\Database\Seeder;
|
|
||||||
|
|
||||||
class LetsEncryptDatabaseSeeder extends Seeder
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Run the database seeds.
|
|
||||||
*/
|
|
||||||
public function run(): void
|
|
||||||
{
|
|
||||||
// $this->call([]);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Modules\Microweber\Database\Seeders;
|
|
||||||
|
|
||||||
use Illuminate\Database\Seeder;
|
|
||||||
|
|
||||||
class MicroweberDatabaseSeeder extends Seeder
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Run the database seeds.
|
|
||||||
*/
|
|
||||||
public function run(): void
|
|
||||||
{
|
|
||||||
// $this->call([]);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,23 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Modules\Microweber;
|
|
||||||
|
|
||||||
use MicroweberPackages\SharedServerScripts\Shell\Adapters\NativeShellExecutor;
|
|
||||||
use Symfony\Component\Process\Process;
|
|
||||||
|
|
||||||
class MicroweberShellExecutor extends NativeShellExecutor
|
|
||||||
{
|
|
||||||
public function executeCommand(array $args, $cwd = null, $env = null)
|
|
||||||
{
|
|
||||||
// Escape shell arguments
|
|
||||||
$args = array_map('escapeshellarg', $args);
|
|
||||||
$command = implode(' ', $args);
|
|
||||||
|
|
||||||
if (!empty($cwd)) {
|
|
||||||
$command = 'cd ' . escapeshellarg($cwd) . ' && ' . $command;
|
|
||||||
}
|
|
||||||
|
|
||||||
return shell_exec($command);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,65 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Modules\Microweber\Providers\Filament;
|
|
||||||
|
|
||||||
use Filament\Http\Middleware\Authenticate;
|
|
||||||
use Filament\Http\Middleware\DisableBladeIconComponents;
|
|
||||||
use Filament\Http\Middleware\DispatchServingFilamentEvent;
|
|
||||||
use Filament\Pages;
|
|
||||||
use Filament\Panel;
|
|
||||||
use Filament\PanelProvider;
|
|
||||||
use Filament\Support\Colors\Color;
|
|
||||||
use Filament\Widgets;
|
|
||||||
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
|
|
||||||
use Illuminate\Cookie\Middleware\EncryptCookies;
|
|
||||||
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken;
|
|
||||||
use Illuminate\Routing\Middleware\SubstituteBindings;
|
|
||||||
use Illuminate\Session\Middleware\AuthenticateSession;
|
|
||||||
use Illuminate\Session\Middleware\StartSession;
|
|
||||||
use Illuminate\View\Middleware\ShareErrorsFromSession;
|
|
||||||
|
|
||||||
class AdminPanelProvider extends PanelProvider
|
|
||||||
{
|
|
||||||
private string $module = 'Microweber';
|
|
||||||
|
|
||||||
public function panel(Panel $panel): Panel
|
|
||||||
{
|
|
||||||
$moduleNamespace = $this->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;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -17,17 +17,3 @@ use Modules\Microweber\App\Http\Controllers\MicroweberController;
|
||||||
Route::group([], function () {
|
Route::group([], function () {
|
||||||
Route::resource('microweber', MicroweberController::class)->names('microweber');
|
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);
|
|
||||||
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Modules\Minecraft\Database\Seeders;
|
|
||||||
|
|
||||||
use Illuminate\Database\Seeder;
|
|
||||||
|
|
||||||
class MinecraftDatabaseSeeder extends Seeder
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Run the database seeds.
|
|
||||||
*/
|
|
||||||
public function run(): void
|
|
||||||
{
|
|
||||||
// $this->call([]);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Modules\Terminal\Database\Seeders;
|
|
||||||
|
|
||||||
use Illuminate\Database\Seeder;
|
|
||||||
|
|
||||||
class TerminalDatabaseSeeder extends Seeder
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Run the database seeds.
|
|
||||||
*/
|
|
||||||
public function run(): void
|
|
||||||
{
|
|
||||||
// $this->call([]);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -53,10 +53,10 @@ class PhyreApiSDK
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||||
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $requestType);
|
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $requestType);
|
||||||
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params));
|
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params));
|
||||||
// curl_setopt($ch, CURLOPT_HTTPHEADER, array(
|
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
|
||||||
// 'Content-Type: application/x-www-form-urlencoded',
|
'Content-Type: application/x-www-form-urlencoded',
|
||||||
// 'Authorization: Basic '.base64_encode($this->username.':'.$this->password)
|
'Authorization: Basic '.base64_encode($this->username.':'.$this->password)
|
||||||
// ));
|
));
|
||||||
$response = curl_exec($ch);
|
$response = curl_exec($ch);
|
||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
<directory>app/Filament</directory>
|
<directory>app/Filament</directory>
|
||||||
<directory>Modules/*/App/Filament</directory>
|
<directory>Modules/*/App/Filament</directory>
|
||||||
<directory>Modules/*/Filament</directory>
|
<directory>Modules/*/Filament</directory>
|
||||||
|
<directory>Modules/*/Database/migrations</directory>
|
||||||
</exclude>
|
</exclude>
|
||||||
</source>
|
</source>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue