Files
2024-12-24 10:33:18 +01:00

173 lines
42 KiB
JSON
Executable File

{
"./app/Http/Controllers/Admin/Bagou/": [
{
"type": "folder"
}
],
"./app/Http/Controllers/Admin/Bagou/BagouCenterController.php": [
{
"type": "newfile",
"theme": "any",
"add": "<?php\n\nnamespace Pterodactyl\\Http\\Controllers\\Admin\\Bagou;\n\nuse Illuminate\\View\\View;\nuse Prologue\\Alerts\\AlertsMessageBag;\nuse Pterodactyl\\Http\\Controllers\\Controller;\nuse Illuminate\\Support\\Facades\\Http;\n\nclass BagouCenterController extends Controller\n{\n protected $alert;\n\n public function __construct(\n AlertsMessageBag $alert\n ) {\n $this->alert = $alert;\n }\n /**\n * Display licensing system\n */\n public function index(): View\n {\n $apistatus = Http::get('https://api.bagou450.com/api/client/pterodactyl/checkOnline')->object();\n $cdnstatus = Http::get('https://cdn.bagou450.com/status')->object();\n\n return view('admin.bagoucenter.index', ['apistatus' => $apistatus, 'cdnstatus' => $cdnstatus]);\n }\n public function settings(): View\n {\n return view('admin.bagoucenter.support.index');\n }\n}\n"
}
],
"./app/Http/Controllers/Admin/Bagou/BagouLicenseController.php": [
{
"type": "newfile",
"theme": "any",
"add": "<?php\n\nnamespace Pterodactyl\\Http\\Controllers\\Admin\\Bagou;\n\nuse Illuminate\\View\\View;\nuse Pterodactyl\\Models\\Bagoulicense;\nuse Illuminate\\Http\\RedirectResponse;\nuse Prologue\\Alerts\\AlertsMessageBag;\nuse Pterodactyl\\Http\\Controllers\\Controller;\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Support\\Facades\\Http;\n\nclass BagouLicenseController extends Controller\n{\n protected $alert;\n\n public function __construct(\n AlertsMessageBag $alert\n ) {\n $this->alert = $alert;\n }\n /**\n * Display licensing system\n */\n public function index(): View\n {\n $addonslist = Http::get('https://api.bagou450.com/api/client/pterodactyl/addonsList')->json();\n $licenses = Bagoulicense::all();\n return view('admin.bagoucenter.license.index', ['addonslist' => $addonslist, 'licenses' => $licenses]);\n }\n\n /**\n * Display license of the addon\n *\n * @throws \\Pterodactyl\\Exceptions\\Repository\\RecordNotFoundException\n */\n public function license(string $addon): View\n {\n $dbaddon = Bagoulicense::where('addon', $addon)->first();\n $addonslist = Http::get('https://api.bagou450.com/api/client/pterodactyl/addonsList')->json();\n $licenses = Bagoulicense::all();\n return view('admin.bagoucenter.license.license', [\n 'addon' => $addon,\n 'enabled' => ($dbaddon)? $dbaddon['enabled'] : 0,\n 'usage' => ($dbaddon) ? $dbaddon['usage'] : null ,\n 'maxusage' => ($dbaddon) ? $dbaddon['maxusage'] : null,\n 'license' => ($dbaddon) ? $dbaddon['license']: 'Your license',\n 'addonslist' => $addonslist,\n 'licenses' => $licenses\n ]);\n }\n\n /**\n * Set a license\n *\n * @throws \\Throwable\n */\n public function setlicense(Request $request, $addon): RedirectResponse\n { \n $license = Http::accept('application/json')->post(\"https://api.bagou450.com/api/client/pterodactyl/license\", [\n 'id' => $request->license,\n 'selectaddon' => $addon\n ])->object();\n if($license->message == 'Transaction is not valid.') {\n $this->alert->danger('License not found please contact me on discord')->flash();\n return redirect()->route('admin.bagoucenter.license.addon', $addon);\n } else if($license->message == 'Too many license usage please contact me on discord') {\n $this->alert->danger('License are already used on too many panel please contact me on discord')->flash();\n return redirect()->route('admin.bagoucenter.license.addon', $addon);\n } else if ($license->message == 'User blacklisted') {\n if(Bagoulicense::where('addon', $addon)->exists()) {\n\n Bagoulicense::where('addon', $addon)->update(['license' => $request->license, 'usage' => 1, 'maxusage' => 1, 'enabled' => false]);\n } else {\n Bagoulicense::create(['addon' => $addon, 'license' => $request->license, 'usage' => 1, 'maxusage' => 1, 'enabled' => false]);\n }\n $this->alert->danger('You are BLACKLISTED (probably because of a paypal dispute)')->flash();\n return redirect()->route('admin.bagoucenter.license.addon', $addon);\n } else if($license->message == 'Not the good addon') {\n $this->alert->danger('This license is not for this addon!')->flash();\n return redirect()->route('admin.bagoucenter.license.addon', $addon, );\n } else if($license->message == 'done' && $license->name == $addon && !$license->blacklisted) {\n if(Bagoulicense::where('addon', $addon)->exists()) {\n\n Bagoulicense::where('addon', $addon)->update(['license' => $request->license, 'usage' => $license->usage, 'maxusage' => $license->maxusage, 'enabled' => true]);\n } else {\n Bagoulicense::create(['addon' => $addon, 'license' => $request->license, 'usage' => $license->usage, 'maxusage' => $license->maxusage, 'enabled' => true]);\n }\n \n $this->alert->success('License updated sucessfully!')->flash();\n return redirect()->route('admin.bagoucenter.license.addon', $addon);\n }\n $this->alert->danger('Error!')->flash();\n return redirect()->route('admin.bagoucenter.license.addon', $addon);\n }\n\n /**\n * Rmove a license\n *\n * @throws \\Throwable\n */\n public function removelicense($addon): RedirectResponse\n { \n if(Bagoulicense::where('addon', $addon)->exists()) {\n $transaction = Bagoulicense::where('addon', $addon)->first();\n if(!$transaction) {\n $this->alert->danger('No license found.')->flash();\n return redirect()->route('admin.bagoucenter.license.addon', $addon);\n }\n $transaction = $transaction['license'];\n $license = Http::delete(\"https://api.bagou450.com/api/client/pterodactyl/license?id=$transaction\")->object();\n Bagoulicense::where('addon', $addon)->delete();\n $this->alert->success('License removed sucessfully')->flash();\n return redirect()->route('admin.bagoucenter.license.addon', $addon); \n } else {\n $this->alert->danger('No license found.')->flash();\n return redirect()->route('admin.bagoucenter.license.addon', $addon); \n }\n\n }\n}\n"
}
],
"./app/Http/Controllers/Admin/Bagou/BagouSettingsController.php": [
{
"type": "newfile",
"theme": "any",
"add": "<?php\n\nnamespace Pterodactyl\\Http\\Controllers\\Admin\\Bagou;\n\nuse Illuminate\\View\\View;\nuse Pterodactyl\\Models\\Bagoulicense;\nuse Prologue\\Alerts\\AlertsMessageBag;\nuse Pterodactyl\\Http\\Controllers\\Controller;\nuse Illuminate\\Support\\Facades\\Http;\n\nclass BagouSettingsController extends Controller\n{\n protected $alert;\n\n public function __construct(\n AlertsMessageBag $alert\n ) {\n $this->alert = $alert;\n }\n /**\n * Display licensing system\n */\n public function index(): View\n {\n $addonslist = Http::get('https://api.bagou450.com/api/client/pterodactyl/addonsList')->json();\n $licenses = Bagoulicense::all();\n return view('admin.bagoucenter.settings.index', [ 'addonslist' => $addonslist,\n 'licenses' => $licenses]);\n }\n\n /**\n * Display licensing system\n */\n public function addon(string $addon): View\n {\n $addonslist = Http::get('https://api.bagou450.com/api/client/pterodactyl/addonsList')->json();\n $licenses = Bagoulicense::all();\n return view($addon['tabroute'], ['addonslist' => $addonslist,\n 'licenses' => $licenses]);\n }\n}\n"
}
],
"./app/Http/Controllers/Admin/Bagou/BagouVersionsController.php": [
{
"type": "newfile",
"theme": "any",
"add": "<?php\n\nnamespace Pterodactyl\\Http\\Controllers\\Admin\\Bagou;\n\nuse Illuminate\\View\\View;\nuse Pterodactyl\\Models\\Bagoulicense;\nuse Prologue\\Alerts\\AlertsMessageBag;\nuse Pterodactyl\\Http\\Controllers\\Controller;\nuse Illuminate\\Support\\Facades\\Http;\n\nclass BagouVersionsController extends Controller\n{\n protected AlertsMessageBag $alert;\n\n public function __construct(\n AlertsMessageBag $alert\n ) {\n $this->alert = $alert;\n }\n /**\n * Display licensing system\n */\n public function index(): View\n {\n $addonslist = Http::get('https://api.bagou450.com/api/client/pterodactyl/addonsList')->json();\n $licenses = Bagoulicense::all();\n return view('admin.bagoucenter.versions.index', ['addonslist' => $addonslist, 'licenses' => $licenses]);\n }\n /**\n * Refresh Versions\n */\n public function refresh(): View\n {\n $licenses = Bagoulicense::all();\n foreach($licenses as $license) {\n $id = $license['license'];\n $version = Http::get(\"https://api.bagou450.com/api/client/pterodactyl/getVersion?id=$id\");\n if($version->failed()) {\n $addonslist = Http::get('https://api.bagou450.com/api/client/pterodactyl/addonsList')->json();\n $this->alert->danger('Error!')->flash();\n return view('admin.bagoucenter.versions.index', ['addonslist' => $addonslist, 'licenses' => $licenses]);\n } else {\n Bagoulicense::where('license', '=', $id)->update(['version' => $version->json()['version']]);\n }\n }\n $addonslist = Http::get('https://api.bagou450.com/api/client/pterodactyl/addonsList')->json();\n $licenses = Bagoulicense::all();\n\n $this->alert->success('Versions updated sucessfully!')->flash();\n return view('admin.bagoucenter.versions.index', ['addonslist' => $addonslist, 'licenses' => $licenses]);\n }\n}\n"
}
],
"./database/migrations/2022_07_04_151819_create_bagoulicense_table.php": [
{
"type": "newfile",
"theme": "any",
"add": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass CreateBagoulicenseTable extends Migration\n{\n /**\n * Run the migrations.\n *\n * @return void\n */\n public function up()\n {\n Schema::create('bagoulicense', function (Blueprint $table) {\n $table->id();\n $table->string('addon');\n $table->string('license');\n $table->integer('usage');\n $table->integer('maxusage');\n $table->boolean('enabled');\n $table->timestamps();\n });\n }\n\n /**\n * Reverse the migrations.\n *\n * @return void\n */\n public function down()\n {\n Schema::dropIfExists('bagoulicense');\n }\n}\n"
}
],
"./routes/admin.php": [
{
"type": "under",
"theme": "any",
"add": "/*\n|--------------------------------------------------------------------------\n| Bagou License Center Routes\n|--------------------------------------------------------------------------\n|\n| Endpoint: /admin/bagoucenter\n|\n*/\nRoute::group(['prefix' => 'bagoucenter'], function () {\n Route::get('/', [Admin\\Bagou\\BagouCenterController::class, 'index'])->name('admin.bagoucenter');\n Route::get('/license/', [Admin\\Bagou\\BagouLicenseController::class, 'index'])->name('admin.bagoucenter.license');\n Route::get('/license/{addon}', [Admin\\Bagou\\BagouLicenseController::class, 'license'])->name('admin.bagoucenter.license.addon');\n \n Route::get('/versions/', [Admin\\Bagou\\BagouVersionsController::class, 'index'])->name('admin.bagoucenter.versions');\n\n Route::get('/settings', [Admin\\Bagou\\BagouSettingsController::class, 'index'])->name('admin.bagoucenter.settings');\n Route::get('/settings/{addon}', [Admin\\Bagou\\BagouSettingsController::class, 'settings'])->name('admin.bagoucenter.settings.addon');\n\n Route::get('/support/', [Admin\\Bagou\\BagouCenterController::class, 'settings'])->name('admin.bagoucenter.support');\n\n Route::post('/license/{addon}', [Admin\\Bagou\\BagouLicenseController::class, 'setlicense']);\n \n Route::post('/versions', [Admin\\Bagou\\BagouVersionsController::class, 'refresh']);\n\n Route::delete('/license/{addon}', [Admin\\Bagou\\BagouLicenseController::class, 'removelicense']);\n \n});",
"where": " Route::delete('/egg/{egg:id}/variables/{variable:id}', [Admin\\Nests\\EggVariableController::class, 'destroy']);\n});"
}
],
"./app/Transformers/Api/Client/ServerTransformer.php": [
{
"type": "under",
"theme": "any",
"where": "'name' => $server->name,",
"add": " 'nest_id' => $server->nest_id,\n 'egg_id' => $server->egg_id,"
}
],
"./resources/views/admin/bagoucenter/index.blade.php": [
{
"type": "newfile",
"theme": "any",
"add": "@extends('layouts.admin')\n@include('partials/admin.settings.nav', ['activeTab' => 'basic'])\n\n@section('title')\n Bagou License\n@endsection\n\n@section('content-header')\n<h1>Bagou Center<small>Manage all bagou450 addons.</small></h1>\n <ol class=\"breadcrumb\">\n <li><a href=\"{{ route('admin.index') }}\">Admin</a></li>\n <li class=\"active\">Bagou Center</li>\n </ol>\n@endsection\n@section('content')\n@include('admin.bagoucenter.nav', ['addon' => null])\n\n <div class=\"row\" style=\"margin-top: 15px;\">\n <div class=\"col-xs-12\">\n <div class=\"box\">\n <div class=\"box-header with-border\">\n <h3 class=\"box-title\">Bagou Center</h3>\n </div>\n <p class=\"box-body\">\n Select a tab above for manage all your Bagou450 addons!</span>.\n <br>\n <span style=\"font-size: 20px;\">Api status: @if ($apistatus === 1) Online <i class=\"fa fa-check-circle\" style=\"color: green;\" aria-hidden=\"true\"></i> @elseif ($apistatus === 2) Maintenance mode <i class=\"fa fa-exclamation-circle\" style=\"color: yellow;\" aria-hidden=\"true\"></i> @else Down <i class=\"fa fa-minus-circle\" style=\"color: red;\" aria-hidden=\"true\"></i> @endif</span>\n <br>\n <span style=\"font-size: 20px;\">CDN status: @if ($cdnstatus === 1) Online <i class=\"fa fa-check-circle\" style=\"color: green;\" aria-hidden=\"true\"></i> @elseif ($cdnstatus === 2) Maintenance mode <i class=\"fa fa-exclamation-circle\" style=\"color: yellow;\" aria-hidden=\"true\"></i> @else Down <i class=\"fa fa-minus-circle\" style=\"color: red;\" aria-hidden=\"true\"></i> @endif</span>\n\n </p>\n </div>\n </div>\n </div>\n@endsection"
}
],
"./resources/views/admin/bagoucenter/license.blade.php": [
{
"type": "newfile",
"theme": "any",
"add": "@extends('layouts.admin')\n@include('partials/admin.settings.nav', ['activeTab' => 'basic'])\n\n@section('title')\n Bagou License\n@endsection\n\n@section('content-header')\n <h1>Bagou License<small>Configure license for Bagou450 Addons.</small></h1>\n <ol class=\"breadcrumb\">\n <li><a href=\"{{ route('admin.index') }}\">Admin</a></li>\n <li class=\"active\">Bagou License</li>\n </ol>\n@endsection\n@section('content')\n@include('admin.bagoulicense.nav', ['addon' => $addon])\n\n <div class=\"row\">\n <div class=\"col-xs-12\">\n <div class=\"box\">\n <div class=\"box-header with-border\">\n <h3 class=\"box-title\">Bagou License</h3>\n </div>\n <form action=\"{{ route('admin.settings') }}\" method=\"POST\">\n <div class=\"box-body\">\n <div class=\"row\">\n <div class=\"form-group col-md-4\">\n <label class=\"control-label\">Company Name</label>\n <div>\n <input type=\"text\" class=\"form-control\" name=\"app:name\" value=\"{{ old('app:name', config('app.name')) }}\" />\n <p class=\"text-muted\"><small>This is the name that is used throughout the panel and in emails sent to clients.</small></p>\n </div>\n </div>\n <div class=\"form-group col-md-4\">\n <label class=\"control-label\">Require 2-Factor Authentication</label>\n <div>\n <div class=\"btn-group\" data-toggle=\"buttons\">\n @php\n $level = old('pterodactyl:auth:2fa_required', config('pterodactyl.auth.2fa_required'));\n @endphp\n <label class=\"btn btn-primary @if ($level == 0) active @endif\">\n <input type=\"radio\" name=\"pterodactyl:auth:2fa_required\" autocomplete=\"off\" value=\"0\" @if ($level == 0) checked @endif> Not Required\n </label>\n <label class=\"btn btn-primary @if ($level == 1) active @endif\">\n <input type=\"radio\" name=\"pterodactyl:auth:2fa_required\" autocomplete=\"off\" value=\"1\" @if ($level == 1) checked @endif> Admin Only\n </label>\n <label class=\"btn btn-primary @if ($level == 2) active @endif\">\n <input type=\"radio\" name=\"pterodactyl:auth:2fa_required\" autocomplete=\"off\" value=\"2\" @if ($level == 2) checked @endif> All Users\n </label>\n </div>\n <p class=\"text-muted\"><small>If enabled, any account falling into the selected grouping will be required to have 2-Factor authentication enabled to use the Panel.</small></p>\n </div>\n </div>\n <div class=\"form-group col-md-4\">\n <label class=\"control-label\">Status</label>\n <div>\n <p>@extends('layouts.admin')\n@include('partials/admin.settings.nav', ['activeTab' => 'basic'])\n\n@section('title')\n Bagou License\n@endsection\n\n@section('content-header')\n<h1>Bagou Center<small>Manage all bagou450 addons.</small></h1>\n <ol class=\"breadcrumb\">\n <li><a href=\"{{ route('admin.index') }}\">Admin</a></li>\n <li class=\"active\">Bagou Center</li>\n </ol>\n@endsection\n@section('content')\n@include('admin.bagoulicense.nav', ['addon' => $addon])\n\n <div class=\"row\">\n <div class=\"col-xs-12\">\n <div class=\"box\">\n <div class=\"box-header with-border\">\n <h3 class=\"box-title\">Bagou License</h3>\n </div>\n <form method=\"POST\">\n <div class=\"box-body\">\n <div class=\"row\">\n <div class=\"form-group col-md-4\">\n <label class=\"control-label\">Addon license (Transaction id)</label>\n <div>\n <input type=\"text\" class=\"form-control\" name=\"license\" value=\"{{ $license }}\" />\n <p class=\"text-muted\"><small>Add here your transaction id if not work contact me on <a href=\"https://discord.bagou450.com\">discord</a></small></p>\n </div>\n </div>\n <div class=\"form-group col-md-4\">\n <label class=\"control-label\">Usage</label>\n <div>\n <p>{{ $usage && $maxusage ? \"$usage / $maxusage panel(s)\" : 'No license' }} <br> {{ $usage && $maxusage ? 'Contact me on discord for increase panel limit.' : 'For use the addon you need to insert a license' }}</p>\n </div>\n </div>\n <div class=\"form-group col-md-4\">\n <label class=\"control-label\">Status</label>\n <div>\n <p style=\"font-size: 50px\">{{$enabled ? '✅' : '\uD83D\uDEAB' }}</p>\n </div>\n </div>\n </div>\n </div>\n <div class=\"box-footer\">\n {!! csrf_field() !!}\n <button type=\"submit\" name=\"_method\" value=\"POST\" style=\"margin-left: 8px\" class=\"btn btn-sm btn-primary pull-right \">Save</button>\n {!! csrf_field() !!}\n <button type=\"submit\" name=\"_method\" value=\"DELETE\" class=\"btn btn-sm btn-danger pull-right \">Remove License</button>\n\n </form>\n </div>\n\n </div>\n </div>\n </div>\n@endsection\n</p>\n </div>\n </div>\n </div>\n </div>\n <div class=\"box-footer\">\n {!! csrf_field() !!}\n <button type=\"submit\" name=\"_method\" value=\"PATCH\" class=\"btn btn-sm btn-primary pull-right\">Save</button>\n </div>\n </form>\n </div>\n </div>\n </div>\n@endsection"
}
],
"./resources/views/admin/bagoucenter/nav.blade.php": [
{
"type": "newfile",
"theme": "any",
"add": "@php\n $router = app('router');\n@endphp\n<div class=\"row\">\n <div class=\"col-xs-12\">\n <div class=\"nav-tabs-custom nav-tabs-floating\" style=\"margin-bottom: 1px;\">\n <ul class=\"nav nav-tabs\">\n <li class=\"{{ $router->currentRouteNamed('admin.bagoucenter') ? 'active' : '' }}\">\n <a href=\"{{ route('admin.bagoucenter') }}\">Overview</a>\n </li>\n <li class=\"{{ $router->currentRouteNamed('admin.bagoucenter.license') || $router->currentRouteNamed('admin.bagoucenter.license.addon')? 'active' : '' }}\">\n <a href=\"{{ route('admin.bagoucenter.license') }}\">License</a>\n </li>\n <li class=\"{{ $router->currentRouteNamed('admin.bagoucenter.versions') || str_starts_with($router->current()->uri, 'admin/bagoucenter/versions') ? 'active' : '' }}\">\n <a href=\"{{ route('admin.bagoucenter.versions') }}\">Version checker</a>\n </li>\n <li class=\"{{ $router->currentRouteNamed('admin.bagoucenter.settings') || str_starts_with($router->current()->uri, 'admin/bagoucenter/settings') ? 'active' : '' }}\">\n <a href=\"{{ route('admin.bagoucenter.settings') }}\">Settings</a>\n </li>\n <li class=\"{{ $router->currentRouteNamed('admin.bagoucenter.support') || str_starts_with($router->current()->uri, 'admin/bagoucenter/support') ? 'active' : '' }}\">\n <a href=\"{{ route('admin.bagoucenter.support') }}\">Support</a>\n </li>\n </ul>\n </div>\n </div>\n</div>"
}
],
"./resources/views/admin/bagoucenter/license": [
{
"type": "folder"
}
],
"./resources/views/admin/bagoucenter/license/index.blade.php": [
{
"type": "newfile",
"theme": "any",
"add": "@extends('layouts.admin')\n@include('partials/admin.settings.nav', ['activeTab' => 'basic'])\n\n@section('title')\n Bagou License\n@endsection\n\n@section('content-header')\n <h1>Bagou Center<small>Manage all bagou450 addons.</small></h1>\n <ol class=\"breadcrumb\">\n <li><a href=\"{{ route('admin.index') }}\">Admin</a></li>\n <li class=\"active\">Bagou Center</li>\n </ol>\n@endsection\n@section('content')\n@include('admin.bagoucenter.nav')\n@include('admin.bagoucenter.license.nav', ['addon' => null, 'addonslist' => $addonslist, 'licenses' => $licenses])\n\n <div class=\"row\">\n <div class=\"col-xs-12\">\n <div class=\"box\">\n <div class=\"box-header with-border\">\n <h3 class=\"box-title\">Bagou License</h3>\n </div>\n <p class=\"box-body\">\n You can manage your license here.\n <br>Actual license status:\n <ul>\n @foreach ($addonslist as $addon)\n @php\n $found = false;\n @endphp\n @foreach($licenses as $license) \n @if($license->addon == $addon['id'])\n @php\n $found = true;\n @endphp\n <li>{{$addon['name']}}: <span style=\"color: green;\">Activated</span></li>\n @endif\n @endforeach\n @if (!$found)\n <li>{{$addon['name']}}: <span style=\"color: red;\">Disabled</span></li>\n @endif\n @endforeach\n </ul>\n </p>\n </div>\n </div>\n </div>\n@endsection"
}
],
"./resources/views/admin/bagoucenter/license/nav.blade.php": [
{
"type": "newfile",
"theme": "any",
"add": "@php\n $router = app('router');\n@endphp\n<div class=\"row\">\n <div class=\"col-xs-12\">\n <div class=\"nav-tabs-custom nav-tabs-floating\">\n <ul class=\"nav nav-tabs\">\n <li class=\"{{ $router->currentRouteNamed('admin.bagoucenter.license') ? 'active' : '' }}\">\n <a href=\"{{ route('admin.bagoucenter.license') }}\">Overview</a>\n </li>\n @foreach ($addonslist as $addonn) \n @if (isset($addonn['id']) && isset($addonn['name']))\n <li class=\"{{ $addon == $addonn['id'] ? 'active' : '' }}\">\n <a href=\"{{ route('admin.bagoucenter.license.addon', $addonn['id']) }}\">{{$addonn['name']}} @if($addonn['new']) <span class=\"label label-success\"> NEW </span> @endif</a>\n </li>\n @endif\n @endforeach\n </ul>\n </div>\n </div>\n</div>"
}
],
"./resources/views/admin/bagoucenter/license/license.blade.php": [
{
"type": "newfile",
"theme": "any",
"add": "@extends('layouts.admin')\n@include('partials/admin.settings.nav', ['activeTab' => 'basic'])\n\n@section('title')\n Bagou License\n@endsection\n\n@section('content-header')\n<h1>Bagou Center<small>Manage all bagou450 addons.</small></h1>\n <ol class=\"breadcrumb\">\n <li><a href=\"{{ route('admin.index') }}\">Admin</a></li>\n <li class=\"active\">Bagou Center</li>\n </ol>\n@endsection\n@section('content')\n@include('admin.bagoucenter.nav')\n@include('admin.bagoucenter.license.nav', ['addon' => $addon, 'addonslist' => $addonslist, 'licenses' => $licenses])\n\n <div class=\"row\">\n <div class=\"col-xs-12\">\n <div class=\"box\">\n <div class=\"box-header with-border\">\n <h3 class=\"box-title\">Bagou License</h3>\n </div>\n <form action=\"{{ route('admin.settings') }}\" method=\"POST\">\n <div class=\"box-body\">\n <div class=\"row\">\n <div class=\"form-group col-md-4\">\n <label class=\"control-label\">Company Name</label>\n <div>\n <input type=\"text\" class=\"form-control\" name=\"app:name\" value=\"{{ old('app:name', config('app.name')) }}\" />\n <p class=\"text-muted\"><small>This is the name that is used throughout the panel and in emails sent to clients.</small></p>\n </div>\n </div>\n <div class=\"form-group col-md-4\">\n <label class=\"control-label\">Require 2-Factor Authentication</label>\n <div>\n <div class=\"btn-group\" data-toggle=\"buttons\">\n @php\n $level = old('pterodactyl:auth:2fa_required', config('pterodactyl.auth.2fa_required'));\n @endphp\n <label class=\"btn btn-primary @if ($level == 0) active @endif\">\n <input type=\"radio\" name=\"pterodactyl:auth:2fa_required\" autocomplete=\"off\" value=\"0\" @if ($level == 0) checked @endif> Not Required\n </label>\n <label class=\"btn btn-primary @if ($level == 1) active @endif\">\n <input type=\"radio\" name=\"pterodactyl:auth:2fa_required\" autocomplete=\"off\" value=\"1\" @if ($level == 1) checked @endif> Admin Only\n </label>\n <label class=\"btn btn-primary @if ($level == 2) active @endif\">\n <input type=\"radio\" name=\"pterodactyl:auth:2fa_required\" autocomplete=\"off\" value=\"2\" @if ($level == 2) checked @endif> All Users\n </label>\n </div>\n <p class=\"text-muted\"><small>If enabled, any account falling into the selected grouping will be required to have 2-Factor authentication enabled to use the Panel.</small></p>\n </div>\n </div>\n <div class=\"form-group col-md-4\">\n <label class=\"control-label\">Status</label>\n <div>\n <p>@extends('layouts.admin')\n@include('partials/admin.settings.nav', ['activeTab' => 'basic'])\n\n@section('title')\n Bagou License\n@endsection\n\n@section('content-header')\n <h1>Bagou License<small>Configure license for Bagou450 Addons.</small></h1>\n <ol class=\"breadcrumb\">\n <li><a href=\"{{ route('admin.index') }}\">Admin</a></li>\n <li class=\"active\">Bagou License</li>\n </ol>\n@endsection\n@section('content')\n@include('admin.bagoucenter.nav')\n@include('admin.bagoucenter.license.nav', ['addon' => $addon, 'addonslist' => $addonslist, 'licenses' => $licenses])\n\n <div class=\"row\">\n <div class=\"col-xs-12\">\n <div class=\"box\">\n <div class=\"box-header with-border\">\n <h3 class=\"box-title\">Bagou License</h3>\n </div>\n <form method=\"POST\">\n <div class=\"box-body\">\n <div class=\"row\">\n <div class=\"form-group col-md-4\">\n <label class=\"control-label\">Addon license (Transaction id)</label>\n <div>\n <input type=\"text\" class=\"form-control\" name=\"license\" value=\"{{ $license }}\" />\n <p class=\"text-muted\"><small>Add here your transaction id if not work contact me on <a href=\"https://discord.bagou450.com\">discord</a></small></p>\n </div>\n </div>\n <div class=\"form-group col-md-4\">\n <label class=\"control-label\">Usage</label>\n <div>\n <p>{{ $usage && $maxusage ? \"$usage / $maxusage panel(s)\" : 'No license' }} <br> {{ $usage && $maxusage ? 'Contact me on discord for increase panel limit.' : 'For use the addon you need to insert a license' }}</p>\n </div>\n </div>\n <div class=\"form-group col-md-4\">\n <label class=\"control-label\">Status</label>\n <div>\n <p style=\"font-size: 50px\">{{$enabled ? '✅' : '\uD83D\uDEAB' }}</p>\n </div>\n </div>\n </div>\n </div>\n <div class=\"box-footer\">\n {!! csrf_field() !!}\n <button type=\"submit\" name=\"_method\" value=\"POST\" style=\"margin-left: 8px\" class=\"btn btn-sm btn-primary pull-right \">Save</button>\n {!! csrf_field() !!}\n <button type=\"submit\" name=\"_method\" value=\"DELETE\" class=\"btn btn-sm btn-danger pull-right \">Remove License</button>\n\n </form>\n </div>\n\n </div>\n </div>\n </div>\n@endsection\n</p>\n </div>\n </div>\n </div>\n </div>\n <div class=\"box-footer\">\n {!! csrf_field() !!}\n <button type=\"submit\" name=\"_method\" value=\"PATCH\" class=\"btn btn-sm btn-primary pull-right\">Save</button>\n </div>\n </form>\n </div>\n </div>\n </div>\n@endsection"
}
],
"./resources/views/admin/bagoucenter/settings": [
{
"type": "folder"
}
],
"./resources/views/admin/bagoucenter/settings/index.blade.php": [
{
"type": "newfile",
"theme": "any",
"add": "@extends('layouts.admin')\n@include('partials/admin.settings.nav', ['activeTab' => 'basic'])\n\n@section('title')\n Bagou License\n@endsection\n\n@section('content-header')\n <h1>Bagou Center<small>Manage all bagou450 addons.</small></h1>\n <ol class=\"breadcrumb\">\n <li><a href=\"{{ route('admin.index') }}\">Admin</a></li>\n <li class=\"active\">Bagou Center</li>\n </ol>\n@endsection\n@section('content')\n@include('admin.bagoucenter.nav')\n@include('admin.bagoucenter.settings.nav', ['addon' => null, 'addonslist' => $addonslist, 'licenses' => $licenses])\n\n <div class=\"row\">\n <div class=\"col-xs-12\">\n <div class=\"box\">\n <div class=\"box-header with-border\">\n <h3 class=\"box-title\">Bagou Settings</h3>\n </div>\n <p class=\"box-body\">\n Choose a tab above for manage addon settings\n </p>\n </div>\n </div>\n </div>\n@endsection"
}
],
"./resources/views/admin/bagoucenter/settings/nav.blade.php": [
{
"type": "newfile",
"theme": "any",
"add": "@php\n $router = app('router');\n@endphp\n<div class=\"row\">\n <div class=\"col-xs-12\">\n <div class=\"nav-tabs-custom nav-tabs-floating\">\n <ul class=\"nav nav-tabs\">\n <li class=\"{{ $router->currentRouteNamed('admin.bagoucenter.settings') ? 'active' : '' }}\">\n <a href=\"{{ route('admin.bagoucenter.settings') }}\">Overview</a>\n </li>\n @foreach ($addonslist as $addonn)\n @foreach($licenses as $license) \n @if($license->addon == $addonn['id'] && $addonn['tab'])\n @php\n $found = true;\n @endphp\n <li class=\"{{ $addon == $addonn['id'] ? 'active' : '' }}\">\n <a href=\"{{ route($addonn['tabroute'], $addonn['id']) }}\">{{$addonn['name']}} @if($addonn['new']) <span class=\"label label-success\"> NEW </span> @endif</a>\n </li>\n @endif\n @endforeach\n @endforeach\n </ul>\n </div>\n </div>\n</div>"
}
],
"./resources/views/admin/bagoucenter/support": [
{
"type": "folder"
}
],
"./resources/views/admin/bagoucenter/support/index.blade.php": [
{
"type": "newfile",
"theme": "any",
"add": "@extends('layouts.admin')\n@include('partials/admin.settings.nav', ['activeTab' => 'basic'])\n\n@section('title')\n Bagou License\n@endsection\n\n@section('content-header')\n<h1>Bagou Center<small>Manage all bagou450 addons.</small></h1>\n <ol class=\"breadcrumb\">\n <li><a href=\"{{ route('admin.index') }}\">Admin</a></li>\n <li class=\"active\">Bagou Center</li>\n </ol>\n@endsection\n@section('content')\n@include('admin.bagoucenter.nav', ['addon' => null])\n\n <div class=\"row\" style=\"margin-top: 15px;\">\n <div class=\"col-xs-12\">\n <div class=\"box\">\n <div class=\"box-header with-border\">\n <h3 class=\"box-title\">Bagou Support</h3>\n </div>\n <p class=\"box-body\">\n You can contact me trough many way!</span>.\n <br>\n <span style=\"font-size: 20px;\">Discord: <a href=\"http://discord.bagou450.com\">here</a> (24 hour response time) </span>\n <br>\n <span style=\"font-size: 20px;\">Sms (No call): +33 7 56 89 00 36 (24 hours response time) </span>\n <br>\n <span style=\"font-size: 20px;\">Email: contact@bagou450.com (48 hours response time) </span>\n\n </p>\n </div>\n </div>\n </div>\n@endsection"
}
],
"./resources/views/admin/bagoucenter/versions": [
{
"type": "folder"
}
],
"./resources/views/admin/bagoucenter/versions/index.blade.php": [
{
"type": "newfile",
"theme": "any",
"add": "@extends('layouts.admin')\n@include('partials/admin.settings.nav', ['activeTab' => 'basic'])\n\n@section('title')\n Bagou License\n@endsection\n\n@section('content-header')\n <h1>Bagou Center<small>Manage all bagou450 addons.</small></h1>\n <ol class=\"breadcrumb\">\n <li><a href=\"{{ route('admin.index') }}\">Admin</a></li>\n <li class=\"active\">Bagou Center</li>\n </ol>\n@endsection\n@section('content')\n@include('admin.bagoucenter.nav')\n\n <div class=\"row\" style=\"margin-top: 15px;\">\n <div class=\"col-xs-12\">\n <div class=\"box\">\n <div class=\"box-header with-border\">\n <h3 class=\"box-title\">Bagou Update Checker</h3>\n </div>\n <p class=\"box-body\">\n You can manage your license here.\n <br>Actual license status:\n <ul>\n @foreach ($addonslist as $addon)\n @foreach($licenses as $license) \n @if($license->addon == $addon['id'])\n <li>{{$addon['name']}} {{$license->version}}: @if($addon['version'] == $license->version) <span style=\"color: green;\">Updated</span> @else <span style=\"color: red;\">Outdated (Latest version: {{$addon['version']}})</span> @endif</li>\n @endif\n @endforeach\n @endforeach\n </ul>\n \n </p>\n <div class=\"box-footer\">\n <form method=\"POST\">\n @csrf\n <button type=\"submit\" name=\"_method\" value=\"POST\" style=\"margin-left: 8px\" class=\"btn btn-sm btn-primary pull-right \">Refresh</button>\n</form>\n </div>\n </div>\n \n </div>\n </div>\n@endsection"
}
],
"./resources/views/layouts/admin.blade.php": [
{
"type": "above",
"theme": "any",
"where": "<li class=\"header\">MANAGEMENT</li>",
"add": " <li class=\"{{ ! starts_with(Route::currentRouteName(), 'admin.bagoucenter') ?: 'active' }}\">\n <a href=\"{{ route('admin.bagoucenter')}}\">\n <i class=\"fa fa-globe\"></i> <span>Bagou Center</span>\n </a>\n </li>"
}
],
"./resources/scripts/components/server/files/UploadButton.tsx": [
{
"type": "replace",
"theme": "any",
"where": "data: ProgressEvent, name: string",
"add": "data: any, name: string"
}
],
"./resources/scripts/components/server/settings/RenameServerBox.tsx": [
{
"type": "replace",
"theme": "any",
"where": " description: string;",
"add": " description: any;"
}
]
}