fix movie view icon

This commit is contained in:
Constantin Plaiasu 2024-09-06 03:54:44 +03:00
parent a807a12d1f
commit f49f60c7c3
5 changed files with 23 additions and 16 deletions

View file

@ -1,9 +1,9 @@
APP_NAME=123movies APP_NAME=123movies
APP_ENV=local APP_ENV=local
APP_KEY=base64:c+t+ur1YkrxRCrN4AVKv/NntmB+UShx1y/iSw4d3KmM= APP_KEY=base64:c+t+ur1YkrxRCrN4AVKv/NntmB+UShx1y/iSw4d3KmM=
APP_DEBUG=true APP_DEBUG=false
APP_URL=https://playlab.test APP_URL=https://playlab.test
DEBUGBAR_ENABLED=false
LOG_CHANNEL=stack LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug LOG_LEVEL=debug
@ -26,9 +26,9 @@ SESSION_LIFETIME=120
MEMCACHED_HOST=127.0.0.1 MEMCACHED_HOST=127.0.0.1
REDIS_HOST=127.0.0.1 REDIS_HOST=/var/lib/redis/redis.sock
REDIS_PASSWORD=null REDIS_PASSWORD=null
REDIS_PORT=6379 REDIS_PORT=-1
MAIL_MAILER=smtp MAIL_MAILER=smtp
MAIL_HOST=mailhog MAIL_HOST=mailhog

View file

@ -8,6 +8,7 @@
use App\Supports\Traits\Helpers; use App\Supports\Traits\Helpers;
use Carbon\Carbon; use Carbon\Carbon;
use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Redis;
use Symfony\Component\Cache\Adapter\RedisAdapter; use Symfony\Component\Cache\Adapter\RedisAdapter;
use Symfony\Component\Cache\Adapter\RedisTagAwareAdapter; use Symfony\Component\Cache\Adapter\RedisTagAwareAdapter;
use Tmdb\Client; use Tmdb\Client;
@ -28,7 +29,7 @@ class TmdbClient
use CleanItems, Helpers; use CleanItems, Helpers;
private static $instance; private static $instance;
private $ttl = 3600*24; private $ttl = 3600*24;
private $use_cache = true; private $use_cache = false;
/** @var Client $client **/ /** @var Client $client **/
public $client; public $client;
private static $api_keys = ['aba8176c9250ba755ca1783de87528a2', '5c6763d6500cc611d442a5414e951c05']; private static $api_keys = ['aba8176c9250ba755ca1783de87528a2', '5c6763d6500cc611d442a5414e951c05'];
@ -74,7 +75,7 @@ public function __construct($tmdb_key = null, $use_cache = false, $cache_time =
*/ */
// $cache = new FilesystemAdapter('php-tmdb', 86400, '/home/cache'); // $cache = new FilesystemAdapter('php-tmdb', 86400, '/home/cache');
$redisConnection = RedisAdapter::createConnection('redis:///var/lib/redis/redis.sock/15'); $redisConnection = RedisAdapter::createConnection('redis:///var/lib/redis/redis.sock/15');
$cache = new RedisTagAwareAdapter($redisConnection, 43200); $cache = new RedisTagAwareAdapter($redisConnection, 3600*24);
// $requestListener = new RequestListener($client->getHttpClient(), $ed); // $requestListener = new RequestListener($client->getHttpClient(), $ed);
$requestListener = new Psr6CachedRequestListener( $requestListener = new Psr6CachedRequestListener(
$client->getHttpClient(), $client->getHttpClient(),

View file

@ -32,7 +32,7 @@
], ],
'tmdb' => [ 'tmdb' => [
'key' => env('TMDB_KEY', 'a07e22bc18f5cb106bfe4cc1f83ad8ed'), 'key' => env('TMDB_KEY', 'a07e22bc18f5cb106bfe4cc1f83ad8ed'),
'use_cache' => env('TMDB_USE_CACHE', true), 'use_cache' => env('TMDB_USE_CACHE', false),
'cache_ttl' => env('TMDB_CACHE_TTL', 3600*24), 'cache_ttl' => env('TMDB_CACHE_TTL', 3600*24),
], ],
'api' => [ 'api' => [

View file

@ -21,20 +21,26 @@
@if(request()->routeIs('home')) @if(request()->routeIs('home'))
<div class="col-lg-2 col-sm-4 mb-50"> <div class="col-lg-2 col-sm-4 mb-50">
<div class="footer-widget"> <div class="footer-widget">
<h4 class="footer-widget__title">@lang('Short Links')</h4> <p class="footer-widget__title h4">Top Sources</p>
<ul class="link-list"> <ul class="link-list">
<li><a href="#">Link</a></li> <li><a href="https://netflix.com">Netflix</a></li>
<li><a href="https://primevideo.com">Prime Video</a></li>
<li><a href="https://freevee.com">Freevee</a></li>
<li><a href="https://fairfan.com">FairFan</a></li>
<li><a href="https://disneyplus.com">Disney+</a></li>
</ul> </ul>
</div><!-- footer-widget end --> </div><!-- footer-widget end -->
</div> </div>
@endif @endif
<div class="col-lg-2 col-sm-4 mb-50"> <div class="col-lg-2 col-sm-4 mb-50">
<div class="footer-widget"> <div class="footer-widget">
<h4 class="footer-widget__title">@lang('Category')</h4> <p class="footer-widget__title h4">Best Genres</p>
<ul class="link-list"> <ul class="link-list">
{{-- @foreach ($links as $link) <li><a href="/movies/adventure">Adventure</a></li>
<li><a href="{{ route('links', [$link->id, slug($link->data_values->title)]) }}">{{ __($link->data_values->title) }}</a></li> <li><a href="/movies/action">Action</a></li>
@endforeach --}} <li><a href="/movies/drama">Drama</a></li>
<li><a href="/movies/comedy">Comedy</a></li>
<li><a href="/movies/horror">Horror</a></li>
</ul> </ul>
</div><!-- footer-widget end --> </div><!-- footer-widget end -->
</div> </div>
@ -53,12 +59,12 @@
</button> </button>
</form> </form>
<div class="download-links"> <div class="download-links">
<a class="download-links__item" href="javascript:void(0);"> {{-- <a class="download-links__item" href="javascript:void(0);">
<img class="lazy" data-src="{{asset('images/google_play.png')}}" alt="Google Play"> <img class="lazy" data-src="{{asset('images/google_play.png')}}" alt="Google Play">
</a> </a>
<a class="download-links__item" href="javascript:void(0);"> <a class="download-links__item" href="javascript:void(0);">
<img class="lazy" data-src="{{asset('images/app_store.png')}}" alt="Apple App Store"> <img class="lazy" data-src="{{asset('images/app_store.png')}}" alt="Apple App Store">
</a> </a>--}}
{{-- @foreach ($footerElement as $footer) {{-- @foreach ($footerElement as $footer)
<a class="download-links__item" href="#" target="_blank"> <a class="download-links__item" href="#" target="_blank">

View file

@ -76,7 +76,7 @@
<span class="movie-widget"> <span class="movie-widget">
<i class="base--color"> <i class="base--color">
<svg class="si"> <svg class="si">
<use href="#si-star"></use> <use href="#si-eye"></use>
</svg> </svg>
</i> </i>
<span>{{$movie['vote_count']}} views</span> <span>{{$movie['vote_count']}} views</span>