More webp images, fix login
This commit is contained in:
parent
616ae1ea82
commit
f1a54d8782
@ -11,7 +11,7 @@
|
|||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Manga Type</td>
|
<td>Manga Type</td>
|
||||||
<td><?= $data['manga_type'] ?></td>
|
<td><?= ucfirst($data['manga_type']) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Volume Count</td>
|
<td>Volume Count</td>
|
||||||
@ -56,9 +56,6 @@
|
|||||||
<source srcset="<?= $urlGenerator->assetUrl("images/characters/{$id}.jpg") ?>" type="image/jpeg">
|
<source srcset="<?= $urlGenerator->assetUrl("images/characters/{$id}.jpg") ?>" type="image/jpeg">
|
||||||
<img src="<?= $urlGenerator->assetUrl("images/characters/{$id}.jpg") ?>" alt="" />
|
<img src="<?= $urlGenerator->assetUrl("images/characters/{$id}.jpg") ?>" alt="" />
|
||||||
</picture>
|
</picture>
|
||||||
<?php /*<?= $helper->img($urlGenerator->assetUrl('images/characters', "{$id}.jpg"), [
|
|
||||||
'width' => '225'
|
|
||||||
]) ?> */ ?>
|
|
||||||
</a>
|
</a>
|
||||||
</article>
|
</article>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
@ -76,7 +76,11 @@
|
|||||||
<?php $link = $url->generate('character', ['slug' => $char['slug']]) ?>
|
<?php $link = $url->generate('character', ['slug' => $char['slug']]) ?>
|
||||||
<div class="name"><?= $helper->a($link, $char['name']); ?></div>
|
<div class="name"><?= $helper->a($link, $char['name']); ?></div>
|
||||||
<a href="<?= $link ?>">
|
<a href="<?= $link ?>">
|
||||||
<?= $helper->img($urlGenerator->assetUrl('images/characters', "{$char['id']}.jpg")) ?>
|
<picture>
|
||||||
|
<source srcset="<?= $urlGenerator->assetUrl("images/characters/{$char['id']}.webp") ?>" type="image/webp">
|
||||||
|
<source srcset="<?= $urlGenerator->assetUrl("images/characters/{$char['id']}.jpg") ?>" type="image/jpeg">
|
||||||
|
<img src="<?= $urlGenerator->assetUrl("images/characters/{$char['id']}.jpg") ?>" alt="" />
|
||||||
|
</picture>
|
||||||
</a>
|
</a>
|
||||||
</article>
|
</article>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
@ -93,7 +97,11 @@
|
|||||||
$titles = Kitsu::filterTitles($anime);
|
$titles = Kitsu::filterTitles($anime);
|
||||||
?>
|
?>
|
||||||
<a href="<?= $link ?>">
|
<a href="<?= $link ?>">
|
||||||
<img src="<?= $urlGenerator->assetUrl('images/anime', "{$anime['id']}.jpg") ?>" width="220" alt="" />
|
<picture width="220">
|
||||||
|
<source srcset="<?= $urlGenerator->assetUrl("images/anime/{$anime['id']}.webp") ?>" type="image/webp">
|
||||||
|
<source srcset="<?= $urlGenerator->assetUrl("images/anime/{$anime['id']}.jpg") ?>" type="image/jpeg">
|
||||||
|
<img src="<?= $urlGenerator->assetUrl("images/anime/{$anime['id']}.jpg") ?>" width="220" alt="" />
|
||||||
|
</picture>
|
||||||
</a>
|
</a>
|
||||||
<div class="name">
|
<div class="name">
|
||||||
<a href="<?= $link ?>">
|
<a href="<?= $link ?>">
|
||||||
@ -117,7 +125,11 @@
|
|||||||
$titles = Kitsu::filterTitles($manga);
|
$titles = Kitsu::filterTitles($manga);
|
||||||
?>
|
?>
|
||||||
<a href="<?= $link ?>">
|
<a href="<?= $link ?>">
|
||||||
<img src="<?= $urlGenerator->assetUrl('images/manga', "{$manga['id']}.jpg") ?>" width="220" alt="" />
|
<picture width="220">
|
||||||
|
<source srcset="<?= $urlGenerator->assetUrl("images/manga/{$manga['id']}.webp") ?>" type="image/webp">
|
||||||
|
<source srcset="<?= $urlGenerator->assetUrl("images/manga/{$manga['id']}.jpg") ?>" type="image/jpeg">
|
||||||
|
<img src="<?= $urlGenerator->assetUrl("images/manga/{$manga['id']}.jpg") ?>" width="220" alt="" />
|
||||||
|
</picture>
|
||||||
</a>
|
</a>
|
||||||
<div class="name">
|
<div class="name">
|
||||||
<a href="<?= $link ?>">
|
<a href="<?= $link ?>">
|
||||||
|
13
public/js/scripts-authed.min.js
vendored
13
public/js/scripts-authed.min.js
vendored
@ -387,7 +387,12 @@
|
|||||||
<input type="radio" class="mal-check" id="mal_${item.slug}" name="mal_id" value="${x.mal_id}" />
|
<input type="radio" class="mal-check" id="mal_${item.slug}" name="mal_id" value="${x.mal_id}" />
|
||||||
<input type="radio" class="big-check" id="${item.slug}" name="id" value="${x.id}" />
|
<input type="radio" class="big-check" id="${item.slug}" name="id" value="${x.id}" />
|
||||||
<label for="${item.slug}">
|
<label for="${item.slug}">
|
||||||
<img src="/public/images/anime/${x.id}.jpg" alt="" width="220" />
|
<picture width="220">
|
||||||
|
<source srcset="/public/images/anime/${x.id}.webp" type="image/webp" />
|
||||||
|
<source srcset="/public/images/anime/${x.id}.jpg" type="image/jpeg" />
|
||||||
|
<img src="/public/images/anime/${x.id}.jpg" alt="" width="220" />
|
||||||
|
</picture>
|
||||||
|
|
||||||
<span class="name">
|
<span class="name">
|
||||||
${item.canonicalTitle}<br />
|
${item.canonicalTitle}<br />
|
||||||
<small>${titles}</small>
|
<small>${titles}</small>
|
||||||
@ -423,7 +428,11 @@
|
|||||||
<input type="radio" id="mal_${item.slug}" name="mal_id" value="${x.mal_id}" />
|
<input type="radio" id="mal_${item.slug}" name="mal_id" value="${x.mal_id}" />
|
||||||
<input type="radio" class="big-check" id="${item.slug}" name="id" value="${x.id}" />
|
<input type="radio" class="big-check" id="${item.slug}" name="id" value="${x.id}" />
|
||||||
<label for="${item.slug}">
|
<label for="${item.slug}">
|
||||||
<img src="/public/images/manga/${x.id}.jpg" alt="" width="220" />
|
<picture width="220">
|
||||||
|
<source srcset="/public/images/manga/${x.id}.webp" type="image/webp" />
|
||||||
|
<source srcset="/public/images/manga/${x.id}.jpg" type="image/jpeg" />
|
||||||
|
<img src="/public/images/manga/${x.id}.jpg" alt="" width="220" />
|
||||||
|
</picture>
|
||||||
<span class="name">
|
<span class="name">
|
||||||
${item.canonicalTitle}<br />
|
${item.canonicalTitle}<br />
|
||||||
<small>${titles}</small>
|
<small>${titles}</small>
|
||||||
|
File diff suppressed because one or more lines are too long
@ -22,7 +22,12 @@ export function renderAnimeSearchResults (data) {
|
|||||||
<input type="radio" class="mal-check" id="mal_${item.slug}" name="mal_id" value="${x.mal_id}" />
|
<input type="radio" class="mal-check" id="mal_${item.slug}" name="mal_id" value="${x.mal_id}" />
|
||||||
<input type="radio" class="big-check" id="${item.slug}" name="id" value="${x.id}" />
|
<input type="radio" class="big-check" id="${item.slug}" name="id" value="${x.id}" />
|
||||||
<label for="${item.slug}">
|
<label for="${item.slug}">
|
||||||
<img src="/public/images/anime/${x.id}.jpg" alt="" width="220" />
|
<picture width="220">
|
||||||
|
<source srcset="/public/images/anime/${x.id}.webp" type="image/webp" />
|
||||||
|
<source srcset="/public/images/anime/${x.id}.jpg" type="image/jpeg" />
|
||||||
|
<img src="/public/images/anime/${x.id}.jpg" alt="" width="220" />
|
||||||
|
</picture>
|
||||||
|
|
||||||
<span class="name">
|
<span class="name">
|
||||||
${item.canonicalTitle}<br />
|
${item.canonicalTitle}<br />
|
||||||
<small>${titles}</small>
|
<small>${titles}</small>
|
||||||
@ -58,7 +63,11 @@ export function renderMangaSearchResults (data) {
|
|||||||
<input type="radio" id="mal_${item.slug}" name="mal_id" value="${x.mal_id}" />
|
<input type="radio" id="mal_${item.slug}" name="mal_id" value="${x.mal_id}" />
|
||||||
<input type="radio" class="big-check" id="${item.slug}" name="id" value="${x.id}" />
|
<input type="radio" class="big-check" id="${item.slug}" name="id" value="${x.id}" />
|
||||||
<label for="${item.slug}">
|
<label for="${item.slug}">
|
||||||
<img src="/public/images/manga/${x.id}.jpg" alt="" width="220" />
|
<picture width="220">
|
||||||
|
<source srcset="/public/images/manga/${x.id}.webp" type="image/webp" />
|
||||||
|
<source srcset="/public/images/manga/${x.id}.jpg" type="image/jpeg" />
|
||||||
|
<img src="/public/images/manga/${x.id}.jpg" alt="" width="220" />
|
||||||
|
</picture>
|
||||||
<span class="name">
|
<span class="name">
|
||||||
${item.canonicalTitle}<br />
|
${item.canonicalTitle}<br />
|
||||||
<small>${titles}</small>
|
<small>${titles}</small>
|
||||||
|
@ -175,7 +175,7 @@ final class Auth {
|
|||||||
$isExpired = time() >= $this->segment->get('auth_token_expires', 0);
|
$isExpired = time() >= $this->segment->get('auth_token_expires', 0);
|
||||||
|
|
||||||
// Attempt to re-authenticate with refresh token
|
// Attempt to re-authenticate with refresh token
|
||||||
if ($isExpired && $refreshToken)
|
/* if ($isExpired && $refreshToken)
|
||||||
{
|
{
|
||||||
if ($this->reAuthenticate($refreshToken))
|
if ($this->reAuthenticate($refreshToken))
|
||||||
{
|
{
|
||||||
@ -183,7 +183,7 @@ final class Auth {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
} */
|
||||||
|
|
||||||
return $token;
|
return $token;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user