This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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
04aef95
commit 3dc763b
Showing
4 changed files
with
48 additions
and
31 deletions.
There are no files selected for viewing
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 was deleted.
Oops, something went wrong.
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,46 @@ | ||
<script> | ||
import { | ||
Pause, | ||
Play, | ||
Clock, | ||
Minus, | ||
AdjustmentsHorizontal, | ||
CommandLine, | ||
ArrowPath | ||
} from 'svelte-heros-v2'; | ||
import { getContext } from 'svelte'; | ||
const selectedAccount = getContext('selectedAccount'); | ||
const user = getContext('user'); | ||
</script> | ||
|
||
<section | ||
class="{$selectedAccount ? 'pointer-events-auto opacity-100' : 'pointer-events-none opacity-40'} | ||
bg-section-200 flex flex-wrap items-center justify-center transition-[opacity] duration-300" | ||
> | ||
<form method="post"> | ||
<button class="square !border-white/20 hover:!bg-white" title="Temporary Pause Bot" | ||
><Clock class="icon" /></button | ||
> | ||
<button class="square !border-green/20 hover:!bg-green" title="Resume Bot" | ||
><Play class="icon" /> | ||
</button> | ||
<button class="square !border-yellow/20 hover:!bg-yellow" title="Pause Bot" | ||
><Pause class="icon" /> | ||
</button> | ||
<button class="square !border-red/20 hover:!bg-red" title="Delete Bot"> | ||
<Minus class="icon" /> | ||
</button> | ||
<button class="square"><AdjustmentsHorizontal class="icon" /></button> | ||
{#if $user.admin} | ||
<button class="square"><CommandLine class="icon" /></button> | ||
<button class="square"> | ||
<ArrowPath | ||
class="icon" | ||
title="Invoke Algorithm Check" | ||
formaction="/botControls?/invokeAlgorithmCheck" | ||
/> | ||
</button> | ||
{/if} | ||
</form> | ||
</section> |