-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
38 changed files
with
1,211 additions
and
29 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
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
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
24 changes: 24 additions & 0 deletions
24
explorer/src/lib/components/token-detail-item/TokenDetailItem.css
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 @@ | ||
.token-overview-panel__details-item { | ||
flex: 1; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: flex-start; | ||
min-width: max-content; | ||
margin: 0 1rem; | ||
} | ||
|
||
@media (min-width: 1024px) { | ||
.token-overview-panel__details-item:not(:last-child) { | ||
border-right: 1px solid var(--taupe-grey); | ||
} | ||
} | ||
|
||
.token-overview-panel__details-item-title { | ||
font-size: 1.125rem; | ||
font-weight: 500; | ||
margin-bottom: 0.3125rem; | ||
} | ||
|
||
.token-overview-panel__details-item-subtitle { | ||
font-size: 0.875rem; | ||
} |
11 changes: 11 additions & 0 deletions
11
explorer/src/lib/components/token-detail-item/TokenDetailItem.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<script> | ||
import "./TokenDetailItem.css"; | ||
export let title; | ||
export let subtitle; | ||
</script> | ||
|
||
<div class="token-overview-panel__details-item"> | ||
<p class="token-overview-panel__details-item-title">{title}</p> | ||
<p class="token-overview-panel__details-item-subtitle">{subtitle}</p> | ||
</div> |
70 changes: 70 additions & 0 deletions
70
explorer/src/lib/components/token-details-table/TokenDetailsTable.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<svelte:options immutable={true} /> | ||
|
||
<script> | ||
import { | ||
Table, | ||
TableBody, | ||
TableCell, | ||
TableHead, | ||
TableRow, | ||
} from "$lib/components/table"; | ||
import { TransactionStatus, TransactionType } from "$lib/components"; | ||
import { makeClassName, middleEllipsis } from "$lib/dusk/string"; | ||
/** @type {string | undefined} */ | ||
export let className = undefined; | ||
/** @type {Transaction[]} */ | ||
export let data; | ||
/** @type {boolean} */ | ||
export let displayTooltips = false; | ||
const HASH_CHARS_LENGTH = 10; | ||
$: classes = makeClassName(["tokens-table", className]); | ||
</script> | ||
|
||
<Table className={classes}> | ||
<TableHead> | ||
<TableRow> | ||
<TableCell type="th">From</TableCell> | ||
<TableCell type="th">To</TableCell> | ||
<TableCell type="th">ID</TableCell> | ||
<TableCell type="th">Fee (Dusk)</TableCell> | ||
<TableCell type="th">Status</TableCell> | ||
<TableCell type="th">Type</TableCell> | ||
</TableRow> | ||
</TableHead> | ||
<TableBody> | ||
{#each data as transaction (transaction)} | ||
<TableRow> | ||
<TableCell | ||
>{middleEllipsis( | ||
transaction.from ? transaction.from : "", | ||
HASH_CHARS_LENGTH | ||
)}</TableCell | ||
> | ||
<TableCell | ||
>{middleEllipsis( | ||
transaction.to ? transaction.to : "", | ||
HASH_CHARS_LENGTH | ||
)}</TableCell | ||
> | ||
<TableCell | ||
>{middleEllipsis(transaction.txid, HASH_CHARS_LENGTH)}</TableCell | ||
> | ||
<TableCell>{transaction.gasprice}</TableCell> | ||
<TableCell> | ||
<TransactionStatus | ||
errorMessage={transaction.txerror} | ||
showErrorTooltip={false} | ||
/> | ||
</TableCell> | ||
<TableCell> | ||
<TransactionType data={transaction} {displayTooltips} /> | ||
</TableCell> | ||
</TableRow> | ||
{/each} | ||
</TableBody> | ||
</Table> |
Oops, something went wrong.