-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
636a1e5
commit 503e231
Showing
14 changed files
with
694 additions
and
57 deletions.
There are no files selected for viewing
30 changes: 16 additions & 14 deletions
30
src/lib/components/kurosearch/button-play/PlayButton.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,37 @@ | ||
<script lang="ts"> | ||
import { base } from '$app/paths'; | ||
const LOAD_SRC = `${base}/assets/load.svg`; | ||
const PLAY_SRC = `${base}/assets/play.svg`; | ||
const PAUSE_SRC = `${base}/assets/pause.svg`; | ||
export let playing: boolean; | ||
export let loading: boolean; | ||
</script> | ||
|
||
<button type="button" on:click class={$$props.class}> | ||
{#if loading} | ||
<img src="{base}/assets/load.svg" alt="Loading GIF" width="16" height="32" /> | ||
<img src={LOAD_SRC} alt="Loading GIF" width="16" height="32" /> | ||
{:else if playing} | ||
<img src="{base}/assets/pause.svg" alt="Stop GIF" width="16" height="32" /> | ||
<img src={PAUSE_SRC} alt="Stop GIF" width="16" height="32" /> | ||
{:else} | ||
<img | ||
src="{base}/assets/play.svg" | ||
alt="Start GIF" | ||
width="16" | ||
height="32" | ||
style="margin-left: 4px;" | ||
/> | ||
<img src={PLAY_SRC} alt="Start GIF" width="16" height="32" style="margin-left: 4px;" /> | ||
{/if} | ||
</button> | ||
|
||
<style> | ||
button { | ||
color: #000; | ||
background-color: #fff; | ||
border-radius: 24px; | ||
width: 48px; | ||
height: 48px; | ||
--size: 48px; | ||
border-radius: var(--size); | ||
width: var(--size); | ||
height: var(--size); | ||
padding: 6px; | ||
padding-top: 8px; | ||
color: #000; | ||
background-color: #fff; | ||
user-select: none; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<script lang="ts"> | ||
import { base } from '$app/paths'; | ||
</script> | ||
|
||
<div> | ||
<a href="https://www.twitch.tv/helheim_lynx"> | ||
<img id="happy" src="{base}/assets/lynxy-chibi.webp" alt="Helheim Lynx" /> | ||
</a> | ||
</div> | ||
|
||
<style> | ||
div { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
contain: strict; | ||
height: 200px; | ||
} | ||
a { | ||
display: contents; | ||
} | ||
img { | ||
object-fit: contain; | ||
max-height: 100%; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<script lang="ts"> | ||
import { getComments, getPage, getTagSuggestions } from '$lib/logic/api-client/ApiClient'; | ||
const networkChecks = [ | ||
{ | ||
title: 'Tags', | ||
promise: getTagSuggestions('big') | ||
}, | ||
{ | ||
title: 'Posts', | ||
promise: getPage(0, '') | ||
}, | ||
{ | ||
title: 'Comments', | ||
promise: getComments(0) | ||
} | ||
]; | ||
</script> | ||
|
||
<h1>Troubleshooting</h1> | ||
|
||
<h3>Network Checks</h3> | ||
<ol> | ||
{#each networkChecks as check} | ||
<li> | ||
{#await check.promise} | ||
<span>⏳</span> | ||
{:then _} | ||
<span>✅</span> | ||
{:catch} | ||
<span>❌</span> | ||
{/await} | ||
<span>{check.title}</span> | ||
</li> | ||
{/each} | ||
</ol> |
Oops, something went wrong.