From 02d99c8a43e97d99a46694b1730b1965fe782dcf Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Mon, 17 Jan 2022 08:37:00 -0500 Subject: [PATCH] Update more views to use images directly from Kitsu --- app/templates/anime-cover.php | 2 +- app/templates/manga-cover.php | 2 +- app/views/anime/details.php | 2 +- app/views/anime/edit.php | 2 +- app/views/character/details.php | 2 +- app/views/manga/details.php | 2 +- app/views/manga/edit.php | 2 +- app/views/person/details.php | 6 +++--- frontEndSrc/js/base/sort-tables.js | 6 +++--- frontEndSrc/js/template-helpers.js | 4 +--- public/js/scripts.min.js | 2 +- public/js/scripts.min.js.map | 2 +- public/js/tables.min.js | 2 +- public/js/tables.min.js.map | 2 +- .../API/Kitsu/Transformer/CharacterTransformer.php | 1 + .../API/Kitsu/Transformer/PersonTransformer.php | 9 +++------ src/AnimeClient/Kitsu.php | 6 +++++- src/AnimeClient/Types/Character.php | 2 ++ src/AnimeClient/Types/Person.php | 2 ++ 19 files changed, 31 insertions(+), 27 deletions(-) diff --git a/app/templates/anime-cover.php b/app/templates/anime-cover.php index 4d604bd7..95790cca 100644 --- a/app/templates/anime-cover.php +++ b/app/templates/anime-cover.php @@ -6,7 +6,7 @@ isAuthenticated()): ?> - picture($item['anime']['cover_image'], '.jpg', ['width' => 220], ['width' => 220]) ?> + img($item['anime']['cover_image'], ['width' => 220, 'loading' => 'lazy']) ?>
diff --git a/app/templates/manga-cover.php b/app/templates/manga-cover.php index fbb0f3a3..4b3f58ef 100644 --- a/app/templates/manga-cover.php +++ b/app/templates/manga-cover.php @@ -4,7 +4,7 @@
- picture("images/manga/{$item['manga']['id']}.webp") ?> + img($item['manga']['image'], ['width' => 220, 'loading' => 'lazy']) ?>
html($item['manga']['title']) ?> diff --git a/app/views/anime/details.php b/app/views/anime/details.php index 5ecdafe1..50296acb 100644 --- a/app/views/anime/details.php +++ b/app/views/anime/details.php @@ -7,7 +7,7 @@ use function Aviat\AnimeClient\getLocalImg;