-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dashboard] add checking accounts balance
refer #145
- Loading branch information
1 parent
badb0f5
commit 6d67110
Showing
10 changed files
with
78 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<script lang="ts"> | ||
import { accountColorStyle } from "$lib/colors"; | ||
import { iconText } from "$lib/icon"; | ||
import { restName, type AssetBreakdown, formatCurrency, firstName } from "$lib/utils"; | ||
export let assetBreakdown: AssetBreakdown; | ||
</script> | ||
|
||
<div class="box p-3 has-background-white"> | ||
<div class="my-1 is-flex is-justify-content-space-between"> | ||
<div class="has-text-grey truncate custom-icon" title={assetBreakdown.group}> | ||
<span style={accountColorStyle(firstName(assetBreakdown.group))} | ||
>{iconText(assetBreakdown.group)}</span | ||
> | ||
<a class="secondary-link" href="/assets/gain/{assetBreakdown.group}"> | ||
{restName(restName(assetBreakdown.group))}</a | ||
> | ||
</div> | ||
<div class="has-text-weight-bold is-size-6"> | ||
{formatCurrency(assetBreakdown.marketAmount)} | ||
</div> | ||
</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
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