diff --git a/src/lib/components/navigation/sidemenu.svelte b/src/lib/components/navigation/sidemenu.svelte index 04fa946a..58b5503e 100644 --- a/src/lib/components/navigation/sidemenu.svelte +++ b/src/lib/components/navigation/sidemenu.svelte @@ -34,12 +34,15 @@ ]; if (context.account) { + items.splice(1, 0, { + href: `/${network}/accounts/${context.account.name}`, + text: 'My Account' + }); items.splice(1, 0, { href: `/${network}/account/${context.account.name}`, text: 'My Account' }); } - return items; }); diff --git a/src/routes/[network]/(account)/accounts/[name]/+layout.svelte b/src/routes/[network]/(account)/accounts/[name]/+layout.svelte new file mode 100644 index 00000000..99e0fdbe --- /dev/null +++ b/src/routes/[network]/(account)/accounts/[name]/+layout.svelte @@ -0,0 +1,42 @@ + + + + + + + + {@render children()} + diff --git a/src/routes/[network]/(account)/accounts/[name]/+page.svelte b/src/routes/[network]/(account)/accounts/[name]/+page.svelte new file mode 100644 index 00000000..588d8558 --- /dev/null +++ b/src/routes/[network]/(account)/accounts/[name]/+page.svelte @@ -0,0 +1,4 @@ + + +
Overview
\ No newline at end of file diff --git a/src/routes/[network]/(account)/accounts/[name]/activity/+page.svelte b/src/routes/[network]/(account)/accounts/[name]/activity/+page.svelte new file mode 100644 index 00000000..f6e48609 --- /dev/null +++ b/src/routes/[network]/(account)/accounts/[name]/activity/+page.svelte @@ -0,0 +1,4 @@ + + +
Activity
\ No newline at end of file diff --git a/src/routes/[network]/(account)/accounts/[name]/balances/+page.svelte b/src/routes/[network]/(account)/accounts/[name]/balances/+page.svelte new file mode 100644 index 00000000..103ccb83 --- /dev/null +++ b/src/routes/[network]/(account)/accounts/[name]/balances/+page.svelte @@ -0,0 +1,81 @@ + + + + + +
+
+ {#if systemTokenMeta} + LOGO + {/if} +
+ +

Total {totalTokenValue?.symbol.name} Balance

+

{totalTokenValue?.value}

+
+
+
+ + +
+
+ $ +
+ +

Total {totalUsdValue?.symbol.name} Balance

+

{totalUsdValue?.value}

+
+
+
+
+ + {#snippet transferIntent(data: TokenBalance)} +
+ +
+ {/snippet} +
+
diff --git a/src/routes/[network]/(account)/accounts/[name]/chaindata/+page.svelte b/src/routes/[network]/(account)/accounts/[name]/chaindata/+page.svelte new file mode 100644 index 00000000..91073814 --- /dev/null +++ b/src/routes/[network]/(account)/accounts/[name]/chaindata/+page.svelte @@ -0,0 +1,4 @@ + + +
Data
\ No newline at end of file diff --git a/src/routes/[network]/(account)/accounts/[name]/components/tokens.svelte b/src/routes/[network]/(account)/accounts/[name]/components/tokens.svelte new file mode 100644 index 00000000..c66ee1c3 --- /dev/null +++ b/src/routes/[network]/(account)/accounts/[name]/components/tokens.svelte @@ -0,0 +1,43 @@ + + +
+
+
Token
+
Amount
+
+
+
+ {#snippet row(name: string, balance: TokenBalance, transferable: boolean = false)} +
+
+
+ {#if balance.metadata?.logo} + LOGO + {/if} +
+ {name} +
+
+ {balance.asset.value} +
+
+ {#if transferable && transferIntent} + {@render transferIntent(balance)} + {/if} +
+
+ {/snippet} + + {#each tokenBalances as item} + {@render row(item.asset.symbol.name, item, true)} + {/each} +
+