diff --git a/assets/controllers/tv_episode_list_controller.js b/assets/controllers/tv_episode_list_controller.js index 8938867..f767614 100644 --- a/assets/controllers/tv_episode_list_controller.js +++ b/assets/controllers/tv_episode_list_controller.js @@ -24,7 +24,6 @@ export default class extends Controller { } paginate(event) { - console.log(event.params.page) this.element.querySelectorAll(".episode-container").forEach(element => element.remove()); this.component.action('paginate', {page: event.params.page}); this.component.render(); diff --git a/assets/controllers/tv_results_controller.js b/assets/controllers/tv_results_controller.js index 87b6caa..da54b7e 100644 --- a/assets/controllers/tv_results_controller.js +++ b/assets/controllers/tv_results_controller.js @@ -55,19 +55,13 @@ export default class extends Controller { // } async setActive() { - this.activeValue = true; - // this.element.classList.remove('hidden'); if (false === this.optionsLoaded) { await this.setOptions(); } } async setInActive() { - this.activeValue = false; - // if (true === this.hasEpisodeSelectorTarget()) { this.episodeSelectorTarget.checked = false; - // } - // this.element.classList.add('hidden'); } isActive() { diff --git a/src/Controller/TorrentioController.php b/src/Controller/TorrentioController.php index 2d927b7..ad40ee7 100644 --- a/src/Controller/TorrentioController.php +++ b/src/Controller/TorrentioController.php @@ -52,13 +52,13 @@ final class TorrentioController extends AbstractController $input->episode, ); -// return $cache->get($cacheId, function (ItemInterface $item) use ($input) { -// $item->expiresAt(Carbon::now()->addHour()->setMinute(0)->setSecond(0)); + return $cache->get($cacheId, function (ItemInterface $item) use ($input) { + $item->expiresAt(Carbon::now()->addHour()->setMinute(0)->setSecond(0)); $results = $this->getTvShowOptionsHandler->handle($input->toCommand()); return $this->render('torrentio/tvshows.html.twig', [ 'results' => $results, ]); -// }); + }); } #[Route('/torrentio/tvshows/clear/{tmdbId}/{imdbId}/{season?}/{episode?}', name: 'app_clear_torrentio_tvshows')] diff --git a/tailwind.config.js b/tailwind.config.js index 6d5aa5c..98cd934 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -13,6 +13,7 @@ module.exports = { "bg-orange-400", "bg-blue-600", "bg-rose-600", + "min-w-64", "transition-opacity", "ease-in", "duration-700", diff --git a/templates/partial/paginator.html.twig b/templates/partial/paginator.html.twig index 9d2621c..42084f7 100644 --- a/templates/partial/paginator.html.twig +++ b/templates/partial/paginator.html.twig @@ -34,7 +34,7 @@ {% if startPage > 2 %}
  • - ... + ...
  • {% endif %} {% endif %} @@ -44,15 +44,14 @@ data-live-action-param="paginate" data-live-page-param="{{ i|number_format }}" class="page-link px-2.5 py-1 rounded-lg bg-orange-500 text-white align-middle" - {% if i == _currentPage %}style="background-color: #fff; color: darkorange; border: 2px solid darkorange;"{% endif %} - + {% if i == _currentPage %}style="background-color: #fff; color: darkorange; font-weight: bold;"{% endif %} >{{ i }} {% endfor %} {% if endPage < _lastPage %} {% if endPage < _lastPage - 1 %}
  • - ... + ...
  • {% endif %}
  • diff --git a/templates/partial/tv-episode-list-paginator.html.twig b/templates/partial/tv-episode-list-paginator.html.twig index d6794ba..86525c8 100644 --- a/templates/partial/tv-episode-list-paginator.html.twig +++ b/templates/partial/tv-episode-list-paginator.html.twig @@ -31,7 +31,7 @@
  • {% if startPage > 2 %}
  • - ... + ...
  • {% endif %} {% endif %} @@ -40,14 +40,14 @@ {% endfor %} {% if endPage < _lastPage %} {% if endPage < _lastPage - 1 %}
  • - ... + ...
  • {% endif %}
  • @@ -63,9 +63,8 @@ {% if _currentPage < _lastPage %} {{ stimulus_action('tv-episode-list', 'paginate', 'click', {page: _currentPage + 1}) }} {% endif %} - class="page-link px-2.5 py-1 h-10 rounded-lg bg-orange-500 align-middle" + class="page-link px-2.5 py-1 rounded-lg bg-orange-500 align-middle" aria-label="Next" - > » diff --git a/templates/torrentio/tvshows.html.twig b/templates/torrentio/tvshows.html.twig index 0d8f0b8..4ca2209 100644 --- a/templates/torrentio/tvshows.html.twig +++ b/templates/torrentio/tvshows.html.twig @@ -3,7 +3,7 @@ {% if results.media.poster != null %} {% else %} -
    +
    {% endif %}