Commit da2826ee authored by KesaubeEire's avatar KesaubeEire

feat: svelte的 ally warn.

parent 3b72d7a1
...@@ -167,6 +167,8 @@ ...@@ -167,6 +167,8 @@
<div class="flex-1 px-2 mx-2"> <div class="flex-1 px-2 mx-2">
<!-- NOTE: LOGO --> <!-- NOTE: LOGO -->
<span <span
tabindex="0"
role="button"
on:click={() => { on:click={() => {
location.reload(); location.reload();
}} }}
...@@ -176,6 +178,8 @@ ...@@ -176,6 +178,8 @@
<!-- NOTE: 刷新默认数据 --> <!-- NOTE: 刷新默认数据 -->
<div <div
tabindex="0"
role="button"
class="rounded-full btn-xs border-none cursor-pointer flex items-center justify-center class="rounded-full btn-xs border-none cursor-pointer flex items-center justify-center
bg-primary text-primary-content hover:bg-neutral hover:text-neutral-content" bg-primary text-primary-content hover:bg-neutral hover:text-neutral-content"
on:click={contentDom.searchDefault} on:click={contentDom.searchDefault}
......
...@@ -101,27 +101,20 @@ ...@@ -101,27 +101,20 @@
<div class="card w-80 bg-primary text-primary-content shadow-xl overflow-hidden"> <div class="card w-80 bg-primary text-primary-content shadow-xl overflow-hidden">
<!-- NOTE: Cover --> <!-- NOTE: Cover -->
<figure class="w-80 h-60 relative bg-neutral"> <button class="w-80 h-60 relative bg-neutral overflow-hidden" on:click={getInfoPics} onclick="globalModal.showModal()" on:keypress={() => {}}>
<!-- {#if !_picError} -->
<img <img
class="w-80 h-60 object-cover blur-lg" class="w-80 h-60 object-cover blur-lg"
src={cover ?? '/favicon.ico'} src={cover ?? '/favicon.ico'}
alt={title ?? 'default alt'} alt={title ?? 'default alt'}
style={_picError ? 'height: 240px; width: 320px;' : ''} style={_picError ? 'height: 240px; width: 320px;' : ''}
on:click={getInfoPics}
onclick="globalModal.showModal()"
on:keypress={() => {}}
/> />
<!-- {/if} -->
<img <img
role=""
class="left-0 top-0 absolute w-80 h-60 object-contain border-neutral" class="left-0 top-0 absolute w-80 h-60 object-contain border-neutral"
src={cover ?? '/favicon.ico'} src={cover ?? '/favicon.ico'}
alt={title ?? 'default alt'} alt={title ?? 'default alt'}
style={_picError ? 'height: 240px; width: 320px;' : ''} style={_picError ? 'height: 240px; width: 320px;' : ''}
on:error={picErrorHandler} on:error={picErrorHandler}
on:click={getInfoPics}
onclick="globalModal.showModal()"
on:keypress={() => {}}
/> />
{#if $_config.card_showId} {#if $_config.card_showId}
<div <div
...@@ -132,13 +125,15 @@ ...@@ -132,13 +125,15 @@
{id} {id}
</div> </div>
{/if} {/if}
</figure> </button>
<div class="card-body justify-between"> <div class="card-body justify-between">
<h2 class="card-title block text-lg"> <h2 class="card-title block text-lg">
<div class="inline-flex items-center justify-center translate-y-[-1px] rounded-box overflow-hidden align-middle"> <div class="inline-flex items-center justify-center translate-y-[-1px] rounded-box overflow-hidden align-middle">
<!-- NOTE: 游戏类别(title) --> <!-- NOTE: 游戏类别(title) -->
{#if $_config.card_showCateGoryTitle} {#if $_config.card_showCateGoryTitle}
<span <span
tabindex="0"
role="button"
class=" class="
h-6 mt-0 badge badge-secondary rounded-l-box rounded-r-none h-6 mt-0 badge badge-secondary rounded-l-box rounded-r-none
m-auto px-[6px] cursor-pointer hover:bg-neutral hover:text-neutral-content hover:badge-outline text-sm m-auto px-[6px] cursor-pointer hover:bg-neutral hover:text-neutral-content hover:badge-outline text-sm
...@@ -189,6 +184,8 @@ ...@@ -189,6 +184,8 @@
{#each tags as tag} {#each tags as tag}
<div class="tooltip" data-tip={tag}> <div class="tooltip" data-tip={tag}>
<div <div
tabindex="0"
role="button"
class="badge badge-outline cursor-pointer hover:bg-neutral hover:text-neutral-content" class="badge badge-outline cursor-pointer hover:bg-neutral hover:text-neutral-content"
on:click={p_searchTag(tag)} on:click={p_searchTag(tag)}
on:keypress={() => {}} on:keypress={() => {}}
...@@ -204,6 +201,8 @@ ...@@ -204,6 +201,8 @@
{#if $_config.card_showCateGoryTag} {#if $_config.card_showCateGoryTag}
<div class="tooltip"> <div class="tooltip">
<div <div
tabindex="0"
role="button"
class="badge badge-secondary cursor-pointer hover:badge-outline hover:bg-neutral hover:text-neutral-content" class="badge badge-secondary cursor-pointer hover:badge-outline hover:bg-neutral hover:text-neutral-content"
on:click={p_searchCategory(category)} on:click={p_searchCategory(category)}
on:keypress={() => {}} on:keypress={() => {}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment