From e325687af5bd0dd8e5c7ff383236a5b24fdf36e4 Mon Sep 17 00:00:00 2001 From: Brock H Caldwell Date: Fri, 9 May 2025 21:30:43 -0500 Subject: [PATCH] chore: style updates --- src/Controller/SearchController.php | 30 +++++++++++---------------- templates/base.html.twig | 11 +++++----- templates/components/Alert.html.twig | 7 ++++++- templates/components/Card.html.twig | 4 +++- templates/components/Header.html.twig | 3 +-- templates/components/NavBar.html.twig | 5 +++-- templates/index/index.html.twig | 2 +- 7 files changed, 31 insertions(+), 31 deletions(-) diff --git a/src/Controller/SearchController.php b/src/Controller/SearchController.php index 5b63d78..c260f39 100644 --- a/src/Controller/SearchController.php +++ b/src/Controller/SearchController.php @@ -34,24 +34,18 @@ final class SearchController extends AbstractController #[Route('/result/{mediaType}/{tmdbId}', name: 'app_search_result')] public function result( GetMediaInfoInput $input, - CacheInterface $cache ): Response { - $cacheId = sprintf("page.%s.%s", $input->mediaType, $input->tmdbId); - -// return $cache->get($cacheId, function (ItemInterface $item) use ($input) { -// $item->expiresAt(Carbon::now()->addHour()->setMinute(0)->setSecond(0)); - $result = $this->getMediaInfoHandler->handle($input->toCommand()); - return $this->render('search/result.html.twig', [ - 'results' => $result, - 'filter' => [ - 'resolution' => '', - 'codec' => '', - 'provider' => '', - 'language' => '', - 'season' => 1, - 'episode' => '' - ] - ]); -// }); + $result = $this->getMediaInfoHandler->handle($input->toCommand()); + return $this->render('search/result.html.twig', [ + 'results' => $result, + 'filter' => [ + 'resolution' => '', + 'codec' => '', + 'provider' => '', + 'language' => '', + 'season' => 1, + 'episode' => '' + ] + ]); } } diff --git a/templates/base.html.twig b/templates/base.html.twig index 08ba0fd..1eca04a 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -12,15 +12,14 @@ {% block importmap %}{{ importmap('app') }}{% endblock %} {% endblock %} - - - +
-
+
-
-

{% block h2 %}{% endblock %}

+
+ +

{% block h2 %}{% endblock %}

{% block body %}{% endblock %}
diff --git a/templates/components/Alert.html.twig b/templates/components/Alert.html.twig index f1a2cfd..488a7f4 100644 --- a/templates/components/Alert.html.twig +++ b/templates/components/Alert.html.twig @@ -1,4 +1,9 @@ -