-
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 #301 from greymass/dev
Next Release
- Loading branch information
Showing
55 changed files
with
1,695 additions
and
793 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<script lang="ts"> | ||
let props = $props(); | ||
</script> | ||
|
||
<dd class="grow text-balance break-all text-right tabular-nums">{@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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,29 @@ | ||
<script lang="ts"> | ||
import type { Snippet } from 'svelte'; | ||
import DT from './dt.svelte'; | ||
import DD from './dd.svelte'; | ||
interface Props { | ||
title: string; | ||
children: Snippet; | ||
description?: string; | ||
children?: Snippet; | ||
} | ||
let { title, children }: Props = $props(); | ||
let { title = '', description, children }: Props = $props(); | ||
</script> | ||
|
||
<div | ||
class="flex flex-wrap items-center justify-between gap-x-4 border-b border-mineShaft-900 py-3 last:border-none @xs:flex-nowrap" | ||
> | ||
<dt class="caption self-start text-nowrap">{title}</dt> | ||
<dd class="grow text-balance break-all text-right tabular-nums">{@render children()}</dd> | ||
<DT>{title}</DT> | ||
<div | ||
class="grow bg-red-500 before:content-['ERROR_Missing_DD_element_'] has-[dd]:bg-transparent has-[dd]:before:hidden" | ||
> | ||
{#if description} | ||
<DD>{description}</DD> | ||
{/if} | ||
{#if children} | ||
{@render children()} | ||
{/if} | ||
</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,5 @@ | ||
<script lang="ts"> | ||
let props = $props(); | ||
</script> | ||
|
||
<dt class="caption self-start text-nowrap">{@render props.children()}</dt> |
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,2 +1,4 @@ | ||
export { default as DL } from './dl.svelte'; | ||
export { default as DLRow } from './dlrow.svelte'; | ||
export { default as DD } from './dd.svelte'; | ||
export { default as DT } from './dt.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
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,13 +1,39 @@ | ||
<script lang="ts"> | ||
import { type Action } from '@wharfkit/antelope'; | ||
import Code from '../code.svelte'; | ||
import { DL, DLRow, DD } from '../descriptionlist'; | ||
import { Stack } from '../layout'; | ||
import Account from './account.svelte'; | ||
interface Props { | ||
data: Record<string, unknown>; | ||
action: Action; | ||
} | ||
let props: Props = $props(); | ||
let { action }: Props = $props(); | ||
// const arr = action.authorization.map((auth) => [Account, auth]); | ||
// let test = [Account]; | ||
</script> | ||
|
||
{#if props.data} | ||
<Code>{JSON.stringify(props.data, null, 2)}</Code> | ||
{#if action} | ||
<div class="grid grid-cols-2 items-start gap-6"> | ||
<Code>{JSON.stringify(action.data, null, 2)}</Code> | ||
<Stack class="gap-2"> | ||
<h3 class="h4">{String(action.name)}</h3> | ||
<DL> | ||
<DLRow title="Contract"> | ||
<DD> | ||
<Account name={action.account} contract /> | ||
</DD> | ||
</DLRow> | ||
<DLRow title="Authorization"> | ||
{#each action.authorization as auth} | ||
<DD> | ||
<Account name={auth.actor}>{auth}</Account> | ||
</DD> | ||
{/each} | ||
</DLRow> | ||
</DL> | ||
</Stack> | ||
</div> | ||
{/if} |
Oops, something went wrong.