Add BitAxe support
This commit is contained in:
parent
e7b52b7367
commit
be5647e1a5
8 changed files with 65 additions and 3 deletions
|
@ -1,5 +1,7 @@
|
|||
<script lang="ts">
|
||||
export let status = {};
|
||||
import RocketIcon from '../icons/RocketIcon.svelte';
|
||||
import PickaxeIcon from '../icons/PickaxeIcon.svelte';
|
||||
|
||||
const isSplitText = (str: string) => {
|
||||
return str.includes('/');
|
||||
|
@ -15,8 +17,17 @@
|
|||
<div class="flex-items">{part}</div>
|
||||
{/each}
|
||||
</div>
|
||||
{:else if char.startsWith('mdi')}
|
||||
<div class="digit icon">
|
||||
{#if char.endsWith('rocket')}
|
||||
<RocketIcon></RocketIcon>
|
||||
{/if}
|
||||
{#if char.endsWith('pickaxe')}
|
||||
<PickaxeIcon></PickaxeIcon>
|
||||
{/if}
|
||||
</div>
|
||||
{:else if char === 'STS'}
|
||||
<div class="digit sats">S</div>
|
||||
<div class="digit sats"></div>
|
||||
{:else if char.length >= 3}
|
||||
<div class="mediumText">{char}</div>
|
||||
{:else if char.length === 0 || char === ' '}
|
||||
|
@ -27,3 +38,9 @@
|
|||
{/each}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.icon {
|
||||
fill: currentColor;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue