Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
R
rrpgLink_FrontEnd
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kesaubeeire
rrpgLink_FrontEnd
Commits
da2826ee
Commit
da2826ee
authored
Oct 29, 2023
by
KesaubeEire
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: svelte的 ally warn.
parent
3b72d7a1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
src/App.svelte
src/App.svelte
+4
-0
src/components/card.svelte
src/components/card.svelte
+9
-10
No files found.
src/App.svelte
View file @
da2826ee
...
@@ -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}
...
...
src/components/card.svelte
View file @
da2826ee
...
@@ -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={() => {}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment