Cleanup packages

This commit is contained in:
DariusIII
2026-04-14 11:00:01 +02:00
parent 916487e407
commit 3b78ea0a6e
16 changed files with 448 additions and 2885 deletions
-24
View File
@@ -1,24 +0,0 @@
<?php
require __DIR__.'/vendor/autoload.php';
require __DIR__.'/bootstrap/app.php';
return (new \Jubeki\LaravelCodeStyle\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setFinder(
PhpCsFixer\Finder::create()
->in(app_path())
->in(config_path())
->in(database_path())
->notPath(database_path('migrations'))
->in(base_path('lang'))
->in(base_path('routes'))
->in(base_path('tests'))
->in(base_path('Blacklight'))
->in(base_path('misc'))
->notName('IRCClient.php')
->notName('NNTP.php')
->notName('*.blade.php')
)
->setRules([
]);
-21
View File
@@ -1,21 +0,0 @@
<?php
require __DIR__.'/vendor/autoload.php';
require __DIR__.'/bootstrap/app.php';
return (new MattAllan\LaravelCodeStyle\Config())
->setFinder(
PhpCsFixer\Finder::create()
->in(app_path())
->in(config_path())
->in(database_path())
->notPath(database_path('migrations'))
->in(resource_path('lang'))
->in(base_path('routes'))
->in(base_path('tests'))
->in(base_path('Blacklight'))
->in(base_path('misc'))
)
->setRules([
'@Laravel' => true,
]);
+3 -2
View File
@@ -15,7 +15,6 @@ use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Str;
use sspat\ESQuerySanitizer\Sanitizer;
use STS\ZipStream\Builder;
use STS\ZipStream\Facades\Zip as ZipStream;
use Symfony\Component\Process\Process;
@@ -586,7 +585,9 @@ if (! function_exists('sanitize')) {
} elseif (Str::endsWith($st, ['+', '-', '?', '*']) && Str::length($st) > 1 && ! preg_match('/([!+?\-*]){2,}/', $st)) {
$str = $st;
} else {
$str = Sanitizer::escape($st, $doNotSanitize);
$str = in_array($st, $doNotSanitize, true)
? $st
: (preg_replace('/([+\-=&|><!(){}\[\]^"~*?:\\\\\\/])/', '\\\\$1', $st) ?? $st);
}
$tempWords[] = $str;
}
-30
View File
@@ -1,30 +0,0 @@
<?php
declare(strict_types=1);
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Livewire\Volt\Volt;
class VoltServiceProvider extends ServiceProvider
{
/**
* Register services.
*/
public function register(): void
{
//
}
/**
* Bootstrap services.
*/
public function boot(): void
{
Volt::mount([
config('livewire.view_path', resource_path('views/livewire')),
resource_path('views/pages'),
]);
}
}
-2
View File
@@ -12,7 +12,6 @@ use App\Http\Middleware\SetUserTimezone;
use App\Http\Middleware\ThrottleApiRequestsByToken;
use App\Http\Middleware\TrustedDevice2FAMiddleware;
use App\Http\Middleware\TrustProxies as AppTrustProxies;
use Creativeorange\Gravatar\GravatarServiceProvider;
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
@@ -30,7 +29,6 @@ use Spatie\Permission\Middleware\RoleOrPermissionMiddleware;
return Application::configure(basePath: dirname(__DIR__))
->withProviders([
TinkerServiceProvider::class,
GravatarServiceProvider::class,
])
->withRouting(
web: __DIR__.'/../routes/web.php',
-2
View File
@@ -9,7 +9,6 @@ use App\Providers\ProcessingServiceProvider;
use App\Providers\SearchServiceProvider;
use App\Providers\TvProcessingServiceProvider;
use App\Providers\UserServiceProvider;
use App\Providers\VoltServiceProvider;
return [
AdditionalProcessingServiceProvider::class,
@@ -21,5 +20,4 @@ return [
SearchServiceProvider::class,
TvProcessingServiceProvider::class,
UserServiceProvider::class,
VoltServiceProvider::class,
];
+3 -17
View File
@@ -46,45 +46,32 @@
"aharen/omdbapi": "^2.1",
"bacon/bacon-qr-code": "^3.0",
"canihavesomecoffee/thetvdbapi": "^2.0",
"creativeorange/gravatar": "^1.0",
"dariusiii/net_nntp": "^4.0",
"dariusiii/rarinfo": "^3.0",
"dariusiii/tv-maze-php-api": "^2.0.0",
"elasticsearch/elasticsearch": "^8.19",
"fakerphp/faker": "^1.23",
"geoip2/geoip2": "^3.1",
"guzzlehttp/guzzle": "^7.9",
"intervention/image": "^3.11",
"laravel/framework": "^13.0",
"laravel/horizon": "^5.45",
"laravel/pulse": "^1.7",
"laravel/sanctum": "^4.0",
"laravel/tinker": "^3.0",
"livewire/blaze": "^1.0",
"livewire/livewire": "^3.6",
"livewire/volt": "^1.6",
"manticoresoftware/manticoresearch-php": "^4.0.0",
"mhor/php-mediainfo": "^5.6",
"monolog/monolog": "^3.8",
"nesbot/carbon": "^3.8",
"php-ffmpeg/php-ffmpeg": "^1.3",
"pragmarx/google2fa-laravel": "^3.0",
"predis/predis": "^v3.0.0",
"propaganistas/laravel-disposable-email": "^2.4",
"riari/laravel-forum": "8.x-dev",
"sentry/sentry": "^4.21",
"sentry/sentry-laravel": "^4.13",
"spatie/laravel-directory-cleanup": "^1.10",
"spatie/laravel-fractal": "^6.3",
"spatie/laravel-html": "^3.13",
"spatie/laravel-ignition": "^2.9",
"spatie/laravel-image-optimizer": "^1.8",
"spatie/laravel-permission": "^7.0.0",
"sspat/es-query-sanitizer": "^1.0",
"stechstudio/laravel-zipstream": "^5.4",
"symfony/http-client": "^8.0",
"symfony/process": "^7.0",
"vlucas/phpdotenv": "^5.6",
"voku/simple_html_dom": "^4.8"
},
"require-dev": {
@@ -93,18 +80,17 @@
"captainhook/plugin-composer": "^5.2",
"driftingly/rector-laravel": "^2.0",
"ergebnis/composer-normalize": "^2.30",
"friendsofphp/php-cs-fixer": "^3.70",
"jubeki/laravel-code-style": "^2.0",
"fakerphp/faker": "^1.23",
"larastan/larastan": "^3.9",
"laravel/boost": "^2.0",
"laravel/pint": "^1.13",
"laravel/sail": "^1.41",
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.6",
"php-coveralls/php-coveralls": "^2.4",
"phpunit/phpunit": "^12.1.0",
"rector/rector": "^2.0",
"revolution/laravel-boost-phpstorm-copilot": "^2.0"
"revolution/laravel-boost-phpstorm-copilot": "^2.0",
"spatie/laravel-ignition": "^2.9"
},
"suggest": {
"ext-gd": "to use GD library based image processing.",
Generated
+425 -2571
View File
File diff suppressed because it is too large Load Diff
-2
View File
@@ -2,7 +2,6 @@
use App\Facades\Elasticsearch;
use App\Facades\Yenc;
use Creativeorange\Gravatar\Facades\Gravatar;
use Illuminate\Support\Facades\Facade;
use Illuminate\Support\Facades\Redis;
@@ -27,7 +26,6 @@ return [
'aliases' => Facade::defaultAliases()->merge([
'Elasticsearch' => Elasticsearch::class,
'Google2FA' => PragmaRX\Google2FALaravel\Facade::class,
'Gravatar' => Gravatar::class,
'RedisManager' => Redis::class,
'Yenc' => Yenc::class,
])->toArray(),
+7 -1
View File
@@ -3,6 +3,12 @@
use Illuminate\Support\Str;
use PDO\MYSQL;
$redisClient = env('REDIS_CLIENT', 'phpredis');
if ($redisClient === 'predis' && ! class_exists('Predis\\Client')) {
$redisClient = 'phpredis';
}
return [
'default' => env('DB_CONNECTION', 'mysql'),
@@ -75,7 +81,7 @@ return [
],
'redis' => [
'client' => env('REDIS_CLIENT', 'phpredis'),
'client' => $redisClient,
'options' => [
'cluster' => env('REDIS_CLUSTER', 'redis'),
'prefix' => Str::slug(env('APP_NAME', 'laravel'), '_').'_database_',
-172
View File
@@ -1,172 +0,0 @@
<?php
use Torann\GeoIP\Services\IPApi;
use Torann\GeoIP\Services\IPData;
use Torann\GeoIP\Services\IPFinder;
use Torann\GeoIP\Services\IPGeoLocation;
use Torann\GeoIP\Services\MaxMindDatabase;
use Torann\GeoIP\Services\MaxMindWebService;
return [
/*
|--------------------------------------------------------------------------
| Logging Configuration
|--------------------------------------------------------------------------
|
| Here you may configure the log settings for when a location is not found
| for the IP provided.
|
*/
'log_failures' => true,
/*
|--------------------------------------------------------------------------
| Include Currency in Results
|--------------------------------------------------------------------------
|
| When enabled the system will do it's best in deciding the user's currency
| by matching their ISO code to a preset list of currencies.
|
*/
'include_currency' => true,
/*
|--------------------------------------------------------------------------
| Default Service
|--------------------------------------------------------------------------
|
| Here you may specify the default storage driver that should be used
| by the framework.
|
| Supported: "maxmind_database", "maxmind_api", "ipapi"
|
*/
'service' => 'ipapi',
/*
|--------------------------------------------------------------------------
| Storage Specific Configuration
|--------------------------------------------------------------------------
|
| Here you may configure as many storage drivers as you wish.
|
*/
'services' => [
'maxmind_database' => [
'class' => MaxMindDatabase::class,
'database_path' => storage_path('app/geoip.mmdb'),
'update_url' => 'https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz',
'locales' => ['en'],
],
'maxmind_api' => [
'class' => MaxMindWebService::class,
'user_id' => env('MAXMIND_USER_ID'),
'license_key' => env('MAXMIND_LICENSE_KEY'),
'locales' => ['en'],
],
'ipapi' => [
'class' => IPApi::class,
'secure' => true,
'key' => env('IPAPI_KEY'),
'continent_path' => storage_path('app/continents.json'),
'lang' => 'en',
],
'ipgeolocation' => [
'class' => IPGeoLocation::class,
'secure' => true,
'key' => env('IPGEOLOCATION_KEY'),
'continent_path' => storage_path('app/continents.json'),
'lang' => 'en',
],
'ipdata' => [
'class' => IPData::class,
'key' => env('IPDATA_API_KEY'),
'secure' => true,
],
'ipfinder' => [
'class' => IPFinder::class,
'key' => env('IPFINDER_API_KEY'),
'secure' => true,
'locales' => ['en'],
],
],
/*
|--------------------------------------------------------------------------
| Default Cache Driver
|--------------------------------------------------------------------------
|
| Here you may specify the type of caching that should be used
| by the package.
|
| Options:
|
| all - All location are cached
| some - Cache only the requesting user
| none - Disable cached
|
*/
'cache' => 'all',
/*
|--------------------------------------------------------------------------
| Cache Tags
|--------------------------------------------------------------------------
|
| Cache tags are not supported when using the file or database cache
| drivers in Laravel. This is done so that only locations can be cleared.
|
*/
'cache_tags' => ['torann-geoip-location'],
/*
|--------------------------------------------------------------------------
| Cache Expiration
|--------------------------------------------------------------------------
|
| Define how long cached location are valid.
|
*/
'cache_expires' => 30,
/*
|--------------------------------------------------------------------------
| Default Location
|--------------------------------------------------------------------------
|
| Return when a location is not found.
|
*/
'default_location' => [
'ip' => '127.0.0.0',
'iso_code' => 'US',
'country' => 'United States',
'city' => 'New Haven',
'state' => 'CT',
'state_name' => 'Connecticut',
'postal_code' => '06510',
'lat' => 41.31,
'lon' => -72.92,
'timezone' => 'America/New_York',
'continent' => 'NA',
'default' => true,
'currency' => 'USD',
],
];
-34
View File
@@ -1,34 +0,0 @@
<?php
return [
'default' => [
// By default, images are presented at 80px by 80px if no size parameter is supplied.
// You may request a specific image size, which will be dynamically delivered from Gravatar
// by passing a single pixel dimension (since the images are square):
'size' => 80,
// the fallback image, can be a string or a url
// for more info, visit: https://docs.gravatar.com/api/avatars/images/#default-image
'fallback' => 'mp',
// would you like to return a https://... image
'secure' => false,
// Gravatar allows users to self-rate their images so that they can indicate if an image
// is appropriate for a certain audience. By default, only 'G' rated images are displayed
// unless you indicate that you would like to see higher ratings.
// Available options:
// g: suitable for display on all websites with any audience type.
// pg: may contain rude gestures, provocatively dressed individuals, the lesser swear words, or mild violence.
// r: may contain such things as harsh profanity, intense violence, nudity, or hard drug use.
// x: may contain hardcore sexual imagery or extremely disturbing violence.
'maximumRating' => 'g',
// If for some reason you wanted to force the default image to always load, you can do that setting this to true
'forceDefault' => false,
// If you require a file-type extension (some places do) then you may also add an (optional) .jpg extension to that URL
'forceExtension' => 'jpg',
],
];
+3 -2
View File
@@ -44,7 +44,8 @@
<p class="text-gray-600 dark:text-gray-400">Don't hesitate to send us a message. Our team will be happy to help you.</p>
</div>
{{ html()->form()->method('POST')->action(route('contact-us'))->open() }}
<form method="POST" action="{{ route('contact-us') }}">
@csrf
<div class="mb-6">
<label for="username" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">
Name <span class="text-red-500">*</span>
@@ -113,7 +114,7 @@
<i class="fas fa-paper-plane mr-2"></i>Send Message
</button>
</div>
{{ html()->form()->close() }}
</form>
</div>
<div class="surface-panel-alt px-6 py-4 border-t rounded-b-lg text-center">
+3 -2
View File
@@ -49,7 +49,8 @@
</div>
</div>
{{ html()->form()->method('POST')->action(url("mymovies?id=do{$type}"))->id('mymovies')->class('space-y-6')->open() }}
<form method="POST" action="{{ url("mymovies?id=do{$type}") }}" id="mymovies" class="space-y-6">
@csrf
<input type="hidden" name="imdb" value="{{ $imdbid }}"/>
@if(!empty($from))
<input type="hidden" name="from" value="{{ $from }}" />
@@ -82,7 +83,7 @@
<i class="fa fa-arrow-left mr-2"></i>Back to My Movies
</a>
</div>
{{ html()->form()->close() }}
</form>
</div>
</div>
</div>
+3 -2
View File
@@ -49,7 +49,8 @@
</div>
</div>
{{ html()->form()->method('POST')->action(url("myshows?action=do{$type}"))->id('myshows')->class('space-y-6')->open() }}
<form method="POST" action="{{ url("myshows?action=do{$type}") }}" id="myshows" class="space-y-6">
@csrf
<input type="hidden" name="id" value="{{ $video }}"/>
@if(!empty($from))
<input type="hidden" name="from" value="{{ $from }}" />
@@ -82,7 +83,7 @@
<i class="fa fa-arrow-left mr-2"></i>Back to My Shows
</a>
</div>
{{ html()->form()->close() }}
</form>
</div>
</div>
</div>
+1 -1
View File
@@ -40,7 +40,7 @@
<div class="lg:col-span-1">
<!-- Avatar -->
<div class="flex justify-center mb-6">
<img src="{{ !empty($user->email) && filter_var($user->email, FILTER_VALIDATE_EMAIL) ? Gravatar::get($user->email, ['size' => 120, 'default' => 'mp']) : 'https://www.gravatar.com/avatar/?d=mp&s=120' }}"
<img src="{{ !empty($user->email) && filter_var($user->email, FILTER_VALIDATE_EMAIL) ? 'https://www.gravatar.com/avatar/' . md5(strtolower(trim($user->email))) . '?s=120&d=mp' : 'https://www.gravatar.com/avatar/?d=mp&s=120' }}"
alt="{{ $user->username }}"
class="w-30 h-30 rounded-full border-4 border-gray-200 dark:border-gray-700 shadow-lg">
</div>