-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev' into web-authenticator
- Loading branch information
Showing
51 changed files
with
985 additions
and
271 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
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
<script lang="ts"> | ||
import type { Int } from '@wharfkit/antelope'; | ||
import ResourceCard from './resourceCard.svelte'; | ||
interface Props { | ||
cpuAvailable: number; | ||
netAvailable: number; | ||
precision?: number; | ||
cpuAvailable: Int; | ||
netAvailable: Int; | ||
} | ||
const { cpuAvailable, netAvailable, precision = 2 }: Props = $props(); | ||
const { cpuAvailable, netAvailable }: Props = $props(); | ||
</script> | ||
|
||
<div class="flex gap-px *:flex-1 *:bg-mineShaft-900/70 *:p-4 *:pb-2"> | ||
<div class="rounded-l-lg"> | ||
<ResourceCard type="cpu" value={cpuAvailable.toFixed(precision)} /> | ||
<ResourceCard type="cpu" value={cpuAvailable} /> | ||
</div> | ||
<div class="rounded-r-lg"> | ||
<ResourceCard type="net" value={netAvailable.toFixed(precision)} /> | ||
<ResourceCard type="net" value={netAvailable} /> | ||
</div> | ||
</div> |
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,27 @@ | ||
<script lang="ts"> | ||
import { cn } from '$lib/utils'; | ||
import { type Snippet } from 'svelte'; | ||
import type { HTMLAnchorAttributes } from 'svelte/elements'; | ||
interface Props extends HTMLAnchorAttributes { | ||
href: string; | ||
children?: Snippet; | ||
text?: string; | ||
} | ||
let { href, text = '', children, ...props }: Props = $props(); | ||
</script> | ||
|
||
<a | ||
{href} | ||
class={cn( | ||
'inline-flex items-center gap-2 text-skyBlue-500 hover:text-skyBlue-400 focus-visible:outline focus-visible:outline-solar-500 ', | ||
props.class | ||
)} | ||
> | ||
{#if children} | ||
{@render children()} | ||
{:else} | ||
{text} | ||
{/if} | ||
</a> |
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,17 +1,17 @@ | ||
<script lang="ts"> | ||
import { cn } from '$lib/utils'; | ||
import type { Int } from '@wharfkit/antelope'; | ||
import { cn } from '$lib/utils'; | ||
import ResourceCard from './resourceCard.svelte'; | ||
interface Props { | ||
ramAvailable: number; | ||
precision?: number; | ||
ramAvailable: Int; | ||
class?: string; | ||
} | ||
const { ramAvailable, precision = 2, ...props }: Props = $props(); | ||
const { ramAvailable, ...props }: Props = $props(); | ||
</script> | ||
|
||
<div class={cn('rounded-xl bg-mineShaft-900/70 p-4 pb-2', props.class)}> | ||
<ResourceCard type="ram" value={ramAvailable.toFixed(precision)} /> | ||
<ResourceCard type="ram" value={ramAvailable} /> | ||
</div> |
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.