-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #323 from greymass/dev
Release
- Loading branch information
Showing
65 changed files
with
1,445 additions
and
656 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 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
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,24 @@ | ||
<script lang="ts"> | ||
let props = $props(); | ||
</script> | ||
|
||
<svg | ||
class={props.class} | ||
viewBox="0 0 256 44" | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="256" | ||
height="44" | ||
fill="none" | ||
><path | ||
fill="#fff" | ||
d="M43.803.732h5.688c8.429 0 16.12 3.195 21.95 8.452V.732h11.036V44H71.442V33.91c-.07-10.318-7.113-18.963-16.604-21.363V44H43.803V.732ZM11.035 24.098V.732H0v23.366C0 35.09 8.817 44 19.694 44c10.877 0 19.695-8.91 19.695-19.902V.732H28.353v23.366c0 4.833-3.876 8.75-8.659 8.75-4.782 0-8.659-3.917-8.659-8.75ZM186.597 44h-5.687V.732h11.035V32.18c9.416-2.409 16.384-11.028 16.384-21.292V.732h11.035v10.155c0 18.288-14.671 33.113-32.767 33.113ZM97.926.732V44H86.891V.732h11.035ZM256 .732h-32.222V44H256V32.849h-21.187v-4.907h14.634V16.79h-14.634v-4.907H256V.732Z" | ||
/><path | ||
fill="#fff" | ||
fill-rule="evenodd" | ||
d="M133.68 22.366c0-11.948 9.585-21.634 21.408-21.634s21.408 9.686 21.408 21.634S166.911 44 155.088 44s-21.408-9.686-21.408-21.634Zm21.408-10.482c-5.729 0-10.373 4.693-10.373 10.482 0 5.79 4.644 10.483 10.373 10.483 5.729 0 10.373-4.693 10.373-10.483 0-5.789-4.644-10.482-10.373-10.482Z" | ||
clip-rule="evenodd" | ||
/><path | ||
fill="#fff" | ||
d="M113.375 22.366c0-5.789 4.645-10.482 10.373-10.482h5.518V.732h-5.518c-11.823 0-21.408 9.686-21.408 21.634S111.925 44 123.748 44h5.518V32.849h-5.518c-5.728 0-10.373-4.693-10.373-10.483Z" | ||
/></svg | ||
> |
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,55 @@ | ||
<script lang="ts"> | ||
import type { Snippet } from 'svelte'; | ||
import Card from '../layout/box/card.svelte'; | ||
import Select from '../select/select.svelte'; | ||
import type { ExtendedSelectOption } from '../select/types'; | ||
interface Props { | ||
pair: string; | ||
currentPrice: string; | ||
percentChange: string; | ||
range: ExtendedSelectOption[]; | ||
selectedRange: ExtendedSelectOption; | ||
children: Snippet; | ||
startDate: string; | ||
endDate?: string; | ||
} | ||
let { | ||
pair, | ||
currentPrice, | ||
percentChange, | ||
range, | ||
selectedRange = $bindable(), | ||
children, | ||
startDate, | ||
endDate = 'Today' | ||
}: Props = $props(); | ||
</script> | ||
|
||
<Card class="relative"> | ||
<header class="flex justify-between"> | ||
<div> | ||
<p class="text-muted">{pair}</p> | ||
<p class="text-xl font-semibold text-white">{currentPrice}</p> | ||
<p class="text-muted">{percentChange}</p> | ||
</div> | ||
<Select id="range-select" options={range} bind:selected={selectedRange} /> | ||
</header> | ||
<!-- w-99 is a hack to get responsive charts, w-full doesn't work --> | ||
<div class="canvas-container relative h-auto w-[99%]"> | ||
{@render children()} | ||
</div> | ||
<hr class="h-px border-0 bg-shark-200/50" /> | ||
<div class="flex items-center justify-between font-medium"> | ||
<span class="text-muted">{startDate}</span> | ||
<div class="flex gap-4"> | ||
<div class="flex items-center gap-1"> | ||
<div class="size-4 rounded bg-[#00ED97]"></div> | ||
<span class="text-[#00ED97]">{pair}</span> | ||
</div> | ||
</div> | ||
<span class="text-muted">{endDate}</span> | ||
</div> | ||
</Card> |
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
<script lang="ts"> | ||
import { cn } from '$lib/utils/style'; | ||
let props = $props(); | ||
</script> | ||
|
||
<dd class="grow text-balance break-all text-right tabular-nums">{@render props.children()}</dd> | ||
<dd class={cn('grow text-balance break-all text-right tabular-nums', props.class)}> | ||
{@render props.children()} | ||
</dd> |
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
Oops, something went wrong.